select only this categorical filter

This commit is contained in:
Colin Megill
2018-01-03 19:23:13 -08:00
parent 8d4728166d
commit 53b036c467
3 changed files with 47 additions and 2 deletions
+6 -1
View File
@@ -3,7 +3,7 @@ import _ from "lodash";
const Controls = (state = {
_ranges: null, /* this comes from initialize, this is universe */
allCellsOnClient: null, /* this comes from cells endpoint, this is world */
currentCellSelection: null, /* this comes from user actions, this is current cell selection */
currentCellSelection: null, /* this comes from user actions, all draw components use this, it is created by middleware */
graphMap: null,
categoricalAsBooleansMap: null,
colorAccessor: null,
@@ -89,6 +89,11 @@ const Controls = (state = {
categoricalAsBooleansMap: action.newCategoricalAsBooleansMap, /* this comes from middleware */
currentCellSelection: action.newSelection /* this comes from middleware */
})
case "categorical metadata filter only this":
return Object.assign({}, state, {
categoricalAsBooleansMap: action.newCategoricalAsBooleansMap, /* this comes from middleware */
currentCellSelection: action.newSelection /* this comes from middleware */
})
/*******************************
Color Scale
*******************************/