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

Function duplicatePanel

js/main.js:163–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161
162 // Clone the panel, set the current editing panel to that panel, update the form and redraw.
163 const duplicatePanel = function() {
164 post.duplicatePanel(currentlySelectedPanelIndex);
165 currentlySelectedPanelIndex++;
166 updateForm();
167 redraw();
168 };
169
170 /*
171 Delete the current panel, set the current editing panel to the panel before, update the form and redraw.

Callers

nothing calls this directly

Calls 3

duplicatePanelMethod · 0.80
updateFormFunction · 0.70
redrawFunction · 0.70

Tested by

no test coverage detected