don't show unselected lines for now in parallel (toggle in the future)

This commit is contained in:
Colin Megill
2017-12-20 18:03:04 -08:00
parent 68d99b71dc
commit 769cbea140
+4 -5
View File
@@ -24,14 +24,13 @@ const drawLinesCanvas = (
if (colorAccessor && colorScale && d["__selected__"]) {
ctx.strokeStyle = d3.interpolateViridis(colorScale(d[colorAccessor]));
} else if (d["__selected__"]) {
ctx.strokeStyle = "rgba(0,0,0,1)";
} else {
ctx.strokeStyle = "rgba(0,0,0,.1)";
return
// ctx.strokeStyle = "rgba(0,0,0,.1)";
}
// if () {
// ctx.strokeStyle = "rgb(0,0,0)";
// }
ctx.beginPath();
var coords = project(d, dimensions, xscale);
coords.forEach((p, i) => {