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

Method newPanel

js/Post.js:24–34  ·  view source on GitHub ↗

* Create a new panel for the post. Add it to the end of the list of existing panels.

()

Source from the content-addressed store, hash-verified

22 * Create a new panel for the post. Add it to the end of the list of existing panels.
23 */
24 newPanel() {
25 const newSign = new Sign();
26 newSign.newSubPanel();
27
28
29 const newPanel = new Panel(newSign, undefined);
30 const exitTab = new ExitTab();
31 newPanel.exitTabs.push(exitTab);
32
33 this.panels.push(newPanel);
34 }
35
36 /**
37 * Duplicate an existing panel. Add it immediately after the panel being duplicated.

Callers 3

newPanelFunction · 0.80
importDataFunction · 0.80
newPanelFunction · 0.80

Calls 1

newSubPanelMethod · 0.95

Tested by

no test coverage detected