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

Function getSelectedElements

app.js:4967–4970  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4965}
4966
4967function getSelectedElements() {
4968 const ids = selectedIds && selectedIds.size ? Array.from(selectedIds) : (selectedId ? [selectedId] : []);
4969 return ids.map((id) => elements.find((e) => e.id === id)).filter(Boolean);
4970}
4971
4972function getAssetById(assetId) {
4973 if (!assetId) return null;

Callers 3

groupSelectionFunction · 0.85
ungroupSelectionFunction · 0.85
app.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected