平铺偏移

This commit is contained in:
李志鹏
2026-01-20 16:11:40 +08:00
parent dbd1651a37
commit 844694d638
4 changed files with 8 additions and 5 deletions

View File

@@ -92,6 +92,7 @@
let img = new Image();
let size = [0,0];
img.src = props.sketchPath;
console.log(props.sketchPath)
await new Promise((resolve, reject) => {
img.onload = () => {
size = [img.width, img.height]