mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 16:48:11 +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__"]) {
|
if (colorAccessor && colorScale && d["__selected__"]) {
|
||||||
ctx.strokeStyle = d3.interpolateViridis(colorScale(d[colorAccessor]));
|
ctx.strokeStyle = d3.interpolateViridis(colorScale(d[colorAccessor]));
|
||||||
|
} else if (d["__selected__"]) {
|
||||||
|
ctx.strokeStyle = "rgba(0,0,0,1)";
|
||||||
} else {
|
} 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();
|
ctx.beginPath();
|
||||||
var coords = project(d, dimensions, xscale);
|
var coords = project(d, dimensions, xscale);
|
||||||
coords.forEach((p, i) => {
|
coords.forEach((p, i) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user