()
| 106 | } |
| 107 | |
| 108 | const makeGridArea = (): GridArea => ({ |
| 109 | left: options.grid?.left ?? 0, |
| 110 | right: options.grid?.right ?? 0, |
| 111 | top: options.grid?.top ?? 0, |
| 112 | bottom: options.grid?.bottom ?? 0, |
| 113 | canvasWidth: canvas.width, |
| 114 | canvasHeight: canvas.height, |
| 115 | }); |
| 116 | |
| 117 | const eventManager = createEventManager(canvas, makeGridArea()); |
| 118 | eventManager.on('mousemove', (payload) => { |