MCPcopy Create free account
hub / github.com/cifertech/DisplayKit / toggleSelectElement

Function toggleSelectElement

app.js:4669–4682  ·  view source on GitHub ↗
(id, push = true)

Source from the content-addressed store, hash-verified

4667}
4668
4669function toggleSelectElement(id, push = true) {
4670 if (!selectedIds || !(selectedIds instanceof Set)) selectedIds = new Set();
4671 if (selectedIds.has(id)) {
4672 selectedIds.delete(id);
4673 } else {
4674 selectedIds.add(id);
4675 selectedId = id;
4676 }
4677 if (!selectedIds.size) selectedId = null;
4678 updatePropsInputs();
4679 renderElements();
4680 renderLayers();
4681 if (push) pushHistory();
4682}
4683
4684function getLayerLabel(el) {
4685 const t = String(el.type || "element");

Callers 2

renderLayersFunction · 0.85
app.jsFile · 0.85

Calls 4

updatePropsInputsFunction · 0.85
renderElementsFunction · 0.85
renderLayersFunction · 0.85
pushHistoryFunction · 0.85

Tested by

no test coverage detected