mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-30 19:38:11 +08:00
move colorScale and colorAccessor to redux to make it global
This commit is contained in:
@@ -16,7 +16,8 @@ import ColorControl from "../controls/color";
|
||||
ranges,
|
||||
vertices,
|
||||
metadata,
|
||||
color: state.controls.color,
|
||||
colorAccessor: state.controls.colorAccessor,
|
||||
colorScale: state.controls.colorScale,
|
||||
continuousSelection: state.controls.continuousSelection,
|
||||
graphBrushSelection: state.controls.graphBrushSelection
|
||||
}
|
||||
@@ -81,11 +82,12 @@ class Graph extends React.Component {
|
||||
nextProps.vertices,
|
||||
this.state.ctx,
|
||||
nextProps.expressionsCountsMap,
|
||||
nextProps.color,
|
||||
nextProps.colorAccessor,
|
||||
nextProps.ranges, /* assumption that this exists if vertices does both are on cells */
|
||||
nextProps.metadata,
|
||||
nextProps.continuousSelection, /* continuousSelected should probably inform a global 'is active' array rather than be consumed so specifically here */
|
||||
nextProps.graphBrushSelection,
|
||||
nextProps.colorScale,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user