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 = {
color: null,
continuousSelection: null,
}, action) => {
switch (action.type) {
case "color changed":
return Object.assign({}, state, {
color: action.data,
});
case "continuous selection using parallel coords brushing": {
return Object.assign({}, state, {
continuousSelection: action.data,
});
}
default:
return state;
}