Class UiConfigRendererBase<TUiNode>Abstract

Type Parameters

  • TUiNode = any

Hierarchy

  • SimpleEventDispatcher<
        | "preFrame"
        | "preRender"
        | "postRender"
        | "postFrame">
    • UiConfigRendererBase

Constructors

Properties

_refreshQueue: Record<TUiRefreshModes, [UiObjectConfig<any, string, any>, number, undefined | string][]> = ...
_root?: TUiNode
config: UiObjectConfig<any, "panel", any> = ...

Methods

  • Adds a listener to an event type.

    Parameters

    • type:
          | "preRender"
          | "postRender"
          | "preFrame"
          | "postFrame"

      The type of event to listen to.

    • listener: ((event: IEvent<
          | "preRender"
          | "postRender"
          | "preFrame"
          | "postFrame">) => void)

      The function that gets called when the event is fired.

        • (event): void
        • Parameters

          • event: IEvent<
                | "preRender"
                | "postRender"
                | "preFrame"
                | "postFrame">

          Returns void

    Returns void

  • Fire an event type.

    Parameters

    • event: IEvent<
          | "preRender"
          | "postRender"
          | "preFrame"
          | "postFrame">

    Returns void

  • Disposes the UI associated with a config, doesn't makes change to the object or its parent.

    Parameters

    • Optionalconfig: UiObjectConfig<any, string, any>
    • performDispose: boolean = true

    Returns void

  • Checks if listener is added to an event type.

    Parameters

    • type:
          | "preRender"
          | "postRender"
          | "preFrame"
          | "postFrame"

      The type of event to listen to.

    • listener: ((event: IEvent<
          | "preRender"
          | "postRender"
          | "preFrame"
          | "postFrame">) => void)

      The function that gets called when the event is fired.

        • (event): void
        • Parameters

          • event: IEvent<
                | "preRender"
                | "postRender"
                | "preFrame"
                | "postFrame">

          Returns void

    Returns boolean

  • Removes a listener from an event type.

    Parameters

    • type:
          | "preRender"
          | "postRender"
          | "preFrame"
          | "postFrame"

      The type of the listener that gets removed.

    • listener: ((event: IEvent<
          | "preRender"
          | "postRender"
          | "preFrame"
          | "postFrame">) => void)

      The listener function that gets removed.

        • (event): void
        • Parameters

          • event: IEvent<
                | "preRender"
                | "postRender"
                | "preFrame"
                | "postFrame">

          Returns void

    Returns void