From fc5497716c54fcaa78126e0b23945ad5cac3e888 Mon Sep 17 00:00:00 2001 From: "DESKTOP-474NEJQ\\xzsjob" <359059686@qq.com> Date: Thu, 24 Sep 2020 08:29:31 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=AD=A3]=20=20=E7=8E=B0=E5=9C=A84?= =?UTF-8?q?=E7=A7=8D=E8=BD=A6=E8=BE=86=E5=9B=BE=E6=A0=87=E4=BC=9A=E5=9C=A8?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E6=97=B6=E5=88=87=E6=8D=A2=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E5=B9=B6=E9=97=AA=E7=83=815=E7=A7=92=EF=BC=8C=E8=80=8C?= =?UTF-8?q?=E4=B8=8D=E6=98=AF=E9=9D=9E=E6=B0=B4=E6=BA=90=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/working-area/working-area.component.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/working-area/working-area.component.ts b/src/app/working-area/working-area.component.ts index b4e7ce0..72ea103 100644 --- a/src/app/working-area/working-area.component.ts +++ b/src/app/working-area/working-area.component.ts @@ -28,7 +28,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV /** * 父组件 */ - @Input( ) init: any; + @Input() init: any; /** * pixijs 程序 */ @@ -243,7 +243,12 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV * @param icon 移动到选中车辆到屏幕中心点 */ public moveIconToScreenCenter(icon) { - if (icon.parent === this.backgroundImage && icon.assetData.Type !== 0) { + if (icon.parent === this.backgroundImage && ( + icon.assetData.Type === 1 || + icon.assetData.Type === 2 || + icon.assetData.Type === 3 || + icon.assetData.Type === 4 + )) { console.log(this.backgroundImage.position); this.backgroundImage.pivot.set(icon.x, icon.y); this.backgroundImage.position.set(771, 404);