فهرست منبع

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

xushiting 2 سال پیش
والد
کامیت
70fb4a1ff4
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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) {