MCPcopy Index your code
hub / github.com/cifertech/DisplayKit / updateCanvasCursorClass

Function updateCanvasCursorClass

app.js:235–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233}
234
235function 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
244function getPathOverlay() {
245 if (!preview) return null;

Callers 2

setActiveToolFunction · 0.85
app.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected