clock exists only as a test seam; production callers leave it at
performance.now. Owners that expose their own now() seam pass it
through so a spy on the owner still drives this overlay's timing.
Number of senders with a visible (active or lingering) entry.
True once dispose has run; the overlay accepts no further entries.
Removes every entry immediately.
Unregisters the overlay, cancels timers, stops animating. Idempotent.
Starts the hold-then-fade lifetime for sender's entry.
Removes a sender's entry immediately (presence-leave/disconnect).
Stores sender's current entry as active, replacing any previous one and
cancelling an in-flight linger, and restarts the maxAgeMs expiry timer.
Per-sender presence entries with a hold-then-fade lifetime, rendered through the viewport overlay registration and independent of the viewer's active tool. Entries are stamped with local time (remote clocks are never trusted).
lingerholds the final entry forholdMs, fades it overfadeMs, and deletes it;removedeletes immediately. An active entry not updated formaxAgeMsis lingered by a timer — an idle map never renders, so expiry cannot ride on the draw path. The overlay never touches elements, history, or persisted state, and never moves the viewer's camera.Internal to
@fieldnotes/core: not exported fromsrc/index.ts.