mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-21 05:38:12 +08:00
add continuous selection to reducer
This commit is contained in:
Vendored
+6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user