@openpresentation/opf 0.33.0 → 0.34.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.
Files changed (93) hide show
  1. package/README.md +3 -3
  2. package/dist/browser.js +20 -19
  3. package/dist/catalog-refs-CoIrOdAw.d.ts +937 -0
  4. package/dist/{catalog-schemas-CQTM-G8p.d.ts → catalog-schemas-FjLRPtjB.d.ts} +1 -1
  5. package/dist/{chart-data-oIZQlFGi.d.ts → chart-data-B_k-WTex.d.ts} +7 -4
  6. package/dist/{chunk-XIOC6N5P.js → chunk-244OPLAV.js} +1 -1
  7. package/dist/{chunk-S5QRGMUQ.js → chunk-2HX4BGAS.js} +6 -6
  8. package/dist/{chunk-Y557TYML.js → chunk-36DLVJGW.js} +19 -16
  9. package/dist/{chunk-VKEYV3ZK.js → chunk-3THGTDL2.js} +2 -2
  10. package/dist/{chunk-ABWEUXLV.js → chunk-42JBXJKW.js} +117 -21
  11. package/dist/chunk-BLCDUM7B.js +7 -0
  12. package/dist/{chunk-OPVJLL7H.js → chunk-CJVKOJ6B.js} +11841 -8687
  13. package/dist/{chunk-BI4ERFAA.js → chunk-DQ7QYOUV.js} +48 -13
  14. package/dist/{chunk-KVHNDHVS.js → chunk-F6BXO4AI.js} +1 -1
  15. package/dist/{chunk-UK3J6FSU.js → chunk-FAXO3SUE.js} +858 -268
  16. package/dist/{chunk-XANW7MB7.js → chunk-FIQMAIZV.js} +4 -4
  17. package/dist/{chunk-PJSPHHRK.js → chunk-FK5XG742.js} +3 -16
  18. package/dist/{chunk-R6C6BQOG.js → chunk-HHVQ2SDT.js} +1 -1
  19. package/dist/{chunk-DAS75LGR.js → chunk-HUGVYHZ2.js} +4 -4
  20. package/dist/{chunk-QF5RSRXU.js → chunk-LCT5ZV3Q.js} +750 -199
  21. package/dist/chunk-NLJFNCZ4.js +1560 -0
  22. package/dist/{chunk-VSBZC2PR.js → chunk-QGJVOPLG.js} +3 -3
  23. package/dist/{chunk-E7WQHMCL.js → chunk-QGTJF7HV.js} +16 -14
  24. package/dist/{chunk-VMBLNCX2.js → chunk-RUV7CCE6.js} +117 -30
  25. package/dist/{chunk-YS333HLA.js → chunk-U7TYSPYM.js} +2 -2
  26. package/dist/chunk-UJZN2ZH6.js +1 -0
  27. package/dist/{chunk-IJXKVM4W.js → chunk-VDZXNNZF.js} +1 -1
  28. package/dist/{chunk-YYT6N7AI.js → chunk-WCPDN7AY.js} +1 -1
  29. package/dist/{chunk-QD6DPS7X.js → chunk-WMFT5R7I.js} +2 -2
  30. package/dist/{chunk-INIMUBSE.js → chunk-XJUMFH33.js} +1 -1
  31. package/dist/{composition-zMiIgzip.d.ts → composition-CvtvgBDE.d.ts} +1360 -1531
  32. package/dist/composition.d.ts +3 -3
  33. package/dist/composition.js +2 -1
  34. package/dist/{conversion-mNth9XKm.d.ts → conversion-B_5AKTYQ.d.ts} +25 -7
  35. package/dist/conversion-CMBGOTAC.js +25 -0
  36. package/dist/convert.d.ts +4 -4
  37. package/dist/convert.js +15 -11
  38. package/dist/data.d.ts +2 -2
  39. package/dist/data.js +3 -2
  40. package/dist/{deck-report-BSlRiR0_.d.ts → deck-report-BVlQZ42f.d.ts} +3 -3
  41. package/dist/deck.d.ts +6 -6
  42. package/dist/deck.js +12 -11
  43. package/dist/diagram-engine-eager.js +5 -1
  44. package/dist/diagram-engine-lazy.js +13 -0
  45. package/dist/diagram-plantuml-XRZ6VAOL.js +3 -0
  46. package/dist/diff.js +5 -4
  47. package/dist/docs.js +64 -52
  48. package/dist/examples.js +4070 -1083
  49. package/dist/font-policy.js +1 -1
  50. package/dist/format.js +2 -2
  51. package/dist/ids.js +5 -4
  52. package/dist/index.d.ts +18 -16
  53. package/dist/index.js +35 -24
  54. package/dist/markdown.d.ts +2 -2
  55. package/dist/markdown.js +9 -8
  56. package/dist/node-engine.d.ts +43 -11
  57. package/dist/node-engine.js +45 -26
  58. package/dist/{pagination-CYzNMazO.d.ts → pagination-CZQQYk7L.d.ts} +4 -3
  59. package/dist/pagination.d.ts +4 -4
  60. package/dist/pagination.js +5 -4
  61. package/dist/patch.js +4 -3
  62. package/dist/precompiled.js +2 -2
  63. package/dist/{presentation-CXhfpB_z.d.ts → presentation-s9262acV.d.ts} +357 -230
  64. package/dist/repo-readme.js +1 -1
  65. package/dist/schema-engine-ajv.js +1 -1
  66. package/dist/schema-engine-precompiled.js +2 -2
  67. package/dist/schema.d.ts +3 -3
  68. package/dist/schema.js +4 -3
  69. package/dist/schemas.d.ts +16 -0
  70. package/dist/schemas.js +1 -1
  71. package/dist/shape-engine-eager.js +2 -2
  72. package/dist/shape-engine-lazy.js +1 -1
  73. package/dist/{shape-engine-module-BK7JNEUV.js → shape-engine-module-N74FCHGY.js} +2 -2
  74. package/dist/shape-geometry.js +1 -1
  75. package/dist/source.d.ts +10 -5
  76. package/dist/source.js +11 -10
  77. package/dist/spec/reference/engine-vocabularies.json +135 -0
  78. package/dist/spec/reference/font-policy.json +3 -16
  79. package/dist/spec/reference/preset-geometry.json +3 -3
  80. package/dist/spec/schemas/icon-set.schema.json +1 -1
  81. package/dist/spec/schemas/layout.schema.json +71 -25
  82. package/dist/spec/schemas/opf.schema.json +540 -168
  83. package/dist/spec/schemas/theme.schema.json +11 -5
  84. package/dist/types.d.ts +81 -73
  85. package/dist/{validation-types-COwTel3H.d.ts → validation-types-CYbsUuZ9.d.ts} +8 -5
  86. package/dist/validator.d.ts +34 -7
  87. package/dist/validator.js +4 -3
  88. package/dist/yaml.d.ts +2 -2
  89. package/dist/yaml.js +8 -7
  90. package/package.json +6 -6
  91. package/dist/catalog-refs-B_0_vZg0.d.ts +0 -134
  92. package/dist/chunk-ZXOIGUHX.js +0 -1
  93. package/dist/conversion-POHRAMSN.js +0 -24
