mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 02:08:12 +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,
|
opacityForDeselectedCells: .2,
|
||||||
graphBrushSelection: null,
|
graphBrushSelection: null,
|
||||||
continuousSelection: null,
|
continuousSelection: null,
|
||||||
|
scatterplotXXaccessor: null, // just easier to read
|
||||||
|
scatterplotYYaccessor: null,
|
||||||
axesHaveBeenDrawn: false,
|
axesHaveBeenDrawn: false,
|
||||||
__storedStateForCelllist1__: null, /* will need procedural control of brush ie., brush.extent https://bl.ocks.org/micahstubbs/3cda05ca68cba260cb81 */
|
__storedStateForCelllist1__: null, /* will need procedural control of brush ie., brush.extent https://bl.ocks.org/micahstubbs/3cda05ca68cba260cb81 */
|
||||||
__storedStateForCelllist2__: null,
|
__storedStateForCelllist2__: null,
|
||||||
@@ -134,6 +136,17 @@ const Controls = (state = {
|
|||||||
return Object.assign({}, state, {
|
return Object.assign({}, state, {
|
||||||
__storedStateForCelllist1__: action.data
|
__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:
|
default:
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user