MCPcopy Index your code
hub / github.com/JKPotato-Computer/SignMaker / removeSubPanel

Function removeSubPanel

js/main.js:214–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212 }
213
214 const removeSubPanel = function() {
215 const sign = post.panels[currentlySelectedPanelIndex].sign;
216 if (sign.subPanels.length > 1) {
217 sign.deleteSubPanel((sign.subPanels.length - 2));
218 currentlySelectedSubPanelIndex--
219 updateForm();
220 redraw();
221 }
222 }
223
224 // Duplicate the current subpanel, set the editing to that subpanel, update the form, and redraw.
225 const duplicateSubPanel = function() {

Callers

nothing calls this directly

Calls 3

deleteSubPanelMethod · 0.80
updateFormFunction · 0.70
redrawFunction · 0.70

Tested by

no test coverage detected