@openpresentation/opf 0.32.1 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/README.md +9 -0
  2. package/dist/browser.js +22 -21
  3. package/dist/catalog-refs-CoIrOdAw.d.ts +937 -0
  4. package/dist/{catalog-schemas-LdqOPebq.d.ts → catalog-schemas-FjLRPtjB.d.ts} +10 -4
  5. package/dist/{chart-data-oIZQlFGi.d.ts → chart-data-B_k-WTex.d.ts} +7 -4
  6. package/dist/{chunk-PB7ME64J.js → chunk-244OPLAV.js} +1 -1
  7. package/dist/{chunk-IT7FQKED.js → chunk-2HX4BGAS.js} +6 -6
  8. package/dist/{chunk-2E6CDYL2.js → chunk-36DLVJGW.js} +19 -16
  9. package/dist/{chunk-XQO2CT6Q.js → chunk-3THGTDL2.js} +2 -2
  10. package/dist/{chunk-CLRYHWQN.js → chunk-42JBXJKW.js} +187 -25
  11. package/dist/chunk-BLCDUM7B.js +7 -0
  12. package/dist/{chunk-NVAJASOD.js → chunk-CJVKOJ6B.js} +10195 -2036
  13. package/dist/{chunk-XFHXQCXL.js → chunk-DQ7QYOUV.js} +99 -13
  14. package/dist/{chunk-NEJ32O7X.js → chunk-F6BXO4AI.js} +1 -1
  15. package/dist/{chunk-OXLA4HXQ.js → chunk-FAXO3SUE.js} +1196 -313
  16. package/dist/{chunk-J63CIRIV.js → chunk-FIQMAIZV.js} +4 -4
  17. package/dist/{chunk-PJSPHHRK.js → chunk-FK5XG742.js} +3 -16
  18. package/dist/{chunk-HKUV7NEN.js → chunk-HHVQ2SDT.js} +1 -1
  19. package/dist/{chunk-SZFO3MAJ.js → chunk-HUGVYHZ2.js} +4 -4
  20. package/dist/{chunk-LEF4X4KI.js → chunk-LCT5ZV3Q.js} +2400 -222
  21. package/dist/chunk-NLJFNCZ4.js +1560 -0
  22. package/dist/{chunk-GM7WFPGG.js → chunk-PRXZD2II.js} +6 -1
  23. package/dist/{chunk-YFJIIIOL.js → chunk-QGJVOPLG.js} +3 -3
  24. package/dist/{chunk-F7DN33UL.js → chunk-QGTJF7HV.js} +16 -14
  25. package/dist/{chunk-ONVFUVQ5.js → chunk-RUV7CCE6.js} +136 -31
  26. package/dist/{chunk-SW676APJ.js → chunk-U7TYSPYM.js} +2 -2
  27. package/dist/chunk-UJZN2ZH6.js +1 -0
  28. package/dist/chunk-VDZXNNZF.js +221 -0
  29. package/dist/{chunk-UJSAR6GF.js → chunk-W4DYDRV2.js} +21 -0
  30. package/dist/chunk-WCPDN7AY.js +642 -0
  31. package/dist/{chunk-BBVW5ZC2.js → chunk-WMFT5R7I.js} +2 -2
  32. package/dist/{chunk-AQEAZDL2.js → chunk-XJUMFH33.js} +2 -1
  33. package/dist/{composition-Ds6WHyO7.d.ts → composition-CvtvgBDE.d.ts} +2783 -873
  34. package/dist/composition.d.ts +4 -3
  35. package/dist/composition.js +3 -2
  36. package/dist/{conversion-CdzrTxib.d.ts → conversion-B_5AKTYQ.d.ts} +39 -10
  37. package/dist/conversion-CMBGOTAC.js +25 -0
  38. package/dist/convert.d.ts +5 -4
  39. package/dist/convert.js +17 -13
  40. package/dist/data.d.ts +2 -2
  41. package/dist/data.js +4 -3
  42. package/dist/{deck-report-CKDNQ2t4.d.ts → deck-report-BVlQZ42f.d.ts} +3 -3
  43. package/dist/deck.d.ts +7 -6
  44. package/dist/deck.js +13 -12
  45. package/dist/diagram-engine-eager.js +6 -2
  46. package/dist/diagram-engine-lazy.js +14 -1
  47. package/dist/diagram-plantuml-XRZ6VAOL.js +3 -0
  48. package/dist/diff.js +6 -5
  49. package/dist/docs.js +88 -52
  50. package/dist/examples.js +28745 -18393
  51. package/dist/font-policy.js +2 -2
  52. package/dist/format.js +3 -3
  53. package/dist/ids.js +6 -5
  54. package/dist/index.d.ts +19 -16
  55. package/dist/index.js +37 -26
  56. package/dist/markdown.d.ts +3 -2
  57. package/dist/markdown.js +10 -9
  58. package/dist/node-engine.d.ts +44 -11
  59. package/dist/node-engine.js +47 -28
  60. package/dist/{pagination-DRZ_JNFY.d.ts → pagination-CZQQYk7L.d.ts} +22 -4
  61. package/dist/pagination.d.ts +5 -4
  62. package/dist/pagination.js +6 -5
  63. package/dist/patch.js +5 -4
  64. package/dist/precompiled.js +3 -3
  65. package/dist/{presentation-DnD7mfmf.d.ts → presentation-s9262acV.d.ts} +1172 -208
  66. package/dist/repo-readme.js +2 -2
  67. package/dist/schema-engine-ajv.js +2 -2
  68. package/dist/schema-engine-precompiled.js +3 -3
  69. package/dist/schema.d.ts +3 -3
  70. package/dist/schema.js +5 -4
  71. package/dist/schemas.d.ts +56 -4
  72. package/dist/schemas.js +2 -2
  73. package/dist/shape-catalog.d.ts +98 -0
  74. package/dist/shape-catalog.js +302 -0
  75. package/dist/shape-engine-eager.js +9 -0
  76. package/dist/shape-engine-lazy.js +12 -0
  77. package/dist/shape-engine-module-N74FCHGY.js +3 -0
  78. package/dist/shape-geometry.d.ts +126 -0
  79. package/dist/shape-geometry.js +2 -0
  80. package/dist/source.d.ts +10 -5
  81. package/dist/source.js +12 -11
  82. package/dist/spec/README.md +1 -1
  83. package/dist/spec/reference/engine-vocabularies.json +135 -0
  84. package/dist/spec/reference/font-policy.json +3 -16
  85. package/dist/spec/reference/preset-geometry.json +10699 -0
  86. package/dist/spec/reference/preset-geometry.schema.json +126 -0
  87. package/dist/spec/schemas/catalog-index.schema.json +1 -0
  88. package/dist/spec/schemas/chart-type.schema.json +4 -4
  89. package/dist/spec/schemas/icon-set.schema.json +75 -0
  90. package/dist/spec/schemas/layout.schema.json +82 -23
  91. package/dist/spec/schemas/opf.schema.json +1616 -296
  92. package/dist/spec/schemas/theme.schema.json +11 -5
  93. package/dist/spec-files.d.ts +1 -1
  94. package/dist/spec-files.js +2 -2
  95. package/dist/symbol-font-encodings.js +1 -1
  96. package/dist/types.d.ts +83 -71
  97. package/dist/{validation-types-DxyYPebs.d.ts → validation-types-CYbsUuZ9.d.ts} +8 -5
  98. package/dist/validator.d.ts +35 -7
  99. package/dist/validator.js +5 -4
  100. package/dist/yaml.d.ts +3 -2
  101. package/dist/yaml.js +9 -8
  102. package/package.json +22 -6
  103. package/dist/catalog-refs-kAefsZWT.d.ts +0 -129
  104. package/dist/chunk-DGS47ONG.js +0 -1
  105. package/dist/conversion-5FUDQPED.js +0 -24
@@ -206,6 +206,10 @@
206
206
  "$ref": "#/$defs/Assets",
207
207
  "description": "Optional reusable asset registry for images, data files, videos, documents, fonts, and other resources referenced elsewhere in the deck via 'asset:<id>' strings."
208
208
  },
209
+ "icons": {
210
+ "$ref": "#/$defs/Icons",
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
+ },
209
213
  "catalogs": {
210
214
  "$ref": "#/$defs/Catalogs",
211
215
  "description": "The catalog records this document embeds, grouped by the catalog they came from: 'default' (the catalog bare ids come from), 'custom' (records the document defines itself) and any number of named catalogs ('acme', referenced as 'acme:<id>'). A saved document embeds every record it references, so it renders the same with no catalog registered. See Catalogs."
@@ -269,8 +273,107 @@
269
273
  }
270
274
  ]
