From 81f6e20b21ba14da7e04f21e426b3c750d369439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=8C=AF=E5=8D=87?= <359059686@qq.com> Date: Wed, 3 Feb 2021 16:22:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E5=90=8E=E6=B7=BB=E5=8A=A0=E7=9B=B8=E6=9C=BA=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/working-area/working-area.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/working-area/working-area.component.ts b/src/app/working-area/working-area.component.ts index da4a16a..0aa221d 100644 --- a/src/app/working-area/working-area.component.ts +++ b/src/app/working-area/working-area.component.ts @@ -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; From 77559c8f12f86a6d1c59e62e95a51afb28b27762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=8C=AF=E5=8D=87?= <359059686@qq.com> Date: Wed, 3 Feb 2021 16:23:19 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/working-area/working-area.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/working-area/working-area.component.ts b/src/app/working-area/working-area.component.ts index 0aa221d..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'; /** * 数据初始化 */