weasel API - v0.8.0
    Preparing search index...

    Function applyHitExistingGate

    • Hit-existing gate shared by the drag-insert tool hooks. When the consumer supplies a hitExisting callback, run it at the cursor's world point. On hit (string id or array of ids), set the selection and return true — the caller should claim and skip insertion. On miss or when no callback is supplied, return false.

      Parameters

      • ctx: ToolCtx<unknown>
      • hitExisting: ((p: { x: number; y: number }) => string | string[] | null) | undefined

      Returns boolean