fix: using existing canvas option (#2017)

* refactor: document cleanup to DocumentCloner

* fix: using existing canvas option

* fix: lint errors

* fix: preview transform origin
This commit is contained in:
Niklas von Hertzen
2019-09-25 23:34:18 -07:00
committed by GitHub
parent 34b06d6365
commit 076492042a
9 changed files with 147 additions and 14 deletions

View File

@ -42,7 +42,7 @@
ctx.stroke();
document.querySelector("button").addEventListener("click", function() {
html2canvas(document.querySelector("#content"), {canvas: canvas}).then(function(canvas) {
html2canvas(document.querySelector("#content"), {canvas: canvas, scale: 1}).then(function(canvas) {
console.log('Drew on the existing canvas');
});
}, false);