Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebViewerConfigBundle

Hierarchy

  • WebViewerConfigBundle

Index

Constructors

constructor

Accessors

activeConfiguration

configurationList

currentIndex

  • get currentIndex(): number
  • Returns number

length

  • get length(): number
  • Returns number

Methods

loadConfig

  • Loads a scene defined as .json configuration file.

    Parameters

    • loader: SceneLoader

      Instance of a SceneLoader associated with the currently rendered scene.

    Returns Promise<void>

next

  • Switches to the next configuration (if multiple urls were provided).

    Parameters

    • loader: SceneLoader

      Instance of a SceneLoader associated with the currently rendered scene.

    Returns Promise<void>

previous

  • Switches to the previous configuration (if multiple urls were provided).

    Parameters

    • loader: SceneLoader

      Instance of a SceneLoader associated with the currently rendered scene.

    Returns Promise<void>

setIndex

  • setIndex(index: number, loader: SceneLoader): Promise<void>
  • Switches to the configuration with the given index.

    Parameters

    • index: number

      Index of the configuration to switch to.

    • loader: SceneLoader

      Instance of a SceneLoader associated with the currently rendered scene.

    Returns Promise<void>

unload

  • unload(): void
  • Unloads this configuration and disposes all objects.

    Returns void

Generated using TypeDoc