@@ -3074,14 +3074,7 @@
3074
3074
  "replacement": {
3075
3075
  "decision": "segoe-ui-preview",
3076
3076
  "weight": 300,
3077
- "measured": {
3078
- "replacement": "Red Hat Display",
3079
- "meanAbsWidthDelta": 0.0187,
3080
- "meanWidthDelta": 0.0179,
3081
- "maxAbsWidthDelta": 0.0662,
3082
- "styles": 2,
3083
- "reference": "Segoe UI Light 5.71"
3084
- }
3077
+ "measured": null
3085
3078
  },
3086
3079
  "alternates": [
3087
3080
  "Carlito"
@@ -3139,14 +3132,8 @@
3139
3132
  "embeddableByOpf": false,
3140
3133
  "replacement": {
3141
3134
  "decision": "segoe-ui-preview",
3142
- "measured": {
3143
- "replacement": "Red Hat Display",
3144
- "meanAbsWidthDelta": 0.0322,
3145
- "meanWidthDelta": 0.0321,
3146
- "maxAbsWidthDelta": 0.0905,
3147
- "styles": 2,
3148
- "reference": "Segoe UI Semilight 5.71"
3149
- }
3135
+ "weight": 350,
3136
+ "measured": null
3150
3137
  },
3151
3138
  "alternates": [
3152
3139
  "Roboto"
@@ -3,7 +3,7 @@
3
3
  "description": "The 187 DrawingML preset shapes (ECMA-376 Part 1, ST_ShapeType) as reference data for engines (shapes SH-01): per preset, avLst (adjust values and their defaults), gdLst (guides and their formulas), ahLst (adjust handles with their ranges), cxnLst (connection sites), rect (the text rectangle; absent means the whole shape) and pathLst (paths with w/h, fill, stroke and extrusionOk, and the commands moveTo, lnTo, arcTo, quadBezTo, cubicBezTo and close). Values are the standard's own: guide names or integer literals, 1/100000 for adjust fractions and 60000ths of a degree for angles. Generated by scripts/build-preset-geometry.mjs; never edit by hand. The evaluator is packages/javascript/src/shape-geometry.ts.",
4
4
  "version": 1,
5
5
  "source": {"name":"presetShapeDefinitions.xml (ECMA-376 Part 1 electronic attachment, DrawingML preset geometries)","distribution":"Apache POI 5.5.1","url":"https://raw.githubusercontent.com/apache/poi/REL_5_5_1/poi/src/main/resources/org/apache/poi/sl/draw/geom/presetShapeDefinitions.xml","commit":"6048bedcdf1de60871b4a2fb7cf7cd242752e6c9","license":"Apache-2.0","licenseUrl":"https://raw.githubusercontent.com/apache/poi/REL_5_5_1/legal/LICENSE","notice":"Apache POI. Copyright 2003-2025 The Apache Software Foundation. This product includes software developed at The Apache Software Foundation (https://www.apache.org/).","standard":"ECMA-376 Part 1 (Office Open XML), DrawingML preset shape definitions. As defined in section 9.4 of the Ecma bylaws, the specification is available to all interested parties without restriction.","sha256":"a7dad593d27bd70536b41da9b761fa16409536cc0c25ef2b6c7a61c5d9b3e738"},
6
- "errata": [{"shape":"pie","field":"rect","from":["il","ir","it","ib"],"to":["il","it","ir","ib"],"note":"The file swaps t and r (l=il t=ir r=it b=ib), a rectangle of negative size; PowerPoint lays out pie text in the ellipse's text rectangle (il, it, ir, ib)."},{"shape":"curvedLeftArrow","field":"cxnLst","index":2,"from":["cd3","l","y6"],"to":["cd2","l","y6"],"note":"The arrow tip's site names the undefined guide cd3; it faces left (cd2), mirroring curvedRightArrow's tip (0, r, y6)."}],
6
+ "errata": [{"shape":"pie","field":"rect","from":["il","ir","it","ib"],"to":["il","it","ir","ib"],"note":"The file swaps t and r (l=il t=ir r=it b=ib), a rectangle of negative size; PowerPoint lays out pie text in the ellipse's text rectangle (il, it, ir, ib)."},{"shape":"curvedLeftArrow","field":"cxnLst","index":2,"from":["cd3","l","y6"],"to":["cd2","l","y6"],"note":"The arrow tip's site names the undefined guide cd3; it faces left (cd2), mirroring curvedRightArrow's tip (0, r, y6)."},{"shape":"star24","field":"ahLst","index":0,"from":{"type":"xy","gdRefY":"adj","minY":"0","maxY":"ssd2","pos":["hc","yAdj"]},"to":{"type":"xy","gdRefY":"adj","minY":"0","maxY":"50000","pos":["hc","yAdj"]},"note":"The inner-radius handle's maximum is the length ssd2, not an adjust fraction; it is 50000 (half the shape), as for star4 to star16."},{"shape":"star32","field":"ahLst","index":0,"from":{"type":"xy","gdRefY":"adj","minY":"0","maxY":"ssd2","pos":["hc","yAdj"]},"to":{"type":"xy","gdRefY":"adj","minY":"0","maxY":"50000","pos":["hc","yAdj"]},"note":"The inner-radius handle's maximum is the length ssd2, not an adjust fraction; it is 50000 (half the shape), as for star4 to star16."}],
7
7
  "shapes": {
8
8
  "accentBorderCallout1": {
9
9
  "avLst": [
@@ -9161,7 +9161,7 @@
9161
9161
  ["yAdj","+- vc 0 ihd2"]
9162
9162
  ],
9163
9163
  "ahLst": [
9164
- {"type":"xy","gdRefY":"adj","minY":"0","maxY":"ssd2","pos":["hc","yAdj"]}
9164
+ {"type":"xy","gdRefY":"adj","minY":"0","maxY":"50000","pos":["hc","yAdj"]}
9165
9165
  ],
9166
9166
  "cxnLst": [
9167
9167
  ["3cd4","hc","t"],
@@ -9331,7 +9331,7 @@
9331
9331
  ["yAdj","+- vc 0 ihd2"]
9332
9332
  ],
9333
9333
  "ahLst": [
9334
- {"type":"xy","gdRefY":"adj","minY":"0","maxY":"ssd2","pos":["hc","yAdj"]}
9334
+ {"type":"xy","gdRefY":"adj","minY":"0","maxY":"50000","pos":["hc","yAdj"]}
9335
9335
  ],
9336
9336
  "cxnLst": [
9337
9337
  ["3cd4","hc","t"],
@@ -3,7 +3,7 @@
3
3
  "$id": "https://openpresentation.org/schema/opf-icon-set/v1",
4
4
  "$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.",
5
5
  "title": "Icon Set",
6
- "description": "Schema for icon-set records (LH-14): one set of icons that share a viewBox and a style, each icon as SVG path data. An OPF `icon` names one as `<set>:<name>` (docs/icons.md). @openpresentation/gallery ships Lucide and Tabler outline, generated from their npm packages; a host registers them as `galleryIconSets` of `@openpresentation/gallery/icon-sets` and loads a set only when a deck uses it, and a document embeds only the icons it uses under `catalogs.<group>.iconSets.<id>` (a record without `$schema`, `id`, `licenseText` or `tags`).",
6
+ "description": "Schema for icon-set records: one set of icons that share a viewBox and a style, each icon as SVG path data. An OPF `icon` names one as `<set>:<name>` (docs/icons.md). @openpresentation/gallery ships Lucide and Tabler outline, generated from their npm packages; a host registers them as `galleryIconSets()` of `@openpresentation/gallery/icon-sets` and loads only the icons a deck uses, and a document embeds only the icons it uses under `catalogs.<group>.iconSets.<id>` (a record without `$schema`, `id`, `licenseText` or `tags`).",
7
7
  "type": "object",
8
8
  "required": ["$schema", "id", "name", "license", "copyright", "viewBox", "style", "icons"],
9
9
  "additionalProperties": false,
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "summary": {
44
44
  "type": "string",
45
- "description": "One-sentence positioning of the layout \u2014 when to reach for it.",
45
+ "description": "One-sentence positioning of the layout — when to reach for it.",
46
46
  "examples": [
47
47
  "Two to six ideas of equal weight, as cards.",
48
48
  "A chart with the takeaway beside it."
@@ -65,7 +65,7 @@
65
65
  "row",
66
66
  "column"
67
67
  ],
68
- "description": "How the record's 'regions' are laid out: 'row' places them side by side, left to right in reading order; 'column' stacks them top to bottom. Default 'column'.",
68
+ "description": "How the record's 'regions' are laid out: 'row' places them side by side from the start edge in reading order (left to right; right to left in a right-to-left deck); 'column' stacks them top to bottom. Default 'column'.",
69
69
  "examples": [
70
70
  "row",
71
71
  "column"
@@ -254,11 +254,11 @@
254
254
  "middle",
255
255
  "bottom"
256
256
  ],
257
- "description": "Vertical position of the heading group in its area when the area is sized (a number): 'middle' (default) centers it, 'bottom' sets it at the foot of the area, as a cover or section sets its display title low (LH-130), 'top' at the top. An 'auto' area is as tall as the group, so the anchor changes nothing there. A heading region never inherits the 'anchor' of the record or a split."
257
+ "description": "Vertical position of the heading group in its area when the area is sized (a number): 'middle' (default) centers it, 'bottom' sets it at the foot of the area, as a cover or section sets its display title low, 'top' at the top. An 'auto' area is as tall as the group, so the anchor changes nothing there. A heading region never inherits the 'anchor' of the record or a split."
258
258
  },
259
259
  "rule": {
260
260
  "type": "boolean",
261
- "description": "'title' only: draw a short accent rule (80 by 5 px at a 720 px short edge) half a gap above the title, at the title's start edge, on a slide with a title and no tag; a tag is the group's eyebrow and takes the rule's place (LH-130). Engines draw it in the tag's color, the primary or the text color where the primary is under 4.5:1 on the slide. Default false."
261
+ "description": "'title' only: draw a short accent rule (80 by 5 px at a 720 px short edge) half a gap above the title, at the title's start edge, on a slide with a title and no tag; a tag is the group's eyebrow and takes the rule's place. Engines draw it in the tag's color, the primary or the text color where the primary is under 4.5:1 on the slide. Default false."
262
262
  }
263
263
  }
264
264
  },
@@ -316,7 +316,7 @@
316
316
  "subtitle"
317
317
  ]
318
318
  },
319
- "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 promoted-region words ('left', 'center', 'right', 'top', 'middle', 'bottom'), so a Markdown block's region= option stays unambiguous: the validate finding opf/layout-region.",
319
+ "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 promoted-region words ('start', 'center', 'end', 'top', 'middle', 'bottom'), so a Markdown block's region= option stays unambiguous: the validate finding opf/layout-region.",
320
320
  "examples": [
321
321
  "main",
322
322
  "aside",
@@ -348,7 +348,7 @@
348
348
  "group"
349
349
  ]
350
350
  },
