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

Function bringToFront

app.js:5061–5071  ·  view source on GitHub ↗
(elementId)

Source from the content-addressed store, hash-verified

5059
5060// Utility function to bring element to front/back
5061function bringToFront(elementId) {
5062 const index = elements.findIndex(el => el.id === elementId);
5063 if (index > -1) {
5064 const element = elements.splice(index, 1)[0];
5065 elements.push(element);
5066 syncActiveScreenElements();
5067 renderElements();
5068 updateCode();
5069 pushHistory();
5070 }
5071}
5072
5073function sendToBack(elementId) {
5074 const index = elements.findIndex(el => el.id === elementId);

Callers 1

app.jsFile · 0.85

Calls 4

syncActiveScreenElementsFunction · 0.85
renderElementsFunction · 0.85
updateCodeFunction · 0.85
pushHistoryFunction · 0.85

Tested by

no test coverage detected