Commit a40a509c authored by 范雪寒's avatar 范雪寒

fix: 图片缩放

parent 5f5484c6
...@@ -138,9 +138,7 @@ export class Stage extends Item { ...@@ -138,9 +138,7 @@ export class Stage extends Item {
let sy = pH / height; let sy = pH / height;
let scale = Math.min(sx, sy); let scale = Math.min(sx, sy);
if (scale < 1) { child.setScaleXY(scale);
child.setScaleXY(scale);
}
} }
const getPic = (imgUrl) => { const getPic = (imgUrl) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment