piskel/test/drawing/tests/transform.center.json
2017-01-29 00:11:58 +01:00

127 lines
No EOL
2 KiB
JSON

{
"events": [
{
"event": {
"type": "mousedown",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 1,
"y": 0
},
"type": "mouse-event"
},
{
"event": {
"type": "mouseup",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 1,
"y": 0
},
"type": "mouse-event"
},
{
"type": "instrumented-event",
"methodName": "addFrame",
"args": []
},
{
"event": {
"type": "mousedown",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 1,
"y": 2
},
"type": "mouse-event"
},
{
"event": {
"type": "mouseup",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 1,
"y": 2
},
"type": "mouse-event"
},
{
"type": "transformtool-event",
"toolId": "tool-center",
"event": {
"shiftKey": false,
"altKey": false,
"ctrlKey": false
}
},
{
"type": "instrumented-event",
"methodName": "addFrame",
"args": []
},
{
"event": {
"type": "mousedown",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 0,
"y": 2
},
"type": "mouse-event"
},
{
"event": {
"type": "mouseup",
"button": 0,
"shiftKey": false,
"altKey": false,
"ctrlKey": false
},
"coords": {
"x": 0,
"y": 2
},
"type": "mouse-event"
},
{
"type": "transformtool-event",
"toolId": "tool-center",
"event": {
"shiftKey": true,
"altKey": false,
"ctrlKey": false
}
}
],
"initialState": {
"size": {
"width": 3,
"height": 3
},
"primaryColor": "#000000",
"secondaryColor": "rgba(0, 0, 0, 0)",
"selectedTool": "tool-pen",
"penSize": 1
},
"png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAADCAYAAABBCiV2AAAAGUlEQVQYV2NkIAIwQtX8Z2BgwMmGSeA1DwCjQQMEFdnXsgAAAABJRU5ErkJggg=="
}