This commit is contained in:
pplokijuhyg 2020-02-09 17:24:05 +08:00
parent a012b3b4fa
commit a41924cd07

View File

@ -40,7 +40,9 @@ $(".download").click(() => {
useCORS: true,
background: null,
windowWidth:document.body.scrollWidth,
windowHeight:document.body.scrollHeight
windowHeight:document.body.scrollHeight,
x:0,
y:0
}).then(canvas => {
let imgUrl = Canvas2Image.convertToPNG(canvas,$("#app").width(),$("#app").height())
imgUrl = $(imgUrl).attr('src')