Repository navigation
@openpresentation/opf-render 0.23.0
·
14 commits
to main
since this release
- RR-95: README note on the chart preview and an opf-pptx 0.22.0 export: since 0.22.2 they draw the same series colors (the deck color scheme and
chart.colors), the same value axis for column, bar, line and area charts (core's composed axis) and the same 20 px chart text. - RR-96 (output-changing for decks and slides that set
design.variantor a picture or gradienttone; borders, gridlines, axis lines, chart text and the code panel change for every deck): every slide is drawn from core's resolved roles for its variant, as PowerPoint does with its colour map.design.variant(deck and slide, the"dark1"shorthand, the accent order) sets the background (bg1), text (tx1), surface (bg2), the series colour order and the neutrals; a variant hides the background of a less specific level. Table and chart frames, gridlines (tx1 at 15%), axis lines (25%), chart text (65%), the pie and treemap outlines, the video play icon, the code panel and its text, the metric neutral trend and the table header text come from the scheme-derived neutrals, so no fixed grey or white is left in the drawing code. A picture background that names itstonetakes that tone's variant and a 40% scrim of the slide background (the renderer's own, core exposes none). Needs@openpresentation/opf0.23.0. - RR-96 (adopts core RR-96, opf#732; test and baseline changes only, no renderer code): core derives borders, chart gridlines and axis lines from the color scheme (the text color mixed into the background,
roles.neutrals) instead of a fixed slate, so every card, table rule and chart changes color, not geometry, and the example corpus gains the color-variants deck. The tests that encoded the old colors expect the new ones (neutral-scaffolding, and the traced SVG digests ofchart-table-dataandchart-finite-statistics). The example and template baselines select new ones,rr96-scheme-neutrals, whenever core derives the neutrals (schemeNeutralsDerived());golden-gatecompares the selected baseline with every slide of the installed examples instead of a fixed 807. Requires the unreleased core 0.23.0.