()
| 233 | } |
| 234 | |
| 235 | function updateCanvasCursorClass() { |
| 236 | if (!previewWrapper) previewWrapper = document.querySelector(".preview-wrapper"); |
| 237 | if (!previewWrapper) return; |
| 238 | const wantsHand = activeTool === "hand" || isSpaceDown; |
| 239 | previewWrapper.classList.toggle("cursor-hand", wantsHand); |
| 240 | previewWrapper.classList.toggle("grabbing", !!isPanning); |
| 241 | if (preview) preview.dataset.activeTool = activeTool; |
| 242 | } |
| 243 | |
| 244 | function getPathOverlay() { |
| 245 | if (!preview) return null; |
no outgoing calls
no test coverage detected