Field Notes
    Preparing search index...

    Type Alias MeasurePresence

    MeasurePresence:
        | {
            cells: number;
            color?: string;
            end: Point;
            feet: number;
            kind: "measure";
            start: Point;
        }
        | { cleared: true; kind: "measure" }

    The wire shape of a shared-ruler presence payload. Presence data is untyped on the wire, so hosts discriminate on kind; isMeasurePresence validates a received payload before it reaches the overlay. Distance is sender-authoritative: receivers render the payload's feet/cells and never recompute from their own grid. Measurements are ephemeral by contract: presence only — never elements, undo history, persisted canvas state, or durable operations.