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:
Bruce Martin
2019-05-03 11:14:30 -07:00
committed by GitHub
parent 77a4495b28
commit 0aa0f641ab
4 changed files with 38 additions and 10 deletions
+2 -1
View File
@@ -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 -1
View File
@@ -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":
+1
View File
@@ -6,6 +6,7 @@ const GraphSelection = (
action
) => {
switch (action.type) {
case "set clip quantiles":
case "reset World to eq Universe": {
return {
...state,