Browse Source

修正墙完成未发送创建事件

develop
徐振升 4 years ago
parent
commit
a836d27a81
  1. 2
      src/app/working-area/model/axArrowConnector.ts
  2. 11
      src/app/working-area/working-area.component.ts

2
src/app/working-area/model/axArrowConnector.ts

@ -47,9 +47,9 @@ export class AxArrowConnector extends AxShape {
*/
public refresh(c: PIXI.Graphics, pts: PIXI.Point[]): void {
if (pts.length < 2) {
this.text.position = pts[0];
return;
}
this.text.position = pts[0];
const strokeWidth = 1;
const startWidth = 30 + strokeWidth;
const endWidth = 30 + strokeWidth;

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

@ -531,7 +531,11 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
const polygonIcon = new PolygonIcon(floorData[key], this);
break;
case 3:
const pipeline = new Pipeline(floorData[key], this);
if (floorData[key].Name === '水带') {
const pipeline = new Pipeline(floorData[key], this);
} else {
const wall = new AxArrowConnector(floorData[key], this);
}
break;
}
});
@ -1152,7 +1156,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
this.emit('createIcon', polygonIcon);
}
case PaintMode.Pipeline:
this.paintingShape = null;
if (this.canvasData.selectTemplateData.name !== '水带') {
this.emit('createIcon', this.paintingShape);
this.paintingShape = null;
}
break;
}
this.paintPoints.splice(0, this.paintPoints.length);

Loading…
Cancel
Save