diff --git a/src/app/working-area/working-area.component.ts b/src/app/working-area/working-area.component.ts index da4a16a..6ef9347 100644 --- a/src/app/working-area/working-area.component.ts +++ b/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;