Field Notes
    Preparing search index...

    Interface PingInputOptions

    interface PingInputOptions {
        color?: string;
        durationMs?: number;
        longPressEnabled?: boolean;
        longPressMs?: number;
        minIntervalMs?: number;
        radius?: number;
        shouldPing?: () => boolean;
        slopPx?: number;
    }
    Index
    color?: string

    Emission style forwarded to hosts; matches PingTool defaults.

    durationMs?: number
    longPressEnabled?: boolean

    Opt-in for the long-press gesture. Off by default: a hidden hold-to-ping gesture surprises users outside shared-canvas products, so hosts enable it deliberately. The keyboard/programmatic paths (pingAtPointer, pingAt) are always available. Default false.

    longPressMs?: number

    Hold duration before a still press pings. Default 600.

    minIntervalMs?: number

    Minimum interval between emitted pings, shared across the long-press and keyboard/programmatic paths. Faster pings are dropped entirely. Default 300.

    radius?: number
    shouldPing?: () => boolean

    Host veto consulted at fire time on every path (e.g. return false while a ping tool is active to avoid double pings). A veto does not consume the rate-limit interval.

    slopPx?: number

    Maximum pointer travel while holding; moving further cancels. Default 8.