mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-09 16:50:55 +08:00
graph brush selection
This commit is contained in:
Vendored
+5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user