351
- "description": "Content kinds the region takes: the body content kinds, and 'group' for a content group of any content. A region that takes 'image' also takes a shape block (SH-02). A group is also accepted where every one of its leaf kinds is. Omitted: every body content kind and 'group'.",
351
+ "description": "Content kinds the region takes: the body content kinds, and 'group' for a content group of any content. A region that takes 'image' also takes a shape block. A group is also accepted where every one of its leaf kinds is. Omitted: every body content kind and 'group'.",
352
352
  "examples": [
353
353
  [
354
354
  "text",
@@ -415,7 +415,7 @@
415
415
  "steps",
416
416
  "numbered"
417
417
  ],
418
- "description": "The region lists the steps of a sequence (LH-07). '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."
418
+ "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."
419
419
  },
420
420
  "arrangement": {
421
421
  "type": "string",
@@ -425,9 +425,20 @@
425
425
  "cycle",
426
426
  "chevrons",
427
427
  "flow",
428
- "vertical-flow"
428
+ "vertical-flow",
429
+ "org-chart",
430
+ "hierarchy",
431
+ "venn"
429
432
  ],
430
- "description": "SH-09: the region draws its lone list of one level as a diagram (docs/smartart.md), 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; SH-18, 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). A matrix of other than four entries draws a grid of cards. SH-17: 'chevrons' (Basic Chevron Process: 1 to 8 entries as a row of chevrons), 'flow' (Basic Process: a row of boxes with arrows between them) and 'vertical-flow' (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. Absent: the region's content draws as any other."
433
+ "description": "The region draws its lone list of one level as a diagram (docs/smartart.md), 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). 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), 'flow' (Basic Process: a row of boxes with arrows between them) and 'vertical-flow' (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. Absent: the region's content draws as any other."
434
+ },
435
+ "pyramidDirection": {
436
+ "type": "string",
437
+ "enum": [
438
+ "up",
439
+ "down"
440
+ ],
441
+ "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."
431
442
  },
