|
|
|
@ -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); |
|
|
|
|