add continuous selection to reducer

This commit is contained in:
Colin Megill
2017-11-08 16:35:16 -08:00
parent 186deb07ba
commit af656649e1
+6
View File
@@ -1,11 +1,17 @@
const Controls = (state = { const Controls = (state = {
color: null, color: null,
continuousSelection: null,
}, action) => { }, action) => {
switch (action.type) { switch (action.type) {
case "color changed": case "color changed":
return Object.assign({}, state, { return Object.assign({}, state, {
color: action.data, color: action.data,
}); });
case "continuous selection using parallel coords brushing": {
return Object.assign({}, state, {
continuousSelection: action.data,
});
}
default: default:
return state; return state;
} }