nape-js API
    Preparing search index...

    Class PreCallback

    Callback object passed to PreListener handlers.

    Provides both interactors, the arbiter, and a swapped flag indicating whether the pair order was swapped relative to the listener's options1/options2.

    The handler should return a PreFlag to control the interaction. Do not store this object beyond the handler scope — it is pooled and reused.

    Converted from nape-compiled.js lines 2590–2634.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get swapped(): boolean

      true when the pair order is swapped relative to the listener's options1/options2. Check this if you need to know which interactor matched which filter.

      Returns boolean

    Methods