@openpresentation/gallery 0.26.10 → 0.28.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,38 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.28.0 (2026-10-26)
6
+
7
+ - WI-2: the `agenda-split` layout (Agenda beside), a concise agenda beside its title and introduction, listed after `agenda` in the Openers and closers group. Detailed entries stay on `agenda`, which keeps the full slide width. The catalog has 29 layouts and a preview for the new one.
8
+ - WI-3: a `three-column` layout (Text group, after `two-column`): three independent columns that each take any content kind, including video, timeline and groups, with pictures shown whole by default (`design.imageFit: "contain"`). A new id needs no drawing declaration.
9
+ - WI-1 (output-changing: content sizing): content takes the size and height it asks for before anything shrinks, and peers share one size.
10
+ - An `auto` row of a layout takes what its content needs, up to the space the headings and the numeric rows' content leave, instead of at most half the content box. When the auto rows do not all fit, each gives up the same fraction of what it can give up above its content's height at the minimum font size, so three detailed passages in an all-auto stack keep 25 px (were 22/20/18 px), a code payload no longer overflows at 16 px, and a one-line note keeps nearly its need beside a dense row.
11
+ - Content-sized text is measured the way the fit that places it measures it (outlines and raster padding included), so a single-line auto note draws at its 25 px starting size instead of 24 px: the closing next step, the comparison verdict and the notes of `metrics`, `chart`, `table` and `timeline`.
12
+ - A metric value asks for its 76 px role size whatever its box and fits down only when it does not fit; it asked for `min(76, 0.28 × box height)`, which drew 46.27 px in a compact region and about 50 px on `dashboard`.
13
+ - A region whose blocks flow in a `column`, and a group's blocks in one column, stack at the heights they need, one gap apart, placed by the region's `anchor`, instead of an equal share each (a one-line paragraph sat 248 px above its long sibling). Charts, pictures, tables, timelines and videos take what the measured blocks leave; a column with explicit `weights` keeps its tracks.
14
+ - Peers side by side share one fitted size per kind (prose, lists): regions of one role in the same rows (`two-column`, `comparison`, three columns) and the blocks of one row of a `grid` or `row` flow. Three peer lists draw at one size (were 32/30/27 px).
15
+ - The gallery's `dashboard`, `faq` and `statement` layout previews are regenerated with the new engine (metric values at 76 px, FAQ pairs stacked one gap apart); no gallery record changes.
16
+ - WI-2 (declared drawing change, a minor release): the single-message layouts place the title and what belongs to it as one group. `closing` and `statement` are all-`auto` columns anchored in the middle, so the supporting text sits one gap under the title and subtitle (it used to sit a few hundred pixels below) and the title-only slide draws as before; `closing` also keeps a contact or QR picture whole (`imageFit: contain`). `quote` sizes its quotations `auto`, so the title and the quotation are centered together. `comparison` sizes its options `auto`, so the verdict follows the options instead of sitting at the foot of the slide (dense options keep their size). `image` now says that the picture is shown whole, and that a full-bleed crop needs an explicit `fit: "cover"` (wording only). The layouts' previews are regenerated.
17
+ Drawing change (existing records that draw differently or are gone): `layouts:closing`, `layouts:statement`, `layouts:quote`, `layouts:comparison`.
18
+ - WI-3 (output-changing: columns and media): `two-column` takes timelines, and its pictures are shown whole.
19
+ - `two-column` accepts every content kind, the timeline included (a timeline in a column was drawn below the layout's grid with a `layout-unplaced` warning), and sets `design.imageFit: "contain"`, so a picture beside text is shown whole at the region's anchor instead of cropped into a tall strip. An explicit `fit` on the block still wins.
20
+ - `image-beside` and `logos` write `anchor: "middle"` on their media regions: a picture shown whole now sits at its region's anchor (top by default), and these two keep the centered look they had.
21
+ Drawing change (existing records that draw differently or are gone): `layouts:two-column`, `layouts:image-beside`, `layouts:logos`.
22
+ - WI-4 (output-changing: type roles): one readable type scale, headings without stranded words, typographic quotes and code in fitted panels.
23
+ - Body prose and the subtitle ask for 28 px (21 pt), up from 25 px; list items stay at 32 px and a table keeps 25 px. `fitText` and `fitRichText` default to 28 px, the `flow: auto` long-block test counts lines at 28 px, and every size still fits down to `composition.minFontSize`. Explicit run sizes win. Paragraphs and lists of one stacked column that do not fit at their role sizes shrink together to one size (they read 23, 21 and 25 px before).
24
+ - A wrapped title or subtitle is balanced: it keeps its size and line count and picks the break set with the least variance of line widths, with a credit for a line that ends a sentence ("A smaller pilot. / A clearer decision.", not "A smaller pilot. A / clearer decision."). An explicit line break stays and body text keeps the greedy wrap. New `balance` option of `fitText` and `RichTextOptions`.
25
+ - A quote body asks for 40 px and fits down through the former 28 px. Its marks are the typographic pair of the deck language (a new `QUOTE_MARKS` table and `quoteMarksFor`: “…” for English, „…“ for German, «…» for French and Spanish, 「…」 for Japanese, ASCII only for a language the table does not list; a deck with no language reads as English). Attribution, role and source join with an en dash (` – `). The PPTX export writes the same characters (they come from the shared quote layout) and import reads them back, and still reads the older straight marks and ` - `. New `language` option of `layoutQuote`.
26
+ - Code asks for 22 px (was 18 px) and fits down to the floor; the language or file label keeps its own 14 px role. `layoutCode` returns `bounds` and a code panel shorter than its cell is only as tall as its metadata, source lines and insets, top-anchored.
27
+ - In auto mode a prose block that wraps takes a reading measure of about 70 average characters of its size and follows the content alignment, never at the cost of size; a lone block of up to two lines in a `flow: auto` region (and in an auto-mode composition) uses a 32 px lead size. A kept-empty `flow: auto` region reserves two lines of that size.
28
+ - The gallery layout previews are regenerated with the new engine; no gallery record changes.
29
+ WI-4 of the slide-design plan (`artifacts/slide-design/WORK-ITEMS.md`; triage rows P15, P16, P17, P21 and P34, owner decision D2). Output-changing for every deck with prose, a multi-line heading, a quote or code: render goldens, the 0.19 template goldens and the PPTX archive fixtures move. Validation findings follow the new sizes; a dense deck that fitted at 25 px can fit at a smaller shared size.
30
+ - WI-6: the pillars, team and FAQ layouts set `design.listBullet: "none"`, so a label with its description draws without a bullet; the team layout also accepts a `list` block. The previews of pillars, process, team and FAQ show each label and description as one list entry (`items: [{ text, description }]`), and process numbers its steps with `numbering` instead of typed "1." prefixes.
31
+ Drawing change (existing records that draw differently or are gone): `layouts:pillars`, `layouts:team`, `layouts:faq`.
32
+
33
+ ## 0.27.0 (2026-10-26)
34
+
35
+ - WI-5 (P19, output-changing for every column, bar, line and area chart): the value axis follows its length. Intervals are at least 48 reference pixels apart and there are at most eight, so a chart beside text or in one of three columns draws 0 to 100% in steps of 20 and no longer 0 to 90% in tens (`chartIntervalsFor`, `CHART_MIN_TICK_SPACING_PX`, `CHART_MAX_INTERVALS` on `/composition`; the PPTX export writes the same `c:majorUnit`). A chart box with room for it (at least 216 x 288 reference pixels) floors its text at 18 px instead of 16 (`chartTextSize`, `CHART_TEXT_FLOOR_PX`), so three-column and dashboard charts read larger in the preview and in PowerPoint. The preview draws the chart panel without an outer frame (the axes and gridlines draw the plot, and the PPTX chart area never had a line). Zero baselines, explicit axis settings and the other chart types' own scales are unchanged. The tick-label column of the waterfall, histogram and pareto previews is sized for the sparser axis, so "100" no longer wraps after "90". The gallery's layout previews for `chart`, `chart-beside`, `table`, `table-beside` and `dashboard` are regenerated to match.
36
+
5
37
  ## 0.26.10 (2026-10-25)
6
38
 
7
39
  No package changes; released with the set.
package/README.md CHANGED
@@ -9,7 +9,7 @@ It holds every layout, theme, colour scheme, font scheme, narrative, audience, p
9
9
  never fetch records: a host registers the catalogs it trusts, and this package is the catalog every OPF host registers by
10
10
  default.
11
11
 
12
- **2.x is the catalog of OPF 0.19.** Its layouts are the 28 OPF 0.19 layouts named by intent, written as templates
12
+ **2.x is the catalog of OPF 0.19.** Its layouts are the 30 OPF 0.19 layouts named by intent, written as templates
13
13
  (`opf-layout/v2`). 1.x holds the 278 OPF 0.18 layouts. 2.0.0 changed the layouts with no migration path: see
14
14
  [Layouts](#layouts) and the [changelog](CHANGELOG.md).
15
15
 
@@ -67,6 +67,7 @@ automatically. A deck's own layouts are records of the same schema under `catalo
67
67
  | `cover` | The opening slide: title, subtitle and an optional picture. |
68
68
  | `section` | A divider between parts: the section title and an optional subtitle. |
69
69
  | `agenda` | What the talk covers: the parts, as one list that flows into columns when long. |
70
+ | `agenda-split` | A concise agenda beside its title and introduction. |
70
71
  | `statement` | One message, large and alone. |
71
72
  | `closing` | The last slide: thanks, the call to action and contact details. |
72
73
  | **Text** | |