CanvasEvent
What the user did with the mouse on a canvas.
Properties
Section titled “Properties”button
Section titled “button”
readonlybutton:number
0 for the left button, 1 for the right and 2 for the middle.
readonlydx:number
A drag’s movement since the previous drag event.
readonlydy:number
readonlyitem:string|null
The id of the topmost shape the click or drag started on, or null.
readonlytype:"doubleClick"|"click"|"drag"|"release"
"click", "doubleClick", "drag" while moving with a button held after pressing on the
canvas, and "release" when such a drag ends.
readonlyx:number
Mouse position in canvas pixels.
readonlyy:number