MCPcopy Create free account
hub / github.com/JKPotato-Computer/SignMaker / deletePanel

Function deletePanel

js/main.js:174–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172 If no panel is found, create a new one.
173 */
174 const deletePanel = function() {
175 post.deletePanel(currentlySelectedPanelIndex);
176 if (currentlySelectedPanelIndex > 0) {
177 currentlySelectedPanelIndex--;
178 }
179 if (post.panels.length == 0) {
180 newPanel();
181 } else {
182 updateForm();
183 redraw();
184 }
185 };
186
187 // Shift a panel to the left, and redraw.
188 const shiftLeft = function() {

Callers

nothing calls this directly

Calls 4

deletePanelMethod · 0.80
newPanelFunction · 0.70
updateFormFunction · 0.70
redrawFunction · 0.70

Tested by

no test coverage detected