Browse Source

1.0.16

master
徐振升 4 years ago
parent
commit
d1b158f8b9
  1. 8
      src/app/working-area/working-area.component.ts

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

@ -157,7 +157,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
* RC版: 该版本已经相当成熟了BUG
* Release版: 该版本意味使Release不会以单词形式出现在软件封面上®
*/
public VERSION = '1.0.15.20210202_beta';
public VERSION = '1.0.16.20210203_beta';
/**
*
*/
@ -183,6 +183,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
}
});
}
ngOnDestroy(): void {
this.camera2D.destroy();
this.app.destroy();
}
public setMulitSelect(b: boolean) {
if (b) {
@ -535,6 +539,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
}
this.emit('canvasDataChanged');
this.canvasData.isChange = true;
this.updateCamera2D();
});
// ///
// this.app.renderer.plugins.interaction.on('pointerdown', (event) => {
@ -1016,7 +1021,6 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
this.backgroundImage.texture = this.backgroundTexture;
} else {
this.backgroundImage.texture = await PIXI.Texture.fromURL(imageUrl);
console.log(imageUrl);
}
this.backgroundImage.x = this.backgroundImage.width/2;
this.backgroundImage.y = this.backgroundImage.height/2;

Loading…
Cancel
Save