@openpresentation/opf 0.33.0 → 0.34.1

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-KVHNDHVS.js → chunk-2B6GLT2O.js} +1 -1
  8. package/dist/{chunk-VMBLNCX2.js → chunk-6PMXVP5G.js} +117 -30
  9. package/dist/{chunk-BI4ERFAA.js → chunk-AAWHOCXS.js} +48 -13
  10. package/dist/{chunk-QD6DPS7X.js → chunk-ABA2D6X5.js} +2 -2
  11. package/dist/{chunk-UK3J6FSU.js → chunk-AEHDXNZX.js} +862 -269
  12. package/dist/{chunk-DAS75LGR.js → chunk-AGYPRTEC.js} +4 -4
  13. package/dist/chunk-BLCDUM7B.js +7 -0
  14. package/dist/{chunk-OPVJLL7H.js → chunk-CJVKOJ6B.js} +11841 -8687
  15. package/dist/{chunk-Y557TYML.js → chunk-CQXBGZQP.js} +19 -16
  16. package/dist/{chunk-VKEYV3ZK.js → chunk-FCSYIBVR.js} +2 -2
  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-ABWEUXLV.js → chunk-L3MCLD3X.js} +117 -21
  20. package/dist/{chunk-QF5RSRXU.js → chunk-LCT5ZV3Q.js} +750 -199
  21. package/dist/{chunk-E7WQHMCL.js → chunk-MAFJ5O2D.js} +16 -14
  22. package/dist/{chunk-XANW7MB7.js → chunk-MUILZGRY.js} +4 -4
  23. package/dist/chunk-NLJFNCZ4.js +1560 -0
  24. package/dist/{chunk-VSBZC2PR.js → chunk-SR6T4LKI.js} +3 -3
  25. package/dist/chunk-UJZN2ZH6.js +1 -0
  26. package/dist/{chunk-IJXKVM4W.js → chunk-VDZXNNZF.js} +1 -1
  27. package/dist/{chunk-YYT6N7AI.js → chunk-WCPDN7AY.js} +1 -1
  28. package/dist/{chunk-S5QRGMUQ.js → chunk-X72WPTST.js} +6 -6
  29. package/dist/{chunk-INIMUBSE.js → chunk-XJUMFH33.js} +1 -1
  30. package/dist/{chunk-YS333HLA.js → chunk-XLSWZSQS.js} +2 -2
  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-CSQ5EHD2.js +25 -0
  35. package/dist/{conversion-mNth9XKm.d.ts → conversion-CyNRlWGw.d.ts} +25 -7
  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 +65 -53
  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
@@ -208,7 +208,7 @@
208
208
  },
209
209
  "icons": {
210
210
  "$ref": "#/$defs/Icons",
211
- "description": "Optional deck-local icons (LH-14), keyed by name: an author's or an LLM's own SVG, written once and named by any `icon` of the deck. See docs/icons.md."
211
+ "description": "Optional deck-local icons, keyed by name: an author's or an LLM's own SVG, written once and named by any `icon` of the deck. See docs/icons.md."
212
212
  },
213
213
  "catalogs": {
214
214
  "$ref": "#/$defs/Catalogs",
@@ -273,8 +273,107 @@
273
273
  }
274
274
  ]
275
275
  },
