|
|
@ -248,19 +248,27 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV |
|
|
|
// this.createEnterPaintEndButton();
|
|
|
|
// this.createEnterPaintEndButton();
|
|
|
|
// this.backgroundImage.addChild(this.paintingLine);
|
|
|
|
// this.backgroundImage.addChild(this.paintingLine);
|
|
|
|
this.on('select', obj => { |
|
|
|
this.on('select', obj => { |
|
|
|
if (obj instanceof MultipointIcon) { |
|
|
|
if (this.allowEdit) { |
|
|
|
obj.setPointVisiable(true); |
|
|
|
if (obj instanceof MultipointIcon) { |
|
|
|
} else if (obj instanceof PolygonIcon) { |
|
|
|
obj.setPointVisiable(true); |
|
|
|
obj.setPointVisiable(true); |
|
|
|
} else if (obj instanceof PolygonIcon) { |
|
|
|
|
|
|
|
obj.setPointVisiable(true); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
obj.filters = [this.outlineFilterGreen]; |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
obj.filters = [this.outlineFilterGreen]; |
|
|
|
obj.filters = [this.outlineFilterGreen]; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.on('deselect', obj => { |
|
|
|
this.on('deselect', obj => { |
|
|
|
if (obj instanceof MultipointIcon) { |
|
|
|
if (this.allowEdit) { |
|
|
|
obj.setPointVisiable(false); |
|
|
|
if (obj instanceof MultipointIcon) { |
|
|
|
} else if (obj instanceof PolygonIcon) { |
|
|
|
obj.setPointVisiable(false); |
|
|
|
obj.setPointVisiable(false); |
|
|
|
} else if (obj instanceof PolygonIcon) { |
|
|
|
|
|
|
|
obj.setPointVisiable(false); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
obj.filters = []; |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
obj.filters = []; |
|
|
|
obj.filters = []; |
|
|
|
} |
|
|
|
} |
|
|
|