@openpresentation/gallery 0.35.0 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.36.0 (2026-11-25)
6
+
7
+ - Two narrative records ported from STORYD v1's story frameworks: `quarterly-review` (the team-facing quarterly update: objectives, wins, progress, financials, challenges, lessons, next-quarter goals, recognition, discussion, conclusion; the leadership business review with asks stays `qbr`) and `operational-review` (situation, complication, root causes, resolution, roadmap, action plan, decision). With them every STORYD v1 framework has a gallery narrative.
8
+ - Right-aligned and centered wrapped text is flush again: the space that ends a soft-wrapped line hangs at the wrap, as PowerPoint and a browser draw it, instead of pushing the line's glyphs one space (centered: half a space) away from the edge. Core records that whitespace on the line (`TextLineSource.hang` and `advance`, the same on `RichTextLine`) and `placeTextLines` aligns the line by its glyphs (its placed `width` is the line's whole advance, `hang` included), so the preview (SVG, PNG and PDF) and the measured PowerPoint export (each line box, and a heading's paragraph margins) put the glyphs of every line of a heading, body text, list, table cell or caption on the same edge. In a right-to-left line the whitespace hangs on the left: a right-to-left line that filled its box is no longer drawn and exported a space short of the right edge, and a centered or left-aligned right-to-left line is drawn with its glyphs centered or on the left edge (its PowerPoint paragraph stays anchored by its glyphs). The text of each line is unchanged, so the editor's trace and the PowerPoint import read it as before; start-aligned left-to-right lines do not move, and a space before a line break or at the end of the text still counts, as it does in PowerPoint. The ink of such a line is measured without its hanging whitespace. The preview names the glyphs' anchor of a left-to-right line whose whitespace hangs in `data-opf-anchor` and `data-opf-anchor-x`, where the canvas editor lays its input, and in `data-opf-hang` how far from it the text with its whitespace is anchored (as the native export anchors its paragraph).
9
+ - An agenda of seven or more entries stands in the middle of the body as a short agenda does, instead of its columns starting at the top of a mostly empty body (C09). A list dealt into columns under a `middle` or `bottom` anchor now stands at the anchor as one block, as tall as its tallest column, and the `agenda` layout's body region says `anchor: "middle"`. Columns as even as each other now give the first columns the longer share: seven entries are 4 + 3 instead of 3 + 4, fourteen in three columns 5 + 5 + 4 (the last entry no longer counts as shorter for lacking the gap below it).
10
+ Drawing change (existing records that draw differently or are gone): `layouts:agenda`.
11
+ - The `chart-beside` layout sets its aside in the middle of the aside's column, level with the chart, instead of at the top. The aside is as tall as the chart, so a short takeaway, a short list, a metric or a quote stood in the top third of the column with the rest empty; the record's `aside` region now says `anchor: "middle"`. A quote aside keeps its card and its quote mark: a lone quote stacked at a middle or bottom anchor is measured with its card's insets, so it no longer loses the card for lack of room.
12
+ Drawing change (existing records that draw differently or are gone): `layouts:chart-beside`.
13
+ - The `code` layout sets its aside in the middle of the aside's column, level with a short snippet, instead of at the top of the column. The record's `aside` region now says `anchor: "middle"`.
14
+ Drawing change (existing records that draw differently or are gone): `layouts:code`.
15
+ - The `dashboard` layout's KPI row is one row of metrics over the charts (C05). Its `lead` region flowed as a grid, so four metrics were dealt 2 x 2 into the row's height and set at the floor, and the slide gave way to the automatic grid with the fourth metric alone beside squeezed charts; the region now says `flow: "row"`, so four or five metrics stand side by side and the charts keep the full width. One or two metrics in a layout's metric-only row are centered in their cells as three are, at their display size, instead of start-aligned as a figure beside a chart (LH-112).
16
+ Drawing change (existing records that draw differently or are gone): `layouts:dashboard`.
17
+ - The `pillars` and `team` layouts set a card's content in the middle of its card instead of low in it. Their records had `anchor: "bottom"`: a row of labeled cards (a heading over its text) stood in the lower part of the cards with an empty band above, a short text between pictures sat alone at its card's foot, and short display-word pillars sat below the middle of the body. The records now say `anchor: "middle"`, as `two-column` and `three-column` do; the cards, their shared line and the hug-and-center behavior of short body text are unchanged.
18
+
19
+ ## 0.35.1 (2026-11-23)
20
+
21
+ - The `two-column` and `three-column` layouts set a column's content in the middle of its box instead of at its foot. Their records had `anchor: "bottom"`, which stranded a short block (a few words, a picture or a chart beside text) alone at the bottom of an empty full-height box; the records now say `anchor: "middle"`. The boxes, their equal height and the hug-and-center behavior of short body text are unchanged.
22
+
5
23
  ## 0.35.0 (2026-11-23)
6
24
 
7
25
  - Breaking (0.35, output-changing for Arabic, Persian and Urdu decks): a deck or slide in Arabic, Persian or Urdu that names no font for the Arabic script now uses Times New Roman for headings and Arial for body in the complex-script slot, the fonts PowerPoint's Office theme gives the Arabic script, instead of Arabic Typesetting, whose small Arabic was drawn at about two thirds of the size of the Latin text beside it, in OPF and in PowerPoint. Arabic text in such decks is now drawn at about the Latin size, so it takes more room: lines break differently, and a full slide may paginate. The language vocabulary (`ar`, `fa`, `ur`) and the gallery's `arabic`, `persian` and `urdu` language records name the new font scheme `times-new-roman-arial`; Arabic Typesetting stays a scheme a deck can choose (`design.fontScheme`, or a Language object's `fontScheme`), and nothing preserves the old look for a deck that relied on the default. The PPTX names Times New Roman and Arial in the theme's major and minor complex-script slots and its `Arab` entry, at the composed size. The font policy gains script replacements (`replacement.scripts`, keyed by ISO 15924 code, with its schema and the `FontScriptReplacement` type): runs of that script in the family are measured and drawn with the entry's open face at its own preview-only size factor. Arial and Times New Roman draw Arabic-script runs with Noto Naskh Arabic at 0.96 and 0.95 (the sum of the real fonts' advances over Noto Naskh Arabic's on the Arabic-script corpus; each row records its basis), while their Latin text keeps Arimo and Tinos at the composed size; this also applies to Arabic text in a deck whose scheme is `arial` or `times-new-roman`, which was drawn at full size with Noto Sans Arabic (about 17 percent wider than PowerPoint draws Arial) or Noto Naskh Arabic (about 5 percent wider). Fixed on the way (renderer): a text run with its own `language` lost the size factor when the deck's font scheme itself names the Arabic font (an English deck on `arabic-typesetting` or `sakkal-majalla` with one run marked `ar` drew that run at full size beside Arabic drawn at the factor), because its script profile was built from the families the registry draws rather than the ones the scheme names. `docs/migrations/0.35.md` and `docs/font-fidelity.md` describe the change.