(e: KonvaEventObject<MouseEvent | TouchEvent>)
| 50 | }; |
| 51 | |
| 52 | const handlePointerMove = (e: KonvaEventObject<MouseEvent | TouchEvent>) => { |
| 53 | if (!isDrawing.current || tool !== "line") return; |
| 54 | |
| 55 | const stage = e.target.getStage(); |
| 56 | const pos = stage ? getPointerPositionRelativeToStage(stage) : null; |
| 57 | if (!pos) return; |
| 58 | |
| 59 | if (currentLineId.current) { |
| 60 | updateLineInStore(currentLineId.current, { x: pos.x, y: pos.y }); |
| 61 | } |
| 62 | }; |
| 63 | |
| 64 | const handlePointerUp = () => { |
| 65 | isDrawing.current = false; |
nothing calls this directly
no test coverage detected