This commit is contained in:
zh
2025-12-05 18:19:35 +08:00
parent 09553840c8
commit b770c5fc7b
11 changed files with 103 additions and 41 deletions

View File

@ -1434,9 +1434,12 @@ class MapPrint {
document.body.appendChild(downloadElement);
downloadElement.click();
document.body.removeChild(downloadElement);
setTimeout(() => {
exporting = false;
exportBtn.innerHTML = '打印';
}, 100);
}, 'image/png', 0.95);
exporting = false;
exportBtn.innerHTML = '打印';
// canvas2.toBlob(function (blob) {
// let imgBlobData = URL.createObjectURL(blob);
// let downloadElement = document.createElement('a');