diff --git a/src/reducers/controls.ts b/src/reducers/controls.ts index 7428750ea..2c2a5ae2a 100644 --- a/src/reducers/controls.ts +++ b/src/reducers/controls.ts @@ -12,9 +12,11 @@ import { calcBrowserDimensionsInitialState } from "./browserDimensions"; import { doesColorByHaveConfidence } from "../actions/recomputeReduxState"; import { hasMultipleGridPanels } from "../actions/panelDisplay"; +type Layout = "rect" | "radial" | "unrooted" | "clock" | "scatter" + interface Defaults { distanceMeasure: string - layout: string + layout: Layout geoResolution: string filters: Record filtersInFooter: string[] @@ -27,6 +29,7 @@ interface Defaults { export interface BasicControlsState { defaults: Defaults + layout: Layout panelsAvailable: string[] panelsToDisplay: string[] showTreeToo: boolean