styleColorAlpha = [
new g.ShapeColorSizeStyle({
viewScale: (cells) => d3.max(cells, (cell) => +cell.ind),
color: (cell, r, z, max) => {
const v = cell.revind;
let t = (v - 1200) / (3700 - 1200);
t = t > 1 ? 1 : t < 0 ? 0 : t;
const color = d3.color(colR(t));
color.opacity = scale(cell.ind / max);
return color;
},
blendOperation: (zf) => (zf < 20 ? "multiply" : "source-over")
}),
strokeStyle
]