mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-03 14:08:12 +08:00
improve selection interaction with clip changes (#744)
* brush interactions with underlying dataframe updates improved * improve comment * reset selection state upon clip
This commit is contained in:
@@ -20,7 +20,8 @@ const CategoricalSelection = (
|
||||
switch (action.type) {
|
||||
case "initial data load complete (universe exists)":
|
||||
case "set World to current selection":
|
||||
case "reset World to eq Universe": {
|
||||
case "reset World to eq Universe":
|
||||
case "set clip quantiles": {
|
||||
const { world } = nextSharedState;
|
||||
return ControlsHelpers.createCategoricalSelection(
|
||||
maxCategoryItems(prevSharedState),
|
||||
|
||||
@@ -2,7 +2,8 @@ import { makeContinuousDimensionName } from "../util/nameCreators";
|
||||
|
||||
const ContinuousSelection = (state = {}, action) => {
|
||||
switch (action.type) {
|
||||
case "reset World to eq Universe": {
|
||||
case "reset World to eq Universe":
|
||||
case "set clip quantiles": {
|
||||
return {};
|
||||
}
|
||||
case "continuous metadata histogram start":
|
||||
|
||||
@@ -6,6 +6,7 @@ const GraphSelection = (
|
||||
action
|
||||
) => {
|
||||
switch (action.type) {
|
||||
case "set clip quantiles":
|
||||
case "reset World to eq Universe": {
|
||||
return {
|
||||
...state,
|
||||
|
||||
Reference in New Issue
Block a user