Explorar o código

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

xushiting %!s(int64=2) %!d(string=hai) anos
pai
achega
70fb4a1ff4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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) {