uiconfig.js API
    Preparing search index...

    Class UiConfigRendererBlueprint

    Hierarchy (View Summary)

    • UiConfigRenderer
      • UiConfigRendererBlueprint
    Index
    _autoFrameEvents: boolean
    _refreshQueue: Record<
        TUiRefreshModes,
        [UiObjectConfig, number, string | undefined][],
    >
    _root: Root
    config: UiObjectConfig<any, "panel">
    methods: UiConfigMethods
    raf: () => void
    THREE: THREE | undefined = ...
    tooltip?: false | UiTooltipHook

    The tooltip hook of this renderer, or false for no tooltips; default: the static Tooltip of its class

    Tooltip: UiTooltipHook

    The tooltip hook of the renderers that set no tooltip: set it here for every renderer, or on a renderer class for those of that class (UiConfigRendererTweakpane.Tooltip = ...). Default: the native title (titleTooltip). See UiTooltipHook.

    • get tooltipHook(): UiTooltipHook | undefined

      The tooltip hook that this renderer uses (tooltip, else the static Tooltip of its class), or none

      Returns UiTooltipHook | undefined

    • get undoManager(): JSUndoManager | undefined

      Returns JSUndoManager | undefined

    • set undoManager(value: JSUndoManager | undefined): void

      Parameters

      • value: JSUndoManager | undefined

      Returns void

    • The function that this renderer adds to config.uiRefresh (addRefreshListener). Default: queues a refresh of the config in this renderer (addToRefreshQueue, postFrame when no mode is given).

      Parameters

      • config: UiObjectConfig

      Returns UiRefreshListener

    • Adds a listener to an event type.

      Parameters

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

        The type of event to listen to.

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

        The function that gets called when the event is fired.

      Returns void

    • Makes config.uiRefresh() refresh the UI of the config in this renderer, next to the other renderers that draw it (UiConfigMethods.AddRefreshListener). Call it when the config is rendered; once per config: a second call keeps the first listener. disposeUiConfig and removeRefreshListener remove it.

      Parameters

      • config: UiObjectConfig

      Returns () => void

      a function that removes the listener

    • Parameters

      • mode: TUiRefreshModes | "immediate"
      • uiConfig: UiObjectConfig
      • deep: boolean
      • delay: number

      Returns void

    • Parameters

      • Optionalconfig: UiObjectConfig<any, string, any>
      • Optionalparams: UiObjectConfig<any, string, any>

      Returns void

    • Fire an event type.

      Parameters

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

          The type of event that gets fired.

      Returns void

    • Disposes the UI associated with a config, doesn't makes change to the object or its parent. Removes the refresh listener of this renderer from the config; the listeners of other renderers, and a function assigned to config.uiRefresh, stay.

      Parameters

      • Optionalconfig: UiObjectConfig<any, string, any>
      • OptionalperformDispose: boolean

      Returns void

    • Checks if listener is added to an event type.

      Parameters

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

        The type of event to listen to.

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

        The function that gets called when the event is fired.

      Returns boolean

    • Parameters

      • mode: TUiRefreshModes

      Returns void

    • Parameters

      • Optionaldeep: boolean
      • Optionalmode: TUiRefreshModes | "immediate"
      • Optionaldelay: number

      Returns void

    • Parameters

      • config: UiObjectConfig

      Returns void

    • Removes a listener from an event type.

      Parameters

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

        The type of the listener that gets removed.

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

        The listener function that gets removed.

      Returns void

    • Removes the refresh listener of this renderer from a config (addRefreshListener); other renderers keep theirs

      Parameters

      • config: UiObjectConfig

      Returns void

    • Sets, changes or removes the tooltip of an element of this renderer with its tooltipHook (see setElementTooltip): call it again when the text changes, and with no text to remove it.

      Parameters

      • element: HTMLElement
      • Optionaltext: string
      • Optionalinfo: Partial<UiTooltipInfo>

      Returns void

    • Returns void

    • Returns void