diff --git a/print/index.html b/print/index.html index b60b86e1..44a8be1a 100644 --- a/print/index.html +++ b/print/index.html @@ -211,6 +211,7 @@ style="text-align: center" /> +
diff --git a/print/print.js b/print/print.js index f1126ac7..56ce1107 100644 --- a/print/print.js +++ b/print/print.js @@ -160,6 +160,15 @@ function drawSheetReal() { } } +function clearSheet() { + const canvas = document.querySelector("canvas"); + + const context = canvas.getContext("2d"); + context.clearRect(0, 0, canvas.width, canvas.height); + + imageList = []; +} + function downloadCanvas() { var download = document.createElement("a"); download.download = "print.png";