432
443
  "anchor": {
433
444
  "type": "string",
@@ -449,6 +460,25 @@
449
460
  },
450
461
  "required": [
451
462
  "name"
463
+ ],
464
+ "allOf": [
465
+ {
466
+ "if": {
467
+ "required": [
468
+ "pyramidDirection"
469
+ ]
470
+ },
471
+ "then": {
472
+ "required": [
473
+ "arrangement"
474
+ ],
475
+ "properties": {
476
+ "arrangement": {
477
+ "const": "pyramid"
478
+ }
479
+ }
480
+ }
481
+ }
452
482
  ]
453
483
  },
454
484
  "DesignHints": {
@@ -459,20 +489,20 @@
459
489
  "titleAlignment": {
460
490
  "type": "string",
461
491
  "enum": [
462
- "left",
492
+ "start",
463
493
  "center",
464
- "right"
494
+ "end"
465
495
  ],
466
- "description": "Horizontal alignment of the title heading area."
496
+ "description": "Horizontal alignment of the title heading area. Logical, as design.titleAlignment of a deck: 'start' is the edge a paragraph starts on."
467
497
  },
468
498
  "contentAlignment": {
469
499
  "type": "string",
470
500
  "enum": [
471
- "left",
501
+ "start",
472
502
  "center",
473
- "right"
503
+ "end"
474
504
  ],
475
- "description": "Horizontal alignment of the body regions."
505
+ "description": "Horizontal alignment of the body regions. Logical, as design.contentAlignment of a deck: 'start' is the edge a paragraph starts on."
476
506
  },
477
507
  "contentBox": {
478
508
  "type": "boolean",
@@ -492,8 +522,8 @@
492
522
  "none",
493
523
  "top",
494
524
  "bottom",
495
- "left",
496
- "right"
525
+ "start",
526
+ "end"
497
527
  ],
498
528
  "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."
499
529
  },
