Parcourir la source

Merge branch 'master' of http://192.168.0.115:3000/bill/traffic-laser

xushiting il y a 2 ans
Parent
commit
70fb4a1ff4
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/graphic/Renderer/Draw.js

+ 2 - 2
src/graphic/Renderer/Draw.js

@@ -139,14 +139,14 @@ export default class Draw {
     const ctx = this.context;
     const start = coordinate.getScreenXY(lan.start)
     const end = coordinate.getScreenXY(lan.end)
-    console.log(start, end)
     ctx.save();
+    ctx.beginPath();
     help.setVectorStyle(ctx, null, "Lane");
     ctx.setLineDash(Style.Lane.dash);
     ctx.moveTo(start.x, start.y)
     ctx.lineTo(end.x, end.y)
     ctx.stroke();
-    ctx.restore()
+    ctx.restore();
   }
 
   drawEdge(vector, isTemp) {