zhaoyk hace 3 años
padre
commit
60666166a9
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      adm_comp/src/lib/DiagramEditor.ts

+ 2 - 2
adm_comp/src/lib/DiagramEditor.ts

@@ -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);