@openpresentation/opf 0.34.1 → 0.35.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/README.md +6 -6
- package/dist/browser.js +19 -19
- package/dist/{catalog-refs-CoIrOdAw.d.ts → catalog-refs-BgotJhR5.d.ts} +117 -98
- package/dist/{catalog-schemas-FjLRPtjB.d.ts → catalog-schemas-BX-VEc5Q.d.ts} +1 -1
- package/dist/{chunk-MUILZGRY.js → chunk-2GCTKQDD.js} +4 -4
- package/dist/{chunk-LCT5ZV3Q.js → chunk-3KPTVK77.js} +92 -284
- package/dist/{chunk-SR6T4LKI.js → chunk-3ZTKRX7F.js} +4 -6
- package/dist/{chunk-MAFJ5O2D.js → chunk-4UMZDDJG.js} +11 -29
- package/dist/{chunk-NLJFNCZ4.js → chunk-6JHV2K67.js} +6 -6
- package/dist/{chunk-FK5XG742.js → chunk-6VGLE7C5.js} +114 -2
- package/dist/{chunk-AAWHOCXS.js → chunk-7KUUIL7W.js} +8 -8
- package/dist/{chunk-FCSYIBVR.js → chunk-ARPMSD7V.js} +1 -1
- package/dist/{chunk-244OPLAV.js → chunk-GGN3NQDK.js} +1 -1
- package/dist/{chunk-L3MCLD3X.js → chunk-GKUAVSXU.js} +3 -10
- package/dist/{chunk-6PMXVP5G.js → chunk-HORPH6O7.js} +202 -21
- package/dist/{chunk-XLSWZSQS.js → chunk-JQNT37IO.js} +4 -13
- package/dist/{chunk-AEHDXNZX.js → chunk-KNMMEE67.js} +1433 -916
- package/dist/{chunk-CJVKOJ6B.js → chunk-LDLLZQPP.js} +1094 -472
- package/dist/{chunk-HHVQ2SDT.js → chunk-MS2LPR7F.js} +1 -5
- package/dist/{chunk-AGYPRTEC.js → chunk-MVPQEMCP.js} +97 -15
- package/dist/{chunk-2B6GLT2O.js → chunk-NPRNWPP4.js} +1 -1
- package/dist/{chunk-X72WPTST.js → chunk-P2ACZJUL.js} +6 -6
- package/dist/chunk-SEC4IOOS.js +1 -0
- package/dist/{chunk-CQXBGZQP.js → chunk-VMPOCXTE.js} +5 -17
- package/dist/{chunk-ABA2D6X5.js → chunk-ZZWX4W2G.js} +2 -2
- package/dist/{composition-CvtvgBDE.d.ts → composition-BmJfljJl.d.ts} +345 -242
- package/dist/composition.d.ts +2 -2
- package/dist/composition.js +1 -1
- package/dist/{conversion-CyNRlWGw.d.ts → conversion-BbXhlurO.d.ts} +10 -8
- package/dist/conversion-VWCH3NKR.js +25 -0
- package/dist/convert.d.ts +11 -11
- package/dist/convert.js +61 -86
- package/dist/data.d.ts +1 -1
- package/dist/data.js +2 -2
- package/dist/{deck-report-BVlQZ42f.d.ts → deck-report-BYkbL7uT.d.ts} +3 -3
- package/dist/deck.d.ts +6 -6
- package/dist/deck.js +11 -11
- package/dist/diagram-engine-eager.js +1 -1
- package/dist/diagram-engine-lazy.js +1 -1
- package/dist/{diagram-plantuml-XRZ6VAOL.js → diagram-plantuml-GWXGKY7R.js} +1 -1
- package/dist/diff.d.ts +2 -2
- package/dist/diff.js +4 -4
- package/dist/docs.js +40 -40
- package/dist/example-files/technical/assets/alice.png +0 -0
- package/dist/example-files/technical/assets/context-photo.png +0 -0
- package/dist/example-files/technical/assets/cover-image.png +0 -0
- package/dist/example-files/technical/assets/cover.png +0 -0
- package/dist/example-files/technical/assets/diagram.svg +1 -0
- package/dist/example-files/technical/assets/icon.svg +1 -0
- package/dist/example-files/technical/assets/logo-dark.svg +1 -0
- package/dist/example-files/technical/assets/logo-light.svg +1 -0
- package/dist/example-files/technical/assets/logo.svg +1 -0
- package/dist/example-files/technical/assets/primary-logo.svg +1 -0
- package/dist/example-files/technical/assets/product-shot.png +0 -0
- package/dist/example-files/technical/assets/watermark.png +0 -0
- package/dist/example-files/technical/assets/wordmark.svg +1 -0
- package/dist/examples.js +6383 -8169
- package/dist/{finding-l9dlQ2NF.d.ts → finding-mcHslZLA.d.ts} +6 -2
- package/dist/font-policy.d.ts +16 -2
- package/dist/font-policy.js +1 -1
- package/dist/format.js +2 -2
- package/dist/ids.d.ts +2 -2
- package/dist/ids.js +4 -4
- package/dist/index.d.ts +125 -27
- package/dist/index.js +24 -23
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.js +8 -8
- package/dist/node-engine.d.ts +22 -8
- package/dist/node-engine.js +38 -22
- package/dist/{pagination-CZQQYk7L.d.ts → pagination-C0FPjO29.d.ts} +4 -4
- package/dist/pagination.d.ts +3 -3
- package/dist/pagination.js +4 -4
- package/dist/patch.d.ts +4 -4
- package/dist/patch.js +3 -3
- package/dist/precompiled.js +2 -2
- package/dist/{presentation-s9262acV.d.ts → presentation-Dx-kZC8Y.d.ts} +33 -81
- package/dist/repo-readme.js +1 -1
- package/dist/schema-engine-ajv.js +1 -1
- package/dist/schema-engine-precompiled.js +2 -2
- package/dist/schema.d.ts +5 -7
- package/dist/schema.js +3 -3
- package/dist/schemas.js +1 -1
- package/dist/source.d.ts +5 -0
- package/dist/source.js +10 -10
- package/dist/spec/reference/engine-defaults.json +1 -1
- package/dist/spec/reference/engine-vocabularies.json +43 -43
- package/dist/spec/reference/font-policy.json +114 -2
- package/dist/spec/reference/font-policy.schema.json +45 -1
- package/dist/spec/schemas/color-scheme.schema.json +2 -2
- package/dist/spec/schemas/finding.schema.json +2 -1
- package/dist/spec/schemas/icon-set.schema.json +5 -0
- package/dist/spec/schemas/layout.schema.json +27 -85
- package/dist/spec/schemas/opf.schema.json +35 -176
- package/dist/spec/schemas/theme.schema.json +10 -10
- package/dist/symbol-font-encodings.d.ts +2 -2
- package/dist/symbol-font-encodings.js +12695 -12736
- package/dist/types.d.ts +74 -86
- package/dist/{validation-types-CYbsUuZ9.d.ts → validation-types-DKIe1RQW.d.ts} +5 -5
- package/dist/validator.d.ts +5 -7
- package/dist/validator.js +3 -3
- package/dist/yaml.d.ts +1 -1
- package/dist/yaml.js +7 -7
- package/package.json +7 -7
- package/dist/chunk-UJZN2ZH6.js +0 -1
- package/dist/conversion-CSQ5EHD2.js +0 -25
|
@@ -4,7 +4,7 @@ var presentation = {
|
|
|
4
4
|
"$id": "https://openpresentation.org/schema/opf/v1",
|
|
5
5
|
"$comment": "The v1 in the $id is the pre-1.0 line, not a frozen contract: this schema may change in any 0.x minor release. The release that produced this copy is the version of the @openpresentation/opf package it came from (opf --version; opf schemas lists it next to each id). See docs/schema-versioning.md.",
|
|
6
6
|
"title": "Presentation",
|
|
7
|
-
"description": "Open-source JSON format for describing PowerPoint presentations. Agents describe narratives, content, audience, reusable assets, and design \u2014 the engine handles OOXML complexity.\n\nContent references (Slide.layout, design.theme, design.colorScheme / design.colorScheme.id, design.fontScheme / design.fontScheme.id, narrative, audience, purpose and tone, and the colorScheme / fontScheme a theme record names) point at catalog records. Each is a bare 'id' or a 'name:id' whose prefix names a group in 'catalogs'. A bare id resolves in catalogs.custom, then in the records embedded under catalogs.default, then in the catalog the host registered for catalogs.default.source (or the host's default catalog when 'default' is omitted); 'name:id' resolves in catalogs.<name>, then in the catalog the host registered for its source. A reference that resolves nowhere is the warning opf/unresolved-reference, and the slide uses automatic composition or the engine default. Engines never fetch a catalog: a saved document embeds every record it uses, and hosts register any other catalog by its source string. See docs/default-catalog.md.\n\nchart.type, the language tag and the keys of Organization.socials / Speaker.socials are engine vocabularies, validated directly with no catalog lookup. When a document names no theme,
|
|
7
|
+
"description": "Open-source JSON format for describing PowerPoint presentations. Agents describe narratives, content, audience, reusable assets, and design \u2014 the engine handles OOXML complexity.\n\nContent references (Slide.layout, design.theme, design.colorScheme / design.colorScheme.id, design.fontScheme / design.fontScheme.id, narrative, audience, purpose and tone, and the colorScheme / fontScheme a theme record names) point at catalog records. Each is a bare 'id' or a 'name:id' whose prefix names a group in 'catalogs'. A bare id resolves in catalogs.custom, then in the records embedded under catalogs.default, then in the catalog the host registered for catalogs.default.source (or the host's default catalog when 'default' is omitted); 'name:id' resolves in catalogs.<name>, then in the catalog the host registered for its source. A reference that resolves nowhere is the warning opf/unresolved-reference, and the slide uses automatic composition or the engine default. Engines never fetch a catalog: a saved document embeds every record it uses, and hosts register any other catalog by its source string. See docs/default-catalog.md.\n\nchart.type, the language tag and the keys of Organization.socials / Speaker.socials are engine vocabularies, validated directly with no catalog lookup. When a document names no theme, color scheme or font scheme, every engine uses the same small engine defaults (spec/reference/engine-defaults.json). Asset references use 'asset:<id>' strings that point into the top-level assets registry, and content color fields (rich-text runs, styled table cells) accept hex values, color-scheme slot/role names, or 'var:<id>' references into the top-level variables map.",
|
|
8
8
|
"type": "object",
|
|
9
9
|
"required": [
|
|
10
10
|
"slides"
|
|
@@ -760,7 +760,7 @@ var presentation = {
|
|
|
760
760
|
"ltr",
|
|
761
761
|
"rtl"
|
|
762
762
|
],
|
|
763
|
-
"description": "Base text direction for the language. When omitted, engines derive it from the script: Arabic (Arab), Hebrew (Hebr), Syriac (Syrc), Thaana (Thaa), N'Ko (Nkoo), Adlam (Adlm), Samaritan (Samr), Mandaic (Mand) and Hanifi Rohingya (Rohg) are right-to-left; every other script is left-to-right. The engine language vocabulary (spec/reference/engine-vocabularies.json) states it for the tags it knows. A right-to-left deck mirrors its layout, and one rule says what follows it. Layout words and layout coordinates are logical: 'start' and 'end' in alignments, header and footer zones,
|
|
763
|
+
"description": "Base text direction for the language. When omitted, engines derive it from the script: Arabic (Arab), Hebrew (Hebr), Syriac (Syrc), Thaana (Thaa), N'Ko (Nkoo), Adlam (Adlm), Samaritan (Samr), Mandaic (Mand) and Hanifi Rohingya (Rohg) are right-to-left; every other script is left-to-right. The engine language vocabulary (spec/reference/engine-vocabularies.json) states it for the tags it knows. A right-to-left deck mirrors its layout, and one rule says what follows it. Layout words and layout coordinates are logical: 'start' and 'end' in alignments, header and footer zones, the cells blocks name with 'region', image placement, overlay bands and shape anchors, the order of side-by-side blocks and columns, and an overlay shape's 'x' all run from the edge the deck starts on. Coordinates and sides that name pixels of a picture or parts of a plot are physical in every language: ImageFocus, ImageCallout 'x', a chart's 'legend' and data label 'position', and the 'left' and 'right' of table cell borders and paddings and of a shape's padding."
|
|
764
764
|
},
|
|
765
765
|
"script": {
|
|
766
766
|
"type": "string",
|
|
@@ -1085,7 +1085,7 @@ var presentation = {
|
|
|
1085
1085
|
},
|
|
1086
1086
|
"Socials": {
|
|
1087
1087
|
"type": "object",
|
|
1088
|
-
"description": "Social media handles or URLs, keyed by platform. The keys are an engine vocabulary validated directly (no catalog lookup): engines link a handle with the platform's URL pattern and handle prefix (spec/reference/engine-vocabularies.json). Each value is a string, either a full URL or a platform handle (e.g., '@acme'). Brand
|
|
1088
|
+
"description": "Social media handles or URLs, keyed by platform. The keys are an engine vocabulary validated directly (no catalog lookup): engines link a handle with the platform's URL pattern and handle prefix (spec/reference/engine-vocabularies.json). Each value is a string, either a full URL or a platform handle (e.g., '@acme'). Brand colors and icons are catalog display metadata for authoring UIs; engines render the profile URL, not icons or brand colors. Used both for organization and speaker records.",
|
|
1089
1089
|
"additionalProperties": {
|
|
1090
1090
|
"type": "string",
|
|
1091
1091
|
"description": "Handle or URL for the platform identified by the property key."
|
|
@@ -1125,7 +1125,7 @@ var presentation = {
|
|
|
1125
1125
|
"properties": {
|
|
1126
1126
|
"theme": {
|
|
1127
1127
|
"$ref": "#/$defs/CatalogReference",
|
|
1128
|
-
"description": "Theme for the deck: a themes reference, a bare id ('minimal') or 'name:id' ('acme:brand'). The theme supplies the default
|
|
1128
|
+
"description": "Theme for the deck: a themes reference, a bare id ('minimal') or 'name:id' ('acme:brand'). The theme supplies the default color scheme, font scheme, background and dimensions; design.colorScheme, design.fontScheme, design.background and design.dimensions override it field by field. A reference that resolves nowhere is the warning opf/unresolved-reference and engines use the engine default theme.",
|
|
1129
1129
|
"examples": [
|
|
1130
1130
|
"minimal",
|
|
1131
1131
|
"classic",
|
|
@@ -1142,7 +1142,7 @@ var presentation = {
|
|
|
1142
1142
|
"$ref": "#/$defs/ColorScheme"
|
|
1143
1143
|
}
|
|
1144
1144
|
],
|
|
1145
|
-
"description": "Color scheme for the presentation. Accepts two forms:\n- A colorSchemes reference: a bare id ('cool-horizon') or 'name:id' ('acme:ocean').\n- Object form: a ColorScheme with an optional 'id' reference as the base plus slot/role overrides. Without 'id', the overrides apply on top of the engine default
|
|
1145
|
+
"description": "Color scheme for the presentation. Accepts two forms:\n- A colorSchemes reference: a bare id ('cool-horizon') or 'name:id' ('acme:ocean').\n- Object form: a ColorScheme with an optional 'id' reference as the base plus slot/role overrides. Without 'id', the overrides apply on top of the engine default color scheme.\n\nWithout either, the theme's colorScheme applies, then the engine default color scheme.",
|
|
1146
1146
|
"examples": [
|
|
1147
1147
|
"cool-horizon",
|
|
1148
1148
|
"boost",
|
|
@@ -1337,6 +1337,14 @@ var presentation = {
|
|
|
1337
1337
|
],
|
|
1338
1338
|
"description": "Default horizontal alignment for the title heading area (the title and the tag) in resolved layouts. Effective value: the slide's design, then the deck's design, then the theme's design.titleAlignment, then the layout record's design.titleAlignment, then the engine default. Logical: 'start' is the edge a paragraph starts on (the left for left-to-right text, the right for right-to-left text) and 'end' is the opposite edge."
|
|
1339
1339
|
},
|
|
1340
|
+
"titlePosition": {
|
|
1341
|
+
"type": "string",
|
|
1342
|
+
"enum": [
|
|
1343
|
+
"top",
|
|
1344
|
+
"start"
|
|
1345
|
+
],
|
|
1346
|
+
"description": "Where the heading group (tag, title and subtitle) sits on a slide with body content. 'top' (the default) stacks it above the body. 'start' sets it beside the body, in a column of two fifths of the content width (the body takes the other three fifths, a gap apart) on the reading side: the left in a left-to-right deck, the right in a right-to-left deck; design.mirror swaps the side. The group is centered down the column at its role size, aligned by titleAlignment. On a layout, the rows that hold only headings give way and the title column runs down beside the layout's body regions, which keep their own arrangement; a 'subtitle' region joins the title's group, and a layout without a title region gets the column for the slide's title. Content no region takes sits below them, across the slide. A layout whose title already shares a row with a body region keeps its own placement. On a slide without a layout the automatic composition fills the free area beside the column. A slide without body content (a cover), a slide whose blocks name cells of its grid ('region': start, center, end, top, middle, bottom: they name its columns themselves) and a portrait canvas (taller than wide) keep the title on top. Header and footer zones, placed pictures and footnotes keep their places: the column lies between them. A slide that gives up its layout for the automatic grid to set its text larger (the layout's recomposition) puts its title on top, taking the column's width for its body. Effective value: the slide's design, then the deck's design, then the theme's design.titlePosition, then the layout record's design.titlePosition, then 'top'. PPTX export: a layout record that sets 'start' (and every layout of a deck or theme that sets it) gets a slide layout with its title placeholder beside the body; a slide that sets it on another layout keeps its title's own position on that slide."
|
|
1347
|
+
},
|
|
1340
1348
|
"contentAlignment": {
|
|
1341
1349
|
"type": "string",
|
|
1342
1350
|
"enum": [
|
|
@@ -1350,25 +1358,6 @@ var presentation = {
|
|
|
1350
1358
|
"type": "boolean",
|
|
1351
1359
|
"description": "Whether body/content regions are rendered inside a visible card or surface. Effective value: the slide's design, then the deck's design, then the theme's design.contentBox, then the layout record's design.contentBox, then the engine default."
|
|
1352
1360
|
},
|
|
1353
|
-
"contentDirection": {
|
|
1354
|
-
"type": "string",
|
|
1355
|
-
"enum": [
|
|
1356
|
-
"horizontal",
|
|
1357
|
-
"vertical"
|
|
1358
|
-
],
|
|
1359
|
-
"description": "Axis along which parallel body content is arranged: 'vertical' is a column, 'horizontal' a row. Effective value: the slide's design, then the deck's design, then the theme's design.contentDirection, then the layout record's design.contentDirection. On a slide with a template layout it turns every flowing region of the slide into one row or one column, below the slide's own composition.mode, columns and weights, which arrange its first primary flowing region. On an automatic slide (and a 0.18 record) it sets the root arrangement mode when no composition.mode is set on the slide or on its layout record. Promoted regions (start, top:start, ...) keep their explicit geometry and nested groups keep their own composition."
|
|
1360
|
-
},
|
|
1361
|
-
"chartPrimary": {
|
|
1362
|
-
"type": "string",
|
|
1363
|
-
"enum": [
|
|
1364
|
-
"none",
|
|
1365
|
-
"top",
|
|
1366
|
-
"bottom",
|
|
1367
|
-
"start",
|
|
1368
|
-
"end"
|
|
1369
|
-
],
|
|
1370
|
-
"description": "Where the primary chart sits relative to supporting content. Effective value: slide design, then deck design, then the layout record's design.chartPrimary. It applies to automatic slides only; a template layout says the same with its regions (chart-beside). When the slide has no promoted regions and no composition.mode of its own, and its root nodes mix at least one chart with other content, the first chart becomes a primary track and the other nodes form one synthetic sub-grid: 'start'/'end' is a two-track row with the chart on that side (logical: 'start' is the left in a left-to-right deck and the right in a right-to-left one) and 'top'/'bottom' a two-track column, weighted 3:2 in favor of the chart; explicit root columns and weights are ignored while it applies. 'none' (the default) keeps the ordinary automatic grid with equal weight. Automatic composition builds direct content groups; template regions remain authoritative."
|
|
1371
|
-
},
|
|
1372
1361
|
"imageFit": {
|
|
1373
1362
|
"type": "string",
|
|
1374
1363
|
"enum": [
|
|
@@ -1398,7 +1387,7 @@ var presentation = {
|
|
|
1398
1387
|
},
|
|
1399
1388
|
"mirror": {
|
|
1400
1389
|
"type": "boolean",
|
|
1401
|
-
"description": "Draw the slide's template layout mirrored: each row's cells and the column sizes reversed, so a 'beside' layout puts its picture, chart or table at the end. Logical: a right-to-left deck mirrors on top. Binding and reading order do not change. Effective value: the slide's design, then the deck's design, then the layout record's design.mirror, then false. Slides without a template layout ignore it."
|
|
1390
|
+
"description": "Draw the slide's template layout mirrored: each row's cells and the column sizes reversed, so a 'beside' layout puts its picture, chart or table at the end. Logical: a right-to-left deck mirrors on top. Binding and reading order do not change. Effective value: the slide's design, then the deck's design, then the layout record's design.mirror, then false. Slides without a template layout ignore it, except that it moves a title beside the body (titlePosition 'start') to the end side."
|
|
1402
1391
|
}
|
|
1403
1392
|
}
|
|
1404
1393
|
},
|
|
@@ -1418,7 +1407,7 @@ var presentation = {
|
|
|
1418
1407
|
},
|
|
1419
1408
|
"id": {
|
|
1420
1409
|
"$ref": "#/$defs/CatalogReference",
|
|
1421
|
-
"description": "
|
|
1410
|
+
"description": "Color-scheme reference (a bare id or 'name:id') resolved as the base; slot and role overrides on the surrounding ColorScheme object take precedence over the resolved scheme.",
|
|
1422
1411
|
"examples": [
|
|
1423
1412
|
"cool-horizon",
|
|
1424
1413
|
"boost",
|
|
@@ -2133,7 +2122,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2133
2122
|
},
|
|
2134
2123
|
"NumberFormat": {
|
|
2135
2124
|
"type": "string",
|
|
2136
|
-
"description": "Number display pattern, shared by NumberVariable.format, data column formats (DataColumn.format) and table cell formats (StyledTableCell.format). An optional literal prefix, a numeric part of '#', '0', ',' and '.', and an optional literal suffix. '0' pads digits, '#' is optional, ',' groups thousands, digits after '.' fix the decimals ('0' required, '#' optional), and a '%' in the prefix or suffix multiplies the value by 100. English separators only. A format applies only to number values; strings, booleans, null and rich runs display unchanged. A column or cell format that is not a valid pattern is a 'number-format-invalid' error. The PPTX export writes it as the equivalent Excel number format code.",
|
|
2125
|
+
"description": "Number display pattern, shared by NumberVariable.format, data column formats (DataColumn.format) and table cell formats (StyledTableCell.format). An optional literal prefix, a numeric part of '#', '0', ',' and '.', and an optional literal suffix. '0' pads digits, '#' is optional, ',' groups thousands, digits after '.' fix the decimals ('0' required, '#' optional), and a '%' in the prefix or suffix multiplies the value by 100. English separators only. A format is one to three ';'-separated sections, positive;negative;zero, each such a pattern: with two, the second formats negative numbers, with three the third formats zero. A negative section formats the absolute value and prints no minus of its own, so '+0%;-0%' shows +12% and -5%. More than three sections, an empty section or a section without a numeric part is a 'number-format-invalid' error; there is no text section, color or condition. A format applies only to number values; strings, booleans, null and rich runs display unchanged. A column or cell format that is not a valid pattern is a 'number-format-invalid' error. The PPTX export writes it as the equivalent Excel number format code.",
|
|
2137
2126
|
"examples": [
|
|
2138
2127
|
"#,##0",
|
|
2139
2128
|
"0.0",
|
|
@@ -2550,7 +2539,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2550
2539
|
"ImageBackground": {
|
|
2551
2540
|
"type": "object",
|
|
2552
2541
|
"additionalProperties": false,
|
|
2553
|
-
"description": "Picture background: the image fills the whole canvas behind everything and never moves content (to push content aside, use an image block with placement). The string shorthand 'asset:x' (or any image source) is { type: 'image', src: 'asset:x' }, a cover image. Paint order: the
|
|
2542
|
+
"description": "Picture background: the image fills the whole canvas behind everything and never moves content (to push content aside, use an image block with placement). The string shorthand 'asset:x' (or any image source) is { type: 'image', src: 'asset:x' }, a cover image. Paint order: the color scheme's default slide background, the picture, then the overlay, then furniture and content.",
|
|
2554
2543
|
"required": [
|
|
2555
2544
|
"type",
|
|
2556
2545
|
"src"
|
|
@@ -2591,7 +2580,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2591
2580
|
"stretch",
|
|
2592
2581
|
"tile"
|
|
2593
2582
|
],
|
|
2594
|
-
"description": "How the picture fills the canvas: 'cover' fills it and crops what overflows around focus; 'contain' shows the whole picture centered over the
|
|
2583
|
+
"description": "How the picture fills the canvas: 'cover' fills it and crops what overflows around focus; 'contain' shows the whole picture centered over the color scheme's default background; 'stretch' scales it to the canvas exactly; 'tile' repeats it at its own size from the top-left corner. Default 'cover'."
|
|
2595
2584
|
},
|
|
2596
2585
|
"focus": {
|
|
2597
2586
|
"$ref": "#/$defs/ImageFocus",
|
|
@@ -4219,7 +4208,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4219
4208
|
},
|
|
4220
4209
|
"Slide": {
|
|
4221
4210
|
"type": "object",
|
|
4222
|
-
"description": "A single slide. Content
|
|
4211
|
+
"description": "A single slide. Content is a full-slide root payload or a list of blocks. On a slide without a layout, blocks may name cells of a 3 x 3 grid with their 'region' ('start', 'center+end', 'top:start'): see ContentPayload.region. The columns of that grid are logical: 'start' is the left column in a left-to-right deck and the right column in a right-to-left one. A key on the slide that names a cell is not OPF: validate reports it (opf/schema) with the safe fix that moves its content into a block with 'region'.",
|
|
4223
4212
|
"additionalProperties": false,
|
|
4224
4213
|
"dependentSchemas": {
|
|
4225
4214
|
"caption": {
|
|
@@ -4313,12 +4302,11 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4313
4302
|
},
|
|
4314
4303
|
"layout": {
|
|
4315
4304
|
"$ref": "#/$defs/CatalogReference",
|
|
4316
|
-
"description": "Optional layout: a layouts reference, a bare id ('pillars') or 'name:id' ('acme:hero')
|
|
4305
|
+
"description": "Optional layout: a layouts reference, a bare id ('pillars') or 'name:id' ('acme:hero'). When omitted, the slide is composed with no layout record: engines arrange title, subtitle, tag and content automatically, a slide with no body payload is a cover (vertically centered), and design hints apply; there is no finding. OPF 0.35 removed the value 'auto': it is an ordinary reference now, and one that resolves nowhere is opf/unresolved-reference, which says so and offers the fix that deletes the key. A layout is a grid template (layout.schema.json): the slide's content stays flat and binds to the layout's regions by reading order, role and kind, a block may pin itself to a region with 'region', and an empty region collapses. A reference that resolves nowhere is the warning opf/unresolved-reference (and the 'unresolved-reference' diagnostic of resolveSlideContext), the slide composes automatically, and a strict export fails. A layout id of the 0.18 default catalog that 0.19 no longer has is such a reference: 0.19 has no migration path for layouts. A layout never changes what a slide contains, and engines never substitute a different layout.",
|
|
4317
4306
|
"examples": [
|
|
4318
4307
|
"cover",
|
|
4319
4308
|
"pillars",
|
|
4320
4309
|
"chart-beside",
|
|
4321
|
-
"auto",
|
|
4322
4310
|
"acme:hero"
|
|
4323
4311
|
]
|
|
4324
4312
|
},
|
|
@@ -4548,150 +4536,6 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4548
4536
|
"$ref": "#/$defs/SlideDesign",
|
|
4549
4537
|
"description": "Slide-level design applied on top of the deck-wide design."
|
|
4550
4538
|
},
|
|
4551
|
-
"start": {
|
|
4552
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4553
|
-
},
|
|
4554
|
-
"center": {
|
|
4555
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4556
|
-
},
|
|
4557
|
-
"end": {
|
|
4558
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4559
|
-
},
|
|
4560
|
-
"start+center": {
|
|
4561
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4562
|
-
},
|
|
4563
|
-
"center+end": {
|
|
4564
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4565
|
-
},
|
|
4566
|
-
"start+center+end": {
|
|
4567
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4568
|
-
},
|
|
4569
|
-
"top": {
|
|
4570
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4571
|
-
},
|
|
4572
|
-
"middle": {
|
|
4573
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4574
|
-
},
|
|
4575
|
-
"bottom": {
|
|
4576
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4577
|
-
},
|
|
4578
|
-
"top+middle": {
|
|
4579
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4580
|
-
},
|
|
4581
|
-
"middle+bottom": {
|
|
4582
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4583
|
-
},
|
|
4584
|
-
"top+middle+bottom": {
|
|
4585
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4586
|
-
},
|
|
4587
|
-
"top:start": {
|
|
4588
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4589
|
-
},
|
|
4590
|
-
"top:center": {
|
|
4591
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4592
|
-
},
|
|
4593
|
-
"top:end": {
|
|
4594
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4595
|
-
},
|
|
4596
|
-
"top:start+center": {
|
|
4597
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4598
|
-
},
|
|
4599
|
-
"top:center+end": {
|
|
4600
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4601
|
-
},
|
|
4602
|
-
"top:start+center+end": {
|
|
4603
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4604
|
-
},
|
|
4605
|
-
"middle:start": {
|
|
4606
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4607
|
-
},
|
|
4608
|
-
"middle:center": {
|
|
4609
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4610
|
-
},
|
|
4611
|
-
"middle:end": {
|
|
4612
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4613
|
-
},
|
|
4614
|
-
"middle:start+center": {
|
|
4615
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4616
|
-
},
|
|
4617
|
-
"middle:center+end": {
|
|
4618
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4619
|
-
},
|
|
4620
|
-
"middle:start+center+end": {
|
|
4621
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4622
|
-
},
|
|
4623
|
-
"bottom:start": {
|
|
4624
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4625
|
-
},
|
|
4626
|
-
"bottom:center": {
|
|
4627
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4628
|
-
},
|
|
4629
|
-
"bottom:end": {
|
|
4630
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4631
|
-
},
|
|
4632
|
-
"bottom:start+center": {
|
|
4633
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4634
|
-
},
|
|
4635
|
-
"bottom:center+end": {
|
|
4636
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4637
|
-
},
|
|
4638
|
-
"bottom:start+center+end": {
|
|
4639
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4640
|
-
},
|
|
4641
|
-
"top+middle:start": {
|
|
4642
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4643
|
-
},
|
|
4644
|
-
"top+middle:center": {
|
|
4645
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4646
|
-
},
|
|
4647
|
-
"top+middle:end": {
|
|
4648
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4649
|
-
},
|
|
4650
|
-
"top+middle:start+center": {
|
|
4651
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4652
|
-
},
|
|
4653
|
-
"top+middle:center+end": {
|
|
4654
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4655
|
-
},
|
|
4656
|
-
"top+middle:start+center+end": {
|
|
4657
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4658
|
-
},
|
|
4659
|
-
"middle+bottom:start": {
|
|
4660
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4661
|
-
},
|
|
4662
|
-
"middle+bottom:center": {
|
|
4663
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4664
|
-
},
|
|
4665
|
-
"middle+bottom:end": {
|
|
4666
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4667
|
-
},
|
|
4668
|
-
"middle+bottom:start+center": {
|
|
4669
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4670
|
-
},
|
|
4671
|
-
"middle+bottom:center+end": {
|
|
4672
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4673
|
-
},
|
|
4674
|
-
"middle+bottom:start+center+end": {
|
|
4675
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4676
|
-
},
|
|
4677
|
-
"top+middle+bottom:start": {
|
|
4678
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4679
|
-
},
|
|
4680
|
-
"top+middle+bottom:center": {
|
|
4681
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4682
|
-
},
|
|
4683
|
-
"top+middle+bottom:end": {
|
|
4684
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4685
|
-
},
|
|
4686
|
-
"top+middle+bottom:start+center": {
|
|
4687
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4688
|
-
},
|
|
4689
|
-
"top+middle+bottom:center+end": {
|
|
4690
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4691
|
-
},
|
|
4692
|
-
"top+middle+bottom:start+center+end": {
|
|
4693
|
-
"$ref": "#/$defs/ContentPayload"
|
|
4694
|
-
},
|
|
4695
4539
|
"notes": {
|
|
4696
4540
|
"type": "string",
|
|
4697
4541
|
"description": "Speaker notes shown in presenter view.",
|
|
@@ -4910,11 +4754,13 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4910
4754
|
},
|
|
4911
4755
|
"region": {
|
|
4912
4756
|
"type": "string",
|
|
4913
|
-
"pattern": "^[a-z][a-z0-9-]
|
|
4914
|
-
"description": "
|
|
4757
|
+
"pattern": "^([a-z][a-z0-9-]*|(top|middle|bottom|top\\+middle|middle\\+bottom|top\\+middle\\+bottom)(:(start|center|end|start\\+center|center\\+end|start\\+center\\+end))?|start|center|end|start\\+center|center\\+end|start\\+center\\+end)$",
|
|
4758
|
+
"description": "Where a root block (slides.N.blocks.I) goes. On a slide with a layout: a region of that layout, by name. The block goes to that region when the region exists, accepts the block's kind and has room; otherwise the pin is ignored with a warning (opf/region-unknown, opf/region-kind or opf/region-full) and the block is placed by its kind. Blocks without a pin are bound by reading order, role and kind. On a slide without a layout: a cell of the slide's 3 x 3 grid below the headings, a column band ('start', 'center', 'end', 'start+center', 'center+end', 'start+center+end'), a row band ('top', 'middle', 'bottom', 'top+middle', 'middle+bottom', 'top+middle+bottom') or rows, a colon, then columns ('top:start', 'middle+bottom:center+end'); each half lists adjacent names in reading order. The columns are logical ('start' is the right column in a right-to-left deck). A slide places every block in a cell or none: when one block names a cell, every block of the slide's blocks names one (opf/schema otherwise). Blocks that name the same cell stack in it in source order, as a group's blocks would; two different cells may not overlap. A cell word on a slide with a layout names no region of it (opf/region-unknown), and a layout region's name is never a cell word. A pin on a nested block has no effect.",
|
|
4915
4759
|
"examples": [
|
|
4916
|
-
"
|
|
4917
|
-
"
|
|
4760
|
+
"aside",
|
|
4761
|
+
"media",
|
|
4762
|
+
"start",
|
|
4763
|
+
"top:center+end"
|
|
4918
4764
|
]
|
|
4919
4765
|
},
|
|
4920
4766
|
"type": {
|
|
@@ -5031,7 +4877,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
5031
4877
|
"maximum": 3
|
|
5032
4878
|
}
|
|
5033
4879
|
],
|
|
5034
|
-
"description": "Lay the payload's `items` or `bullets` out in columns. 'auto' tries 1, 2 then 3 equal columns at the starting text size and uses the first count at which the list fits, as long as a column stays at least a quarter of the slide wide; when none fits, 'auto' takes the count (1, 2 or 3) whose fitted size is largest, preferring fewer columns on a tie, and sets the list in one column only when its lines stay within the prose measure (or it is a type-scale step larger). A list of 6 or fewer entries is never split by 'auto'; it shrinks in one column. 1, 2 or 3 fixes the count. Column breaks fall between items (a nested item stays with its parent) and keep the columns as even as possible; numbering continues and reading order runs column by column.
|
|
4880
|
+
"description": "Lay the payload's `items` or `bullets` out in columns. 'auto' tries 1, 2 then 3 equal columns at the starting text size and uses the first count at which the list fits, as long as a column stays at least a quarter of the slide wide; when none fits, 'auto' takes the count (1, 2 or 3) whose fitted size is largest, preferring fewer columns on a tie, and sets the list in one column only when its lines stay within the prose measure (or it is a type-scale step larger). A list of 6 or fewer entries is never split by 'auto'; it shrinks in one column. 1, 2 or 3 fixes the count. Column breaks fall between items (a nested item stays with its parent) and keep the columns as even as possible; numbering continues and reading order runs column by column. Without it, a list of more than 6 entries in a layout region without an arrangement (or with the numbered one) flows into columns as 'auto' does, kept only when they set it at least as large as one column.",
|
|
5035
4881
|
"examples": [
|
|
5036
4882
|
"auto",
|
|
5037
4883
|
2
|
|
@@ -5967,7 +5813,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
5967
5813
|
"negative",
|
|
5968
5814
|
"neutral"
|
|
5969
5815
|
],
|
|
5970
|
-
"description": "Whether the change is good news. Positive draws the trend arrow and the trend and delta text in green, negative in red and neutral in the neutral text
|
|
5816
|
+
"description": "Whether the change is good news. Positive draws the trend arrow and the trend and delta text in green, negative in red and neutral in the neutral text color, each kept at 4.5:1 contrast or more against the slide background. When absent the color follows the trend: up is positive, down is negative and flat is neutral. Set it when the direction is not the verdict, for example positive on a falling churn, cost or latency trend. The arrow always keeps the direction of `trend`. Only the trend arrow and the trend and delta text take the color, so sentiment has no visible effect on a metric without a trend."
|
|
5971
5817
|
},
|
|
5972
5818
|
"icon": {
|
|
5973
5819
|
"$ref": "#/$defs/IconReference",
|
|
@@ -6190,6 +6036,14 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
6190
6036
|
"minimum": 0,
|
|
6191
6037
|
"description": "Zero-based nesting level for the list item."
|
|
6192
6038
|
},
|
|
6039
|
+
"assistant": {
|
|
6040
|
+
"type": "boolean",
|
|
6041
|
+
"description": "org-chart only: the entry is its manager's assistant, written among the reports and drawn beside the line below the manager. See docs/smartart.md."
|
|
6042
|
+
},
|
|
6043
|
+
"overlap": {
|
|
6044
|
+
"type": "boolean",
|
|
6045
|
+
"description": "venn only, on the last entry: it labels where all the sets overlap and is not a set. See docs/smartart.md."
|
|
6046
|
+
},
|
|
6193
6047
|
"icon": {
|
|
6194
6048
|
"$ref": "#/$defs/IconReference",
|
|
6195
6049
|
"description": `An icon drawn on a chip at the start of the entry, in place of its bullet: "<set>:<name>" ("lucide:truck"), a name from the deck's icons, or an SVG source. Drawn on first-level entries of an unnumbered list. Decoration only: when the slide has no room for the chips without setting text smaller, they are not drawn (finding opf/icon-dropped). See docs/icons.md.`
|
|
@@ -6834,7 +6688,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
6834
6688
|
},
|
|
6835
6689
|
"highlight": {
|
|
6836
6690
|
"$ref": "#/$defs/ChartHighlight",
|
|
6837
|
-
"description": "Optional emphasis: the series and/or categories that carry the message. The engines draw the highlighted marks in the deck's primary (accent) color and every other mark in a muted neutral derived from the theme (a light
|
|
6691
|
+
"description": "Optional emphasis: the series and/or categories that carry the message. The engines draw the highlighted marks in the deck's primary (accent) color and every other mark in a muted neutral derived from the theme (a light gray on a light chart panel, a dim gray on a dark one); there is no color field. A mark is highlighted when its series OR its category is named. Absent keeps today's colors exactly. Supported on column, bar and line charts (series and categories; on a line a category highlight marks that category's points), pie and doughnut charts (categories, one per slice), and area, scatter and radar charts (series); the histogram, pareto, waterfall, funnel, treemap, box-and-whisker, world and combo constructs drop the option with a 'chart-option-adapted' diagnostic, as does a part the type cannot highlight. A name that matches no column or row label is a 'chart-highlight-unknown-name' error."
|
|
6838
6692
|
}
|
|
6839
6693
|
}
|
|
6840
6694
|
},
|
|
@@ -7849,7 +7703,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
7849
7703
|
"accepts": [
|
|
7850
7704
|
"chart"
|
|
7851
7705
|
],
|
|
7852
|
-
"
|
|
7706
|
+
"max": 1
|
|
7853
7707
|
}
|
|
7854
7708
|
]
|
|
7855
7709
|
}
|
|
@@ -7876,7 +7730,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
7876
7730
|
},
|
|
7877
7731
|
"colorSchemes": {
|
|
7878
7732
|
"$ref": "#/$defs/CatalogRecords",
|
|
7879
|
-
"description": "
|
|
7733
|
+
"description": "Color-scheme records keyed by id, each with the fields of https://openpresentation.org/schema/opf-color-scheme/v1. Referenced from design.colorScheme and a theme's colorScheme."
|
|
7880
7734
|
},
|
|
7881
7735
|
"fontSchemes": {
|
|
7882
7736
|
"$ref": "#/$defs/CatalogRecords",
|
|
@@ -7992,7 +7846,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
7992
7846
|
"Composition": {
|
|
7993
7847
|
"type": "object",
|
|
7994
7848
|
"additionalProperties": false,
|
|
7995
|
-
"description": "Automatic slide and content-group arrangement. Nested content groups arrange their children independently, inheriting only minFontSize, maxFontSize and overflow.
|
|
7849
|
+
"description": "Automatic slide and content-group arrangement. Nested content groups arrange their children independently, inheriting only minFontSize, maxFontSize and overflow. Blocks placed in cells (ContentPayload.region on a slide without a layout) retain their positions. A layout defines its grid as one ordered list of regions; its composition supports gap, padding, minFontSize, maxFontSize and overflow rather than mode, columns or weights.",
|
|
7996
7850
|
"properties": {
|
|
7997
7851
|
"mode": {
|
|
7998
7852
|
"type": "string",
|
|
@@ -8557,7 +8411,7 @@ var theme = {
|
|
|
8557
8411
|
"colorScheme": {
|
|
8558
8412
|
"type": "string",
|
|
8559
8413
|
"pattern": "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",
|
|
8560
|
-
"description": "The theme's default
|
|
8414
|
+
"description": "The theme's default color scheme: a reference (a bare id or 'name:id') resolved like design.colorScheme, but in the theme's own catalogs group first.",
|
|
8561
8415
|
"examples": [
|
|
8562
8416
|
"cool-horizon",
|
|
8563
8417
|
"boost",
|
|
@@ -8645,7 +8499,7 @@ var theme = {
|
|
|
8645
8499
|
"design": {
|
|
8646
8500
|
"type": "object",
|
|
8647
8501
|
"additionalProperties": false,
|
|
8648
|
-
"description": "The theme's design defaults (OPF 0.19), so a house style such as boxed content or
|
|
8502
|
+
"description": "The theme's design defaults (OPF 0.19), so a house style such as boxed content or centered titles is set once: the keys and values of the deck's design for titleAlignment, titlePosition, contentAlignment, contentBox, imageFit, listBullet and listStyle. Per key the slide's design wins, then the deck's design, then this, then the layout record's design, then the engine default.",
|
|
8649
8503
|
"properties": {
|
|
8650
8504
|
"titleAlignment": {
|
|
8651
8505
|
"type": "string",
|
|
@@ -8656,6 +8510,14 @@ var theme = {
|
|
|
8656
8510
|
],
|
|
8657
8511
|
"description": "As design.titleAlignment of a deck."
|
|
8658
8512
|
},
|
|
8513
|
+
"titlePosition": {
|
|
8514
|
+
"type": "string",
|
|
8515
|
+
"enum": [
|
|
8516
|
+
"top",
|
|
8517
|
+
"start"
|
|
8518
|
+
],
|
|
8519
|
+
"description": "As design.titlePosition of a deck."
|
|
8520
|
+
},
|
|
8659
8521
|
"contentAlignment": {
|
|
8660
8522
|
"type": "string",
|
|
8661
8523
|
"enum": [
|
|
@@ -8669,14 +8531,6 @@ var theme = {
|
|
|
8669
8531
|
"type": "boolean",
|
|
8670
8532
|
"description": "As design.contentBox of a deck."
|
|
8671
8533
|
},
|
|
8672
|
-
"contentDirection": {
|
|
8673
|
-
"type": "string",
|
|
8674
|
-
"enum": [
|
|
8675
|
-
"horizontal",
|
|
8676
|
-
"vertical"
|
|
8677
|
-
],
|
|
8678
|
-
"description": "As design.contentDirection of a deck."
|
|
8679
|
-
},
|
|
8680
8534
|
"imageFit": {
|
|
8681
8535
|
"type": "string",
|
|
8682
8536
|
"enum": [
|
|
@@ -8860,7 +8714,7 @@ var layout = {
|
|
|
8860
8714
|
"$id": "https://openpresentation.org/schema/opf-layout/v2",
|
|
8861
8715
|
"$comment": "The v2 in the $id marks the pre-1.0 line of this schema, not a frozen contract: it may change in any 0.x minor release. The release that produced this copy is the version of the @openpresentation/opf package it came from (opf --version; opf schemas lists it next to each id). See docs/schema-versioning.md.",
|
|
8862
8716
|
"title": "Slide Layout",
|
|
8863
|
-
"description": "Schema for slide-layout records. A layout is one ordered list of regions, declared once, in reading order: 'direction' says whether the record's 'regions' sit side by side (row) or are stacked (column), and each region says which content kinds it takes and how several blocks share it. A split is an entry that nests a second list the other way, which is how a layout gets two dimensions. 'title' and 'subtitle' are reserved heading regions. Engines compile the list into a grid of tracks (the guillotine partition it describes). Slide content stays flat: engines bind a slide's blocks to the regions by reading order, role and kind (bindRegions in @openpresentation/opf), a block may pin itself to a region with 'region', and an empty region collapses into a
|
|
8717
|
+
"description": "Schema for slide-layout records. A layout is one ordered list of regions, declared once, in reading order: 'direction' says whether the record's 'regions' sit side by side (row) or are stacked (column), and each region says which content kinds it takes and how several blocks share it. A split is an entry that nests a second list the other way, which is how a layout gets two dimensions. 'title' and 'subtitle' are reserved heading regions. Engines compile the list into a grid of tracks (the guillotine partition it describes). Slide content stays flat: engines bind a slide's blocks to the regions by reading order, role and kind (bindRegions in @openpresentation/opf), a block may pin itself to a region with 'region', and an empty region collapses into a neighbor. Built-in and custom layouts are records of this one schema; a custom layout is embedded under catalogs.custom.layouts or shipped in a catalog. Documents reference a layout from Slide.layout; a slide without a layout, with layout 'auto', or whose layout resolves nowhere composes automatically.\n\nA document references a record as a bare id or 'name:id' and resolves it in its own catalogs groups first, then in the catalog the host registered for the group's source; engines never fetch a catalog. A published record file carries '$schema' and 'id'; the copy a document embeds under catalogs.<group>.<kind>.<id> carries neither (the key is the id) and no 'x-*' display metadata.",
|
|
8864
8718
|
"type": "object",
|
|
8865
8719
|
"required": [
|
|
8866
8720
|
"$schema",
|
|
@@ -8877,16 +8731,13 @@ var layout = {
|
|
|
8877
8731
|
"id": {
|
|
8878
8732
|
"type": "string",
|
|
8879
8733
|
"pattern": "^[a-z][a-z0-9-]*$",
|
|
8880
|
-
"description": "The layout's id in its catalog, lowercase kebab-case. Required in a published record file; a document references the record by it (a bare id, or 'name:id' for a named group) and embeds it keyed by it, without this field.
|
|
8734
|
+
"description": "The layout's id in its catalog, lowercase kebab-case. Required in a published record file; a document references the record by it (a bare id, or 'name:id' for a named group) and embeds it keyed by it, without this field.",
|
|
8881
8735
|
"examples": [
|
|
8882
8736
|
"cover",
|
|
8883
8737
|
"pillars",
|
|
8884
8738
|
"chart-beside",
|
|
8885
8739
|
"roadmap-split"
|
|
8886
|
-
]
|
|
8887
|
-
"not": {
|
|
8888
|
-
"const": "auto"
|
|
8889
|
-
}
|
|
8740
|
+
]
|
|
8890
8741
|
},
|
|
8891
8742
|
"name": {
|
|
8892
8743
|
"type": "string",
|
|
@@ -8935,7 +8786,7 @@ var layout = {
|
|
|
8935
8786
|
"middle",
|
|
8936
8787
|
"bottom"
|
|
8937
8788
|
],
|
|
8938
|
-
"description": "Vertical position of the content of every body region when it is shorter than the region. A split's 'anchor' replaces it for the regions under that split, and a region's own 'anchor' replaces both. Only 'anchor' is inherited, and only by body regions: the heading regions 'title' and 'subtitle' never take it (they set their own, HeadingRegion.anchor), and the other region rules stay per region. One exception places the whole slide: when the record is a column and every entry of its 'regions' list is sized 'auto' (heading regions included), the record has no numeric row to hold the leftover height, so its 'anchor' places the whole stack, title and subtitle included, in the content box's leftover height: 'middle'
|
|
8789
|
+
"description": "Vertical position of the content of every body region when it is shorter than the region. A split's 'anchor' replaces it for the regions under that split, and a region's own 'anchor' replaces both. Only 'anchor' is inherited, and only by body regions: the heading regions 'title' and 'subtitle' never take it (they set their own, HeadingRegion.anchor), and the other region rules stay per region. One exception places the whole slide: when the record is a column and every entry of its 'regions' list is sized 'auto' (heading regions included), the record has no numeric row to hold the leftover height, so its 'anchor' places the whole stack, title and subtitle included, in the content box's leftover height: 'middle' centers it, 'bottom' sits it at the foot, 'top' (default) starts it at the top as before. A record with any numeric entry, a row record and an anchor on a split keep the rule above. Default 'top'."
|
|
8939
8790
|
},
|
|
8940
8791
|
"regions": {
|
|
8941
8792
|
"type": "array",
|
|
@@ -8989,7 +8840,7 @@ var layout = {
|
|
|
8989
8840
|
"overflowRegion": {
|
|
8990
8841
|
"type": "string",
|
|
8991
8842
|
"pattern": "^[a-z][a-z0-9-]*$",
|
|
8992
|
-
"description": "The region where content that no region accepts goes, whatever its 'accepts', while it has room; content beyond every region's room is drawn there too, with the warning opf/layout-unplaced. Omitted: the first primary region (in reading order)
|
|
8843
|
+
"description": "The region where content that no region accepts goes, whatever its 'accepts', while it has room; content beyond every region's room is drawn there too, with the warning opf/layout-unplaced. Omitted: the first primary region (in reading order) that is not a single-block region ('max': 1)."
|
|
8993
8844
|
},
|
|
8994
8845
|
"tags": {
|
|
8995
8846
|
"type": "array",
|
|
@@ -9173,7 +9024,7 @@ var layout = {
|
|
|
9173
9024
|
"subtitle"
|
|
9174
9025
|
]
|
|
9175
9026
|
},
|
|
9176
|
-
"description": "The region's name, lowercase kebab-case, unique across the whole record. A block targets it with 'region': '<name>'. It may not be 'title' (those are heading regions), 'tag', 'auto' or one of the
|
|
9027
|
+
"description": "The region's name, lowercase kebab-case, unique across the whole record. A block targets it with 'region': '<name>'. It may not be 'title' (those are heading regions), 'tag', 'auto' or one of the cell words of a slide without a layout ('start', 'center', 'end', 'top', 'middle', 'bottom'), so a block's 'region' (and a Markdown block's region= option) stays unambiguous: the validate finding opf/layout-region.",
|
|
9177
9028
|
"examples": [
|
|
9178
9029
|
"main",
|
|
9179
9030
|
"aside",
|
|
@@ -9221,43 +9072,31 @@ var layout = {
|
|
|
9221
9072
|
"type": "string",
|
|
9222
9073
|
"enum": [
|
|
9223
9074
|
"primary",
|
|
9224
|
-
"secondary",
|
|
9225
9075
|
"media",
|
|
9226
9076
|
"supporting"
|
|
9227
9077
|
],
|
|
9228
|
-
"description": "Which content the region wants first. Binding gives a picture (image, video) to a media region first, then primary,
|
|
9078
|
+
"description": "Which content the region wants first. Binding gives a picture (image, video) to a media region first, then primary, supporting; every other kind to a primary region first, then supporting, media; of two equal regions the first in reading order fills first. A supporting region receives content only when no primary region that accepts it has room, or by a pin. Default 'primary'. OPF 0.35 removed 'secondary': write 'supporting' (or 'primary' for content that must be bound first); the old value fails the schema as opf/catalog-record."
|
|
9229
9079
|
},
|
|
9230
9080
|
"flow": {
|
|
9231
9081
|
"type": "string",
|
|
9232
9082
|
"enum": [
|
|
9233
|
-
"
|
|
9083
|
+
"auto",
|
|
9234
9084
|
"grid",
|
|
9235
|
-
"
|
|
9236
|
-
"
|
|
9085
|
+
"row",
|
|
9086
|
+
"column"
|
|
9237
9087
|
],
|
|
9238
|
-
"description": "How several blocks share the region: '
|
|
9088
|
+
"description": "How several blocks share the region, in the words of composition.mode: 'auto' a grid when every block is short and a column when any block is long (more than 6 estimated lines in its grid cell at the starting size); 'grid' by count (1 fills, 2 side by side, 3 in a row, 4 as 2 x 2, 5 as 3 + 2, 6 as 3 x 2, 7 to 12 in balanced rows of at most four, 9 as 3 x 3; rows and columns swap in a portrait region; the cells of a short row stretch to the full width, or keep one size and are centered in a grid of pictures); 'row' side by side in one row, one cell each at equal widths in reading order, the counterpart of 'column' (the row is kept as written: no paragraph columns, lead block, list grid or regrouping replaces it); 'column' stacked at the heights the blocks need, one gap apart, and placed by the region's anchor (charts, pictures, tables, timelines and videos take what the measured blocks leave; blocks that do not fit share the region, each giving up the same fraction of what it can give up above its height at the minimum font size). A region of one block is 'max': 1, not a flow. OPF 0.35 removed 'none' (write 'max': 1) and design.contentDirection (write 'row' or 'column' here, or composition.mode on an automatic slide). Default 'auto'."
|
|
9239
9089
|
},
|
|
9240
9090
|
"max": {
|
|
9241
9091
|
"type": "integer",
|
|
9242
9092
|
"minimum": 1,
|
|
9243
9093
|
"maximum": 12,
|
|
9244
|
-
"description": "Blocks the region holds on one slide. Default 1 for flow 'none'
|
|
9094
|
+
"description": "Blocks the region holds on one slide. Default 6. 1 makes a single-block region: its block fills it, and blocks no region had room for still join it, up to 6, arranged by its flow (as 'none' did before OPF 0.35); a single-block region is never the default overflowRegion, nor the region a slide's own composition.mode arranges. Content beyond every region's room is drawn in the overflow region with the warning opf/layout-unplaced, and paginate moves it to a continuation slide."
|
|
9245
9095
|
},
|
|
9246
9096
|
"bleed": {
|
|
9247
9097
|
"type": "boolean",
|
|
9248
9098
|
"description": "The region's outer edges that lie on the content box's edge extend to the slide edge, as a placed image does. A bled region is never drawn as a card. Default false."
|
|
9249
9099
|
},
|
|
9250
|
-
"listColumns": {
|
|
9251
|
-
"oneOf": [
|
|
9252
|
-
{
|
|
9253
|
-
"const": "auto"
|
|
9254
|
-
},
|
|
9255
|
-
{
|
|
9256
|
-
"const": 1
|
|
9257
|
-
}
|
|
9258
|
-
],
|
|
9259
|
-
"description": "'auto': a list in the region that does not fit its cell at the starting size (a lone list, or one of several blocks) flows into up to three columns before it shrinks, as a list payload's columns: 'auto'; a list of 6 or fewer entries is never split. 2 or more lists alone in a region are one list per cell in a grid instead. Default 1."
|
|
9260
|
-
},
|
|
9261
9100
|
"metrics": {
|
|
9262
9101
|
"type": "string",
|
|
9263
9102
|
"enum": [
|
|
@@ -9266,36 +9105,23 @@ var layout = {
|
|
|
9266
9105
|
],
|
|
9267
9106
|
"description": "How a metric block in the region is laid out. 'stack' (default): value, unit, label and the rest as one block at the region's anchor and content alignment. 'tile': the metric fills its cell (its card when the layout draws cards) from the start: the label first as an eyebrow, the value under it asking for a quarter of the cell's height (between its 76 px role size and twice it, fitted down as usual), and the description, delta and trend at the foot of the cell."
|
|
9268
9107
|
},
|
|
9269
|
-
"sequence": {
|
|
9270
|
-
"type": "string",
|
|
9271
|
-
"enum": [
|
|
9272
|
-
"steps",
|
|
9273
|
-
"numbered"
|
|
9274
|
-
],
|
|
9275
|
-
"description": "The region lists the steps of a sequence. 'steps': two or more text or list blocks are the steps, each under a numbered badge (an accent circle with its numeral; a one-entry numbered list gives the badge its number and draws as a heading over its description) on one connector line through the badge centers; a lone list's entries are the steps, each beside its badge on a connector down the badge column; a lone list of 3 to 6 entries of one or two words is a flow of chips joined by arrows. 'numbered' (an agenda, ordered by nature): every list of two or more entries of one level draws its entries beside badges, numbered or not; an unnumbered list is counted in arabic, continuing from the region's previous unnumbered list, as drawing only (the document keeps no numbering). Steps keep the text size they have without the badges: a slide whose blocks would get smaller draws them as before. Absent: the region's content draws as any other."
|
|
9276
|
-
},
|
|
9277
9108
|
"arrangement": {
|
|
9278
9109
|
"type": "string",
|
|
9279
9110
|
"enum": [
|
|
9111
|
+
"steps",
|
|
9112
|
+
"numbered",
|
|
9280
9113
|
"pyramid",
|
|
9114
|
+
"inverted-pyramid",
|
|
9281
9115
|
"matrix",
|
|
9282
9116
|
"cycle",
|
|
9283
9117
|
"chevrons",
|
|
9284
|
-
"
|
|
9285
|
-
"vertical-
|
|
9118
|
+
"process",
|
|
9119
|
+
"vertical-process",
|
|
9286
9120
|
"org-chart",
|
|
9287
9121
|
"hierarchy",
|
|
9288
9122
|
"venn"
|
|
9289
9123
|
],
|
|
9290
|
-
"description": "
|
|
9291
|
-
},
|
|
9292
|
-
"pyramidDirection": {
|
|
9293
|
-
"type": "string",
|
|
9294
|
-
"enum": [
|
|
9295
|
-
"up",
|
|
9296
|
-
"down"
|
|
9297
|
-
],
|
|
9298
|
-
"description": "For arrangement 'pyramid': 'up' (default) puts the narrow tip first, at the top; 'down' puts the widest level first and the tip at the bottom. Entries retain their authored top-to-bottom order. Both the continuous and stepped designs use shared geometry; downward pyramids export as editable native shapes until live SmartArt is qualified."
|
|
9124
|
+
"description": "What the region draws its content as. 'steps' and 'numbered' draw a sequence; the other values draw a lone list of one level as a diagram (docs/smartart.md). Absent: the region's content draws as any other.\n\n'steps': two or more text or list blocks are the steps, each under a numbered badge (an accent circle with its numeral; a one-entry numbered list gives the badge its number and draws as a heading over its description) on one connector line through the badge centers; a lone list's entries are the steps, each beside its badge on a connector down the badge column; a lone list of 2 to 8 entries of one level, each of one or two words and at most 24 characters, without numbering, descriptions or icons, draws as Basic Process instead (the 'process' drawing below) where it holds every entry at the size the steps would have or larger. 'numbered' (an agenda, ordered by nature): every list of two or more entries of one level draws its entries beside badges, numbered or not; an unnumbered list is counted in arabic, continuing from the region's previous unnumbered list, as drawing only (the document keeps no numbering). Steps keep the text size they have without the badges: a slide whose blocks would get smaller draws them as before.\n\nThe diagrams draw in the first design that holds every entry at one size, the list's role size or larger (up to 1.5 times), never smaller: PowerPoint's own geometry (Basic Pyramid: 1 to 8 entries as stacked levels, the first at the apex; Basic Matrix: exactly four entries as the quadrants of a centered square over a diamond; Basic Cycle: 1 to 8 entries as circles on a ring, the first at the top and the rest clockwise, with an arrow from each to the next, in a frame of the cycle's own proportion centered in the region), which the PPTX export writes as live SmartArt where PowerPoint lays it out as the preview draws it; else OPF's own design (a stepped pyramid with each entry beside its level, four quadrants filling the region, or rounded rectangles on a ring filling the region with an arrow from each to the next). 'inverted-pyramid' is the pyramid upside down: the widest level first and the tip at the bottom, the entries still in their authored top-to-bottom order; it exports as editable native shapes. A matrix of other than four entries draws a grid of cards. 'chevrons' (Basic Chevron Process: 1 to 8 entries as a row of chevrons), 'process' (Basic Process: a row of boxes with arrows between them) and 'vertical-process' (Vertical Process: a column of boxes with arrows between them), in PowerPoint's geometry where it holds the entries, else OPF's own row or column filling the region. Nodes are filled in the primary color with a 1.5 pt outline in the background color (cards in the card neutral). A cycle's arrows are the primary lightened 40%. A list with nested entries, descriptions, icons or numbering, more than 8 levels or steps, or one no design holds, draws as a list; opf/arrangement-adapted (info) reports the cards and the lists. 'org-chart' and 'hierarchy' take a list whose entry levels form one tree (one root at the first level, each child one level below its parent); a skipped level or a second root keeps the authored list, reported by opf/arrangement-adapted. 'venn' draws 1 to 7 flat sets. These arrangements never draw the list smaller than its own size; whether PowerPoint can edit the result as native shapes and text is decided separately."
|
|
9299
9125
|
},
|
|
9300
9126
|
"anchor": {
|
|
9301
9127
|
"type": "string",
|
|
@@ -9312,30 +9138,11 @@ var layout = {
|
|
|
9312
9138
|
"collapse",
|
|
9313
9139
|
"keep"
|
|
9314
9140
|
],
|
|
9315
|
-
"description": "What the region does on a slide that gives it no content: 'collapse' (default) joins its cells to a
|
|
9141
|
+
"description": "What the region does on a slide that gives it no content: 'collapse' (default) joins its cells to a neighboring area that shares the full length of one of its edges and is not itself empty; 'keep' leaves the space."
|
|
9316
9142
|
}
|
|
9317
9143
|
},
|
|
9318
9144
|
"required": [
|
|
9319
9145
|
"name"
|
|
9320
|
-
],
|
|
9321
|
-
"allOf": [
|
|
9322
|
-
{
|
|
9323
|
-
"if": {
|
|
9324
|
-
"required": [
|
|
9325
|
-
"pyramidDirection"
|
|
9326
|
-
]
|
|
9327
|
-
},
|
|
9328
|
-
"then": {
|
|
9329
|
-
"required": [
|
|
9330
|
-
"arrangement"
|
|
9331
|
-
],
|
|
9332
|
-
"properties": {
|
|
9333
|
-
"arrangement": {
|
|
9334
|
-
"const": "pyramid"
|
|
9335
|
-
}
|
|
9336
|
-
}
|
|
9337
|
-
}
|
|
9338
|
-
}
|
|
9339
9146
|
]
|
|
9340
9147
|
},
|
|
9341
9148
|
"DesignHints": {
|
|
@@ -9352,6 +9159,14 @@ var layout = {
|
|
|
9352
9159
|
],
|
|
9353
9160
|
"description": "Horizontal alignment of the title heading area. Logical, as design.titleAlignment of a deck: 'start' is the edge a paragraph starts on."
|
|
9354
9161
|
},
|
|
9162
|
+
"titlePosition": {
|
|
9163
|
+
"type": "string",
|
|
9164
|
+
"enum": [
|
|
9165
|
+
"top",
|
|
9166
|
+
"start"
|
|
9167
|
+
],
|
|
9168
|
+
"description": "Where the heading group sits, as design.titlePosition of a deck: 'top' above the body, or 'start' beside it in a column of two fifths of the content width on the reading side. A record writes its regions under its title and sets 'start' to draw them beside it (the gallery's cycle, matrix and vertical-process do)."
|
|
9169
|
+
},
|
|
9355
9170
|
"contentAlignment": {
|
|
9356
9171
|
"type": "string",
|
|
9357
9172
|
"enum": [
|
|
@@ -9365,25 +9180,6 @@ var layout = {
|
|
|
9365
9180
|
"type": "boolean",
|
|
9366
9181
|
"description": "Whether the body regions are drawn inside a visible card or surface."
|
|
9367
9182
|
},
|
|
9368
|
-
"contentDirection": {
|
|
9369
|
-
"type": "string",
|
|
9370
|
-
"enum": [
|
|
9371
|
-
"horizontal",
|
|
9372
|
-
"vertical"
|
|
9373
|
-
],
|
|
9374
|
-
"description": "Axis along which parallel body content is arranged: 'vertical' is a column, 'horizontal' a row. On a layout slide it turns every flowing region into one row or one column; the slide's own composition.mode, columns and weights rank above it."
|
|
9375
|
-
},
|
|
9376
|
-
"chartPrimary": {
|
|
9377
|
-
"type": "string",
|
|
9378
|
-
"enum": [
|
|
9379
|
-
"none",
|
|
9380
|
-
"top",
|
|
9381
|
-
"bottom",
|
|
9382
|
-
"start",
|
|
9383
|
-
"end"
|
|
9384
|
-
],
|
|
9385
|
-
"description": "Where the primary chart sits relative to supporting content on automatic slides. Template layouts express this arrangement with their regions; chartPrimary does not override a template."
|
|
9386
|
-
},
|
|
9387
9183
|
"imageFit": {
|
|
9388
9184
|
"type": "string",
|
|
9389
9185
|
"enum": [
|
|
@@ -10352,12 +10148,12 @@ var colorScheme = {
|
|
|
10352
10148
|
"$schema": {
|
|
10353
10149
|
"type": "string",
|
|
10354
10150
|
"const": "https://openpresentation.org/schema/opf-color-scheme/v1",
|
|
10355
|
-
"description": "Identifies a published record file as a
|
|
10151
|
+
"description": "Identifies a published record file as a color scheme record. Required in a published file; an embedded copy omits it."
|
|
10356
10152
|
},
|
|
10357
10153
|
"id": {
|
|
10358
10154
|
"type": "string",
|
|
10359
10155
|
"pattern": "^[a-z][a-z0-9-]*$",
|
|
10360
|
-
"description": "The
|
|
10156
|
+
"description": "The color scheme's id in its catalog, lowercase kebab-case. Required in a published record file; a document references the record by it (a bare id, or 'name:id' for a named group) and embeds it keyed by it, without this field.",
|
|
10361
10157
|
"examples": [
|
|
10362
10158
|
"cool-horizon",
|
|
10363
10159
|
"boost",
|
|
@@ -10955,6 +10751,14 @@ var iconSet = {
|
|
|
10955
10751
|
]
|
|
10956
10752
|
}
|
|
10957
10753
|
},
|
|
10754
|
+
"renamed": {
|
|
10755
|
+
"type": "object",
|
|
10756
|
+
"description": "Former icon names by current name, from the source package's aliases. Only a finding and an icon search read it; an old name is never an icon.",
|
|
10757
|
+
"additionalProperties": {
|
|
10758
|
+
"type": "string",
|
|
10759
|
+
"pattern": "^[a-z0-9][a-z0-9-]*$"
|
|
10760
|
+
}
|
|
10761
|
+
},
|
|
10958
10762
|
"tags": {
|
|
10959
10763
|
"type": "object",
|
|
10960
10764
|
"description": "Search keywords by icon name, from the source package: what an icon search (the MCP's search_icons, pptx.gallery) matches besides the name.",
|
|
@@ -11202,7 +11006,11 @@ var finding = {
|
|
|
11202
11006
|
},
|
|
11203
11007
|
"safe": {
|
|
11204
11008
|
"type": "boolean",
|
|
11205
|
-
"description": "True when
|
|
11009
|
+
"description": "True when the fix is the one repair the finding needs and can be applied without a person: it loses no content, what it writes is valid, and it changes nothing beyond the repair except what `changesDrawing` says, such as a removed key's mechanical replacement. False fixes need a deliberate choice, such as a new text color. Only a `patch` fix is applied; a `focus` fix names a field to write whatever `safe` says."
|
|
11010
|
+
},
|
|
11011
|
+
"changesDrawing": {
|
|
11012
|
+
"type": "boolean",
|
|
11013
|
+
"description": "True when applying this patch can change how a slide draws: the repair does not keep the drawing of the release that wrote the deck, such as a removed layout's replacement whose title column is narrower. Absent or false when the fixed deck draws as before. Hosts list such fixes, even safe ones, as changing the drawing."
|
|
11206
11014
|
},
|
|
11207
11015
|
"patch": {
|
|
11208
11016
|
"type": "array",
|