276
+ "ImagePayload": {
277
+ "description": "An image source and optional image-local text callouts. Other resource kinds use Asset and do not accept callouts.",
278
+ "oneOf": [
279
+ {
280
+ "type": "string",
281
+ "examples": [
282
+ "asset:acme-logo",
283
+ "https://cdn.acme.com/image.png",
284
+ "./assets/image.png",
285
+ "data:image/png;base64,..."
286
+ ]
287
+ },
288
+ {
289
+ "type": "object",
290
+ "additionalProperties": false,
291
+ "required": [
292
+ "src"
293
+ ],
294
+ "properties": {
295
+ "src": {
296
+ "type": "string",
297
+ "description": "Image source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.",
298
+ "examples": [
299
+ "asset:acme-logo",
300
+ "./assets/logo.svg",
301
+ "https://cdn.acme.com/logo.png",
302
+ "data:image/svg+xml;base64,..."
303
+ ]
304
+ },
305
+ "alt": {
306
+ "type": "string",
307
+ "description": "Alternative text for the image."
308
+ },
309
+ "title": {
310
+ "type": "string",
311
+ "description": "Human-readable asset title for editors and asset pickers."
312
+ },
313
+ "description": {
314
+ "type": "string",
315
+ "description": "Optional notes about the asset's contents, provenance, or intended use."
316
+ },
317
+ "mediaType": {
318
+ "type": "string",
319
+ "description": "Optional MIME media type when it cannot be inferred from src.",
320
+ "examples": [
321
+ "image/svg+xml",
322
+ "image/png",
323
+ "image/webp"
324
+ ]
325
+ },
326
+ "callouts": {
327
+ "type": "array",
328
+ "items": {
329
+ "$ref": "#/$defs/ImageCallout"
330
+ },
331
+ "description": "Editable text panels over this image. Coordinates are fractions of its visible frame, measured from the physical top-left even in RTL. Panels are drawn above masks and overlays; overflowing text is reported, never clipped or shrunk below the body role."
332
+ }
333
+ }
334
+ }
335
+ ]
336
+ },
337
+ "ImageCallout": {
338
+ "type": "object",
339
+ "additionalProperties": false,
340
+ "required": [
341
+ "text",
342
+ "x",
343
+ "y",
344
+ "width",
345
+ "height"
346
+ ],
347
+ "properties": {
348
+ "text": {
349
+ "type": "string",
350
+ "description": "Plain editable text. Native edits preserve current words; an empty string is retained."
351
+ },
352
+ "x": {
353
+ "$ref": "#/$defs/FiniteNumber",
354
+ "description": "Signed fraction of the visible image frame width from its physical left edge. A callout points at pixels, and a picture never mirrors, so this coordinate is physical in every language. Negative values or values greater than 1 position the panel outside the image; its text is not clipped to the image. The slide crops what lies outside it."
355
+ },
356
+ "y": {
357
+ "$ref": "#/$defs/FiniteNumber",
358
+ "description": "Signed fraction of the visible image frame height from its physical top edge. Negative values or values greater than 1 position the panel outside the image; its text is not clipped to the image. The slide crops what lies outside it."
359
+ },
360
+ "width": {
361
+ "type": "number",
362
+ "exclusiveMinimum": 0,
363
+ "maximum": 1,
364
+ "description": "Positive fraction of the visible image frame width, at most 1. The signed x origin controls placement outside the frame."
365
+ },
366
+ "height": {
367
+ "type": "number",
368
+ "exclusiveMinimum": 0,
369
+ "maximum": 1,
370
+ "description": "Positive fraction of the visible image frame height, at most 1. The signed y origin controls placement outside the frame."
371
+ }
372
+ }
373
+ },
276
374
  "Audience": {
277
375
  "type": "object",
376
+ "additionalProperties": false,
278
377
  "description": "Inline audience metadata for the presentation. Use 'id' to reference an audiences record (a bare id or 'name:id') and override selected fields, or use 'name' for a custom inline audience.",
279
378
  "anyOf": [
280
379
  { "required": ["id"] },
@@ -337,6 +436,7 @@
337
436
  },
338
437
  "Purpose": {
339
438
  "type": "object",
439
+ "additionalProperties": false,
340
440
  "description": "Inline purpose metadata for the presentation. Use 'id' to reference a purposes record (a bare id or 'name:id') and override selected fields, or use 'name' for a custom inline purpose.",
341
441
  "anyOf": [
342
442
  { "required": ["id"] },
@@ -388,6 +488,7 @@
388
488
  },
389
489
  "Language": {
390
490
  "type": "object",
491
+ "additionalProperties": false,
391
492
  "description": "Inline language metadata for the presentation: a BCP-47 'bcp47' tag plus overrides of what engines know about it. Languages are an engine vocabulary, not catalog records, so there is no 'id'.",
392
493
  "required": ["bcp47"],
393
494
  "not": { "required": ["id"] },
@@ -415,7 +516,7 @@
415
516
  "direction": {
416
517
  "type": "string",
417
518
  "enum": ["ltr", "rtl"],
418
- "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."
519
+ "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, promoted regions, image placement, overlay bands, chartPrimary 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."
419
520
  },
420
521
  "script": {
421
522
  "type": "string",
@@ -447,6 +548,7 @@
447
548
  },
448
549
  "Tone": {
449
550
  "type": "object",
551
+ "additionalProperties": false,
450
552
  "description": "Inline tone metadata for the presentation. Use 'id' to reference a tones record (a bare id or 'name:id') and override selected fields, or use 'name' for a custom inline tone.",
451
553
  "anyOf": [
452
554
  { "required": ["id"] },
@@ -499,6 +601,7 @@
499
601
  },
500
602
  "Organization": {
501
603
  "type": "object",
604
+ "additionalProperties": false,
502
605
  "description": "An organization associated with the presentation, typically the presenting company, but also hosts, partners, clients, or sponsors. The primary organization (role 'primary', else the first one) supplies the cover and section logo (unless design.logo overrides it) and the 'socials' header/footer field (its socials). Every field is also a built-in variable ('{{organization.name}}', 'organization.<id>.<field>'), and every logo a slide-scoped image ('var:organization.logo.icon', 'var:organization.<id>.logo'). Nothing else about an organization is drawn automatically. See docs/templates-and-variables.md.",
503
606
  "required": ["id", "name"],
504
607
  "properties": {
@@ -566,6 +669,7 @@
566
669
  },
567
670
  "Speaker": {
568
671
  "type": "object",
672
+ "additionalProperties": false,
569
673
  "description": "A person presenting the deck. A speaker is drawn only through built-in variables ('{{speaker.name}}' inside any string, a header or footer text included, and 'var:speaker.photo' as a whole image field). No layout, cover or bio slide places a speaker on its own. See docs/templates-and-variables.md.",
570
674
  "required": ["id", "name"],
571
675
  "properties": {
@@ -650,6 +754,7 @@
650
754
  },
651
755
  "Design": {
652
756
  "type": "object",
757
+ "additionalProperties": false,
653
758
  "description": "Visual design system applied to the presentation; individual slides may override fields via Slide.design.",
654
759
  "properties": {
655
760
  "theme": {
@@ -714,7 +819,7 @@
714
819
  },
715
820
  { "type": "boolean", "const": false }
716
821
  ],
717
- "description": "Which logo covers, section dividers and picture bullets draw. Logos live on the organization (Organization.logo); without this field covers and sections draw the primary organization's full logo and picture bullets its icon. A logo reference overrides that: 'var:organization.beta.logo' draws organization beta's logo, and a reference that names a shape ('var:organization.logo.wordmark') draws that shape everywhere this field applies. false draws no logo. A slide's design.logo overrides the deck's; absence inherits. An override naming an organization without a logo draws nothing (validation warns). Placement (reference engines, vetoable): on a cover or section slide (no body payload on a heading-only layout such as title, title-subtitle or section-divider, or no layout) the logo is drawn at the top-left of the free area, inside the slide padding and below any header furniture, in a box 56 reference pixels tall and at most four times as wide; the tag/title/subtitle group then centers in the remaining span. Content slides never get an automatic logo; a header or footer zone places one with image: 'var:organization.logo.icon'. composeSlide returns the cover box as geometry.logo.",
822
+ "description": "Which logo covers, section dividers and picture bullets draw. Logos live on the organization (Organization.logo); without this field covers and sections draw the primary organization's full logo and picture bullets its icon. A logo reference overrides that: 'var:organization.beta.logo' draws organization beta's logo, and a reference that names a shape ('var:organization.logo.wordmark') draws that shape everywhere this field applies. false draws no logo. A slide's design.logo overrides the deck's; absence inherits. An override naming an organization without a logo draws nothing (validation warns). Placement (reference engines): on a cover or section slide (no body payload on a heading-only layout such as title, title-subtitle or section-divider, or no layout) the logo is drawn at the top-left of the free area, inside the slide padding and below any header furniture, in a box 56 reference pixels tall and at most four times as wide; the tag/title/subtitle group then centers in the remaining span. Content slides never get an automatic logo; a header or footer zone places one with image: 'var:organization.logo.icon'. composeSlide returns the cover box as geometry.logo.",
718
823
  "examples": ["var:organization.logo.wordmark", "var:organization.beta.logo", false]
719
824
  },
720
825
  "watermark": {
@@ -732,7 +837,7 @@
732
837
  { "$ref": "#/$defs/HeaderFooter" }
733
838
  ],
734
839
  "description": "Repeated header furniture rendered outside the main slide content. Use false to suppress an inherited header.",
735
- "examples": [false, { "left": { "text": "{{slide.section}}" }, "right": { "image": "var:organization.logo.icon" } }]
840
+ "examples": [false, { "start": { "text": "{{slide.section}}" }, "end": { "image": "var:organization.logo.icon" } }]
736
841
  },
737
842
  "footer": {
738
843
  "oneOf": [
@@ -742,18 +847,18 @@
742
847
  "description": "Repeated footer furniture rendered outside the main slide content. Use false to suppress an inherited footer.",
743
848
  "examples": [
744
849
  false,
745
- { "left": { "image": "var:organization.logo.icon" }, "center": { "text": "Confidential" }, "right": { "text": "{{slide.number}}" } }
850
+ { "start": { "image": "var:organization.logo.icon" }, "center": { "text": "Confidential" }, "end": { "text": "{{slide.number}}" } }
746
851
  ]
747
852
  },
748
853
  "titleAlignment": {
749
854
  "type": "string",
750
- "enum": ["left", "center", "right"],
751
- "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."
855
+ "enum": ["start", "center", "end"],
856
+ "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."
752
857
  },
753
858
  "contentAlignment": {
754
859
  "type": "string",
755
- "enum": ["left", "center", "right"],
756
- "description": "Default horizontal alignment for body/content regions in resolved layouts. Effective value: the slide's design, then the deck's design, then the theme's design.contentAlignment, then the layout record's design.contentAlignment, then the engine default. The tag follows titleAlignment (and so does a subtitle in the title area, as on a cover) unless the slide's own design sets contentAlignment."
860
+ "enum": ["start", "center", "end"],
861
+ "description": "Default horizontal alignment for body/content regions in resolved layouts. Effective value: the slide's design, then the deck's design, then the theme's design.contentAlignment, then the layout record's design.contentAlignment, then the engine default. The tag follows titleAlignment (and so does a subtitle in the title area, as on a cover) unless the slide's own design sets contentAlignment. 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."
757
862
  },
758
863
  "contentBox": {
759
864
  "type": "boolean",
@@ -762,12 +867,12 @@
762
867
  "contentDirection": {
763
868
  "type": "string",
764
869
  "enum": ["horizontal", "vertical"],
765
- "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 (OPF 0.19) 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 (left, top:left, ...) keep their explicit geometry and nested groups keep their own composition."
870
+ "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."
766
871
  },
767
872
  "chartPrimary": {
768
873
  "type": "string",
769
- "enum": ["none", "top", "bottom", "left", "right"],
770
- "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: 'left'/'right' is a two-track row 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."
874
+ "enum": ["none", "top", "bottom", "start", "end"],
875
+ "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."
771
876
  },
772
877
  "imageFit": {
773
878
  "type": "string",
@@ -782,18 +887,25 @@
782
887
  "listStyle": {
783
888
  "type": "string",
784
889
  "enum": ["stack", "rows"],
785
- "description": "How list entries are arranged (LH-08). 'stack' draws each entry's text with its description under it, the entries close together, as before. 'rows' draws ruled rows: a hairline between two first-level entries (the scheme's border neutral, 1 reference pixel), 0.8 em between rows and no bullet (a numbered list keeps its numbers); when every entry has a description and sits at the first level, the labels are bold and, when the widest fits 40% of the list's width on one line, sit in a column beside their descriptions, first baselines aligned, else each description sits under its label. Both engines draw the rules (PowerPoint: native lines). Effective value: the slide's design, then the deck's design, then the theme's design.listStyle, then the layout record's design.listStyle. Without one, a list of two or more first-level entries that each pair a short label (3 words or fewer, no full stop) with a description is drawn as rows when that sets no block of the slide smaller, and every other list is stacked."
890
+ "description": "How list entries are arranged. 'stack' draws each entry's text with its description under it, the entries close together, as before. 'rows' draws ruled rows: a hairline between two first-level entries (the scheme's border neutral, 1 reference pixel), 0.8 em between rows and no bullet (a numbered list keeps its numbers); when every entry has a description and sits at the first level, the labels are bold and, when the widest fits 40% of the list's width on one line, sit in a column beside their descriptions, first baselines aligned, else each description sits under its label. Both engines draw the rules (PowerPoint: native lines). Effective value: the slide's design, then the deck's design, then the theme's design.listStyle, then the layout record's design.listStyle. Without one, a list of two or more first-level entries that each pair a short label (3 words or fewer, no full stop) with a description is drawn as rows when that sets no block of the slide smaller, and every other list is stacked."
786
891
  },
787
892
  "mirror": {
788
893
  "type": "boolean",
789
- "description": "Draw the slide's template layout mirrored (OPF 0.19): 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."
894
+ "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."
790
895
  }
791
896
  }
792
897
  },
793
898
  "ColorScheme": {
794
899
  "type": "object",
900
+ "additionalProperties": false,
795
901
  "description": "Color palette used by the design system. Every slot and role is a hex color ('#RGB', '#RRGGBB' or '#RRGGBBAA'); a color-scheme name or a 'var:<id>' reference is not valid here, because those resolve through the scheme. The slot fields (accent1-accent6, dark1, dark2, light1, light2, hyperlink, followedHyperlink) mirror color-scheme.schema.json (https://openpresentation.org/schema/opf-color-scheme/v1) so library records and inline OPF overrides are interchangeable on those fields.\n\nTwo parallel models are supported and may be mixed:\n- OOXML slots - the 12-slot PowerPoint theme model that round-trips directly to OOXML. Use these for full control over the palette as PowerPoint sees it.\n- Abstract roles (primary, secondary, accent, background, surface, text, textSecondary) - OPF-specific semantic aliases the engine maps onto the OOXML slots. Convenient for inline overrides without thinking in slot numbers; not part of the catalog record schema.\n\nIn design.colorScheme, 'id' resolves a colorSchemes record as the base; slot and role overrides on the same object take precedence over the resolved scheme. The string form of design.colorScheme is equivalent to setting only 'id'.",
796
902
  "properties": {
903
+ "name": {
904
+ "type": "string",
905
+ "minLength": 1,
906
+ "description": "Name of this palette. PPTX export writes it as the name of the theme's color scheme (a:clrScheme name), which PowerPoint lists under Design, Variants, Colors; without it, an object form with 'id' writes that id, and the string form or an object without 'id' writes 'OpenPresentation'. It names the palette only: it is not a reference and resolves nothing.",
907
+ "examples": ["Harbour", "Acme 2026"]
908
+ },
797
909
  "id": {
798
910
  "$ref": "#/$defs/CatalogReference",
799
911
  "description": "Colour-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.",
@@ -898,6 +1010,7 @@
898
1010
  },
899
1011
  "FontScheme": {
900
1012
  "type": "object",
1013
+ "additionalProperties": false,
901
1014
  "description": "Typography selections used by the design system. The pair fields (major, minor) and refinement fields (type, app, languageFamily) mirror font-scheme.schema.json (https://openpresentation.org/schema/opf-font-scheme/v1) so library records and inline OPF overrides are interchangeable on those fields.\n\nTwo parallel models are supported and may be mixed:\n- OOXML pairs (major, minor) - heading and body family names that round-trip directly to PowerPoint majorFont/minorFont entries.\n- Abstract roles (heading, body, accent, code) - OPF-specific font family names the engine maps onto the OOXML pair when serializing. Convenient for inline overrides and for adding accent/code roles that don't have a direct OOXML slot. Catalog records may also carry 'code' (for example the consolas and courier-new records); heading, body and accent are not part of the catalog record schema. A role is a family name only: weight, style and tracking come from the text styles, and PowerPoint has no numeric weight.\n\nIn design.fontScheme, 'id' resolves a fontSchemes record as the base; pair and role overrides on the same object take precedence over the resolved scheme. The string form of design.fontScheme is equivalent to setting only 'id'.",
902
1015
  "properties": {
903
1016
  "id": {
@@ -998,6 +1111,7 @@
998
1111
  },
999
1112
  "Dimensions": {
1000
1113
  "type": "object",
1114
+ "additionalProperties": false,
1001
1115
  "description": "Slide dimensions: a preset, or custom inches that override it. PowerPoint's Letter Paper (10 x 7.5 in), A4 Paper (10.8333 x 7.5 in) and On-screen Show (16:9) (10 x 5.625 in) are not OPF presets; use widthInches and heightInches. docs/slide-sizes.md compares every preset.",
1002
1116
  "properties": {
1003
1117
  "preset": {
@@ -1048,7 +1162,7 @@
1048
1162
  "$ref": "#/$defs/ColorTransform"
1049
1163
  }
1050
1164
  ],
1051
- "description": "A color value or reference, enforced on shape fills and strokes, image strokes, styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors. Four forms:\n- Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.\n- Color-scheme name, resolved through the effective color scheme after design resolution: an OOXML slot ('accent1'-'accent6', 'dark1', 'dark2', 'light1', 'light2', 'hyperlink', 'followedHyperlink') or an abstract role ('primary', 'secondary', 'accent', 'background', 'surface', 'surfaceAlt', 'text', 'textSecondary'). Roles resolve through the same role-to-slot mapping engines already apply to color schemes. 'surfaceAlt' has no slot: it is the alternate surface of banded table rows, derived from 'surface' and 'text' (the surface mixed a tenth of the way towards the text color, further when needed, so it always differs visibly from 'surface' and keeps 4.5:1 text contrast; core surfaceAltColor).\n- Variable reference: 'var:<id>' into the top-level variables map.\n- Lighter or darker (SH-02): { \"color\": <ColorRef>, \"lighten\": 0..1 } or { \"color\": <ColorRef>, \"darken\": 0..1 }, PowerPoint's \"Lighter 40%\" and \"Darker 25%\": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.\n\nNames keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.",
1165
+ "description": "A color value or reference, enforced on shape fills and strokes, image strokes, styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors. Four forms:\n- Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.\n- Color-scheme name, resolved through the effective color scheme after design resolution: an OOXML slot ('accent1'-'accent6', 'dark1', 'dark2', 'light1', 'light2', 'hyperlink', 'followedHyperlink') or an abstract role ('primary', 'secondary', 'accent', 'background', 'surface', 'surfaceAlt', 'text', 'textSecondary'). Roles resolve through the same role-to-slot mapping engines already apply to color schemes. 'surfaceAlt' has no slot: it is the alternate surface of banded table rows, derived from 'surface' and 'text' (the surface mixed a tenth of the way towards the text color, further when needed, so it always differs visibly from 'surface' and keeps 4.5:1 text contrast; core surfaceAltColor).\n- Variable reference: 'var:<id>' into the top-level variables map.\n- Lighter or darker: { \"color\": <ColorRef>, \"lighten\": 0..1 } or { \"color\": <ColorRef>, \"darken\": 0..1 }, PowerPoint's \"Lighter 40%\" and \"Darker 25%\": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.\n\nNames keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.",
1052
1166
  "examples": [
1053
1167
  "#0F4C81",
1054
1168
  "accent2",
@@ -1068,7 +1182,7 @@
1068
1182
  "type": "object",
1069
1183
  "additionalProperties": false,
1070
1184
  "required": ["color"],
1071
- "description": "A ColorRef made lighter or darker (SH-02), as PowerPoint's theme color tints and shades: 'lighten' moves the color's HSL luminance that share of the way to white (lumMod 1 - lighten, lumOff lighten), 'darken' that share of the way to black (lumMod 1 - darken). Exactly one of the two. PPTX export writes a:lumMod and a:lumOff on the base color, a scheme color where the base names one, so re-theming the deck keeps the tint.",
1185
+ "description": "A ColorRef made lighter or darker, as PowerPoint's theme color tints and shades: 'lighten' moves the color's HSL luminance that share of the way to white (lumMod 1 - lighten, lumOff lighten), 'darken' that share of the way to black (lumMod 1 - darken). Exactly one of the two. PPTX export writes a:lumMod and a:lumOff on the base color, a scheme color where the base names one, so re-theming the deck keeps the tint.",
1072
1186
  "properties": {
1073
1187
  "color": {
1074
1188
  "$ref": "#/$defs/ColorRef",
@@ -1548,6 +1662,7 @@
1548
1662
  },
1549
1663
  "ThemeBackground": {
1550
1664
  "type": "object",
1665
+ "additionalProperties": false,
1551
1666
  "description": "Theme-controlled PowerPoint slide background. The slot is resolved through the active color scheme and remains theme-aware.",
1552
1667
  "required": ["type", "slot"],
1553
1668
  "properties": {
@@ -1558,11 +1673,18 @@
1558
1673
  },
1559
1674
  "slot": {
1560
1675
  "$ref": "#/$defs/ThemeBackgroundSlot"
1676
+ },
1677
+ "opacity": {
1678
+ "type": "number",
1679
+ "minimum": 0,
1680
+ "maximum": 1,
1681
+ "description": "Background opacity from 0 (fully transparent) to 1 (fully opaque). Default 1; the selected theme slot remains unchanged."
1561
1682
  }
1562
1683
  }
1563
1684
  },
1564
1685
  "SolidBackground": {
1565
1686
  "type": "object",
1687
+ "additionalProperties": false,
1566
1688
  "description": "Fixed solid slide background fill.",
1567
1689
  "required": ["type", "color"],
1568
1690
  "properties": {
@@ -1586,6 +1708,7 @@
1586
1708
  },
1587
1709
  "GradientBackground": {
1588
1710
  "type": "object",
1711
+ "additionalProperties": false,
1589
1712
  "description": "Fixed gradient slide background fill.",
1590
1713
  "required": ["type", "gradient"],
1591
1714
  "properties": {
@@ -1601,7 +1724,9 @@
1601
1724
  },
1602
1725
  "gradient": {
1603
1726
  "type": "object",
1604
- "description": "Gradient fill definition.",
1727
+ "additionalProperties": false,
1728
+ "description": "Gradient fill definition: a linear gradient along 'angle' (default 0, left to right). A shape fill's Gradient also takes radial and path types; a background does not.",
1729
+ "required": ["stops"],
1605
1730
  "properties": {
1606
1731
  "angle": {
1607
1732
  "type": "number",
@@ -1612,7 +1737,7 @@
1612
1737
  "minItems": 2,
1613
1738
  "description": "Ordered list of color stops along the gradient. A gradient needs at least two stops.",
1614
1739
  "items": {
1615
- "type": "object",
1740
+ "type": "object", "additionalProperties": false,
1616
1741
  "description": "Color stop along the gradient.",
1617
1742
  "required": ["color", "position"],
1618
1743
  "properties": {
@@ -1649,7 +1774,7 @@
1649
1774
  "tone": {
1650
1775
  "type": "string",
1651
1776
  "enum": ["dark", "light"],
1652
- "description": "Whether the background is dark or light, which picks the color map (dark1 or light1) so text, lines and neutrals read on it. Without a tone a picture or gradient takes the deck's variant, else counts as light."
1777
+ "description": "Whether the background is dark or light, which picks the color map (dark1 or light1) so text, lines and neutrals read on it. Without a tone a picture takes the tone its recolor, opacity and overlay imply (a duotone in dark colors or a dark overlay makes it dark), else the deck's variant, else counts as light."
1653
1778
  },
1654
1779
  "type": {
1655
1780
  "type": "string",
@@ -1739,8 +1864,8 @@
1739
1864
  },
1740
1865
  "edge": {
1741
1866
  "type": "string",
1742
- "enum": ["top", "bottom", "left", "right"],
1743
- "description": "Cover only a band along this edge of the frame, for example a caption strip. Backgrounds and rectangle image frames only; on another shape the overlay is not drawn and composition reports unsupported-image-treatment. Omit to cover the whole frame. In a right-to-left deck 'left' and 'right' are the start and end sides."
1867
+ "enum": ["top", "bottom", "start", "end"],
1868
+ "description": "Cover only a band along this edge of the frame, for example a caption strip. Backgrounds and rectangle image frames only; on another shape the overlay is not drawn and composition reports unsupported-image-treatment. Omit to cover the whole frame. 'start' and 'end' follow the deck's direction: the left and right sides in a left-to-right deck, the right and left sides in a right-to-left one."
1744
1869
  },
1745
1870
  "size": {
1746
1871
  "type": "number",
@@ -1758,25 +1883,25 @@
1758
1883
  "type": "object",
1759
1884
  "additionalProperties": false,
1760
1885
  "required": ["edge"],
1761
- "description": "Bleeds an image block to one edge of the slide: the image takes a band along that edge, edge to edge, and the headings and other content compose in the rest of the slide at the normal padding. Only top-level blocks (slides.N.blocks.I) can be placed, at most one per edge. Template layout regions do not supply image placement; set it on the image block itself. Bands are taken in block order, each spanning the free area left by earlier ones. Placement is the only mechanism that moves content aside; a background never does. A slide whose only body is placed images is composed like a cover: its headings center in the free area. In a right-to-left deck 'left' is the start side, drawn at the right.",
1886
+ "description": "Bleeds an image block to one edge of the slide: the image takes a band along that edge, edge to edge, and the headings and other content compose in the rest of the slide at the normal padding. Only top-level blocks (slides.N.blocks.I) can be placed, at most one per edge. Template layout regions do not supply image placement; set it on the image block itself. Bands are taken in block order, each spanning the free area left by earlier ones. Placement is the only mechanism that moves content aside; a background never does. A slide whose only body is placed images is composed like a cover: its headings center in the free area. 'start' and 'end' follow the deck's direction: 'start' is the left edge in a left-to-right deck and the right edge in a right-to-left one.",
1762
1887
  "properties": {
1763
1888
  "edge": {
1764
1889
  "type": "string",
1765
- "enum": ["left", "right", "top", "bottom"],
1890
+ "enum": ["start", "end", "top", "bottom"],
1766
1891
  "description": "The slide edge the image bleeds to."
1767
1892
  },
1768
1893
  "size": {
1769
1894
  "type": "number",
1770
1895
  "minimum": 0.1,
1771
1896
  "maximum": 0.9,
1772
- "description": "Share of the slide width (left, right) or height (top, bottom) given to the band. Default 0.5."
1897
+ "description": "Share of the slide width (start, end) or height (top, bottom) given to the band. Default 0.5."
1773
1898
  },
1774
1899
  "inset": {
1775
1900
  "type": "boolean",
1776
1901
  "description": "Draw the frame inside the slide padding on every side of the band, like a card, instead of edge to edge. Default false."
1777
1902
  }
1778
1903
  },
1779
- "examples": [{ "edge": "left", "size": 0.45 }, { "edge": "right", "size": 0.4, "inset": true }]
1904
+ "examples": [{ "edge": "start", "size": 0.45 }, { "edge": "end", "size": 0.4, "inset": true }]
1780
1905
  },
1781
1906
  "Stroke": {
1782
1907
  "anyOf": [
@@ -1866,7 +1991,7 @@
1866
1991
  }
1867
1992
  }
1868
1993
  ],
1869
- "description": "A line along an outline (SH-02): a shape block's outline or a picture's frame (the picture key 'border' was renamed 'stroke' in 0.33, with no alias). DrawingML a:ln. 'none' removes the line.",
1994
+ "description": "A line along an outline: a shape block's outline or a picture's frame (the picture key 'border' was renamed 'stroke' in 0.33, with no alias). DrawingML a:ln. 'none' removes the line.",
1870
1995
  "examples": [
1871
1996
  "none",
1872
1997
  {
@@ -1924,7 +2049,7 @@
1924
2049
  "type": "object",
1925
2050
  "additionalProperties": false,
1926
2051
  "required": ["stops"],
1927
- "description": "A gradient fill (SH-02): the background gradient object extended with 'type'. DrawingML a:gradFill: a:lin for linear, a:path circle, rect or shape for the others. The gradient rotates with the shape.",
2052
+ "description": "A gradient fill: the background gradient object extended with 'type'. DrawingML a:gradFill: a:lin for linear, a:path circle, rect or shape for the others. The gradient rotates with the shape.",
1928
2053
  "properties": {
1929
2054
  "type": {
1930
2055
  "type": "string",
@@ -2033,7 +2158,7 @@
2033
2158
  "description": "A pattern fill (a:pattFill)."
2034
2159
  }
2035
2160
  ],
2036
- "description": "A shape block's fill (SH-02): 'none', a ColorRef, { gradient } or { pattern }. Without a fill a shape takes its style's fill (the theme's accent1 for the default style). Fills rotate with the shape (rotWithShape).",
2161
+ "description": "A shape block's fill: 'none', a ColorRef, { gradient } or { pattern }. Without a fill a shape takes its style's fill (the theme's accent1 for the default style). Fills rotate with the shape (rotWithShape).",
2037
2162
  "examples": [
2038
2163
  "accent2",
2039
2164
  "none",
@@ -2096,7 +2221,7 @@
2096
2221
  "description": "SVG path data with its own viewBox, for example an icon outline drawn on a 24 by 24 grid."
2097
2222
  }
2098
2223
  ],
2099
- "description": "Custom geometry (SH-02): SVG path data (M, L, H, V, C, S, Q, T, A and Z, absolute or relative) instead of a preset. PPTX export writes a:custGeom with the same path. A subpath that ends without Z is open: arrowheads draw at its ends (its fill closes it, as in PowerPoint).",
2224
+ "description": "Custom geometry: SVG path data (M, L, H, V, C, S, Q, T, A and Z, absolute or relative) instead of a preset. PPTX export writes a:custGeom with the same path. A subpath that ends without Z is open: arrowheads draw at its ends (its fill closes it, as in PowerPoint).",
2100
2225
  "examples": [
2101
2226
  "M0 0 L1 0 L0.5 1 Z",
2102
2227
  {
@@ -2167,12 +2292,12 @@
2167
2292
  }
2168
2293
  }
2169
2294
  ],
2170
- "description": "Outer shadow (a:outerShdw): a preset name (soft, hard, perspective) or { color, opacity, blur, distance, angle, size }. SH-03 draws it in both engines."
2295
+ "description": "Outer shadow (a:outerShdw): a preset name (soft, hard, perspective) or { color, opacity, blur, distance, angle, size }."
2171
2296
  },
2172
2297
  "InnerShadow": {
2173
2298
  "type": "object",
2174
2299
  "additionalProperties": false,
2175
- "description": "Inner shadow (a:innerShdw). SH-03 draws it in both engines.",
2300
+ "description": "Inner shadow (a:innerShdw).",
2176
2301
  "properties": {
2177
2302
  "color": {
2178
2303
  "$ref": "#/$defs/ColorRef",
@@ -2207,7 +2332,7 @@
2207
2332
  "Glow": {
2208
2333
  "type": "object",
2209
2334
  "additionalProperties": false,
2210
- "description": "Glow around the outline (a:glow). SH-03 draws it in both engines.",
2335
+ "description": "Glow around the outline (a:glow).",
2211
2336
  "properties": {
2212
2337
  "color": {
2213
2338
  "$ref": "#/$defs/ColorRef",
@@ -2230,7 +2355,7 @@
2230
2355
  "Reflection": {
2231
2356
  "type": "object",
2232
2357
  "additionalProperties": false,
2233
- "description": "Reflection below the shape (a:reflection). SH-03 draws it in both engines.",
2358
+ "description": "Reflection below the shape (a:reflection).",
2234
2359
  "properties": {
2235
2360
  "opacity": {
2236
2361
  "type": "number",
@@ -2286,6 +2411,7 @@
2286
2411
  },
2287
2412
  "PatternBackground": {
2288
2413
  "type": "object",
2414
+ "additionalProperties": false,
2289
2415
  "description": "Fixed pattern slide background fill.",
2290
2416
  "required": ["type", "pattern"],
2291
2417
  "properties": {
@@ -2296,6 +2422,7 @@
2296
2422
  },
2297
2423
  "pattern": {
2298
2424
  "type": "object",
2425
+ "additionalProperties": false,
2299
2426
  "description": "Pattern fill definition.",
2300
2427
  "required": ["preset"],
2301
2428
  "properties": {
@@ -2404,25 +2531,26 @@
2404
2531
  },
2405
2532
  "HeaderFooter": {
2406
2533
  "type": "object",
2407
- "description": "Repeated header or footer content split into left, center, and right zones. Header/footer content is slide furniture, separate from the main slide content payloads.",
2534
+ "additionalProperties": false,
2535
+ "description": "Repeated header or footer content split into start, center, and end zones. The zones follow the deck's direction: 'start' is at the left of a left-to-right deck and at the right of a right-to-left one. Header/footer content is slide furniture, separate from the main slide content payloads.",
2408
2536
  "properties": {
2409
- "left": {
2537
+ "start": {
2410
2538
  "$ref": "#/$defs/HeaderFooterItem",
2411
- "description": "Left-aligned header/footer content."
2539
+ "description": "Content at the start edge, aligned to it."
2412
2540
  },
2413
2541
  "center": {
2414
2542
  "$ref": "#/$defs/HeaderFooterItem",
2415
2543
  "description": "Centered header/footer content."
2416
2544
  },
2417
- "right": {
2545
+ "end": {
2418
2546
  "$ref": "#/$defs/HeaderFooterItem",
2419
- "description": "Right-aligned header/footer content."
2547
+ "description": "Content at the end edge, aligned to it."
2420
2548
  }
2421
2549
  }
2422
2550
  },
2423
2551
  "HeaderFooterItem": {
2424
2552
  "type": "object",
2425
- "description": "One header/footer zone. Every configured field renders, side by side in one row in the order image, text, socials, date (mirrored in a right-to-left deck), aligned to the zone's edge (left, center or right) and vertically centered on each other; a line break inside text or socials ('\\n') stacks lines within that part. When the parts are wider than the zone their text wraps, and a row that cannot fit even so is reported as overflow. Generated values such as the slide number, the slide count, the section, the organization or the speaker are variables inside text ('{{slide.number}} / {{deck.slideCount}}', '{{organization.name}}'), so one text writes several values in the author's order. An organization logo is image: 'var:organization.logo.icon'. See docs/templates-and-variables.md.",
2553
+ "description": "One header/footer zone. Every configured field renders, side by side in one row in the order image, text, socials, date (mirrored in a right-to-left deck), aligned to the zone's edge (the start edge, the center or the end edge) and vertically centered on each other; a line break inside text or socials ('\\n') stacks lines within that part. When the parts are wider than the zone their text wraps, and a row that cannot fit even so is reported as overflow. Generated values such as the slide number, the slide count, the section, the organization or the speaker are variables inside text ('{{slide.number}} / {{deck.slideCount}}', '{{organization.name}}'), so one text writes several values in the author's order. An organization logo is image: 'var:organization.logo.icon'. See docs/templates-and-variables.md.",
2426
2554
  "additionalProperties": false,
2427
2555
  "properties": {
2428
2556
  "text": {
@@ -2458,7 +2586,7 @@
2458
2586
  "OverlayShape": {
2459
2587
  "type": "object",
2460
2588
  "additionalProperties": false,
2461
- "description": "SH-04: an entry of slide 'shapes', drawn over the composed slide above the content and the furniture, later entries on top; it never moves content. An entry with 'connector' is a connector between two blocks or overlay shapes: it takes only 'id', 'connector', 'adjust', 'stroke', 'alt', 'decorative', 'hidden' and 'extensions'; core routes it as PowerPoint's own connector presets and PPTX export writes a native p:cxnSp glued to the shapes at its ends, so it follows them when they are moved in PowerPoint. Any other entry is an overlay shape: the shape block vocabulary (geometry, paint, effects, transform, text, accessibility) and exactly one placement, 'x', 'y', 'width' and 'height' (fractions of the slide) or 'at' (against a block, so it follows the block wherever composition puts it); PPTX export writes a native p:sp.",
2589
+ "description": "An entry of slide 'shapes', drawn over the composed slide above the content and the furniture, later entries on top; it never moves content. An entry with 'connector' is a connector between two blocks or overlay shapes: it takes only 'id', 'connector', 'adjust', 'stroke', 'alt', 'decorative', 'hidden' and 'extensions'; core routes it as PowerPoint's own connector presets and PPTX export writes a native p:cxnSp glued to the shapes at its ends, so it follows them when they are moved in PowerPoint. Any other entry is an overlay shape: the shape block vocabulary (geometry, paint, effects, transform, text, accessibility) and exactly one placement, 'x', 'y', 'width' and 'height' (fractions of the slide) or 'at' (against a block, so it follows the block wherever composition puts it); PPTX export writes a native p:sp.",
2462
2590
  "properties": {
2463
2591
  "id": {
2464
2592
  "type": "string",
@@ -2467,28 +2595,24 @@
2467
2595
  "examples": ["badge-new", "callout-1"]
2468
2596
  },
2469
2597
  "x": {
2470
- "type": "number",
2471
- "minimum": 0,
2472
- "maximum": 1,
2473
- "description": "Left edge as a fraction of the slide width, from the left edge; in a right-to-left deck from the right edge, mirrored as OPF mirrors start and end. With 'y', 'width' and 'height'."
2598
+ "$ref": "#/$defs/FiniteNumber",
2599
+ "description": "The shape's start edge as a signed fraction of the slide width, measured from the slide's start edge: the left edge in a left-to-right deck, the right edge in a right-to-left one. A shape sits over the layout, and the layout mirrors, so this coordinate is logical; only the position mirrors, never the geometry (an arrow keeps the way it points). Negative values or values greater than 1 place the shape partly or wholly outside the slide. With 'y', 'width' and 'height'."
2474
2600
  },
2475
2601
  "y": {
2476
- "type": "number",
2477
- "minimum": 0,
2478
- "maximum": 1,
2479
- "description": "Top edge as a fraction of the slide height, from the top edge."
2602
+ "$ref": "#/$defs/FiniteNumber",
2603
+ "description": "Top edge as a signed fraction of the slide height, from the top edge. Negative values or values greater than 1 place the shape partly or wholly outside the slide."
2480
2604
  },
2481
2605
  "width": {
2482
2606
  "type": "number",
2483
2607
  "minimum": 0,
2484
- "maximum": 1,
2485
- "description": "Width as a fraction of the slide width."
2608
+ "maximum": 8,
2609
+ "description": "Width as a fraction of the slide width, from 0 (a vertical line) up to 8. Above 1 the shape is wider than the slide, for a circle or band that bleeds off it; the slide crops what lies outside."
2486
2610
  },
2487
2611
  "height": {
2488
2612
  "type": "number",
2489
2613
  "minimum": 0,
2490
- "maximum": 1,
2491
- "description": "Height as a fraction of the slide height."
2614
+ "maximum": 8,
2615
+ "description": "Height as a fraction of the slide height, from 0 (a horizontal line) up to 8. Above 1 the shape is taller than the slide."
2492
2616
  },
2493
2617
  "at": {
2494
2618
  "$ref": "#/$defs/OverlayAnchor"
@@ -2625,8 +2749,11 @@
2625
2749
  "OverlayAnchor": {
2626
2750
  "type": "object",
2627
2751
  "additionalProperties": false,
2628
- "required": ["block", "edge"],
2629
- "description": "Places an overlay shape against a composed block's box, so the shape follows the block wherever composition puts it. 'edge' puts the shape outside that edge, centered along it ('start' and 'end' follow the deck's direction: left and right in a left-to-right deck, right and left in a right-to-left one); 'center' puts it on the block's center. A block id that is not on the slide is a finding (opf/shape-anchor-missing) and the shape is not drawn.",
2752
+ "required": [
2753
+ "block",
2754
+ "edge"
2755
+ ],
2756
+ "description": "Places an overlay shape against a composed block's box, so the shape follows the block wherever composition puts it. 'edge' puts the shape outside that edge, centered along it ('start' and 'end' follow the deck's direction: left and right in a left-to-right deck, right and left in a right-to-left one); 'center' puts it on the block's center. A block id that is not on the slide is a finding (opf/shape-anchor-missing) and the shape is not drawn. With point, block must carry a supported classic chart. point selects a category label or zero-based row; series selects an exact unique plotted value-column name or zero-based plotted-series index (default first). The selected mark location centers the overlay, and offset moves along its outward normal; whole-block anchors retain their existing outside-edge placement. Unknown, ambiguous, unplotted or unsupported references report opf/shape-anchor-missing and draw no shape.",
2630
2757
  "properties": {
2631
2758
  "block": {
2632
2759
  "type": "string",
@@ -2635,7 +2762,13 @@
2635
2762
  },
2636
2763
  "edge": {
2637
2764
  "type": "string",
2638
- "enum": ["top", "bottom", "start", "end", "center"],
2765
+ "enum": [
2766
+ "top",
2767
+ "bottom",
2768
+ "start",
2769
+ "end",
2770
+ "center"
2771
+ ],
2639
2772
  "description": "The edge of the block the shape sits outside of, or its center."
2640
2773
  },
2641
2774
  "offset": {
@@ -2647,17 +2780,90 @@
2647
2780
  "width": {
2648
2781
  "type": "number",
2649
2782
  "exclusiveMinimum": 0,
2650
- "maximum": 1280,
2651
- "description": "The shape's width: up to 1 a fraction of the block's width, above 1 reference pixels at a 720-pixel short edge. Default the preset's natural proportions with the shape's shorter side at 15% of the block's shorter side."
2783
+ "maximum": 8,
2784
+ "description": "The shape's width as a fraction of its target's width: the block's box, or with 'point' the chart mark's bounds. 1 is the target's own width and 1.08 a frame 8% wider, up to 8. For a size in pixels use 'widthPx'; not both. Default: the preset's natural proportions with the shape's shorter side at 15% of the target's shorter side (at least 12 reference pixels on a chart mark)."
2652
2785
  },
2653
2786
  "height": {
2787
+ "type": "number",
2788
+ "exclusiveMinimum": 0,
2789
+ "maximum": 8,
2790
+ "description": "The shape's height as a fraction of its target's height, up to 8. For a size in pixels use 'heightPx'; not both. Default as for width."
2791
+ },
2792
+ "widthPx": {
2793
+ "type": "number",
2794
+ "exclusiveMinimum": 0,
2795
+ "maximum": 1280,
2796
+ "description": "The shape's width in reference pixels at a 720-pixel short edge, whatever size its target has: a badge or a ring of a fixed size. Instead of 'width'."
2797
+ },
2798
+ "heightPx": {
2654
2799
  "type": "number",
2655
2800
  "exclusiveMinimum": 0,
2656
2801
  "maximum": 1280,
2657
- "description": "The shape's height: up to 1 a fraction of the block's height, above 1 reference pixels at a 720-pixel short edge. Default as for width."
2802
+ "description": "The shape's height in reference pixels at a 720-pixel short edge. Instead of 'height'."
2803
+ },
2804
+ "point": {
2805
+ "oneOf": [
2806
+ {
2807
+ "type": "string",
2808
+ "minLength": 1
2809
+ },
2810
+ {
2811
+ "type": "integer",
2812
+ "minimum": 0
2813
+ }
2814
+ ],
2815
+ "description": "Exact unique category label or zero-based data row index of the chart. Numeric strings name labels; numbers index rows. Empty/duplicate labels can be selected by index. Requires a supported classic chart block."
2816
+ },
2817
+ "series": {
2818
+ "oneOf": [
2819
+ {
2820
+ "type": "string",
2821
+ "minLength": 1
2822
+ },
2823
+ {
2824
+ "type": "integer",
2825
+ "minimum": 0
2826
+ }
2827
+ ],
2828
+ "description": "Exact unique plotted value-column name or zero-based plotted-series index; omission selects the first plotted series. Requires point. Scatter X is not a value series."
2658
2829
  }
2659
2830
  },
2660
- "examples": [{ "block": "team-photo", "edge": "top", "offset": 8 }, { "block": "revenue-chart", "edge": "end", "width": 160, "height": 64 }]
2831
+ "examples": [
2832
+ {
2833
+ "block": "team-photo",
2834
+ "edge": "top",
2835
+ "offset": 8
2836
+ },
2837
+ {
2838
+ "block": "revenue-chart",
2839
+ "edge": "end",
2840
+ "widthPx": 160,
2841
+ "heightPx": 64
2842
+ },
2843
+ {
2844
+ "block": "quote",
2845
+ "edge": "center",
2846
+ "width": 1.08,
2847
+ "height": 1.08
2848
+ },
2849
+ {
2850
+ "block": "costs",
2851
+ "series": "Cost ($B)",
2852
+ "point": "United States",
2853
+ "edge": "end",
2854
+ "widthPx": 80,
2855
+ "heightPx": 80
2856
+ }
2857
+ ],
2858
+ "dependentRequired": {
2859
+ "series": [
2860
+ "point"
2861
+ ]
2862
+ },
2863
+ "allOf": [
2864
+ { "not": { "required": ["width", "widthPx"] } },
2865
+ { "not": { "required": ["height", "heightPx"] } }
2866
+ ]
2661
2867
  },
2662
2868
  "Connector": {
2663
2869
  "type": "object",
@@ -2695,14 +2901,25 @@
2695
2901
  },
2696
2902
  "Slide": {
2697
2903
  "type": "object",
2698
- "description": "A single slide. Content can be authored as a full-slide root payload, or inside promoted named region keys such as 'left', 'center+right', and 'top:left'.",
2904
+ "description": "A single slide. Content can be authored as a full-slide root payload, or inside promoted named region keys such as 'start', 'center+end', and 'top:start'. 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.",
2699
2905
  "additionalProperties": false,
2906
+ "dependentSchemas": {
2907
+ "caption": {
2908
+ "anyOf": [{ "required": ["image"] }, { "required": ["chart"] }, { "required": ["table"] }, { "required": ["video"] }, { "required": ["diagram"] }],
2909
+ "description": "A slide's caption belongs to its root image, chart, table, video or diagram."
2910
+ }
2911
+ },
2700
2912
  "properties": {
2701
2913
  "id": {
2702
2914
  "type": "string",
2703
2915
  "description": "Optional stable identifier for the slide within the document. Use when another system needs to reference a slide across edits, comments, generation state, exports, or narrative tooling. Slide order is defined by the slides array, so simple decks may omit this.",
2704
2916
  "examples": ["s1", "cover", "problem-1", "ask"]
2705
2917
  },
2918
+ "language": {
2919
+ "oneOf": [{ "$ref": "#/$defs/LanguageTag" }, { "$ref": "#/$defs/Language" }],
2920
+ "description": "Language of this slide, overriding the presentation language. Accepts the same BCP-47 tag or inline Language object as the presentation. Omission inherits the deck language. Direction, script fonts, quotation marks, line breaking and number formatting follow the effective slide language; TextRun.language still overrides an individual run.",
2921
+ "examples": ["ar-SA", "ja", "fr-FR"]
2922
+ },
2706
2923
  "type": {
2707
2924
  "type": "string",
2708
2925
  "enum": ["text", "list", "image", "chart", "table", "video", "code", "metric", "quote", "timeline", "diagram"],
@@ -2753,7 +2970,7 @@
2753
2970
  "items": { "$ref": "#/$defs/TextRun" }
2754
2971
  }
2755
2972
  ],
2756
- "description": "Small slide-level label or badge. A v2 layout renders this before the title in its title heading group; tag is not a separate layout area. Engines draw it as an eyebrow (LH-32): 22 reference pixels, bold, in the primary color (the text color where that is under 4.5:1 on the background) and, where its script has case, in capitals with 0.08 em of letter spacing (PowerPoint: cap=all and spc on the authored text). Use a string for plain text or TextRun[] for inline rich text (a colored word, bold, a link, a citation or footnote marker); the heading keeps its size and fitting rules either way, and run colors resolve like body text.",
2973
+ "description": "Small slide-level label or badge. A v2 layout renders this before the title in its title heading group; tag is not a separate layout area. Engines draw it as an eyebrow: 22 reference pixels, bold, in the primary color (the text color where that is under 4.5:1 on the background) and, where its script has case, in capitals with 0.08 em of letter spacing (PowerPoint: cap=all and spc on the authored text). Use a string for plain text or TextRun[] for inline rich text (a colored word, bold, a link, a citation or footnote marker); the heading keeps its size and fitting rules either way, and run colors resolve like body text.",
2757
2974
  "examples": ["Intro", "Confidential", "Appendix"]
2758
2975
  },
2759
2976
  "text": {
@@ -2782,7 +2999,7 @@
2782
2999
  "examples": ["arabic", "roman-lower", { "style": "alpha-upper", "start": 3, "suffix": "paren" }, ["arabic", "alpha-lower", { "style": "roman-lower", "suffix": "paren-both" }]]
2783
3000
  },
2784
3001
  "image": {
2785
- "$ref": "#/$defs/Asset",
3002
+ "$ref": "#/$defs/ImagePayload",
2786
3003
  "description": "Shorthand for one image block: the picture composes as body content, like { type: 'image', image: value }, with the effective design.imageFit. A v2 layout binds it to a compatible body region; a region's bleed setting may extend its outer edges to the slide edge. For fit, focus, treatments or an explicit placement use an image block in blocks; for a full-slide picture behind the content use design.background. Presence of this field infers type 'image'."
2787
3004
  },
2788
3005
  "video": {
@@ -2828,7 +3045,7 @@
2828
3045
  { "type": "string" },
2829
3046
  { "$ref": "#/$defs/Diagram" }
2830
3047
  ],
2831
- "description": "Full-slide diagram payload: Mermaid source drawn in the deck's fonts and colors. A string is shorthand for { \"source\": value }; object form carries the source syntax and a text alternative. Presence of this field infers type 'diagram'."
3048
+ "description": "Full-slide diagram payload: Mermaid, Graphviz DOT or PlantUML source drawn in the deck's fonts and colors. A string is shorthand for { \"source\": value }; object form carries the source syntax and a text alternative. Presence of this field infers type 'diagram'."
2832
3049
  },
2833
3050
  "caption": {
2834
3051
  "$ref": "#/$defs/Caption",
@@ -2842,7 +3059,7 @@
2842
3059
  "shapes": {
2843
3060
  "type": "array",
2844
3061
  "items": { "$ref": "#/$defs/OverlayShape" },
2845
- "description": "SH-04: shapes and connectors drawn over the composed slide, above its content and furniture, in array order (later entries on top). They never move content. An entry with connector is a connector between two blocks or overlay shapes; any other entry is an overlay shape placed by x, y, width and height (fractions of the slide) or at (against a block). See docs/shapes.md.",
3062
+ "description": "Shapes and connectors drawn over the composed slide, above its content and furniture, in array order (later entries on top). They never move content. An entry with connector is a connector between two blocks or overlay shapes; any other entry is an overlay shape placed by x, y, width and height (fractions of the slide) or at (against a block). See docs/shapes.md.",
2846
3063
  "examples": [[
2847
3064
  { "id": "note", "shape": "wedgeRectCallout", "text": "Launch", "x": 0.7, "y": 0.1, "width": 0.2, "height": 0.1 },
2848
3065
  { "connector": { "from": "plan", "to": "ship", "route": "elbow" }, "stroke": { "end": { "type": "triangle" } } }
@@ -2852,22 +3069,22 @@
2852
3069
  "$ref": "#/$defs/SlideDesign",
2853
3070
  "description": "Slide-level design applied on top of the deck-wide design."
2854
3071
  },
2855
- "left": {
3072
+ "start": {
2856
3073
  "$ref": "#/$defs/ContentPayload"
2857
3074
  },
2858
3075
  "center": {
2859
3076
  "$ref": "#/$defs/ContentPayload"
2860
3077
  },
2861
- "right": {
3078
+ "end": {
2862
3079
  "$ref": "#/$defs/ContentPayload"
2863
3080
  },
2864
- "left+center": {
3081
+ "start+center": {
2865
3082
  "$ref": "#/$defs/ContentPayload"
2866
3083
  },
2867
- "center+right": {
3084
+ "center+end": {
2868
3085
  "$ref": "#/$defs/ContentPayload"
2869
3086
  },
2870
- "left+center+right": {
3087
+ "start+center+end": {
2871
3088
  "$ref": "#/$defs/ContentPayload"
2872
3089
  },
2873
3090
  "top": {
@@ -2888,112 +3105,112 @@
2888
3105
  "top+middle+bottom": {
2889
3106
  "$ref": "#/$defs/ContentPayload"
2890
3107
  },
2891
- "top:left": {
3108
+ "top:start": {
2892
3109
  "$ref": "#/$defs/ContentPayload"
2893
3110
  },
2894
3111
  "top:center": {
2895
3112
  "$ref": "#/$defs/ContentPayload"
2896
3113
  },
2897
- "top:right": {
3114
+ "top:end": {
2898
3115
  "$ref": "#/$defs/ContentPayload"
2899
3116
  },
2900
- "top:left+center": {
3117
+ "top:start+center": {
2901
3118
  "$ref": "#/$defs/ContentPayload"
2902
3119
  },
2903
- "top:center+right": {
3120
+ "top:center+end": {
2904
3121
  "$ref": "#/$defs/ContentPayload"
2905
3122
  },
2906
- "top:left+center+right": {
3123
+ "top:start+center+end": {
2907
3124
  "$ref": "#/$defs/ContentPayload"
2908
3125
  },
2909
- "middle:left": {
3126
+ "middle:start": {
2910
3127
  "$ref": "#/$defs/ContentPayload"
2911
3128
  },
2912
3129
  "middle:center": {
2913
3130
  "$ref": "#/$defs/ContentPayload"
2914
3131
  },
2915
- "middle:right": {
3132
+ "middle:end": {
2916
3133
  "$ref": "#/$defs/ContentPayload"
2917
3134
  },
2918
- "middle:left+center": {
3135
+ "middle:start+center": {
2919
3136
  "$ref": "#/$defs/ContentPayload"
2920
3137
  },
2921
- "middle:center+right": {
3138
+ "middle:center+end": {
2922
3139
  "$ref": "#/$defs/ContentPayload"
2923
3140
  },
2924
- "middle:left+center+right": {
3141
+ "middle:start+center+end": {
2925
3142
  "$ref": "#/$defs/ContentPayload"
2926
3143
  },
2927
- "bottom:left": {
3144
+ "bottom:start": {
2928
3145
  "$ref": "#/$defs/ContentPayload"
2929
3146
  },
2930
3147
  "bottom:center": {
2931
3148
  "$ref": "#/$defs/ContentPayload"
2932
3149
  },
2933
- "bottom:right": {
3150
+ "bottom:end": {
2934
3151
  "$ref": "#/$defs/ContentPayload"
2935
3152
  },
2936
- "bottom:left+center": {
3153
+ "bottom:start+center": {
2937
3154
  "$ref": "#/$defs/ContentPayload"
2938
3155
  },
2939
- "bottom:center+right": {
3156
+ "bottom:center+end": {
2940
3157
  "$ref": "#/$defs/ContentPayload"
2941
3158
  },
2942
- "bottom:left+center+right": {
3159
+ "bottom:start+center+end": {
2943
3160
  "$ref": "#/$defs/ContentPayload"
2944
3161
  },
2945
- "top+middle:left": {
3162
+ "top+middle:start": {
2946
3163
  "$ref": "#/$defs/ContentPayload"
2947
3164
  },
2948
3165
  "top+middle:center": {
2949
3166
  "$ref": "#/$defs/ContentPayload"
2950
3167
  },
2951
- "top+middle:right": {
3168
+ "top+middle:end": {
2952
3169
  "$ref": "#/$defs/ContentPayload"
2953
3170
  },
2954
- "top+middle:left+center": {
3171
+ "top+middle:start+center": {
2955
3172
  "$ref": "#/$defs/ContentPayload"
2956
3173
  },
2957
- "top+middle:center+right": {
3174
+ "top+middle:center+end": {
2958
3175
  "$ref": "#/$defs/ContentPayload"
2959
3176
  },
2960
- "top+middle:left+center+right": {
3177
+ "top+middle:start+center+end": {
2961
3178
  "$ref": "#/$defs/ContentPayload"
2962
3179
  },
2963
- "middle+bottom:left": {
3180
+ "middle+bottom:start": {
2964
3181
  "$ref": "#/$defs/ContentPayload"
2965
3182
  },
2966
3183
  "middle+bottom:center": {
2967
3184
  "$ref": "#/$defs/ContentPayload"
2968
3185
  },
2969
- "middle+bottom:right": {
3186
+ "middle+bottom:end": {
2970
3187
  "$ref": "#/$defs/ContentPayload"
2971
3188
  },
2972
- "middle+bottom:left+center": {
3189
+ "middle+bottom:start+center": {
2973
3190
  "$ref": "#/$defs/ContentPayload"
2974
3191
  },
2975
- "middle+bottom:center+right": {
3192
+ "middle+bottom:center+end": {
2976
3193
  "$ref": "#/$defs/ContentPayload"
2977
3194
  },
2978
- "middle+bottom:left+center+right": {
3195
+ "middle+bottom:start+center+end": {
2979
3196
  "$ref": "#/$defs/ContentPayload"
2980
3197
  },
2981
- "top+middle+bottom:left": {
3198
+ "top+middle+bottom:start": {
2982
3199
  "$ref": "#/$defs/ContentPayload"
2983
3200
  },
2984
3201
  "top+middle+bottom:center": {
2985
3202
  "$ref": "#/$defs/ContentPayload"
2986
3203
  },
2987
- "top+middle+bottom:right": {
3204
+ "top+middle+bottom:end": {
2988
3205
  "$ref": "#/$defs/ContentPayload"
2989
3206
  },
2990
- "top+middle+bottom:left+center": {
3207
+ "top+middle+bottom:start+center": {
2991
3208
  "$ref": "#/$defs/ContentPayload"
2992
3209
  },
2993
- "top+middle+bottom:center+right": {
3210
+ "top+middle+bottom:center+end": {
2994
3211
  "$ref": "#/$defs/ContentPayload"
2995
3212
  },
2996
- "top+middle+bottom:left+center+right": {
3213
+ "top+middle+bottom:start+center+end": {
2997
3214
  "$ref": "#/$defs/ContentPayload"
2998
3215
  },
2999
3216
  "notes": {
@@ -3019,10 +3236,144 @@
3019
3236
  }
3020
3237
  }
3021
3238
  },
3239
+ "ImageBlockOption": {
3240
+ "description": "An option of image blocks only (fit, focus, recolor, overlay, placement, portrait): the block must hold an 'image'.",
3241
+ "required": ["image"]
3242
+ },
3243
+ "ImageOrShapeBlockOption": {
3244
+ "description": "An option of image blocks and shape blocks (aspectRatio, adjust, stroke, opacity): the block must hold an 'image', a 'shape' or a 'path'.",
3245
+ "anyOf": [{ "required": ["image"] }, { "required": ["shape"] }, { "required": ["path"] }]
3246
+ },
3247
+ "ShapeBlockOption": {
3248
+ "description": "An option of shape blocks only (fill, style, rotate, flip, the text frame, accessibility, link and the six effects): the block must be a shape block, which is a 'shape' with no 'image', or a 'path'.",
3249
+ "anyOf": [{ "required": ["shape"], "not": { "required": ["image"] } }, { "required": ["path"] }]
3250
+ },
3022
3251
  "ContentPayload": {
3023
3252
  "type": "object",
3024
3253
  "description": "A content leaf or recursively composed group. A group contains blocks and optional composition; it cannot mix blocks with leaf payload fields. Groups may nest up to 32 levels.",
3025
3254
  "additionalProperties": false,
3255
+ "$comment": "dependentSchemas states in the schema what the format check also reports with a located message: which options belong to which kind of block. packages/javascript/test/payload-option-parity.test.mjs keeps the two in step.",
3256
+ "dependentSchemas": {
3257
+ "fit": {
3258
+ "$ref": "#/$defs/ImageBlockOption"
3259
+ },
3260
+ "focus": {
3261
+ "$ref": "#/$defs/ImageBlockOption"
3262
+ },
3263
+ "recolor": {
3264
+ "$ref": "#/$defs/ImageBlockOption"
3265
+ },
3266
+ "overlay": {
3267
+ "$ref": "#/$defs/ImageBlockOption"
3268
+ },
3269
+ "placement": {
3270
+ "$ref": "#/$defs/ImageBlockOption"
3271
+ },
3272
+ "portrait": {
3273
+ "$ref": "#/$defs/ImageBlockOption"
3274
+ },
3275
+ "aspectRatio": {
3276
+ "$ref": "#/$defs/ImageOrShapeBlockOption"
3277
+ },
3278
+ "adjust": {
3279
+ "$ref": "#/$defs/ImageOrShapeBlockOption"
3280
+ },
3281
+ "stroke": {
3282
+ "$ref": "#/$defs/ImageOrShapeBlockOption"
3283
+ },
3284
+ "opacity": {
3285
+ "$ref": "#/$defs/ImageOrShapeBlockOption"
3286
+ },
3287
+ "fill": {
3288
+ "$ref": "#/$defs/ShapeBlockOption"
3289
+ },
3290
+ "style": {
3291
+ "$ref": "#/$defs/ShapeBlockOption"
3292
+ },
3293
+ "rotate": {
3294
+ "$ref": "#/$defs/ShapeBlockOption"
3295
+ },
3296
+ "flip": {
3297
+ "$ref": "#/$defs/ShapeBlockOption"
3298
+ },
3299
+ "anchor": {
3300
+ "$ref": "#/$defs/ShapeBlockOption"
3301
+ },
3302
+ "padding": {
3303
+ "$ref": "#/$defs/ShapeBlockOption"
3304
+ },
3305
+ "textDirection": {
3306
+ "$ref": "#/$defs/ShapeBlockOption"
3307
+ },
3308
+ "alt": {
3309
+ "$ref": "#/$defs/ShapeBlockOption"
3310
+ },
3311
+ "decorative": {
3312
+ "$ref": "#/$defs/ShapeBlockOption"
3313
+ },
3314
+ "hidden": {
3315
+ "$ref": "#/$defs/ShapeBlockOption"
3316
+ },
3317
+ "link": {
3318
+ "$ref": "#/$defs/ShapeBlockOption"
3319
+ },
3320
+ "shadow": {
3321
+ "$ref": "#/$defs/ShapeBlockOption"
3322
+ },
3323
+ "innerShadow": {
3324
+ "$ref": "#/$defs/ShapeBlockOption"
3325
+ },
3326
+ "glow": {
3327
+ "$ref": "#/$defs/ShapeBlockOption"
3328
+ },
3329
+ "softEdge": {
3330
+ "$ref": "#/$defs/ShapeBlockOption"
3331
+ },
3332
+ "reflection": {
3333
+ "$ref": "#/$defs/ShapeBlockOption"
3334
+ },
3335
+ "blur": {
3336
+ "$ref": "#/$defs/ShapeBlockOption"
3337
+ },
3338
+ "path": {
3339
+ "not": {
3340
+ "required": [
3341
+ "image"
3342
+ ]
3343
+ },
3344
+ "description": "A custom outline makes a shape block; a picture's mask is a preset 'shape'."
3345
+ },
3346
+ "caption": {
3347
+ "anyOf": [
3348
+ {
3349
+ "required": [
3350
+ "image"
3351
+ ]
3352
+ },
3353
+ {
3354
+ "required": [
3355
+ "chart"
3356
+ ]
3357
+ },
3358
+ {
3359
+ "required": [
3360
+ "table"
3361
+ ]
3362
+ },
3363
+ {
3364
+ "required": [
3365
+ "video"
3366
+ ]
3367
+ },
3368
+ {
3369
+ "required": [
3370
+ "diagram"
3371
+ ]
3372
+ }
3373
+ ],
3374
+ "description": "A caption belongs to an image, chart, table, video or diagram."
3375
+ }
3376
+ },
3026
3377
  "properties": {
3027
3378
  "id": {
3028
3379
  "type": "string",
@@ -3036,7 +3387,7 @@
3036
3387
  "region": {
3037
3388
  "type": "string",
3038
3389
  "pattern": "^[a-z][a-z0-9-]*$",
3039
- "description": "Pin a root block (slides.N.blocks.I) to a region of the slide's template layout by name (OPF 0.19). 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. A pin on a nested block, or on a slide without a template layout, has no effect.",
3390
+ "description": "Pin a root block (slides.N.blocks.I) to a region of the slide's template 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. A pin on a nested block, or on a slide without a template layout, has no effect.",
3040
3391
  "examples": ["notes", "metrics"]
3041
3392
  },
3042
3393
  "type": {
@@ -3097,11 +3448,11 @@
3097
3448
  "maximum": 3
3098
3449
  }
3099
3450
  ],
3100
- "description": "Lay the payload's `items` or `bullets` out in columns (OPF 0.19). '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. A lone list in a layout region with listColumns: 'auto' behaves as 'auto'.",
3451
+ "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. A lone list in a layout region with listColumns: 'auto' behaves as 'auto'.",
3101
3452
  "examples": ["auto", 2]
3102
3453
  },
3103
3454
  "image": {
3104
- "$ref": "#/$defs/Asset",
3455
+ "$ref": "#/$defs/ImagePayload",
3105
3456
  "description": "Source for an image item.",
3106
3457
  "examples": [
3107
3458
  "https://cdn.acme.com/images/diagram.png",
@@ -3127,7 +3478,7 @@
3127
3478
  },
3128
3479
  "shape": {
3129
3480
  "$ref": "#/$defs/ShapePreset",
3130
- "description": "The preset geometry. Without 'image' it makes the block a shape block (SH-02): the preset drawn at the block's own fitted size with 'fill', 'stroke' and 'style', and 'text' inside its text rectangle. On an image block it is the frame's mask, exported as the picture's native preset geometry (a:prstGeom); 0.33 renamed rectangle, rounded and circle to rect, roundRect and ellipse, and every other preset is a mask too. 'ellipse' makes an image frame square. Default rect.",
3481
+ "description": "The preset geometry. Without 'image' it makes the block a shape block: the preset drawn at the block's own fitted size with 'fill', 'stroke' and 'style', and 'text' inside its text rectangle. On an image block it is the frame's mask, exported as the picture's native preset geometry (a:prstGeom); 0.33 renamed rectangle, rounded and circle to rect, roundRect and ellipse, and every other preset is a mask too. 'ellipse' makes an image frame square. Default rect.",
3131
3482
  "examples": ["roundRect", "chevron", "ellipse", "wedgeRectCallout"]
3132
3483
  },
3133
3484
  "stroke": {
@@ -3206,7 +3557,7 @@
3206
3557
  "type": "number",
3207
3558
  "minimum": 0,
3208
3559
  "maximum": 200,
3209
- "description": "Shape blocks only. Soft edges (a:softEdge): the radius over which the outline fades, in reference pixels at a 720-pixel short edge. SH-03 draws it in both engines."
3560
+ "description": "Shape blocks only. Soft edges (a:softEdge): the radius over which the outline fades, in reference pixels at a 720-pixel short edge."
3210
3561
  },
3211
3562
  "reflection": {
3212
3563
  "$ref": "#/$defs/Reflection",
@@ -3216,7 +3567,7 @@
3216
3567
  "type": "number",
3217
3568
  "minimum": 0,
3218
3569
  "maximum": 200,
3219
- "description": "Shape blocks only. Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge. SH-03 draws it in both engines."
3570
+ "description": "Shape blocks only. Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge."
3220
3571
  },
3221
3572
  "adjust": {
3222
3573
  "type": "object",
@@ -3349,7 +3700,7 @@
3349
3700
  { "type": "string" },
3350
3701
  { "$ref": "#/$defs/Diagram" }
3351
3702
  ],
3352
- "description": "Diagram payload: Mermaid source (flowchart, sequence, state, class, ER, mindmap, timeline, journey, C4, architecture and the other built-in Mermaid families) drawn in the deck's fonts and colors. A string is shorthand for { \"source\": value }; object form carries the source syntax and a text alternative. Presence of this field infers type 'diagram'.",
3703
+ "description": "Diagram payload: Mermaid source (flowchart, sequence, state, class, ER, mindmap, timeline, journey, C4, architecture and the other built-in Mermaid families), or Graphviz DOT or PlantUML source with 'syntax', drawn in the deck's fonts and colors. A string is shorthand for { \"source\": value }; object form carries the source syntax and a text alternative. Presence of this field infers type 'diagram'.",
3353
3704
  "examples": [
3354
3705
  "flowchart LR\n A[Brief] --> B{Approved?}\n B -->|yes| C[Build]\n B -->|no| A",
3355
3706
  {
@@ -3381,7 +3732,7 @@
3381
3732
  },
3382
3733
  "icon": {
3383
3734
  "$ref": "#/$defs/IconReference",
3384
- "description": "Groups only (LH-14): an icon drawn on a chip at the top of the group, before its heading, as a card of features or topics draws one: \"<set>:<name>\" (\"lucide:shield-check\"), a name from the deck's icons, or an SVG source. A list entry and a metric take their own `icon`. Decoration only: when the slide has no room for it without setting text smaller, it is not drawn (finding opf/icon-dropped). See docs/icons.md."
3735
+ "description": "Groups only: an icon drawn on a chip at the top of the group, before its heading, as a card of features or topics draws one: \"<set>:<name>\" (\"lucide:shield-check\"), a name from the deck's icons, or an SVG source. A list entry and a metric take their own `icon`. Decoration only: when the slide has no room for it without setting text smaller, it is not drawn (finding opf/icon-dropped). See docs/icons.md."
3385
3736
  }
3386
3737
  },
3387
3738
  "allOf": [
@@ -3754,31 +4105,31 @@
3754
4105
  },
3755
4106
  "icon": {
3756
4107
  "$ref": "#/$defs/IconReference",
3757
- "description": "An icon drawn on a chip above the metric (LH-14): \"<set>:<name>\" (\"lucide:users\"), a name from the deck's icons, or an SVG source. Decoration only: when the slide has no room for it without setting text smaller, it is not drawn (finding opf/icon-dropped). See docs/icons.md."
4108
+ "description": "An icon drawn on a chip above the metric: \"<set>:<name>\" (\"lucide:users\"), a name from the deck's icons, or an SVG source. Decoration only: when the slide has no room for it without setting text smaller, it is not drawn (finding opf/icon-dropped). See docs/icons.md."
3758
4109
  }
3759
4110
  }
3760
4111
  },
3761
4112
  "Diagram": {
3762
4113
  "type": "object",
3763
- "description": "A diagram written as text. Engines parse the source, lay it out with the deck's measured fonts at the largest type size that fits the block, and draw it in the slide's resolved colors (color scheme, variant, color map and background); the PPTX export writes it as a native SVG picture with a PNG fallback. A string value in a diagram field is shorthand for { \"source\": value }.",
4114
+ "description": "A diagram written as text (Mermaid, Graphviz DOT or PlantUML), laid out with the deck's measured fonts and resolved colors at the largest type size that fits. PPTX export defaults to editable native shapes, connectors and text in one group for qualified families; unsupported families or drawing constructs use an SVG picture with a PNG fallback. The diagrams: \"picture\" option always uses that picture form. A string diagram is shorthand for { \"source\": value }.",
3764
4115
  "additionalProperties": false,
3765
4116
  "required": ["source"],
3766
4117
  "properties": {
3767
4118
  "source": {
3768
4119
  "type": "string",
3769
4120
  "minLength": 1,
3770
- "description": "The diagram source. With syntax 'mermaid' (the default) it is Mermaid 12.1 text whose first line names the diagram type (flowchart, sequenceDiagram, classDiagram, stateDiagram-v2, erDiagram, gantt, pie, mindmap, timeline, journey, quadrantChart, xychart, sankey, gitGraph, C4Context, block, architecture-beta, kanban, packet, radar-beta, treemap, venn-beta, ishikawa, requirementDiagram and the other built-in families; ZenUML is not supported). Mermaid themes, colors in themeVariables and click callbacks are ignored: the deck's design decides the colors and fonts.",
3771
- "examples": ["flowchart LR\n A[Idea] --> B[Prototype] --> C[Launch]", "mindmap\n root((Strategy))\n Growth\n Efficiency\n People"]
4121
+ "description": "The diagram source. With syntax 'mermaid' (the default) it is Mermaid 12.1 text whose first line names the diagram type (flowchart, sequenceDiagram, classDiagram, stateDiagram-v2, erDiagram, gantt, pie, mindmap, timeline, journey, quadrantChart, xychart, sankey, gitGraph, C4Context, block, architecture-beta, kanban, packet, radar-beta, treemap, venn-beta, ishikawa, requirementDiagram and the other built-in families; ZenUML is not supported). Mermaid themes, colors in themeVariables and click callbacks are ignored: the deck's design decides the colors and fonts. With syntax 'dot' it is one Graphviz DOT graph (graph or digraph), laid out in layers as Graphviz's dot engine does: rankdir, node shapes, edge styles, arrowheads, labels and subgraph cluster_* groups are drawn; colors, fonts, sizes and positions are the deck's; a graph whose layout attribute names another engine (neato, fdp, sfdp, circo, twopi, osage, patchwork) is not drawn. With syntax 'plantuml' it is one PlantUML diagram from @startuml (or @startmindmap, @startgantt) to its @end line: sequence, class, state, activity (the current syntax), use case, component and deployment diagrams, mind maps and gantt charts are drawn as the Mermaid family of the same kind; other PlantUML diagrams, the legacy activity syntax and the preprocessor are not drawn, and skinparam, themes and colors are ignored.",
4122
+ "examples": ["flowchart LR\n A[Idea] --> B[Prototype] --> C[Launch]", "mindmap\n root((Strategy))\n Growth\n Efficiency\n People", "digraph {\n rankdir=LR\n Idea -> Prototype -> Launch\n}", "@startuml\nAlice -> Bob : hello\n@enduml"]
3772
4123
  },
3773
4124
  "syntax": {
3774
4125
  "type": "string",
3775
- "enum": ["mermaid"],
4126
+ "enum": ["mermaid", "dot", "plantuml"],
3776
4127
  "default": "mermaid",
3777
- "description": "The language of 'source'. Mermaid is the only syntax today."
4128
+ "description": "The language of 'source': 'mermaid' (Mermaid 12.1, the default), 'dot' (Graphviz DOT, drawn with the layered layout) or 'plantuml' (PlantUML, drawn as the Mermaid family of the same kind). OPF reads all three itself; no Graphviz or PlantUML code runs."
3778
4129
  },
3779
4130
  "alt": {
3780
4131
  "type": "string",
3781
- "description": "Text alternative that says what the diagram shows. Exported as the picture's description. Without it, engines derive one from the diagram's labels.",
4132
+ "description": "Text alternative that says what the diagram shows. Exported as the description of the native shape group or picture. Without it, engines derive one from the diagram's labels.",
3782
4133
  "examples": ["Ideas move from brief to approval; approved work is built, rejected work returns to the brief."]
3783
4134
  }
3784
4135
  }
@@ -3827,6 +4178,13 @@
3827
4178
  "description": "Event time, date, or sequence label. Use ISO-like values when possible, but human labels are allowed for quarters, eras, and relative milestones.",
3828
4179
  "examples": ["2026-01", "Q2 2026", "Launch week"]
3829
4180
  },
4181
+ "duration": {
4182
+ "type": "number",
4183
+ "exclusiveMinimum": 0,
4184
+ "maximum": 1.7976931348623157e308,
4185
+ "description": "Relative length of this consecutive event period. Use the same unit for every event (for example 1 for Week 1 and 4 for Weeks 2–5). Omitted means one unit. When any event supplies duration, both engines draw proportional ranges. The 'when' field stays the authored display label and is never parsed to guess a duration.",
4186
+ "examples": [1, 4, 0.5]
4187
+ },
3830
4188
  "what": {
3831
4189
  "type": "string",
3832
4190
  "description": "Short event label.",
@@ -3900,7 +4258,7 @@
3900
4258
  },
3901
4259
  "icon": {
3902
4260
  "$ref": "#/$defs/IconReference",
3903
- "description": "An icon drawn on a chip at the start of the entry, in place of its bullet (LH-14): \"<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."
4261
+ "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."
3904
4262
  },
3905
4263
  "start": {
3906
4264
  "type": "integer",
@@ -4008,6 +4366,7 @@
4008
4366
  { "type": "string" },
4009
4367
  {
4010
4368
  "type": "object",
4369
+ "additionalProperties": false,
4011
4370
  "required": ["text"],
4012
4371
  "properties": {
4013
4372
  "text": {
@@ -4054,7 +4413,7 @@
4054
4413
  "fontSize": {
4055
4414
  "type": "number",
4056
4415
  "exclusiveMinimum": 0,
4057
- "description": "Requested run font size in points."
4416
+ "description": "Run font size in points, the unit presenters know from PowerPoint. One point is 4/3 reference pixels at a 720-pixel short edge, so 12 points corresponds to 16 reference pixels (composition.minFontSize: 16). Other fields state their own units, including inches, reference pixels, fractional geometry and chart data-axis values."
4058
4417
  },
4059
4418
  "fontFamily": {
4060
4419
  "type": "string",
@@ -4065,10 +4424,10 @@
4065
4424
  "type": "boolean",
4066
4425
  "description": "Whether the run is an inline code span: it is drawn in the design's code font (design.fontScheme.code, else the resolved font scheme's code family, else Roboto Mono), unless the run names its own fontFamily. Only the font changes; there is no background, because a PPTX run cannot have one. Markdown backticks read and write code runs."
4067
4426
  },
4068
- "lang": {
4427
+ "language": {
4069
4428
  "type": "string",
4070
4429
  "pattern": "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",
4071
- "description": "BCP-47 language tag of the run, such as 'fr-FR' or 'ja-JP', when it differs from the deck language. It sets the proofing language (PPTX a:rPr lang) and the language the run's script fonts and glyph variants follow (for example the Japanese or the Simplified Chinese face for Han characters); without it the run follows the deck language.",
4430
+ "description": "BCP-47 language tag of the run, such as 'fr-FR' or 'ja-JP', when it differs from the deck language. It sets the proofing language (PPTX a:rPr lang) and the language the run's script fonts and glyph variants follow (for example the Japanese or the Simplified Chinese face for Han characters); without it the run follows the effective slide language, then the deck language.",
4072
4431
  "examples": ["fr-FR", "ja-JP", "de"]
4073
4432
  },
4074
4433
  "link": {
@@ -4106,7 +4465,7 @@
4106
4465
  ]
4107
4466
  },
4108
4467
  "Caption": {
4109
- "description": "A caption for an image, chart, table or video payload. A string or TextRun[] is the caption text placed below the media; object form adds the position and alignment.",
4468
+ "description": "A caption for an image, chart, table, video or diagram payload. A string or TextRun[] is the caption text placed below the media; object form adds the position and alignment.",
4110
4469
  "oneOf": [
4111
4470
  { "type": "string" },
4112
4471
  { "type": "array", "items": { "$ref": "#/$defs/TextRun" } },
@@ -4129,8 +4488,8 @@
4129
4488
  },
4130
4489
  "align": {
4131
4490
  "type": "string",
4132
- "enum": ["left", "center", "right"],
4133
- "description": "Horizontal alignment of the caption text within the block. Defaults to left."
4491
+ "enum": ["start", "center", "end"],
4492
+ "description": "Horizontal alignment of the caption text within the block. Defaults to start. 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."
4134
4493
  }
4135
4494
  }
4136
4495
  }
@@ -4166,6 +4525,42 @@
4166
4525
  }
4167
4526
  }
4168
4527
  },
4528
+ "FiniteNumber": {
4529
+ "type": "number",
4530
+ "minimum": -1.7976931348623157e308,
4531
+ "maximum": 1.7976931348623157e308,
4532
+ "description": "A finite number. JSON text such as 1e999 reads as Infinity in JavaScript and YAML has .inf and .nan; these bounds reject them."
4533
+ },
4534
+ "Line": {
4535
+ "description": "A plain line: its color, width and dash, or 'none' for no line. Shared by table cell borders and chart reference lines. A shape's outline is a Stroke, which adds what only an outline has (gradient, caps, joins, compound lines, arrowheads, sketch). Every part is optional and falls back to the default of the place the line is used.",
4536
+ "anyOf": [
4537
+ { "const": "none", "description": "No line." },
4538
+ {
4539
+ "type": "object",
4540
+ "additionalProperties": false,
4541
+ "properties": {
4542
+ "color": { "$ref": "#/$defs/ColorRef", "description": "Line color: any ColorRef (eight-digit hex keeps its alpha)." },
4543
+ "width": { "type": "number", "minimum": 0, "maximum": 64, "description": "Line width in reference pixels at a 720-pixel short edge. 0 draws no line, the same as 'none'." },
4544
+ "dash": { "type": "string", "enum": ["solid", "dash", "dot"], "description": "Dash pattern, by the names Stroke.dash uses." }
4545
+ }
4546
+ }
4547
+ ],
4548
+ "examples": ["none", { "width": 2 }, { "color": "accent2", "width": 2, "dash": "dash" }]
4549
+ },
4550
+ "ChartReferenceLine": {
4551
+ "type": "object",
4552
+ "additionalProperties": false,
4553
+ "required": ["value"],
4554
+ "description": "One explicit reference on the chart's numeric value axis. Labels and titles never select its value, units or placement. A reference at a category or a band between two values is not expressible yet; 'axis' and a separate key are reserved for them.",
4555
+ "properties": {
4556
+ "value": { "$ref": "#/$defs/FiniteNumber", "description": "Finite value in the associated data-axis units. With format 0%, 0.25 means 25%; 25 means 2500%. Every reference expands automatic bounds when needed." },
4557
+ "axis": { "type": "string", "enum": ["value", "secondary"], "default": "value", "description": "Secondary requires a combo chart with an actual secondary line series." },
4558
+ "label": { "type": "string", "minLength": 1, "pattern": "\\S", "description": "Optional nonblank plain text, shown verbatim. Omission draws no label." },
4559
+ "labelPosition": { "type": "string", "enum": ["start", "end"], "default": "end", "description": "Logical endpoint. Horizontal start/end mirror in RTL; on bars they mean top/bottom. Requires label." },
4560
+ "stroke": { "$ref": "#/$defs/Line", "description": "The line's color, width and dash, or 'none' to draw only the label. Defaults: the chart-text neutral, 4/3 reference pixels (1 point) and 'dash'. The value expands the axis bounds whether or not the line is drawn." }
4561
+ },
4562
+ "dependentRequired": { "labelPosition": ["label"] }
4563
+ },
4169
4564
  "Chart": {
4170
4565
  "type": "object",
4171
4566
  "description": "Chart content. The chart object keeps chart-specific fields together so slides and regions do not expose loose chart fields. OPF charts are `{ type, data }` where `data` is `{ columns, rows }`: the first column holds the category labels and every further column is one series. There are no `categories`, `series`, `labels` or `datasets` keys (the Chart.js and ECharts shape); write them as columns and rows. Example: `{ \"type\": \"column\", \"data\": { \"columns\": [\"Quarter\", \"Decks\"], \"rows\": [[\"Q1\", 3], [\"Q2\", 8], [\"Q3\", 21]] } }`.",
@@ -4202,24 +4597,29 @@
4202
4597
  "items": { "type": "string" },
4203
4598
  "minItems": 1,
4204
4599
  "uniqueItems": true,
4205
- "description": "Combo charts only: line series, by column name, plotted against a secondary value axis at the right of the plot. That axis has its own scale, and its tick labels use the number format of the first secondary series' column (DataColumn.format), for example '0%' for a margin. Absent: every series shares the primary value axis at the left. A name that is not a line series (see 'line') stays on the primary axis with a 'chart-mapping-adapted' warning; an unknown column is a 'chart-mapping-unknown-column' error. On any other chart type it is ignored with a 'chart-option-adapted' warning.",
4600
+ "description": "Combo charts only: line series, by column name, plotted against a secondary value axis at the end of the plot (the right; the left in a right-to-left deck, where the category axis runs from the right). That axis has its own scale, and its tick labels use the number format of the first secondary series' column (DataColumn.format), for example '0%' for a margin. Absent: every series shares the primary value axis at the start of the plot (the left; the right in a right-to-left deck). A name that is not a line series (see 'line') stays on the primary axis with a 'chart-mapping-adapted' warning; an unknown column is a 'chart-mapping-unknown-column' error. On any other chart type it is ignored with a 'chart-option-adapted' warning.",
4206
4601
  "examples": [["Margin"]]
4207
4602
  },
4603
+ "referenceLines": {
4604
+ "type": "array",
4605
+ "items": { "$ref": "#/$defs/ChartReferenceLine" },
4606
+ "description": "Explicit numeric references on the chart's value axis, supported on the chart types with one value axis for every series: column, bar, line, line-with-markers, area and combo. A non-empty list on any other type (the stacked and 100% stacked types among them) is the error opf/chart-reference-unsupported-type, located at referenceLines, so a reference is never dropped silently. Absent or [] means none. Authored order, duplicates and values equal to data are preserved. Vertical charts with two or more categories span first-to-last category centers; bars/single-category charts span the full plot. Titles/subtitles never create references or period bands."
4607
+ },
4208
4608
  "axisTitles": {
4209
4609
  "$ref": "#/$defs/ChartAxisTitles",
4210
- "description": "Optional axis titles. Absent keeps today's untitled axes. Supported on the chart types that have a category/value (or X/Y) axis pair (column, bar, line, area, scatter, and the histogram, pareto, waterfall and box-and-whisker constructs; the funnel construct takes a category title only; a combo chart also takes 'secondary' when it plots a series on the secondary axis); a title on a type without that axis (pie, doughnut, radar, treemap, map) is dropped with a 'chart-option-adapted' diagnostic by renderers and exporters."
4610
+ "description": "Optional axis titles. Absent keeps today's untitled axes. Supported on the chart types that have a category/value (or X/Y) axis pair (column, bar, line, area, scatter, and the histogram, pareto, waterfall and box-and-whisker constructs; the funnel construct takes a category title only; a combo chart also takes 'secondary' when it plots a series on the secondary axis); a title on a type without that axis (pie, doughnut, radar, treemap, world) is dropped with a 'chart-option-adapted' diagnostic by renderers and exporters."
4211
4611
  },
4212
4612
  "legend": {
4213
4613
  "type": "string",
4214
4614
  "enum": ["none", "top", "bottom", "left", "right"],
4215
- "description": "Optional legend position. 'none' hides the legend. Absent keeps today's behaviour exactly (a legend at the right of multi-series charts and of pie and doughnut charts, none for single-series charts). A named position shows the legend there even for a single-series chart. Of the Office 2016 constructs only box-and-whisker takes a legend; histogram, pareto, waterfall, funnel, treemap and map drop the option with a 'chart-option-adapted' diagnostic."
4615
+ "description": "Optional legend position. 'none' hides the legend. Absent leaves it to the engines: a line chart of two to four series names its series at the line ends and a pie or one-series doughnut names its slices, with no legend; a column, bar, area or combo chart of two to four series shows its legend in the header row above the plot; other multi-series charts and pie and doughnut charts take a legend at the physical right; a single-series chart takes none. A named position shows the legend there even for a single-series chart; 'left' and 'right' are physical sides in every language. Of the Office 2016 constructs only box-and-whisker takes a legend; histogram, pareto, waterfall, funnel, treemap and world drop the option with a 'chart-option-adapted' diagnostic."
4216
4616
  },
4217
4617
  "dataLabels": {
4218
4618
  "oneOf": [
4219
4619
  { "type": "boolean" },
4220
4620
  { "$ref": "#/$defs/ChartDataLabels" }
4221
4621
  ],
4222
- "description": "Optional data labels. true shows value labels at each type's default position, false (or absent) shows none, which is today's behaviour. Use the object form for the label content, position and separator."
4622
+ "description": "Optional data labels. true shows value labels at each type's default position and false shows none. Absent leaves it to the engines: no labels, except on a small chart, which labels its values in place of its value axis, the direct labels of line, pie and doughnut charts, and the labels the funnel and treemap constructs draw by default. Use the object form for the label content, position and separator."
4223
4623
  },
4224
4624
  "alt": {
4225
4625
  "type": "string",
@@ -4236,7 +4636,7 @@
4236
4636
  },
4237
4637
  "highlight": {
4238
4638
  "$ref": "#/$defs/ChartHighlight",
4239
- "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 grey on a light chart panel, a dim grey 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, map 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."
4639
+ "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 grey on a light chart panel, a dim grey 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."
4240
4640
  }
4241
4641
  }
4242
4642
  },
@@ -4252,12 +4652,12 @@
4252
4652
  },
4253
4653
  "value": {
4254
4654
  "type": "string",
4255
- "description": "Title of the value (Y) axis. On a combo chart, the primary (left) value axis.",
4655
+ "description": "Title of the value (Y) axis. On a combo chart, the primary value axis (at the start of the plot).",
4256
4656
  "examples": ["Revenue ($M)", "Customers"]
4257
4657
  },
4258
4658
  "secondary": {
4259
4659
  "type": "string",
4260
- "description": "Combo charts only: title of the secondary value axis at the right of the plot, drawn rotated like the primary value axis title. Dropped with a 'chart-option-adapted' diagnostic on any other chart type and on a combo chart without 'secondaryAxis'.",
4660
+ "description": "Combo charts only: title of the secondary value axis at the end of the plot (the right; the left in a right-to-left deck), drawn rotated like the primary value axis title. Dropped with a 'chart-option-adapted' diagnostic on any other chart type and on a combo chart without 'secondaryAxis'.",
4261
4661
  "examples": ["Margin (%)"]
4262
4662
  }
4263
4663
  }
@@ -4266,12 +4666,11 @@
4266
4666
  "type": "object",
4267
4667
  "additionalProperties": false,
4268
4668
  "minProperties": 1,
4269
- "description": "Which series and categories a chart emphasizes. Names are matched exactly: series by data column name (after any 'fields' selection; a series is a plotted value column), categories by row label (the first column, or mapping.category), as text. A category label shared by several rows highlights each of them.",
4669
+ "description": "Which series and categories a chart emphasizes. Present, it is the only source of emphasis: engines then derive none from the slide's texts. Empty lists (for example { \"categories\": [] }) highlight nothing, which switches derived emphasis off as table.highlight { \"rows\": [] } does. Names are matched exactly: series by data column name (after any 'fields' selection; a series is a plotted value column), categories by row label (the first column, or mapping.category), as text. A category label shared by several rows highlights each of them.",
4270
4670
  "properties": {
4271
4671
  "series": {
4272
4672
  "type": "array",
4273
4673
  "items": { "type": "string" },
4274
- "minItems": 1,
4275
4674
  "uniqueItems": true,
4276
4675
  "description": "Series (value columns) to highlight: all marks of each named series. A name that is not a column is a 'chart-highlight-unknown-name' error; a column that is not plotted as a series (the category or X column, or one mapping.series leaves out) highlights nothing and is a 'chart-highlight-adapted' warning.",
4277
4676
  "examples": [["Revenue"]]
@@ -4279,7 +4678,6 @@
4279
4678
  "categories": {
4280
4679
  "type": "array",
4281
4680
  "items": { "type": "string" },
4282
- "minItems": 1,
4283
4681
  "uniqueItems": true,
4284
4682
  "description": "Categories (row labels) to highlight: the marks of each named category (a column or bar of every series, a line's points, a pie or doughnut slice). A label no row has is a 'chart-highlight-unknown-name' error.",
4285
4683
  "examples": [["Q3"]]
@@ -4302,7 +4700,7 @@
4302
4700
  "position": {
4303
4701
  "type": "string",
4304
4702
  "enum": ["auto", "center", "inside-end", "inside-base", "outside-end", "above", "below", "left", "right"],
4305
- "description": "Where a label sits relative to its mark. 'auto' (the default) is the type's default: outside-end for clustered columns and bars, pie slices and the histogram, pareto and waterfall constructs; center for stacked columns and bars; above for line and scatter points. Clustered columns and bars and the histogram, pareto and waterfall constructs take center, inside-end, inside-base and outside-end; stacked columns and bars take center, inside-end and inside-base; pie takes center, inside-end and outside-end; line and scatter points take above, below, left, right and center. Area, doughnut and radar charts and the funnel and treemap constructs take only 'auto' (the box-and-whisker and map constructs have no data labels). A combo chart places the labels of its column series like clustered columns and those of its line series like line points; a position only one part takes applies to that part, and the other part keeps its default (outside-end, above). An unsupported position falls back to 'auto' with a 'chart-option-adapted' diagnostic."
4703
+ "description": "Where a label sits relative to its mark. 'auto' (the default) is the type's default: outside-end for clustered columns and bars, pie slices and the histogram, pareto and waterfall constructs; center for stacked columns and bars; above for line and scatter points. Clustered columns and bars and the histogram, pareto and waterfall constructs take center, inside-end, inside-base and outside-end; stacked columns and bars take center, inside-end and inside-base; pie takes center, inside-end and outside-end; line and scatter points take above, below, left, right and center. Area, doughnut and radar charts and the funnel and treemap constructs take only 'auto' (the box-and-whisker and world constructs have no data labels). A combo chart places the labels of its column series like clustered columns and those of its line series like line points; a position only one part takes applies to that part, and the other part keeps its default (outside-end, above). An unsupported position falls back to 'auto' with a 'chart-option-adapted' diagnostic."
4306
4704
  },
4307
4705
  "separator": {
4308
4706
  "type": "string",
@@ -4714,11 +5112,11 @@
4714
5112
  "align": {
4715
5113
  "type": "string",
4716
5114
  "enum": [
4717
- "left",
5115
+ "start",
4718
5116
  "center",
4719
- "right"
5117
+ "end"
4720
5118
  ],
4721
- "description": "Horizontal text alignment inside the cell."
5119
+ "description": "Horizontal text alignment inside the cell. 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."
4722
5120
  },
4723
5121
  "verticalAlign": {
4724
5122
  "type": "string",
@@ -4782,34 +5180,8 @@
4782
5180
  "description": "Text insets in reference pixels. Defaults: top 8, right 10, bottom 4, left 10."
4783
5181
  },
4784
5182
  "TableCellBorder": {
4785
- "type": "object",
4786
- "additionalProperties": false,
4787
- "required": [
4788
- "color",
4789
- "width"
4790
- ],
4791
- "properties": {
4792
- "color": {
4793
- "$ref": "#/$defs/ColorRef",
4794
- "description": "Border color: a hex color, a color-scheme slot or role name, or a 'var:<id>' variable reference. Eight-digit hex colors include alpha; #00000000 is transparent."
4795
- },
4796
- "width": {
4797
- "type": "number",
4798
- "minimum": 0,
4799
- "maximum": 32,
4800
- "description": "Border width in reference pixels; 0 removes this edge."
4801
- },
4802
- "dash": {
4803
- "type": "string",
4804
- "enum": [
4805
- "solid",
4806
- "dash",
4807
- "dot"
4808
- ],
4809
- "description": "Default solid."
4810
- }
4811
- },
4812
- "description": "One explicit cell border."
5183
+ "$ref": "#/$defs/Line",
5184
+ "description": "One explicit cell border: a Line, or 'none' to remove this edge. Defaults: the table's rule color (the scheme's border neutral), 1 reference pixel and 'solid'."
4813
5185
  },
4814
5186
  "Catalogs": {
4815
5187
  "type": "object",
@@ -4919,19 +5291,19 @@
4919
5291
  },
4920
5292
  "iconSets": {
4921
5293
  "$ref": "#/$defs/CatalogRecords",
4922
- "description": "Icon-set records keyed by set id (LH-14), each with the fields of https://openpresentation.org/schema/opf-icon-set/v1, holding only the icons the document uses (no licenseText or tags). Referenced from an icon as \"<set>:<name>\"."
5294
+ "description": "Icon-set records keyed by set id, each with the fields of https://openpresentation.org/schema/opf-icon-set/v1, holding only the icons the document uses (no licenseText or tags). Referenced from an icon as \"<set>:<name>\"."
4923
5295
  }
4924
5296
  }
4925
5297
  },
4926
5298
  "IconReference": {
4927
5299
  "type": "string",
4928
5300
  "pattern": "^(?:[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*|[a-z][a-z0-9-]*|(?:asset:|https://|data:|\\./|\\.\\./)\\S+)$",
4929
- "description": "An icon (LH-14): \"<set>:<name>\" names an icon of a set (\"lucide:truck\", \"tabler:rocket\"; the gallery bundles Lucide and Tabler outline), a bare name names one of the deck's `icons`, and an SVG source (\"asset:<id>\", \"./icon.svg\", an HTTPS URL or a data:image/svg+xml URI) names an SVG file, as pictures accept. A one-color icon draws in the accent and exports as a native, theme-colored PowerPoint shape; a multicolor SVG draws as a picture with its own colors. Unknown names are opf/icon-unknown, unusable SVG opf/icon-invalid.",
5301
+ "description": "An icon: \"<set>:<name>\" names an icon of a set (\"lucide:truck\", \"tabler:rocket\"; the gallery bundles Lucide and Tabler outline), a bare name names one of the deck's `icons`, and an SVG source (\"asset:<id>\", \"./icon.svg\", an HTTPS URL or a data:image/svg+xml URI) names an SVG file, as pictures accept. A one-color icon draws in the accent and exports as a native, theme-colored PowerPoint shape; a multicolor SVG draws as a picture with its own colors. Unknown names are opf/icon-unknown, unusable SVG opf/icon-invalid.",
4930
5302
  "examples": ["lucide:truck", "tabler:rocket", "brand-mark", "asset:partner-logo"]
4931
5303
  },
4932
5304
  "Icons": {
4933
5305
  "type": "object",
4934
- "description": "Deck-local icons (LH-14), keyed by name: SVG text (\"<svg …>\") or an SVG source (\"asset:<id>\", \"./icon.svg\", an HTTPS URL or a data URI). An `icon` names one by its bare name. The SVG is read, never run: a script, an event handler, an external reference or a raster makes it opf/icon-invalid. One paint (or currentColor) makes it a recolorable glyph; several make it a picture with its own colors.",
5306
+ "description": "Deck-local icons, keyed by name: SVG text (\"<svg …>\") or an SVG source (\"asset:<id>\", \"./icon.svg\", an HTTPS URL or a data URI). An `icon` names one by its bare name. The SVG is read, never run: a script, an event handler, an external reference or a raster makes it opf/icon-invalid. One paint (or currentColor) makes it a recolorable glyph; several make it a picture with its own colors.",
4935
5307
  "propertyNames": { "pattern": "^[a-z][a-z0-9-]*$" },
4936
5308
  "additionalProperties": { "type": "string", "minLength": 1 },
4937
5309
  "examples": [{ "brand-mark": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M4 12l5 5L20 6\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"/></svg>" }]
@@ -4961,8 +5333,8 @@
4961
5333
  "LanguageTag": {
4962
5334
  "type": "string",
4963
5335
  "pattern": "^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$",
4964
- "description": "A BCP-47 language tag ('en-US', 'ja', 'zh-Hans', 'sr-Latn-ME'), an engine vocabulary. Use 'en-GB' for UK English; 'en-UK' is not a valid region.",
4965
- "examples": ["en-US", "en-GB", "ja", "zh-Hans", "ar-SA"]
5336
+ "description": "A BCP-47 language tag ('en-US', 'ja', 'zh-Hans', 'sr-Latn-ME'), an engine vocabulary. Use 'en-GB' for UK English; 'en-UK' is not a valid region. Numbers the engines generate (metric values, chart labels and ticks, table numbers, list numerals, slide numbers) are drawn in the numbering system of the language, the locale's own (Arabic-Indic digits for 'ar-SA', Latin for 'ar-AE', Persian for 'fa-IR'); the Unicode extension '-u-nu-<system>' chooses another ('ar-SA-u-nu-latn' draws Latin digits). PowerPoint's lang attribute is written without the extension.",
5337
+ "examples": ["en-US", "en-GB", "ja", "zh-Hans", "ar-SA", "ar-SA-u-nu-latn"]
4966
5338
  },
4967
5339
  "Composition": {
4968
5340
  "type": "object",