Field Notes
    Preparing search index...

    Class RemotePathOverlay

    Renders remote movement paths through the viewport overlay registration, independent of the viewer's active tool. Entries are stamped with local receive time (remote clocks are never trusted). A cleared payload holds the final path for holdMs, fades over fadeMs, and deletes; presence-leave (remove) deletes immediately. An active entry not updated for maxAgeMs is expired 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.

    The per-sender lifetime is LingerOverlay; this class only validates payloads and draws one path.

    Index
    • Applies a presence payload from sender (any opaque per-sender key, e.g. the envelope from). Non-path or malformed payloads are ignored and reported as false, so hosts can feed every presence frame through.

      Parameters

      • sender: string
      • data: unknown

      Returns boolean

    • Removes a sender's path immediately (presence-leave/disconnect).

      Parameters

      • sender: string

      Returns void