()
| 150 | } |
| 151 | |
| 152 | initEvents() { |
| 153 | |
| 154 | this.canvasContainerRef.current.addEventListener("mousedown", this.mouseDownEvent) |
| 155 | this.canvasContainerRef.current.addEventListener("mouseup", this.mouseUpEvent) |
| 156 | this.canvasContainerRef.current.addEventListener("mousemove", this.mouseMoveEvent) |
| 157 | this.canvasContainerRef.current.addEventListener("wheel", this.wheelZoom) |
| 158 | |
| 159 | |
| 160 | this.canvasContainerRef.current.addEventListener("keydown", this.keyDownEvent, true) |
| 161 | // window.addEventListener("keydown", this.keyDownEvent, true) |
| 162 | |
| 163 | |
| 164 | } |
| 165 | |
| 166 | applyTransform() { |
| 167 | const { currentTranslate, zoom } = this.state |
nothing calls this directly
no outgoing calls
no test coverage detected