stub of store controls state to get back to selection for diffexp

This commit is contained in:
Colin Megill
2018-01-03 19:24:45 -08:00
parent 76ff2a3f41
commit c6d0e44c55
+6 -3
View File
@@ -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;
} }