@@ -518,7 +548,10 @@
518
548
  },
519
549
  "listStyle": {
520
550
  "type": "string",
521
- "enum": ["stack", "rows"],
551
+ "enum": [
552
+ "stack",
553
+ "rows"
554
+ ],
522
555
  "description": "As design.listStyle of a deck: 'stack' or 'rows' (ruled rows) for the lists of slides using this layout."
523
556
  },
524
557
  "mirror": {
@@ -527,19 +560,32 @@
527
560
  },
528
561
  "variant": {
529
562
  "oneOf": [
530
- { "$ref": "https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot" },
531
- { "$ref": "https://openpresentation.org/schema/opf/v1#/$defs/ColorVariant" },
532
- { "$ref": "#/$defs/LayoutVariantRole" }
563
+ {
564
+ "$ref": "https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot"
565
+ },
566
+ {
567
+ "$ref": "https://openpresentation.org/schema/opf/v1#/$defs/ColorVariant"
568
+ },
569
+ {
570
+ "$ref": "#/$defs/LayoutVariantRole"
571
+ }
533
572
  ],
534
- "description": "The color variant slides on this layout draw on (LH-01): a background slot ('accent1', 'dark1', ...) or the ColorVariant object, as design.variant, or a value relative to the deck's own variant (LayoutVariantRole: 'surface', 'brand'), so the layout keeps the deck's tone. Unlike the other keys it outranks the deck's design and the theme: the slide's own design.variant or design.background wins, then this, then the deck's variant or background, then the theme's. It hides a background of the deck or theme (the slide is the variant's bg1), and without an accent order of its own it keeps the deck's.",
535
- "examples": ["accent1", "surface", "brand"]
573
+ "description": "The color variant slides on this layout draw on: a background slot ('accent1', 'dark1', ...) or the ColorVariant object, as design.variant, or a value relative to the deck's own variant (LayoutVariantRole: 'surface', 'brand'), so the layout keeps the deck's tone. Unlike the other keys it outranks the deck's design and the theme: the slide's own design.variant or design.background wins, then this, then the deck's variant or background, then the theme's. It hides a background of the deck or theme (the slide is the variant's bg1), and without an accent order of its own it keeps the deck's.",
574
+ "examples": [
575
+ "accent1",
576
+ "surface",
577
+ "brand"
578
+ ]
536
579
  }
537
580
  }
538
581
  },
539
582
  "LayoutVariantRole": {
540
583
  "type": "string",
541
- "enum": ["surface", "brand"],
542
- "description": "A layout variant relative to the deck's own variant (LH-01). 'surface' is the deck's secondary surface on its own side: light2 on a light deck and dark2 on a dark one (light1 or dark1 where the deck is already on light2 or dark2), so a statement stands off the deck without changing its tone. 'brand' is the scheme's brand dark, dark2 (dark1 where the deck is already on dark2), with light text: a closing slide's strong surface on a light or a dark deck."
584
+ "enum": [
585
+ "surface",
586
+ "brand"
587
+ ],
588
+ "description": "A layout variant relative to the deck's own variant. 'surface' is the deck's secondary surface on its own side: light2 on a light deck and dark2 on a dark one (light1 or dark1 where the deck is already on light2 or dark2), so a statement stands off the deck without changing its tone. 'brand' is the scheme's brand dark, dark2 (dark1 where the deck is already on dark2), with light text: a closing slide's strong surface on a light or a dark deck."
543
589
  },
544
590
  "Composition": {
545
591
  "type": "object",