Removes all DOM listeners and cancels any pending press. Idempotent.
Subscribes to emitted pings. Listeners must not throw; a throwing listener is isolated so it cannot break input handling or other listeners.
Pings a world position directly. Same veto and rate limit as every path.
Pings at the last tracked pointer position (hover moves and presses),
world-converted at call time. Returns false when no pointer has been
seen yet, the host vetoes, or the rate limit drops the ping.
Always-available ping input alongside the active tool: long-press-to-ping plus keyboard/programmatic pings, independent of
PingTool.PingInputis a passive observer by contract. Its DOM pointer listeners are registeredpassive: trueand it never callspreventDefault,stopPropagation, or captures pointers, so the active tool, panning, and pinch navigation behave exactly as if it were absent (with a pencil active, a still hold pings AND the pencil still draws its dot). It also never renders: hosts feed emissions into their ownRemotePingOverlayunder a'self'sender key. Pings are ephemeral — no elements, no undo history, no persisted state, no camera movement.The long-press gesture is opt-in via
longPressEnabled(hosts whose users would not expect hold-to-ping simply leave it off and keep the keyboard paths). When enabled, a long-press arms on the first pointer down (mouse primary button, touch, or pen), fires afterlongPressMsat the original press position, and cancels on movement pastslopPx, a second pointer (two-finger navigation), or pointer up/cancel/leave. Keyboard support is a capability, not a binding: hosts callpingAtPointer()(last tracked hover position, world-converted at call time) orpingAt(world)from their own shortcut handling.