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

Function duplicateSubPanel

js/main.js:225–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223
224 // Duplicate the current subpanel, set the editing to that subpanel, update the form, and redraw.
225 const duplicateSubPanel = function() {
226 const sign = post.panels[currentlySelectedPanelIndex].sign;
227 sign.duplicateSubPanel(currentlySelectedSubPanelIndex);
228 currentlySelectedSubPanelIndex++;
229 updateForm();
230 redraw();
231 };
232
233 // Set the current editing (SUB)panel based off paramter number, within the correct range (0 < # of panels - 1)
234 const changeEditingSubPanel = function(subPanelNumber) {

Callers

nothing calls this directly

Calls 3

duplicateSubPanelMethod · 0.80
updateFormFunction · 0.70
redrawFunction · 0.70

Tested by

no test coverage detected