Interface ConfigurationInterface

Embed and URL configuration properties.

These properties are used to modify the behavior and appearance of NavVis IVION when first loaded.

interface ConfigurationInterface {
    allowPointCloudActivation?: boolean;
    info.terms.extra?: string;
    info.terms.privacy?: string;
    lang?: string;
    loginToken?: string;
    onLoadComplete?: (() => void);
    onWebGlFailed?: ((reason) => void);
    tracking.code?: string;
    tracking.enabled?: boolean;
    uploadToken?: string;
}

Properties

allowPointCloudActivation?: boolean

Whether to automatically show point clouds when no panorama is available. True by default.

info.terms.extra?: string

HTML to show as extra credits in about box.

info.terms.privacy?: string

HTML to show as privacy policy in about box.

lang?: string

Overrides the language settings from browser language, cookie and local store. Supported language keys are:

  • cs: Czech
  • de: German
  • en: English
  • fr: French
  • ja: Japanese
  • es: Spanish
  • zh: Simplified Chinese
  • zh_tw: Traditional Chinese
loginToken?: string

Logs a user in with the provided JWT, either for local NavVis IVION accounts or e.g. for OAuth Resource Server if the instance is set up to use one.

Note that it also removes logout functionality from the UI and that NavVis IVION will not automatically refresh the token when it is about to expire. Use api.auth.updateToken(...) to apply an updated token before the previous one expires.

onLoadComplete?: (() => void)

Callback that is invoked after data has been loaded and the view has moved to the starting location.

Type declaration

    • (): void
    • Callback that is invoked after data has been loaded and the view has moved to the starting location.

      Returns void

      Deprecated

      Do not use this with the NPM API, use getApi().then(callback) instead.

Deprecated

Do not use this with the NPM API, use getApi().then(callback) instead.

onWebGlFailed?: ((reason) => void)

Callback that is invoked when WebGL initialization has failed.

Type declaration

    • (reason): void
    • Callback that is invoked when WebGL initialization has failed.

      Parameters

      • reason: string

        Error message

      Returns void

      Deprecated

      Do not use this with the NPM API, use getApi().catch(callback) instead.

Param: reason

Error message

Deprecated

Do not use this with the NPM API, use getApi().catch(callback) instead.

tracking.code?: string

JavaScript code to insert into the page, e.g. for adding analytics.

tracking.enabled?: boolean

Whether to insert the tracking code.

uploadToken?: string

Optional, If provided along with loginToken, used for authorizing uploads with the provided JWT, either for local NavVis IVION accounts or e.g. for OAuth Resource Server if the instance is set up to use one.

When not provided, loginToken will be used.

Note that it also removes logout functionality from the UI and that NavVis IVION will not automatically refresh the token when it is about to expire. Use api.auth.updateToken(...) to apply an updated token before the previous one expires.

Generated using TypeDoc