Documentation
    Preparing search index...

    Class AssetActiveCategoryRendererPluginInternal

    Plugin that handles the active categories for the asset preview. It is responsible for managing the state of the active categories and persisting it to the URL query, as well as syncing it with the layer manager.

    Hierarchy

    • RendererPlugin & DisposableManaged & EventBus<Events, this> & Stateful<
          Write<
              WithCompute<WithDevtools<StoreApi<Store>>, ComputedStore>,
              StoreSubscribeWithSelector<Store & ComputedStore>,
          >,
          this,
      >
      • AssetActiveCategoryRendererPlugin

    Implements

    • AssetRendererPlugin
    Index

    Constructors

    Methods

    • Adds the given Disposable to be owned by this plugin.

      Parameters

      • disposable: Disposable

      Returns void

    • Adds an event listener for a specific event.

      Type Parameters

      • K extends keyof Events

        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 keyof Events

      Parameters

      Returns void

    • The store used by the plugin.

      Returns Write

      Do not use this directly in user-land code. Either:

      • In React code, use the useRendererPluginStore or useRendererPluginStoreLazy hook.
      • In non-React code, add methods to mutate the store to the plugin's API instead.
    • 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

    • Checks if the plugin has been torn down.

      Returns boolean

      true if the plugin has been torn down, otherwise false.