diff --git a/Models/MenuState.ts b/Models/MenuState.ts index 40ecff5354..9cb84a00f3 100644 --- a/Models/MenuState.ts +++ b/Models/MenuState.ts @@ -4,6 +4,9 @@ import UserRelatedState from "../Logic/State/UserRelatedState" import { Utils } from "../Utils" import { LocalStorageSource } from "../Logic/Web/LocalStorageSource" +export type ThemeViewTabStates = typeof MenuState._themeviewTabs[number] +export type MenuViewTabStates = typeof MenuState._menuviewTabs[number] + /** * Indicates if a menu is open, and if so, which tab is selected; * Some tabs allow to highlight an element. @@ -11,15 +14,15 @@ import { LocalStorageSource } from "../Logic/Web/LocalStorageSource" * Some convenience methods are provided for this as well */ export class MenuState { - private static readonly _themeviewTabs = ["intro", "filters", "download", "copyright"] as const + public static readonly _themeviewTabs = ["intro", "filters", "download", "copyright"] as const public readonly themeIsOpened: UIEventSource public readonly themeViewTabIndex: UIEventSource - public readonly themeViewTab: UIEventSource + public readonly themeViewTab: UIEventSource - private static readonly _menuviewTabs = ["about", "settings", "community", "privacy"] as const + public static readonly _menuviewTabs = ["about", "settings", "community", "privacy"] as const public readonly menuIsOpened: UIEventSource public readonly menuViewTabIndex: UIEventSource - public readonly menuViewTab: UIEventSource + public readonly menuViewTab: UIEventSource public readonly highlightedLayerInFilters: UIEventSource = new UIEventSource( undefined