Field Notes
    Preparing search index...

    Type Alias PathPresence

    PathPresence:
        | {
            color?: string;
            feet: number;
            kind: "path";
            points: readonly Point[];
            segmentColors: readonly string[];
        }
        | { cleared: true; kind: "path" }

    The wire shape of a movement-path presence payload. Presence data is untyped on the wire, so hosts discriminate on kind; isPathPresence validates a received payload before it reaches the overlay. Distance is sender-authoritative: receivers render the payload's feet and pre-resolved segmentColors and never recompute from their own grid or range bands. Paths are ephemeral by contract: presence only — never elements, undo history, persisted canvas state, or durable operations. The emission's anchorKey is host-private and never travels on the wire.

    Type Declaration

    • {
          color?: string;
          feet: number;
          kind: "path";
          points: readonly Point[];
          segmentColors: readonly string[];
      }
      • Optional Readonlycolor?: string
      • Readonlyfeet: number
      • Readonlykind: "path"
      • Readonlypoints: readonly Point[]
      • ReadonlysegmentColors: readonly string[]

        One entry per segment: points.length - 1 colours.

    • { cleared: true; kind: "path" }