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

Function setInspectorTab

app.js:212–221  ·  view source on GitHub ↗
(tab)

Source from the content-addressed store, hash-verified

210}
211
212function setInspectorTab(tab) {
213 const t = tab === "selection" || tab === "code" ? tab : "project";
214 inspectorTabBtns.forEach((btn) => {
215 const isActive = btn.getAttribute("data-inspector-tab") === t;
216 btn.setAttribute("aria-selected", isActive ? "true" : "false");
217 });
218 if (inspectorProjectPanel) inspectorProjectPanel.hidden = t !== "project";
219 if (inspectorSelectionPanel) inspectorSelectionPanel.hidden = t !== "selection";
220 if (inspectorCodePanel) inspectorCodePanel.hidden = t !== "code";
221}
222
223function clamp(n, lo, hi) {
224 return Math.max(lo, Math.min(hi, n));

Callers 3

app.jsFile · 0.85
addAssetElementToCanvasFunction · 0.85
renderLayersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected