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