mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-14 11:17:57 +01:00
Revert hardcode limits
This commit is contained in:
parent
c9596ba5ab
commit
e586903f8d
@ -65,13 +65,14 @@ class BinaryImageExporter extends Exporter {
|
|||||||
height = (this.height * dpr);
|
height = (this.height * dpr);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prevents an image too big. Failures seen during export in couple of browsers
|
// // Prevents an image too big. Failures seen during export in couple of browsers
|
||||||
if (Math.max(width, height) > BinaryImageExporter.maxAllowedSize) {
|
// if (Math.max(width, height) > BinaryImageExporter.maxAllowedSize) {
|
||||||
const scale = Math.max(width, height) / BinaryImageExporter.maxAllowedSize;
|
// const scale = Math.max(width, height) / BinaryImageExporter.maxAllowedSize;
|
||||||
width /= scale;
|
// width /= scale;
|
||||||
height /= scale;
|
// height /= scale;
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
console.log(`Export size: ${width}: ${height}`);
|
||||||
canvas.setAttribute('width', width.toFixed(0));
|
canvas.setAttribute('width', width.toFixed(0));
|
||||||
canvas.setAttribute('height', height.toFixed(0));
|
canvas.setAttribute('height', height.toFixed(0));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user