mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-22 08:38:11 +08:00
prepare to catch change scatterplot x & y in reducer
This commit is contained in:
Vendored
+13
@@ -12,6 +12,8 @@ const Controls = (state = {
|
||||
opacityForDeselectedCells: .2,
|
||||
graphBrushSelection: null,
|
||||
continuousSelection: null,
|
||||
scatterplotXXaccessor: null, // just easier to read
|
||||
scatterplotYYaccessor: null,
|
||||
axesHaveBeenDrawn: false,
|
||||
__storedStateForCelllist1__: null, /* will need procedural control of brush ie., brush.extent https://bl.ocks.org/micahstubbs/3cda05ca68cba260cb81 */
|
||||
__storedStateForCelllist2__: null,
|
||||
@@ -134,6 +136,17 @@ const Controls = (state = {
|
||||
return Object.assign({}, state, {
|
||||
__storedStateForCelllist1__: action.data
|
||||
});
|
||||
/*******************************
|
||||
Scatterplot
|
||||
*******************************/
|
||||
case "set scatterplot x":
|
||||
return Object.assign({}, state, {
|
||||
scatterplotXXaccessor: action.data
|
||||
});
|
||||
case "set scatterplot y":
|
||||
return Object.assign({}, state, {
|
||||
scatterplotYYaccessor: action.data
|
||||
});
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user