|
@@ -92,7 +92,7 @@ function getDataUrlForSheetConfig(
|
|
) {
|
|
) {
|
|
const canvas = document.createElement("canvas");
|
|
const canvas = document.createElement("canvas");
|
|
canvas.width = image.naturalWidth;
|
|
canvas.width = image.naturalWidth;
|
|
- canvas.height = image.naturalWidth;
|
|
|
|
|
|
+ canvas.height = image.naturalHeight;
|
|
const ctx = canvas.getContext("2d");
|
|
const ctx = canvas.getContext("2d");
|
|
if (!ctx) {
|
|
if (!ctx) {
|
|
console.log('canvas.getContext("2d") error');
|
|
console.log('canvas.getContext("2d") error');
|