mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-09 12:08:11 +08:00
stub of store controls state to get back to selection for diffexp
This commit is contained in:
Vendored
+6
-3
@@ -11,6 +11,8 @@ const Controls = (state = {
|
|||||||
graphBrushSelection: null,
|
graphBrushSelection: null,
|
||||||
continuousSelection: null,
|
continuousSelection: null,
|
||||||
axesHaveBeenDrawn: false,
|
axesHaveBeenDrawn: false,
|
||||||
|
__storedStateForCelllist1__: null, /* will need procedural control of brush ie., brush.extent https://bl.ocks.org/micahstubbs/3cda05ca68cba260cb81 */
|
||||||
|
__storedStateForCelllist1__: null,
|
||||||
}, action) => {
|
}, action) => {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
/**********************************
|
/**********************************
|
||||||
@@ -47,8 +49,6 @@ const Controls = (state = {
|
|||||||
categoricalAsBooleansMap[key] = optionsAsBooleans;
|
categoricalAsBooleansMap[key] = optionsAsBooleans;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// console.log("Copy of ranges obj w/ bools instead of counts:", categoricalAsBooleansMap)
|
|
||||||
|
|
||||||
return Object.assign({}, state, {
|
return Object.assign({}, state, {
|
||||||
allCellsOnClient: action.data.data,
|
allCellsOnClient: action.data.data,
|
||||||
currentCellSelection,
|
currentCellSelection,
|
||||||
@@ -112,7 +112,10 @@ const Controls = (state = {
|
|||||||
colorAccessor: action.colorAccessor, /* pass the scale through additionally, and it's a legend! */
|
colorAccessor: action.colorAccessor, /* pass the scale through additionally, and it's a legend! */
|
||||||
currentCellSelection: action.currentSelectionWithUpdatedColors /* this comes from middleware */
|
currentCellSelection: action.currentSelectionWithUpdatedColors /* this comes from middleware */
|
||||||
})
|
})
|
||||||
|
case "store current cell selection as differential set 1":
|
||||||
|
return Object.assign({}, state, {
|
||||||
|
__storedStateForCelllist1__: action.data
|
||||||
|
});
|
||||||
default:
|
default:
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user