Documentation
    Preparing search index...

    Class AssetNavigationRenderPluginInternal

    A renderer plugin that manages navigation controllers for an asset. This plugin allows switching between different navigation modes (e.g., asset mode, first-person view, panoramic) by initializing and setting the respective controllers on the underlying controller context.

    Hierarchy

    • RendererPlugin & EventBus<Events, this>
      • AssetNavigationRenderPlugin

    Implements

    • AssetRendererPlugin
    Index

    Constructors

    Methods

    • Adds an event listener for a specific event.

      Type Parameters

      • K extends "onNavigationControllerChanged"

        The type of the event key.

      Parameters

      • event: K

        The event to listen to.

      • listener: (eventData: Events[K]) => void

        The callback function to be invoked when the event is emitted.

      Returns EventHandle

      An EventHandle with a remove method to unsubscribe the listener.

    • Dispatches the given event with given payload on the plugin.

      Type Parameters

      • K extends "onNavigationControllerChanged"

      Parameters

      Returns void

    • Called by the plugin system is initialized.

      Parameters

      • context: unknown

        The context provided to the plugin.

      Returns void

    • Called when the plugin is registered in the system. The result of this hook determines whether the plugin is enabled.

      Parameters

      • context: unknown

        The context provided to the plugin.

      Returns boolean

      Whether the plugin should be enabled.

    • Called when the plugin system is manually torn down. This should be used to clean up resources.

      Parameters

      • context: unknown

        The context provided to the plugin.

      Returns void