typograph-editor-documentation
    Preparing search index...

    Release Notes - Version 1.0.0-20261022.2

    A point release after 20261022.1: giving an element a gradient no longer reports an error, and a host is told when a spread's pages are kept together.

    • An event when "Keep pages together" is turned on or off (TYP-976). A host listening on document for typograph_keep_pages_together gets {container_index, keep_together} whenever a spread's Keep pages together changes, from the Page panel or from the host itself through typograph.set_keep_pages_together(container_index, keep); get_keep_pages_together() reads it. The toggle is now one undo step, so it can be undone and typograph_document_changed fires. Turning it off lets the pages pair the way the rest of the document does straight away: with facing pages off, a kept-together spread becomes single pages.
    • "get_rgb_hex_string is not a function" after giving an element a gradient (TYP-975). The gradient drew correctly, but every redraw of a gradient-filled element logged this error in the browser console and in get_load_errors(), which kept growing as long as the document was open. It no longer does.
    • A gradient-filled image frame drew green where the frame's fill is painted without building a gradient (an empty picture frame, for instance). It now takes the colour of the gradient's first stop.
    • No "Keep pages together" switch on a cover. A cover is always one block, so the Page panel no longer offers the switch there.
    • Canvas pin cbe6543 (from d1194b8): canvas #205 (TYP-975) and #206 (TYP-976).
    • TYP-975: PageElement.get_fill_style() asked a gradient swatch for get_rgb_hex_string(), which only a flat swatch has; it threw, the catch logged a load error and answered '#0f0', on every draw. It now answers a gradient with its first stop's colour (new gradient_first_stop_color()) and never 'NONE', which would make the draw sites skip the gradient. The stroke side had the same fault, fixed in TYP-706. Browser suite run_radial_gradient_tests(): 25.
    • TYP-976: document.set_keep_pages_together(container_index, keep) / get_keep_pages_together() (also on typograph) — one structure undo step, page bar and canvas refreshed, and typograph_keep_pages_together sent with {container_index, keep_together}. False for a spread that does not exist, the cover, or during a spine edit; the value it already has sends nothing. The facing structure is normalised inside the same undo step, so turning it off can re-pair the spread's pages at once (with facing pages off, a kept pair becomes single pages). An undo or redo of it fires typograph_document_changed only. The Page panel's switch (ParameterBarPage.update_keep_together()) calls it; it wrote allow_page_shuffle directly, with no undo step and no event. Browser suite run_keep_together_tests(): 20.
    • canvas-service pins the same commit; deploy it with this release. Layouts do not change.