Skip to content

Commit

Permalink
Add type for state.controls.layout
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Oct 11, 2024
1 parent b1a26c6 commit 4658803
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/reducers/controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any>
filtersInFooter: string[]
Expand All @@ -27,6 +29,7 @@ interface Defaults {

export interface BasicControlsState {
defaults: Defaults
layout: Layout
panelsAvailable: string[]
panelsToDisplay: string[]
showTreeToo: boolean
Expand Down

0 comments on commit 4658803

Please sign in to comment.