Colours while editing together, and a text frame that reaches the others at once.
Changed in this release
Swatches are shared while editing together. A colour picked for an element, a swatch added,
changed or removed in the swatch panel, and a gradient reach everyone in the room, so the others
draw the element in its colour and the window that saves keeps the swatch. The swatch panel offers
and − again while editing together. Undo does not take a swatch away from the others: the
library stays as everyone has it, so a colour picked and undone stays as an unused swatch.
Changes in the swatch panel reach the others as they are made, not when the panel closes.
Fixed in this release
A text frame added from the content bar (Title, Subtitle, Body text) reached the others only
once it was moved, and undo could not take it away. It is one step now, and the others see it at
once.
Still not shared while editing together: styles and fonts. The POD settings and the Templates and
Clips tabs stay unavailable while editing together, as before.
Typograph developers notes
TYP-919: SwatchSync (src/swatchsync.ts) keeps a shared map of swatches by uuid; Collaboration
starts it when the canvas has apply_remote_swatches(). After an undo or redo the shared library
wins, because the canvas undoes swatches by restoring the whole library. sharedlibrary.ts has
swatch_library_shared(), and the shared callback of Collaboration a second argument for it.
The swatch panel calls the canvas's flush_open_step() after each change, and SwatchSync writes
the library (k_swatch_library_edited).
The text frame fix is in canvas: RichText.setFont() joins an open step (step_open()).
Canvas pin: 8445db6 → ca70274: canvas #232. canvas-service moves to the same commit.