turbodombuilder - v0.9.58
    Preparing search index...

    Class Listener<TargetType, CallbackType>

    Listener

    Object representing an event listener, storing its metadata (type, target, toolName, options, manager) and providing utilities to execute and match it.

    Type Parameters

    Index

    Constructors

    Properties

    type: string

    Event type (e.g., "click", "pointermove").

    target: TargetType

    Target node this listener is associated with.

    toolName: string

    Name of the tool this listener is bound to (if any).

    callback: CallbackType

    Callback provided by the user.

    bundledListener: (e: Event) => any

    Bundled listener that adapts native events to the ListenerCallback signature.

    Listener options used for registration and additional behaviors.

    Associated event manager used to coordinate listener execution.

    lastExecutionFrame: number

    Last animation frame index during which this listener executed.

    lastExecutionTime: number

    Last timestamp (ms) at which this listener executed.

    Methods

    • Function

      execute

      Parameters

      • e: Event

        Event passed to the callback.

      Returns Propagation

      Propagation returned by the callback.

      Executes the listener using its bundled signature.

    • Function

      executeOn

      Parameters

      • e: Event

        Event passed to the callback.

      • target: TargetType

        Target node.

      • ...args: any[]

        Additional arguments forwarded to the callback.

      Returns any

      Whatever the callback returns (typically Propagation).

      Executes the underlying callback on an explicit target.

    • Function

      match

      Parameters

      Returns boolean

      Whether this listener matches.

      Checks whether this listener matches a subset of properties.