This commit is contained in:
Colin Megill
2018-01-16 16:26:40 -08:00
parent ba9d7b9130
commit e5253d2ee0
3 changed files with 27 additions and 3 deletions
+5 -1
View File
@@ -8,7 +8,7 @@ const Controls = (state = {
categoricalAsBooleansMap: null,
colorAccessor: null,
colorScale: null,
opacityForDeselectedCells: .5,
opacityForDeselectedCells: .2,
graphBrushSelection: null,
continuousSelection: null,
axesHaveBeenDrawn: false,
@@ -80,6 +80,10 @@ const Controls = (state = {
graphBrushSelection: null,
currentCellSelection: action.newSelection /* this comes from middleware */
})
case "change opacity deselected cells in 2d graph background":
return Object.assign({}, state, {
opacityForDeselectedCells: action.data,
})
case "categorical metadata filter select":
return Object.assign({}, state, {
categoricalAsBooleansMap: action.newCategoricalAsBooleansMap, /* this comes from middleware */