|
|
|
@ -248,6 +248,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
// this.createEnterPaintEndButton();
|
|
|
|
|
// this.backgroundImage.addChild(this.paintingLine);
|
|
|
|
|
this.on('select', obj => { |
|
|
|
|
if (this.allowEdit) { |
|
|
|
|
if (obj instanceof MultipointIcon) { |
|
|
|
|
obj.setPointVisiable(true); |
|
|
|
|
} else if (obj instanceof PolygonIcon) { |
|
|
|
@ -255,8 +256,12 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
} else { |
|
|
|
|
obj.filters = [this.outlineFilterGreen]; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
obj.filters = [this.outlineFilterGreen]; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.on('deselect', obj => { |
|
|
|
|
if (this.allowEdit) { |
|
|
|
|
if (obj instanceof MultipointIcon) { |
|
|
|
|
obj.setPointVisiable(false); |
|
|
|
|
} else if (obj instanceof PolygonIcon) { |
|
|
|
@ -264,6 +269,9 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
} else { |
|
|
|
|
obj.filters = []; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
obj.filters = []; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.on('backgroundScale', scale => { |
|
|
|
|
this.backgroundImage.children.forEach(item => { |
|
|
|
|