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

    • RendererPluginBase<Events>
      • AssetNavigationRenderPlugin

    Implements

    • RendererPlugin
    Index

    Constructors

    Properties

    emitter: Emitter<Events> = ...

    An event emitter for handling custom events.

    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 { remove: () => void }

      An object with a remove method to unsubscribe the listener.

    • Registers an event listener handle to be managed by the plugin. Managed listeners will be automatically removed when the plugin is torn down.

      Parameters

      • handle: { remove: () => void } | (() => void)

        The event listener handle to manage.

      Returns void

    • Tears down the plugin by removing all managed event listeners and clearing the event emitter. This method is called when the plugin is being destroyed.

      Parameters

      • _context: RendererPluginContext

        The plugin context provided during teardown.

      Returns void