|
|
|
@ -1129,7 +1129,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
private enterPaint(): void { |
|
|
|
|
this.previewLineSegment.visible = false; |
|
|
|
|
this.enterPaintEndButton.visible = false; |
|
|
|
|
console.log(this.paintMode); |
|
|
|
|
switch (this.paintMode) { |
|
|
|
|
case PaintMode.singlePointIcon: |
|
|
|
|
break; |
|
|
|
|
case PaintMode.lineIcon: |
|
|
|
|
if (this.paintPoints.length >= 2) { |
|
|
|
|
this.emit('createIcon', this.paintingIcon); |
|
|
|
@ -1172,10 +1175,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
const polygonIcon = new PolygonIcon(assetData, this); |
|
|
|
|
this.emit('createIcon', polygonIcon); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
case PaintMode.Pipeline: |
|
|
|
|
if (this.canvasData.selectTemplateData.name !== '水带') { |
|
|
|
|
this.emit('createIcon', this.paintingShape); |
|
|
|
|
console.log("1"); |
|
|
|
|
this.paintingShape = null; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|