Browse Source

限制默认大小1*1

develop
徐振升 4 years ago
parent
commit
38b7dd3222
  1. 6
      src/app/working-area/working-area.component.ts

6
src/app/working-area/working-area.component.ts

@ -983,6 +983,12 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
if (imageAngle === undefined || imageAngle === null) {
imageAngle = 0;
}
if (imageWidth === undefined || imageWidth === null || imageWidth === 0) {
imageWidth = 1;
}
if (imageHeight === undefined || imageHeight === null || imageHeight === 0) {
imageHeight = 1;
}
this.backgroundImage.scale.set(1);
if (imageUrl === undefined || imageUrl === null || imageUrl === '') {
this.backgroundImage.texture = this.backgroundTexture;

Loading…
Cancel
Save