@openpresentation/gallery 0.35.1 → 0.37.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,36 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.37.0 (2026-11-27)
6
+
7
+ - A chart can shade ranges of its value axis behind the data: `chart.bands`, one to six `{ to, label?, color? }` (`ChartBand`), each running from the previous band's `to` (the first from the axis minimum) to its own, in the scheme's neutrals (the text color mixed into the surface in OKLab to a contrast of 1.75, 1.45 and 1.25 against it, lowest band first) or a light tint of a scheme color. Bar, column, line and area charts and their stacked forms draw them, the last `to` extends an automatic axis, and a band's label is written inside the band (a PowerPoint data label at the same place), or, when a label does not fit, every band label of the chart is listed in the legend, bands first (a chart that names its series beside its marks gets a legend of the bands alone). In a chart with bands, the muted marks of a `highlight` keep a contrast of 1.5 from the strongest band (`chartBandMutedColor`). A new chart type, `bullet` (with its gallery record), draws one thin bar per category against a target tick (`mapping.target`) over its bands. Core sorts and clamps the bands and computes their colors and the bullet's plot for every engine (`chartBands`, `chartBandRanges`, `chartBandFill`, `bulletPlot`; the gauge reuses them). The PowerPoint export writes the bands as a stacked chart group on the primary axes and the data on deleted secondary axes of the same scale, so a chart with bands has fixed value-axis bounds in PowerPoint, and the bullet's target as a scatter series with fixed Y error bars on the measure's axes; the band series are workbook columns after the data, and import restores the authored bands, target and type while the caches are unchanged, else reads the bands and targets PowerPoint holds. The editor has a Bands section in the chart inspector, offers Bullet in the chart type picker (taking a column named like a target as `mapping.target`) and marks the target column in the data grid. New warnings: `chart-bands-order` and `chart-bands-unsupported`.
8
+ - Breaking (0.37; no slide draws differently, and `opf fix` makes every change below): eight keys of 0.36 are renamed so that one idea has one name, with no alias. A deck that still writes an old name fails validation (`opf/schema` at the key, a message that names the new key, the safe fix `rename-key`; `rename-value` for a value). Schema removals, named as the gate names them: `font-scheme.schema.json:properties.languageFamily` (the font scheme record also becomes a closed object), `layout.schema.json:$defs.Composition.properties.minFontSize`, `opf.schema.json:$defs.FontScheme.properties.languageFamily`, `opf.schema.json:$defs.TableCellStyle.properties.verticalAlign`, `opf.schema.json:$defs.Speaker.properties.organizationId`, `opf.schema.json:$defs.Composition.properties.minFontSize`, `opf.schema.json:$defs.Composition.properties.maxFontSize`, `opf.schema.json:$defs.Reference.properties.url`, `opf.schema.json:$defs.ImageBackground.properties.tone`, `opf.schema.json:$defs.GradientBackground.properties.tone` and `opf.schema.json:$defs.Chart.properties.line`. Enum values no longer accepted: `ea` and `cs` in `opf.schema.json:$defs.FontScheme.properties.scriptGroup.enum` and `font-scheme.schema.json:properties.scriptGroup.enum` (they were values of `languageFamily`).
9
+ - A font scheme's `languageFamily` is `scriptGroup`, and its values are `latin`, `eastAsian` or `complexScript`; `ea` and `cs` are no longer accepted. The 93 font scheme records of the gallery are rewritten (they draw the same).
10
+ - A styled table cell's `verticalAlign` is `anchor`.
11
+ - A speaker's `organizationId` is `organization`.
12
+ - A composition's `minFontSize` and `maxFontSize` are `minFontSizePx` and `maxFontSizePx` (the same numbers, in reference pixels).
13
+ - A reference's `url` is `link`, and it must be an http, https, mail or phone link; `opf validate` offers `Add https://` (not safe) for an address without its scheme.
14
+ - A picture or gradient background's `tone` is `appearance`; the deck's own `tone` is unchanged.
15
+ - A combo chart's `line` is `lineSeries`.
16
+ - A chart reference line's `stroke.dash` also accepts the eight other preset dashes a shape outline takes (`longDash`, `dashDot`, `longDashDot`, `longDashDotDot`, `sysDot`, `sysDash`, `sysDashDot`, `sysDashDotDot`); the preview draws them and the PowerPoint export and import carry them. A table cell border keeps `solid`, `dash` and `dot`.
17
+ - Exported names that follow the keys: `normalizeLanguageFamily` and `LanguageFamilyName` are `normalizeScriptGroup` and `ScriptGroupName`; the option `tone` of `resolveColorRoles` is `appearance`; `stats` lists a speaker's `organization`; the composition options `minFontSize` are `minFontSizePx`; the `url` of `Reference`, of a laid-out note and of the editor's reference functions is `link`; the `line` option of the editor's `setChartOptions` is `lineSeries`; the `verticalAlign` field of the editor's table cell style is `anchor`. New: `renameRecordKeys`, core's one table of renamed keys.
18
+ - PowerPoint: the records store the new names. A file written before 0.37 still imports: the importer reads each record through the rename table. A 0.36.0 importer does not read the new names inside the records of a 0.37 file.
19
+ - Updating: `opf fix deck.opf.json -i`; docs/migrations/0.37.md.
20
+
21
+ ## 0.36.0 (2026-11-25)
22
+
23
+ - 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.
24
+ - 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).
25
+ - 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).
26
+ Drawing change (existing records that draw differently or are gone): `layouts:agenda`.
27
+ - 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.
28
+ Drawing change (existing records that draw differently or are gone): `layouts:chart-beside`.
29
+ - 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"`.
30
+ Drawing change (existing records that draw differently or are gone): `layouts:code`.
31
+ - 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).
32
+ Drawing change (existing records that draw differently or are gone): `layouts:dashboard`.
33
+ - 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.
34
+
5
35
  ## 0.35.1 (2026-11-23)
6
36
 
7
37
  - 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.