@openpresentation/opf 0.33.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/browser.js +20 -19
- package/dist/catalog-refs-CoIrOdAw.d.ts +937 -0
- package/dist/{catalog-schemas-CQTM-G8p.d.ts → catalog-schemas-FjLRPtjB.d.ts} +1 -1
- package/dist/{chart-data-oIZQlFGi.d.ts → chart-data-B_k-WTex.d.ts} +7 -4
- package/dist/{chunk-XIOC6N5P.js → chunk-244OPLAV.js} +1 -1
- package/dist/{chunk-S5QRGMUQ.js → chunk-2HX4BGAS.js} +6 -6
- package/dist/{chunk-Y557TYML.js → chunk-36DLVJGW.js} +19 -16
- package/dist/{chunk-VKEYV3ZK.js → chunk-3THGTDL2.js} +2 -2
- package/dist/{chunk-ABWEUXLV.js → chunk-42JBXJKW.js} +117 -21
- package/dist/chunk-BLCDUM7B.js +7 -0
- package/dist/{chunk-OPVJLL7H.js → chunk-CJVKOJ6B.js} +11841 -8687
- package/dist/{chunk-BI4ERFAA.js → chunk-DQ7QYOUV.js} +48 -13
- package/dist/{chunk-KVHNDHVS.js → chunk-F6BXO4AI.js} +1 -1
- package/dist/{chunk-UK3J6FSU.js → chunk-FAXO3SUE.js} +858 -268
- package/dist/{chunk-XANW7MB7.js → chunk-FIQMAIZV.js} +4 -4
- package/dist/{chunk-PJSPHHRK.js → chunk-FK5XG742.js} +3 -16
- package/dist/{chunk-R6C6BQOG.js → chunk-HHVQ2SDT.js} +1 -1
- package/dist/{chunk-DAS75LGR.js → chunk-HUGVYHZ2.js} +4 -4
- package/dist/{chunk-QF5RSRXU.js → chunk-LCT5ZV3Q.js} +750 -199
- package/dist/chunk-NLJFNCZ4.js +1560 -0
- package/dist/{chunk-VSBZC2PR.js → chunk-QGJVOPLG.js} +3 -3
- package/dist/{chunk-E7WQHMCL.js → chunk-QGTJF7HV.js} +16 -14
- package/dist/{chunk-VMBLNCX2.js → chunk-RUV7CCE6.js} +117 -30
- package/dist/{chunk-YS333HLA.js → chunk-U7TYSPYM.js} +2 -2
- package/dist/chunk-UJZN2ZH6.js +1 -0
- package/dist/{chunk-IJXKVM4W.js → chunk-VDZXNNZF.js} +1 -1
- package/dist/{chunk-YYT6N7AI.js → chunk-WCPDN7AY.js} +1 -1
- package/dist/{chunk-QD6DPS7X.js → chunk-WMFT5R7I.js} +2 -2
- package/dist/{chunk-INIMUBSE.js → chunk-XJUMFH33.js} +1 -1
- package/dist/{composition-zMiIgzip.d.ts → composition-CvtvgBDE.d.ts} +1360 -1531
- package/dist/composition.d.ts +3 -3
- package/dist/composition.js +2 -1
- package/dist/{conversion-mNth9XKm.d.ts → conversion-B_5AKTYQ.d.ts} +25 -7
- package/dist/conversion-CMBGOTAC.js +25 -0
- package/dist/convert.d.ts +4 -4
- package/dist/convert.js +15 -11
- package/dist/data.d.ts +2 -2
- package/dist/data.js +3 -2
- package/dist/{deck-report-BSlRiR0_.d.ts → deck-report-BVlQZ42f.d.ts} +3 -3
- package/dist/deck.d.ts +6 -6
- package/dist/deck.js +12 -11
- package/dist/diagram-engine-eager.js +5 -1
- package/dist/diagram-engine-lazy.js +13 -0
- package/dist/diagram-plantuml-XRZ6VAOL.js +3 -0
- package/dist/diff.js +5 -4
- package/dist/docs.js +64 -52
- package/dist/examples.js +4070 -1083
- package/dist/font-policy.js +1 -1
- package/dist/format.js +2 -2
- package/dist/ids.js +5 -4
- package/dist/index.d.ts +18 -16
- package/dist/index.js +35 -24
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.js +9 -8
- package/dist/node-engine.d.ts +43 -11
- package/dist/node-engine.js +45 -26
- package/dist/{pagination-CYzNMazO.d.ts → pagination-CZQQYk7L.d.ts} +4 -3
- package/dist/pagination.d.ts +4 -4
- package/dist/pagination.js +5 -4
- package/dist/patch.js +4 -3
- package/dist/precompiled.js +2 -2
- package/dist/{presentation-CXhfpB_z.d.ts → presentation-s9262acV.d.ts} +357 -230
- package/dist/repo-readme.js +1 -1
- package/dist/schema-engine-ajv.js +1 -1
- package/dist/schema-engine-precompiled.js +2 -2
- package/dist/schema.d.ts +3 -3
- package/dist/schema.js +4 -3
- package/dist/schemas.d.ts +16 -0
- package/dist/schemas.js +1 -1
- package/dist/shape-engine-eager.js +2 -2
- package/dist/shape-engine-lazy.js +1 -1
- package/dist/{shape-engine-module-BK7JNEUV.js → shape-engine-module-N74FCHGY.js} +2 -2
- package/dist/shape-geometry.js +1 -1
- package/dist/source.d.ts +10 -5
- package/dist/source.js +11 -10
- package/dist/spec/reference/engine-vocabularies.json +135 -0
- package/dist/spec/reference/font-policy.json +3 -16
- package/dist/spec/reference/preset-geometry.json +3 -3
- package/dist/spec/schemas/icon-set.schema.json +1 -1
- package/dist/spec/schemas/layout.schema.json +71 -25
- package/dist/spec/schemas/opf.schema.json +540 -168
- package/dist/spec/schemas/theme.schema.json +11 -5
- package/dist/types.d.ts +81 -73
- package/dist/{validation-types-COwTel3H.d.ts → validation-types-CYbsUuZ9.d.ts} +8 -5
- package/dist/validator.d.ts +34 -7
- package/dist/validator.js +4 -3
- package/dist/yaml.d.ts +2 -2
- package/dist/yaml.js +8 -7
- package/package.json +6 -6
- package/dist/catalog-refs-B_0_vZg0.d.ts +0 -134
- package/dist/chunk-ZXOIGUHX.js +0 -1
- package/dist/conversion-POHRAMSN.js +0 -24
|
@@ -339,7 +339,7 @@ var presentation = {
|
|
|
339
339
|
},
|
|
340
340
|
"icons": {
|
|
341
341
|
"$ref": "#/$defs/Icons",
|
|
342
|
-
"description": "Optional deck-local icons
|
|
342
|
+
"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."
|
|
343
343
|
},
|
|
344
344
|
"catalogs": {
|
|
345
345
|
"$ref": "#/$defs/Catalogs",
|
|
@@ -430,8 +430,107 @@ var presentation = {
|
|
|
430
430
|
}
|
|
431
431
|
]
|
|
432
432
|
},
|
|
433
|
+
"ImagePayload": {
|
|
434
|
+
"description": "An image source and optional image-local text callouts. Other resource kinds use Asset and do not accept callouts.",
|
|
435
|
+
"oneOf": [
|
|
436
|
+
{
|
|
437
|
+
"type": "string",
|
|
438
|
+
"examples": [
|
|
439
|
+
"asset:acme-logo",
|
|
440
|
+
"https://cdn.acme.com/image.png",
|
|
441
|
+
"./assets/image.png",
|
|
442
|
+
"data:image/png;base64,..."
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"type": "object",
|
|
447
|
+
"additionalProperties": false,
|
|
448
|
+
"required": [
|
|
449
|
+
"src"
|
|
450
|
+
],
|
|
451
|
+
"properties": {
|
|
452
|
+
"src": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"description": "Image source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.",
|
|
455
|
+
"examples": [
|
|
456
|
+
"asset:acme-logo",
|
|
457
|
+
"./assets/logo.svg",
|
|
458
|
+
"https://cdn.acme.com/logo.png",
|
|
459
|
+
"data:image/svg+xml;base64,..."
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
"alt": {
|
|
463
|
+
"type": "string",
|
|
464
|
+
"description": "Alternative text for the image."
|
|
465
|
+
},
|
|
466
|
+
"title": {
|
|
467
|
+
"type": "string",
|
|
468
|
+
"description": "Human-readable asset title for editors and asset pickers."
|
|
469
|
+
},
|
|
470
|
+
"description": {
|
|
471
|
+
"type": "string",
|
|
472
|
+
"description": "Optional notes about the asset's contents, provenance, or intended use."
|
|
473
|
+
},
|
|
474
|
+
"mediaType": {
|
|
475
|
+
"type": "string",
|
|
476
|
+
"description": "Optional MIME media type when it cannot be inferred from src.",
|
|
477
|
+
"examples": [
|
|
478
|
+
"image/svg+xml",
|
|
479
|
+
"image/png",
|
|
480
|
+
"image/webp"
|
|
481
|
+
]
|
|
482
|
+
},
|
|
483
|
+
"callouts": {
|
|
484
|
+
"type": "array",
|
|
485
|
+
"items": {
|
|
486
|
+
"$ref": "#/$defs/ImageCallout"
|
|
487
|
+
},
|
|
488
|
+
"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."
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
]
|
|
493
|
+
},
|
|
494
|
+
"ImageCallout": {
|
|
495
|
+
"type": "object",
|
|
496
|
+
"additionalProperties": false,
|
|
497
|
+
"required": [
|
|
498
|
+
"text",
|
|
499
|
+
"x",
|
|
500
|
+
"y",
|
|
501
|
+
"width",
|
|
502
|
+
"height"
|
|
503
|
+
],
|
|
504
|
+
"properties": {
|
|
505
|
+
"text": {
|
|
506
|
+
"type": "string",
|
|
507
|
+
"description": "Plain editable text. Native edits preserve current words; an empty string is retained."
|
|
508
|
+
},
|
|
509
|
+
"x": {
|
|
510
|
+
"$ref": "#/$defs/FiniteNumber",
|
|
511
|
+
"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."
|
|
512
|
+
},
|
|
513
|
+
"y": {
|
|
514
|
+
"$ref": "#/$defs/FiniteNumber",
|
|
515
|
+
"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."
|
|
516
|
+
},
|
|
517
|
+
"width": {
|
|
518
|
+
"type": "number",
|
|
519
|
+
"exclusiveMinimum": 0,
|
|
520
|
+
"maximum": 1,
|
|
521
|
+
"description": "Positive fraction of the visible image frame width, at most 1. The signed x origin controls placement outside the frame."
|
|
522
|
+
},
|
|
523
|
+
"height": {
|
|
524
|
+
"type": "number",
|
|
525
|
+
"exclusiveMinimum": 0,
|
|
526
|
+
"maximum": 1,
|
|
527
|
+
"description": "Positive fraction of the visible image frame height, at most 1. The signed y origin controls placement outside the frame."
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
},
|
|
433
531
|
"Audience": {
|
|
434
532
|
"type": "object",
|
|
533
|
+
"additionalProperties": false,
|
|
435
534
|
"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.",
|
|
436
535
|
"anyOf": [
|
|
437
536
|
{
|
|
@@ -528,6 +627,7 @@ var presentation = {
|
|
|
528
627
|
},
|
|
529
628
|
"Purpose": {
|
|
530
629
|
"type": "object",
|
|
630
|
+
"additionalProperties": false,
|
|
531
631
|
"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.",
|
|
532
632
|
"anyOf": [
|
|
533
633
|
{
|
|
@@ -601,6 +701,7 @@ var presentation = {
|
|
|
601
701
|
},
|
|
602
702
|
"Language": {
|
|
603
703
|
"type": "object",
|
|
704
|
+
"additionalProperties": false,
|
|
604
705
|
"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'.",
|
|
605
706
|
"required": [
|
|
606
707
|
"bcp47"
|
|
@@ -659,7 +760,7 @@ var presentation = {
|
|
|
659
760
|
"ltr",
|
|
660
761
|
"rtl"
|
|
661
762
|
],
|
|
662
|
-
"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."
|
|
763
|
+
"description": "Base text direction for the language. When omitted, engines derive it from the script: Arabic (Arab), Hebrew (Hebr), Syriac (Syrc), Thaana (Thaa), N'Ko (Nkoo), Adlam (Adlm), Samaritan (Samr), Mandaic (Mand) and Hanifi Rohingya (Rohg) are right-to-left; every other script is left-to-right. The engine language vocabulary (spec/reference/engine-vocabularies.json) states it for the tags it knows. A right-to-left deck mirrors its layout, and one rule says what follows it. Layout words and layout coordinates are logical: 'start' and 'end' in alignments, header and footer zones, 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."
|
|
663
764
|
},
|
|
664
765
|
"script": {
|
|
665
766
|
"type": "string",
|
|
@@ -705,6 +806,7 @@ var presentation = {
|
|
|
705
806
|
},
|
|
706
807
|
"Tone": {
|
|
707
808
|
"type": "object",
|
|
809
|
+
"additionalProperties": false,
|
|
708
810
|
"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.",
|
|
709
811
|
"anyOf": [
|
|
710
812
|
{
|
|
@@ -780,6 +882,7 @@ var presentation = {
|
|
|
780
882
|
},
|
|
781
883
|
"Organization": {
|
|
782
884
|
"type": "object",
|
|
885
|
+
"additionalProperties": false,
|
|
783
886
|
"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.",
|
|
784
887
|
"required": [
|
|
785
888
|
"id",
|
|
@@ -895,6 +998,7 @@ var presentation = {
|
|
|
895
998
|
},
|
|
896
999
|
"Speaker": {
|
|
897
1000
|
"type": "object",
|
|
1001
|
+
"additionalProperties": false,
|
|
898
1002
|
"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.",
|
|
899
1003
|
"required": [
|
|
900
1004
|
"id",
|
|
@@ -1016,6 +1120,7 @@ var presentation = {
|
|
|
1016
1120
|
},
|
|
1017
1121
|
"Design": {
|
|
1018
1122
|
"type": "object",
|
|
1123
|
+
"additionalProperties": false,
|
|
1019
1124
|
"description": "Visual design system applied to the presentation; individual slides may override fields via Slide.design.",
|
|
1020
1125
|
"properties": {
|
|
1021
1126
|
"theme": {
|
|
@@ -1140,7 +1245,7 @@ var presentation = {
|
|
|
1140
1245
|
"const": false
|
|
1141
1246
|
}
|
|
1142
1247
|
],
|
|
1143
|
-
"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
|
|
1248
|
+
"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.",
|
|
1144
1249
|
"examples": [
|
|
1145
1250
|
"var:organization.logo.wordmark",
|
|
1146
1251
|
"var:organization.beta.logo",
|
|
@@ -1188,10 +1293,10 @@ var presentation = {
|
|
|
1188
1293
|
"examples": [
|
|
1189
1294
|
false,
|
|
1190
1295
|
{
|
|
1191
|
-
"
|
|
1296
|
+
"start": {
|
|
1192
1297
|
"text": "{{slide.section}}"
|
|
1193
1298
|
},
|
|
1194
|
-
"
|
|
1299
|
+
"end": {
|
|
1195
1300
|
"image": "var:organization.logo.icon"
|
|
1196
1301
|
}
|
|
1197
1302
|
}
|
|
@@ -1211,13 +1316,13 @@ var presentation = {
|
|
|
1211
1316
|
"examples": [
|
|
1212
1317
|
false,
|
|
1213
1318
|
{
|
|
1214
|
-
"
|
|
1319
|
+
"start": {
|
|
1215
1320
|
"image": "var:organization.logo.icon"
|
|
1216
1321
|
},
|
|
1217
1322
|
"center": {
|
|
1218
1323
|
"text": "Confidential"
|
|
1219
1324
|
},
|
|
1220
|
-
"
|
|
1325
|
+
"end": {
|
|
1221
1326
|
"text": "{{slide.number}}"
|
|
1222
1327
|
}
|
|
1223
1328
|
}
|
|
@@ -1226,20 +1331,20 @@ var presentation = {
|
|
|
1226
1331
|
"titleAlignment": {
|
|
1227
1332
|
"type": "string",
|
|
1228
1333
|
"enum": [
|
|
1229
|
-
"
|
|
1334
|
+
"start",
|
|
1230
1335
|
"center",
|
|
1231
|
-
"
|
|
1336
|
+
"end"
|
|
1232
1337
|
],
|
|
1233
|
-
"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."
|
|
1338
|
+
"description": "Default horizontal alignment for the title heading area (the title and the tag) in resolved layouts. Effective value: the slide's design, then the deck's design, then the theme's design.titleAlignment, then the layout record's design.titleAlignment, then the engine default. Logical: 'start' is the edge a paragraph starts on (the left for left-to-right text, the right for right-to-left text) and 'end' is the opposite edge."
|
|
1234
1339
|
},
|
|
1235
1340
|
"contentAlignment": {
|
|
1236
1341
|
"type": "string",
|
|
1237
1342
|
"enum": [
|
|
1238
|
-
"
|
|
1343
|
+
"start",
|
|
1239
1344
|
"center",
|
|
1240
|
-
"
|
|
1345
|
+
"end"
|
|
1241
1346
|
],
|
|
1242
|
-
"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."
|
|
1347
|
+
"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."
|
|
1243
1348
|
},
|
|
1244
1349
|
"contentBox": {
|
|
1245
1350
|
"type": "boolean",
|
|
@@ -1251,7 +1356,7 @@ var presentation = {
|
|
|
1251
1356
|
"horizontal",
|
|
1252
1357
|
"vertical"
|
|
1253
1358
|
],
|
|
1254
|
-
"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
|
|
1359
|
+
"description": "Axis along which parallel body content is arranged: 'vertical' is a column, 'horizontal' a row. Effective value: the slide's design, then the deck's design, then the theme's design.contentDirection, then the layout record's design.contentDirection. On a slide with a template layout it turns every flowing region of the slide into one row or one column, below the slide's own composition.mode, columns and weights, which arrange its first primary flowing region. On an automatic slide (and a 0.18 record) it sets the root arrangement mode when no composition.mode is set on the slide or on its layout record. Promoted regions (start, top:start, ...) keep their explicit geometry and nested groups keep their own composition."
|
|
1255
1360
|
},
|
|
1256
1361
|
"chartPrimary": {
|
|
1257
1362
|
"type": "string",
|
|
@@ -1259,10 +1364,10 @@ var presentation = {
|
|
|
1259
1364
|
"none",
|
|
1260
1365
|
"top",
|
|
1261
1366
|
"bottom",
|
|
1262
|
-
"
|
|
1263
|
-
"
|
|
1367
|
+
"start",
|
|
1368
|
+
"end"
|
|
1264
1369
|
],
|
|
1265
|
-
"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: '
|
|
1370
|
+
"description": "Where the primary chart sits relative to supporting content. Effective value: slide design, then deck design, then the layout record's design.chartPrimary. It applies to automatic slides only; a template layout says the same with its regions (chart-beside). When the slide has no promoted regions and no composition.mode of its own, and its root nodes mix at least one chart with other content, the first chart becomes a primary track and the other nodes form one synthetic sub-grid: 'start'/'end' is a two-track row with the chart on that side (logical: 'start' is the left in a left-to-right deck and the right in a right-to-left one) and 'top'/'bottom' a two-track column, weighted 3:2 in favor of the chart; explicit root columns and weights are ignored while it applies. 'none' (the default) keeps the ordinary automatic grid with equal weight. Automatic composition builds direct content groups; template regions remain authoritative."
|
|
1266
1371
|
},
|
|
1267
1372
|
"imageFit": {
|
|
1268
1373
|
"type": "string",
|
|
@@ -1289,18 +1394,28 @@ var presentation = {
|
|
|
1289
1394
|
"stack",
|
|
1290
1395
|
"rows"
|
|
1291
1396
|
],
|
|
1292
|
-
"description": "How list entries are arranged
|
|
1397
|
+
"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."
|
|
1293
1398
|
},
|
|
1294
1399
|
"mirror": {
|
|
1295
1400
|
"type": "boolean",
|
|
1296
|
-
"description": "Draw the slide's template layout mirrored
|
|
1401
|
+
"description": "Draw the slide's template layout mirrored: each row's cells and the column sizes reversed, so a 'beside' layout puts its picture, chart or table at the end. Logical: a right-to-left deck mirrors on top. Binding and reading order do not change. Effective value: the slide's design, then the deck's design, then the layout record's design.mirror, then false. Slides without a template layout ignore it."
|
|
1297
1402
|
}
|
|
1298
1403
|
}
|
|
1299
1404
|
},
|
|
1300
1405
|
"ColorScheme": {
|
|
1301
1406
|
"type": "object",
|
|
1407
|
+
"additionalProperties": false,
|
|
1302
1408
|
"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'.",
|
|
1303
1409
|
"properties": {
|
|
1410
|
+
"name": {
|
|
1411
|
+
"type": "string",
|
|
1412
|
+
"minLength": 1,
|
|
1413
|
+
"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.",
|
|
1414
|
+
"examples": [
|
|
1415
|
+
"Harbour",
|
|
1416
|
+
"Acme 2026"
|
|
1417
|
+
]
|
|
1418
|
+
},
|
|
1304
1419
|
"id": {
|
|
1305
1420
|
"$ref": "#/$defs/CatalogReference",
|
|
1306
1421
|
"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.",
|
|
@@ -1472,6 +1587,7 @@ var presentation = {
|
|
|
1472
1587
|
},
|
|
1473
1588
|
"FontScheme": {
|
|
1474
1589
|
"type": "object",
|
|
1590
|
+
"additionalProperties": false,
|
|
1475
1591
|
"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'.",
|
|
1476
1592
|
"properties": {
|
|
1477
1593
|
"id": {
|
|
@@ -1637,6 +1753,7 @@ var presentation = {
|
|
|
1637
1753
|
},
|
|
1638
1754
|
"Dimensions": {
|
|
1639
1755
|
"type": "object",
|
|
1756
|
+
"additionalProperties": false,
|
|
1640
1757
|
"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.",
|
|
1641
1758
|
"properties": {
|
|
1642
1759
|
"preset": {
|
|
@@ -1732,7 +1849,7 @@ var presentation = {
|
|
|
1732
1849
|
- Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
1733
1850
|
- 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).
|
|
1734
1851
|
- Variable reference: 'var:<id>' into the top-level variables map.
|
|
1735
|
-
- Lighter or darker
|
|
1852
|
+
- 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.
|
|
1736
1853
|
|
|
1737
1854
|
Names 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.`,
|
|
1738
1855
|
"examples": [
|
|
@@ -1756,7 +1873,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
1756
1873
|
"required": [
|
|
1757
1874
|
"color"
|
|
1758
1875
|
],
|
|
1759
|
-
"description": "A ColorRef made lighter or darker
|
|
1876
|
+
"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.",
|
|
1760
1877
|
"properties": {
|
|
1761
1878
|
"color": {
|
|
1762
1879
|
"$ref": "#/$defs/ColorRef",
|
|
@@ -2302,6 +2419,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2302
2419
|
},
|
|
2303
2420
|
"ThemeBackground": {
|
|
2304
2421
|
"type": "object",
|
|
2422
|
+
"additionalProperties": false,
|
|
2305
2423
|
"description": "Theme-controlled PowerPoint slide background. The slot is resolved through the active color scheme and remains theme-aware.",
|
|
2306
2424
|
"required": [
|
|
2307
2425
|
"type",
|
|
@@ -2315,11 +2433,18 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2315
2433
|
},
|
|
2316
2434
|
"slot": {
|
|
2317
2435
|
"$ref": "#/$defs/ThemeBackgroundSlot"
|
|
2436
|
+
},
|
|
2437
|
+
"opacity": {
|
|
2438
|
+
"type": "number",
|
|
2439
|
+
"minimum": 0,
|
|
2440
|
+
"maximum": 1,
|
|
2441
|
+
"description": "Background opacity from 0 (fully transparent) to 1 (fully opaque). Default 1; the selected theme slot remains unchanged."
|
|
2318
2442
|
}
|
|
2319
2443
|
}
|
|
2320
2444
|
},
|
|
2321
2445
|
"SolidBackground": {
|
|
2322
2446
|
"type": "object",
|
|
2447
|
+
"additionalProperties": false,
|
|
2323
2448
|
"description": "Fixed solid slide background fill.",
|
|
2324
2449
|
"required": [
|
|
2325
2450
|
"type",
|
|
@@ -2350,6 +2475,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2350
2475
|
},
|
|
2351
2476
|
"GradientBackground": {
|
|
2352
2477
|
"type": "object",
|
|
2478
|
+
"additionalProperties": false,
|
|
2353
2479
|
"description": "Fixed gradient slide background fill.",
|
|
2354
2480
|
"required": [
|
|
2355
2481
|
"type",
|
|
@@ -2371,7 +2497,11 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2371
2497
|
},
|
|
2372
2498
|
"gradient": {
|
|
2373
2499
|
"type": "object",
|
|
2374
|
-
"
|
|
2500
|
+
"additionalProperties": false,
|
|
2501
|
+
"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.",
|
|
2502
|
+
"required": [
|
|
2503
|
+
"stops"
|
|
2504
|
+
],
|
|
2375
2505
|
"properties": {
|
|
2376
2506
|
"angle": {
|
|
2377
2507
|
"type": "number",
|
|
@@ -2383,6 +2513,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2383
2513
|
"description": "Ordered list of color stops along the gradient. A gradient needs at least two stops.",
|
|
2384
2514
|
"items": {
|
|
2385
2515
|
"type": "object",
|
|
2516
|
+
"additionalProperties": false,
|
|
2386
2517
|
"description": "Color stop along the gradient.",
|
|
2387
2518
|
"required": [
|
|
2388
2519
|
"color",
|
|
@@ -2431,7 +2562,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2431
2562
|
"dark",
|
|
2432
2563
|
"light"
|
|
2433
2564
|
],
|
|
2434
|
-
"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
|
|
2565
|
+
"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."
|
|
2435
2566
|
},
|
|
2436
2567
|
"type": {
|
|
2437
2568
|
"type": "string",
|
|
@@ -2590,10 +2721,10 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2590
2721
|
"enum": [
|
|
2591
2722
|
"top",
|
|
2592
2723
|
"bottom",
|
|
2593
|
-
"
|
|
2594
|
-
"
|
|
2724
|
+
"start",
|
|
2725
|
+
"end"
|
|
2595
2726
|
],
|
|
2596
|
-
"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.
|
|
2727
|
+
"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."
|
|
2597
2728
|
},
|
|
2598
2729
|
"size": {
|
|
2599
2730
|
"type": "number",
|
|
@@ -2621,13 +2752,13 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2621
2752
|
"required": [
|
|
2622
2753
|
"edge"
|
|
2623
2754
|
],
|
|
2624
|
-
"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.
|
|
2755
|
+
"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.",
|
|
2625
2756
|
"properties": {
|
|
2626
2757
|
"edge": {
|
|
2627
2758
|
"type": "string",
|
|
2628
2759
|
"enum": [
|
|
2629
|
-
"
|
|
2630
|
-
"
|
|
2760
|
+
"start",
|
|
2761
|
+
"end",
|
|
2631
2762
|
"top",
|
|
2632
2763
|
"bottom"
|
|
2633
2764
|
],
|
|
@@ -2637,7 +2768,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2637
2768
|
"type": "number",
|
|
2638
2769
|
"minimum": 0.1,
|
|
2639
2770
|
"maximum": 0.9,
|
|
2640
|
-
"description": "Share of the slide width (
|
|
2771
|
+
"description": "Share of the slide width (start, end) or height (top, bottom) given to the band. Default 0.5."
|
|
2641
2772
|
},
|
|
2642
2773
|
"inset": {
|
|
2643
2774
|
"type": "boolean",
|
|
@@ -2646,11 +2777,11 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2646
2777
|
},
|
|
2647
2778
|
"examples": [
|
|
2648
2779
|
{
|
|
2649
|
-
"edge": "
|
|
2780
|
+
"edge": "start",
|
|
2650
2781
|
"size": 0.45
|
|
2651
2782
|
},
|
|
2652
2783
|
{
|
|
2653
|
-
"edge": "
|
|
2784
|
+
"edge": "end",
|
|
2654
2785
|
"size": 0.4,
|
|
2655
2786
|
"inset": true
|
|
2656
2787
|
}
|
|
@@ -2777,7 +2908,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2777
2908
|
}
|
|
2778
2909
|
}
|
|
2779
2910
|
],
|
|
2780
|
-
"description": "A line along an outline
|
|
2911
|
+
"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.",
|
|
2781
2912
|
"examples": [
|
|
2782
2913
|
"none",
|
|
2783
2914
|
{
|
|
@@ -2852,7 +2983,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2852
2983
|
"required": [
|
|
2853
2984
|
"stops"
|
|
2854
2985
|
],
|
|
2855
|
-
"description": "A gradient fill
|
|
2986
|
+
"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.",
|
|
2856
2987
|
"properties": {
|
|
2857
2988
|
"type": {
|
|
2858
2989
|
"type": "string",
|
|
@@ -2979,7 +3110,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2979
3110
|
"description": "A pattern fill (a:pattFill)."
|
|
2980
3111
|
}
|
|
2981
3112
|
],
|
|
2982
|
-
"description": "A shape block's fill
|
|
3113
|
+
"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).",
|
|
2983
3114
|
"examples": [
|
|
2984
3115
|
"accent2",
|
|
2985
3116
|
"none",
|
|
@@ -3241,7 +3372,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
3241
3372
|
"description": "SVG path data with its own viewBox, for example an icon outline drawn on a 24 by 24 grid."
|
|
3242
3373
|
}
|
|
3243
3374
|
],
|
|
3244
|
-
"description": "Custom geometry
|
|
3375
|
+
"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).",
|
|
3245
3376
|
"examples": [
|
|
3246
3377
|
"M0 0 L1 0 L0.5 1 Z",
|
|
3247
3378
|
{
|
|
@@ -3316,12 +3447,12 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
3316
3447
|
}
|
|
3317
3448
|
}
|
|
3318
3449
|
],
|
|
3319
|
-
"description": "Outer shadow (a:outerShdw): a preset name (soft, hard, perspective) or { color, opacity, blur, distance, angle, size }.
|
|
3450
|
+
"description": "Outer shadow (a:outerShdw): a preset name (soft, hard, perspective) or { color, opacity, blur, distance, angle, size }."
|
|
3320
3451
|
},
|
|
3321
3452
|
"InnerShadow": {
|
|
3322
3453
|
"type": "object",
|
|
3323
3454
|
"additionalProperties": false,
|
|
3324
|
-
"description": "Inner shadow (a:innerShdw).
|
|
3455
|
+
"description": "Inner shadow (a:innerShdw).",
|
|
3325
3456
|
"properties": {
|
|
3326
3457
|
"color": {
|
|
3327
3458
|
"$ref": "#/$defs/ColorRef",
|
|
@@ -3356,7 +3487,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
3356
3487
|
"Glow": {
|
|
3357
3488
|
"type": "object",
|
|
3358
3489
|
"additionalProperties": false,
|
|
3359
|
-
"description": "Glow around the outline (a:glow).
|
|
3490
|
+
"description": "Glow around the outline (a:glow).",
|
|
3360
3491
|
"properties": {
|
|
3361
3492
|
"color": {
|
|
3362
3493
|
"$ref": "#/$defs/ColorRef",
|
|
@@ -3379,7 +3510,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
3379
3510
|
"Reflection": {
|
|
3380
3511
|
"type": "object",
|
|
3381
3512
|
"additionalProperties": false,
|
|
3382
|
-
"description": "Reflection below the shape (a:reflection).
|
|
3513
|
+
"description": "Reflection below the shape (a:reflection).",
|
|
3383
3514
|
"properties": {
|
|
3384
3515
|
"opacity": {
|
|
3385
3516
|
"type": "number",
|
|
@@ -3438,6 +3569,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
3438
3569
|
},
|
|
3439
3570
|
"PatternBackground": {
|
|
3440
3571
|
"type": "object",
|
|
3572
|
+
"additionalProperties": false,
|
|
3441
3573
|
"description": "Fixed pattern slide background fill.",
|
|
3442
3574
|
"required": [
|
|
3443
3575
|
"type",
|
|
@@ -3451,6 +3583,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
3451
3583
|
},
|
|
3452
3584
|
"pattern": {
|
|
3453
3585
|
"type": "object",
|
|
3586
|
+
"additionalProperties": false,
|
|
3454
3587
|
"description": "Pattern fill definition.",
|
|
3455
3588
|
"required": [
|
|
3456
3589
|
"preset"
|
|
@@ -3598,25 +3731,26 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
3598
3731
|
},
|
|
3599
3732
|
"HeaderFooter": {
|
|
3600
3733
|
"type": "object",
|
|
3601
|
-
"
|
|
3734
|
+
"additionalProperties": false,
|
|
3735
|
+
"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.",
|
|
3602
3736
|
"properties": {
|
|
3603
|
-
"
|
|
3737
|
+
"start": {
|
|
3604
3738
|
"$ref": "#/$defs/HeaderFooterItem",
|
|
3605
|
-
"description": "
|
|
3739
|
+
"description": "Content at the start edge, aligned to it."
|
|
3606
3740
|
},
|
|
3607
3741
|
"center": {
|
|
3608
3742
|
"$ref": "#/$defs/HeaderFooterItem",
|
|
3609
3743
|
"description": "Centered header/footer content."
|
|
3610
3744
|
},
|
|
3611
|
-
"
|
|
3745
|
+
"end": {
|
|
3612
3746
|
"$ref": "#/$defs/HeaderFooterItem",
|
|
3613
|
-
"description": "
|
|
3747
|
+
"description": "Content at the end edge, aligned to it."
|
|
3614
3748
|
}
|
|
3615
3749
|
}
|
|
3616
3750
|
},
|
|
3617
3751
|
"HeaderFooterItem": {
|
|
3618
3752
|
"type": "object",
|
|
3619
|
-
"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 (
|
|
3753
|
+
"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.",
|
|
3620
3754
|
"additionalProperties": false,
|
|
3621
3755
|
"properties": {
|
|
3622
3756
|
"text": {
|
|
@@ -3674,7 +3808,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
3674
3808
|
"OverlayShape": {
|
|
3675
3809
|
"type": "object",
|
|
3676
3810
|
"additionalProperties": false,
|
|
3677
|
-
"description": "
|
|
3811
|
+
"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.",
|
|
3678
3812
|
"properties": {
|
|
3679
3813
|
"id": {
|
|
3680
3814
|
"type": "string",
|
|
@@ -3686,28 +3820,24 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
3686
3820
|
]
|
|
3687
3821
|
},
|
|
3688
3822
|
"x": {
|
|
3689
|
-
"
|
|
3690
|
-
"
|
|
3691
|
-
"maximum": 1,
|
|
3692
|
-
"description": "Left edge as a fraction of the slide width, from the left edge; in a right-to-left deck from the right edge, mirrored as OPF mirrors start and end. With 'y', 'width' and 'height'."
|
|
3823
|
+
"$ref": "#/$defs/FiniteNumber",
|
|
3824
|
+
"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'."
|
|
3693
3825
|
},
|
|
3694
3826
|
"y": {
|
|
3695
|
-
"
|
|
3696
|
-
"
|
|
3697
|
-
"maximum": 1,
|
|
3698
|
-
"description": "Top edge as a fraction of the slide height, from the top edge."
|
|
3827
|
+
"$ref": "#/$defs/FiniteNumber",
|
|
3828
|
+
"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."
|
|
3699
3829
|
},
|
|
3700
3830
|
"width": {
|
|
3701
3831
|
"type": "number",
|
|
3702
3832
|
"minimum": 0,
|
|
3703
|
-
"maximum":
|
|
3704
|
-
"description": "Width as a fraction of the slide width."
|
|
3833
|
+
"maximum": 8,
|
|
3834
|
+
"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."
|
|
3705
3835
|
},
|
|
3706
3836
|
"height": {
|
|
3707
3837
|
"type": "number",
|
|
3708
3838
|
"minimum": 0,
|
|
3709
|
-
"maximum":
|
|
3710
|
-
"description": "Height as a fraction of the slide height."
|
|
3839
|
+
"maximum": 8,
|
|
3840
|
+
"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."
|
|
3711
3841
|
},
|
|
3712
3842
|
"at": {
|
|
3713
3843
|
"$ref": "#/$defs/OverlayAnchor"
|
|
@@ -3908,7 +4038,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
3908
4038
|
"block",
|
|
3909
4039
|
"edge"
|
|
3910
4040
|
],
|
|
3911
|
-
"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.",
|
|
4041
|
+
"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.",
|
|
3912
4042
|
"properties": {
|
|
3913
4043
|
"block": {
|
|
3914
4044
|
"type": "string",
|
|
@@ -3935,14 +4065,52 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
3935
4065
|
"width": {
|
|
3936
4066
|
"type": "number",
|
|
3937
4067
|
"exclusiveMinimum": 0,
|
|
3938
|
-
"maximum":
|
|
3939
|
-
"description": "The shape's width
|
|
4068
|
+
"maximum": 8,
|
|
4069
|
+
"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)."
|
|
3940
4070
|
},
|
|
3941
4071
|
"height": {
|
|
4072
|
+
"type": "number",
|
|
4073
|
+
"exclusiveMinimum": 0,
|
|
4074
|
+
"maximum": 8,
|
|
4075
|
+
"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."
|
|
4076
|
+
},
|
|
4077
|
+
"widthPx": {
|
|
4078
|
+
"type": "number",
|
|
4079
|
+
"exclusiveMinimum": 0,
|
|
4080
|
+
"maximum": 1280,
|
|
4081
|
+
"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'."
|
|
4082
|
+
},
|
|
4083
|
+
"heightPx": {
|
|
3942
4084
|
"type": "number",
|
|
3943
4085
|
"exclusiveMinimum": 0,
|
|
3944
4086
|
"maximum": 1280,
|
|
3945
|
-
"description": "The shape's height
|
|
4087
|
+
"description": "The shape's height in reference pixels at a 720-pixel short edge. Instead of 'height'."
|
|
4088
|
+
},
|
|
4089
|
+
"point": {
|
|
4090
|
+
"oneOf": [
|
|
4091
|
+
{
|
|
4092
|
+
"type": "string",
|
|
4093
|
+
"minLength": 1
|
|
4094
|
+
},
|
|
4095
|
+
{
|
|
4096
|
+
"type": "integer",
|
|
4097
|
+
"minimum": 0
|
|
4098
|
+
}
|
|
4099
|
+
],
|
|
4100
|
+
"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."
|
|
4101
|
+
},
|
|
4102
|
+
"series": {
|
|
4103
|
+
"oneOf": [
|
|
4104
|
+
{
|
|
4105
|
+
"type": "string",
|
|
4106
|
+
"minLength": 1
|
|
4107
|
+
},
|
|
4108
|
+
{
|
|
4109
|
+
"type": "integer",
|
|
4110
|
+
"minimum": 0
|
|
4111
|
+
}
|
|
4112
|
+
],
|
|
4113
|
+
"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."
|
|
3946
4114
|
}
|
|
3947
4115
|
},
|
|
3948
4116
|
"examples": [
|
|
@@ -3954,8 +4122,45 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
3954
4122
|
{
|
|
3955
4123
|
"block": "revenue-chart",
|
|
3956
4124
|
"edge": "end",
|
|
3957
|
-
"
|
|
3958
|
-
"
|
|
4125
|
+
"widthPx": 160,
|
|
4126
|
+
"heightPx": 64
|
|
4127
|
+
},
|
|
4128
|
+
{
|
|
4129
|
+
"block": "quote",
|
|
4130
|
+
"edge": "center",
|
|
4131
|
+
"width": 1.08,
|
|
4132
|
+
"height": 1.08
|
|
4133
|
+
},
|
|
4134
|
+
{
|
|
4135
|
+
"block": "costs",
|
|
4136
|
+
"series": "Cost ($B)",
|
|
4137
|
+
"point": "United States",
|
|
4138
|
+
"edge": "end",
|
|
4139
|
+
"widthPx": 80,
|
|
4140
|
+
"heightPx": 80
|
|
4141
|
+
}
|
|
4142
|
+
],
|
|
4143
|
+
"dependentRequired": {
|
|
4144
|
+
"series": [
|
|
4145
|
+
"point"
|
|
4146
|
+
]
|
|
4147
|
+
},
|
|
4148
|
+
"allOf": [
|
|
4149
|
+
{
|
|
4150
|
+
"not": {
|
|
4151
|
+
"required": [
|
|
4152
|
+
"width",
|
|
4153
|
+
"widthPx"
|
|
4154
|
+
]
|
|
4155
|
+
}
|
|
4156
|
+
},
|
|
4157
|
+
{
|
|
4158
|
+
"not": {
|
|
4159
|
+
"required": [
|
|
4160
|
+
"height",
|
|
4161
|
+
"heightPx"
|
|
4162
|
+
]
|
|
4163
|
+
}
|
|
3959
4164
|
}
|
|
3960
4165
|
]
|
|
3961
4166
|
},
|
|
@@ -4014,8 +4219,40 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4014
4219
|
},
|
|
4015
4220
|
"Slide": {
|
|
4016
4221
|
"type": "object",
|
|
4017
|
-
"description": "A single slide. Content can be authored as a full-slide root payload, or inside promoted named region keys such as '
|
|
4222
|
+
"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.",
|
|
4018
4223
|
"additionalProperties": false,
|
|
4224
|
+
"dependentSchemas": {
|
|
4225
|
+
"caption": {
|
|
4226
|
+
"anyOf": [
|
|
4227
|
+
{
|
|
4228
|
+
"required": [
|
|
4229
|
+
"image"
|
|
4230
|
+
]
|
|
4231
|
+
},
|
|
4232
|
+
{
|
|
4233
|
+
"required": [
|
|
4234
|
+
"chart"
|
|
4235
|
+
]
|
|
4236
|
+
},
|
|
4237
|
+
{
|
|
4238
|
+
"required": [
|
|
4239
|
+
"table"
|
|
4240
|
+
]
|
|
4241
|
+
},
|
|
4242
|
+
{
|
|
4243
|
+
"required": [
|
|
4244
|
+
"video"
|
|
4245
|
+
]
|
|
4246
|
+
},
|
|
4247
|
+
{
|
|
4248
|
+
"required": [
|
|
4249
|
+
"diagram"
|
|
4250
|
+
]
|
|
4251
|
+
}
|
|
4252
|
+
],
|
|
4253
|
+
"description": "A slide's caption belongs to its root image, chart, table, video or diagram."
|
|
4254
|
+
}
|
|
4255
|
+
},
|
|
4019
4256
|
"properties": {
|
|
4020
4257
|
"id": {
|
|
4021
4258
|
"type": "string",
|
|
@@ -4027,6 +4264,22 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4027
4264
|
"ask"
|
|
4028
4265
|
]
|
|
4029
4266
|
},
|
|
4267
|
+
"language": {
|
|
4268
|
+
"oneOf": [
|
|
4269
|
+
{
|
|
4270
|
+
"$ref": "#/$defs/LanguageTag"
|
|
4271
|
+
},
|
|
4272
|
+
{
|
|
4273
|
+
"$ref": "#/$defs/Language"
|
|
4274
|
+
}
|
|
4275
|
+
],
|
|
4276
|
+
"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.",
|
|
4277
|
+
"examples": [
|
|
4278
|
+
"ar-SA",
|
|
4279
|
+
"ja",
|
|
4280
|
+
"fr-FR"
|
|
4281
|
+
]
|
|
4282
|
+
},
|
|
4030
4283
|
"type": {
|
|
4031
4284
|
"type": "string",
|
|
4032
4285
|
"enum": [
|
|
@@ -4125,7 +4378,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4125
4378
|
}
|
|
4126
4379
|
}
|
|
4127
4380
|
],
|
|
4128
|
-
"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
|
|
4381
|
+
"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.",
|
|
4129
4382
|
"examples": [
|
|
4130
4383
|
"Intro",
|
|
4131
4384
|
"Confidential",
|
|
@@ -4182,7 +4435,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4182
4435
|
]
|
|
4183
4436
|
},
|
|
4184
4437
|
"image": {
|
|
4185
|
-
"$ref": "#/$defs/
|
|
4438
|
+
"$ref": "#/$defs/ImagePayload",
|
|
4186
4439
|
"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'."
|
|
4187
4440
|
},
|
|
4188
4441
|
"video": {
|
|
@@ -4246,7 +4499,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4246
4499
|
"$ref": "#/$defs/Diagram"
|
|
4247
4500
|
}
|
|
4248
4501
|
],
|
|
4249
|
-
"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'.`
|
|
4502
|
+
"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'.`
|
|
4250
4503
|
},
|
|
4251
4504
|
"caption": {
|
|
4252
4505
|
"$ref": "#/$defs/Caption",
|
|
@@ -4264,7 +4517,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4264
4517
|
"items": {
|
|
4265
4518
|
"$ref": "#/$defs/OverlayShape"
|
|
4266
4519
|
},
|
|
4267
|
-
"description": "
|
|
4520
|
+
"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.",
|
|
4268
4521
|
"examples": [
|
|
4269
4522
|
[
|
|
4270
4523
|
{
|
|
@@ -4295,22 +4548,22 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4295
4548
|
"$ref": "#/$defs/SlideDesign",
|
|
4296
4549
|
"description": "Slide-level design applied on top of the deck-wide design."
|
|
4297
4550
|
},
|
|
4298
|
-
"
|
|
4551
|
+
"start": {
|
|
4299
4552
|
"$ref": "#/$defs/ContentPayload"
|
|
4300
4553
|
},
|
|
4301
4554
|
"center": {
|
|
4302
4555
|
"$ref": "#/$defs/ContentPayload"
|
|
4303
4556
|
},
|
|
4304
|
-
"
|
|
4557
|
+
"end": {
|
|
4305
4558
|
"$ref": "#/$defs/ContentPayload"
|
|
4306
4559
|
},
|
|
4307
|
-
"
|
|
4560
|
+
"start+center": {
|
|
4308
4561
|
"$ref": "#/$defs/ContentPayload"
|
|
4309
4562
|
},
|
|
4310
|
-
"center+
|
|
4563
|
+
"center+end": {
|
|
4311
4564
|
"$ref": "#/$defs/ContentPayload"
|
|
4312
4565
|
},
|
|
4313
|
-
"
|
|
4566
|
+
"start+center+end": {
|
|
4314
4567
|
"$ref": "#/$defs/ContentPayload"
|
|
4315
4568
|
},
|
|
4316
4569
|
"top": {
|
|
@@ -4331,112 +4584,112 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4331
4584
|
"top+middle+bottom": {
|
|
4332
4585
|
"$ref": "#/$defs/ContentPayload"
|
|
4333
4586
|
},
|
|
4334
|
-
"top:
|
|
4587
|
+
"top:start": {
|
|
4335
4588
|
"$ref": "#/$defs/ContentPayload"
|
|
4336
4589
|
},
|
|
4337
4590
|
"top:center": {
|
|
4338
4591
|
"$ref": "#/$defs/ContentPayload"
|
|
4339
4592
|
},
|
|
4340
|
-
"top:
|
|
4593
|
+
"top:end": {
|
|
4341
4594
|
"$ref": "#/$defs/ContentPayload"
|
|
4342
4595
|
},
|
|
4343
|
-
"top:
|
|
4596
|
+
"top:start+center": {
|
|
4344
4597
|
"$ref": "#/$defs/ContentPayload"
|
|
4345
4598
|
},
|
|
4346
|
-
"top:center+
|
|
4599
|
+
"top:center+end": {
|
|
4347
4600
|
"$ref": "#/$defs/ContentPayload"
|
|
4348
4601
|
},
|
|
4349
|
-
"top:
|
|
4602
|
+
"top:start+center+end": {
|
|
4350
4603
|
"$ref": "#/$defs/ContentPayload"
|
|
4351
4604
|
},
|
|
4352
|
-
"middle:
|
|
4605
|
+
"middle:start": {
|
|
4353
4606
|
"$ref": "#/$defs/ContentPayload"
|
|
4354
4607
|
},
|
|
4355
4608
|
"middle:center": {
|
|
4356
4609
|
"$ref": "#/$defs/ContentPayload"
|
|
4357
4610
|
},
|
|
4358
|
-
"middle:
|
|
4611
|
+
"middle:end": {
|
|
4359
4612
|
"$ref": "#/$defs/ContentPayload"
|
|
4360
4613
|
},
|
|
4361
|
-
"middle:
|
|
4614
|
+
"middle:start+center": {
|
|
4362
4615
|
"$ref": "#/$defs/ContentPayload"
|
|
4363
4616
|
},
|
|
4364
|
-
"middle:center+
|
|
4617
|
+
"middle:center+end": {
|
|
4365
4618
|
"$ref": "#/$defs/ContentPayload"
|
|
4366
4619
|
},
|
|
4367
|
-
"middle:
|
|
4620
|
+
"middle:start+center+end": {
|
|
4368
4621
|
"$ref": "#/$defs/ContentPayload"
|
|
4369
4622
|
},
|
|
4370
|
-
"bottom:
|
|
4623
|
+
"bottom:start": {
|
|
4371
4624
|
"$ref": "#/$defs/ContentPayload"
|
|
4372
4625
|
},
|
|
4373
4626
|
"bottom:center": {
|
|
4374
4627
|
"$ref": "#/$defs/ContentPayload"
|
|
4375
4628
|
},
|
|
4376
|
-
"bottom:
|
|
4629
|
+
"bottom:end": {
|
|
4377
4630
|
"$ref": "#/$defs/ContentPayload"
|
|
4378
4631
|
},
|
|
4379
|
-
"bottom:
|
|
4632
|
+
"bottom:start+center": {
|
|
4380
4633
|
"$ref": "#/$defs/ContentPayload"
|
|
4381
4634
|
},
|
|
4382
|
-
"bottom:center+
|
|
4635
|
+
"bottom:center+end": {
|
|
4383
4636
|
"$ref": "#/$defs/ContentPayload"
|
|
4384
4637
|
},
|
|
4385
|
-
"bottom:
|
|
4638
|
+
"bottom:start+center+end": {
|
|
4386
4639
|
"$ref": "#/$defs/ContentPayload"
|
|
4387
4640
|
},
|
|
4388
|
-
"top+middle:
|
|
4641
|
+
"top+middle:start": {
|
|
4389
4642
|
"$ref": "#/$defs/ContentPayload"
|
|
4390
4643
|
},
|
|
4391
4644
|
"top+middle:center": {
|
|
4392
4645
|
"$ref": "#/$defs/ContentPayload"
|
|
4393
4646
|
},
|
|
4394
|
-
"top+middle:
|
|
4647
|
+
"top+middle:end": {
|
|
4395
4648
|
"$ref": "#/$defs/ContentPayload"
|
|
4396
4649
|
},
|
|
4397
|
-
"top+middle:
|
|
4650
|
+
"top+middle:start+center": {
|
|
4398
4651
|
"$ref": "#/$defs/ContentPayload"
|
|
4399
4652
|
},
|
|
4400
|
-
"top+middle:center+
|
|
4653
|
+
"top+middle:center+end": {
|
|
4401
4654
|
"$ref": "#/$defs/ContentPayload"
|
|
4402
4655
|
},
|
|
4403
|
-
"top+middle:
|
|
4656
|
+
"top+middle:start+center+end": {
|
|
4404
4657
|
"$ref": "#/$defs/ContentPayload"
|
|
4405
4658
|
},
|
|
4406
|
-
"middle+bottom:
|
|
4659
|
+
"middle+bottom:start": {
|
|
4407
4660
|
"$ref": "#/$defs/ContentPayload"
|
|
4408
4661
|
},
|
|
4409
4662
|
"middle+bottom:center": {
|
|
4410
4663
|
"$ref": "#/$defs/ContentPayload"
|
|
4411
4664
|
},
|
|
4412
|
-
"middle+bottom:
|
|
4665
|
+
"middle+bottom:end": {
|
|
4413
4666
|
"$ref": "#/$defs/ContentPayload"
|
|
4414
4667
|
},
|
|
4415
|
-
"middle+bottom:
|
|
4668
|
+
"middle+bottom:start+center": {
|
|
4416
4669
|
"$ref": "#/$defs/ContentPayload"
|
|
4417
4670
|
},
|
|
4418
|
-
"middle+bottom:center+
|
|
4671
|
+
"middle+bottom:center+end": {
|
|
4419
4672
|
"$ref": "#/$defs/ContentPayload"
|
|
4420
4673
|
},
|
|
4421
|
-
"middle+bottom:
|
|
4674
|
+
"middle+bottom:start+center+end": {
|
|
4422
4675
|
"$ref": "#/$defs/ContentPayload"
|
|
4423
4676
|
},
|
|
4424
|
-
"top+middle+bottom:
|
|
4677
|
+
"top+middle+bottom:start": {
|
|
4425
4678
|
"$ref": "#/$defs/ContentPayload"
|
|
4426
4679
|
},
|
|
4427
4680
|
"top+middle+bottom:center": {
|
|
4428
4681
|
"$ref": "#/$defs/ContentPayload"
|
|
4429
4682
|
},
|
|
4430
|
-
"top+middle+bottom:
|
|
4683
|
+
"top+middle+bottom:end": {
|
|
4431
4684
|
"$ref": "#/$defs/ContentPayload"
|
|
4432
4685
|
},
|
|
4433
|
-
"top+middle+bottom:
|
|
4686
|
+
"top+middle+bottom:start+center": {
|
|
4434
4687
|
"$ref": "#/$defs/ContentPayload"
|
|
4435
4688
|
},
|
|
4436
|
-
"top+middle+bottom:center+
|
|
4689
|
+
"top+middle+bottom:center+end": {
|
|
4437
4690
|
"$ref": "#/$defs/ContentPayload"
|
|
4438
4691
|
},
|
|
4439
|
-
"top+middle+bottom:
|
|
4692
|
+
"top+middle+bottom:start+center+end": {
|
|
4440
4693
|
"$ref": "#/$defs/ContentPayload"
|
|
4441
4694
|
},
|
|
4442
4695
|
"notes": {
|
|
@@ -4470,10 +4723,178 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4470
4723
|
}
|
|
4471
4724
|
}
|
|
4472
4725
|
},
|
|
4726
|
+
"ImageBlockOption": {
|
|
4727
|
+
"description": "An option of image blocks only (fit, focus, recolor, overlay, placement, portrait): the block must hold an 'image'.",
|
|
4728
|
+
"required": [
|
|
4729
|
+
"image"
|
|
4730
|
+
]
|
|
4731
|
+
},
|
|
4732
|
+
"ImageOrShapeBlockOption": {
|
|
4733
|
+
"description": "An option of image blocks and shape blocks (aspectRatio, adjust, stroke, opacity): the block must hold an 'image', a 'shape' or a 'path'.",
|
|
4734
|
+
"anyOf": [
|
|
4735
|
+
{
|
|
4736
|
+
"required": [
|
|
4737
|
+
"image"
|
|
4738
|
+
]
|
|
4739
|
+
},
|
|
4740
|
+
{
|
|
4741
|
+
"required": [
|
|
4742
|
+
"shape"
|
|
4743
|
+
]
|
|
4744
|
+
},
|
|
4745
|
+
{
|
|
4746
|
+
"required": [
|
|
4747
|
+
"path"
|
|
4748
|
+
]
|
|
4749
|
+
}
|
|
4750
|
+
]
|
|
4751
|
+
},
|
|
4752
|
+
"ShapeBlockOption": {
|
|
4753
|
+
"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'.",
|
|
4754
|
+
"anyOf": [
|
|
4755
|
+
{
|
|
4756
|
+
"required": [
|
|
4757
|
+
"shape"
|
|
4758
|
+
],
|
|
4759
|
+
"not": {
|
|
4760
|
+
"required": [
|
|
4761
|
+
"image"
|
|
4762
|
+
]
|
|
4763
|
+
}
|
|
4764
|
+
},
|
|
4765
|
+
{
|
|
4766
|
+
"required": [
|
|
4767
|
+
"path"
|
|
4768
|
+
]
|
|
4769
|
+
}
|
|
4770
|
+
]
|
|
4771
|
+
},
|
|
4473
4772
|
"ContentPayload": {
|
|
4474
4773
|
"type": "object",
|
|
4475
4774
|
"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.",
|
|
4476
4775
|
"additionalProperties": false,
|
|
4776
|
+
"$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.",
|
|
4777
|
+
"dependentSchemas": {
|
|
4778
|
+
"fit": {
|
|
4779
|
+
"$ref": "#/$defs/ImageBlockOption"
|
|
4780
|
+
},
|
|
4781
|
+
"focus": {
|
|
4782
|
+
"$ref": "#/$defs/ImageBlockOption"
|
|
4783
|
+
},
|
|
4784
|
+
"recolor": {
|
|
4785
|
+
"$ref": "#/$defs/ImageBlockOption"
|
|
4786
|
+
},
|
|
4787
|
+
"overlay": {
|
|
4788
|
+
"$ref": "#/$defs/ImageBlockOption"
|
|
4789
|
+
},
|
|
4790
|
+
"placement": {
|
|
4791
|
+
"$ref": "#/$defs/ImageBlockOption"
|
|
4792
|
+
},
|
|
4793
|
+
"portrait": {
|
|
4794
|
+
"$ref": "#/$defs/ImageBlockOption"
|
|
4795
|
+
},
|
|
4796
|
+
"aspectRatio": {
|
|
4797
|
+
"$ref": "#/$defs/ImageOrShapeBlockOption"
|
|
4798
|
+
},
|
|
4799
|
+
"adjust": {
|
|
4800
|
+
"$ref": "#/$defs/ImageOrShapeBlockOption"
|
|
4801
|
+
},
|
|
4802
|
+
"stroke": {
|
|
4803
|
+
"$ref": "#/$defs/ImageOrShapeBlockOption"
|
|
4804
|
+
},
|
|
4805
|
+
"opacity": {
|
|
4806
|
+
"$ref": "#/$defs/ImageOrShapeBlockOption"
|
|
4807
|
+
},
|
|
4808
|
+
"fill": {
|
|
4809
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4810
|
+
},
|
|
4811
|
+
"style": {
|
|
4812
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4813
|
+
},
|
|
4814
|
+
"rotate": {
|
|
4815
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4816
|
+
},
|
|
4817
|
+
"flip": {
|
|
4818
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4819
|
+
},
|
|
4820
|
+
"anchor": {
|
|
4821
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4822
|
+
},
|
|
4823
|
+
"padding": {
|
|
4824
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4825
|
+
},
|
|
4826
|
+
"textDirection": {
|
|
4827
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4828
|
+
},
|
|
4829
|
+
"alt": {
|
|
4830
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4831
|
+
},
|
|
4832
|
+
"decorative": {
|
|
4833
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4834
|
+
},
|
|
4835
|
+
"hidden": {
|
|
4836
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4837
|
+
},
|
|
4838
|
+
"link": {
|
|
4839
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4840
|
+
},
|
|
4841
|
+
"shadow": {
|
|
4842
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4843
|
+
},
|
|
4844
|
+
"innerShadow": {
|
|
4845
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4846
|
+
},
|
|
4847
|
+
"glow": {
|
|
4848
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4849
|
+
},
|
|
4850
|
+
"softEdge": {
|
|
4851
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4852
|
+
},
|
|
4853
|
+
"reflection": {
|
|
4854
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4855
|
+
},
|
|
4856
|
+
"blur": {
|
|
4857
|
+
"$ref": "#/$defs/ShapeBlockOption"
|
|
4858
|
+
},
|
|
4859
|
+
"path": {
|
|
4860
|
+
"not": {
|
|
4861
|
+
"required": [
|
|
4862
|
+
"image"
|
|
4863
|
+
]
|
|
4864
|
+
},
|
|
4865
|
+
"description": "A custom outline makes a shape block; a picture's mask is a preset 'shape'."
|
|
4866
|
+
},
|
|
4867
|
+
"caption": {
|
|
4868
|
+
"anyOf": [
|
|
4869
|
+
{
|
|
4870
|
+
"required": [
|
|
4871
|
+
"image"
|
|
4872
|
+
]
|
|
4873
|
+
},
|
|
4874
|
+
{
|
|
4875
|
+
"required": [
|
|
4876
|
+
"chart"
|
|
4877
|
+
]
|
|
4878
|
+
},
|
|
4879
|
+
{
|
|
4880
|
+
"required": [
|
|
4881
|
+
"table"
|
|
4882
|
+
]
|
|
4883
|
+
},
|
|
4884
|
+
{
|
|
4885
|
+
"required": [
|
|
4886
|
+
"video"
|
|
4887
|
+
]
|
|
4888
|
+
},
|
|
4889
|
+
{
|
|
4890
|
+
"required": [
|
|
4891
|
+
"diagram"
|
|
4892
|
+
]
|
|
4893
|
+
}
|
|
4894
|
+
],
|
|
4895
|
+
"description": "A caption belongs to an image, chart, table, video or diagram."
|
|
4896
|
+
}
|
|
4897
|
+
},
|
|
4477
4898
|
"properties": {
|
|
4478
4899
|
"id": {
|
|
4479
4900
|
"type": "string",
|
|
@@ -4490,7 +4911,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4490
4911
|
"region": {
|
|
4491
4912
|
"type": "string",
|
|
4492
4913
|
"pattern": "^[a-z][a-z0-9-]*$",
|
|
4493
|
-
"description": "Pin a root block (slides.N.blocks.I) to a region of the slide's template layout by name
|
|
4914
|
+
"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.",
|
|
4494
4915
|
"examples": [
|
|
4495
4916
|
"notes",
|
|
4496
4917
|
"metrics"
|
|
@@ -4610,14 +5031,14 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4610
5031
|
"maximum": 3
|
|
4611
5032
|
}
|
|
4612
5033
|
],
|
|
4613
|
-
"description": "Lay the payload's `items` or `bullets` out in columns
|
|
5034
|
+
"description": "Lay the payload's `items` or `bullets` out in columns. 'auto' tries 1, 2 then 3 equal columns at the starting text size and uses the first count at which the list fits, as long as a column stays at least a quarter of the slide wide; when none fits, 'auto' takes the count (1, 2 or 3) whose fitted size is largest, preferring fewer columns on a tie, and sets the list in one column only when its lines stay within the prose measure (or it is a type-scale step larger). A list of 6 or fewer entries is never split by 'auto'; it shrinks in one column. 1, 2 or 3 fixes the count. Column breaks fall between items (a nested item stays with its parent) and keep the columns as even as possible; numbering continues and reading order runs column by column. A lone list in a layout region with listColumns: 'auto' behaves as 'auto'.",
|
|
4614
5035
|
"examples": [
|
|
4615
5036
|
"auto",
|
|
4616
5037
|
2
|
|
4617
5038
|
]
|
|
4618
5039
|
},
|
|
4619
5040
|
"image": {
|
|
4620
|
-
"$ref": "#/$defs/
|
|
5041
|
+
"$ref": "#/$defs/ImagePayload",
|
|
4621
5042
|
"description": "Source for an image item.",
|
|
4622
5043
|
"examples": [
|
|
4623
5044
|
"https://cdn.acme.com/images/diagram.png",
|
|
@@ -4648,7 +5069,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4648
5069
|
},
|
|
4649
5070
|
"shape": {
|
|
4650
5071
|
"$ref": "#/$defs/ShapePreset",
|
|
4651
|
-
"description": "The preset geometry. Without 'image' it makes the block a shape block
|
|
5072
|
+
"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.",
|
|
4652
5073
|
"examples": [
|
|
4653
5074
|
"roundRect",
|
|
4654
5075
|
"chevron",
|
|
@@ -4752,7 +5173,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4752
5173
|
"type": "number",
|
|
4753
5174
|
"minimum": 0,
|
|
4754
5175
|
"maximum": 200,
|
|
4755
|
-
"description": "Shape blocks only. Soft edges (a:softEdge): the radius over which the outline fades, in reference pixels at a 720-pixel short edge.
|
|
5176
|
+
"description": "Shape blocks only. Soft edges (a:softEdge): the radius over which the outline fades, in reference pixels at a 720-pixel short edge."
|
|
4756
5177
|
},
|
|
4757
5178
|
"reflection": {
|
|
4758
5179
|
"$ref": "#/$defs/Reflection",
|
|
@@ -4762,7 +5183,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4762
5183
|
"type": "number",
|
|
4763
5184
|
"minimum": 0,
|
|
4764
5185
|
"maximum": 200,
|
|
4765
|
-
"description": "Shape blocks only. Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge.
|
|
5186
|
+
"description": "Shape blocks only. Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge."
|
|
4766
5187
|
},
|
|
4767
5188
|
"adjust": {
|
|
4768
5189
|
"type": "object",
|
|
@@ -4935,7 +5356,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4935
5356
|
"$ref": "#/$defs/Diagram"
|
|
4936
5357
|
}
|
|
4937
5358
|
],
|
|
4938
|
-
"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'.`,
|
|
5359
|
+
"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'.`,
|
|
4939
5360
|
"examples": [
|
|
4940
5361
|
"flowchart LR\n A[Brief] --> B{Approved?}\n B -->|yes| C[Build]\n B -->|no| A",
|
|
4941
5362
|
{
|
|
@@ -4970,7 +5391,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
4970
5391
|
},
|
|
4971
5392
|
"icon": {
|
|
4972
5393
|
"$ref": "#/$defs/IconReference",
|
|
4973
|
-
"description": 'Groups only
|
|
5394
|
+
"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.'
|
|
4974
5395
|
}
|
|
4975
5396
|
},
|
|
4976
5397
|
"allOf": [
|
|
@@ -5550,13 +5971,13 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
5550
5971
|
},
|
|
5551
5972
|
"icon": {
|
|
5552
5973
|
"$ref": "#/$defs/IconReference",
|
|
5553
|
-
"description": `An icon drawn on a chip above the metric
|
|
5974
|
+
"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.`
|
|
5554
5975
|
}
|
|
5555
5976
|
}
|
|
5556
5977
|
},
|
|
5557
5978
|
"Diagram": {
|
|
5558
5979
|
"type": "object",
|
|
5559
|
-
"description": `A diagram written as text
|
|
5980
|
+
"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 }.`,
|
|
5560
5981
|
"additionalProperties": false,
|
|
5561
5982
|
"required": [
|
|
5562
5983
|
"source"
|
|
@@ -5565,23 +5986,27 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
5565
5986
|
"source": {
|
|
5566
5987
|
"type": "string",
|
|
5567
5988
|
"minLength": 1,
|
|
5568
|
-
"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.",
|
|
5989
|
+
"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.",
|
|
5569
5990
|
"examples": [
|
|
5570
5991
|
"flowchart LR\n A[Idea] --> B[Prototype] --> C[Launch]",
|
|
5571
|
-
"mindmap\n root((Strategy))\n Growth\n Efficiency\n People"
|
|
5992
|
+
"mindmap\n root((Strategy))\n Growth\n Efficiency\n People",
|
|
5993
|
+
"digraph {\n rankdir=LR\n Idea -> Prototype -> Launch\n}",
|
|
5994
|
+
"@startuml\nAlice -> Bob : hello\n@enduml"
|
|
5572
5995
|
]
|
|
5573
5996
|
},
|
|
5574
5997
|
"syntax": {
|
|
5575
5998
|
"type": "string",
|
|
5576
5999
|
"enum": [
|
|
5577
|
-
"mermaid"
|
|
6000
|
+
"mermaid",
|
|
6001
|
+
"dot",
|
|
6002
|
+
"plantuml"
|
|
5578
6003
|
],
|
|
5579
6004
|
"default": "mermaid",
|
|
5580
|
-
"description": "The language of 'source'. Mermaid
|
|
6005
|
+
"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."
|
|
5581
6006
|
},
|
|
5582
6007
|
"alt": {
|
|
5583
6008
|
"type": "string",
|
|
5584
|
-
"description": "Text alternative that says what the diagram shows. Exported as the picture
|
|
6009
|
+
"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.",
|
|
5585
6010
|
"examples": [
|
|
5586
6011
|
"Ideas move from brief to approval; approved work is built, rejected work returns to the brief."
|
|
5587
6012
|
]
|
|
@@ -5649,6 +6074,17 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
5649
6074
|
"Launch week"
|
|
5650
6075
|
]
|
|
5651
6076
|
},
|
|
6077
|
+
"duration": {
|
|
6078
|
+
"type": "number",
|
|
6079
|
+
"exclusiveMinimum": 0,
|
|
6080
|
+
"maximum": 17976931348623157e292,
|
|
6081
|
+
"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\u20135). 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.",
|
|
6082
|
+
"examples": [
|
|
6083
|
+
1,
|
|
6084
|
+
4,
|
|
6085
|
+
0.5
|
|
6086
|
+
]
|
|
6087
|
+
},
|
|
5652
6088
|
"what": {
|
|
5653
6089
|
"type": "string",
|
|
5654
6090
|
"description": "Short event label.",
|
|
@@ -5756,7 +6192,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
5756
6192
|
},
|
|
5757
6193
|
"icon": {
|
|
5758
6194
|
"$ref": "#/$defs/IconReference",
|
|
5759
|
-
"description": `An icon drawn on a chip at the start of the entry, in place of its bullet
|
|
6195
|
+
"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.`
|
|
5760
6196
|
},
|
|
5761
6197
|
"start": {
|
|
5762
6198
|
"type": "integer",
|
|
@@ -5897,6 +6333,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
5897
6333
|
},
|
|
5898
6334
|
{
|
|
5899
6335
|
"type": "object",
|
|
6336
|
+
"additionalProperties": false,
|
|
5900
6337
|
"required": [
|
|
5901
6338
|
"text"
|
|
5902
6339
|
],
|
|
@@ -5948,7 +6385,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
5948
6385
|
"fontSize": {
|
|
5949
6386
|
"type": "number",
|
|
5950
6387
|
"exclusiveMinimum": 0,
|
|
5951
|
-
"description": "
|
|
6388
|
+
"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."
|
|
5952
6389
|
},
|
|
5953
6390
|
"fontFamily": {
|
|
5954
6391
|
"type": "string",
|
|
@@ -5963,10 +6400,10 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
5963
6400
|
"type": "boolean",
|
|
5964
6401
|
"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."
|
|
5965
6402
|
},
|
|
5966
|
-
"
|
|
6403
|
+
"language": {
|
|
5967
6404
|
"type": "string",
|
|
5968
6405
|
"pattern": "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",
|
|
5969
|
-
"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.",
|
|
6406
|
+
"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.",
|
|
5970
6407
|
"examples": [
|
|
5971
6408
|
"fr-FR",
|
|
5972
6409
|
"ja-JP",
|
|
@@ -6040,7 +6477,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
6040
6477
|
]
|
|
6041
6478
|
},
|
|
6042
6479
|
"Caption": {
|
|
6043
|
-
"description": "A caption for an image, chart, table or
|
|
6480
|
+
"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.",
|
|
6044
6481
|
"oneOf": [
|
|
6045
6482
|
{
|
|
6046
6483
|
"type": "string"
|
|
@@ -6083,11 +6520,11 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
6083
6520
|
"align": {
|
|
6084
6521
|
"type": "string",
|
|
6085
6522
|
"enum": [
|
|
6086
|
-
"
|
|
6523
|
+
"start",
|
|
6087
6524
|
"center",
|
|
6088
|
-
"
|
|
6525
|
+
"end"
|
|
6089
6526
|
],
|
|
6090
|
-
"description": "Horizontal alignment of the caption text within the block. Defaults to left."
|
|
6527
|
+
"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."
|
|
6091
6528
|
}
|
|
6092
6529
|
}
|
|
6093
6530
|
}
|
|
@@ -6142,6 +6579,104 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
6142
6579
|
}
|
|
6143
6580
|
}
|
|
6144
6581
|
},
|
|
6582
|
+
"FiniteNumber": {
|
|
6583
|
+
"type": "number",
|
|
6584
|
+
"minimum": -17976931348623157e292,
|
|
6585
|
+
"maximum": 17976931348623157e292,
|
|
6586
|
+
"description": "A finite number. JSON text such as 1e999 reads as Infinity in JavaScript and YAML has .inf and .nan; these bounds reject them."
|
|
6587
|
+
},
|
|
6588
|
+
"Line": {
|
|
6589
|
+
"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.",
|
|
6590
|
+
"anyOf": [
|
|
6591
|
+
{
|
|
6592
|
+
"const": "none",
|
|
6593
|
+
"description": "No line."
|
|
6594
|
+
},
|
|
6595
|
+
{
|
|
6596
|
+
"type": "object",
|
|
6597
|
+
"additionalProperties": false,
|
|
6598
|
+
"properties": {
|
|
6599
|
+
"color": {
|
|
6600
|
+
"$ref": "#/$defs/ColorRef",
|
|
6601
|
+
"description": "Line color: any ColorRef (eight-digit hex keeps its alpha)."
|
|
6602
|
+
},
|
|
6603
|
+
"width": {
|
|
6604
|
+
"type": "number",
|
|
6605
|
+
"minimum": 0,
|
|
6606
|
+
"maximum": 64,
|
|
6607
|
+
"description": "Line width in reference pixels at a 720-pixel short edge. 0 draws no line, the same as 'none'."
|
|
6608
|
+
},
|
|
6609
|
+
"dash": {
|
|
6610
|
+
"type": "string",
|
|
6611
|
+
"enum": [
|
|
6612
|
+
"solid",
|
|
6613
|
+
"dash",
|
|
6614
|
+
"dot"
|
|
6615
|
+
],
|
|
6616
|
+
"description": "Dash pattern, by the names Stroke.dash uses."
|
|
6617
|
+
}
|
|
6618
|
+
}
|
|
6619
|
+
}
|
|
6620
|
+
],
|
|
6621
|
+
"examples": [
|
|
6622
|
+
"none",
|
|
6623
|
+
{
|
|
6624
|
+
"width": 2
|
|
6625
|
+
},
|
|
6626
|
+
{
|
|
6627
|
+
"color": "accent2",
|
|
6628
|
+
"width": 2,
|
|
6629
|
+
"dash": "dash"
|
|
6630
|
+
}
|
|
6631
|
+
]
|
|
6632
|
+
},
|
|
6633
|
+
"ChartReferenceLine": {
|
|
6634
|
+
"type": "object",
|
|
6635
|
+
"additionalProperties": false,
|
|
6636
|
+
"required": [
|
|
6637
|
+
"value"
|
|
6638
|
+
],
|
|
6639
|
+
"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.",
|
|
6640
|
+
"properties": {
|
|
6641
|
+
"value": {
|
|
6642
|
+
"$ref": "#/$defs/FiniteNumber",
|
|
6643
|
+
"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."
|
|
6644
|
+
},
|
|
6645
|
+
"axis": {
|
|
6646
|
+
"type": "string",
|
|
6647
|
+
"enum": [
|
|
6648
|
+
"value",
|
|
6649
|
+
"secondary"
|
|
6650
|
+
],
|
|
6651
|
+
"default": "value",
|
|
6652
|
+
"description": "Secondary requires a combo chart with an actual secondary line series."
|
|
6653
|
+
},
|
|
6654
|
+
"label": {
|
|
6655
|
+
"type": "string",
|
|
6656
|
+
"minLength": 1,
|
|
6657
|
+
"pattern": "\\S",
|
|
6658
|
+
"description": "Optional nonblank plain text, shown verbatim. Omission draws no label."
|
|
6659
|
+
},
|
|
6660
|
+
"labelPosition": {
|
|
6661
|
+
"type": "string",
|
|
6662
|
+
"enum": [
|
|
6663
|
+
"start",
|
|
6664
|
+
"end"
|
|
6665
|
+
],
|
|
6666
|
+
"default": "end",
|
|
6667
|
+
"description": "Logical endpoint. Horizontal start/end mirror in RTL; on bars they mean top/bottom. Requires label."
|
|
6668
|
+
},
|
|
6669
|
+
"stroke": {
|
|
6670
|
+
"$ref": "#/$defs/Line",
|
|
6671
|
+
"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."
|
|
6672
|
+
}
|
|
6673
|
+
},
|
|
6674
|
+
"dependentRequired": {
|
|
6675
|
+
"labelPosition": [
|
|
6676
|
+
"label"
|
|
6677
|
+
]
|
|
6678
|
+
}
|
|
6679
|
+
},
|
|
6145
6680
|
"Chart": {
|
|
6146
6681
|
"type": "object",
|
|
6147
6682
|
"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]] } }`.',
|
|
@@ -6235,16 +6770,23 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
6235
6770
|
},
|
|
6236
6771
|
"minItems": 1,
|
|
6237
6772
|
"uniqueItems": true,
|
|
6238
|
-
"description": "Combo charts only: line series, by column name, plotted against a secondary value axis at the
|
|
6773
|
+
"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.",
|
|
6239
6774
|
"examples": [
|
|
6240
6775
|
[
|
|
6241
6776
|
"Margin"
|
|
6242
6777
|
]
|
|
6243
6778
|
]
|
|
6244
6779
|
},
|
|
6780
|
+
"referenceLines": {
|
|
6781
|
+
"type": "array",
|
|
6782
|
+
"items": {
|
|
6783
|
+
"$ref": "#/$defs/ChartReferenceLine"
|
|
6784
|
+
},
|
|
6785
|
+
"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."
|
|
6786
|
+
},
|
|
6245
6787
|
"axisTitles": {
|
|
6246
6788
|
"$ref": "#/$defs/ChartAxisTitles",
|
|
6247
|
-
"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,
|
|
6789
|
+
"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."
|
|
6248
6790
|
},
|
|
6249
6791
|
"legend": {
|
|
6250
6792
|
"type": "string",
|
|
@@ -6255,7 +6797,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
6255
6797
|
"left",
|
|
6256
6798
|
"right"
|
|
6257
6799
|
],
|
|
6258
|
-
"description": "Optional legend position. 'none' hides the legend. Absent
|
|
6800
|
+
"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."
|
|
6259
6801
|
},
|
|
6260
6802
|
"dataLabels": {
|
|
6261
6803
|
"oneOf": [
|
|
@@ -6266,7 +6808,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
6266
6808
|
"$ref": "#/$defs/ChartDataLabels"
|
|
6267
6809
|
}
|
|
6268
6810
|
],
|
|
6269
|
-
"description": "Optional data labels. true shows value labels at each type's default position
|
|
6811
|
+
"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."
|
|
6270
6812
|
},
|
|
6271
6813
|
"alt": {
|
|
6272
6814
|
"type": "string",
|
|
@@ -6292,7 +6834,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
6292
6834
|
},
|
|
6293
6835
|
"highlight": {
|
|
6294
6836
|
"$ref": "#/$defs/ChartHighlight",
|
|
6295
|
-
"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,
|
|
6837
|
+
"description": "Optional emphasis: the series and/or categories that carry the message. The engines draw the highlighted marks in the deck's primary (accent) color and every other mark in a muted neutral derived from the theme (a light 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."
|
|
6296
6838
|
}
|
|
6297
6839
|
}
|
|
6298
6840
|
},
|
|
@@ -6311,7 +6853,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
6311
6853
|
},
|
|
6312
6854
|
"value": {
|
|
6313
6855
|
"type": "string",
|
|
6314
|
-
"description": "Title of the value (Y) axis. On a combo chart, the primary (
|
|
6856
|
+
"description": "Title of the value (Y) axis. On a combo chart, the primary value axis (at the start of the plot).",
|
|
6315
6857
|
"examples": [
|
|
6316
6858
|
"Revenue ($M)",
|
|
6317
6859
|
"Customers"
|
|
@@ -6319,7 +6861,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
6319
6861
|
},
|
|
6320
6862
|
"secondary": {
|
|
6321
6863
|
"type": "string",
|
|
6322
|
-
"description": "Combo charts only: title of the secondary value axis at the
|
|
6864
|
+
"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'.",
|
|
6323
6865
|
"examples": [
|
|
6324
6866
|
"Margin (%)"
|
|
6325
6867
|
]
|
|
@@ -6330,14 +6872,13 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
6330
6872
|
"type": "object",
|
|
6331
6873
|
"additionalProperties": false,
|
|
6332
6874
|
"minProperties": 1,
|
|
6333
|
-
"description":
|
|
6875
|
+
"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.`,
|
|
6334
6876
|
"properties": {
|
|
6335
6877
|
"series": {
|
|
6336
6878
|
"type": "array",
|
|
6337
6879
|
"items": {
|
|
6338
6880
|
"type": "string"
|
|
6339
6881
|
},
|
|
6340
|
-
"minItems": 1,
|
|
6341
6882
|
"uniqueItems": true,
|
|
6342
6883
|
"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.",
|
|
6343
6884
|
"examples": [
|
|
@@ -6351,7 +6892,6 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
6351
6892
|
"items": {
|
|
6352
6893
|
"type": "string"
|
|
6353
6894
|
},
|
|
6354
|
-
"minItems": 1,
|
|
6355
6895
|
"uniqueItems": true,
|
|
6356
6896
|
"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.",
|
|
6357
6897
|
"examples": [
|
|
@@ -6406,7 +6946,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
6406
6946
|
"left",
|
|
6407
6947
|
"right"
|
|
6408
6948
|
],
|
|
6409
|
-
"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
|
|
6949
|
+
"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."
|
|
6410
6950
|
},
|
|
6411
6951
|
"separator": {
|
|
6412
6952
|
"type": "string",
|
|
@@ -7064,11 +7604,11 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
7064
7604
|
"align": {
|
|
7065
7605
|
"type": "string",
|
|
7066
7606
|
"enum": [
|
|
7067
|
-
"
|
|
7607
|
+
"start",
|
|
7068
7608
|
"center",
|
|
7069
|
-
"
|
|
7609
|
+
"end"
|
|
7070
7610
|
],
|
|
7071
|
-
"description": "Horizontal text alignment inside the cell."
|
|
7611
|
+
"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."
|
|
7072
7612
|
},
|
|
7073
7613
|
"verticalAlign": {
|
|
7074
7614
|
"type": "string",
|
|
@@ -7132,34 +7672,8 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
7132
7672
|
"description": "Text insets in reference pixels. Defaults: top 8, right 10, bottom 4, left 10."
|
|
7133
7673
|
},
|
|
7134
7674
|
"TableCellBorder": {
|
|
7135
|
-
"
|
|
7136
|
-
"
|
|
7137
|
-
"required": [
|
|
7138
|
-
"color",
|
|
7139
|
-
"width"
|
|
7140
|
-
],
|
|
7141
|
-
"properties": {
|
|
7142
|
-
"color": {
|
|
7143
|
-
"$ref": "#/$defs/ColorRef",
|
|
7144
|
-
"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."
|
|
7145
|
-
},
|
|
7146
|
-
"width": {
|
|
7147
|
-
"type": "number",
|
|
7148
|
-
"minimum": 0,
|
|
7149
|
-
"maximum": 32,
|
|
7150
|
-
"description": "Border width in reference pixels; 0 removes this edge."
|
|
7151
|
-
},
|
|
7152
|
-
"dash": {
|
|
7153
|
-
"type": "string",
|
|
7154
|
-
"enum": [
|
|
7155
|
-
"solid",
|
|
7156
|
-
"dash",
|
|
7157
|
-
"dot"
|
|
7158
|
-
],
|
|
7159
|
-
"description": "Default solid."
|
|
7160
|
-
}
|
|
7161
|
-
},
|
|
7162
|
-
"description": "One explicit cell border."
|
|
7675
|
+
"$ref": "#/$defs/Line",
|
|
7676
|
+
"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'."
|
|
7163
7677
|
},
|
|
7164
7678
|
"Catalogs": {
|
|
7165
7679
|
"type": "object",
|
|
@@ -7386,14 +7900,14 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
7386
7900
|
},
|
|
7387
7901
|
"iconSets": {
|
|
7388
7902
|
"$ref": "#/$defs/CatalogRecords",
|
|
7389
|
-
"description": 'Icon-set records keyed by set id
|
|
7903
|
+
"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>".'
|
|
7390
7904
|
}
|
|
7391
7905
|
}
|
|
7392
7906
|
},
|
|
7393
7907
|
"IconReference": {
|
|
7394
7908
|
"type": "string",
|
|
7395
7909
|
"pattern": "^(?:[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*|[a-z][a-z0-9-]*|(?:asset:|https://|data:|\\./|\\.\\./)\\S+)$",
|
|
7396
|
-
"description": 'An icon
|
|
7910
|
+
"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.',
|
|
7397
7911
|
"examples": [
|
|
7398
7912
|
"lucide:truck",
|
|
7399
7913
|
"tabler:rocket",
|
|
@@ -7403,7 +7917,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
7403
7917
|
},
|
|
7404
7918
|
"Icons": {
|
|
7405
7919
|
"type": "object",
|
|
7406
|
-
"description": 'Deck-local icons
|
|
7920
|
+
"description": 'Deck-local icons, keyed by name: SVG text ("<svg \u2026>") 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.',
|
|
7407
7921
|
"propertyNames": {
|
|
7408
7922
|
"pattern": "^[a-z][a-z0-9-]*$"
|
|
7409
7923
|
},
|
|
@@ -7465,13 +7979,14 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
7465
7979
|
"LanguageTag": {
|
|
7466
7980
|
"type": "string",
|
|
7467
7981
|
"pattern": "^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$",
|
|
7468
|
-
"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.",
|
|
7982
|
+
"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.",
|
|
7469
7983
|
"examples": [
|
|
7470
7984
|
"en-US",
|
|
7471
7985
|
"en-GB",
|
|
7472
7986
|
"ja",
|
|
7473
7987
|
"zh-Hans",
|
|
7474
|
-
"ar-SA"
|
|
7988
|
+
"ar-SA",
|
|
7989
|
+
"ar-SA-u-nu-latn"
|
|
7475
7990
|
]
|
|
7476
7991
|
},
|
|
7477
7992
|
"Composition": {
|
|
@@ -8135,18 +8650,18 @@ var theme = {
|
|
|
8135
8650
|
"titleAlignment": {
|
|
8136
8651
|
"type": "string",
|
|
8137
8652
|
"enum": [
|
|
8138
|
-
"
|
|
8653
|
+
"start",
|
|
8139
8654
|
"center",
|
|
8140
|
-
"
|
|
8655
|
+
"end"
|
|
8141
8656
|
],
|
|
8142
8657
|
"description": "As design.titleAlignment of a deck."
|
|
8143
8658
|
},
|
|
8144
8659
|
"contentAlignment": {
|
|
8145
8660
|
"type": "string",
|
|
8146
8661
|
"enum": [
|
|
8147
|
-
"
|
|
8662
|
+
"start",
|
|
8148
8663
|
"center",
|
|
8149
|
-
"
|
|
8664
|
+
"end"
|
|
8150
8665
|
],
|
|
8151
8666
|
"description": "As design.contentAlignment of a deck."
|
|
8152
8667
|
},
|
|
@@ -8193,7 +8708,7 @@ var theme = {
|
|
|
8193
8708
|
"examples": [
|
|
8194
8709
|
{
|
|
8195
8710
|
"contentBox": true,
|
|
8196
|
-
"titleAlignment": "
|
|
8711
|
+
"titleAlignment": "start"
|
|
8197
8712
|
}
|
|
8198
8713
|
]
|
|
8199
8714
|
},
|
|
@@ -8329,6 +8844,12 @@ var theme = {
|
|
|
8329
8844
|
},
|
|
8330
8845
|
"slot": {
|
|
8331
8846
|
"$ref": "#/$defs/ThemeBackgroundSlot"
|
|
8847
|
+
},
|
|
8848
|
+
"opacity": {
|
|
8849
|
+
"type": "number",
|
|
8850
|
+
"minimum": 0,
|
|
8851
|
+
"maximum": 1,
|
|
8852
|
+
"description": "Background opacity from 0 (fully transparent) to 1 (fully opaque). Default 1; the selected theme slot remains unchanged."
|
|
8332
8853
|
}
|
|
8333
8854
|
}
|
|
8334
8855
|
}
|
|
@@ -8401,7 +8922,7 @@ var layout = {
|
|
|
8401
8922
|
"row",
|
|
8402
8923
|
"column"
|
|
8403
8924
|
],
|
|
8404
|
-
"description": "How the record's 'regions' are laid out: 'row' places them side by side
|
|
8925
|
+
"description": "How the record's 'regions' are laid out: 'row' places them side by side from the start edge in reading order (left to right; right to left in a right-to-left deck); 'column' stacks them top to bottom. Default 'column'.",
|
|
8405
8926
|
"examples": [
|
|
8406
8927
|
"row",
|
|
8407
8928
|
"column"
|
|
@@ -8590,11 +9111,11 @@ var layout = {
|
|
|
8590
9111
|
"middle",
|
|
8591
9112
|
"bottom"
|
|
8592
9113
|
],
|
|
8593
|
-
"description": "Vertical position of the heading group in its area when the area is sized (a number): 'middle' (default) centers it, 'bottom' sets it at the foot of the area, as a cover or section sets its display title low
|
|
9114
|
+
"description": "Vertical position of the heading group in its area when the area is sized (a number): 'middle' (default) centers it, 'bottom' sets it at the foot of the area, as a cover or section sets its display title low, 'top' at the top. An 'auto' area is as tall as the group, so the anchor changes nothing there. A heading region never inherits the 'anchor' of the record or a split."
|
|
8594
9115
|
},
|
|
8595
9116
|
"rule": {
|
|
8596
9117
|
"type": "boolean",
|
|
8597
|
-
"description": "'title' only: draw a short accent rule (80 by 5 px at a 720 px short edge) half a gap above the title, at the title's start edge, on a slide with a title and no tag; a tag is the group's eyebrow and takes the rule's place
|
|
9118
|
+
"description": "'title' only: draw a short accent rule (80 by 5 px at a 720 px short edge) half a gap above the title, at the title's start edge, on a slide with a title and no tag; a tag is the group's eyebrow and takes the rule's place. Engines draw it in the tag's color, the primary or the text color where the primary is under 4.5:1 on the slide. Default false."
|
|
8598
9119
|
}
|
|
8599
9120
|
}
|
|
8600
9121
|
},
|
|
@@ -8652,7 +9173,7 @@ var layout = {
|
|
|
8652
9173
|
"subtitle"
|
|
8653
9174
|
]
|
|
8654
9175
|
},
|
|
8655
|
-
"description": "The region's name, lowercase kebab-case, unique across the whole record. A block targets it with 'region': '<name>'. It may not be 'title' (those are heading regions), 'tag', 'auto' or one of the promoted-region words ('
|
|
9176
|
+
"description": "The region's name, lowercase kebab-case, unique across the whole record. A block targets it with 'region': '<name>'. It may not be 'title' (those are heading regions), 'tag', 'auto' or one of the promoted-region words ('start', 'center', 'end', 'top', 'middle', 'bottom'), so a Markdown block's region= option stays unambiguous: the validate finding opf/layout-region.",
|
|
8656
9177
|
"examples": [
|
|
8657
9178
|
"main",
|
|
8658
9179
|
"aside",
|
|
@@ -8684,7 +9205,7 @@ var layout = {
|
|
|
8684
9205
|
"group"
|
|
8685
9206
|
]
|
|
8686
9207
|
},
|
|
8687
|
-
"description": "Content kinds the region takes: the body content kinds, and 'group' for a content group of any content. A region that takes 'image' also takes a shape block
|
|
9208
|
+
"description": "Content kinds the region takes: the body content kinds, and 'group' for a content group of any content. A region that takes 'image' also takes a shape block. A group is also accepted where every one of its leaf kinds is. Omitted: every body content kind and 'group'.",
|
|
8688
9209
|
"examples": [
|
|
8689
9210
|
[
|
|
8690
9211
|
"text",
|
|
@@ -8751,7 +9272,7 @@ var layout = {
|
|
|
8751
9272
|
"steps",
|
|
8752
9273
|
"numbered"
|
|
8753
9274
|
],
|
|
8754
|
-
"description": "The region lists the steps of a sequence
|
|
9275
|
+
"description": "The region lists the steps of a sequence. 'steps': two or more text or list blocks are the steps, each under a numbered badge (an accent circle with its numeral; a one-entry numbered list gives the badge its number and draws as a heading over its description) on one connector line through the badge centers; a lone list's entries are the steps, each beside its badge on a connector down the badge column; a lone list of 3 to 6 entries of one or two words is a flow of chips joined by arrows. 'numbered' (an agenda, ordered by nature): every list of two or more entries of one level draws its entries beside badges, numbered or not; an unnumbered list is counted in arabic, continuing from the region's previous unnumbered list, as drawing only (the document keeps no numbering). Steps keep the text size they have without the badges: a slide whose blocks would get smaller draws them as before. Absent: the region's content draws as any other."
|
|
8755
9276
|
},
|
|
8756
9277
|
"arrangement": {
|
|
8757
9278
|
"type": "string",
|
|
@@ -8761,9 +9282,20 @@ var layout = {
|
|
|
8761
9282
|
"cycle",
|
|
8762
9283
|
"chevrons",
|
|
8763
9284
|
"flow",
|
|
8764
|
-
"vertical-flow"
|
|
9285
|
+
"vertical-flow",
|
|
9286
|
+
"org-chart",
|
|
9287
|
+
"hierarchy",
|
|
9288
|
+
"venn"
|
|
9289
|
+
],
|
|
9290
|
+
"description": "The region draws its lone list of one level as a diagram (docs/smartart.md), in the first design that holds every entry at one size, the list's role size or larger (up to 1.5 times), never smaller: PowerPoint's own geometry (Basic Pyramid: 1 to 8 entries as stacked levels, the first at the apex; Basic Matrix: exactly four entries as the quadrants of a centered square over a diamond; Basic Cycle: 1 to 8 entries as circles on a ring, the first at the top and the rest clockwise, with an arrow from each to the next, in a frame of the cycle's own proportion centered in the region), which the PPTX export writes as live SmartArt where PowerPoint lays it out as the preview draws it; else OPF's own design (a stepped pyramid with each entry beside its level, four quadrants filling the region, or rounded rectangles on a ring filling the region with an arrow from each to the next). A matrix of other than four entries draws a grid of cards. 'chevrons' (Basic Chevron Process: 1 to 8 entries as a row of chevrons), 'flow' (Basic Process: a row of boxes with arrows between them) and 'vertical-flow' (Vertical Process: a column of boxes with arrows between them), in PowerPoint's geometry where it holds the entries, else OPF's own row or column filling the region. Nodes are filled in the primary color with a 1.5 pt outline in the background color (cards in the card neutral). A cycle's arrows are the primary lightened 40%. A list with nested entries, descriptions, icons or numbering, more than 8 levels or steps, or one no design holds, draws as a list; opf/arrangement-adapted (info) reports the cards and the lists. 'org-chart' and 'hierarchy' take a list whose entry levels form one tree (one root at the first level, each child one level below its parent); a skipped level or a second root keeps the authored list, reported by opf/arrangement-adapted. 'venn' draws 1 to 7 flat sets. These arrangements never draw the list smaller than its own size; whether PowerPoint can edit the result as native shapes and text is decided separately. Absent: the region's content draws as any other."
|
|
9291
|
+
},
|
|
9292
|
+
"pyramidDirection": {
|
|
9293
|
+
"type": "string",
|
|
9294
|
+
"enum": [
|
|
9295
|
+
"up",
|
|
9296
|
+
"down"
|
|
8765
9297
|
],
|
|
8766
|
-
"description": "
|
|
9298
|
+
"description": "For arrangement 'pyramid': 'up' (default) puts the narrow tip first, at the top; 'down' puts the widest level first and the tip at the bottom. Entries retain their authored top-to-bottom order. Both the continuous and stepped designs use shared geometry; downward pyramids export as editable native shapes until live SmartArt is qualified."
|
|
8767
9299
|
},
|
|
8768
9300
|
"anchor": {
|
|
8769
9301
|
"type": "string",
|
|
@@ -8785,6 +9317,25 @@ var layout = {
|
|
|
8785
9317
|
},
|
|
8786
9318
|
"required": [
|
|
8787
9319
|
"name"
|
|
9320
|
+
],
|
|
9321
|
+
"allOf": [
|
|
9322
|
+
{
|
|
9323
|
+
"if": {
|
|
9324
|
+
"required": [
|
|
9325
|
+
"pyramidDirection"
|
|
9326
|
+
]
|
|
9327
|
+
},
|
|
9328
|
+
"then": {
|
|
9329
|
+
"required": [
|
|
9330
|
+
"arrangement"
|
|
9331
|
+
],
|
|
9332
|
+
"properties": {
|
|
9333
|
+
"arrangement": {
|
|
9334
|
+
"const": "pyramid"
|
|
9335
|
+
}
|
|
9336
|
+
}
|
|
9337
|
+
}
|
|
9338
|
+
}
|
|
8788
9339
|
]
|
|
8789
9340
|
},
|
|
8790
9341
|
"DesignHints": {
|
|
@@ -8795,20 +9346,20 @@ var layout = {
|
|
|
8795
9346
|
"titleAlignment": {
|
|
8796
9347
|
"type": "string",
|
|
8797
9348
|
"enum": [
|
|
8798
|
-
"
|
|
9349
|
+
"start",
|
|
8799
9350
|
"center",
|
|
8800
|
-
"
|
|
9351
|
+
"end"
|
|
8801
9352
|
],
|
|
8802
|
-
"description": "Horizontal alignment of the title heading area."
|
|
9353
|
+
"description": "Horizontal alignment of the title heading area. Logical, as design.titleAlignment of a deck: 'start' is the edge a paragraph starts on."
|
|
8803
9354
|
},
|
|
8804
9355
|
"contentAlignment": {
|
|
8805
9356
|
"type": "string",
|
|
8806
9357
|
"enum": [
|
|
8807
|
-
"
|
|
9358
|
+
"start",
|
|
8808
9359
|
"center",
|
|
8809
|
-
"
|
|
9360
|
+
"end"
|
|
8810
9361
|
],
|
|
8811
|
-
"description": "Horizontal alignment of the body regions."
|
|
9362
|
+
"description": "Horizontal alignment of the body regions. Logical, as design.contentAlignment of a deck: 'start' is the edge a paragraph starts on."
|
|
8812
9363
|
},
|
|
8813
9364
|
"contentBox": {
|
|
8814
9365
|
"type": "boolean",
|
|
@@ -8828,8 +9379,8 @@ var layout = {
|
|
|
8828
9379
|
"none",
|
|
8829
9380
|
"top",
|
|
8830
9381
|
"bottom",
|
|
8831
|
-
"
|
|
8832
|
-
"
|
|
9382
|
+
"start",
|
|
9383
|
+
"end"
|
|
8833
9384
|
],
|
|
8834
9385
|
"description": "Where the primary chart sits relative to supporting content on automatic slides. Template layouts express this arrangement with their regions; chartPrimary does not override a template."
|
|
8835
9386
|
},
|
|
@@ -8876,7 +9427,7 @@ var layout = {
|
|
|
8876
9427
|
"$ref": "#/$defs/LayoutVariantRole"
|
|
8877
9428
|
}
|
|
8878
9429
|
],
|
|
8879
|
-
"description": "The color variant slides on this layout draw on
|
|
9430
|
+
"description": "The color variant slides on this layout draw on: a background slot ('accent1', 'dark1', ...) or the ColorVariant object, as design.variant, or a value relative to the deck's own variant (LayoutVariantRole: 'surface', 'brand'), so the layout keeps the deck's tone. Unlike the other keys it outranks the deck's design and the theme: the slide's own design.variant or design.background wins, then this, then the deck's variant or background, then the theme's. It hides a background of the deck or theme (the slide is the variant's bg1), and without an accent order of its own it keeps the deck's.",
|
|
8880
9431
|
"examples": [
|
|
8881
9432
|
"accent1",
|
|
8882
9433
|
"surface",
|
|
@@ -8891,7 +9442,7 @@ var layout = {
|
|
|
8891
9442
|
"surface",
|
|
8892
9443
|
"brand"
|
|
8893
9444
|
],
|
|
8894
|
-
"description": "A layout variant relative to the deck's own variant
|
|
9445
|
+
"description": "A layout variant relative to the deck's own variant. 'surface' is the deck's secondary surface on its own side: light2 on a light deck and dark2 on a dark one (light1 or dark1 where the deck is already on light2 or dark2), so a statement stands off the deck without changing its tone. 'brand' is the scheme's brand dark, dark2 (dark1 where the deck is already on dark2), with light text: a closing slide's strong surface on a light or a dark deck."
|
|
8895
9446
|
},
|
|
8896
9447
|
"Composition": {
|
|
8897
9448
|
"type": "object",
|
|
@@ -10229,7 +10780,7 @@ var iconSet = {
|
|
|
10229
10780
|
"$id": "https://openpresentation.org/schema/opf-icon-set/v1",
|
|
10230
10781
|
"$comment": "The v1 in the $id is the pre-1.0 line, not a frozen contract: this schema may change in any 0.x minor release. The release that produced this copy is the version of the @openpresentation/opf package it came from (opf --version; opf schemas lists it next to each id). See docs/schema-versioning.md.",
|
|
10231
10782
|
"title": "Icon Set",
|
|
10232
|
-
"description": "Schema for icon-set records
|
|
10783
|
+
"description": "Schema for icon-set records: one set of icons that share a viewBox and a style, each icon as SVG path data. An OPF `icon` names one as `<set>:<name>` (docs/icons.md). @openpresentation/gallery ships Lucide and Tabler outline, generated from their npm packages; a host registers them as `galleryIconSets()` of `@openpresentation/gallery/icon-sets` and loads only the icons a deck uses, and a document embeds only the icons it uses under `catalogs.<group>.iconSets.<id>` (a record without `$schema`, `id`, `licenseText` or `tags`).",
|
|
10233
10784
|
"type": "object",
|
|
10234
10785
|
"required": [
|
|
10235
10786
|
"$schema",
|