mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 15:28:12 +08:00
draw lines and graph with new __color__ attr
This commit is contained in:
@@ -22,13 +22,10 @@ const drawLinesCanvas = (
|
|||||||
|
|
||||||
ctx.globalAlpha = .1;
|
ctx.globalAlpha = .1;
|
||||||
|
|
||||||
if (colorAccessor && colorScale && d["__selected__"]) {
|
if (d["__selected__"]) {
|
||||||
ctx.strokeStyle = d3.interpolateViridis(colorScale(d[colorAccessor]));
|
ctx.strokeStyle = d["__color__"];
|
||||||
} else if (d["__selected__"]) {
|
|
||||||
ctx.strokeStyle = "rgba(0,0,0,1)";
|
|
||||||
} else {
|
} else {
|
||||||
return
|
return
|
||||||
// ctx.strokeStyle = "rgba(0,0,0,.1)";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
|
|||||||
Reference in New Issue
Block a user