@mocanvas/sync · function
declare function compareStamps(a: Stamp, b: Stamp): numberA total order on stamps: Lamport first, then client id. Two peers holding the same pair always agree, which is what makes the merge deterministic.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.