This commit is contained in:
Colin Megill
2021-07-23 13:29:27 -07:00
parent e29a6f72c2
commit bb5bbaac8a
3 changed files with 38 additions and 9 deletions
+9 -1
View File
@@ -24,7 +24,7 @@ function setToDefaultLayout(schema) {
const LayoutChoice = (
state = {
available: [], // all available choices
dotplot: true /* todo(colinmegill) #632 wire up inputs */,
dotplot: true, // is the dotplot toggled on, or not
current: undefined, // name of the current layout, eg, 'umap'
currentDimNames: [], // dimension name
},
@@ -41,6 +41,14 @@ const LayoutChoice = (
};
}
case "toggle dotplot": {
console.log("toggle: state, newstate", state.dotplot, !state.dotplot);
return {
...state,
dotplot: !state.dotplot,
};
}
case "set layout choice": {
const { schema } = nextSharedState.annoMatrix;
const current = action.layoutChoice;