MCPcopy
hub / github.com/methodofaction/Method-Draw / clickClear

Function clickClear

src/js/method-draw.js:701–716  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

699 };
700
701 var clickClear = function(){
702 var dims = curConfig.dimensions;
703 $.confirm("<strong>Do you want to clear the drawing?</strong>\nThis will also erase your undo history", function(ok) {
704 if(!ok) return;
705 setSelectMode();
706 svgCanvas.deleteSelectedElements();
707 svgCanvas.clear();
708 svgCanvas.setResolution(dims[0], dims[1]);
709 updateCanvas(true);
710 createBackground();
711 zoomImage();
712 updateContextPanel();
713 prepPaints();
714 svgCanvas.runExtensions('onNewDocument');
715 });
716 };
717
718 var clickBold = function(){
719 svgCanvas.setBold( !svgCanvas.getBold() );

Callers

nothing calls this directly

Calls 5

setSelectModeFunction · 0.85
createBackgroundFunction · 0.85
zoomImageFunction · 0.85
updateContextPanelFunction · 0.85
prepPaintsFunction · 0.85

Tested by

no test coverage detected