(elementId)
| 5059 | |
| 5060 | // Utility function to bring element to front/back |
| 5061 | function 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 | |
| 5073 | function sendToBack(elementId) { |
| 5074 | const index = elements.findIndex(el => el.id === elementId); |
no test coverage detected