mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-22 15:18:12 +08:00
don't show unselected lines for now in parallel (toggle in the future)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user