Class InstanceAPI

Hierarchy

  • InstanceAPI

Constructors

Properties

$element: App<Element>
$i18n: Composer<{}, {}, {}, string, never, string>

Type declaration

    Type declaration

      Type declaration

        $vApp: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>

        The instance of Vue R4MP application controlled by this InstanceAPI.

        Type declaration

          Type declaration

            Type declaration

              Type declaration

                Type declaration

                  Type declaration

                    Type declaration

                      Type declaration

                        Type declaration

                          Type declaration

                            Memberof

                            InstanceAPI

                            _isFullscreen: boolean
                            event: EventAPI
                            fixture: FixtureAPI
                            geo: GeoAPI
                            panel: PanelAPI
                            startRequired: boolean = false
                            ui: {
                                exposeMeasurements: boolean;
                                exposeOids: boolean;
                                formatNumber: ((num) => string);
                                getZoomIcon: (() => string);
                                maptip: MaptipAPI;
                                scrollToInstance: boolean;
                                suppressNumberLocalization: boolean;
                            }

                            Type declaration

                            • exposeMeasurements: boolean
                            • exposeOids: boolean
                            • formatNumber: ((num) => string)
                                • (num): string
                                • Parameters

                                  • num: number

                                  Returns string

                            • getZoomIcon: (() => string)
                                • (): string
                                • Returns string

                            • maptip: MaptipAPI
                            • scrollToInstance: boolean
                            • suppressNumberLocalization: boolean

                            Accessors

                            • get animate(): boolean
                            • The current animation status.

                              Returns boolean

                              Memberof

                              InstanceAPI

                            • get isFullscreen(): boolean
                            • Whether the app is fullscreen.

                              Returns boolean

                              Memberof

                              InstanceAPI

                            • get language(): string
                            • The current locale string for the app.

                              Returns string

                              Memberof

                              InstanceAPI

                            • get screenSize(): null | string
                            • The 'screen' size for the app. Returns the largest screen class on the element; 'lg', 'md', 'sm' or 'xs'.

                              Returns null | string

                              Memberof

                              InstanceAPI

                            • get started(): boolean
                            • Whether the app has been started.

                              Returns boolean

                              Memberof

                              InstanceAPI

                            Methods

                            • Retrieves a global Vue component by its id.

                              Parameters

                              • id: string

                              Returns any

                              Memberof

                              InstanceAPI

                            • Registers a global Vue component given an id and a constructor.

                              Type Parameters

                              • VC extends ComponentPublicInstanceConstructor<{
                                    $: ComponentInternalInstance;
                                    $attrs: Data;
                                    $data: {};
                                    $el: any;
                                    $emit: ((event, ...args) => void);
                                    $forceUpdate: (() => void);
                                    $nextTick: (<T>(this, fn?) => Promise<void>);
                                    $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{}>>, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & MergedComponentOptionsOverride;
                                    $parent: null | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
                                    $props: {
                                        class?: unknown;
                                        key?: string | number | symbol;
                                        onVnodeBeforeMount?: VNodeMountHook | VNodeMountHook[];
                                        onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[];
                                        onVnodeBeforeUpdate?: VNodeUpdateHook | VNodeUpdateHook[];
                                        onVnodeMounted?: VNodeMountHook | VNodeMountHook[];
                                        onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[];
                                        onVnodeUpdated?: VNodeUpdateHook | VNodeUpdateHook[];
                                        ref?: VNodeRef;
                                        ref_for?: boolean;
                                        ref_key?: string;
                                        style?: unknown;
                                    };
                                    $refs: Data;
                                    $root: null | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
                                    $slots: Readonly<InternalSlots>;
                                    $watch<T>(source, cb, options?) => WatchStopHandle;
                                } & Readonly<ExtractPropTypes<{}>> & ShallowUnwrapRef<{}> & ExtractComputedReturns<ComputedOptions> & MethodOptions & ComponentCustomProperties & {}, any, any, any, ComputedOptions, MethodOptions> & ComponentOptionsBase<Readonly<ExtractPropTypes<{}>>, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, VC> & VNodeProps & AllowedComponentProps & ComponentCustomProps

                              Parameters

                              • id: string
                              • vueConstructor: any

                              Returns VC

                              Memberof

                              InstanceAPI

                            • Gets the [cloned] config linked to the current language of the app.

                              Returns any

                              Memberof

                              InstanceAPI

                            • Private

                              Initializes a Vue R4MP instance with the given config and options

                              Parameters

                              • Optional configs: RampConfigs

                                language-keyed R4MP config

                              • Optional options: RampOptions

                                startup options for this R4MP instance

                              Returns void

                            • Reloads Vue R4MP instance with a new config

                              Parameters

                              • Optional configs: RampConfigs

                                language-keyed R4MP config

                              • Optional options: RampOptions

                                startup options for this R4MP instance

                              Returns void

                            • If scrollToInstance is set to true in the configuration file, scrolls the browser to this RAMP component.

                              Returns void

                              Memberof

                              InstanceAPI

                            • Sets the language of the app to the specified string (e.g. 'en' or 'fr').

                              Parameters

                              • language: string

                                The locale string to switch to

                              Returns void

                              Memberof

                              InstanceAPI

                            • Toggles fullscreen for the app.

                              Returns void

                              Memberof

                              InstanceAPI

                            • Updates the screen reader alert. Use this to inform screen reader users of visual changes in the app (pieces of ui appearing/leaving).

                              Parameters

                              • alert: string

                                the alert to make available to screen readers

                              Returns void

                              Memberof

                              InstanceAPI

                            • Returns the pinia store of the specified id, if it exists, else returns undefined.

                              Type Parameters

                              • T

                              Parameters

                              • id: string

                                the id of the store to return

                              Returns undefined | Readonly<T>

                              Memberof

                              InstanceAPI

                            Generated using TypeDoc