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

Function groupSelection

app.js:5014–5023  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5012}
5013
5014function groupSelection() {
5015 const sels = getSelectedElements().filter((s) => !s.locked && !s.hidden);
5016 if (sels.length < 2) return;
5017 const gid = makeId();
5018 sels.forEach((s) => (s.groupId = gid));
5019 renderLayers();
5020 renderElements();
5021 updateCode();
5022 pushHistory();
5023}
5024
5025function ungroupSelection() {
5026 const sels = getSelectedElements().filter((s) => !s.locked && !s.hidden);

Callers 1

app.jsFile · 0.85

Calls 6

getSelectedElementsFunction · 0.85
makeIdFunction · 0.85
renderLayersFunction · 0.85
renderElementsFunction · 0.85
updateCodeFunction · 0.85
pushHistoryFunction · 0.85

Tested by

no test coverage detected