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

Function setActiveTool

app.js:204–210  ·  view source on GitHub ↗
(tool)

Source from the content-addressed store, hash-verified

202let previewWrapper = null;
203
204function setActiveTool(tool) {
205 activeTool = tool === "hand" ? "hand" : "select";
206 if (toolSelectBtn) toolSelectBtn.setAttribute("aria-pressed", activeTool === "select" ? "true" : "false");
207 if (toolHandBtn) toolHandBtn.setAttribute("aria-pressed", activeTool === "hand" ? "true" : "false");
208 if (preview) preview.dataset.activeTool = activeTool;
209 try { updateCanvasCursorClass(); } catch (_) {}
210}
211
212function setInspectorTab(tab) {
213 const t = tab === "selection" || tab === "code" ? tab : "project";

Callers 1

app.jsFile · 0.85

Calls 1

updateCanvasCursorClassFunction · 0.85

Tested by

no test coverage detected