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

Function deleteShield

js/main.js:300–305  ·  view source on GitHub ↗
(shieldIndex)

Source from the content-addressed store, hash-verified

298
299 // Delete the current shield, update the shield subform, and redraw the sign
300 const deleteShield = function(shieldIndex) {
301 const sign = post.panels[currentlySelectedPanelIndex].sign;
302 sign.deleteShield(shieldIndex, currentlySelectedSubPanelIndex);
303 updateShieldSubform();
304 redraw();
305 };
306
307 // Delete all shields of a sign
308 const clearShields = function() {

Callers 2

clearShieldsFunction · 0.70
updateShieldSubformFunction · 0.70

Calls 3

deleteShieldMethod · 0.80
updateShieldSubformFunction · 0.70
redrawFunction · 0.70

Tested by

no test coverage detected