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