100 lines
2.3 KiB
JSON
100 lines
2.3 KiB
JSON
{
|
|
"events": [{
|
|
"event": {
|
|
"type": "mousedown",
|
|
"button": 0,
|
|
"shiftKey": false,
|
|
"altKey": false,
|
|
"ctrlKey": false
|
|
},
|
|
"coords": {
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"type": "mouse-event"
|
|
}, {
|
|
"event": {
|
|
"type": "mouseup",
|
|
"button": 0,
|
|
"shiftKey": false,
|
|
"altKey": false,
|
|
"ctrlKey": false
|
|
},
|
|
"coords": {
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"type": "mouse-event"
|
|
}, {
|
|
"type": "transformtool-event",
|
|
"toolId": "tool-rotate",
|
|
"event": {
|
|
"shiftKey": false,
|
|
"altKey": false,
|
|
"ctrlKey": false
|
|
}
|
|
}, {
|
|
"type": "transformtool-event",
|
|
"toolId": "tool-rotate",
|
|
"event": {
|
|
"shiftKey": false,
|
|
"altKey": false,
|
|
"ctrlKey": false
|
|
}
|
|
}, {
|
|
"type": "keyboard-event",
|
|
"event": {
|
|
"which": 90,
|
|
"shiftKey": false,
|
|
"altKey": false,
|
|
"ctrlKey": true,
|
|
"target": {
|
|
"nodeName": "BODY"
|
|
}
|
|
}
|
|
}, {
|
|
"type": "tool-event",
|
|
"toolId": "tool-stroke"
|
|
}, {
|
|
"type": "color-event",
|
|
"color": "#ff0000",
|
|
"isPrimary": true
|
|
}, {
|
|
"event": {
|
|
"type": "mousedown",
|
|
"button": 0,
|
|
"shiftKey": false,
|
|
"altKey": false,
|
|
"ctrlKey": false
|
|
},
|
|
"coords": {
|
|
"x": 1,
|
|
"y": 1
|
|
},
|
|
"type": "mouse-event"
|
|
}, {
|
|
"event": {
|
|
"type": "mouseup",
|
|
"button": 0,
|
|
"shiftKey": false,
|
|
"altKey": false,
|
|
"ctrlKey": false
|
|
},
|
|
"coords": {
|
|
"x": 1,
|
|
"y": 1
|
|
},
|
|
"type": "mouse-event"
|
|
}],
|
|
"initialState": {
|
|
"size": {
|
|
"width": 2,
|
|
"height": 2
|
|
},
|
|
"primaryColor": "#000000",
|
|
"secondaryColor": "rgba(0, 0, 0, 0)",
|
|
"selectedTool": "tool-pen",
|
|
"step" : 100
|
|
},
|
|
"png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAE0lEQVQIW2NkgAJGBgaG//+BHAAJJAIBS+4zcQAAAABJRU5ErkJggg=="
|
|
}
|