271
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
+ },
272
374
  "Audience": {
273
375
  "type": "object",
376
+ "additionalProperties": false,
274
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.",
275
378
  "anyOf": [
276
379
  { "required": ["id"] },
@@ -333,6 +436,7 @@
333
436
  },
334
437
  "Purpose": {
335
438
  "type": "object",
439
+ "additionalProperties": false,
336
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.",
337
441
  "anyOf": [
338
442
  { "required": ["id"] },
@@ -384,6 +488,7 @@
384
488
  },
385
489
  "Language": {
386
490
  "type": "object",
491
+ "additionalProperties": false,
387
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'.",
388
493
  "required": ["bcp47"],
389
494
  "not": { "required": ["id"] },
@@ -411,7 +516,7 @@
411
516
  "direction": {
412
517
  "type": "string",
413
518
  "enum": ["ltr", "rtl"],
414
- "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."
415
520
  },
416
521
  "script": {
417
522
  "type": "string",
@@ -443,6 +548,7 @@
443
548
  },
444
549
  "Tone": {
445
550
  "type": "object",
551
+ "additionalProperties": false,
446
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.",
447
553
  "anyOf": [
448
554
  { "required": ["id"] },
@@ -495,6 +601,7 @@
495
601
  },
496
602
  "Organization": {
497
603
  "type": "object",
604
+ "additionalProperties": false,
498
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.",
499
606
  "required": ["id", "name"],
500
607
  "properties": {
@@ -562,6 +669,7 @@
562
669
  },
563
670
  "Speaker": {
564
671
  "type": "object",
672
+ "additionalProperties": false,
565
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.",
566
674
  "required": ["id", "name"],
567
675
  "properties": {
@@ -646,6 +754,7 @@
646
754
  },
647
755
  "Design": {
648
756
  "type": "object",
757
+ "additionalProperties": false,
649
758
  "description": "Visual design system applied to the presentation; individual slides may override fields via Slide.design.",
650
759
  "properties": {
651
760
  "theme": {
@@ -710,7 +819,7 @@
710
819
  },
711
820
  { "type": "boolean", "const": false }
712
821
  ],
713
- "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.",
714
823
  "examples": ["var:organization.logo.wordmark", "var:organization.beta.logo", false]
715
824
  },
716
825
  "watermark": {
@@ -728,7 +837,7 @@
728
837
  { "$ref": "#/$defs/HeaderFooter" }
729
838
  ],
730
839
  "description": "Repeated header furniture rendered outside the main slide content. Use false to suppress an inherited header.",
731
- "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" } }]
732
841
  },
733
842
  "footer": {
734
843
  "oneOf": [
@@ -738,18 +847,18 @@
738
847
  "description": "Repeated footer furniture rendered outside the main slide content. Use false to suppress an inherited footer.",
739
848
  "examples": [
740
849
  false,
741
- { "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}}" } }
742
851
  ]
743
852
  },
744
853
  "titleAlignment": {
745
854
  "type": "string",
746
- "enum": ["left", "center", "right"],
747
- "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."
748
857
  },
749
858
  "contentAlignment": {
750
859
  "type": "string",
751
- "enum": ["left", "center", "right"],
752
- "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."
753
862
  },
754
863
  "contentBox": {
755
864
  "type": "boolean",
@@ -758,12 +867,12 @@
758
867
  "contentDirection": {
759
868
  "type": "string",
760
869
  "enum": ["horizontal", "vertical"],
761
- "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."
762
871
  },
763
872
  "chartPrimary": {
764
873
  "type": "string",
765
- "enum": ["none", "top", "bottom", "left", "right"],
766
- "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."
767
876
  },
768
877
  "imageFit": {
769
878
  "type": "string",
@@ -778,18 +887,25 @@
778
887
  "listStyle": {
779
888
  "type": "string",
780
889
  "enum": ["stack", "rows"],
781
- "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."
782
891
  },
783
892
  "mirror": {
784
893
  "type": "boolean",
785
- "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."
786
895
  }
787
896
  }
788
897
  },
789
898
  "ColorScheme": {
790
899
  "type": "object",
900
+ "additionalProperties": false,
791
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'.",
792
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
+ },
793
909
  "id": {
794
910
  "$ref": "#/$defs/CatalogReference",
795
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.",
@@ -894,6 +1010,7 @@
894
1010
  },
895
1011
  "FontScheme": {
896
1012
  "type": "object",
1013
+ "additionalProperties": false,
897
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'.",
898
1015
  "properties": {
899
1016
  "id": {
@@ -994,6 +1111,7 @@
994
1111
  },
995
1112
  "Dimensions": {
996
1113
  "type": "object",
1114
+ "additionalProperties": false,
997
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.",
998
1116
  "properties": {
999
1117
  "preset": {
@@ -1029,22 +1147,78 @@
1029
1147
  },
1030
1148
  "ColorRef": {
1031
1149
  "anyOf": [
1032
- { "$ref": "#/$defs/HexColor" },
1150
+ {
1151
+ "$ref": "#/$defs/HexColor"
1152
+ },
1033
1153
  {
1034
1154
  "type": "string",
1035
- "enum": [
1036
- "accent1", "accent2", "accent3", "accent4", "accent5", "accent6",
1037
- "dark1", "dark2", "light1", "light2", "hyperlink", "followedHyperlink",
1038
- "primary", "secondary", "accent", "background", "surface", "surfaceAlt", "text", "textSecondary"
1039
- ]
1155
+ "enum": ["accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "dark1", "dark2", "light1", "light2", "hyperlink", "followedHyperlink", "primary", "secondary", "accent", "background", "surface", "surfaceAlt", "text", "textSecondary"]
1040
1156
  },
1041
1157
  {
1042
1158
  "type": "string",
1043
1159
  "pattern": "^var:[a-z][a-z0-9-]*$"
1160
+ },
1161
+ {
1162
+ "$ref": "#/$defs/ColorTransform"
1163
+ }
1164
+ ],
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.",
1166
+ "examples": [
1167
+ "#0F4C81",
1168
+ "accent2",
1169
+ "text",
1170
+ "var:risk",
1171
+ {
1172
+ "color": "accent1",
1173
+ "lighten": 0.4
1174
+ },
1175
+ {
1176
+ "color": "text",
1177
+ "darken": 0.25
1178
+ }
1179
+ ]
1180
+ },
1181
+ "ColorTransform": {
1182
+ "type": "object",
1183
+ "additionalProperties": false,
1184
+ "required": ["color"],
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.",
1186
+ "properties": {
1187
+ "color": {
1188
+ "$ref": "#/$defs/ColorRef",
1189
+ "description": "The base color: any ColorRef."
1190
+ },
1191
+ "lighten": {
1192
+ "type": "number",
1193
+ "minimum": 0,
1194
+ "maximum": 1,
1195
+ "description": "Share of the way to white, 0 to 1. 0.4 is PowerPoint's \"Lighter 40%\"."
1196
+ },
1197
+ "darken": {
1198
+ "type": "number",
1199
+ "minimum": 0,
1200
+ "maximum": 1,
1201
+ "description": "Share of the way to black, 0 to 1. 0.25 is PowerPoint's \"Darker 25%\"."
1202
+ }
1203
+ },
1204
+ "oneOf": [
1205
+ {
1206
+ "required": ["lighten"]
1207
+ },
1208
+ {
1209
+ "required": ["darken"]
1044
1210
  }
1045
1211
  ],
1046
- "description": "A color value or reference, enforced on styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors. Three 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\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.",
1047
- "examples": ["#0F4C81", "accent2", "text", "var:risk"]
1212
+ "examples": [
1213
+ {
1214
+ "color": "accent1",
1215
+ "lighten": 0.4
1216
+ },
1217
+ {
1218
+ "color": "#0F4C81",
1219
+ "darken": 0.25
1220
+ }
1221
+ ]
1048
1222
  },
1049
1223
  "Variables": {
1050
1224
  "type": "object",
@@ -1488,6 +1662,7 @@
1488
1662
  },
1489
1663
  "ThemeBackground": {
1490
1664
  "type": "object",
1665
+ "additionalProperties": false,
1491
1666
  "description": "Theme-controlled PowerPoint slide background. The slot is resolved through the active color scheme and remains theme-aware.",
1492
1667
  "required": ["type", "slot"],
1493
1668
  "properties": {
@@ -1498,11 +1673,18 @@
1498
1673
  },
1499
1674
  "slot": {
1500
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."
1501
1682
  }
1502
1683
  }
1503
1684
  },
1504
1685
  "SolidBackground": {
1505
1686
  "type": "object",
1687
+ "additionalProperties": false,
1506
1688
  "description": "Fixed solid slide background fill.",
1507
1689
  "required": ["type", "color"],
1508
1690
  "properties": {
@@ -1526,6 +1708,7 @@
1526
1708
  },
1527
1709
  "GradientBackground": {
1528
1710
  "type": "object",
1711
+ "additionalProperties": false,
1529
1712
  "description": "Fixed gradient slide background fill.",
1530
1713
  "required": ["type", "gradient"],
1531
1714
  "properties": {
@@ -1541,7 +1724,9 @@
1541
1724
  },
1542
1725
  "gradient": {
1543
1726
  "type": "object",
1544
- "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"],
1545
1730
  "properties": {
1546
1731
  "angle": {
1547
1732
  "type": "number",
@@ -1552,7 +1737,7 @@
1552
1737
  "minItems": 2,
1553
1738
  "description": "Ordered list of color stops along the gradient. A gradient needs at least two stops.",
1554
1739
  "items": {
1555
- "type": "object",
1740
+ "type": "object", "additionalProperties": false,
1556
1741
  "description": "Color stop along the gradient.",
1557
1742
  "required": ["color", "position"],
1558
1743
  "properties": {
@@ -1589,7 +1774,7 @@
1589
1774
  "tone": {
1590
1775
  "type": "string",
1591
1776
  "enum": ["dark", "light"],
1592
- "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."
1593
1778
  },
1594
1779
  "type": {
1595
1780
  "type": "string",
@@ -1635,12 +1820,19 @@
1635
1820
  { "$ref": "#/$defs/Overlay" },
1636
1821
  { "const": false, "description": "No overlay and no automatic scrim: the picture shows as it is behind the text." }
1637
1822
  ]
1823
+ },
1824
+ "textPlacement": {
1825
+ "type": "string",
1826
+ "enum": ["top-start", "top-center", "middle-start", "middle-center", "bottom-start", "bottom-center", "panel"],
1827
+ "description": "Where a cover's or section's heading group goes on this picture: the top, middle or bottom of its area, start-aligned or centered, or 'panel' (a start-side column on the background color; needs no overlay key). Absent: core picks the calmest place when the host measured the picture (SlideComposition.pictureText).",
1828
+ "examples": ["top-start", "panel"]
1638
1829
  }
1639
1830
  },
1640
1831
  "examples": [
1641
1832
  { "type": "image", "src": "asset:cover-photo" },
1642
1833
  { "type": "image", "src": "./images/harbour.jpg", "alt": "Container ships at dawn", "focus": { "x": 0.5, "y": 0.7 }, "overlay": { "color": "dark1", "opacity": 0.4 } },
1643
- { "type": "image", "src": "asset:texture", "overlay": false }
1834
+ { "type": "image", "src": "asset:texture", "overlay": false },
1835
+ { "type": "image", "src": "asset:city-night", "tone": "dark", "textPlacement": "top-start" }
1644
1836
  ]
1645
1837
  },
1646
1838
  "ImageFocus": {
@@ -1672,8 +1864,8 @@
1672
1864
  },
1673
1865
  "edge": {
1674
1866
  "type": "string",
1675
- "enum": ["top", "bottom", "left", "right"],
1676
- "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."
1677
1869
  },
1678
1870
  "size": {
1679
1871
  "type": "number",
@@ -1691,125 +1883,589 @@
1691
1883
  "type": "object",
1692
1884
  "additionalProperties": false,
1693
1885
  "required": ["edge"],
1694
- "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.",
1695
1887
  "properties": {
1696
1888
  "edge": {
1697
1889
  "type": "string",
1698
- "enum": ["left", "right", "top", "bottom"],
1890
+ "enum": ["start", "end", "top", "bottom"],
1699
1891
  "description": "The slide edge the image bleeds to."
1700
1892
  },
1701
1893
  "size": {
1702
1894
  "type": "number",
1703
1895
  "minimum": 0.1,
1704
1896
  "maximum": 0.9,
1705
- "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."
1706
1898
  },
1707
1899
  "inset": {
1708
1900
  "type": "boolean",
1709
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."
1710
1902
  }
1711
1903
  },
1712
- "examples": [{ "edge": "left", "size": 0.45 }, { "edge": "right", "size": 0.4, "inset": true }]
1713
- },
1714
- "ImageBorder": {
1715
- "type": "object",
1716
- "additionalProperties": false,
1717
- "required": ["color", "width"],
1718
- "description": "Solid line along the image frame's shape, centered on the outline with a miter join, like a native picture line. A thick dark border on a rounded portrait frame gives a device bezel.",
1719
- "properties": {
1720
- "color": {
1721
- "$ref": "#/$defs/ColorRef",
1722
- "description": "Line color: a hex color, a color-scheme slot or role name, or a 'var:<id>' variable reference."
1723
- },
1724
- "width": {
1725
- "type": "number",
1726
- "minimum": 0,
1727
- "maximum": 64,
1728
- "description": "Line width in reference pixels at a 720-pixel short edge. 0 removes the line."
1729
- }
1730
- }
1904
+ "examples": [{ "edge": "start", "size": 0.45 }, { "edge": "end", "size": 0.4, "inset": true }]
1731
1905
  },
1732
- "ImageRecolor": {
1733
- "oneOf": [
1906
+ "Stroke": {
1907
+ "anyOf": [
1734
1908
  {
1735
1909
  "type": "string",
1736
- "const": "grayscale",
1737
- "description": "Replace each pixel with its luminance, exported as native a:grayscl."
1910
+ "const": "none",
1911
+ "description": "No line (a:ln with a:noFill), also on a shape whose style would draw one."
1738
1912
  },
1739
1913
  {
1740
1914
  "type": "object",
1741
1915
  "additionalProperties": false,
1742
- "required": ["dark", "light"],
1743
1916
  "properties": {
1744
- "dark": {
1917
+ "color": {
1745
1918
  "$ref": "#/$defs/ColorRef",
1746
- "description": "Color at luminance 0."
1919
+ "description": "Line color: any ColorRef (eight-digit hex keeps its alpha). Default the shape style's line color, or the slide's neutral line on a picture."
1747
1920
  },
1748
- "light": {
1749
- "$ref": "#/$defs/ColorRef",
1750
- "description": "Color at luminance 1."
1921
+ "gradient": {
1922
+ "$ref": "#/$defs/Gradient",
1923
+ "description": "A gradient line instead of a solid color (a:ln/a:gradFill)."
1924
+ },
1925
+ "width": {
1926
+ "type": "number",
1927
+ "minimum": 0,
1928
+ "maximum": 64,
1929
+ "description": "Line width in reference pixels at a 720-pixel short edge. 0 removes the line. Default 4/3 (1 point, PowerPoint's default line) on a shape, 2 on a picture."
1930
+ },
1931
+ "dash": {
1932
+ "anyOf": [
1933
+ {
1934
+ "type": "string",
1935
+ "enum": ["solid", "dot", "dash", "longDash", "dashDot", "longDashDot", "longDashDotDot", "sysDot", "sysDash", "sysDashDot", "sysDashDotDot"],
1936
+ "description": "DrawingML preset dash (a:prstDash). Default solid."
1937
+ },
1938
+ {
1939
+ "type": "array",
1940
+ "minItems": 2,
1941
+ "maxItems": 20,
1942
+ "items": {
1943
+ "type": "number",
1944
+ "exclusiveMinimum": 0,
1945
+ "maximum": 100
1946
+ },
1947
+ "description": "A custom dash (a:custDash): dash and gap lengths in stroke widths, alternating, for example [4, 2]. An odd count repeats."
1948
+ }
1949
+ ],
1950
+ "description": "Dash pattern: a preset name or an array of dash and gap lengths in stroke widths."
1951
+ },
1952
+ "cap": {
1953
+ "type": "string",
1954
+ "enum": ["flat", "round", "square"],
1955
+ "description": "Line cap (a:ln cap flat, rnd, sq). Default flat."
1956
+ },
1957
+ "join": {
1958
+ "type": "string",
1959
+ "enum": ["miter", "round", "bevel"],
1960
+ "description": "Line join (a:miter, a:round, a:bevel). Default miter, PowerPoint's default line join."
1961
+ },
1962
+ "miterLimit": {
1963
+ "type": "number",
1964
+ "minimum": 1,
1965
+ "maximum": 100,
1966
+ "description": "Miter join limit, as a multiple of the stroke width (a:miter lim). Default 8. Ignored by round and bevel joins."
1967
+ },
1968
+ "compound": {
1969
+ "type": "string",
1970
+ "enum": ["single", "double", "thickThin", "thinThick", "triple"],
1971
+ "description": "Compound line (a:ln cmpd sng, dbl, thickThin, thinThick, tri). Default single."
1972
+ },
1973
+ "align": {
1974
+ "type": "string",
1975
+ "enum": ["center", "inside"],
1976
+ "description": "Where the line sits on the outline (a:ln algn ctr or in). Default center. PowerPoint draws inside-aligned lines only on closed outlines."
1977
+ },
1978
+ "start": {
1979
+ "$ref": "#/$defs/Arrowhead",
1980
+ "description": "Arrowhead at the start of an open path (a:headEnd)."
1981
+ },
1982
+ "end": {
1983
+ "$ref": "#/$defs/Arrowhead",
1984
+ "description": "Arrowhead at the end of an open path (a:tailEnd)."
1985
+ },
1986
+ "sketch": {
1987
+ "type": "string",
1988
+ "enum": ["curved", "freehand", "scribble"],
1989
+ "description": "Hand-drawn look (PowerPoint's Sketched line, ask:lineSketchStyleProps): curved, freehand or scribble. OPF computes the sketched outline from a seed and both engines draw it: the preview strokes it and the PPTX stores it, which PowerPoint draws as stored, so the two match. A stroked path's fill follows the sketched outline too. PowerPoint versions before 2021 draw the plain line."
1751
1990
  }
1752
- },
1753
- "description": "Duotone: map each pixel's luminance linearly from dark to light, exported as native a:duotone."
1991
+ }
1754
1992
  }
1755
1993
  ],
1756
- "description": "Color treatment for the image pixels. Luminance uses Rec. 601 weights (0.299, 0.587, 0.114) on sRGB values."
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.",
1995
+ "examples": [
1996
+ "none",
1997
+ {
1998
+ "color": "accent1",
1999
+ "width": 2
2000
+ },
2001
+ {
2002
+ "color": "text",
2003
+ "width": 1.5,
2004
+ "dash": "dash",
2005
+ "end": {
2006
+ "type": "triangle"
2007
+ }
2008
+ },
2009
+ {
2010
+ "color": "#0F172A",
2011
+ "width": 12,
2012
+ "join": "round"
2013
+ }
2014
+ ]
1757
2015
  },
1758
- "PatternBackground": {
2016
+ "Arrowhead": {
1759
2017
  "type": "object",
1760
- "description": "Fixed pattern slide background fill.",
1761
- "required": ["type", "pattern"],
2018
+ "additionalProperties": false,
2019
+ "description": "An arrowhead at one end of an open path or a line preset (DrawingML a:headEnd at the start, a:tailEnd at the end). Closed outlines have no ends, so arrowheads draw only on open paths such as arc, line or a custom path that is not closed.",
1762
2020
  "properties": {
1763
2021
  "type": {
1764
2022
  "type": "string",
1765
- "const": "pattern",
1766
- "description": "Fixed pattern background fill."
2023
+ "enum": ["none", "triangle", "stealth", "diamond", "oval", "arrow"],
2024
+ "description": "Arrowhead kind, DrawingML's ST_LineEndType. Default 'triangle' when the object is given."
1767
2025
  },
1768
- "pattern": {
1769
- "type": "object",
1770
- "description": "Pattern fill definition.",
1771
- "required": ["preset"],
1772
- "properties": {
1773
- "preset": {
1774
- "type": "string",
1775
- "description": "Pattern preset or engine-defined pattern id. DrawingML preset names (ECMA-376 ST_PresetPatternVal, for example pct5, ltHorz, wdUpDiag) are portable: PPTX export writes them as native pattern fills and import returns the same name. Engine-defined ids are renderer-specific; the legacy preview id diagStripe remains accepted and exports as wdUpDiag.",
1776
- "examples": ["pct5", "ltHorz", "wdUpDiag"]
1777
- },
1778
- "foregroundColor": {
1779
- "$ref": "#/$defs/ColorRef",
1780
- "description": "Foreground color for the pattern: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).",
1781
- "examples": ["#0F172A"]
1782
- },
1783
- "backgroundColor": {
1784
- "$ref": "#/$defs/ColorRef",
1785
- "description": "Background color behind the pattern: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).",
1786
- "examples": ["#FFFFFF"]
1787
- }
1788
- }
2026
+ "width": {
2027
+ "type": "string",
2028
+ "enum": ["small", "medium", "large"],
2029
+ "description": "Arrowhead width relative to the stroke width (2, 3 or 5 stroke widths). Default medium."
1789
2030
  },
1790
- "opacity": {
1791
- "type": "number",
1792
- "minimum": 0,
1793
- "maximum": 1,
1794
- "description": "Background opacity from 0 (fully transparent) to 1 (fully opaque)."
2031
+ "length": {
2032
+ "type": "string",
2033
+ "enum": ["small", "medium", "large"],
2034
+ "description": "Arrowhead length relative to the stroke width (2, 3 or 5 stroke widths). Default medium."
1795
2035
  }
1796
- }
2036
+ },
2037
+ "examples": [
2038
+ {
2039
+ "type": "triangle"
2040
+ },
2041
+ {
2042
+ "type": "stealth",
2043
+ "width": "large",
2044
+ "length": "large"
2045
+ }
2046
+ ]
1797
2047
  },
1798
- "OrganizationLogo": {
2048
+ "Gradient": {
1799
2049
  "type": "object",
1800
- "description": "An organization's logo in up to four shapes. Each shape is a path or Asset, or { onLight, onDark } for the two backgrounds. A missing shape falls back to full, and full to the first defined of wordmark, stacked and icon; within a shape a missing onLight or onDark uses the other. Shapes are placed with slide-scoped references such as 'var:organization.logo.icon'.",
1801
2050
  "additionalProperties": false,
1802
- "minProperties": 1,
2051
+ "required": ["stops"],
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.",
1803
2053
  "properties": {
1804
- "full": {
1805
- "$ref": "#/$defs/LogoSource",
1806
- "description": "The full logo (lockup): mark and name side by side. Drawn on cover and section slides, and placed by 'var:organization.logo'."
2054
+ "type": {
2055
+ "type": "string",
2056
+ "enum": ["linear", "radial", "rectangle", "shape"],
2057
+ "description": "linear runs along 'angle'; radial spreads from the center as a circle, rectangle as a rectangle and shape along the shape's own outline (a:path circle, rect, shape). Default linear."
1807
2058
  },
1808
- "stacked": {
1809
- "$ref": "#/$defs/LogoSource",
1810
- "description": "The stacked lockup: mark above the name, for portrait or square slots. Placed by 'var:organization.logo.stacked'."
2059
+ "angle": {
2060
+ "type": "number",
2061
+ "description": "Linear gradients only: angle in degrees (0 = left to right, 90 = top to bottom). Default 90."
1811
2062
  },
1812
- "icon": {
2063
+ "stops": {
2064
+ "type": "array",
2065
+ "minItems": 2,
2066
+ "description": "Ordered color stops; at least two. A radial, rectangle or shape gradient runs from the center (position 0) to the outline (position 1).",
2067
+ "items": {
2068
+ "type": "object",
2069
+ "additionalProperties": false,
2070
+ "required": ["color", "position"],
2071
+ "properties": {
2072
+ "color": {
2073
+ "$ref": "#/$defs/ColorRef",
2074
+ "description": "Stop color: any ColorRef (eight-digit hex keeps its alpha)."
2075
+ },
2076
+ "position": {
2077
+ "type": "number",
2078
+ "minimum": 0,
2079
+ "maximum": 1,
2080
+ "description": "Stop position, 0 to 1."
2081
+ }
2082
+ }
2083
+ }
2084
+ }
2085
+ },
2086
+ "examples": [
2087
+ {
2088
+ "type": "linear",
2089
+ "angle": 90,
2090
+ "stops": [
2091
+ {
2092
+ "color": "accent1",
2093
+ "position": 0
2094
+ },
2095
+ {
2096
+ "color": {
2097
+ "color": "accent1",
2098
+ "darken": 0.5
2099
+ },
2100
+ "position": 1
2101
+ }
2102
+ ]
2103
+ }
2104
+ ]
2105
+ },
2106
+ "Pattern": {
2107
+ "type": "object",
2108
+ "additionalProperties": false,
2109
+ "required": ["preset"],
2110
+ "description": "A two-color pattern fill (the background pattern object), DrawingML a:pattFill.",
2111
+ "properties": {
2112
+ "preset": {
2113
+ "type": "string",
2114
+ "description": "DrawingML pattern preset (ECMA-376 ST_PresetPatternVal), for example pct5, ltHorz, wdUpDiag, smGrid or dotDmnd.",
2115
+ "examples": ["pct20", "ltUpDiag", "smGrid"]
2116
+ },
2117
+ "foregroundColor": {
2118
+ "$ref": "#/$defs/ColorRef",
2119
+ "description": "Pattern color. Default the shape style's fill color."
2120
+ },
2121
+ "backgroundColor": {
2122
+ "$ref": "#/$defs/ColorRef",
2123
+ "description": "Color behind the pattern. Default the slide background."
2124
+ }
2125
+ }
2126
+ },
2127
+ "ShapeFill": {
2128
+ "anyOf": [
2129
+ {
2130
+ "type": "string",
2131
+ "const": "none",
2132
+ "description": "No fill (a:noFill)."
2133
+ },
2134
+ {
2135
+ "$ref": "#/$defs/ColorRef",
2136
+ "description": "A solid fill (a:solidFill): any ColorRef; eight-digit hex keeps its alpha."
2137
+ },
2138
+ {
2139
+ "type": "object",
2140
+ "additionalProperties": false,
2141
+ "required": ["gradient"],
2142
+ "properties": {
2143
+ "gradient": {
2144
+ "$ref": "#/$defs/Gradient"
2145
+ }
2146
+ },
2147
+ "description": "A gradient fill (a:gradFill)."
2148
+ },
2149
+ {
2150
+ "type": "object",
2151
+ "additionalProperties": false,
2152
+ "required": ["pattern"],
2153
+ "properties": {
2154
+ "pattern": {
2155
+ "$ref": "#/$defs/Pattern"
2156
+ }
2157
+ },
2158
+ "description": "A pattern fill (a:pattFill)."
2159
+ }
2160
+ ],
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).",
2162
+ "examples": [
2163
+ "accent2",
2164
+ "none",
2165
+ {
2166
+ "color": "accent1",
2167
+ "lighten": 0.6
2168
+ },
2169
+ {
2170
+ "gradient": {
2171
+ "type": "radial",
2172
+ "stops": [
2173
+ {
2174
+ "color": "light1",
2175
+ "position": 0
2176
+ },
2177
+ {
2178
+ "color": "accent1",
2179
+ "position": 1
2180
+ }
2181
+ ]
2182
+ }
2183
+ },
2184
+ {
2185
+ "pattern": {
2186
+ "preset": "ltUpDiag",
2187
+ "foregroundColor": "accent1"
2188
+ }
2189
+ }
2190
+ ]
2191
+ },
2192
+ "ShapePreset": {
2193
+ "type": "string",
2194
+ "enum": ["line", "lineInv", "triangle", "rtTriangle", "rect", "diamond", "parallelogram", "trapezoid", "nonIsoscelesTrapezoid", "pentagon", "hexagon", "heptagon", "octagon", "decagon", "dodecagon", "star4", "star5", "star6", "star7", "star8", "star10", "star12", "star16", "star24", "star32", "roundRect", "round1Rect", "round2SameRect", "round2DiagRect", "snipRoundRect", "snip1Rect", "snip2SameRect", "snip2DiagRect", "plaque", "ellipse", "teardrop", "homePlate", "chevron", "pieWedge", "pie", "blockArc", "donut", "noSmoking", "rightArrow", "leftArrow", "upArrow", "downArrow", "stripedRightArrow", "notchedRightArrow", "bentUpArrow", "leftRightArrow", "upDownArrow", "leftUpArrow", "leftRightUpArrow", "quadArrow", "leftArrowCallout", "rightArrowCallout", "upArrowCallout", "downArrowCallout", "leftRightArrowCallout", "upDownArrowCallout", "quadArrowCallout", "bentArrow", "uturnArrow", "circularArrow", "leftCircularArrow", "leftRightCircularArrow", "curvedRightArrow", "curvedLeftArrow", "curvedUpArrow", "curvedDownArrow", "swooshArrow", "cube", "can", "lightningBolt", "heart", "sun", "moon", "smileyFace", "irregularSeal1", "irregularSeal2", "foldedCorner", "bevel", "frame", "halfFrame", "corner", "diagStripe", "chord", "arc", "leftBracket", "rightBracket", "leftBrace", "rightBrace", "bracketPair", "bracePair", "straightConnector1", "bentConnector2", "bentConnector3", "bentConnector4", "bentConnector5", "curvedConnector2", "curvedConnector3", "curvedConnector4", "curvedConnector5", "callout1", "callout2", "callout3", "accentCallout1", "accentCallout2", "accentCallout3", "borderCallout1", "borderCallout2", "borderCallout3", "accentBorderCallout1", "accentBorderCallout2", "accentBorderCallout3", "wedgeRectCallout", "wedgeRoundRectCallout", "wedgeEllipseCallout", "cloudCallout", "cloud", "ribbon", "ribbon2", "ellipseRibbon", "ellipseRibbon2", "leftRightRibbon", "verticalScroll", "horizontalScroll", "wave", "doubleWave", "plus", "flowChartProcess", "flowChartDecision", "flowChartInputOutput", "flowChartPredefinedProcess", "flowChartInternalStorage", "flowChartDocument", "flowChartMultidocument", "flowChartTerminator", "flowChartPreparation", "flowChartManualInput", "flowChartManualOperation", "flowChartConnector", "flowChartPunchedCard", "flowChartPunchedTape", "flowChartSummingJunction", "flowChartOr", "flowChartCollate", "flowChartSort", "flowChartExtract", "flowChartMerge", "flowChartOfflineStorage", "flowChartOnlineStorage", "flowChartMagneticTape", "flowChartMagneticDisk", "flowChartMagneticDrum", "flowChartDisplay", "flowChartDelay", "flowChartAlternateProcess", "flowChartOffpageConnector", "actionButtonBlank", "actionButtonHome", "actionButtonHelp", "actionButtonInformation", "actionButtonForwardNext", "actionButtonBackPrevious", "actionButtonEnd", "actionButtonBeginning", "actionButtonReturn", "actionButtonDocument", "actionButtonSound", "actionButtonMovie", "gear6", "gear9", "funnel", "mathPlus", "mathMinus", "mathMultiply", "mathDivide", "mathEqual", "mathNotEqual", "cornerTabs", "squareTabs", "plaqueTabs", "chartX", "chartStar", "chartPlus"],
2195
+ "description": "A DrawingML preset geometry (ECMA-376 ST_ShapeType, all 187), with PowerPoint's own names: rect, roundRect, ellipse, triangle, rightArrow, chevron, wedgeRectCallout, flowChartDecision and the rest. docs/shapes.md lists them with their default frames and adjust values.",
2196
+ "examples": ["rect", "roundRect", "ellipse", "chevron", "rightArrow", "wedgeRectCallout", "flowChartDecision"]
2197
+ },
2198
+ "ShapePath": {
2199
+ "anyOf": [
2200
+ {
2201
+ "type": "string",
2202
+ "minLength": 1,
2203
+ "description": "SVG path data in a 0 to 1 box: x and y run from 0 (left, top) to 1 (right, bottom) of the block, for example \"M0 0 L1 0 L0.5 1 Z\"."
2204
+ },
2205
+ {
2206
+ "type": "object",
2207
+ "additionalProperties": false,
2208
+ "required": ["d", "viewBox"],
2209
+ "properties": {
2210
+ "d": {
2211
+ "type": "string",
2212
+ "minLength": 1,
2213
+ "description": "SVG path data in the viewBox."
2214
+ },
2215
+ "viewBox": {
2216
+ "type": "string",
2217
+ "pattern": "^\\s*-?[0-9.]+([ ,]+-?[0-9.]+){3}\\s*$",
2218
+ "description": "The path's own box, 'minX minY width height' as in SVG; it is stretched to the block."
2219
+ }
2220
+ },
2221
+ "description": "SVG path data with its own viewBox, for example an icon outline drawn on a 24 by 24 grid."
2222
+ }
2223
+ ],
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).",
2225
+ "examples": [
2226
+ "M0 0 L1 0 L0.5 1 Z",
2227
+ {
2228
+ "d": "M12 2 L22 22 L2 22 Z",
2229
+ "viewBox": "0 0 24 24"
2230
+ }
2231
+ ]
2232
+ },
2233
+ "ShapePadding": {
2234
+ "anyOf": [
2235
+ {
2236
+ "type": "number",
2237
+ "minimum": 0,
2238
+ "maximum": 200,
2239
+ "description": "The same inset on every side, in reference pixels at a 720-pixel short edge."
2240
+ },
2241
+ {
2242
+ "$ref": "#/$defs/TableCellPadding"
2243
+ }
2244
+ ],
2245
+ "description": "Text insets inside the shape's text rectangle (a:bodyPr lIns, tIns, rIns, bIns), in reference pixels at a 720-pixel short edge: one number for every side or { top, right, bottom, left }. Default 9.6 left and right, 4.8 top and bottom, PowerPoint's 0.1 and 0.05 inch."
2246
+ },
2247
+ "Shadow": {
2248
+ "anyOf": [
2249
+ {
2250
+ "type": "string",
2251
+ "enum": ["soft", "hard", "perspective"],
2252
+ "description": "A preset outer shadow."
2253
+ },
2254
+ {
2255
+ "type": "object",
2256
+ "additionalProperties": false,
2257
+ "properties": {
2258
+ "color": {
2259
+ "$ref": "#/$defs/ColorRef",
2260
+ "description": "Shadow color. Default black."
2261
+ },
2262
+ "opacity": {
2263
+ "type": "number",
2264
+ "minimum": 0,
2265
+ "maximum": 1,
2266
+ "description": "Shadow opacity."
2267
+ },
2268
+ "blur": {
2269
+ "type": "number",
2270
+ "minimum": 0,
2271
+ "maximum": 200,
2272
+ "description": "Blur radius in reference pixels at a 720-pixel short edge."
2273
+ },
2274
+ "distance": {
2275
+ "type": "number",
2276
+ "minimum": 0,
2277
+ "maximum": 200,
2278
+ "description": "Offset from the shape in reference pixels at a 720-pixel short edge."
2279
+ },
2280
+ "angle": {
2281
+ "type": "number",
2282
+ "minimum": 0,
2283
+ "maximum": 360,
2284
+ "description": "Direction of the offset in degrees (0 = right, 90 = down)."
2285
+ },
2286
+ "size": {
2287
+ "type": "number",
2288
+ "minimum": 0.1,
2289
+ "maximum": 2,
2290
+ "description": "Shadow size relative to the shape (1 = the shape's own size)."
2291
+ }
2292
+ }
2293
+ }
2294
+ ],
2295
+ "description": "Outer shadow (a:outerShdw): a preset name (soft, hard, perspective) or { color, opacity, blur, distance, angle, size }."
2296
+ },
2297
+ "InnerShadow": {
2298
+ "type": "object",
2299
+ "additionalProperties": false,
2300
+ "description": "Inner shadow (a:innerShdw).",
2301
+ "properties": {
2302
+ "color": {
2303
+ "$ref": "#/$defs/ColorRef",
2304
+ "description": "Shadow color. Default black."
2305
+ },
2306
+ "opacity": {
2307
+ "type": "number",
2308
+ "minimum": 0,
2309
+ "maximum": 1,
2310
+ "description": "Shadow opacity."
2311
+ },
2312
+ "blur": {
2313
+ "type": "number",
2314
+ "minimum": 0,
2315
+ "maximum": 200,
2316
+ "description": "Blur radius in reference pixels at a 720-pixel short edge."
2317
+ },
2318
+ "distance": {
2319
+ "type": "number",
2320
+ "minimum": 0,
2321
+ "maximum": 200,
2322
+ "description": "Offset in reference pixels at a 720-pixel short edge."
2323
+ },
2324
+ "angle": {
2325
+ "type": "number",
2326
+ "minimum": 0,
2327
+ "maximum": 360,
2328
+ "description": "Direction of the offset in degrees (0 = right, 90 = down)."
2329
+ }
2330
+ }
2331
+ },
2332
+ "Glow": {
2333
+ "type": "object",
2334
+ "additionalProperties": false,
2335
+ "description": "Glow around the outline (a:glow).",
2336
+ "properties": {
2337
+ "color": {
2338
+ "$ref": "#/$defs/ColorRef",
2339
+ "description": "Glow color. Default accent."
2340
+ },
2341
+ "opacity": {
2342
+ "type": "number",
2343
+ "minimum": 0,
2344
+ "maximum": 1,
2345
+ "description": "Glow opacity."
2346
+ },
2347
+ "radius": {
2348
+ "type": "number",
2349
+ "minimum": 0,
2350
+ "maximum": 200,
2351
+ "description": "Glow size in reference pixels at a 720-pixel short edge."
2352
+ }
2353
+ }
2354
+ },
2355
+ "Reflection": {
2356
+ "type": "object",
2357
+ "additionalProperties": false,
2358
+ "description": "Reflection below the shape (a:reflection).",
2359
+ "properties": {
2360
+ "opacity": {
2361
+ "type": "number",
2362
+ "minimum": 0,
2363
+ "maximum": 1,
2364
+ "description": "Opacity where the reflection starts."
2365
+ },
2366
+ "size": {
2367
+ "type": "number",
2368
+ "minimum": 0,
2369
+ "maximum": 1,
2370
+ "description": "Share of the shape's height reflected."
2371
+ },
2372
+ "distance": {
2373
+ "type": "number",
2374
+ "minimum": 0,
2375
+ "maximum": 200,
2376
+ "description": "Gap between the shape and its reflection in reference pixels at a 720-pixel short edge."
2377
+ },
2378
+ "blur": {
2379
+ "type": "number",
2380
+ "minimum": 0,
2381
+ "maximum": 200,
2382
+ "description": "Blur radius in reference pixels at a 720-pixel short edge."
2383
+ }
2384
+ }
2385
+ },
2386
+ "ImageRecolor": {
2387
+ "oneOf": [
2388
+ {
2389
+ "type": "string",
2390
+ "const": "grayscale",
2391
+ "description": "Replace each pixel with its luminance, exported as native a:grayscl."
2392
+ },
2393
+ {
2394
+ "type": "object",
2395
+ "additionalProperties": false,
2396
+ "required": ["dark", "light"],
2397
+ "properties": {
2398
+ "dark": {
2399
+ "$ref": "#/$defs/ColorRef",
2400
+ "description": "Color at luminance 0."
2401
+ },
2402
+ "light": {
2403
+ "$ref": "#/$defs/ColorRef",
2404
+ "description": "Color at luminance 1."
2405
+ }
2406
+ },
2407
+ "description": "Duotone: map each pixel's luminance linearly from dark to light, exported as native a:duotone."
2408
+ }
2409
+ ],
2410
+ "description": "Color treatment for the image pixels. Luminance uses Rec. 601 weights (0.299, 0.587, 0.114) on sRGB values."
2411
+ },
2412
+ "PatternBackground": {
2413
+ "type": "object",
2414
+ "additionalProperties": false,
2415
+ "description": "Fixed pattern slide background fill.",
2416
+ "required": ["type", "pattern"],
2417
+ "properties": {
2418
+ "type": {
2419
+ "type": "string",
2420
+ "const": "pattern",
2421
+ "description": "Fixed pattern background fill."
2422
+ },
2423
+ "pattern": {
2424
+ "type": "object",
2425
+ "additionalProperties": false,
2426
+ "description": "Pattern fill definition.",
2427
+ "required": ["preset"],
2428
+ "properties": {
2429
+ "preset": {
2430
+ "type": "string",
2431
+ "description": "Pattern preset or engine-defined pattern id. DrawingML preset names (ECMA-376 ST_PresetPatternVal, for example pct5, ltHorz, wdUpDiag) are portable: PPTX export writes them as native pattern fills and import returns the same name. Engine-defined ids are renderer-specific; the legacy preview id diagStripe remains accepted and exports as wdUpDiag.",
2432
+ "examples": ["pct5", "ltHorz", "wdUpDiag"]
2433
+ },
2434
+ "foregroundColor": {
2435
+ "$ref": "#/$defs/ColorRef",
2436
+ "description": "Foreground color for the pattern: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).",
2437
+ "examples": ["#0F172A"]
2438
+ },
2439
+ "backgroundColor": {
2440
+ "$ref": "#/$defs/ColorRef",
2441
+ "description": "Background color behind the pattern: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).",
2442
+ "examples": ["#FFFFFF"]
2443
+ }
2444
+ }
2445
+ },
2446
+ "opacity": {
2447
+ "type": "number",
2448
+ "minimum": 0,
2449
+ "maximum": 1,
2450
+ "description": "Background opacity from 0 (fully transparent) to 1 (fully opaque)."
2451
+ }
2452
+ }
2453
+ },
2454
+ "OrganizationLogo": {
2455
+ "type": "object",
2456
+ "description": "An organization's logo in up to four shapes. Each shape is a path or Asset, or { onLight, onDark } for the two backgrounds. A missing shape falls back to full, and full to the first defined of wordmark, stacked and icon; within a shape a missing onLight or onDark uses the other. Shapes are placed with slide-scoped references such as 'var:organization.logo.icon'.",
2457
+ "additionalProperties": false,
2458
+ "minProperties": 1,
2459
+ "properties": {
2460
+ "full": {
2461
+ "$ref": "#/$defs/LogoSource",
2462
+ "description": "The full logo (lockup): mark and name side by side. Drawn on cover and section slides, and placed by 'var:organization.logo'."
2463
+ },
2464
+ "stacked": {
2465
+ "$ref": "#/$defs/LogoSource",
2466
+ "description": "The stacked lockup: mark above the name, for portrait or square slots. Placed by 'var:organization.logo.stacked'."
2467
+ },
2468
+ "icon": {
1813
2469
  "$ref": "#/$defs/LogoSource",
1814
2470
  "description": "The mark or symbol without the name, for tight spaces such as header and footer zones and picture bullets. Placed by 'var:organization.logo.icon'."
1815
2471
  },
@@ -1875,25 +2531,26 @@
1875
2531
  },
1876
2532
  "HeaderFooter": {
1877
2533
  "type": "object",
1878
- "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.",
1879
2536
  "properties": {
1880
- "left": {
2537
+ "start": {
1881
2538
  "$ref": "#/$defs/HeaderFooterItem",
1882
- "description": "Left-aligned header/footer content."
2539
+ "description": "Content at the start edge, aligned to it."
1883
2540
  },
1884
2541
  "center": {
1885
2542
  "$ref": "#/$defs/HeaderFooterItem",
1886
2543
  "description": "Centered header/footer content."
1887
2544
  },
1888
- "right": {
2545
+ "end": {
1889
2546
  "$ref": "#/$defs/HeaderFooterItem",
1890
- "description": "Right-aligned header/footer content."
2547
+ "description": "Content at the end edge, aligned to it."
1891
2548
  }
1892
2549
  }
1893
2550
  },
1894
2551
  "HeaderFooterItem": {
1895
2552
  "type": "object",
1896
- "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.",
1897
2554
  "additionalProperties": false,
1898
2555
  "properties": {
1899
2556
  "text": {
@@ -1926,16 +2583,343 @@
1926
2583
  }
1927
2584
  }
1928
2585
  },
2586
+ "OverlayShape": {
2587
+ "type": "object",
2588
+ "additionalProperties": false,
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.",
2590
+ "properties": {
2591
+ "id": {
2592
+ "type": "string",
2593
+ "minLength": 1,
2594
+ "description": "Optional stable identifier, unique among slide, payload and overlay ids in the document. A connector names it in 'from' or 'to'.",
2595
+ "examples": ["badge-new", "callout-1"]
2596
+ },
2597
+ "x": {
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'."
2600
+ },
2601
+ "y": {
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."
2604
+ },
2605
+ "width": {
2606
+ "type": "number",
2607
+ "minimum": 0,
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."
2610
+ },
2611
+ "height": {
2612
+ "type": "number",
2613
+ "minimum": 0,
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."
2616
+ },
2617
+ "at": {
2618
+ "$ref": "#/$defs/OverlayAnchor"
2619
+ },
2620
+ "layer": {
2621
+ "type": "string",
2622
+ "enum": ["front", "back"],
2623
+ "description": "Overlay shapes only. front (the default) draws the shape over the slide: above the content and the furniture. back draws it behind the slide: above the background and the watermark, below the content and the furniture (a panel or band behind a block). Array order stacks the shapes within each layer. Connectors are always in front."
2624
+ },
2625
+ "connector": {
2626
+ "$ref": "#/$defs/Connector",
2627
+ "description": "Makes the entry a connector: what it joins and how it runs."
2628
+ },
2629
+ "shape": {
2630
+ "$ref": "#/$defs/ShapePreset",
2631
+ "description": "The preset geometry, as on a shape block. Default rect."
2632
+ },
2633
+ "path": {
2634
+ "$ref": "#/$defs/ShapePath",
2635
+ "description": "Custom geometry instead of a preset (a:custGeom), as on a shape block."
2636
+ },
2637
+ "adjust": {
2638
+ "type": "object",
2639
+ "propertyNames": { "pattern": "^[a-z][A-Za-z0-9]*$" },
2640
+ "additionalProperties": { "type": "number" },
2641
+ "description": "The preset's adjust handles (a:avLst) in OPF units, as on a shape block. On a connector, the adjust values of its connector preset (adj1 of an elbow or a curve between sites on one axis, a fraction of the frame's width), which replace the automatic route's, so a route made in PowerPoint is kept exactly.",
2642
+ "examples": [{ "adj": 0.25 }]
2643
+ },
2644
+ "fill": {
2645
+ "$ref": "#/$defs/ShapeFill",
2646
+ "description": "'none', a ColorRef, { gradient } or { pattern }. Default the style's fill."
2647
+ },
2648
+ "opacity": {
2649
+ "type": "number",
2650
+ "minimum": 0,
2651
+ "maximum": 1,
2652
+ "description": "The fill's opacity (a:alpha). Default 1."
2653
+ },
2654
+ "stroke": {
2655
+ "$ref": "#/$defs/Stroke",
2656
+ "description": "A shape's line along its outline (default the style's line), or a connector's line: color, width, dash, compound, sketch and arrowheads ('start' at 'from', 'end' at 'to'; default a 2-pixel line in the slide's text color with no arrowheads)."
2657
+ },
2658
+ "style": {
2659
+ "type": "string",
2660
+ "enum": ["none", "subtle", "moderate", "intense"],
2661
+ "description": "The theme shape style, as on a shape block. Default moderate."
2662
+ },
2663
+ "shadow": {
2664
+ "$ref": "#/$defs/Shadow",
2665
+ "description": "Outer shadow."
2666
+ },
2667
+ "innerShadow": {
2668
+ "$ref": "#/$defs/InnerShadow",
2669
+ "description": "Inner shadow."
2670
+ },
2671
+ "glow": {
2672
+ "$ref": "#/$defs/Glow",
2673
+ "description": "Glow."
2674
+ },
2675
+ "softEdge": {
2676
+ "type": "number",
2677
+ "minimum": 0,
2678
+ "maximum": 200,
2679
+ "description": "Soft edges (a:softEdge), radius in reference pixels at a 720-pixel short edge."
2680
+ },
2681
+ "reflection": {
2682
+ "$ref": "#/$defs/Reflection",
2683
+ "description": "Reflection."
2684
+ },
2685
+ "blur": {
2686
+ "type": "number",
2687
+ "minimum": 0,
2688
+ "maximum": 200,
2689
+ "description": "Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge."
2690
+ },
2691
+ "rotate": {
2692
+ "type": "number",
2693
+ "minimum": -360,
2694
+ "maximum": 360,
2695
+ "description": "Rotation in degrees, clockwise, about the shape's center (a:xfrm rot). Its connection sites turn with it."
2696
+ },
2697
+ "flip": {
2698
+ "type": "string",
2699
+ "enum": ["horizontal", "vertical", "both"],
2700
+ "description": "Mirror the geometry (a:xfrm flipH, flipV). The text is not mirrored."
2701
+ },
2702
+ "text": {
2703
+ "$ref": "#/$defs/ContentPayload/properties/text",
2704
+ "description": "Text inside the shape's text rectangle (a string or TextRun[]), fitted by OPF's measured fonts from the body size down to the readability floor and never below it."
2705
+ },
2706
+ "anchor": {
2707
+ "type": "string",
2708
+ "enum": ["top", "middle", "bottom"],
2709
+ "description": "Vertical placement of the text in the text rectangle (a:bodyPr anchor). Default middle."
2710
+ },
2711
+ "padding": {
2712
+ "$ref": "#/$defs/ShapePadding",
2713
+ "description": "Text insets inside the text rectangle."
2714
+ },
2715
+ "textDirection": {
2716
+ "type": "string",
2717
+ "enum": ["horizontal", "vertical", "vertical270", "stacked"],
2718
+ "description": "Text direction (a:bodyPr vert). Default horizontal."
2719
+ },
2720
+ "alt": {
2721
+ "type": "string",
2722
+ "description": "Alternative text (p:cNvPr descr). Without it the shape's text is what is read."
2723
+ },
2724
+ "decorative": {
2725
+ "type": "boolean",
2726
+ "description": "Mark the shape decorative (a16:decorative): screen readers skip it."
2727
+ },
2728
+ "hidden": {
2729
+ "type": "boolean",
2730
+ "description": "Keep the shape in the file but do not draw it (p:cNvPr hidden). A link on a hidden shape is a validation finding (opf/shape-link-hidden)."
2731
+ },
2732
+ "link": {
2733
+ "type": "string",
2734
+ "pattern": "^(https?://|mailto:|tel:)\\S+$",
2735
+ "description": "URL opened when the shape is clicked in a slide show (a:hlinkClick): an http(s) URL, a 'mailto:' address or a 'tel:' number.",
2736
+ "examples": ["https://acme.com/pricing"]
2737
+ },
2738
+ "extensions": {
2739
+ "type": "object",
2740
+ "description": "Custom data passthrough for agent workflows; ignored by the engine but preserved across read/write round-trips."
2741
+ }
2742
+ },
2743
+ "examples": [
2744
+ { "shape": "wedgeRectCallout", "text": "New this quarter", "x": 0.62, "y": 0.12, "width": 0.25, "height": 0.12, "style": "subtle" },
2745
+ { "id": "badge", "shape": "ellipse", "text": "3", "at": { "block": "team-photo", "edge": "top", "offset": -12 } },
2746
+ { "connector": { "from": "plan", "to": "build", "route": "elbow" }, "stroke": { "width": 2, "end": { "type": "triangle" } } }
2747
+ ]
2748
+ },
2749
+ "OverlayAnchor": {
2750
+ "type": "object",
2751
+ "additionalProperties": false,
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.",
2757
+ "properties": {
2758
+ "block": {
2759
+ "type": "string",
2760
+ "minLength": 1,
2761
+ "description": "The id of a block on this slide (a content payload or a group, at any depth)."
2762
+ },
2763
+ "edge": {
2764
+ "type": "string",
2765
+ "enum": [
2766
+ "top",
2767
+ "bottom",
2768
+ "start",
2769
+ "end",
2770
+ "center"
2771
+ ],
2772
+ "description": "The edge of the block the shape sits outside of, or its center."
2773
+ },
2774
+ "offset": {
2775
+ "type": "number",
2776
+ "minimum": -720,
2777
+ "maximum": 720,
2778
+ "description": "The gap between the block's edge and the shape, in reference pixels at a 720-pixel short edge; a negative offset overlaps the block. Default 0. Ignored for 'center'."
2779
+ },
2780
+ "width": {
2781
+ "type": "number",
2782
+ "exclusiveMinimum": 0,
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)."
2785
+ },
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": {
2799
+ "type": "number",
2800
+ "exclusiveMinimum": 0,
2801
+ "maximum": 1280,
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."
2829
+ }
2830
+ },
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
+ ]
2867
+ },
2868
+ "Connector": {
2869
+ "type": "object",
2870
+ "additionalProperties": false,
2871
+ "required": ["from", "to"],
2872
+ "description": "What a connector joins and how it runs. Each end attaches to a connection site of its shape: a preset's own sites (turned and flipped with the shape), or the four edge midpoints of a block that is not a shape (DrawingML's rect: 0 top, 1 left, 2 bottom, 3 right). Without 'fromSite' and 'toSite' core chooses the pair of sites that face each other with the shortest route.",
2873
+ "properties": {
2874
+ "from": {
2875
+ "type": "string",
2876
+ "minLength": 1,
2877
+ "description": "The id of the block or overlay shape on this slide the connector starts at. An id that is not on the slide is a finding (opf/connector-end-missing) and the connector is not drawn."
2878
+ },
2879
+ "to": {
2880
+ "type": "string",
2881
+ "minLength": 1,
2882
+ "description": "The id of the block or overlay shape on this slide the connector ends at."
2883
+ },
2884
+ "route": {
2885
+ "type": "string",
2886
+ "enum": ["straight", "elbow", "curved"],
2887
+ "description": "straight is one segment (straightConnector1); elbow runs horizontally and vertically (bentConnector3, bentConnector2 between perpendicular sites); curved is PowerPoint's curved connector (curvedConnector3, curvedConnector2 between perpendicular sites). Default straight."
2888
+ },
2889
+ "fromSite": {
2890
+ "type": "integer",
2891
+ "minimum": 0,
2892
+ "description": "The connection site index at 'from' (DrawingML's cxn idx), instead of the automatic choice. An index the shape does not have is a validation error."
2893
+ },
2894
+ "toSite": {
2895
+ "type": "integer",
2896
+ "minimum": 0,
2897
+ "description": "The connection site index at 'to', instead of the automatic choice."
2898
+ }
2899
+ },
2900
+ "examples": [{ "from": "plan", "to": "build", "route": "elbow" }, { "from": "a", "to": "b", "fromSite": 3, "toSite": 1 }]
2901
+ },
1929
2902
  "Slide": {
1930
2903
  "type": "object",
1931
- "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.",
1932
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
+ },
1933
2912
  "properties": {
1934
2913
  "id": {
1935
2914
  "type": "string",
1936
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.",
1937
2916
  "examples": ["s1", "cover", "problem-1", "ask"]
1938
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
+ },
1939
2923
  "type": {
1940
2924
  "type": "string",
1941
2925
  "enum": ["text", "list", "image", "chart", "table", "video", "code", "metric", "quote", "timeline", "diagram"],
@@ -1986,7 +2970,7 @@
1986
2970
  "items": { "$ref": "#/$defs/TextRun" }
1987
2971
  }
1988
2972
  ],
1989
- "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.",
1990
2974
  "examples": ["Intro", "Confidential", "Appendix"]
1991
2975
  },
1992
2976
  "text": {
@@ -2015,7 +2999,7 @@
2015
2999
  "examples": ["arabic", "roman-lower", { "style": "alpha-upper", "start": 3, "suffix": "paren" }, ["arabic", "alpha-lower", { "style": "roman-lower", "suffix": "paren-both" }]]
2016
3000
  },
2017
3001
  "image": {
2018
- "$ref": "#/$defs/Asset",
3002
+ "$ref": "#/$defs/ImagePayload",
2019
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'."
2020
3004
  },
2021
3005
  "video": {
@@ -2061,7 +3045,7 @@
2061
3045
  { "type": "string" },
2062
3046
  { "$ref": "#/$defs/Diagram" }
2063
3047
  ],
2064
- "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'."
2065
3049
  },
2066
3050
  "caption": {
2067
3051
  "$ref": "#/$defs/Caption",
@@ -2072,26 +3056,35 @@
2072
3056
  "items": { "$ref": "#/$defs/ContentPayload" },
2073
3057
  "description": "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks."
2074
3058
  },
3059
+ "shapes": {
3060
+ "type": "array",
3061
+ "items": { "$ref": "#/$defs/OverlayShape" },
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.",
3063
+ "examples": [[
3064
+ { "id": "note", "shape": "wedgeRectCallout", "text": "Launch", "x": 0.7, "y": 0.1, "width": 0.2, "height": 0.1 },
3065
+ { "connector": { "from": "plan", "to": "ship", "route": "elbow" }, "stroke": { "end": { "type": "triangle" } } }
3066
+ ]]
3067
+ },
2075
3068
  "design": {
2076
3069
  "$ref": "#/$defs/SlideDesign",
2077
3070
  "description": "Slide-level design applied on top of the deck-wide design."
2078
3071
  },
2079
- "left": {
3072
+ "start": {
2080
3073
  "$ref": "#/$defs/ContentPayload"
2081
3074
  },
2082
3075
  "center": {
2083
3076
  "$ref": "#/$defs/ContentPayload"
2084
3077
  },
2085
- "right": {
3078
+ "end": {
2086
3079
  "$ref": "#/$defs/ContentPayload"
2087
3080
  },
2088
- "left+center": {
3081
+ "start+center": {
2089
3082
  "$ref": "#/$defs/ContentPayload"
2090
3083
  },
2091
- "center+right": {
3084
+ "center+end": {
2092
3085
  "$ref": "#/$defs/ContentPayload"
2093
3086
  },
2094
- "left+center+right": {
3087
+ "start+center+end": {
2095
3088
  "$ref": "#/$defs/ContentPayload"
2096
3089
  },
2097
3090
  "top": {
@@ -2112,112 +3105,112 @@
2112
3105
  "top+middle+bottom": {
2113
3106
  "$ref": "#/$defs/ContentPayload"
2114
3107
  },
2115
- "top:left": {
3108
+ "top:start": {
2116
3109
  "$ref": "#/$defs/ContentPayload"
2117
3110
  },
2118
3111
  "top:center": {
2119
3112
  "$ref": "#/$defs/ContentPayload"
2120
3113
  },
2121
- "top:right": {
3114
+ "top:end": {
2122
3115
  "$ref": "#/$defs/ContentPayload"
2123
3116
  },
2124
- "top:left+center": {
3117
+ "top:start+center": {
2125
3118
  "$ref": "#/$defs/ContentPayload"
2126
3119
  },
2127
- "top:center+right": {
3120
+ "top:center+end": {
2128
3121
  "$ref": "#/$defs/ContentPayload"
2129
3122
  },
2130
- "top:left+center+right": {
3123
+ "top:start+center+end": {
2131
3124
  "$ref": "#/$defs/ContentPayload"
2132
3125
  },
2133
- "middle:left": {
3126
+ "middle:start": {
2134
3127
  "$ref": "#/$defs/ContentPayload"
2135
3128
  },
2136
3129
  "middle:center": {
2137
3130
  "$ref": "#/$defs/ContentPayload"
2138
3131
  },
2139
- "middle:right": {
3132
+ "middle:end": {
2140
3133
  "$ref": "#/$defs/ContentPayload"
2141
3134
  },
2142
- "middle:left+center": {
3135
+ "middle:start+center": {
2143
3136
  "$ref": "#/$defs/ContentPayload"
2144
3137
  },
2145
- "middle:center+right": {
3138
+ "middle:center+end": {
2146
3139
  "$ref": "#/$defs/ContentPayload"
2147
3140
  },
2148
- "middle:left+center+right": {
3141
+ "middle:start+center+end": {
2149
3142
  "$ref": "#/$defs/ContentPayload"
2150
3143
  },
2151
- "bottom:left": {
3144
+ "bottom:start": {
2152
3145
  "$ref": "#/$defs/ContentPayload"
2153
3146
  },
2154
3147
  "bottom:center": {
2155
3148
  "$ref": "#/$defs/ContentPayload"
2156
3149
  },
2157
- "bottom:right": {
3150
+ "bottom:end": {
2158
3151
  "$ref": "#/$defs/ContentPayload"
2159
3152
  },
2160
- "bottom:left+center": {
3153
+ "bottom:start+center": {
2161
3154
  "$ref": "#/$defs/ContentPayload"
2162
3155
  },
2163
- "bottom:center+right": {
3156
+ "bottom:center+end": {
2164
3157
  "$ref": "#/$defs/ContentPayload"
2165
3158
  },
2166
- "bottom:left+center+right": {
3159
+ "bottom:start+center+end": {
2167
3160
  "$ref": "#/$defs/ContentPayload"
2168
3161
  },
2169
- "top+middle:left": {
3162
+ "top+middle:start": {
2170
3163
  "$ref": "#/$defs/ContentPayload"
2171
3164
  },
2172
3165
  "top+middle:center": {
2173
3166
  "$ref": "#/$defs/ContentPayload"
2174
3167
  },
2175
- "top+middle:right": {
3168
+ "top+middle:end": {
2176
3169
  "$ref": "#/$defs/ContentPayload"
2177
3170
  },
2178
- "top+middle:left+center": {
3171
+ "top+middle:start+center": {
2179
3172
  "$ref": "#/$defs/ContentPayload"
2180
3173
  },
2181
- "top+middle:center+right": {
3174
+ "top+middle:center+end": {
2182
3175
  "$ref": "#/$defs/ContentPayload"
2183
3176
  },
2184
- "top+middle:left+center+right": {
3177
+ "top+middle:start+center+end": {
2185
3178
  "$ref": "#/$defs/ContentPayload"
2186
3179
  },
2187
- "middle+bottom:left": {
3180
+ "middle+bottom:start": {
2188
3181
  "$ref": "#/$defs/ContentPayload"
2189
3182
  },
2190
3183
  "middle+bottom:center": {
2191
3184
  "$ref": "#/$defs/ContentPayload"
2192
3185
  },
2193
- "middle+bottom:right": {
3186
+ "middle+bottom:end": {
2194
3187
  "$ref": "#/$defs/ContentPayload"
2195
3188
  },
2196
- "middle+bottom:left+center": {
3189
+ "middle+bottom:start+center": {
2197
3190
  "$ref": "#/$defs/ContentPayload"
2198
3191
  },
2199
- "middle+bottom:center+right": {
3192
+ "middle+bottom:center+end": {
2200
3193
  "$ref": "#/$defs/ContentPayload"
2201
3194
  },
2202
- "middle+bottom:left+center+right": {
3195
+ "middle+bottom:start+center+end": {
2203
3196
  "$ref": "#/$defs/ContentPayload"
2204
3197
  },
2205
- "top+middle+bottom:left": {
3198
+ "top+middle+bottom:start": {
2206
3199
  "$ref": "#/$defs/ContentPayload"
2207
3200
  },
2208
3201
  "top+middle+bottom:center": {
2209
3202
  "$ref": "#/$defs/ContentPayload"
2210
3203
  },
2211
- "top+middle+bottom:right": {
3204
+ "top+middle+bottom:end": {
2212
3205
  "$ref": "#/$defs/ContentPayload"
2213
3206
  },
2214
- "top+middle+bottom:left+center": {
3207
+ "top+middle+bottom:start+center": {
2215
3208
  "$ref": "#/$defs/ContentPayload"
2216
3209
  },
2217
- "top+middle+bottom:center+right": {
3210
+ "top+middle+bottom:center+end": {
2218
3211
  "$ref": "#/$defs/ContentPayload"
2219
3212
  },
2220
- "top+middle+bottom:left+center+right": {
3213
+ "top+middle+bottom:start+center+end": {
2221
3214
  "$ref": "#/$defs/ContentPayload"
2222
3215
  },
2223
3216
  "notes": {
@@ -2243,10 +3236,144 @@
2243
3236
  }
2244
3237
  }
2245
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
+ },
2246
3251
  "ContentPayload": {
2247
3252
  "type": "object",
2248
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.",
2249
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
+ },
2250
3377
  "properties": {
2251
3378
  "id": {
2252
3379
  "type": "string",
@@ -2260,14 +3387,13 @@
2260
3387
  "region": {
2261
3388
  "type": "string",
2262
3389
  "pattern": "^[a-z][a-z0-9-]*$",
2263
- "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.",
2264
3391
  "examples": ["notes", "metrics"]
2265
3392
  },
2266
3393
  "type": {
2267
3394
  "type": "string",
2268
- "enum": ["text", "list", "image", "chart", "table", "video", "code", "metric", "quote", "timeline",
2269
- "diagram", "group"],
2270
- "description": "Optional content kind. When omitted, engines infer the kind from the fields present."
3395
+ "enum": ["text", "list", "image", "chart", "table", "video", "code", "metric", "quote", "timeline", "diagram", "shape", "group"],
3396
+ "description": "Optional content kind. When omitted, engines infer the kind from the fields present: a block with 'shape' and no 'image', or with 'path', is a shape block."
2271
3397
  },
2272
3398
  "text": {
2273
3399
  "oneOf": [
@@ -2322,11 +3448,11 @@
2322
3448
  "maximum": 3
2323
3449
  }
2324
3450
  ],
2325
- "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, the largest allowed count shrinks towards minFontSize. 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'.",
2326
3452
  "examples": ["auto", 2]
2327
3453
  },
2328
3454
  "image": {
2329
- "$ref": "#/$defs/Asset",
3455
+ "$ref": "#/$defs/ImagePayload",
2330
3456
  "description": "Source for an image item.",
2331
3457
  "examples": [
2332
3458
  "https://cdn.acme.com/images/diagram.png",
@@ -2351,25 +3477,122 @@
2351
3477
  "description": "Image payloads only. Width-to-height ratio of the frame: the frame becomes the largest centered box with this ratio inside the block's region, for example 2.39 for a cinematic letterbox or 0.5 for a phone-shaped frame. shape 'circle' always uses 1."
2352
3478
  },
2353
3479
  "shape": {
3480
+ "$ref": "#/$defs/ShapePreset",
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.",
3482
+ "examples": ["roundRect", "chevron", "ellipse", "wedgeRectCallout"]
3483
+ },
3484
+ "stroke": {
3485
+ "$ref": "#/$defs/Stroke",
3486
+ "description": "Shape and image blocks. The line along the outline: a shape's outline or the picture frame's shape (renamed from the picture key 'border' in 0.33, no alias). Without it a shape takes its style's line; a picture has none."
3487
+ },
3488
+ "path": {
3489
+ "$ref": "#/$defs/ShapePath",
3490
+ "description": "Shape blocks only. Custom geometry instead of a preset (a:custGeom): SVG path data in a 0 to 1 box, or { d, viewBox }. A block with 'path' is a shape block."
3491
+ },
3492
+ "fill": {
3493
+ "$ref": "#/$defs/ShapeFill",
3494
+ "description": "Shape blocks only. 'none', a ColorRef, { gradient } or { pattern }. Default the style's fill."
3495
+ },
3496
+ "style": {
3497
+ "type": "string",
3498
+ "enum": ["none", "subtle", "moderate", "intense"],
3499
+ "description": "Shape blocks only. The theme shape style, as PowerPoint's shape styles (p:style with a:lnRef, a:fillRef, a:effectRef and a:fontRef): subtle is a light tint of accent1 with an accent1 line and dark text, moderate (the default) a solid accent1 fill with a darker line and light text, intense accent1 25% darker with no line, light bold text and the soft shadow. none draws nothing the author did not set. An explicit fill, stroke or effect wins over the style's."
3500
+ },
3501
+ "rotate": {
3502
+ "type": "number",
3503
+ "minimum": -360,
3504
+ "maximum": 360,
3505
+ "description": "Shape blocks only. Rotation in degrees, clockwise, about the shape's center (a:xfrm rot). Composition keeps the unrotated box; the rotated outline may reach past it."
3506
+ },
3507
+ "flip": {
3508
+ "type": "string",
3509
+ "enum": ["horizontal", "vertical", "both"],
3510
+ "description": "Shape blocks only. Mirror the geometry (a:xfrm flipH, flipV). The text is not mirrored."
3511
+ },
3512
+ "anchor": {
3513
+ "type": "string",
3514
+ "enum": ["top", "middle", "bottom"],
3515
+ "description": "Shape blocks only. Vertical placement of the text in the text rectangle (a:bodyPr anchor t, ctr, b). Default middle."
3516
+ },
3517
+ "padding": {
3518
+ "$ref": "#/$defs/ShapePadding",
3519
+ "description": "Shape blocks only. Text insets inside the text rectangle."
3520
+ },
3521
+ "textDirection": {
3522
+ "type": "string",
3523
+ "enum": ["horizontal", "vertical", "vertical270", "stacked"],
3524
+ "description": "Shape blocks only. Text direction (a:bodyPr vert horz, vert, vert270, wordArtVert): vertical turns the text 90 degrees clockwise, vertical270 270, stacked stacks the letters top to bottom. Default horizontal."
3525
+ },
3526
+ "alt": {
3527
+ "type": "string",
3528
+ "description": "Shape blocks only. Alternative text for screen readers (p:cNvPr descr). Without it a shape's text is what is read."
3529
+ },
3530
+ "decorative": {
3531
+ "type": "boolean",
3532
+ "description": "Shape blocks only. Mark the shape decorative (a16:decorative): screen readers skip it and the accessibility checker does not ask for alt text."
3533
+ },
3534
+ "hidden": {
3535
+ "type": "boolean",
3536
+ "description": "Shape blocks only. Keep the shape in the file but do not draw it (p:cNvPr hidden). Composition still gives it its room. A link on a hidden shape cannot be clicked and is a validation finding (opf/shape-link-hidden)."
3537
+ },
3538
+ "link": {
2354
3539
  "type": "string",
2355
- "enum": ["rectangle", "rounded", "circle", "hexagon"],
2356
- "description": "Image payloads only. Mask applied to the frame, exported as the picture's native preset geometry (rect, roundRect, ellipse, hexagon). 'circle' makes the frame square. Default 'rectangle'."
3540
+ "pattern": "^(https?://|mailto:|tel:)\\S+$",
3541
+ "description": "Shape blocks only. URL opened when the shape is clicked in a slide show (a:hlinkClick): an http(s) URL, a 'mailto:' address or a 'tel:' number.",
3542
+ "examples": ["https://acme.com/pricing"]
3543
+ },
3544
+ "shadow": {
3545
+ "$ref": "#/$defs/Shadow",
3546
+ "description": "Shape blocks only. Outer shadow."
3547
+ },
3548
+ "innerShadow": {
3549
+ "$ref": "#/$defs/InnerShadow",
3550
+ "description": "Shape blocks only. Inner shadow."
3551
+ },
3552
+ "glow": {
3553
+ "$ref": "#/$defs/Glow",
3554
+ "description": "Shape blocks only. Glow."
3555
+ },
3556
+ "softEdge": {
3557
+ "type": "number",
3558
+ "minimum": 0,
3559
+ "maximum": 200,
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."
2357
3561
  },
2358
- "cornerRadius": {
3562
+ "reflection": {
3563
+ "$ref": "#/$defs/Reflection",
3564
+ "description": "Shape blocks only. Reflection."
3565
+ },
3566
+ "blur": {
2359
3567
  "type": "number",
2360
3568
  "minimum": 0,
2361
- "maximum": 0.5,
2362
- "description": "Image payloads only. Corner radius for shape 'rounded' as a fraction of the frame's shorter side. Default 0.16667, PowerPoint's roundRect default."
3569
+ "maximum": 200,
3570
+ "description": "Shape blocks only. Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge."
2363
3571
  },
2364
- "border": {
2365
- "$ref": "#/$defs/ImageBorder",
2366
- "description": "Image payloads only. Line along the frame's shape."
3572
+ "adjust": {
3573
+ "type": "object",
3574
+ "propertyNames": {
3575
+ "pattern": "^[a-z][A-Za-z0-9]*$"
3576
+ },
3577
+ "additionalProperties": {
3578
+ "type": "number"
3579
+ },
3580
+ "description": "Shape and image blocks. The preset's adjust handles (a:avLst), named as DrawingML's guides (adj, adj1, adj2 ... and hexagon's vf): fractions of the shape's shorter side or of its size as the preset defines them, degrees for an angle, never DrawingML's 100000ths or 60000ths. roundRect's adj is the corner radius as a fraction of the shorter side (0.16667 by default, 0 to 0.5). An unknown name or a value out of the preset's range is a validation finding (opf/shape-adjust-unknown, opf/shape-adjust-range) and the preset's default is drawn.",
3581
+ "examples": [
3582
+ {
3583
+ "adj": 0.25
3584
+ },
3585
+ {
3586
+ "adj1": 0.5,
3587
+ "adj2": 0.35
3588
+ }
3589
+ ]
2367
3590
  },
2368
3591
  "opacity": {
2369
3592
  "type": "number",
2370
3593
  "minimum": 0,
2371
3594
  "maximum": 1,
2372
- "description": "Image payloads only. Picture opacity from 0 to 1, exported as a native alphaModFix. The border and overlay keep their own opacity. Default 1."
3595
+ "description": "Image and shape blocks. On an image: the picture's opacity, exported as a native alphaModFix; the stroke and overlay keep their own. On a shape: the fill's opacity (a:alpha on the fill color, multiplied with an eight-digit hex alpha); the stroke and text keep theirs. Default 1."
2373
3596
  },
2374
3597
  "recolor": {
2375
3598
  "$ref": "#/$defs/ImageRecolor",
@@ -2383,6 +3606,12 @@
2383
3606
  "$ref": "#/$defs/ImagePlacement",
2384
3607
  "description": "Image payloads only, and only on a top-level block (slides.N.blocks.I), at most one per edge. Bleeds the image to one slide edge; the headings and the other blocks compose in the rest of the slide."
2385
3608
  },
3609
+ "portrait": {
3610
+ "type": "string",
3611
+ "enum": ["avatar", "side", "top"],
3612
+ "description": "Image payloads only: how a person's picture is drawn in a team. A person is a group of a picture followed by a name (a list of one entry, whose description holds the role and a line, or a short text); a slide whose body is only people is a team. 'top' draws each picture across the top of its card at the card's width, 'side' beside the text at 40% of the card's width (on the logical start side), 'avatar' as the small picture over the name. Without it the engine chooses: 'top' for 2 to 4 people, 'side' for 5 or 6, the avatar for more or when a card is too narrow. The first person's value applies to the whole team, so the cards stay equal. A 'top' or 'side' picture covers its frame around `focus` (the upper third when none is given) in a rounded frame unless `shape` says otherwise; names, roles and lines keep their size, and a frame flatter than 4:3 falls back to the avatar. Ignored on a picture that is not a person's.",
3613
+ "examples": ["top", "side", "avatar"]
3614
+ },
2386
3615
  "video": {
2387
3616
  "$ref": "#/$defs/Asset",
2388
3617
  "description": "Source for a video item. Engines do not play video: the preview draws a placeholder (a play badge with the asset's title or source as its caption), and PPTX export draws the same placeholder as native shapes linked to an http(s) source, with no embedded media. Native playback is out of scope (docs/programs/release-readiness).",
@@ -2471,7 +3700,7 @@
2471
3700
  { "type": "string" },
2472
3701
  { "$ref": "#/$defs/Diagram" }
2473
3702
  ],
2474
- "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'.",
2475
3704
  "examples": [
2476
3705
  "flowchart LR\n A[Brief] --> B{Approved?}\n B -->|yes| C[Build]\n B -->|no| A",
2477
3706
  {
@@ -2500,13 +3729,21 @@
2500
3729
  "type": "boolean",
2501
3730
  "description": "true draws this block or group on the slide's emphasis surface: a contrasting card in its cell (a dark card on a light slide, an accent card on a dark one), from the deck's own scheme slots, with every text color on it at 4.5:1 or more against its fill. A slide has one emphasis surface: the first block or group with emphasis: true in reading order takes it, and any other is drawn without it (composition diagnostic emphasis-ignored). Without any, a slide's short last text block (60 characters or fewer) after longer blocks is drawn as a band at the foot of the body, and one of 30 or fewer after a lone long text as a pill right under that text; neither is drawn where it would cost another block its fitted size. Without any either, the second card of a before-and-after or problem-and-solution pair, or the one tier of a set marked recommended or most popular, takes the surface and the other cards of the pair or set are drawn on plain cards (read from the blocks' labels and short texts, never from ids). false keeps a block out of those automatic rules.",
2502
3731
  "examples": [true, false]
3732
+ },
3733
+ "icon": {
3734
+ "$ref": "#/$defs/IconReference",
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."
2503
3736
  }
2504
3737
  },
2505
3738
  "allOf": [
2506
3739
  {
2507
3740
  "if": {
2508
3741
  "required": ["type"],
2509
- "properties": { "type": { "const": "list" } }
3742
+ "properties": {
3743
+ "type": {
3744
+ "const": "list"
3745
+ }
3746
+ }
2510
3747
  },
2511
3748
  "then": {
2512
3749
  "required": ["items"]
@@ -2515,7 +3752,11 @@
2515
3752
  {
2516
3753
  "if": {
2517
3754
  "required": ["type"],
2518
- "properties": { "type": { "const": "image" } }
3755
+ "properties": {
3756
+ "type": {
3757
+ "const": "image"
3758
+ }
3759
+ }
2519
3760
  },
2520
3761
  "then": {
2521
3762
  "required": ["image"]
@@ -2524,7 +3765,11 @@
2524
3765
  {
2525
3766
  "if": {
2526
3767
  "required": ["type"],
2527
- "properties": { "type": { "const": "chart" } }
3768
+ "properties": {
3769
+ "type": {
3770
+ "const": "chart"
3771
+ }
3772
+ }
2528
3773
  },
2529
3774
  "then": {
2530
3775
  "required": ["chart"]
@@ -2533,7 +3778,11 @@
2533
3778
  {
2534
3779
  "if": {
2535
3780
  "required": ["type"],
2536
- "properties": { "type": { "const": "table" } }
3781
+ "properties": {
3782
+ "type": {
3783
+ "const": "table"
3784
+ }
3785
+ }
2537
3786
  },
2538
3787
  "then": {
2539
3788
  "required": ["table"]
@@ -2542,7 +3791,11 @@
2542
3791
  {
2543
3792
  "if": {
2544
3793
  "required": ["type"],
2545
- "properties": { "type": { "const": "video" } }
3794
+ "properties": {
3795
+ "type": {
3796
+ "const": "video"
3797
+ }
3798
+ }
2546
3799
  },
2547
3800
  "then": {
2548
3801
  "required": ["video"]
@@ -2551,7 +3804,11 @@
2551
3804
  {
2552
3805
  "if": {
2553
3806
  "required": ["type"],
2554
- "properties": { "type": { "const": "code" } }
3807
+ "properties": {
3808
+ "type": {
3809
+ "const": "code"
3810
+ }
3811
+ }
2555
3812
  },
2556
3813
  "then": {
2557
3814
  "required": ["code"]
@@ -2560,7 +3817,11 @@
2560
3817
  {
2561
3818
  "if": {
2562
3819
  "required": ["type"],
2563
- "properties": { "type": { "const": "metric" } }
3820
+ "properties": {
3821
+ "type": {
3822
+ "const": "metric"
3823
+ }
3824
+ }
2564
3825
  },
2565
3826
  "then": {
2566
3827
  "required": ["metric"]
@@ -2569,7 +3830,11 @@
2569
3830
  {
2570
3831
  "if": {
2571
3832
  "required": ["type"],
2572
- "properties": { "type": { "const": "quote" } }
3833
+ "properties": {
3834
+ "type": {
3835
+ "const": "quote"
3836
+ }
3837
+ }
2573
3838
  },
2574
3839
  "then": {
2575
3840
  "required": ["quote"]
@@ -2578,7 +3843,11 @@
2578
3843
  {
2579
3844
  "if": {
2580
3845
  "required": ["type"],
2581
- "properties": { "type": { "const": "timeline" } }
3846
+ "properties": {
3847
+ "type": {
3848
+ "const": "timeline"
3849
+ }
3850
+ }
2582
3851
  },
2583
3852
  "then": {
2584
3853
  "required": ["timeline"]
@@ -2587,7 +3856,11 @@
2587
3856
  {
2588
3857
  "if": {
2589
3858
  "required": ["type"],
2590
- "properties": { "type": { "const": "diagram" } }
3859
+ "properties": {
3860
+ "type": {
3861
+ "const": "diagram"
3862
+ }
3863
+ }
2591
3864
  },
2592
3865
  "then": {
2593
3866
  "required": ["diagram"]
@@ -2595,38 +3868,48 @@
2595
3868
  },
2596
3869
  {
2597
3870
  "if": {
2598
- "required": [
2599
- "type"
2600
- ],
3871
+ "required": ["type"],
2601
3872
  "properties": {
2602
3873
  "type": {
2603
- "const": "group"
3874
+ "const": "shape"
2604
3875
  }
2605
3876
  }
2606
3877
  },
2607
3878
  "then": {
2608
- "required": [
2609
- "blocks"
3879
+ "anyOf": [
3880
+ {
3881
+ "required": ["shape"]
3882
+ },
3883
+ {
3884
+ "required": ["path"]
3885
+ }
2610
3886
  ]
2611
3887
  }
2612
3888
  },
2613
3889
  {
2614
3890
  "if": {
2615
- "required": [
2616
- "composition"
2617
- ]
3891
+ "required": ["type"],
3892
+ "properties": {
3893
+ "type": {
3894
+ "const": "group"
3895
+ }
3896
+ }
2618
3897
  },
2619
3898
  "then": {
2620
- "required": [
2621
- "blocks"
2622
- ]
3899
+ "required": ["blocks"]
2623
3900
  }
2624
3901
  },
2625
3902
  {
2626
3903
  "if": {
2627
- "required": [
2628
- "blocks"
2629
- ]
3904
+ "required": ["composition"]
3905
+ },
3906
+ "then": {
3907
+ "required": ["blocks"]
3908
+ }
3909
+ },
3910
+ {
3911
+ "if": {
3912
+ "required": ["blocks"]
2630
3913
  },
2631
3914
  "then": {
2632
3915
  "properties": {
@@ -2637,64 +3920,40 @@
2637
3920
  "not": {
2638
3921
  "anyOf": [
2639
3922
  {
2640
- "required": [
2641
- "text"
2642
- ]
3923
+ "required": ["text"]
2643
3924
  },
2644
3925
  {
2645
- "required": [
2646
- "items"
2647
- ]
3926
+ "required": ["items"]
2648
3927
  },
2649
3928
  {
2650
- "required": [
2651
- "bullets"
2652
- ]
3929
+ "required": ["bullets"]
2653
3930
  },
2654
3931
  {
2655
- "required": [
2656
- "image"
2657
- ]
3932
+ "required": ["image"]
2658
3933
  },
2659
3934
  {
2660
- "required": [
2661
- "video"
2662
- ]
3935
+ "required": ["video"]
2663
3936
  },
2664
3937
  {
2665
- "required": [
2666
- "chart"
2667
- ]
3938
+ "required": ["chart"]
2668
3939
  },
2669
3940
  {
2670
- "required": [
2671
- "table"
2672
- ]
3941
+ "required": ["table"]
2673
3942
  },
2674
3943
  {
2675
- "required": [
2676
- "code"
2677
- ]
3944
+ "required": ["code"]
2678
3945
  },
2679
3946
  {
2680
- "required": [
2681
- "metric"
2682
- ]
3947
+ "required": ["metric"]
2683
3948
  },
2684
3949
  {
2685
- "required": [
2686
- "quote"
2687
- ]
3950
+ "required": ["quote"]
2688
3951
  },
2689
3952
  {
2690
- "required": [
2691
- "timeline"
2692
- ]
3953
+ "required": ["timeline"]
2693
3954
  },
2694
3955
  {
2695
- "required": [
2696
- "diagram"
2697
- ]
3956
+ "required": ["diagram"]
2698
3957
  }
2699
3958
  ]
2700
3959
  }
@@ -2702,21 +3961,15 @@
2702
3961
  },
2703
3962
  {
2704
3963
  "if": {
2705
- "required": [
2706
- "columns"
2707
- ]
3964
+ "required": ["columns"]
2708
3965
  },
2709
3966
  "then": {
2710
3967
  "anyOf": [
2711
3968
  {
2712
- "required": [
2713
- "items"
2714
- ]
3969
+ "required": ["items"]
2715
3970
  },
2716
3971
  {
2717
- "required": [
2718
- "bullets"
2719
- ]
3972
+ "required": ["bullets"]
2720
3973
  }
2721
3974
  ]
2722
3975
  }
@@ -2752,9 +4005,15 @@
2752
4005
  },
2753
4006
  "photo": {
2754
4007
  "$ref": "#/$defs/Asset",
2755
- "description": "Headshot of the attributed person, drawn as a circle beside the attribution and role lines (on the logical start side: left in a left-to-right deck, right in a right-to-left deck). Give it alt text (validate's opf/missing-alt-text rule checks it). A raster photograph works best; an SVG exports as its PNG raster because the circular mask is not confirmed on SVG pictures in PowerPoint. An unresolved source draws the ordinary image placeholder.",
4008
+ "description": "Headshot of the attributed person, drawn as a circle beside the attribution and role lines (on the logical start side: left in a left-to-right deck, right in a right-to-left deck), or as a tall portrait beside the quote (see `portrait`). Give it alt text (validate's opf/missing-alt-text rule checks it). A raster photograph works best; an SVG exports as its PNG raster because the mask is not confirmed on SVG pictures in PowerPoint. An unresolved source draws the ordinary image placeholder.",
2756
4009
  "examples": ["./assets/priya-raman.jpg", {"src": "asset:priya-raman", "alt": "Priya Raman"}]
2757
4010
  },
4011
+ "portrait": {
4012
+ "type": "string",
4013
+ "enum": ["avatar", "side"],
4014
+ "description": "How the `photo` is drawn. 'side' draws it as a tall picture at the start of the quote (about a quarter of its width, rounded, cropped around the upper third), the quote text beside it and centered against it; 'avatar' as the circle beside the attribution. Without it the engine draws 'side' when the quote is at least 640 px wide and every part of the quote keeps the size it has beside the avatar (the picture takes a narrower share where the text needs the room), and the avatar otherwise (several quotes side by side, a quote beside other blocks). Needs `photo`.",
4015
+ "examples": ["side", "avatar"]
4016
+ },
2758
4017
  "source": {
2759
4018
  "type": "string",
2760
4019
  "description": "Optional quote source, citation, or URL. Follows the attribution and role after ' - '.",
@@ -2843,30 +4102,34 @@
2843
4102
  "type": "string",
2844
4103
  "enum": ["positive", "negative", "neutral"],
2845
4104
  "description": "Whether the change is good news. Positive draws the trend arrow and the trend and delta text in green, negative in red and neutral in the neutral text colour, each kept at 4.5:1 contrast or more against the slide background. When absent the colour follows the trend: up is positive, down is negative and flat is neutral. Set it when the direction is not the verdict, for example positive on a falling churn, cost or latency trend. The arrow always keeps the direction of `trend`. Only the trend arrow and the trend and delta text take the colour, so sentiment has no visible effect on a metric without a trend."
4105
+ },
4106
+ "icon": {
4107
+ "$ref": "#/$defs/IconReference",
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."
2846
4109
  }
2847
4110
  }
2848
4111
  },
2849
4112
  "Diagram": {
2850
4113
  "type": "object",
2851
- "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 }.",
2852
4115
  "additionalProperties": false,
2853
4116
  "required": ["source"],
2854
4117
  "properties": {
2855
4118
  "source": {
2856
4119
  "type": "string",
2857
4120
  "minLength": 1,
2858
- "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.",
2859
- "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"]
2860
4123
  },
2861
4124
  "syntax": {
2862
4125
  "type": "string",
2863
- "enum": ["mermaid"],
4126
+ "enum": ["mermaid", "dot", "plantuml"],
2864
4127
  "default": "mermaid",
2865
- "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."
2866
4129
  },
2867
4130
  "alt": {
2868
4131
  "type": "string",
2869
- "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.",
2870
4133
  "examples": ["Ideas move from brief to approval; approved work is built, rejected work returns to the brief."]
2871
4134
  }
2872
4135
  }
@@ -2915,6 +4178,13 @@
2915
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.",
2916
4179
  "examples": ["2026-01", "Q2 2026", "Launch week"]
2917
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
+ },
2918
4188
  "what": {
2919
4189
  "type": "string",
2920
4190
  "description": "Short event label.",
@@ -2986,6 +4256,10 @@
2986
4256
  "minimum": 0,
2987
4257
  "description": "Zero-based nesting level for the list item."
2988
4258
  },
4259
+ "icon": {
4260
+ "$ref": "#/$defs/IconReference",
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."
4262
+ },
2989
4263
  "start": {
2990
4264
  "type": "integer",
2991
4265
  "minimum": 1,
@@ -3092,6 +4366,7 @@
3092
4366
  { "type": "string" },
3093
4367
  {
3094
4368
  "type": "object",
4369
+ "additionalProperties": false,
3095
4370
  "required": ["text"],
3096
4371
  "properties": {
3097
4372
  "text": {
@@ -3116,14 +4391,29 @@
3116
4391
  "description": "Whether the run is rendered with a strikethrough line."
3117
4392
  },
3118
4393
  "color": {
3119
- "type": "string",
3120
- "description": "Run text color. Documented forms: a hex string ('#RGB', '#RRGGBB', '#RRGGBBAA'), a color-scheme slot or role name resolved through the effective color scheme ('accent2', 'text'), or a 'var:<id>' reference into the top-level variables map. Prefer names over hex so runs survive re-theming. Any other string stays schema-valid so imported decks keep validating: validators warn and renderers fall back to the theme text color.",
3121
- "examples": ["#0F172A", "accent2", "var:risk"]
4394
+ "anyOf": [
4395
+ {
4396
+ "type": "string"
4397
+ },
4398
+ {
4399
+ "$ref": "#/$defs/ColorTransform"
4400
+ }
4401
+ ],
4402
+ "description": "Run text color. Documented forms: a hex string ('#RGB', '#RRGGBB', '#RRGGBBAA'), a color-scheme slot or role name resolved through the effective color scheme ('accent2', 'text'), or a 'var:<id>' reference into the top-level variables map. Prefer names over hex so runs survive re-theming. Or the lighter or darker object form of a ColorRef ({ \"color\": \"accent1\", \"darken\": 0.25 }). Any other string stays schema-valid so imported decks keep validating: validators warn and renderers fall back to the theme text color.",
4403
+ "examples": [
4404
+ "#0F172A",
4405
+ "accent2",
4406
+ "var:risk",
4407
+ {
4408
+ "color": "accent1",
4409
+ "darken": 0.25
4410
+ }
4411
+ ]
3122
4412
  },
3123
4413
  "fontSize": {
3124
4414
  "type": "number",
3125
4415
  "exclusiveMinimum": 0,
3126
- "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."
3127
4417
  },
3128
4418
  "fontFamily": {
3129
4419
  "type": "string",
@@ -3134,10 +4424,10 @@
3134
4424
  "type": "boolean",
3135
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."
3136
4426
  },
3137
- "lang": {
4427
+ "language": {
3138
4428
  "type": "string",
3139
4429
  "pattern": "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",
3140
- "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.",
3141
4431
  "examples": ["fr-FR", "ja-JP", "de"]
3142
4432
  },
3143
4433
  "link": {
@@ -3175,7 +4465,7 @@
3175
4465
  ]
3176
4466
  },
3177
4467
  "Caption": {
3178
- "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.",
3179
4469
  "oneOf": [
3180
4470
  { "type": "string" },
3181
4471
  { "type": "array", "items": { "$ref": "#/$defs/TextRun" } },
@@ -3198,8 +4488,8 @@
3198
4488
  },
3199
4489
  "align": {
3200
4490
  "type": "string",
3201
- "enum": ["left", "center", "right"],
3202
- "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."
3203
4493
  }
3204
4494
  }
3205
4495
  }
@@ -3235,6 +4525,42 @@
3235
4525
  }
3236
4526
  }
3237
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
+ },
3238
4564
  "Chart": {
3239
4565
  "type": "object",
3240
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]] } }`.",
@@ -3244,7 +4570,7 @@
3244
4570
  "type": {
3245
4571
  "type": "string",
3246
4572
  "enum": ["100pct-stacked-area", "100pct-stacked-bar", "100pct-stacked-column", "area", "bar", "box-and-whisker", "column", "combo", "doughnut", "filled-radar", "funnel", "histogram", "line", "line-with-markers", "pareto", "pie", "radar", "radar-with-markers", "scatter", "stacked-area", "stacked-bar", "stacked-column", "stacked-line", "stacked-line-with-markers", "treemap", "waterfall", "world"],
3247
- "description": "Chart type, an engine vocabulary validated directly (no catalog lookup): the chart types Aspose.Slides officially supports, plus 'combo' (clustered columns with line series, see 'line' and 'secondaryAxis'). Each engine maps a type to its own chart model; labels and picker groups are catalog display metadata.",
4573
+ "description": "Chart type, an engine vocabulary validated directly (no catalog lookup): the chart types OPF supports natively in its preview and PPTX export, plus 'combo' (clustered columns with line series, see 'line' and 'secondaryAxis'). Each engine maps a type to its own chart model; labels and picker groups are catalog display metadata.",
3248
4574
  "examples": ["column", "bar", "line", "pie", "doughnut", "area", "scatter", "radar", "waterfall", "funnel", "treemap", "stacked-column", "combo"]
3249
4575
  },
3250
4576
  "data": {
@@ -3271,24 +4597,29 @@
3271
4597
  "items": { "type": "string" },
3272
4598
  "minItems": 1,
3273
4599
  "uniqueItems": true,
3274
- "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.",
3275
4601
  "examples": [["Margin"]]
3276
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
+ },
3277
4608
  "axisTitles": {
3278
4609
  "$ref": "#/$defs/ChartAxisTitles",
3279
- "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."
3280
4611
  },
3281
4612
  "legend": {
3282
4613
  "type": "string",
3283
4614
  "enum": ["none", "top", "bottom", "left", "right"],
3284
- "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."
3285
4616
  },
3286
4617
  "dataLabels": {
3287
4618
  "oneOf": [
3288
4619
  { "type": "boolean" },
3289
4620
  { "$ref": "#/$defs/ChartDataLabels" }
3290
4621
  ],
3291
- "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."
3292
4623
  },
3293
4624
  "alt": {
3294
4625
  "type": "string",
@@ -3305,7 +4636,7 @@
3305
4636
  },
3306
4637
  "highlight": {
3307
4638
  "$ref": "#/$defs/ChartHighlight",
3308
- "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."
3309
4640
  }
3310
4641
  }
3311
4642
  },
@@ -3321,12 +4652,12 @@
3321
4652
  },
3322
4653
  "value": {
3323
4654
  "type": "string",
3324
- "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).",
3325
4656
  "examples": ["Revenue ($M)", "Customers"]
3326
4657
  },
3327
4658
  "secondary": {
3328
4659
  "type": "string",
3329
- "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'.",
3330
4661
  "examples": ["Margin (%)"]
3331
4662
  }
3332
4663
  }
@@ -3335,12 +4666,11 @@
3335
4666
  "type": "object",
3336
4667
  "additionalProperties": false,
3337
4668
  "minProperties": 1,
3338
- "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.",
3339
4670
  "properties": {
3340
4671
  "series": {
3341
4672
  "type": "array",
3342
4673
  "items": { "type": "string" },
3343
- "minItems": 1,
3344
4674
  "uniqueItems": true,
3345
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.",
3346
4676
  "examples": [["Revenue"]]
@@ -3348,7 +4678,6 @@
3348
4678
  "categories": {
3349
4679
  "type": "array",
3350
4680
  "items": { "type": "string" },
3351
- "minItems": 1,
3352
4681
  "uniqueItems": true,
3353
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.",
3354
4683
  "examples": [["Q3"]]
@@ -3371,7 +4700,7 @@
3371
4700
  "position": {
3372
4701
  "type": "string",
3373
4702
  "enum": ["auto", "center", "inside-end", "inside-base", "outside-end", "above", "below", "left", "right"],
3374
- "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."
3375
4704
  },
3376
4705
  "separator": {
3377
4706
  "type": "string",
@@ -3783,11 +5112,11 @@
3783
5112
  "align": {
3784
5113
  "type": "string",
3785
5114
  "enum": [
3786
- "left",
5115
+ "start",
3787
5116
  "center",
3788
- "right"
5117
+ "end"
3789
5118
  ],
3790
- "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."
3791
5120
  },
3792
5121
  "verticalAlign": {
3793
5122
  "type": "string",
@@ -3851,34 +5180,8 @@
3851
5180
  "description": "Text insets in reference pixels. Defaults: top 8, right 10, bottom 4, left 10."
3852
5181
  },
3853
5182
  "TableCellBorder": {
3854
- "type": "object",
3855
- "additionalProperties": false,
3856
- "required": [
3857
- "color",
3858
- "width"
3859
- ],
3860
- "properties": {
3861
- "color": {
3862
- "$ref": "#/$defs/ColorRef",
3863
- "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."
3864
- },
3865
- "width": {
3866
- "type": "number",
3867
- "minimum": 0,
3868
- "maximum": 32,
3869
- "description": "Border width in reference pixels; 0 removes this edge."
3870
- },
3871
- "dash": {
3872
- "type": "string",
3873
- "enum": [
3874
- "solid",
3875
- "dash",
3876
- "dot"
3877
- ],
3878
- "description": "Default solid."
3879
- }
3880
- },
3881
- "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'."
3882
5185
  },
3883
5186
  "Catalogs": {
3884
5187
  "type": "object",
@@ -3985,9 +5288,26 @@
3985
5288
  "tones": {
3986
5289
  "$ref": "#/$defs/CatalogRecords",
3987
5290
  "description": "Tone records keyed by id, each with the fields of https://openpresentation.org/schema/opf-tone/v1. Referenced from tone."
5291
+ },
5292
+ "iconSets": {
5293
+ "$ref": "#/$defs/CatalogRecords",
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>\"."
3988
5295
  }
3989
5296
  }
3990
5297
  },
5298
+ "IconReference": {
5299
+ "type": "string",
5300
+ "pattern": "^(?:[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*|[a-z][a-z0-9-]*|(?:asset:|https://|data:|\\./|\\.\\./)\\S+)$",
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.",
5302
+ "examples": ["lucide:truck", "tabler:rocket", "brand-mark", "asset:partner-logo"]
5303
+ },
5304
+ "Icons": {
5305
+ "type": "object",
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.",
5307
+ "propertyNames": { "pattern": "^[a-z][a-z0-9-]*$" },
5308
+ "additionalProperties": { "type": "string", "minLength": 1 },
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>" }]
5310
+ },
3991
5311
  "CatalogSource": {
3992
5312
  "type": "string",
3993
5313
  "pattern": "^(?:https://[^\\s]+|pkg:[^\\s]+)$",
@@ -4013,8 +5333,8 @@
4013
5333
  "LanguageTag": {
4014
5334
  "type": "string",
4015
5335
  "pattern": "^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$",
4016
- "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.",
4017
- "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"]
4018
5338
  },
4019
5339
  "Composition": {
4020
5340
  "type": "object",