MCPcopy Create free account
hub / github.com/PaulleDemon/PyUIBuilder / initEvents

Function initEvents

src/canvas/canvas.js:152–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected