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

Function resetPadding

js/main.js:1230–1241  ·  view source on GitHub ↗
(mode, params)

Source from the content-addressed store, hash-verified

1228 }
1229
1230 const resetPadding = function(mode, params) {
1231 const panel = post.panels[currentlySelectedPanelIndex];
1232 panel.sign.padding = "0.5rem 0.75rem 0.5rem 0.75rem";
1233
1234 document.getElementById("paddingTop").value = 0.5;
1235 document.getElementById("paddingRight").value = 0.75;
1236 document.getElementById("paddingBottom").value = 0.5;
1237 document.getElementById("paddingLeft").value = 0.75;
1238
1239 updateForm();
1240 redraw();
1241 }
1242
1243 /**
1244 * Redraw the panels on the post.

Callers

nothing calls this directly

Calls 2

updateFormFunction · 0.70
redrawFunction · 0.70

Tested by

no test coverage detected