import { AppContainer } from "@geocortex/api/AppContainer"; import { Layout } from "./layout"; /** * Provides information about the current application, such as the current state * and layout. * * Components and services should generally avoid programming against this * unless they provide application-wide services such as exporting state, * changing layout, etc. */ export interface AppContext { /** * The the live state of the application, which contains all models and * settings used by components and services. */ readonly appState: AppContainer; /** * The currently loaded layout. */ readonly layout: Layout; /** * If the viewer is embedded in an HTML page. Behaviors, including map * controls, are impacted by this setting. */ readonly isEmbedded?: boolean; /** * The root HTML element where the application is rendered. */ readonly hostElement?: HTMLElement; /** * Whether the application was launched in debug mode. */ debugMode: boolean; /** * Whether the application is running the default application or is in designer */ defaultApp: boolean; }