on master help sign in
Merge pull request #704 from michaelbjames/debugger-bugfix-slowTrace

Fix #703, traces are now just lines but they're much faster!

commit7f3d6c8ac4e84ce4b481c0956fd30a4cffa7485c authorEvan Czaplicki <info@elm-lang.org> dateThu 24 Jul 2014, 17:58 (12 years ago) parentd29ba5293d2efe
1 file changed−9
runtime/Debugger.js−9
runtime/Debugger.js−9
@@ -451,15 +451,6 @@ function tracePathInit(runtime, signalGraphMain) {
451451 ctx.lineWidth = 1;
452452 ctx.strokeStyle = "rgba(50, 50, 50, 0.4)";
453453 ctx.stroke();
454−
455− for (var i=0; i < points.length; i++)
456− {
457− var p = points[i];
458− ctx.beginPath();
459− ctx.arc(p.x, p.y, 2, 0, Math.PI * 2);
460− ctx.fillStyle = "rgba(50, 50, 50, 0.4)";
461− ctx.fill();
462− }
463454 }
464455
465456 ctx.restore();