|
@@ -1,4 +1,4 @@
|
|
|
-import {Diagram, EquipmentNode, Line, Comp, Container, MainPipe, Legend, Anchor, Point4Anchor} from './DiagramModel';
|
|
|
+import {Diagram, Template, EquipmentNode, Line, Comp, Container, MainPipe, Legend, Anchor, Point4Anchor} from './DiagramModel';
|
|
|
import {Point, BackgroundPaniter, ViewTool} from './UIUtils';
|
|
|
import {Editor, Selection} from './Editor';
|
|
|
|
|
@@ -108,7 +108,7 @@ export class DiagramEditor extends Editor {
|
|
|
|
|
|
this.ctx.beginPath();
|
|
|
var iter = 0;
|
|
|
- for(const p of line.locationPath){
|
|
|
+ for(var p of line.locationPath){
|
|
|
p = this.util.toCanvas(p);
|
|
|
if(iter == 0)
|
|
|
this.ctx.moveTo(p.x, p.y);
|