graph brush selection

This commit is contained in:
Colin Megill
2017-11-16 20:04:58 -08:00
parent de42ec3da3
commit 382cc45035
3 changed files with 134 additions and 26 deletions
+5
View File
@@ -1,6 +1,7 @@
const Controls = (state = {
color: null,
continuousSelection: null,
graphBrushSelection: null
}, action) => {
switch (action.type) {
case "color changed":
@@ -12,6 +13,10 @@ const Controls = (state = {
continuousSelection: action.data,
});
}
case "graph brush selection change":
return Object.assign({}, state, {
graphBrushSelection: action.brushCoords
})
default:
return state;
}