on master help sign in
Trace any kind of element / lighten trace
cc213fbEvan Czaplicki
runtime/Debugger.js+3−3
@@ -316,7 +316,7 @@ function tracePathInit(runtime, mainNode) {
316 {
316 {
317 List.map(F2(processForm)(offset))(elem.element.model.forms);
317 List.map(F2(processForm)(offset))(elem.element.model.forms);
318 }
318 }
319− else if (elem.element.ctor == "Image" && elem.props.debugTracePathId)
319+ if (elem.props.debugTracePathId)
320 {
320 {
321 positions[elem.props.debugTracePathId] = new Point(offset.x, offset.y);
321 positions[elem.props.debugTracePathId] = new Point(offset.x, offset.y);
322 }
322 }
@@ -374,7 +374,7 @@ function tracePathInit(runtime, mainNode) {
374 }
374 }
375 }
375 }
376 ctx.lineWidth = 1;
376 ctx.lineWidth = 1;
377− ctx.strokeStyle = "#888a85";
377+ ctx.strokeStyle = "rgba(50, 50, 50, 0.4)";
378 ctx.stroke();
378 ctx.stroke();
379
379
380 for (var i=0; i < points.length; i++)
380 for (var i=0; i < points.length; i++)
@@ -382,7 +382,7 @@ function tracePathInit(runtime, mainNode) {
382 var p = points[i];
382 var p = points[i];
383 ctx.beginPath();
383 ctx.beginPath();
384 ctx.arc(p.x, p.y, 2, 0, Math.PI * 2);
384 ctx.arc(p.x, p.y, 2, 0, Math.PI * 2);
385− ctx.fillStyle = "#2e3436";
385+ ctx.fillStyle = "rgba(50, 50, 50, 0.4)";
386 ctx.fill();
386 ctx.fill();
387 }
387 }
388 }
388 }