UNPKG

@arcgis/map-components

Version:
71 lines (69 loc) 3.15 kB
/// <reference types="@arcgis/core/interfaces.d.ts" /> /// <reference types="../../index.d.ts" /> import { Use } from '@arcgis/components-controllers'; import { Nil } from '@arcgis/components-utils'; import { default as FullscreenViewModel } from '@arcgis/core/widgets/Fullscreen/FullscreenViewModel.js'; import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina'; import { ArcgisReferenceElement } from '../../utils/component-utils'; declare const useFullscreenViewModel: (component: import('@arcgis/components-controllers').StencilLifecycles & { manager: import('@arcgis/components-controllers').ControllerManager; el: HTMLElement; autoDestroyDisabled?: boolean; destroy?: () => Promise<void>; } & Pick<FullscreenViewModel, never> & { reactiveUtils?: typeof __esri.reactiveUtils; state?: "ready" | "disabled" | "active" | "feature-unsupported" | undefined; icon: Nil | string; label: Nil | string; referenceElement: ArcgisReferenceElement | Nil | string; arcgisReady: import('@arcgis/components-controllers').EventEmitter; position: __esri.UIPosition; arcgisPropertyChange: import('@arcgis/components-controllers').EventEmitter<{ name: string; }> | undefined; el: HTMLElement & { childElem?: HTMLElement & { ownedBy?: HTMLElement; }; view?: __esri.MapView | __esri.SceneView | undefined; }; autoDestroyDisabled: boolean; destroy: () => Promise<void>; }, options?: { editConstructorProperties(props: unknown): unknown; } | undefined) => FullscreenViewModel; /** Provides a simple component to present the View or a user-defined HTMLElement using the entire screen */ export declare class ArcgisFullscreen extends LitElement { private messages; /** * If true, the component will not be destroyed automatically when it is * disconnected from the document. This is useful when you want to move the * component to a different place on the page, or temporarily hide it. If this * is set, make sure to call the \`destroy\` method when you are done to prevent * memory leaks. */ autoDestroyDisabled: boolean; /** The [HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement) to present in fullscreen mode. */ element: HTMLElement | nullish; /** Icon displayed in the component's button. * Search [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/) for possible values. */ icon: Nil | string; /** The component's default label. */ label: Nil | string; /** Replace localized message strings with your own strings. */ messageOverrides?: typeof this.messages._overrides; position: __esri.UIPosition; referenceElement: ArcgisReferenceElement | Nil | string; /** * The current state of the component. */ readonly state: "ready" | "disabled" | "active" | "feature-unsupported"; destroy(): Promise<void>; readonly arcgisPropertyChange: TargetedEvent<this, { name: "state"; }>; readonly arcgisReady: TargetedEvent<this, undefined>; } export {};