Browse Source

[新增] 车辆放置区域车头方向

develop
徐振升 4 years ago
parent
commit
6d2077144c
  1. 58
      src/app/working-area/working-area.component.ts

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

@ -500,9 +500,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
const putCarAreaData = [
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面1',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 90,
Color: '#00ff0080',
Point: {
x: 0,
@ -554,9 +555,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
},
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面2',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 180,
Color: '#00ff0080',
Point: {
x: 0,
@ -608,9 +610,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
},
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面3',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 270,
Color: '#00ff0080',
Point: {
x: 0,
@ -662,9 +665,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
},
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面4',
Angle: 0,
Type: [2, 3, 4],
Direction: 180,
Color: '#00ff0080',
Point: {
x: 0,
@ -716,9 +720,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
},
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面5',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 180,
Color: '#00ff0080',
Point: {
x: 0,
@ -770,9 +775,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
},
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面6',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 90,
Color: '#00ff0080',
Point: {
x: 0,
@ -824,9 +830,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
},
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面7',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 90,
Color: '#00ff0080',
Point: {
x: 0,
@ -878,9 +885,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
},
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面8',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 0,
Color: '#00ff0080',
Point: {
x: 0,
@ -932,9 +940,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
},
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面9',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 270,
Color: '#00ff0080',
Point: {
x: 0,
@ -986,9 +995,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
},
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面10',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 0,
Color: '#00ff0080',
Point: {
x: 0,
@ -1040,9 +1050,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
},
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面11',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 180,
Color: '#00ff0080',
Point: {
x: 0,
@ -1094,9 +1105,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
},
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面12',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 90,
Color: '#00ff0080',
Point: {
x: 0,
@ -1148,9 +1160,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
},
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面13',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 180,
Color: '#00ff0080',
Point: {
x: 0,
@ -1202,9 +1215,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
},
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面14',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 0,
Color: '#00ff0080',
Point: {
x: 0,
@ -1256,9 +1270,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
},
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面15',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 270,
Color: '#00ff0080',
Point: {
x: 0,
@ -1310,9 +1325,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
},
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '作业面',
Name: '作业面16',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 0,
Color: '#00ff0080',
Point: {
x: 0,
@ -1374,9 +1390,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
const tempCarAreaData = [
{
Id: '5f6719a4e03abe3856d87d7b',
Name: '禁停区',
Name: '禁停区17',
Angle: 0,
Type: [1, 2, 3, 4],
Direction: 0,
Color: '#ff000080',
Point: {
x: 0,
@ -1427,9 +1444,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
InteractiveMode: 0
}, {
Id: '5f6719a4e03abe3856d87d7b',
Name: '禁停区',
Name: '禁停区18',
Angle: 0,
Type: [1],
Direction: 0,
Color: '#ff000080',
Point: {
x: 0,
@ -2055,6 +2073,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
public reset() {
this.previewSinglePointIcon.filters = null;
this.previewSinglePointIcon.visible = false;
this.previewSinglePointIcon.angle = 0;
}
/**
*
@ -2854,6 +2873,9 @@ export class PutCarArea extends PIXI.Container {
.on('pointerover', (event) => {
this.workingArea.previewSinglePointIcon.filters = null;
this.workingArea.previewSinglePointIcon.zIndex = this.zIndex + 1;
// 设置车辆方向
this.workingArea.previewSinglePointIcon.angle = this.assetData.Direction;
console.log(this.assetData.Name);
})
.on('pointerout', (event) => {
this.workingArea.previewSinglePointIcon.filters = [

Loading…
Cancel
Save