mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-06 18:48:12 +08:00
graph now renders from global cell selection, significant perf boost
This commit is contained in:
Vendored
+7
@@ -48,6 +48,13 @@ const Controls = (state = {
|
||||
return Object.assign({}, state, {
|
||||
graphBrushSelection: null
|
||||
})
|
||||
case "color changed":
|
||||
return Object.assign({}, state, {
|
||||
colorAccessor: action.colorAccessor,
|
||||
colorScale: d3.scaleLinear()
|
||||
.domain([0, action.rangeMaxForColorAccessor])
|
||||
.range([1,0])
|
||||
});
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user