@openpresentation/opf 0.32.1 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/browser.js +22 -21
- package/dist/catalog-refs-CoIrOdAw.d.ts +937 -0
- package/dist/{catalog-schemas-LdqOPebq.d.ts → catalog-schemas-FjLRPtjB.d.ts} +10 -4
- package/dist/{chart-data-oIZQlFGi.d.ts → chart-data-B_k-WTex.d.ts} +7 -4
- package/dist/{chunk-PB7ME64J.js → chunk-244OPLAV.js} +1 -1
- package/dist/{chunk-IT7FQKED.js → chunk-2HX4BGAS.js} +6 -6
- package/dist/{chunk-2E6CDYL2.js → chunk-36DLVJGW.js} +19 -16
- package/dist/{chunk-XQO2CT6Q.js → chunk-3THGTDL2.js} +2 -2
- package/dist/{chunk-CLRYHWQN.js → chunk-42JBXJKW.js} +187 -25
- package/dist/chunk-BLCDUM7B.js +7 -0
- package/dist/{chunk-NVAJASOD.js → chunk-CJVKOJ6B.js} +10195 -2036
- package/dist/{chunk-XFHXQCXL.js → chunk-DQ7QYOUV.js} +99 -13
- package/dist/{chunk-NEJ32O7X.js → chunk-F6BXO4AI.js} +1 -1
- package/dist/{chunk-OXLA4HXQ.js → chunk-FAXO3SUE.js} +1196 -313
- package/dist/{chunk-J63CIRIV.js → chunk-FIQMAIZV.js} +4 -4
- package/dist/{chunk-PJSPHHRK.js → chunk-FK5XG742.js} +3 -16
- package/dist/{chunk-HKUV7NEN.js → chunk-HHVQ2SDT.js} +1 -1
- package/dist/{chunk-SZFO3MAJ.js → chunk-HUGVYHZ2.js} +4 -4
- package/dist/{chunk-LEF4X4KI.js → chunk-LCT5ZV3Q.js} +2400 -222
- package/dist/chunk-NLJFNCZ4.js +1560 -0
- package/dist/{chunk-GM7WFPGG.js → chunk-PRXZD2II.js} +6 -1
- package/dist/{chunk-YFJIIIOL.js → chunk-QGJVOPLG.js} +3 -3
- package/dist/{chunk-F7DN33UL.js → chunk-QGTJF7HV.js} +16 -14
- package/dist/{chunk-ONVFUVQ5.js → chunk-RUV7CCE6.js} +136 -31
- package/dist/{chunk-SW676APJ.js → chunk-U7TYSPYM.js} +2 -2
- package/dist/chunk-UJZN2ZH6.js +1 -0
- package/dist/chunk-VDZXNNZF.js +221 -0
- package/dist/{chunk-UJSAR6GF.js → chunk-W4DYDRV2.js} +21 -0
- package/dist/chunk-WCPDN7AY.js +642 -0
- package/dist/{chunk-BBVW5ZC2.js → chunk-WMFT5R7I.js} +2 -2
- package/dist/{chunk-AQEAZDL2.js → chunk-XJUMFH33.js} +2 -1
- package/dist/{composition-Ds6WHyO7.d.ts → composition-CvtvgBDE.d.ts} +2783 -873
- package/dist/composition.d.ts +4 -3
- package/dist/composition.js +3 -2
- package/dist/{conversion-CdzrTxib.d.ts → conversion-B_5AKTYQ.d.ts} +39 -10
- package/dist/conversion-CMBGOTAC.js +25 -0
- package/dist/convert.d.ts +5 -4
- package/dist/convert.js +17 -13
- package/dist/data.d.ts +2 -2
- package/dist/data.js +4 -3
- package/dist/{deck-report-CKDNQ2t4.d.ts → deck-report-BVlQZ42f.d.ts} +3 -3
- package/dist/deck.d.ts +7 -6
- package/dist/deck.js +13 -12
- package/dist/diagram-engine-eager.js +6 -2
- package/dist/diagram-engine-lazy.js +14 -1
- package/dist/diagram-plantuml-XRZ6VAOL.js +3 -0
- package/dist/diff.js +6 -5
- package/dist/docs.js +88 -52
- package/dist/examples.js +28745 -18393
- package/dist/font-policy.js +2 -2
- package/dist/format.js +3 -3
- package/dist/ids.js +6 -5
- package/dist/index.d.ts +19 -16
- package/dist/index.js +37 -26
- package/dist/markdown.d.ts +3 -2
- package/dist/markdown.js +10 -9
- package/dist/node-engine.d.ts +44 -11
- package/dist/node-engine.js +47 -28
- package/dist/{pagination-DRZ_JNFY.d.ts → pagination-CZQQYk7L.d.ts} +22 -4
- package/dist/pagination.d.ts +5 -4
- package/dist/pagination.js +6 -5
- package/dist/patch.js +5 -4
- package/dist/precompiled.js +3 -3
- package/dist/{presentation-DnD7mfmf.d.ts → presentation-s9262acV.d.ts} +1172 -208
- package/dist/repo-readme.js +2 -2
- package/dist/schema-engine-ajv.js +2 -2
- package/dist/schema-engine-precompiled.js +3 -3
- package/dist/schema.d.ts +3 -3
- package/dist/schema.js +5 -4
- package/dist/schemas.d.ts +56 -4
- package/dist/schemas.js +2 -2
- package/dist/shape-catalog.d.ts +98 -0
- package/dist/shape-catalog.js +302 -0
- package/dist/shape-engine-eager.js +9 -0
- package/dist/shape-engine-lazy.js +12 -0
- package/dist/shape-engine-module-N74FCHGY.js +3 -0
- package/dist/shape-geometry.d.ts +126 -0
- package/dist/shape-geometry.js +2 -0
- package/dist/source.d.ts +10 -5
- package/dist/source.js +12 -11
- package/dist/spec/README.md +1 -1
- 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 +10699 -0
- package/dist/spec/reference/preset-geometry.schema.json +126 -0
- package/dist/spec/schemas/catalog-index.schema.json +1 -0
- package/dist/spec/schemas/chart-type.schema.json +4 -4
- package/dist/spec/schemas/icon-set.schema.json +75 -0
- package/dist/spec/schemas/layout.schema.json +82 -23
- package/dist/spec/schemas/opf.schema.json +1616 -296
- package/dist/spec/schemas/theme.schema.json +11 -5
- package/dist/spec-files.d.ts +1 -1
- package/dist/spec-files.js +2 -2
- package/dist/symbol-font-encodings.js +1 -1
- package/dist/types.d.ts +83 -71
- package/dist/{validation-types-DxyYPebs.d.ts → validation-types-CYbsUuZ9.d.ts} +8 -5
- package/dist/validator.d.ts +35 -7
- package/dist/validator.js +5 -4
- package/dist/yaml.d.ts +3 -2
- package/dist/yaml.js +9 -8
- package/package.json +22 -6
- package/dist/catalog-refs-kAefsZWT.d.ts +0 -129
- package/dist/chunk-DGS47ONG.js +0 -1
- package/dist/conversion-5FUDQPED.js +0 -24
|
@@ -337,6 +337,10 @@ var presentation = {
|
|
|
337
337
|
"$ref": "#/$defs/Assets",
|
|
338
338
|
"description": "Optional reusable asset registry for images, data files, videos, documents, fonts, and other resources referenced elsewhere in the deck via 'asset:<id>' strings."
|
|
339
339
|
},
|
|
340
|
+
"icons": {
|
|
341
|
+
"$ref": "#/$defs/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
|
+
},
|
|
340
344
|
"catalogs": {
|
|
341
345
|
"$ref": "#/$defs/Catalogs",
|
|
342
346
|
"description": "The catalog records this document embeds, grouped by the catalog they came from: 'default' (the catalog bare ids come from), 'custom' (records the document defines itself) and any number of named catalogs ('acme', referenced as 'acme:<id>'). A saved document embeds every record it references, so it renders the same with no catalog registered. See Catalogs."
|
|
@@ -426,8 +430,107 @@ var presentation = {
|
|
|
426
430
|
}
|
|
427
431
|
]
|
|
428
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
|
+
},
|
|
429
531
|
"Audience": {
|
|
430
532
|
"type": "object",
|
|
533
|
+
"additionalProperties": false,
|
|
431
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.",
|
|
432
535
|
"anyOf": [
|
|
433
536
|
{
|
|
@@ -524,6 +627,7 @@ var presentation = {
|
|
|
524
627
|
},
|
|
525
628
|
"Purpose": {
|
|
526
629
|
"type": "object",
|
|
630
|
+
"additionalProperties": false,
|
|
527
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.",
|
|
528
632
|
"anyOf": [
|
|
529
633
|
{
|
|
@@ -597,6 +701,7 @@ var presentation = {
|
|
|
597
701
|
},
|
|
598
702
|
"Language": {
|
|
599
703
|
"type": "object",
|
|
704
|
+
"additionalProperties": false,
|
|
600
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'.",
|
|
601
706
|
"required": [
|
|
602
707
|
"bcp47"
|
|
@@ -655,7 +760,7 @@ var presentation = {
|
|
|
655
760
|
"ltr",
|
|
656
761
|
"rtl"
|
|
657
762
|
],
|
|
658
|
-
"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."
|
|
659
764
|
},
|
|
660
765
|
"script": {
|
|
661
766
|
"type": "string",
|
|
@@ -701,6 +806,7 @@ var presentation = {
|
|
|
701
806
|
},
|
|
702
807
|
"Tone": {
|
|
703
808
|
"type": "object",
|
|
809
|
+
"additionalProperties": false,
|
|
704
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.",
|
|
705
811
|
"anyOf": [
|
|
706
812
|
{
|
|
@@ -776,6 +882,7 @@ var presentation = {
|
|
|
776
882
|
},
|
|
777
883
|
"Organization": {
|
|
778
884
|
"type": "object",
|
|
885
|
+
"additionalProperties": false,
|
|
779
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.",
|
|
780
887
|
"required": [
|
|
781
888
|
"id",
|
|
@@ -891,6 +998,7 @@ var presentation = {
|
|
|
891
998
|
},
|
|
892
999
|
"Speaker": {
|
|
893
1000
|
"type": "object",
|
|
1001
|
+
"additionalProperties": false,
|
|
894
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.",
|
|
895
1003
|
"required": [
|
|
896
1004
|
"id",
|
|
@@ -1012,6 +1120,7 @@ var presentation = {
|
|
|
1012
1120
|
},
|
|
1013
1121
|
"Design": {
|
|
1014
1122
|
"type": "object",
|
|
1123
|
+
"additionalProperties": false,
|
|
1015
1124
|
"description": "Visual design system applied to the presentation; individual slides may override fields via Slide.design.",
|
|
1016
1125
|
"properties": {
|
|
1017
1126
|
"theme": {
|
|
@@ -1136,7 +1245,7 @@ var presentation = {
|
|
|
1136
1245
|
"const": false
|
|
1137
1246
|
}
|
|
1138
1247
|
],
|
|
1139
|
-
"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.",
|
|
1140
1249
|
"examples": [
|
|
1141
1250
|
"var:organization.logo.wordmark",
|
|
1142
1251
|
"var:organization.beta.logo",
|
|
@@ -1184,10 +1293,10 @@ var presentation = {
|
|
|
1184
1293
|
"examples": [
|
|
1185
1294
|
false,
|
|
1186
1295
|
{
|
|
1187
|
-
"
|
|
1296
|
+
"start": {
|
|
1188
1297
|
"text": "{{slide.section}}"
|
|
1189
1298
|
},
|
|
1190
|
-
"
|
|
1299
|
+
"end": {
|
|
1191
1300
|
"image": "var:organization.logo.icon"
|
|
1192
1301
|
}
|
|
1193
1302
|
}
|
|
@@ -1207,13 +1316,13 @@ var presentation = {
|
|
|
1207
1316
|
"examples": [
|
|
1208
1317
|
false,
|
|
1209
1318
|
{
|
|
1210
|
-
"
|
|
1319
|
+
"start": {
|
|
1211
1320
|
"image": "var:organization.logo.icon"
|
|
1212
1321
|
},
|
|
1213
1322
|
"center": {
|
|
1214
1323
|
"text": "Confidential"
|
|
1215
1324
|
},
|
|
1216
|
-
"
|
|
1325
|
+
"end": {
|
|
1217
1326
|
"text": "{{slide.number}}"
|
|
1218
1327
|
}
|
|
1219
1328
|
}
|
|
@@ -1222,20 +1331,20 @@ var presentation = {
|
|
|
1222
1331
|
"titleAlignment": {
|
|
1223
1332
|
"type": "string",
|
|
1224
1333
|
"enum": [
|
|
1225
|
-
"
|
|
1334
|
+
"start",
|
|
1226
1335
|
"center",
|
|
1227
|
-
"
|
|
1336
|
+
"end"
|
|
1228
1337
|
],
|
|
1229
|
-
"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."
|
|
1230
1339
|
},
|
|
1231
1340
|
"contentAlignment": {
|
|
1232
1341
|
"type": "string",
|
|
1233
1342
|
"enum": [
|
|
1234
|
-
"
|
|
1343
|
+
"start",
|
|
1235
1344
|
"center",
|
|
1236
|
-
"
|
|
1345
|
+
"end"
|
|
1237
1346
|
],
|
|
1238
|
-
"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."
|
|
1239
1348
|
},
|
|
1240
1349
|
"contentBox": {
|
|
1241
1350
|
"type": "boolean",
|
|
@@ -1247,7 +1356,7 @@ var presentation = {
|
|
|
1247
1356
|
"horizontal",
|
|
1248
1357
|
"vertical"
|
|
1249
1358
|
],
|
|
1250
|
-
"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."
|
|
1251
1360
|
},
|
|
1252
1361
|
"chartPrimary": {
|
|
1253
1362
|
"type": "string",
|
|
@@ -1255,10 +1364,10 @@ var presentation = {
|
|
|
1255
1364
|
"none",
|
|
1256
1365
|
"top",
|
|
1257
1366
|
"bottom",
|
|
1258
|
-
"
|
|
1259
|
-
"
|
|
1367
|
+
"start",
|
|
1368
|
+
"end"
|
|
1260
1369
|
],
|
|
1261
|
-
"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."
|
|
1262
1371
|
},
|
|
1263
1372
|
"imageFit": {
|
|
1264
1373
|
"type": "string",
|
|
@@ -1285,18 +1394,28 @@ var presentation = {
|
|
|
1285
1394
|
"stack",
|
|
1286
1395
|
"rows"
|
|
1287
1396
|
],
|
|
1288
|
-
"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."
|
|
1289
1398
|
},
|
|
1290
1399
|
"mirror": {
|
|
1291
1400
|
"type": "boolean",
|
|
1292
|
-
"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."
|
|
1293
1402
|
}
|
|
1294
1403
|
}
|
|
1295
1404
|
},
|
|
1296
1405
|
"ColorScheme": {
|
|
1297
1406
|
"type": "object",
|
|
1407
|
+
"additionalProperties": false,
|
|
1298
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'.",
|
|
1299
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
|
+
},
|
|
1300
1419
|
"id": {
|
|
1301
1420
|
"$ref": "#/$defs/CatalogReference",
|
|
1302
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.",
|
|
@@ -1468,6 +1587,7 @@ var presentation = {
|
|
|
1468
1587
|
},
|
|
1469
1588
|
"FontScheme": {
|
|
1470
1589
|
"type": "object",
|
|
1590
|
+
"additionalProperties": false,
|
|
1471
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'.",
|
|
1472
1592
|
"properties": {
|
|
1473
1593
|
"id": {
|
|
@@ -1633,6 +1753,7 @@ var presentation = {
|
|
|
1633
1753
|
},
|
|
1634
1754
|
"Dimensions": {
|
|
1635
1755
|
"type": "object",
|
|
1756
|
+
"additionalProperties": false,
|
|
1636
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.",
|
|
1637
1758
|
"properties": {
|
|
1638
1759
|
"preset": {
|
|
@@ -1719,14 +1840,79 @@ var presentation = {
|
|
|
1719
1840
|
{
|
|
1720
1841
|
"type": "string",
|
|
1721
1842
|
"pattern": "^var:[a-z][a-z0-9-]*$"
|
|
1843
|
+
},
|
|
1844
|
+
{
|
|
1845
|
+
"$ref": "#/$defs/ColorTransform"
|
|
1722
1846
|
}
|
|
1723
1847
|
],
|
|
1724
|
-
"description":
|
|
1848
|
+
"description": `A color value or reference, enforced on shape fills and strokes, image strokes, styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors. Four forms:
|
|
1849
|
+
- Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
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).
|
|
1851
|
+
- Variable reference: 'var:<id>' into the top-level variables map.
|
|
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.
|
|
1853
|
+
|
|
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.`,
|
|
1725
1855
|
"examples": [
|
|
1726
1856
|
"#0F4C81",
|
|
1727
1857
|
"accent2",
|
|
1728
1858
|
"text",
|
|
1729
|
-
"var:risk"
|
|
1859
|
+
"var:risk",
|
|
1860
|
+
{
|
|
1861
|
+
"color": "accent1",
|
|
1862
|
+
"lighten": 0.4
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
"color": "text",
|
|
1866
|
+
"darken": 0.25
|
|
1867
|
+
}
|
|
1868
|
+
]
|
|
1869
|
+
},
|
|
1870
|
+
"ColorTransform": {
|
|
1871
|
+
"type": "object",
|
|
1872
|
+
"additionalProperties": false,
|
|
1873
|
+
"required": [
|
|
1874
|
+
"color"
|
|
1875
|
+
],
|
|
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.",
|
|
1877
|
+
"properties": {
|
|
1878
|
+
"color": {
|
|
1879
|
+
"$ref": "#/$defs/ColorRef",
|
|
1880
|
+
"description": "The base color: any ColorRef."
|
|
1881
|
+
},
|
|
1882
|
+
"lighten": {
|
|
1883
|
+
"type": "number",
|
|
1884
|
+
"minimum": 0,
|
|
1885
|
+
"maximum": 1,
|
|
1886
|
+
"description": `Share of the way to white, 0 to 1. 0.4 is PowerPoint's "Lighter 40%".`
|
|
1887
|
+
},
|
|
1888
|
+
"darken": {
|
|
1889
|
+
"type": "number",
|
|
1890
|
+
"minimum": 0,
|
|
1891
|
+
"maximum": 1,
|
|
1892
|
+
"description": `Share of the way to black, 0 to 1. 0.25 is PowerPoint's "Darker 25%".`
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
"oneOf": [
|
|
1896
|
+
{
|
|
1897
|
+
"required": [
|
|
1898
|
+
"lighten"
|
|
1899
|
+
]
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
"required": [
|
|
1903
|
+
"darken"
|
|
1904
|
+
]
|
|
1905
|
+
}
|
|
1906
|
+
],
|
|
1907
|
+
"examples": [
|
|
1908
|
+
{
|
|
1909
|
+
"color": "accent1",
|
|
1910
|
+
"lighten": 0.4
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
"color": "#0F4C81",
|
|
1914
|
+
"darken": 0.25
|
|
1915
|
+
}
|
|
1730
1916
|
]
|
|
1731
1917
|
},
|
|
1732
1918
|
"Variables": {
|
|
@@ -2233,6 +2419,7 @@ var presentation = {
|
|
|
2233
2419
|
},
|
|
2234
2420
|
"ThemeBackground": {
|
|
2235
2421
|
"type": "object",
|
|
2422
|
+
"additionalProperties": false,
|
|
2236
2423
|
"description": "Theme-controlled PowerPoint slide background. The slot is resolved through the active color scheme and remains theme-aware.",
|
|
2237
2424
|
"required": [
|
|
2238
2425
|
"type",
|
|
@@ -2246,11 +2433,18 @@ var presentation = {
|
|
|
2246
2433
|
},
|
|
2247
2434
|
"slot": {
|
|
2248
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."
|
|
2249
2442
|
}
|
|
2250
2443
|
}
|
|
2251
2444
|
},
|
|
2252
2445
|
"SolidBackground": {
|
|
2253
2446
|
"type": "object",
|
|
2447
|
+
"additionalProperties": false,
|
|
2254
2448
|
"description": "Fixed solid slide background fill.",
|
|
2255
2449
|
"required": [
|
|
2256
2450
|
"type",
|
|
@@ -2281,6 +2475,7 @@ var presentation = {
|
|
|
2281
2475
|
},
|
|
2282
2476
|
"GradientBackground": {
|
|
2283
2477
|
"type": "object",
|
|
2478
|
+
"additionalProperties": false,
|
|
2284
2479
|
"description": "Fixed gradient slide background fill.",
|
|
2285
2480
|
"required": [
|
|
2286
2481
|
"type",
|
|
@@ -2302,7 +2497,11 @@ var presentation = {
|
|
|
2302
2497
|
},
|
|
2303
2498
|
"gradient": {
|
|
2304
2499
|
"type": "object",
|
|
2305
|
-
"
|
|
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
|
+
],
|
|
2306
2505
|
"properties": {
|
|
2307
2506
|
"angle": {
|
|
2308
2507
|
"type": "number",
|
|
@@ -2314,6 +2513,7 @@ var presentation = {
|
|
|
2314
2513
|
"description": "Ordered list of color stops along the gradient. A gradient needs at least two stops.",
|
|
2315
2514
|
"items": {
|
|
2316
2515
|
"type": "object",
|
|
2516
|
+
"additionalProperties": false,
|
|
2317
2517
|
"description": "Color stop along the gradient.",
|
|
2318
2518
|
"required": [
|
|
2319
2519
|
"color",
|
|
@@ -2362,7 +2562,7 @@ var presentation = {
|
|
|
2362
2562
|
"dark",
|
|
2363
2563
|
"light"
|
|
2364
2564
|
],
|
|
2365
|
-
"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."
|
|
2366
2566
|
},
|
|
2367
2567
|
"type": {
|
|
2368
2568
|
"type": "string",
|
|
@@ -2418,6 +2618,23 @@ var presentation = {
|
|
|
2418
2618
|
"description": "No overlay and no automatic scrim: the picture shows as it is behind the text."
|
|
2419
2619
|
}
|
|
2420
2620
|
]
|
|
2621
|
+
},
|
|
2622
|
+
"textPlacement": {
|
|
2623
|
+
"type": "string",
|
|
2624
|
+
"enum": [
|
|
2625
|
+
"top-start",
|
|
2626
|
+
"top-center",
|
|
2627
|
+
"middle-start",
|
|
2628
|
+
"middle-center",
|
|
2629
|
+
"bottom-start",
|
|
2630
|
+
"bottom-center",
|
|
2631
|
+
"panel"
|
|
2632
|
+
],
|
|
2633
|
+
"description": "Where a cover's or section's heading group goes on this picture: the top, middle or bottom of its area, start-aligned or centered, or 'panel' (a start-side column on the background color; needs no overlay key). Absent: core picks the calmest place when the host measured the picture (SlideComposition.pictureText).",
|
|
2634
|
+
"examples": [
|
|
2635
|
+
"top-start",
|
|
2636
|
+
"panel"
|
|
2637
|
+
]
|
|
2421
2638
|
}
|
|
2422
2639
|
},
|
|
2423
2640
|
"examples": [
|
|
@@ -2442,6 +2659,12 @@ var presentation = {
|
|
|
2442
2659
|
"type": "image",
|
|
2443
2660
|
"src": "asset:texture",
|
|
2444
2661
|
"overlay": false
|
|
2662
|
+
},
|
|
2663
|
+
{
|
|
2664
|
+
"type": "image",
|
|
2665
|
+
"src": "asset:city-night",
|
|
2666
|
+
"tone": "dark",
|
|
2667
|
+
"textPlacement": "top-start"
|
|
2445
2668
|
}
|
|
2446
2669
|
]
|
|
2447
2670
|
},
|
|
@@ -2498,10 +2721,10 @@ var presentation = {
|
|
|
2498
2721
|
"enum": [
|
|
2499
2722
|
"top",
|
|
2500
2723
|
"bottom",
|
|
2501
|
-
"
|
|
2502
|
-
"
|
|
2724
|
+
"start",
|
|
2725
|
+
"end"
|
|
2503
2726
|
],
|
|
2504
|
-
"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."
|
|
2505
2728
|
},
|
|
2506
2729
|
"size": {
|
|
2507
2730
|
"type": "number",
|
|
@@ -2529,13 +2752,13 @@ var presentation = {
|
|
|
2529
2752
|
"required": [
|
|
2530
2753
|
"edge"
|
|
2531
2754
|
],
|
|
2532
|
-
"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.",
|
|
2533
2756
|
"properties": {
|
|
2534
2757
|
"edge": {
|
|
2535
2758
|
"type": "string",
|
|
2536
2759
|
"enum": [
|
|
2537
|
-
"
|
|
2538
|
-
"
|
|
2760
|
+
"start",
|
|
2761
|
+
"end",
|
|
2539
2762
|
"top",
|
|
2540
2763
|
"bottom"
|
|
2541
2764
|
],
|
|
@@ -2545,7 +2768,7 @@ var presentation = {
|
|
|
2545
2768
|
"type": "number",
|
|
2546
2769
|
"minimum": 0.1,
|
|
2547
2770
|
"maximum": 0.9,
|
|
2548
|
-
"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."
|
|
2549
2772
|
},
|
|
2550
2773
|
"inset": {
|
|
2551
2774
|
"type": "boolean",
|
|
@@ -2554,71 +2777,802 @@ var presentation = {
|
|
|
2554
2777
|
},
|
|
2555
2778
|
"examples": [
|
|
2556
2779
|
{
|
|
2557
|
-
"edge": "
|
|
2780
|
+
"edge": "start",
|
|
2558
2781
|
"size": 0.45
|
|
2559
2782
|
},
|
|
2560
2783
|
{
|
|
2561
|
-
"edge": "
|
|
2784
|
+
"edge": "end",
|
|
2562
2785
|
"size": 0.4,
|
|
2563
2786
|
"inset": true
|
|
2564
2787
|
}
|
|
2565
2788
|
]
|
|
2566
2789
|
},
|
|
2567
|
-
"
|
|
2568
|
-
"
|
|
2569
|
-
"additionalProperties": false,
|
|
2570
|
-
"required": [
|
|
2571
|
-
"color",
|
|
2572
|
-
"width"
|
|
2573
|
-
],
|
|
2574
|
-
"description": "Solid line along the image frame's shape, centered on the outline with a miter join, like a native picture line. A thick dark border on a rounded portrait frame gives a device bezel.",
|
|
2575
|
-
"properties": {
|
|
2576
|
-
"color": {
|
|
2577
|
-
"$ref": "#/$defs/ColorRef",
|
|
2578
|
-
"description": "Line color: a hex color, a color-scheme slot or role name, or a 'var:<id>' variable reference."
|
|
2579
|
-
},
|
|
2580
|
-
"width": {
|
|
2581
|
-
"type": "number",
|
|
2582
|
-
"minimum": 0,
|
|
2583
|
-
"maximum": 64,
|
|
2584
|
-
"description": "Line width in reference pixels at a 720-pixel short edge. 0 removes the line."
|
|
2585
|
-
}
|
|
2586
|
-
}
|
|
2587
|
-
},
|
|
2588
|
-
"ImageRecolor": {
|
|
2589
|
-
"oneOf": [
|
|
2790
|
+
"Stroke": {
|
|
2791
|
+
"anyOf": [
|
|
2590
2792
|
{
|
|
2591
2793
|
"type": "string",
|
|
2592
|
-
"const": "
|
|
2593
|
-
"description": "
|
|
2794
|
+
"const": "none",
|
|
2795
|
+
"description": "No line (a:ln with a:noFill), also on a shape whose style would draw one."
|
|
2594
2796
|
},
|
|
2595
2797
|
{
|
|
2596
2798
|
"type": "object",
|
|
2597
2799
|
"additionalProperties": false,
|
|
2598
|
-
"required": [
|
|
2599
|
-
"dark",
|
|
2600
|
-
"light"
|
|
2601
|
-
],
|
|
2602
2800
|
"properties": {
|
|
2603
|
-
"
|
|
2801
|
+
"color": {
|
|
2604
2802
|
"$ref": "#/$defs/ColorRef",
|
|
2605
|
-
"description": "
|
|
2803
|
+
"description": "Line color: any ColorRef (eight-digit hex keeps its alpha). Default the shape style's line color, or the slide's neutral line on a picture."
|
|
2606
2804
|
},
|
|
2607
|
-
"
|
|
2608
|
-
"$ref": "#/$defs/
|
|
2609
|
-
"description": "
|
|
2805
|
+
"gradient": {
|
|
2806
|
+
"$ref": "#/$defs/Gradient",
|
|
2807
|
+
"description": "A gradient line instead of a solid color (a:ln/a:gradFill)."
|
|
2808
|
+
},
|
|
2809
|
+
"width": {
|
|
2810
|
+
"type": "number",
|
|
2811
|
+
"minimum": 0,
|
|
2812
|
+
"maximum": 64,
|
|
2813
|
+
"description": "Line width in reference pixels at a 720-pixel short edge. 0 removes the line. Default 4/3 (1 point, PowerPoint's default line) on a shape, 2 on a picture."
|
|
2814
|
+
},
|
|
2815
|
+
"dash": {
|
|
2816
|
+
"anyOf": [
|
|
2817
|
+
{
|
|
2818
|
+
"type": "string",
|
|
2819
|
+
"enum": [
|
|
2820
|
+
"solid",
|
|
2821
|
+
"dot",
|
|
2822
|
+
"dash",
|
|
2823
|
+
"longDash",
|
|
2824
|
+
"dashDot",
|
|
2825
|
+
"longDashDot",
|
|
2826
|
+
"longDashDotDot",
|
|
2827
|
+
"sysDot",
|
|
2828
|
+
"sysDash",
|
|
2829
|
+
"sysDashDot",
|
|
2830
|
+
"sysDashDotDot"
|
|
2831
|
+
],
|
|
2832
|
+
"description": "DrawingML preset dash (a:prstDash). Default solid."
|
|
2833
|
+
},
|
|
2834
|
+
{
|
|
2835
|
+
"type": "array",
|
|
2836
|
+
"minItems": 2,
|
|
2837
|
+
"maxItems": 20,
|
|
2838
|
+
"items": {
|
|
2839
|
+
"type": "number",
|
|
2840
|
+
"exclusiveMinimum": 0,
|
|
2841
|
+
"maximum": 100
|
|
2842
|
+
},
|
|
2843
|
+
"description": "A custom dash (a:custDash): dash and gap lengths in stroke widths, alternating, for example [4, 2]. An odd count repeats."
|
|
2844
|
+
}
|
|
2845
|
+
],
|
|
2846
|
+
"description": "Dash pattern: a preset name or an array of dash and gap lengths in stroke widths."
|
|
2847
|
+
},
|
|
2848
|
+
"cap": {
|
|
2849
|
+
"type": "string",
|
|
2850
|
+
"enum": [
|
|
2851
|
+
"flat",
|
|
2852
|
+
"round",
|
|
2853
|
+
"square"
|
|
2854
|
+
],
|
|
2855
|
+
"description": "Line cap (a:ln cap flat, rnd, sq). Default flat."
|
|
2856
|
+
},
|
|
2857
|
+
"join": {
|
|
2858
|
+
"type": "string",
|
|
2859
|
+
"enum": [
|
|
2860
|
+
"miter",
|
|
2861
|
+
"round",
|
|
2862
|
+
"bevel"
|
|
2863
|
+
],
|
|
2864
|
+
"description": "Line join (a:miter, a:round, a:bevel). Default miter, PowerPoint's default line join."
|
|
2865
|
+
},
|
|
2866
|
+
"miterLimit": {
|
|
2867
|
+
"type": "number",
|
|
2868
|
+
"minimum": 1,
|
|
2869
|
+
"maximum": 100,
|
|
2870
|
+
"description": "Miter join limit, as a multiple of the stroke width (a:miter lim). Default 8. Ignored by round and bevel joins."
|
|
2871
|
+
},
|
|
2872
|
+
"compound": {
|
|
2873
|
+
"type": "string",
|
|
2874
|
+
"enum": [
|
|
2875
|
+
"single",
|
|
2876
|
+
"double",
|
|
2877
|
+
"thickThin",
|
|
2878
|
+
"thinThick",
|
|
2879
|
+
"triple"
|
|
2880
|
+
],
|
|
2881
|
+
"description": "Compound line (a:ln cmpd sng, dbl, thickThin, thinThick, tri). Default single."
|
|
2882
|
+
},
|
|
2883
|
+
"align": {
|
|
2884
|
+
"type": "string",
|
|
2885
|
+
"enum": [
|
|
2886
|
+
"center",
|
|
2887
|
+
"inside"
|
|
2888
|
+
],
|
|
2889
|
+
"description": "Where the line sits on the outline (a:ln algn ctr or in). Default center. PowerPoint draws inside-aligned lines only on closed outlines."
|
|
2890
|
+
},
|
|
2891
|
+
"start": {
|
|
2892
|
+
"$ref": "#/$defs/Arrowhead",
|
|
2893
|
+
"description": "Arrowhead at the start of an open path (a:headEnd)."
|
|
2894
|
+
},
|
|
2895
|
+
"end": {
|
|
2896
|
+
"$ref": "#/$defs/Arrowhead",
|
|
2897
|
+
"description": "Arrowhead at the end of an open path (a:tailEnd)."
|
|
2898
|
+
},
|
|
2899
|
+
"sketch": {
|
|
2900
|
+
"type": "string",
|
|
2901
|
+
"enum": [
|
|
2902
|
+
"curved",
|
|
2903
|
+
"freehand",
|
|
2904
|
+
"scribble"
|
|
2905
|
+
],
|
|
2906
|
+
"description": "Hand-drawn look (PowerPoint's Sketched line, ask:lineSketchStyleProps): curved, freehand or scribble. OPF computes the sketched outline from a seed and both engines draw it: the preview strokes it and the PPTX stores it, which PowerPoint draws as stored, so the two match. A stroked path's fill follows the sketched outline too. PowerPoint versions before 2021 draw the plain line."
|
|
2610
2907
|
}
|
|
2611
|
-
}
|
|
2612
|
-
"description": "Duotone: map each pixel's luminance linearly from dark to light, exported as native a:duotone."
|
|
2908
|
+
}
|
|
2613
2909
|
}
|
|
2614
2910
|
],
|
|
2615
|
-
"description": "
|
|
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.",
|
|
2912
|
+
"examples": [
|
|
2913
|
+
"none",
|
|
2914
|
+
{
|
|
2915
|
+
"color": "accent1",
|
|
2916
|
+
"width": 2
|
|
2917
|
+
},
|
|
2918
|
+
{
|
|
2919
|
+
"color": "text",
|
|
2920
|
+
"width": 1.5,
|
|
2921
|
+
"dash": "dash",
|
|
2922
|
+
"end": {
|
|
2923
|
+
"type": "triangle"
|
|
2924
|
+
}
|
|
2925
|
+
},
|
|
2926
|
+
{
|
|
2927
|
+
"color": "#0F172A",
|
|
2928
|
+
"width": 12,
|
|
2929
|
+
"join": "round"
|
|
2930
|
+
}
|
|
2931
|
+
]
|
|
2616
2932
|
},
|
|
2617
|
-
"
|
|
2933
|
+
"Arrowhead": {
|
|
2618
2934
|
"type": "object",
|
|
2619
|
-
"
|
|
2620
|
-
"
|
|
2621
|
-
|
|
2935
|
+
"additionalProperties": false,
|
|
2936
|
+
"description": "An arrowhead at one end of an open path or a line preset (DrawingML a:headEnd at the start, a:tailEnd at the end). Closed outlines have no ends, so arrowheads draw only on open paths such as arc, line or a custom path that is not closed.",
|
|
2937
|
+
"properties": {
|
|
2938
|
+
"type": {
|
|
2939
|
+
"type": "string",
|
|
2940
|
+
"enum": [
|
|
2941
|
+
"none",
|
|
2942
|
+
"triangle",
|
|
2943
|
+
"stealth",
|
|
2944
|
+
"diamond",
|
|
2945
|
+
"oval",
|
|
2946
|
+
"arrow"
|
|
2947
|
+
],
|
|
2948
|
+
"description": "Arrowhead kind, DrawingML's ST_LineEndType. Default 'triangle' when the object is given."
|
|
2949
|
+
},
|
|
2950
|
+
"width": {
|
|
2951
|
+
"type": "string",
|
|
2952
|
+
"enum": [
|
|
2953
|
+
"small",
|
|
2954
|
+
"medium",
|
|
2955
|
+
"large"
|
|
2956
|
+
],
|
|
2957
|
+
"description": "Arrowhead width relative to the stroke width (2, 3 or 5 stroke widths). Default medium."
|
|
2958
|
+
},
|
|
2959
|
+
"length": {
|
|
2960
|
+
"type": "string",
|
|
2961
|
+
"enum": [
|
|
2962
|
+
"small",
|
|
2963
|
+
"medium",
|
|
2964
|
+
"large"
|
|
2965
|
+
],
|
|
2966
|
+
"description": "Arrowhead length relative to the stroke width (2, 3 or 5 stroke widths). Default medium."
|
|
2967
|
+
}
|
|
2968
|
+
},
|
|
2969
|
+
"examples": [
|
|
2970
|
+
{
|
|
2971
|
+
"type": "triangle"
|
|
2972
|
+
},
|
|
2973
|
+
{
|
|
2974
|
+
"type": "stealth",
|
|
2975
|
+
"width": "large",
|
|
2976
|
+
"length": "large"
|
|
2977
|
+
}
|
|
2978
|
+
]
|
|
2979
|
+
},
|
|
2980
|
+
"Gradient": {
|
|
2981
|
+
"type": "object",
|
|
2982
|
+
"additionalProperties": false,
|
|
2983
|
+
"required": [
|
|
2984
|
+
"stops"
|
|
2985
|
+
],
|
|
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.",
|
|
2987
|
+
"properties": {
|
|
2988
|
+
"type": {
|
|
2989
|
+
"type": "string",
|
|
2990
|
+
"enum": [
|
|
2991
|
+
"linear",
|
|
2992
|
+
"radial",
|
|
2993
|
+
"rectangle",
|
|
2994
|
+
"shape"
|
|
2995
|
+
],
|
|
2996
|
+
"description": "linear runs along 'angle'; radial spreads from the center as a circle, rectangle as a rectangle and shape along the shape's own outline (a:path circle, rect, shape). Default linear."
|
|
2997
|
+
},
|
|
2998
|
+
"angle": {
|
|
2999
|
+
"type": "number",
|
|
3000
|
+
"description": "Linear gradients only: angle in degrees (0 = left to right, 90 = top to bottom). Default 90."
|
|
3001
|
+
},
|
|
3002
|
+
"stops": {
|
|
3003
|
+
"type": "array",
|
|
3004
|
+
"minItems": 2,
|
|
3005
|
+
"description": "Ordered color stops; at least two. A radial, rectangle or shape gradient runs from the center (position 0) to the outline (position 1).",
|
|
3006
|
+
"items": {
|
|
3007
|
+
"type": "object",
|
|
3008
|
+
"additionalProperties": false,
|
|
3009
|
+
"required": [
|
|
3010
|
+
"color",
|
|
3011
|
+
"position"
|
|
3012
|
+
],
|
|
3013
|
+
"properties": {
|
|
3014
|
+
"color": {
|
|
3015
|
+
"$ref": "#/$defs/ColorRef",
|
|
3016
|
+
"description": "Stop color: any ColorRef (eight-digit hex keeps its alpha)."
|
|
3017
|
+
},
|
|
3018
|
+
"position": {
|
|
3019
|
+
"type": "number",
|
|
3020
|
+
"minimum": 0,
|
|
3021
|
+
"maximum": 1,
|
|
3022
|
+
"description": "Stop position, 0 to 1."
|
|
3023
|
+
}
|
|
3024
|
+
}
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
},
|
|
3028
|
+
"examples": [
|
|
3029
|
+
{
|
|
3030
|
+
"type": "linear",
|
|
3031
|
+
"angle": 90,
|
|
3032
|
+
"stops": [
|
|
3033
|
+
{
|
|
3034
|
+
"color": "accent1",
|
|
3035
|
+
"position": 0
|
|
3036
|
+
},
|
|
3037
|
+
{
|
|
3038
|
+
"color": {
|
|
3039
|
+
"color": "accent1",
|
|
3040
|
+
"darken": 0.5
|
|
3041
|
+
},
|
|
3042
|
+
"position": 1
|
|
3043
|
+
}
|
|
3044
|
+
]
|
|
3045
|
+
}
|
|
3046
|
+
]
|
|
3047
|
+
},
|
|
3048
|
+
"Pattern": {
|
|
3049
|
+
"type": "object",
|
|
3050
|
+
"additionalProperties": false,
|
|
3051
|
+
"required": [
|
|
3052
|
+
"preset"
|
|
3053
|
+
],
|
|
3054
|
+
"description": "A two-color pattern fill (the background pattern object), DrawingML a:pattFill.",
|
|
3055
|
+
"properties": {
|
|
3056
|
+
"preset": {
|
|
3057
|
+
"type": "string",
|
|
3058
|
+
"description": "DrawingML pattern preset (ECMA-376 ST_PresetPatternVal), for example pct5, ltHorz, wdUpDiag, smGrid or dotDmnd.",
|
|
3059
|
+
"examples": [
|
|
3060
|
+
"pct20",
|
|
3061
|
+
"ltUpDiag",
|
|
3062
|
+
"smGrid"
|
|
3063
|
+
]
|
|
3064
|
+
},
|
|
3065
|
+
"foregroundColor": {
|
|
3066
|
+
"$ref": "#/$defs/ColorRef",
|
|
3067
|
+
"description": "Pattern color. Default the shape style's fill color."
|
|
3068
|
+
},
|
|
3069
|
+
"backgroundColor": {
|
|
3070
|
+
"$ref": "#/$defs/ColorRef",
|
|
3071
|
+
"description": "Color behind the pattern. Default the slide background."
|
|
3072
|
+
}
|
|
3073
|
+
}
|
|
3074
|
+
},
|
|
3075
|
+
"ShapeFill": {
|
|
3076
|
+
"anyOf": [
|
|
3077
|
+
{
|
|
3078
|
+
"type": "string",
|
|
3079
|
+
"const": "none",
|
|
3080
|
+
"description": "No fill (a:noFill)."
|
|
3081
|
+
},
|
|
3082
|
+
{
|
|
3083
|
+
"$ref": "#/$defs/ColorRef",
|
|
3084
|
+
"description": "A solid fill (a:solidFill): any ColorRef; eight-digit hex keeps its alpha."
|
|
3085
|
+
},
|
|
3086
|
+
{
|
|
3087
|
+
"type": "object",
|
|
3088
|
+
"additionalProperties": false,
|
|
3089
|
+
"required": [
|
|
3090
|
+
"gradient"
|
|
3091
|
+
],
|
|
3092
|
+
"properties": {
|
|
3093
|
+
"gradient": {
|
|
3094
|
+
"$ref": "#/$defs/Gradient"
|
|
3095
|
+
}
|
|
3096
|
+
},
|
|
3097
|
+
"description": "A gradient fill (a:gradFill)."
|
|
3098
|
+
},
|
|
3099
|
+
{
|
|
3100
|
+
"type": "object",
|
|
3101
|
+
"additionalProperties": false,
|
|
3102
|
+
"required": [
|
|
3103
|
+
"pattern"
|
|
3104
|
+
],
|
|
3105
|
+
"properties": {
|
|
3106
|
+
"pattern": {
|
|
3107
|
+
"$ref": "#/$defs/Pattern"
|
|
3108
|
+
}
|
|
3109
|
+
},
|
|
3110
|
+
"description": "A pattern fill (a:pattFill)."
|
|
3111
|
+
}
|
|
3112
|
+
],
|
|
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).",
|
|
3114
|
+
"examples": [
|
|
3115
|
+
"accent2",
|
|
3116
|
+
"none",
|
|
3117
|
+
{
|
|
3118
|
+
"color": "accent1",
|
|
3119
|
+
"lighten": 0.6
|
|
3120
|
+
},
|
|
3121
|
+
{
|
|
3122
|
+
"gradient": {
|
|
3123
|
+
"type": "radial",
|
|
3124
|
+
"stops": [
|
|
3125
|
+
{
|
|
3126
|
+
"color": "light1",
|
|
3127
|
+
"position": 0
|
|
3128
|
+
},
|
|
3129
|
+
{
|
|
3130
|
+
"color": "accent1",
|
|
3131
|
+
"position": 1
|
|
3132
|
+
}
|
|
3133
|
+
]
|
|
3134
|
+
}
|
|
3135
|
+
},
|
|
3136
|
+
{
|
|
3137
|
+
"pattern": {
|
|
3138
|
+
"preset": "ltUpDiag",
|
|
3139
|
+
"foregroundColor": "accent1"
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
]
|
|
3143
|
+
},
|
|
3144
|
+
"ShapePreset": {
|
|
3145
|
+
"type": "string",
|
|
3146
|
+
"enum": [
|
|
3147
|
+
"line",
|
|
3148
|
+
"lineInv",
|
|
3149
|
+
"triangle",
|
|
3150
|
+
"rtTriangle",
|
|
3151
|
+
"rect",
|
|
3152
|
+
"diamond",
|
|
3153
|
+
"parallelogram",
|
|
3154
|
+
"trapezoid",
|
|
3155
|
+
"nonIsoscelesTrapezoid",
|
|
3156
|
+
"pentagon",
|
|
3157
|
+
"hexagon",
|
|
3158
|
+
"heptagon",
|
|
3159
|
+
"octagon",
|
|
3160
|
+
"decagon",
|
|
3161
|
+
"dodecagon",
|
|
3162
|
+
"star4",
|
|
3163
|
+
"star5",
|
|
3164
|
+
"star6",
|
|
3165
|
+
"star7",
|
|
3166
|
+
"star8",
|
|
3167
|
+
"star10",
|
|
3168
|
+
"star12",
|
|
3169
|
+
"star16",
|
|
3170
|
+
"star24",
|
|
3171
|
+
"star32",
|
|
3172
|
+
"roundRect",
|
|
3173
|
+
"round1Rect",
|
|
3174
|
+
"round2SameRect",
|
|
3175
|
+
"round2DiagRect",
|
|
3176
|
+
"snipRoundRect",
|
|
3177
|
+
"snip1Rect",
|
|
3178
|
+
"snip2SameRect",
|
|
3179
|
+
"snip2DiagRect",
|
|
3180
|
+
"plaque",
|
|
3181
|
+
"ellipse",
|
|
3182
|
+
"teardrop",
|
|
3183
|
+
"homePlate",
|
|
3184
|
+
"chevron",
|
|
3185
|
+
"pieWedge",
|
|
3186
|
+
"pie",
|
|
3187
|
+
"blockArc",
|
|
3188
|
+
"donut",
|
|
3189
|
+
"noSmoking",
|
|
3190
|
+
"rightArrow",
|
|
3191
|
+
"leftArrow",
|
|
3192
|
+
"upArrow",
|
|
3193
|
+
"downArrow",
|
|
3194
|
+
"stripedRightArrow",
|
|
3195
|
+
"notchedRightArrow",
|
|
3196
|
+
"bentUpArrow",
|
|
3197
|
+
"leftRightArrow",
|
|
3198
|
+
"upDownArrow",
|
|
3199
|
+
"leftUpArrow",
|
|
3200
|
+
"leftRightUpArrow",
|
|
3201
|
+
"quadArrow",
|
|
3202
|
+
"leftArrowCallout",
|
|
3203
|
+
"rightArrowCallout",
|
|
3204
|
+
"upArrowCallout",
|
|
3205
|
+
"downArrowCallout",
|
|
3206
|
+
"leftRightArrowCallout",
|
|
3207
|
+
"upDownArrowCallout",
|
|
3208
|
+
"quadArrowCallout",
|
|
3209
|
+
"bentArrow",
|
|
3210
|
+
"uturnArrow",
|
|
3211
|
+
"circularArrow",
|
|
3212
|
+
"leftCircularArrow",
|
|
3213
|
+
"leftRightCircularArrow",
|
|
3214
|
+
"curvedRightArrow",
|
|
3215
|
+
"curvedLeftArrow",
|
|
3216
|
+
"curvedUpArrow",
|
|
3217
|
+
"curvedDownArrow",
|
|
3218
|
+
"swooshArrow",
|
|
3219
|
+
"cube",
|
|
3220
|
+
"can",
|
|
3221
|
+
"lightningBolt",
|
|
3222
|
+
"heart",
|
|
3223
|
+
"sun",
|
|
3224
|
+
"moon",
|
|
3225
|
+
"smileyFace",
|
|
3226
|
+
"irregularSeal1",
|
|
3227
|
+
"irregularSeal2",
|
|
3228
|
+
"foldedCorner",
|
|
3229
|
+
"bevel",
|
|
3230
|
+
"frame",
|
|
3231
|
+
"halfFrame",
|
|
3232
|
+
"corner",
|
|
3233
|
+
"diagStripe",
|
|
3234
|
+
"chord",
|
|
3235
|
+
"arc",
|
|
3236
|
+
"leftBracket",
|
|
3237
|
+
"rightBracket",
|
|
3238
|
+
"leftBrace",
|
|
3239
|
+
"rightBrace",
|
|
3240
|
+
"bracketPair",
|
|
3241
|
+
"bracePair",
|
|
3242
|
+
"straightConnector1",
|
|
3243
|
+
"bentConnector2",
|
|
3244
|
+
"bentConnector3",
|
|
3245
|
+
"bentConnector4",
|
|
3246
|
+
"bentConnector5",
|
|
3247
|
+
"curvedConnector2",
|
|
3248
|
+
"curvedConnector3",
|
|
3249
|
+
"curvedConnector4",
|
|
3250
|
+
"curvedConnector5",
|
|
3251
|
+
"callout1",
|
|
3252
|
+
"callout2",
|
|
3253
|
+
"callout3",
|
|
3254
|
+
"accentCallout1",
|
|
3255
|
+
"accentCallout2",
|
|
3256
|
+
"accentCallout3",
|
|
3257
|
+
"borderCallout1",
|
|
3258
|
+
"borderCallout2",
|
|
3259
|
+
"borderCallout3",
|
|
3260
|
+
"accentBorderCallout1",
|
|
3261
|
+
"accentBorderCallout2",
|
|
3262
|
+
"accentBorderCallout3",
|
|
3263
|
+
"wedgeRectCallout",
|
|
3264
|
+
"wedgeRoundRectCallout",
|
|
3265
|
+
"wedgeEllipseCallout",
|
|
3266
|
+
"cloudCallout",
|
|
3267
|
+
"cloud",
|
|
3268
|
+
"ribbon",
|
|
3269
|
+
"ribbon2",
|
|
3270
|
+
"ellipseRibbon",
|
|
3271
|
+
"ellipseRibbon2",
|
|
3272
|
+
"leftRightRibbon",
|
|
3273
|
+
"verticalScroll",
|
|
3274
|
+
"horizontalScroll",
|
|
3275
|
+
"wave",
|
|
3276
|
+
"doubleWave",
|
|
3277
|
+
"plus",
|
|
3278
|
+
"flowChartProcess",
|
|
3279
|
+
"flowChartDecision",
|
|
3280
|
+
"flowChartInputOutput",
|
|
3281
|
+
"flowChartPredefinedProcess",
|
|
3282
|
+
"flowChartInternalStorage",
|
|
3283
|
+
"flowChartDocument",
|
|
3284
|
+
"flowChartMultidocument",
|
|
3285
|
+
"flowChartTerminator",
|
|
3286
|
+
"flowChartPreparation",
|
|
3287
|
+
"flowChartManualInput",
|
|
3288
|
+
"flowChartManualOperation",
|
|
3289
|
+
"flowChartConnector",
|
|
3290
|
+
"flowChartPunchedCard",
|
|
3291
|
+
"flowChartPunchedTape",
|
|
3292
|
+
"flowChartSummingJunction",
|
|
3293
|
+
"flowChartOr",
|
|
3294
|
+
"flowChartCollate",
|
|
3295
|
+
"flowChartSort",
|
|
3296
|
+
"flowChartExtract",
|
|
3297
|
+
"flowChartMerge",
|
|
3298
|
+
"flowChartOfflineStorage",
|
|
3299
|
+
"flowChartOnlineStorage",
|
|
3300
|
+
"flowChartMagneticTape",
|
|
3301
|
+
"flowChartMagneticDisk",
|
|
3302
|
+
"flowChartMagneticDrum",
|
|
3303
|
+
"flowChartDisplay",
|
|
3304
|
+
"flowChartDelay",
|
|
3305
|
+
"flowChartAlternateProcess",
|
|
3306
|
+
"flowChartOffpageConnector",
|
|
3307
|
+
"actionButtonBlank",
|
|
3308
|
+
"actionButtonHome",
|
|
3309
|
+
"actionButtonHelp",
|
|
3310
|
+
"actionButtonInformation",
|
|
3311
|
+
"actionButtonForwardNext",
|
|
3312
|
+
"actionButtonBackPrevious",
|
|
3313
|
+
"actionButtonEnd",
|
|
3314
|
+
"actionButtonBeginning",
|
|
3315
|
+
"actionButtonReturn",
|
|
3316
|
+
"actionButtonDocument",
|
|
3317
|
+
"actionButtonSound",
|
|
3318
|
+
"actionButtonMovie",
|
|
3319
|
+
"gear6",
|
|
3320
|
+
"gear9",
|
|
3321
|
+
"funnel",
|
|
3322
|
+
"mathPlus",
|
|
3323
|
+
"mathMinus",
|
|
3324
|
+
"mathMultiply",
|
|
3325
|
+
"mathDivide",
|
|
3326
|
+
"mathEqual",
|
|
3327
|
+
"mathNotEqual",
|
|
3328
|
+
"cornerTabs",
|
|
3329
|
+
"squareTabs",
|
|
3330
|
+
"plaqueTabs",
|
|
3331
|
+
"chartX",
|
|
3332
|
+
"chartStar",
|
|
3333
|
+
"chartPlus"
|
|
3334
|
+
],
|
|
3335
|
+
"description": "A DrawingML preset geometry (ECMA-376 ST_ShapeType, all 187), with PowerPoint's own names: rect, roundRect, ellipse, triangle, rightArrow, chevron, wedgeRectCallout, flowChartDecision and the rest. docs/shapes.md lists them with their default frames and adjust values.",
|
|
3336
|
+
"examples": [
|
|
3337
|
+
"rect",
|
|
3338
|
+
"roundRect",
|
|
3339
|
+
"ellipse",
|
|
3340
|
+
"chevron",
|
|
3341
|
+
"rightArrow",
|
|
3342
|
+
"wedgeRectCallout",
|
|
3343
|
+
"flowChartDecision"
|
|
3344
|
+
]
|
|
3345
|
+
},
|
|
3346
|
+
"ShapePath": {
|
|
3347
|
+
"anyOf": [
|
|
3348
|
+
{
|
|
3349
|
+
"type": "string",
|
|
3350
|
+
"minLength": 1,
|
|
3351
|
+
"description": 'SVG path data in a 0 to 1 box: x and y run from 0 (left, top) to 1 (right, bottom) of the block, for example "M0 0 L1 0 L0.5 1 Z".'
|
|
3352
|
+
},
|
|
3353
|
+
{
|
|
3354
|
+
"type": "object",
|
|
3355
|
+
"additionalProperties": false,
|
|
3356
|
+
"required": [
|
|
3357
|
+
"d",
|
|
3358
|
+
"viewBox"
|
|
3359
|
+
],
|
|
3360
|
+
"properties": {
|
|
3361
|
+
"d": {
|
|
3362
|
+
"type": "string",
|
|
3363
|
+
"minLength": 1,
|
|
3364
|
+
"description": "SVG path data in the viewBox."
|
|
3365
|
+
},
|
|
3366
|
+
"viewBox": {
|
|
3367
|
+
"type": "string",
|
|
3368
|
+
"pattern": "^\\s*-?[0-9.]+([ ,]+-?[0-9.]+){3}\\s*$",
|
|
3369
|
+
"description": "The path's own box, 'minX minY width height' as in SVG; it is stretched to the block."
|
|
3370
|
+
}
|
|
3371
|
+
},
|
|
3372
|
+
"description": "SVG path data with its own viewBox, for example an icon outline drawn on a 24 by 24 grid."
|
|
3373
|
+
}
|
|
3374
|
+
],
|
|
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).",
|
|
3376
|
+
"examples": [
|
|
3377
|
+
"M0 0 L1 0 L0.5 1 Z",
|
|
3378
|
+
{
|
|
3379
|
+
"d": "M12 2 L22 22 L2 22 Z",
|
|
3380
|
+
"viewBox": "0 0 24 24"
|
|
3381
|
+
}
|
|
3382
|
+
]
|
|
3383
|
+
},
|
|
3384
|
+
"ShapePadding": {
|
|
3385
|
+
"anyOf": [
|
|
3386
|
+
{
|
|
3387
|
+
"type": "number",
|
|
3388
|
+
"minimum": 0,
|
|
3389
|
+
"maximum": 200,
|
|
3390
|
+
"description": "The same inset on every side, in reference pixels at a 720-pixel short edge."
|
|
3391
|
+
},
|
|
3392
|
+
{
|
|
3393
|
+
"$ref": "#/$defs/TableCellPadding"
|
|
3394
|
+
}
|
|
3395
|
+
],
|
|
3396
|
+
"description": "Text insets inside the shape's text rectangle (a:bodyPr lIns, tIns, rIns, bIns), in reference pixels at a 720-pixel short edge: one number for every side or { top, right, bottom, left }. Default 9.6 left and right, 4.8 top and bottom, PowerPoint's 0.1 and 0.05 inch."
|
|
3397
|
+
},
|
|
3398
|
+
"Shadow": {
|
|
3399
|
+
"anyOf": [
|
|
3400
|
+
{
|
|
3401
|
+
"type": "string",
|
|
3402
|
+
"enum": [
|
|
3403
|
+
"soft",
|
|
3404
|
+
"hard",
|
|
3405
|
+
"perspective"
|
|
3406
|
+
],
|
|
3407
|
+
"description": "A preset outer shadow."
|
|
3408
|
+
},
|
|
3409
|
+
{
|
|
3410
|
+
"type": "object",
|
|
3411
|
+
"additionalProperties": false,
|
|
3412
|
+
"properties": {
|
|
3413
|
+
"color": {
|
|
3414
|
+
"$ref": "#/$defs/ColorRef",
|
|
3415
|
+
"description": "Shadow color. Default black."
|
|
3416
|
+
},
|
|
3417
|
+
"opacity": {
|
|
3418
|
+
"type": "number",
|
|
3419
|
+
"minimum": 0,
|
|
3420
|
+
"maximum": 1,
|
|
3421
|
+
"description": "Shadow opacity."
|
|
3422
|
+
},
|
|
3423
|
+
"blur": {
|
|
3424
|
+
"type": "number",
|
|
3425
|
+
"minimum": 0,
|
|
3426
|
+
"maximum": 200,
|
|
3427
|
+
"description": "Blur radius in reference pixels at a 720-pixel short edge."
|
|
3428
|
+
},
|
|
3429
|
+
"distance": {
|
|
3430
|
+
"type": "number",
|
|
3431
|
+
"minimum": 0,
|
|
3432
|
+
"maximum": 200,
|
|
3433
|
+
"description": "Offset from the shape in reference pixels at a 720-pixel short edge."
|
|
3434
|
+
},
|
|
3435
|
+
"angle": {
|
|
3436
|
+
"type": "number",
|
|
3437
|
+
"minimum": 0,
|
|
3438
|
+
"maximum": 360,
|
|
3439
|
+
"description": "Direction of the offset in degrees (0 = right, 90 = down)."
|
|
3440
|
+
},
|
|
3441
|
+
"size": {
|
|
3442
|
+
"type": "number",
|
|
3443
|
+
"minimum": 0.1,
|
|
3444
|
+
"maximum": 2,
|
|
3445
|
+
"description": "Shadow size relative to the shape (1 = the shape's own size)."
|
|
3446
|
+
}
|
|
3447
|
+
}
|
|
3448
|
+
}
|
|
3449
|
+
],
|
|
3450
|
+
"description": "Outer shadow (a:outerShdw): a preset name (soft, hard, perspective) or { color, opacity, blur, distance, angle, size }."
|
|
3451
|
+
},
|
|
3452
|
+
"InnerShadow": {
|
|
3453
|
+
"type": "object",
|
|
3454
|
+
"additionalProperties": false,
|
|
3455
|
+
"description": "Inner shadow (a:innerShdw).",
|
|
3456
|
+
"properties": {
|
|
3457
|
+
"color": {
|
|
3458
|
+
"$ref": "#/$defs/ColorRef",
|
|
3459
|
+
"description": "Shadow color. Default black."
|
|
3460
|
+
},
|
|
3461
|
+
"opacity": {
|
|
3462
|
+
"type": "number",
|
|
3463
|
+
"minimum": 0,
|
|
3464
|
+
"maximum": 1,
|
|
3465
|
+
"description": "Shadow opacity."
|
|
3466
|
+
},
|
|
3467
|
+
"blur": {
|
|
3468
|
+
"type": "number",
|
|
3469
|
+
"minimum": 0,
|
|
3470
|
+
"maximum": 200,
|
|
3471
|
+
"description": "Blur radius in reference pixels at a 720-pixel short edge."
|
|
3472
|
+
},
|
|
3473
|
+
"distance": {
|
|
3474
|
+
"type": "number",
|
|
3475
|
+
"minimum": 0,
|
|
3476
|
+
"maximum": 200,
|
|
3477
|
+
"description": "Offset in reference pixels at a 720-pixel short edge."
|
|
3478
|
+
},
|
|
3479
|
+
"angle": {
|
|
3480
|
+
"type": "number",
|
|
3481
|
+
"minimum": 0,
|
|
3482
|
+
"maximum": 360,
|
|
3483
|
+
"description": "Direction of the offset in degrees (0 = right, 90 = down)."
|
|
3484
|
+
}
|
|
3485
|
+
}
|
|
3486
|
+
},
|
|
3487
|
+
"Glow": {
|
|
3488
|
+
"type": "object",
|
|
3489
|
+
"additionalProperties": false,
|
|
3490
|
+
"description": "Glow around the outline (a:glow).",
|
|
3491
|
+
"properties": {
|
|
3492
|
+
"color": {
|
|
3493
|
+
"$ref": "#/$defs/ColorRef",
|
|
3494
|
+
"description": "Glow color. Default accent."
|
|
3495
|
+
},
|
|
3496
|
+
"opacity": {
|
|
3497
|
+
"type": "number",
|
|
3498
|
+
"minimum": 0,
|
|
3499
|
+
"maximum": 1,
|
|
3500
|
+
"description": "Glow opacity."
|
|
3501
|
+
},
|
|
3502
|
+
"radius": {
|
|
3503
|
+
"type": "number",
|
|
3504
|
+
"minimum": 0,
|
|
3505
|
+
"maximum": 200,
|
|
3506
|
+
"description": "Glow size in reference pixels at a 720-pixel short edge."
|
|
3507
|
+
}
|
|
3508
|
+
}
|
|
3509
|
+
},
|
|
3510
|
+
"Reflection": {
|
|
3511
|
+
"type": "object",
|
|
3512
|
+
"additionalProperties": false,
|
|
3513
|
+
"description": "Reflection below the shape (a:reflection).",
|
|
3514
|
+
"properties": {
|
|
3515
|
+
"opacity": {
|
|
3516
|
+
"type": "number",
|
|
3517
|
+
"minimum": 0,
|
|
3518
|
+
"maximum": 1,
|
|
3519
|
+
"description": "Opacity where the reflection starts."
|
|
3520
|
+
},
|
|
3521
|
+
"size": {
|
|
3522
|
+
"type": "number",
|
|
3523
|
+
"minimum": 0,
|
|
3524
|
+
"maximum": 1,
|
|
3525
|
+
"description": "Share of the shape's height reflected."
|
|
3526
|
+
},
|
|
3527
|
+
"distance": {
|
|
3528
|
+
"type": "number",
|
|
3529
|
+
"minimum": 0,
|
|
3530
|
+
"maximum": 200,
|
|
3531
|
+
"description": "Gap between the shape and its reflection in reference pixels at a 720-pixel short edge."
|
|
3532
|
+
},
|
|
3533
|
+
"blur": {
|
|
3534
|
+
"type": "number",
|
|
3535
|
+
"minimum": 0,
|
|
3536
|
+
"maximum": 200,
|
|
3537
|
+
"description": "Blur radius in reference pixels at a 720-pixel short edge."
|
|
3538
|
+
}
|
|
3539
|
+
}
|
|
3540
|
+
},
|
|
3541
|
+
"ImageRecolor": {
|
|
3542
|
+
"oneOf": [
|
|
3543
|
+
{
|
|
3544
|
+
"type": "string",
|
|
3545
|
+
"const": "grayscale",
|
|
3546
|
+
"description": "Replace each pixel with its luminance, exported as native a:grayscl."
|
|
3547
|
+
},
|
|
3548
|
+
{
|
|
3549
|
+
"type": "object",
|
|
3550
|
+
"additionalProperties": false,
|
|
3551
|
+
"required": [
|
|
3552
|
+
"dark",
|
|
3553
|
+
"light"
|
|
3554
|
+
],
|
|
3555
|
+
"properties": {
|
|
3556
|
+
"dark": {
|
|
3557
|
+
"$ref": "#/$defs/ColorRef",
|
|
3558
|
+
"description": "Color at luminance 0."
|
|
3559
|
+
},
|
|
3560
|
+
"light": {
|
|
3561
|
+
"$ref": "#/$defs/ColorRef",
|
|
3562
|
+
"description": "Color at luminance 1."
|
|
3563
|
+
}
|
|
3564
|
+
},
|
|
3565
|
+
"description": "Duotone: map each pixel's luminance linearly from dark to light, exported as native a:duotone."
|
|
3566
|
+
}
|
|
3567
|
+
],
|
|
3568
|
+
"description": "Color treatment for the image pixels. Luminance uses Rec. 601 weights (0.299, 0.587, 0.114) on sRGB values."
|
|
3569
|
+
},
|
|
3570
|
+
"PatternBackground": {
|
|
3571
|
+
"type": "object",
|
|
3572
|
+
"additionalProperties": false,
|
|
3573
|
+
"description": "Fixed pattern slide background fill.",
|
|
3574
|
+
"required": [
|
|
3575
|
+
"type",
|
|
2622
3576
|
"pattern"
|
|
2623
3577
|
],
|
|
2624
3578
|
"properties": {
|
|
@@ -2629,6 +3583,7 @@ var presentation = {
|
|
|
2629
3583
|
},
|
|
2630
3584
|
"pattern": {
|
|
2631
3585
|
"type": "object",
|
|
3586
|
+
"additionalProperties": false,
|
|
2632
3587
|
"description": "Pattern fill definition.",
|
|
2633
3588
|
"required": [
|
|
2634
3589
|
"preset"
|
|
@@ -2776,25 +3731,26 @@ var presentation = {
|
|
|
2776
3731
|
},
|
|
2777
3732
|
"HeaderFooter": {
|
|
2778
3733
|
"type": "object",
|
|
2779
|
-
"
|
|
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.",
|
|
2780
3736
|
"properties": {
|
|
2781
|
-
"
|
|
3737
|
+
"start": {
|
|
2782
3738
|
"$ref": "#/$defs/HeaderFooterItem",
|
|
2783
|
-
"description": "
|
|
3739
|
+
"description": "Content at the start edge, aligned to it."
|
|
2784
3740
|
},
|
|
2785
3741
|
"center": {
|
|
2786
3742
|
"$ref": "#/$defs/HeaderFooterItem",
|
|
2787
3743
|
"description": "Centered header/footer content."
|
|
2788
3744
|
},
|
|
2789
|
-
"
|
|
3745
|
+
"end": {
|
|
2790
3746
|
"$ref": "#/$defs/HeaderFooterItem",
|
|
2791
|
-
"description": "
|
|
3747
|
+
"description": "Content at the end edge, aligned to it."
|
|
2792
3748
|
}
|
|
2793
3749
|
}
|
|
2794
3750
|
},
|
|
2795
3751
|
"HeaderFooterItem": {
|
|
2796
3752
|
"type": "object",
|
|
2797
|
-
"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.",
|
|
2798
3754
|
"additionalProperties": false,
|
|
2799
3755
|
"properties": {
|
|
2800
3756
|
"text": {
|
|
@@ -2849,10 +3805,454 @@ var presentation = {
|
|
|
2849
3805
|
}
|
|
2850
3806
|
}
|
|
2851
3807
|
},
|
|
3808
|
+
"OverlayShape": {
|
|
3809
|
+
"type": "object",
|
|
3810
|
+
"additionalProperties": false,
|
|
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.",
|
|
3812
|
+
"properties": {
|
|
3813
|
+
"id": {
|
|
3814
|
+
"type": "string",
|
|
3815
|
+
"minLength": 1,
|
|
3816
|
+
"description": "Optional stable identifier, unique among slide, payload and overlay ids in the document. A connector names it in 'from' or 'to'.",
|
|
3817
|
+
"examples": [
|
|
3818
|
+
"badge-new",
|
|
3819
|
+
"callout-1"
|
|
3820
|
+
]
|
|
3821
|
+
},
|
|
3822
|
+
"x": {
|
|
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'."
|
|
3825
|
+
},
|
|
3826
|
+
"y": {
|
|
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."
|
|
3829
|
+
},
|
|
3830
|
+
"width": {
|
|
3831
|
+
"type": "number",
|
|
3832
|
+
"minimum": 0,
|
|
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."
|
|
3835
|
+
},
|
|
3836
|
+
"height": {
|
|
3837
|
+
"type": "number",
|
|
3838
|
+
"minimum": 0,
|
|
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."
|
|
3841
|
+
},
|
|
3842
|
+
"at": {
|
|
3843
|
+
"$ref": "#/$defs/OverlayAnchor"
|
|
3844
|
+
},
|
|
3845
|
+
"layer": {
|
|
3846
|
+
"type": "string",
|
|
3847
|
+
"enum": [
|
|
3848
|
+
"front",
|
|
3849
|
+
"back"
|
|
3850
|
+
],
|
|
3851
|
+
"description": "Overlay shapes only. front (the default) draws the shape over the slide: above the content and the furniture. back draws it behind the slide: above the background and the watermark, below the content and the furniture (a panel or band behind a block). Array order stacks the shapes within each layer. Connectors are always in front."
|
|
3852
|
+
},
|
|
3853
|
+
"connector": {
|
|
3854
|
+
"$ref": "#/$defs/Connector",
|
|
3855
|
+
"description": "Makes the entry a connector: what it joins and how it runs."
|
|
3856
|
+
},
|
|
3857
|
+
"shape": {
|
|
3858
|
+
"$ref": "#/$defs/ShapePreset",
|
|
3859
|
+
"description": "The preset geometry, as on a shape block. Default rect."
|
|
3860
|
+
},
|
|
3861
|
+
"path": {
|
|
3862
|
+
"$ref": "#/$defs/ShapePath",
|
|
3863
|
+
"description": "Custom geometry instead of a preset (a:custGeom), as on a shape block."
|
|
3864
|
+
},
|
|
3865
|
+
"adjust": {
|
|
3866
|
+
"type": "object",
|
|
3867
|
+
"propertyNames": {
|
|
3868
|
+
"pattern": "^[a-z][A-Za-z0-9]*$"
|
|
3869
|
+
},
|
|
3870
|
+
"additionalProperties": {
|
|
3871
|
+
"type": "number"
|
|
3872
|
+
},
|
|
3873
|
+
"description": "The preset's adjust handles (a:avLst) in OPF units, as on a shape block. On a connector, the adjust values of its connector preset (adj1 of an elbow or a curve between sites on one axis, a fraction of the frame's width), which replace the automatic route's, so a route made in PowerPoint is kept exactly.",
|
|
3874
|
+
"examples": [
|
|
3875
|
+
{
|
|
3876
|
+
"adj": 0.25
|
|
3877
|
+
}
|
|
3878
|
+
]
|
|
3879
|
+
},
|
|
3880
|
+
"fill": {
|
|
3881
|
+
"$ref": "#/$defs/ShapeFill",
|
|
3882
|
+
"description": "'none', a ColorRef, { gradient } or { pattern }. Default the style's fill."
|
|
3883
|
+
},
|
|
3884
|
+
"opacity": {
|
|
3885
|
+
"type": "number",
|
|
3886
|
+
"minimum": 0,
|
|
3887
|
+
"maximum": 1,
|
|
3888
|
+
"description": "The fill's opacity (a:alpha). Default 1."
|
|
3889
|
+
},
|
|
3890
|
+
"stroke": {
|
|
3891
|
+
"$ref": "#/$defs/Stroke",
|
|
3892
|
+
"description": "A shape's line along its outline (default the style's line), or a connector's line: color, width, dash, compound, sketch and arrowheads ('start' at 'from', 'end' at 'to'; default a 2-pixel line in the slide's text color with no arrowheads)."
|
|
3893
|
+
},
|
|
3894
|
+
"style": {
|
|
3895
|
+
"type": "string",
|
|
3896
|
+
"enum": [
|
|
3897
|
+
"none",
|
|
3898
|
+
"subtle",
|
|
3899
|
+
"moderate",
|
|
3900
|
+
"intense"
|
|
3901
|
+
],
|
|
3902
|
+
"description": "The theme shape style, as on a shape block. Default moderate."
|
|
3903
|
+
},
|
|
3904
|
+
"shadow": {
|
|
3905
|
+
"$ref": "#/$defs/Shadow",
|
|
3906
|
+
"description": "Outer shadow."
|
|
3907
|
+
},
|
|
3908
|
+
"innerShadow": {
|
|
3909
|
+
"$ref": "#/$defs/InnerShadow",
|
|
3910
|
+
"description": "Inner shadow."
|
|
3911
|
+
},
|
|
3912
|
+
"glow": {
|
|
3913
|
+
"$ref": "#/$defs/Glow",
|
|
3914
|
+
"description": "Glow."
|
|
3915
|
+
},
|
|
3916
|
+
"softEdge": {
|
|
3917
|
+
"type": "number",
|
|
3918
|
+
"minimum": 0,
|
|
3919
|
+
"maximum": 200,
|
|
3920
|
+
"description": "Soft edges (a:softEdge), radius in reference pixels at a 720-pixel short edge."
|
|
3921
|
+
},
|
|
3922
|
+
"reflection": {
|
|
3923
|
+
"$ref": "#/$defs/Reflection",
|
|
3924
|
+
"description": "Reflection."
|
|
3925
|
+
},
|
|
3926
|
+
"blur": {
|
|
3927
|
+
"type": "number",
|
|
3928
|
+
"minimum": 0,
|
|
3929
|
+
"maximum": 200,
|
|
3930
|
+
"description": "Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge."
|
|
3931
|
+
},
|
|
3932
|
+
"rotate": {
|
|
3933
|
+
"type": "number",
|
|
3934
|
+
"minimum": -360,
|
|
3935
|
+
"maximum": 360,
|
|
3936
|
+
"description": "Rotation in degrees, clockwise, about the shape's center (a:xfrm rot). Its connection sites turn with it."
|
|
3937
|
+
},
|
|
3938
|
+
"flip": {
|
|
3939
|
+
"type": "string",
|
|
3940
|
+
"enum": [
|
|
3941
|
+
"horizontal",
|
|
3942
|
+
"vertical",
|
|
3943
|
+
"both"
|
|
3944
|
+
],
|
|
3945
|
+
"description": "Mirror the geometry (a:xfrm flipH, flipV). The text is not mirrored."
|
|
3946
|
+
},
|
|
3947
|
+
"text": {
|
|
3948
|
+
"$ref": "#/$defs/ContentPayload/properties/text",
|
|
3949
|
+
"description": "Text inside the shape's text rectangle (a string or TextRun[]), fitted by OPF's measured fonts from the body size down to the readability floor and never below it."
|
|
3950
|
+
},
|
|
3951
|
+
"anchor": {
|
|
3952
|
+
"type": "string",
|
|
3953
|
+
"enum": [
|
|
3954
|
+
"top",
|
|
3955
|
+
"middle",
|
|
3956
|
+
"bottom"
|
|
3957
|
+
],
|
|
3958
|
+
"description": "Vertical placement of the text in the text rectangle (a:bodyPr anchor). Default middle."
|
|
3959
|
+
},
|
|
3960
|
+
"padding": {
|
|
3961
|
+
"$ref": "#/$defs/ShapePadding",
|
|
3962
|
+
"description": "Text insets inside the text rectangle."
|
|
3963
|
+
},
|
|
3964
|
+
"textDirection": {
|
|
3965
|
+
"type": "string",
|
|
3966
|
+
"enum": [
|
|
3967
|
+
"horizontal",
|
|
3968
|
+
"vertical",
|
|
3969
|
+
"vertical270",
|
|
3970
|
+
"stacked"
|
|
3971
|
+
],
|
|
3972
|
+
"description": "Text direction (a:bodyPr vert). Default horizontal."
|
|
3973
|
+
},
|
|
3974
|
+
"alt": {
|
|
3975
|
+
"type": "string",
|
|
3976
|
+
"description": "Alternative text (p:cNvPr descr). Without it the shape's text is what is read."
|
|
3977
|
+
},
|
|
3978
|
+
"decorative": {
|
|
3979
|
+
"type": "boolean",
|
|
3980
|
+
"description": "Mark the shape decorative (a16:decorative): screen readers skip it."
|
|
3981
|
+
},
|
|
3982
|
+
"hidden": {
|
|
3983
|
+
"type": "boolean",
|
|
3984
|
+
"description": "Keep the shape in the file but do not draw it (p:cNvPr hidden). A link on a hidden shape is a validation finding (opf/shape-link-hidden)."
|
|
3985
|
+
},
|
|
3986
|
+
"link": {
|
|
3987
|
+
"type": "string",
|
|
3988
|
+
"pattern": "^(https?://|mailto:|tel:)\\S+$",
|
|
3989
|
+
"description": "URL opened when the shape is clicked in a slide show (a:hlinkClick): an http(s) URL, a 'mailto:' address or a 'tel:' number.",
|
|
3990
|
+
"examples": [
|
|
3991
|
+
"https://acme.com/pricing"
|
|
3992
|
+
]
|
|
3993
|
+
},
|
|
3994
|
+
"extensions": {
|
|
3995
|
+
"type": "object",
|
|
3996
|
+
"description": "Custom data passthrough for agent workflows; ignored by the engine but preserved across read/write round-trips."
|
|
3997
|
+
}
|
|
3998
|
+
},
|
|
3999
|
+
"examples": [
|
|
4000
|
+
{
|
|
4001
|
+
"shape": "wedgeRectCallout",
|
|
4002
|
+
"text": "New this quarter",
|
|
4003
|
+
"x": 0.62,
|
|
4004
|
+
"y": 0.12,
|
|
4005
|
+
"width": 0.25,
|
|
4006
|
+
"height": 0.12,
|
|
4007
|
+
"style": "subtle"
|
|
4008
|
+
},
|
|
4009
|
+
{
|
|
4010
|
+
"id": "badge",
|
|
4011
|
+
"shape": "ellipse",
|
|
4012
|
+
"text": "3",
|
|
4013
|
+
"at": {
|
|
4014
|
+
"block": "team-photo",
|
|
4015
|
+
"edge": "top",
|
|
4016
|
+
"offset": -12
|
|
4017
|
+
}
|
|
4018
|
+
},
|
|
4019
|
+
{
|
|
4020
|
+
"connector": {
|
|
4021
|
+
"from": "plan",
|
|
4022
|
+
"to": "build",
|
|
4023
|
+
"route": "elbow"
|
|
4024
|
+
},
|
|
4025
|
+
"stroke": {
|
|
4026
|
+
"width": 2,
|
|
4027
|
+
"end": {
|
|
4028
|
+
"type": "triangle"
|
|
4029
|
+
}
|
|
4030
|
+
}
|
|
4031
|
+
}
|
|
4032
|
+
]
|
|
4033
|
+
},
|
|
4034
|
+
"OverlayAnchor": {
|
|
4035
|
+
"type": "object",
|
|
4036
|
+
"additionalProperties": false,
|
|
4037
|
+
"required": [
|
|
4038
|
+
"block",
|
|
4039
|
+
"edge"
|
|
4040
|
+
],
|
|
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.",
|
|
4042
|
+
"properties": {
|
|
4043
|
+
"block": {
|
|
4044
|
+
"type": "string",
|
|
4045
|
+
"minLength": 1,
|
|
4046
|
+
"description": "The id of a block on this slide (a content payload or a group, at any depth)."
|
|
4047
|
+
},
|
|
4048
|
+
"edge": {
|
|
4049
|
+
"type": "string",
|
|
4050
|
+
"enum": [
|
|
4051
|
+
"top",
|
|
4052
|
+
"bottom",
|
|
4053
|
+
"start",
|
|
4054
|
+
"end",
|
|
4055
|
+
"center"
|
|
4056
|
+
],
|
|
4057
|
+
"description": "The edge of the block the shape sits outside of, or its center."
|
|
4058
|
+
},
|
|
4059
|
+
"offset": {
|
|
4060
|
+
"type": "number",
|
|
4061
|
+
"minimum": -720,
|
|
4062
|
+
"maximum": 720,
|
|
4063
|
+
"description": "The gap between the block's edge and the shape, in reference pixels at a 720-pixel short edge; a negative offset overlaps the block. Default 0. Ignored for 'center'."
|
|
4064
|
+
},
|
|
4065
|
+
"width": {
|
|
4066
|
+
"type": "number",
|
|
4067
|
+
"exclusiveMinimum": 0,
|
|
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)."
|
|
4070
|
+
},
|
|
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": {
|
|
4084
|
+
"type": "number",
|
|
4085
|
+
"exclusiveMinimum": 0,
|
|
4086
|
+
"maximum": 1280,
|
|
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."
|
|
4114
|
+
}
|
|
4115
|
+
},
|
|
4116
|
+
"examples": [
|
|
4117
|
+
{
|
|
4118
|
+
"block": "team-photo",
|
|
4119
|
+
"edge": "top",
|
|
4120
|
+
"offset": 8
|
|
4121
|
+
},
|
|
4122
|
+
{
|
|
4123
|
+
"block": "revenue-chart",
|
|
4124
|
+
"edge": "end",
|
|
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
|
+
}
|
|
4164
|
+
}
|
|
4165
|
+
]
|
|
4166
|
+
},
|
|
4167
|
+
"Connector": {
|
|
4168
|
+
"type": "object",
|
|
4169
|
+
"additionalProperties": false,
|
|
4170
|
+
"required": [
|
|
4171
|
+
"from",
|
|
4172
|
+
"to"
|
|
4173
|
+
],
|
|
4174
|
+
"description": "What a connector joins and how it runs. Each end attaches to a connection site of its shape: a preset's own sites (turned and flipped with the shape), or the four edge midpoints of a block that is not a shape (DrawingML's rect: 0 top, 1 left, 2 bottom, 3 right). Without 'fromSite' and 'toSite' core chooses the pair of sites that face each other with the shortest route.",
|
|
4175
|
+
"properties": {
|
|
4176
|
+
"from": {
|
|
4177
|
+
"type": "string",
|
|
4178
|
+
"minLength": 1,
|
|
4179
|
+
"description": "The id of the block or overlay shape on this slide the connector starts at. An id that is not on the slide is a finding (opf/connector-end-missing) and the connector is not drawn."
|
|
4180
|
+
},
|
|
4181
|
+
"to": {
|
|
4182
|
+
"type": "string",
|
|
4183
|
+
"minLength": 1,
|
|
4184
|
+
"description": "The id of the block or overlay shape on this slide the connector ends at."
|
|
4185
|
+
},
|
|
4186
|
+
"route": {
|
|
4187
|
+
"type": "string",
|
|
4188
|
+
"enum": [
|
|
4189
|
+
"straight",
|
|
4190
|
+
"elbow",
|
|
4191
|
+
"curved"
|
|
4192
|
+
],
|
|
4193
|
+
"description": "straight is one segment (straightConnector1); elbow runs horizontally and vertically (bentConnector3, bentConnector2 between perpendicular sites); curved is PowerPoint's curved connector (curvedConnector3, curvedConnector2 between perpendicular sites). Default straight."
|
|
4194
|
+
},
|
|
4195
|
+
"fromSite": {
|
|
4196
|
+
"type": "integer",
|
|
4197
|
+
"minimum": 0,
|
|
4198
|
+
"description": "The connection site index at 'from' (DrawingML's cxn idx), instead of the automatic choice. An index the shape does not have is a validation error."
|
|
4199
|
+
},
|
|
4200
|
+
"toSite": {
|
|
4201
|
+
"type": "integer",
|
|
4202
|
+
"minimum": 0,
|
|
4203
|
+
"description": "The connection site index at 'to', instead of the automatic choice."
|
|
4204
|
+
}
|
|
4205
|
+
},
|
|
4206
|
+
"examples": [
|
|
4207
|
+
{
|
|
4208
|
+
"from": "plan",
|
|
4209
|
+
"to": "build",
|
|
4210
|
+
"route": "elbow"
|
|
4211
|
+
},
|
|
4212
|
+
{
|
|
4213
|
+
"from": "a",
|
|
4214
|
+
"to": "b",
|
|
4215
|
+
"fromSite": 3,
|
|
4216
|
+
"toSite": 1
|
|
4217
|
+
}
|
|
4218
|
+
]
|
|
4219
|
+
},
|
|
2852
4220
|
"Slide": {
|
|
2853
4221
|
"type": "object",
|
|
2854
|
-
"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.",
|
|
2855
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
|
+
},
|
|
2856
4256
|
"properties": {
|
|
2857
4257
|
"id": {
|
|
2858
4258
|
"type": "string",
|
|
@@ -2864,6 +4264,22 @@ var presentation = {
|
|
|
2864
4264
|
"ask"
|
|
2865
4265
|
]
|
|
2866
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
|
+
},
|
|
2867
4283
|
"type": {
|
|
2868
4284
|
"type": "string",
|
|
2869
4285
|
"enum": [
|
|
@@ -2962,7 +4378,7 @@ var presentation = {
|
|
|
2962
4378
|
}
|
|
2963
4379
|
}
|
|
2964
4380
|
],
|
|
2965
|
-
"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.",
|
|
2966
4382
|
"examples": [
|
|
2967
4383
|
"Intro",
|
|
2968
4384
|
"Confidential",
|
|
@@ -3019,7 +4435,7 @@ var presentation = {
|
|
|
3019
4435
|
]
|
|
3020
4436
|
},
|
|
3021
4437
|
"image": {
|
|
3022
|
-
"$ref": "#/$defs/
|
|
4438
|
+
"$ref": "#/$defs/ImagePayload",
|
|
3023
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'."
|
|
3024
4440
|
},
|
|
3025
4441
|
"video": {
|
|
@@ -3083,7 +4499,7 @@ var presentation = {
|
|
|
3083
4499
|
"$ref": "#/$defs/Diagram"
|
|
3084
4500
|
}
|
|
3085
4501
|
],
|
|
3086
|
-
"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'.`
|
|
3087
4503
|
},
|
|
3088
4504
|
"caption": {
|
|
3089
4505
|
"$ref": "#/$defs/Caption",
|
|
@@ -3096,26 +4512,58 @@ var presentation = {
|
|
|
3096
4512
|
},
|
|
3097
4513
|
"description": "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks."
|
|
3098
4514
|
},
|
|
4515
|
+
"shapes": {
|
|
4516
|
+
"type": "array",
|
|
4517
|
+
"items": {
|
|
4518
|
+
"$ref": "#/$defs/OverlayShape"
|
|
4519
|
+
},
|
|
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.",
|
|
4521
|
+
"examples": [
|
|
4522
|
+
[
|
|
4523
|
+
{
|
|
4524
|
+
"id": "note",
|
|
4525
|
+
"shape": "wedgeRectCallout",
|
|
4526
|
+
"text": "Launch",
|
|
4527
|
+
"x": 0.7,
|
|
4528
|
+
"y": 0.1,
|
|
4529
|
+
"width": 0.2,
|
|
4530
|
+
"height": 0.1
|
|
4531
|
+
},
|
|
4532
|
+
{
|
|
4533
|
+
"connector": {
|
|
4534
|
+
"from": "plan",
|
|
4535
|
+
"to": "ship",
|
|
4536
|
+
"route": "elbow"
|
|
4537
|
+
},
|
|
4538
|
+
"stroke": {
|
|
4539
|
+
"end": {
|
|
4540
|
+
"type": "triangle"
|
|
4541
|
+
}
|
|
4542
|
+
}
|
|
4543
|
+
}
|
|
4544
|
+
]
|
|
4545
|
+
]
|
|
4546
|
+
},
|
|
3099
4547
|
"design": {
|
|
3100
4548
|
"$ref": "#/$defs/SlideDesign",
|
|
3101
4549
|
"description": "Slide-level design applied on top of the deck-wide design."
|
|
3102
4550
|
},
|
|
3103
|
-
"
|
|
4551
|
+
"start": {
|
|
3104
4552
|
"$ref": "#/$defs/ContentPayload"
|
|
3105
4553
|
},
|
|
3106
4554
|
"center": {
|
|
3107
4555
|
"$ref": "#/$defs/ContentPayload"
|
|
3108
4556
|
},
|
|
3109
|
-
"
|
|
4557
|
+
"end": {
|
|
3110
4558
|
"$ref": "#/$defs/ContentPayload"
|
|
3111
4559
|
},
|
|
3112
|
-
"
|
|
4560
|
+
"start+center": {
|
|
3113
4561
|
"$ref": "#/$defs/ContentPayload"
|
|
3114
4562
|
},
|
|
3115
|
-
"center+
|
|
4563
|
+
"center+end": {
|
|
3116
4564
|
"$ref": "#/$defs/ContentPayload"
|
|
3117
4565
|
},
|
|
3118
|
-
"
|
|
4566
|
+
"start+center+end": {
|
|
3119
4567
|
"$ref": "#/$defs/ContentPayload"
|
|
3120
4568
|
},
|
|
3121
4569
|
"top": {
|
|
@@ -3136,112 +4584,112 @@ var presentation = {
|
|
|
3136
4584
|
"top+middle+bottom": {
|
|
3137
4585
|
"$ref": "#/$defs/ContentPayload"
|
|
3138
4586
|
},
|
|
3139
|
-
"top:
|
|
4587
|
+
"top:start": {
|
|
3140
4588
|
"$ref": "#/$defs/ContentPayload"
|
|
3141
4589
|
},
|
|
3142
4590
|
"top:center": {
|
|
3143
4591
|
"$ref": "#/$defs/ContentPayload"
|
|
3144
4592
|
},
|
|
3145
|
-
"top:
|
|
4593
|
+
"top:end": {
|
|
3146
4594
|
"$ref": "#/$defs/ContentPayload"
|
|
3147
4595
|
},
|
|
3148
|
-
"top:
|
|
4596
|
+
"top:start+center": {
|
|
3149
4597
|
"$ref": "#/$defs/ContentPayload"
|
|
3150
4598
|
},
|
|
3151
|
-
"top:center+
|
|
4599
|
+
"top:center+end": {
|
|
3152
4600
|
"$ref": "#/$defs/ContentPayload"
|
|
3153
4601
|
},
|
|
3154
|
-
"top:
|
|
4602
|
+
"top:start+center+end": {
|
|
3155
4603
|
"$ref": "#/$defs/ContentPayload"
|
|
3156
4604
|
},
|
|
3157
|
-
"middle:
|
|
4605
|
+
"middle:start": {
|
|
3158
4606
|
"$ref": "#/$defs/ContentPayload"
|
|
3159
4607
|
},
|
|
3160
4608
|
"middle:center": {
|
|
3161
4609
|
"$ref": "#/$defs/ContentPayload"
|
|
3162
4610
|
},
|
|
3163
|
-
"middle:
|
|
4611
|
+
"middle:end": {
|
|
3164
4612
|
"$ref": "#/$defs/ContentPayload"
|
|
3165
4613
|
},
|
|
3166
|
-
"middle:
|
|
4614
|
+
"middle:start+center": {
|
|
3167
4615
|
"$ref": "#/$defs/ContentPayload"
|
|
3168
4616
|
},
|
|
3169
|
-
"middle:center+
|
|
4617
|
+
"middle:center+end": {
|
|
3170
4618
|
"$ref": "#/$defs/ContentPayload"
|
|
3171
4619
|
},
|
|
3172
|
-
"middle:
|
|
4620
|
+
"middle:start+center+end": {
|
|
3173
4621
|
"$ref": "#/$defs/ContentPayload"
|
|
3174
4622
|
},
|
|
3175
|
-
"bottom:
|
|
4623
|
+
"bottom:start": {
|
|
3176
4624
|
"$ref": "#/$defs/ContentPayload"
|
|
3177
4625
|
},
|
|
3178
4626
|
"bottom:center": {
|
|
3179
4627
|
"$ref": "#/$defs/ContentPayload"
|
|
3180
4628
|
},
|
|
3181
|
-
"bottom:
|
|
4629
|
+
"bottom:end": {
|
|
3182
4630
|
"$ref": "#/$defs/ContentPayload"
|
|
3183
4631
|
},
|
|
3184
|
-
"bottom:
|
|
4632
|
+
"bottom:start+center": {
|
|
3185
4633
|
"$ref": "#/$defs/ContentPayload"
|
|
3186
4634
|
},
|
|
3187
|
-
"bottom:center+
|
|
4635
|
+
"bottom:center+end": {
|
|
3188
4636
|
"$ref": "#/$defs/ContentPayload"
|
|
3189
4637
|
},
|
|
3190
|
-
"bottom:
|
|
4638
|
+
"bottom:start+center+end": {
|
|
3191
4639
|
"$ref": "#/$defs/ContentPayload"
|
|
3192
4640
|
},
|
|
3193
|
-
"top+middle:
|
|
4641
|
+
"top+middle:start": {
|
|
3194
4642
|
"$ref": "#/$defs/ContentPayload"
|
|
3195
4643
|
},
|
|
3196
4644
|
"top+middle:center": {
|
|
3197
4645
|
"$ref": "#/$defs/ContentPayload"
|
|
3198
4646
|
},
|
|
3199
|
-
"top+middle:
|
|
4647
|
+
"top+middle:end": {
|
|
3200
4648
|
"$ref": "#/$defs/ContentPayload"
|
|
3201
4649
|
},
|
|
3202
|
-
"top+middle:
|
|
4650
|
+
"top+middle:start+center": {
|
|
3203
4651
|
"$ref": "#/$defs/ContentPayload"
|
|
3204
4652
|
},
|
|
3205
|
-
"top+middle:center+
|
|
4653
|
+
"top+middle:center+end": {
|
|
3206
4654
|
"$ref": "#/$defs/ContentPayload"
|
|
3207
4655
|
},
|
|
3208
|
-
"top+middle:
|
|
4656
|
+
"top+middle:start+center+end": {
|
|
3209
4657
|
"$ref": "#/$defs/ContentPayload"
|
|
3210
4658
|
},
|
|
3211
|
-
"middle+bottom:
|
|
4659
|
+
"middle+bottom:start": {
|
|
3212
4660
|
"$ref": "#/$defs/ContentPayload"
|
|
3213
4661
|
},
|
|
3214
4662
|
"middle+bottom:center": {
|
|
3215
4663
|
"$ref": "#/$defs/ContentPayload"
|
|
3216
4664
|
},
|
|
3217
|
-
"middle+bottom:
|
|
4665
|
+
"middle+bottom:end": {
|
|
3218
4666
|
"$ref": "#/$defs/ContentPayload"
|
|
3219
4667
|
},
|
|
3220
|
-
"middle+bottom:
|
|
4668
|
+
"middle+bottom:start+center": {
|
|
3221
4669
|
"$ref": "#/$defs/ContentPayload"
|
|
3222
4670
|
},
|
|
3223
|
-
"middle+bottom:center+
|
|
4671
|
+
"middle+bottom:center+end": {
|
|
3224
4672
|
"$ref": "#/$defs/ContentPayload"
|
|
3225
4673
|
},
|
|
3226
|
-
"middle+bottom:
|
|
4674
|
+
"middle+bottom:start+center+end": {
|
|
3227
4675
|
"$ref": "#/$defs/ContentPayload"
|
|
3228
4676
|
},
|
|
3229
|
-
"top+middle+bottom:
|
|
4677
|
+
"top+middle+bottom:start": {
|
|
3230
4678
|
"$ref": "#/$defs/ContentPayload"
|
|
3231
4679
|
},
|
|
3232
4680
|
"top+middle+bottom:center": {
|
|
3233
4681
|
"$ref": "#/$defs/ContentPayload"
|
|
3234
4682
|
},
|
|
3235
|
-
"top+middle+bottom:
|
|
4683
|
+
"top+middle+bottom:end": {
|
|
3236
4684
|
"$ref": "#/$defs/ContentPayload"
|
|
3237
4685
|
},
|
|
3238
|
-
"top+middle+bottom:
|
|
4686
|
+
"top+middle+bottom:start+center": {
|
|
3239
4687
|
"$ref": "#/$defs/ContentPayload"
|
|
3240
4688
|
},
|
|
3241
|
-
"top+middle+bottom:center+
|
|
4689
|
+
"top+middle+bottom:center+end": {
|
|
3242
4690
|
"$ref": "#/$defs/ContentPayload"
|
|
3243
4691
|
},
|
|
3244
|
-
"top+middle+bottom:
|
|
4692
|
+
"top+middle+bottom:start+center+end": {
|
|
3245
4693
|
"$ref": "#/$defs/ContentPayload"
|
|
3246
4694
|
},
|
|
3247
4695
|
"notes": {
|
|
@@ -3275,10 +4723,178 @@ var presentation = {
|
|
|
3275
4723
|
}
|
|
3276
4724
|
}
|
|
3277
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
|
+
},
|
|
3278
4772
|
"ContentPayload": {
|
|
3279
4773
|
"type": "object",
|
|
3280
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.",
|
|
3281
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
|
+
},
|
|
3282
4898
|
"properties": {
|
|
3283
4899
|
"id": {
|
|
3284
4900
|
"type": "string",
|
|
@@ -3295,7 +4911,7 @@ var presentation = {
|
|
|
3295
4911
|
"region": {
|
|
3296
4912
|
"type": "string",
|
|
3297
4913
|
"pattern": "^[a-z][a-z0-9-]*$",
|
|
3298
|
-
"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.",
|
|
3299
4915
|
"examples": [
|
|
3300
4916
|
"notes",
|
|
3301
4917
|
"metrics"
|
|
@@ -3315,9 +4931,10 @@ var presentation = {
|
|
|
3315
4931
|
"quote",
|
|
3316
4932
|
"timeline",
|
|
3317
4933
|
"diagram",
|
|
4934
|
+
"shape",
|
|
3318
4935
|
"group"
|
|
3319
4936
|
],
|
|
3320
|
-
"description": "Optional content kind. When omitted, engines infer the kind from the fields present."
|
|
4937
|
+
"description": "Optional content kind. When omitted, engines infer the kind from the fields present: a block with 'shape' and no 'image', or with 'path', is a shape block."
|
|
3321
4938
|
},
|
|
3322
4939
|
"text": {
|
|
3323
4940
|
"oneOf": [
|
|
@@ -3414,14 +5031,14 @@ var presentation = {
|
|
|
3414
5031
|
"maximum": 3
|
|
3415
5032
|
}
|
|
3416
5033
|
],
|
|
3417
|
-
"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'.",
|
|
3418
5035
|
"examples": [
|
|
3419
5036
|
"auto",
|
|
3420
5037
|
2
|
|
3421
5038
|
]
|
|
3422
5039
|
},
|
|
3423
5040
|
"image": {
|
|
3424
|
-
"$ref": "#/$defs/
|
|
5041
|
+
"$ref": "#/$defs/ImagePayload",
|
|
3425
5042
|
"description": "Source for an image item.",
|
|
3426
5043
|
"examples": [
|
|
3427
5044
|
"https://cdn.acme.com/images/diagram.png",
|
|
@@ -3451,30 +5068,147 @@ var presentation = {
|
|
|
3451
5068
|
"description": "Image payloads only. Width-to-height ratio of the frame: the frame becomes the largest centered box with this ratio inside the block's region, for example 2.39 for a cinematic letterbox or 0.5 for a phone-shaped frame. shape 'circle' always uses 1."
|
|
3452
5069
|
},
|
|
3453
5070
|
"shape": {
|
|
5071
|
+
"$ref": "#/$defs/ShapePreset",
|
|
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.",
|
|
5073
|
+
"examples": [
|
|
5074
|
+
"roundRect",
|
|
5075
|
+
"chevron",
|
|
5076
|
+
"ellipse",
|
|
5077
|
+
"wedgeRectCallout"
|
|
5078
|
+
]
|
|
5079
|
+
},
|
|
5080
|
+
"stroke": {
|
|
5081
|
+
"$ref": "#/$defs/Stroke",
|
|
5082
|
+
"description": "Shape and image blocks. The line along the outline: a shape's outline or the picture frame's shape (renamed from the picture key 'border' in 0.33, no alias). Without it a shape takes its style's line; a picture has none."
|
|
5083
|
+
},
|
|
5084
|
+
"path": {
|
|
5085
|
+
"$ref": "#/$defs/ShapePath",
|
|
5086
|
+
"description": "Shape blocks only. Custom geometry instead of a preset (a:custGeom): SVG path data in a 0 to 1 box, or { d, viewBox }. A block with 'path' is a shape block."
|
|
5087
|
+
},
|
|
5088
|
+
"fill": {
|
|
5089
|
+
"$ref": "#/$defs/ShapeFill",
|
|
5090
|
+
"description": "Shape blocks only. 'none', a ColorRef, { gradient } or { pattern }. Default the style's fill."
|
|
5091
|
+
},
|
|
5092
|
+
"style": {
|
|
3454
5093
|
"type": "string",
|
|
3455
5094
|
"enum": [
|
|
3456
|
-
"
|
|
3457
|
-
"
|
|
3458
|
-
"
|
|
3459
|
-
"
|
|
5095
|
+
"none",
|
|
5096
|
+
"subtle",
|
|
5097
|
+
"moderate",
|
|
5098
|
+
"intense"
|
|
5099
|
+
],
|
|
5100
|
+
"description": "Shape blocks only. The theme shape style, as PowerPoint's shape styles (p:style with a:lnRef, a:fillRef, a:effectRef and a:fontRef): subtle is a light tint of accent1 with an accent1 line and dark text, moderate (the default) a solid accent1 fill with a darker line and light text, intense accent1 25% darker with no line, light bold text and the soft shadow. none draws nothing the author did not set. An explicit fill, stroke or effect wins over the style's."
|
|
5101
|
+
},
|
|
5102
|
+
"rotate": {
|
|
5103
|
+
"type": "number",
|
|
5104
|
+
"minimum": -360,
|
|
5105
|
+
"maximum": 360,
|
|
5106
|
+
"description": "Shape blocks only. Rotation in degrees, clockwise, about the shape's center (a:xfrm rot). Composition keeps the unrotated box; the rotated outline may reach past it."
|
|
5107
|
+
},
|
|
5108
|
+
"flip": {
|
|
5109
|
+
"type": "string",
|
|
5110
|
+
"enum": [
|
|
5111
|
+
"horizontal",
|
|
5112
|
+
"vertical",
|
|
5113
|
+
"both"
|
|
5114
|
+
],
|
|
5115
|
+
"description": "Shape blocks only. Mirror the geometry (a:xfrm flipH, flipV). The text is not mirrored."
|
|
5116
|
+
},
|
|
5117
|
+
"anchor": {
|
|
5118
|
+
"type": "string",
|
|
5119
|
+
"enum": [
|
|
5120
|
+
"top",
|
|
5121
|
+
"middle",
|
|
5122
|
+
"bottom"
|
|
5123
|
+
],
|
|
5124
|
+
"description": "Shape blocks only. Vertical placement of the text in the text rectangle (a:bodyPr anchor t, ctr, b). Default middle."
|
|
5125
|
+
},
|
|
5126
|
+
"padding": {
|
|
5127
|
+
"$ref": "#/$defs/ShapePadding",
|
|
5128
|
+
"description": "Shape blocks only. Text insets inside the text rectangle."
|
|
5129
|
+
},
|
|
5130
|
+
"textDirection": {
|
|
5131
|
+
"type": "string",
|
|
5132
|
+
"enum": [
|
|
5133
|
+
"horizontal",
|
|
5134
|
+
"vertical",
|
|
5135
|
+
"vertical270",
|
|
5136
|
+
"stacked"
|
|
3460
5137
|
],
|
|
3461
|
-
"description": "
|
|
5138
|
+
"description": "Shape blocks only. Text direction (a:bodyPr vert horz, vert, vert270, wordArtVert): vertical turns the text 90 degrees clockwise, vertical270 270, stacked stacks the letters top to bottom. Default horizontal."
|
|
5139
|
+
},
|
|
5140
|
+
"alt": {
|
|
5141
|
+
"type": "string",
|
|
5142
|
+
"description": "Shape blocks only. Alternative text for screen readers (p:cNvPr descr). Without it a shape's text is what is read."
|
|
5143
|
+
},
|
|
5144
|
+
"decorative": {
|
|
5145
|
+
"type": "boolean",
|
|
5146
|
+
"description": "Shape blocks only. Mark the shape decorative (a16:decorative): screen readers skip it and the accessibility checker does not ask for alt text."
|
|
5147
|
+
},
|
|
5148
|
+
"hidden": {
|
|
5149
|
+
"type": "boolean",
|
|
5150
|
+
"description": "Shape blocks only. Keep the shape in the file but do not draw it (p:cNvPr hidden). Composition still gives it its room. A link on a hidden shape cannot be clicked and is a validation finding (opf/shape-link-hidden)."
|
|
5151
|
+
},
|
|
5152
|
+
"link": {
|
|
5153
|
+
"type": "string",
|
|
5154
|
+
"pattern": "^(https?://|mailto:|tel:)\\S+$",
|
|
5155
|
+
"description": "Shape blocks only. URL opened when the shape is clicked in a slide show (a:hlinkClick): an http(s) URL, a 'mailto:' address or a 'tel:' number.",
|
|
5156
|
+
"examples": [
|
|
5157
|
+
"https://acme.com/pricing"
|
|
5158
|
+
]
|
|
5159
|
+
},
|
|
5160
|
+
"shadow": {
|
|
5161
|
+
"$ref": "#/$defs/Shadow",
|
|
5162
|
+
"description": "Shape blocks only. Outer shadow."
|
|
5163
|
+
},
|
|
5164
|
+
"innerShadow": {
|
|
5165
|
+
"$ref": "#/$defs/InnerShadow",
|
|
5166
|
+
"description": "Shape blocks only. Inner shadow."
|
|
5167
|
+
},
|
|
5168
|
+
"glow": {
|
|
5169
|
+
"$ref": "#/$defs/Glow",
|
|
5170
|
+
"description": "Shape blocks only. Glow."
|
|
5171
|
+
},
|
|
5172
|
+
"softEdge": {
|
|
5173
|
+
"type": "number",
|
|
5174
|
+
"minimum": 0,
|
|
5175
|
+
"maximum": 200,
|
|
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."
|
|
5177
|
+
},
|
|
5178
|
+
"reflection": {
|
|
5179
|
+
"$ref": "#/$defs/Reflection",
|
|
5180
|
+
"description": "Shape blocks only. Reflection."
|
|
3462
5181
|
},
|
|
3463
|
-
"
|
|
5182
|
+
"blur": {
|
|
3464
5183
|
"type": "number",
|
|
3465
5184
|
"minimum": 0,
|
|
3466
|
-
"maximum":
|
|
3467
|
-
"description": "
|
|
5185
|
+
"maximum": 200,
|
|
5186
|
+
"description": "Shape blocks only. Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge."
|
|
3468
5187
|
},
|
|
3469
|
-
"
|
|
3470
|
-
"
|
|
3471
|
-
"
|
|
5188
|
+
"adjust": {
|
|
5189
|
+
"type": "object",
|
|
5190
|
+
"propertyNames": {
|
|
5191
|
+
"pattern": "^[a-z][A-Za-z0-9]*$"
|
|
5192
|
+
},
|
|
5193
|
+
"additionalProperties": {
|
|
5194
|
+
"type": "number"
|
|
5195
|
+
},
|
|
5196
|
+
"description": "Shape and image blocks. The preset's adjust handles (a:avLst), named as DrawingML's guides (adj, adj1, adj2 ... and hexagon's vf): fractions of the shape's shorter side or of its size as the preset defines them, degrees for an angle, never DrawingML's 100000ths or 60000ths. roundRect's adj is the corner radius as a fraction of the shorter side (0.16667 by default, 0 to 0.5). An unknown name or a value out of the preset's range is a validation finding (opf/shape-adjust-unknown, opf/shape-adjust-range) and the preset's default is drawn.",
|
|
5197
|
+
"examples": [
|
|
5198
|
+
{
|
|
5199
|
+
"adj": 0.25
|
|
5200
|
+
},
|
|
5201
|
+
{
|
|
5202
|
+
"adj1": 0.5,
|
|
5203
|
+
"adj2": 0.35
|
|
5204
|
+
}
|
|
5205
|
+
]
|
|
3472
5206
|
},
|
|
3473
5207
|
"opacity": {
|
|
3474
5208
|
"type": "number",
|
|
3475
5209
|
"minimum": 0,
|
|
3476
5210
|
"maximum": 1,
|
|
3477
|
-
"description": "Image
|
|
5211
|
+
"description": "Image and shape blocks. On an image: the picture's opacity, exported as a native alphaModFix; the stroke and overlay keep their own. On a shape: the fill's opacity (a:alpha on the fill color, multiplied with an eight-digit hex alpha); the stroke and text keep theirs. Default 1."
|
|
3478
5212
|
},
|
|
3479
5213
|
"recolor": {
|
|
3480
5214
|
"$ref": "#/$defs/ImageRecolor",
|
|
@@ -3488,6 +5222,20 @@ var presentation = {
|
|
|
3488
5222
|
"$ref": "#/$defs/ImagePlacement",
|
|
3489
5223
|
"description": "Image payloads only, and only on a top-level block (slides.N.blocks.I), at most one per edge. Bleeds the image to one slide edge; the headings and the other blocks compose in the rest of the slide."
|
|
3490
5224
|
},
|
|
5225
|
+
"portrait": {
|
|
5226
|
+
"type": "string",
|
|
5227
|
+
"enum": [
|
|
5228
|
+
"avatar",
|
|
5229
|
+
"side",
|
|
5230
|
+
"top"
|
|
5231
|
+
],
|
|
5232
|
+
"description": "Image payloads only: how a person's picture is drawn in a team. A person is a group of a picture followed by a name (a list of one entry, whose description holds the role and a line, or a short text); a slide whose body is only people is a team. 'top' draws each picture across the top of its card at the card's width, 'side' beside the text at 40% of the card's width (on the logical start side), 'avatar' as the small picture over the name. Without it the engine chooses: 'top' for 2 to 4 people, 'side' for 5 or 6, the avatar for more or when a card is too narrow. The first person's value applies to the whole team, so the cards stay equal. A 'top' or 'side' picture covers its frame around `focus` (the upper third when none is given) in a rounded frame unless `shape` says otherwise; names, roles and lines keep their size, and a frame flatter than 4:3 falls back to the avatar. Ignored on a picture that is not a person's.",
|
|
5233
|
+
"examples": [
|
|
5234
|
+
"top",
|
|
5235
|
+
"side",
|
|
5236
|
+
"avatar"
|
|
5237
|
+
]
|
|
5238
|
+
},
|
|
3491
5239
|
"video": {
|
|
3492
5240
|
"$ref": "#/$defs/Asset",
|
|
3493
5241
|
"description": "Source for a video item. Engines do not play video: the preview draws a placeholder (a play badge with the asset's title or source as its caption), and PPTX export draws the same placeholder as native shapes linked to an http(s) source, with no embedded media. Native playback is out of scope (docs/programs/release-readiness).",
|
|
@@ -3608,7 +5356,7 @@ var presentation = {
|
|
|
3608
5356
|
"$ref": "#/$defs/Diagram"
|
|
3609
5357
|
}
|
|
3610
5358
|
],
|
|
3611
|
-
"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'.`,
|
|
3612
5360
|
"examples": [
|
|
3613
5361
|
"flowchart LR\n A[Brief] --> B{Approved?}\n B -->|yes| C[Build]\n B -->|no| A",
|
|
3614
5362
|
{
|
|
@@ -3640,6 +5388,10 @@ var presentation = {
|
|
|
3640
5388
|
true,
|
|
3641
5389
|
false
|
|
3642
5390
|
]
|
|
5391
|
+
},
|
|
5392
|
+
"icon": {
|
|
5393
|
+
"$ref": "#/$defs/IconReference",
|
|
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.'
|
|
3643
5395
|
}
|
|
3644
5396
|
},
|
|
3645
5397
|
"allOf": [
|
|
@@ -3813,6 +5565,32 @@ var presentation = {
|
|
|
3813
5565
|
]
|
|
3814
5566
|
}
|
|
3815
5567
|
},
|
|
5568
|
+
{
|
|
5569
|
+
"if": {
|
|
5570
|
+
"required": [
|
|
5571
|
+
"type"
|
|
5572
|
+
],
|
|
5573
|
+
"properties": {
|
|
5574
|
+
"type": {
|
|
5575
|
+
"const": "shape"
|
|
5576
|
+
}
|
|
5577
|
+
}
|
|
5578
|
+
},
|
|
5579
|
+
"then": {
|
|
5580
|
+
"anyOf": [
|
|
5581
|
+
{
|
|
5582
|
+
"required": [
|
|
5583
|
+
"shape"
|
|
5584
|
+
]
|
|
5585
|
+
},
|
|
5586
|
+
{
|
|
5587
|
+
"required": [
|
|
5588
|
+
"path"
|
|
5589
|
+
]
|
|
5590
|
+
}
|
|
5591
|
+
]
|
|
5592
|
+
}
|
|
5593
|
+
},
|
|
3816
5594
|
{
|
|
3817
5595
|
"if": {
|
|
3818
5596
|
"required": [
|
|
@@ -3997,7 +5775,7 @@ var presentation = {
|
|
|
3997
5775
|
},
|
|
3998
5776
|
"photo": {
|
|
3999
5777
|
"$ref": "#/$defs/Asset",
|
|
4000
|
-
"description": "Headshot of the attributed person, drawn as a circle beside the attribution and role lines (on the logical start side: left in a left-to-right deck, right in a right-to-left deck). Give it alt text (validate's opf/missing-alt-text rule checks it). A raster photograph works best; an SVG exports as its PNG raster because the
|
|
5778
|
+
"description": "Headshot of the attributed person, drawn as a circle beside the attribution and role lines (on the logical start side: left in a left-to-right deck, right in a right-to-left deck), or as a tall portrait beside the quote (see `portrait`). Give it alt text (validate's opf/missing-alt-text rule checks it). A raster photograph works best; an SVG exports as its PNG raster because the mask is not confirmed on SVG pictures in PowerPoint. An unresolved source draws the ordinary image placeholder.",
|
|
4001
5779
|
"examples": [
|
|
4002
5780
|
"./assets/priya-raman.jpg",
|
|
4003
5781
|
{
|
|
@@ -4006,6 +5784,18 @@ var presentation = {
|
|
|
4006
5784
|
}
|
|
4007
5785
|
]
|
|
4008
5786
|
},
|
|
5787
|
+
"portrait": {
|
|
5788
|
+
"type": "string",
|
|
5789
|
+
"enum": [
|
|
5790
|
+
"avatar",
|
|
5791
|
+
"side"
|
|
5792
|
+
],
|
|
5793
|
+
"description": "How the `photo` is drawn. 'side' draws it as a tall picture at the start of the quote (about a quarter of its width, rounded, cropped around the upper third), the quote text beside it and centered against it; 'avatar' as the circle beside the attribution. Without it the engine draws 'side' when the quote is at least 640 px wide and every part of the quote keeps the size it has beside the avatar (the picture takes a narrower share where the text needs the room), and the avatar otherwise (several quotes side by side, a quote beside other blocks). Needs `photo`.",
|
|
5794
|
+
"examples": [
|
|
5795
|
+
"side",
|
|
5796
|
+
"avatar"
|
|
5797
|
+
]
|
|
5798
|
+
},
|
|
4009
5799
|
"source": {
|
|
4010
5800
|
"type": "string",
|
|
4011
5801
|
"description": "Optional quote source, citation, or URL. Follows the attribution and role after ' - '.",
|
|
@@ -4178,12 +5968,16 @@ var presentation = {
|
|
|
4178
5968
|
"neutral"
|
|
4179
5969
|
],
|
|
4180
5970
|
"description": "Whether the change is good news. Positive draws the trend arrow and the trend and delta text in green, negative in red and neutral in the neutral text colour, each kept at 4.5:1 contrast or more against the slide background. When absent the colour follows the trend: up is positive, down is negative and flat is neutral. Set it when the direction is not the verdict, for example positive on a falling churn, cost or latency trend. The arrow always keeps the direction of `trend`. Only the trend arrow and the trend and delta text take the colour, so sentiment has no visible effect on a metric without a trend."
|
|
5971
|
+
},
|
|
5972
|
+
"icon": {
|
|
5973
|
+
"$ref": "#/$defs/IconReference",
|
|
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.`
|
|
4181
5975
|
}
|
|
4182
5976
|
}
|
|
4183
5977
|
},
|
|
4184
5978
|
"Diagram": {
|
|
4185
5979
|
"type": "object",
|
|
4186
|
-
"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 }.`,
|
|
4187
5981
|
"additionalProperties": false,
|
|
4188
5982
|
"required": [
|
|
4189
5983
|
"source"
|
|
@@ -4192,23 +5986,27 @@ var presentation = {
|
|
|
4192
5986
|
"source": {
|
|
4193
5987
|
"type": "string",
|
|
4194
5988
|
"minLength": 1,
|
|
4195
|
-
"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.",
|
|
4196
5990
|
"examples": [
|
|
4197
5991
|
"flowchart LR\n A[Idea] --> B[Prototype] --> C[Launch]",
|
|
4198
|
-
"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"
|
|
4199
5995
|
]
|
|
4200
5996
|
},
|
|
4201
5997
|
"syntax": {
|
|
4202
5998
|
"type": "string",
|
|
4203
5999
|
"enum": [
|
|
4204
|
-
"mermaid"
|
|
6000
|
+
"mermaid",
|
|
6001
|
+
"dot",
|
|
6002
|
+
"plantuml"
|
|
4205
6003
|
],
|
|
4206
6004
|
"default": "mermaid",
|
|
4207
|
-
"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."
|
|
4208
6006
|
},
|
|
4209
6007
|
"alt": {
|
|
4210
6008
|
"type": "string",
|
|
4211
|
-
"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.",
|
|
4212
6010
|
"examples": [
|
|
4213
6011
|
"Ideas move from brief to approval; approved work is built, rejected work returns to the brief."
|
|
4214
6012
|
]
|
|
@@ -4276,6 +6074,17 @@ var presentation = {
|
|
|
4276
6074
|
"Launch week"
|
|
4277
6075
|
]
|
|
4278
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
|
+
},
|
|
4279
6088
|
"what": {
|
|
4280
6089
|
"type": "string",
|
|
4281
6090
|
"description": "Short event label.",
|
|
@@ -4381,6 +6190,10 @@ var presentation = {
|
|
|
4381
6190
|
"minimum": 0,
|
|
4382
6191
|
"description": "Zero-based nesting level for the list item."
|
|
4383
6192
|
},
|
|
6193
|
+
"icon": {
|
|
6194
|
+
"$ref": "#/$defs/IconReference",
|
|
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.`
|
|
6196
|
+
},
|
|
4384
6197
|
"start": {
|
|
4385
6198
|
"type": "integer",
|
|
4386
6199
|
"minimum": 1,
|
|
@@ -4520,6 +6333,7 @@ var presentation = {
|
|
|
4520
6333
|
},
|
|
4521
6334
|
{
|
|
4522
6335
|
"type": "object",
|
|
6336
|
+
"additionalProperties": false,
|
|
4523
6337
|
"required": [
|
|
4524
6338
|
"text"
|
|
4525
6339
|
],
|
|
@@ -4549,18 +6363,29 @@ var presentation = {
|
|
|
4549
6363
|
"description": "Whether the run is rendered with a strikethrough line."
|
|
4550
6364
|
},
|
|
4551
6365
|
"color": {
|
|
4552
|
-
"
|
|
4553
|
-
|
|
6366
|
+
"anyOf": [
|
|
6367
|
+
{
|
|
6368
|
+
"type": "string"
|
|
6369
|
+
},
|
|
6370
|
+
{
|
|
6371
|
+
"$ref": "#/$defs/ColorTransform"
|
|
6372
|
+
}
|
|
6373
|
+
],
|
|
6374
|
+
"description": `Run text color. Documented forms: a hex string ('#RGB', '#RRGGBB', '#RRGGBBAA'), a color-scheme slot or role name resolved through the effective color scheme ('accent2', 'text'), or a 'var:<id>' reference into the top-level variables map. Prefer names over hex so runs survive re-theming. Or the lighter or darker object form of a ColorRef ({ "color": "accent1", "darken": 0.25 }). Any other string stays schema-valid so imported decks keep validating: validators warn and renderers fall back to the theme text color.`,
|
|
4554
6375
|
"examples": [
|
|
4555
6376
|
"#0F172A",
|
|
4556
6377
|
"accent2",
|
|
4557
|
-
"var:risk"
|
|
6378
|
+
"var:risk",
|
|
6379
|
+
{
|
|
6380
|
+
"color": "accent1",
|
|
6381
|
+
"darken": 0.25
|
|
6382
|
+
}
|
|
4558
6383
|
]
|
|
4559
6384
|
},
|
|
4560
6385
|
"fontSize": {
|
|
4561
6386
|
"type": "number",
|
|
4562
6387
|
"exclusiveMinimum": 0,
|
|
4563
|
-
"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."
|
|
4564
6389
|
},
|
|
4565
6390
|
"fontFamily": {
|
|
4566
6391
|
"type": "string",
|
|
@@ -4575,10 +6400,10 @@ var presentation = {
|
|
|
4575
6400
|
"type": "boolean",
|
|
4576
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."
|
|
4577
6402
|
},
|
|
4578
|
-
"
|
|
6403
|
+
"language": {
|
|
4579
6404
|
"type": "string",
|
|
4580
6405
|
"pattern": "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",
|
|
4581
|
-
"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.",
|
|
4582
6407
|
"examples": [
|
|
4583
6408
|
"fr-FR",
|
|
4584
6409
|
"ja-JP",
|
|
@@ -4652,7 +6477,7 @@ var presentation = {
|
|
|
4652
6477
|
]
|
|
4653
6478
|
},
|
|
4654
6479
|
"Caption": {
|
|
4655
|
-
"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.",
|
|
4656
6481
|
"oneOf": [
|
|
4657
6482
|
{
|
|
4658
6483
|
"type": "string"
|
|
@@ -4695,11 +6520,11 @@ var presentation = {
|
|
|
4695
6520
|
"align": {
|
|
4696
6521
|
"type": "string",
|
|
4697
6522
|
"enum": [
|
|
4698
|
-
"
|
|
6523
|
+
"start",
|
|
4699
6524
|
"center",
|
|
4700
|
-
"
|
|
6525
|
+
"end"
|
|
4701
6526
|
],
|
|
4702
|
-
"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."
|
|
4703
6528
|
}
|
|
4704
6529
|
}
|
|
4705
6530
|
}
|
|
@@ -4754,6 +6579,104 @@ var presentation = {
|
|
|
4754
6579
|
}
|
|
4755
6580
|
}
|
|
4756
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
|
+
},
|
|
4757
6680
|
"Chart": {
|
|
4758
6681
|
"type": "object",
|
|
4759
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]] } }`.',
|
|
@@ -4794,7 +6717,7 @@ var presentation = {
|
|
|
4794
6717
|
"waterfall",
|
|
4795
6718
|
"world"
|
|
4796
6719
|
],
|
|
4797
|
-
"description": "Chart type, an engine vocabulary validated directly (no catalog lookup): the chart types
|
|
6720
|
+
"description": "Chart type, an engine vocabulary validated directly (no catalog lookup): the chart types OPF supports natively in its preview and PPTX export, plus 'combo' (clustered columns with line series, see 'line' and 'secondaryAxis'). Each engine maps a type to its own chart model; labels and picker groups are catalog display metadata.",
|
|
4798
6721
|
"examples": [
|
|
4799
6722
|
"column",
|
|
4800
6723
|
"bar",
|
|
@@ -4847,16 +6770,23 @@ var presentation = {
|
|
|
4847
6770
|
},
|
|
4848
6771
|
"minItems": 1,
|
|
4849
6772
|
"uniqueItems": true,
|
|
4850
|
-
"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.",
|
|
4851
6774
|
"examples": [
|
|
4852
6775
|
[
|
|
4853
6776
|
"Margin"
|
|
4854
6777
|
]
|
|
4855
6778
|
]
|
|
4856
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
|
+
},
|
|
4857
6787
|
"axisTitles": {
|
|
4858
6788
|
"$ref": "#/$defs/ChartAxisTitles",
|
|
4859
|
-
"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."
|
|
4860
6790
|
},
|
|
4861
6791
|
"legend": {
|
|
4862
6792
|
"type": "string",
|
|
@@ -4867,7 +6797,7 @@ var presentation = {
|
|
|
4867
6797
|
"left",
|
|
4868
6798
|
"right"
|
|
4869
6799
|
],
|
|
4870
|
-
"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."
|
|
4871
6801
|
},
|
|
4872
6802
|
"dataLabels": {
|
|
4873
6803
|
"oneOf": [
|
|
@@ -4878,7 +6808,7 @@ var presentation = {
|
|
|
4878
6808
|
"$ref": "#/$defs/ChartDataLabels"
|
|
4879
6809
|
}
|
|
4880
6810
|
],
|
|
4881
|
-
"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."
|
|
4882
6812
|
},
|
|
4883
6813
|
"alt": {
|
|
4884
6814
|
"type": "string",
|
|
@@ -4904,7 +6834,7 @@ var presentation = {
|
|
|
4904
6834
|
},
|
|
4905
6835
|
"highlight": {
|
|
4906
6836
|
"$ref": "#/$defs/ChartHighlight",
|
|
4907
|
-
"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."
|
|
4908
6838
|
}
|
|
4909
6839
|
}
|
|
4910
6840
|
},
|
|
@@ -4923,7 +6853,7 @@ var presentation = {
|
|
|
4923
6853
|
},
|
|
4924
6854
|
"value": {
|
|
4925
6855
|
"type": "string",
|
|
4926
|
-
"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).",
|
|
4927
6857
|
"examples": [
|
|
4928
6858
|
"Revenue ($M)",
|
|
4929
6859
|
"Customers"
|
|
@@ -4931,7 +6861,7 @@ var presentation = {
|
|
|
4931
6861
|
},
|
|
4932
6862
|
"secondary": {
|
|
4933
6863
|
"type": "string",
|
|
4934
|
-
"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'.",
|
|
4935
6865
|
"examples": [
|
|
4936
6866
|
"Margin (%)"
|
|
4937
6867
|
]
|
|
@@ -4942,14 +6872,13 @@ var presentation = {
|
|
|
4942
6872
|
"type": "object",
|
|
4943
6873
|
"additionalProperties": false,
|
|
4944
6874
|
"minProperties": 1,
|
|
4945
|
-
"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.`,
|
|
4946
6876
|
"properties": {
|
|
4947
6877
|
"series": {
|
|
4948
6878
|
"type": "array",
|
|
4949
6879
|
"items": {
|
|
4950
6880
|
"type": "string"
|
|
4951
6881
|
},
|
|
4952
|
-
"minItems": 1,
|
|
4953
6882
|
"uniqueItems": true,
|
|
4954
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.",
|
|
4955
6884
|
"examples": [
|
|
@@ -4963,7 +6892,6 @@ var presentation = {
|
|
|
4963
6892
|
"items": {
|
|
4964
6893
|
"type": "string"
|
|
4965
6894
|
},
|
|
4966
|
-
"minItems": 1,
|
|
4967
6895
|
"uniqueItems": true,
|
|
4968
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.",
|
|
4969
6897
|
"examples": [
|
|
@@ -5018,7 +6946,7 @@ var presentation = {
|
|
|
5018
6946
|
"left",
|
|
5019
6947
|
"right"
|
|
5020
6948
|
],
|
|
5021
|
-
"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."
|
|
5022
6950
|
},
|
|
5023
6951
|
"separator": {
|
|
5024
6952
|
"type": "string",
|
|
@@ -5676,11 +7604,11 @@ var presentation = {
|
|
|
5676
7604
|
"align": {
|
|
5677
7605
|
"type": "string",
|
|
5678
7606
|
"enum": [
|
|
5679
|
-
"
|
|
7607
|
+
"start",
|
|
5680
7608
|
"center",
|
|
5681
|
-
"
|
|
7609
|
+
"end"
|
|
5682
7610
|
],
|
|
5683
|
-
"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."
|
|
5684
7612
|
},
|
|
5685
7613
|
"verticalAlign": {
|
|
5686
7614
|
"type": "string",
|
|
@@ -5744,34 +7672,8 @@ var presentation = {
|
|
|
5744
7672
|
"description": "Text insets in reference pixels. Defaults: top 8, right 10, bottom 4, left 10."
|
|
5745
7673
|
},
|
|
5746
7674
|
"TableCellBorder": {
|
|
5747
|
-
"
|
|
5748
|
-
"
|
|
5749
|
-
"required": [
|
|
5750
|
-
"color",
|
|
5751
|
-
"width"
|
|
5752
|
-
],
|
|
5753
|
-
"properties": {
|
|
5754
|
-
"color": {
|
|
5755
|
-
"$ref": "#/$defs/ColorRef",
|
|
5756
|
-
"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."
|
|
5757
|
-
},
|
|
5758
|
-
"width": {
|
|
5759
|
-
"type": "number",
|
|
5760
|
-
"minimum": 0,
|
|
5761
|
-
"maximum": 32,
|
|
5762
|
-
"description": "Border width in reference pixels; 0 removes this edge."
|
|
5763
|
-
},
|
|
5764
|
-
"dash": {
|
|
5765
|
-
"type": "string",
|
|
5766
|
-
"enum": [
|
|
5767
|
-
"solid",
|
|
5768
|
-
"dash",
|
|
5769
|
-
"dot"
|
|
5770
|
-
],
|
|
5771
|
-
"description": "Default solid."
|
|
5772
|
-
}
|
|
5773
|
-
},
|
|
5774
|
-
"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'."
|
|
5775
7677
|
},
|
|
5776
7678
|
"Catalogs": {
|
|
5777
7679
|
"type": "object",
|
|
@@ -5995,9 +7897,40 @@ var presentation = {
|
|
|
5995
7897
|
"tones": {
|
|
5996
7898
|
"$ref": "#/$defs/CatalogRecords",
|
|
5997
7899
|
"description": "Tone records keyed by id, each with the fields of https://openpresentation.org/schema/opf-tone/v1. Referenced from tone."
|
|
7900
|
+
},
|
|
7901
|
+
"iconSets": {
|
|
7902
|
+
"$ref": "#/$defs/CatalogRecords",
|
|
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>".'
|
|
5998
7904
|
}
|
|
5999
7905
|
}
|
|
6000
7906
|
},
|
|
7907
|
+
"IconReference": {
|
|
7908
|
+
"type": "string",
|
|
7909
|
+
"pattern": "^(?:[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*|[a-z][a-z0-9-]*|(?:asset:|https://|data:|\\./|\\.\\./)\\S+)$",
|
|
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.',
|
|
7911
|
+
"examples": [
|
|
7912
|
+
"lucide:truck",
|
|
7913
|
+
"tabler:rocket",
|
|
7914
|
+
"brand-mark",
|
|
7915
|
+
"asset:partner-logo"
|
|
7916
|
+
]
|
|
7917
|
+
},
|
|
7918
|
+
"Icons": {
|
|
7919
|
+
"type": "object",
|
|
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.',
|
|
7921
|
+
"propertyNames": {
|
|
7922
|
+
"pattern": "^[a-z][a-z0-9-]*$"
|
|
7923
|
+
},
|
|
7924
|
+
"additionalProperties": {
|
|
7925
|
+
"type": "string",
|
|
7926
|
+
"minLength": 1
|
|
7927
|
+
},
|
|
7928
|
+
"examples": [
|
|
7929
|
+
{
|
|
7930
|
+
"brand-mark": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 12l5 5L20 6" fill="none" stroke="currentColor" stroke-width="2"/></svg>'
|
|
7931
|
+
}
|
|
7932
|
+
]
|
|
7933
|
+
},
|
|
6001
7934
|
"CatalogSource": {
|
|
6002
7935
|
"type": "string",
|
|
6003
7936
|
"pattern": "^(?:https://[^\\s]+|pkg:[^\\s]+)$",
|
|
@@ -6046,13 +7979,14 @@ var presentation = {
|
|
|
6046
7979
|
"LanguageTag": {
|
|
6047
7980
|
"type": "string",
|
|
6048
7981
|
"pattern": "^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$",
|
|
6049
|
-
"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.",
|
|
6050
7983
|
"examples": [
|
|
6051
7984
|
"en-US",
|
|
6052
7985
|
"en-GB",
|
|
6053
7986
|
"ja",
|
|
6054
7987
|
"zh-Hans",
|
|
6055
|
-
"ar-SA"
|
|
7988
|
+
"ar-SA",
|
|
7989
|
+
"ar-SA-u-nu-latn"
|
|
6056
7990
|
]
|
|
6057
7991
|
},
|
|
6058
7992
|
"Composition": {
|
|
@@ -6716,18 +8650,18 @@ var theme = {
|
|
|
6716
8650
|
"titleAlignment": {
|
|
6717
8651
|
"type": "string",
|
|
6718
8652
|
"enum": [
|
|
6719
|
-
"
|
|
8653
|
+
"start",
|
|
6720
8654
|
"center",
|
|
6721
|
-
"
|
|
8655
|
+
"end"
|
|
6722
8656
|
],
|
|
6723
8657
|
"description": "As design.titleAlignment of a deck."
|
|
6724
8658
|
},
|
|
6725
8659
|
"contentAlignment": {
|
|
6726
8660
|
"type": "string",
|
|
6727
8661
|
"enum": [
|
|
6728
|
-
"
|
|
8662
|
+
"start",
|
|
6729
8663
|
"center",
|
|
6730
|
-
"
|
|
8664
|
+
"end"
|
|
6731
8665
|
],
|
|
6732
8666
|
"description": "As design.contentAlignment of a deck."
|
|
6733
8667
|
},
|
|
@@ -6774,7 +8708,7 @@ var theme = {
|
|
|
6774
8708
|
"examples": [
|
|
6775
8709
|
{
|
|
6776
8710
|
"contentBox": true,
|
|
6777
|
-
"titleAlignment": "
|
|
8711
|
+
"titleAlignment": "start"
|
|
6778
8712
|
}
|
|
6779
8713
|
]
|
|
6780
8714
|
},
|
|
@@ -6910,6 +8844,12 @@ var theme = {
|
|
|
6910
8844
|
},
|
|
6911
8845
|
"slot": {
|
|
6912
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."
|
|
6913
8853
|
}
|
|
6914
8854
|
}
|
|
6915
8855
|
}
|
|
@@ -6982,7 +8922,7 @@ var layout = {
|
|
|
6982
8922
|
"row",
|
|
6983
8923
|
"column"
|
|
6984
8924
|
],
|
|
6985
|
-
"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'.",
|
|
6986
8926
|
"examples": [
|
|
6987
8927
|
"row",
|
|
6988
8928
|
"column"
|
|
@@ -7171,11 +9111,11 @@ var layout = {
|
|
|
7171
9111
|
"middle",
|
|
7172
9112
|
"bottom"
|
|
7173
9113
|
],
|
|
7174
|
-
"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."
|
|
7175
9115
|
},
|
|
7176
9116
|
"rule": {
|
|
7177
9117
|
"type": "boolean",
|
|
7178
|
-
"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."
|
|
7179
9119
|
}
|
|
7180
9120
|
}
|
|
7181
9121
|
},
|
|
@@ -7233,7 +9173,7 @@ var layout = {
|
|
|
7233
9173
|
"subtitle"
|
|
7234
9174
|
]
|
|
7235
9175
|
},
|
|
7236
|
-
"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.",
|
|
7237
9177
|
"examples": [
|
|
7238
9178
|
"main",
|
|
7239
9179
|
"aside",
|
|
@@ -7261,10 +9201,11 @@ var layout = {
|
|
|
7261
9201
|
"quote",
|
|
7262
9202
|
"timeline",
|
|
7263
9203
|
"diagram",
|
|
9204
|
+
"shape",
|
|
7264
9205
|
"group"
|
|
7265
9206
|
]
|
|
7266
9207
|
},
|
|
7267
|
-
"description": "Content kinds the region takes: the body content kinds, and 'group' for a content group of any content. A group is also accepted where every one of its leaf kinds is. Omitted: every body content kind and 'group'.",
|
|
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'.",
|
|
7268
9209
|
"examples": [
|
|
7269
9210
|
[
|
|
7270
9211
|
"text",
|
|
@@ -7331,7 +9272,30 @@ var layout = {
|
|
|
7331
9272
|
"steps",
|
|
7332
9273
|
"numbered"
|
|
7333
9274
|
],
|
|
7334
|
-
"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."
|
|
9276
|
+
},
|
|
9277
|
+
"arrangement": {
|
|
9278
|
+
"type": "string",
|
|
9279
|
+
"enum": [
|
|
9280
|
+
"pyramid",
|
|
9281
|
+
"matrix",
|
|
9282
|
+
"cycle",
|
|
9283
|
+
"chevrons",
|
|
9284
|
+
"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"
|
|
9297
|
+
],
|
|
9298
|
+
"description": "For arrangement 'pyramid': 'up' (default) puts the narrow tip first, at the top; 'down' puts the widest level first and the tip at the bottom. Entries retain their authored top-to-bottom order. Both the continuous and stepped designs use shared geometry; downward pyramids export as editable native shapes until live SmartArt is qualified."
|
|
7335
9299
|
},
|
|
7336
9300
|
"anchor": {
|
|
7337
9301
|
"type": "string",
|
|
@@ -7353,6 +9317,25 @@ var layout = {
|
|
|
7353
9317
|
},
|
|
7354
9318
|
"required": [
|
|
7355
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
|
+
}
|
|
7356
9339
|
]
|
|
7357
9340
|
},
|
|
7358
9341
|
"DesignHints": {
|
|
@@ -7363,20 +9346,20 @@ var layout = {
|
|
|
7363
9346
|
"titleAlignment": {
|
|
7364
9347
|
"type": "string",
|
|
7365
9348
|
"enum": [
|
|
7366
|
-
"
|
|
9349
|
+
"start",
|
|
7367
9350
|
"center",
|
|
7368
|
-
"
|
|
9351
|
+
"end"
|
|
7369
9352
|
],
|
|
7370
|
-
"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."
|
|
7371
9354
|
},
|
|
7372
9355
|
"contentAlignment": {
|
|
7373
9356
|
"type": "string",
|
|
7374
9357
|
"enum": [
|
|
7375
|
-
"
|
|
9358
|
+
"start",
|
|
7376
9359
|
"center",
|
|
7377
|
-
"
|
|
9360
|
+
"end"
|
|
7378
9361
|
],
|
|
7379
|
-
"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."
|
|
7380
9363
|
},
|
|
7381
9364
|
"contentBox": {
|
|
7382
9365
|
"type": "boolean",
|
|
@@ -7396,8 +9379,8 @@ var layout = {
|
|
|
7396
9379
|
"none",
|
|
7397
9380
|
"top",
|
|
7398
9381
|
"bottom",
|
|
7399
|
-
"
|
|
7400
|
-
"
|
|
9382
|
+
"start",
|
|
9383
|
+
"end"
|
|
7401
9384
|
],
|
|
7402
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."
|
|
7403
9386
|
},
|
|
@@ -7444,7 +9427,7 @@ var layout = {
|
|
|
7444
9427
|
"$ref": "#/$defs/LayoutVariantRole"
|
|
7445
9428
|
}
|
|
7446
9429
|
],
|
|
7447
|
-
"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.",
|
|
7448
9431
|
"examples": [
|
|
7449
9432
|
"accent1",
|
|
7450
9433
|
"surface",
|
|
@@ -7459,7 +9442,7 @@ var layout = {
|
|
|
7459
9442
|
"surface",
|
|
7460
9443
|
"brand"
|
|
7461
9444
|
],
|
|
7462
|
-
"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."
|
|
7463
9446
|
},
|
|
7464
9447
|
"Composition": {
|
|
7465
9448
|
"type": "object",
|
|
@@ -7501,7 +9484,7 @@ var chartType = {
|
|
|
7501
9484
|
"$id": "https://openpresentation.org/schema/opf-chart-type/v1",
|
|
7502
9485
|
"$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.",
|
|
7503
9486
|
"title": "Chart Type",
|
|
7504
|
-
"description":
|
|
9487
|
+
"description": "Schema for chart-type records: display metadata for chart pickers (name, group, expected series, complexity) and the Open XML mapping a picker can describe. One record per chart type that OPF supports natively in its preview and PPTX export, plus the column-and-line combination 'combo'. A document's chart.type is an engine vocabulary validated directly; engines never look a chart-type record up. pptx.gallery publishes these records and @openpresentation/gallery ships them as catalogDisplay.chartTypes.",
|
|
7505
9488
|
"type": "object",
|
|
7506
9489
|
"additionalProperties": false,
|
|
7507
9490
|
"patternProperties": {
|
|
@@ -7673,15 +9656,15 @@ var chartType = {
|
|
|
7673
9656
|
},
|
|
7674
9657
|
"renderers": {
|
|
7675
9658
|
"type": "object",
|
|
7676
|
-
"description":
|
|
9659
|
+
"description": "Optional renderer-specific mappings. Keys are renderer ids; values are intentionally opaque to OPF. The bundled catalog records carry none.",
|
|
7677
9660
|
"additionalProperties": {
|
|
7678
9661
|
"type": "object",
|
|
7679
9662
|
"additionalProperties": true
|
|
7680
9663
|
},
|
|
7681
9664
|
"examples": [
|
|
7682
9665
|
{
|
|
7683
|
-
"
|
|
7684
|
-
"chartType": "
|
|
9666
|
+
"example-renderer": {
|
|
9667
|
+
"chartType": "StackedColumn"
|
|
7685
9668
|
}
|
|
7686
9669
|
}
|
|
7687
9670
|
]
|
|
@@ -8792,6 +10775,198 @@ var fontScheme = {
|
|
|
8792
10775
|
}
|
|
8793
10776
|
}
|
|
8794
10777
|
};
|
|
10778
|
+
var iconSet = {
|
|
10779
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
10780
|
+
"$id": "https://openpresentation.org/schema/opf-icon-set/v1",
|
|
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.",
|
|
10782
|
+
"title": "Icon Set",
|
|
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`).",
|
|
10784
|
+
"type": "object",
|
|
10785
|
+
"required": [
|
|
10786
|
+
"$schema",
|
|
10787
|
+
"id",
|
|
10788
|
+
"name",
|
|
10789
|
+
"license",
|
|
10790
|
+
"copyright",
|
|
10791
|
+
"viewBox",
|
|
10792
|
+
"style",
|
|
10793
|
+
"icons"
|
|
10794
|
+
],
|
|
10795
|
+
"additionalProperties": false,
|
|
10796
|
+
"patternProperties": {
|
|
10797
|
+
"^x-": {
|
|
10798
|
+
"description": "Publisher extension member, ignored by engines and stripped when a record is embedded."
|
|
10799
|
+
}
|
|
10800
|
+
},
|
|
10801
|
+
"properties": {
|
|
10802
|
+
"$schema": {
|
|
10803
|
+
"type": "string",
|
|
10804
|
+
"const": "https://openpresentation.org/schema/opf-icon-set/v1",
|
|
10805
|
+
"description": "Identifies this record as an icon set."
|
|
10806
|
+
},
|
|
10807
|
+
"id": {
|
|
10808
|
+
"type": "string",
|
|
10809
|
+
"pattern": "^[a-z][a-z0-9-]*$",
|
|
10810
|
+
"description": "The set's id, the part of an icon reference before the colon. `asset` is not a set id: `asset:<id>` is an asset reference.",
|
|
10811
|
+
"not": {
|
|
10812
|
+
"const": "asset"
|
|
10813
|
+
},
|
|
10814
|
+
"examples": [
|
|
10815
|
+
"lucide",
|
|
10816
|
+
"tabler"
|
|
10817
|
+
]
|
|
10818
|
+
},
|
|
10819
|
+
"name": {
|
|
10820
|
+
"type": "string",
|
|
10821
|
+
"description": "Human-readable set name shown in pickers.",
|
|
10822
|
+
"examples": [
|
|
10823
|
+
"Lucide",
|
|
10824
|
+
"Tabler outline"
|
|
10825
|
+
]
|
|
10826
|
+
},
|
|
10827
|
+
"summary": {
|
|
10828
|
+
"type": "string",
|
|
10829
|
+
"description": "One line on what the set looks like."
|
|
10830
|
+
},
|
|
10831
|
+
"version": {
|
|
10832
|
+
"type": "string",
|
|
10833
|
+
"description": "The version of the source the icons were taken from, such as the npm package version.",
|
|
10834
|
+
"examples": [
|
|
10835
|
+
"1.68.0"
|
|
10836
|
+
]
|
|
10837
|
+
},
|
|
10838
|
+
"package": {
|
|
10839
|
+
"type": "string",
|
|
10840
|
+
"description": "The npm package the icons were generated from.",
|
|
10841
|
+
"examples": [
|
|
10842
|
+
"lucide-static",
|
|
10843
|
+
"@tabler/icons"
|
|
10844
|
+
]
|
|
10845
|
+
},
|
|
10846
|
+
"homepage": {
|
|
10847
|
+
"type": "string",
|
|
10848
|
+
"format": "uri",
|
|
10849
|
+
"description": "Where the set is published."
|
|
10850
|
+
},
|
|
10851
|
+
"license": {
|
|
10852
|
+
"type": "string",
|
|
10853
|
+
"description": "The SPDX license id of the icons.",
|
|
10854
|
+
"examples": [
|
|
10855
|
+
"ISC",
|
|
10856
|
+
"MIT"
|
|
10857
|
+
]
|
|
10858
|
+
},
|
|
10859
|
+
"copyright": {
|
|
10860
|
+
"type": "string",
|
|
10861
|
+
"description": "The copyright notice the license asks every copy to keep."
|
|
10862
|
+
},
|
|
10863
|
+
"licenseText": {
|
|
10864
|
+
"type": "string",
|
|
10865
|
+
"description": "The full license text, as the source package ships it."
|
|
10866
|
+
},
|
|
10867
|
+
"viewBox": {
|
|
10868
|
+
"type": "array",
|
|
10869
|
+
"description": "The one viewBox every icon of the set is drawn in: min-x, min-y, width, height.",
|
|
10870
|
+
"prefixItems": [
|
|
10871
|
+
{
|
|
10872
|
+
"type": "number"
|
|
10873
|
+
},
|
|
10874
|
+
{
|
|
10875
|
+
"type": "number"
|
|
10876
|
+
},
|
|
10877
|
+
{
|
|
10878
|
+
"type": "number",
|
|
10879
|
+
"exclusiveMinimum": 0
|
|
10880
|
+
},
|
|
10881
|
+
{
|
|
10882
|
+
"type": "number",
|
|
10883
|
+
"exclusiveMinimum": 0
|
|
10884
|
+
}
|
|
10885
|
+
],
|
|
10886
|
+
"items": false,
|
|
10887
|
+
"minItems": 4,
|
|
10888
|
+
"examples": [
|
|
10889
|
+
[
|
|
10890
|
+
0,
|
|
10891
|
+
0,
|
|
10892
|
+
24,
|
|
10893
|
+
24
|
|
10894
|
+
]
|
|
10895
|
+
]
|
|
10896
|
+
},
|
|
10897
|
+
"style": {
|
|
10898
|
+
"type": "string",
|
|
10899
|
+
"enum": [
|
|
10900
|
+
"stroke",
|
|
10901
|
+
"fill"
|
|
10902
|
+
],
|
|
10903
|
+
"description": "How a string icon draws: `stroke` strokes its path at `strokeWidth` with no fill, `fill` fills it (nonzero rule)."
|
|
10904
|
+
},
|
|
10905
|
+
"strokeWidth": {
|
|
10906
|
+
"type": "number",
|
|
10907
|
+
"exclusiveMinimum": 0,
|
|
10908
|
+
"description": "The stroke width in viewBox units (stroke sets). Default 2."
|
|
10909
|
+
},
|
|
10910
|
+
"strokeLinecap": {
|
|
10911
|
+
"type": "string",
|
|
10912
|
+
"enum": [
|
|
10913
|
+
"butt",
|
|
10914
|
+
"round",
|
|
10915
|
+
"square"
|
|
10916
|
+
],
|
|
10917
|
+
"description": "The stroke's line caps. Default round."
|
|
10918
|
+
},
|
|
10919
|
+
"strokeLinejoin": {
|
|
10920
|
+
"type": "string",
|
|
10921
|
+
"enum": [
|
|
10922
|
+
"miter",
|
|
10923
|
+
"round",
|
|
10924
|
+
"bevel"
|
|
10925
|
+
],
|
|
10926
|
+
"description": "The stroke's line joins. Default round."
|
|
10927
|
+
},
|
|
10928
|
+
"icons": {
|
|
10929
|
+
"type": "object",
|
|
10930
|
+
"description": "The icons by name. A string is the icon's path data, drawn as `style` says; an object separates the parts a stroke set strokes (`stroke`) from those it fills (`fill`). Every icon is one color: the engines draw it in the accent.",
|
|
10931
|
+
"propertyNames": {
|
|
10932
|
+
"pattern": "^[a-z0-9][a-z0-9-]*$"
|
|
10933
|
+
},
|
|
10934
|
+
"additionalProperties": {
|
|
10935
|
+
"oneOf": [
|
|
10936
|
+
{
|
|
10937
|
+
"type": "string",
|
|
10938
|
+
"minLength": 1
|
|
10939
|
+
},
|
|
10940
|
+
{
|
|
10941
|
+
"type": "object",
|
|
10942
|
+
"additionalProperties": false,
|
|
10943
|
+
"minProperties": 1,
|
|
10944
|
+
"properties": {
|
|
10945
|
+
"stroke": {
|
|
10946
|
+
"type": "string",
|
|
10947
|
+
"minLength": 1
|
|
10948
|
+
},
|
|
10949
|
+
"fill": {
|
|
10950
|
+
"type": "string",
|
|
10951
|
+
"minLength": 1
|
|
10952
|
+
}
|
|
10953
|
+
}
|
|
10954
|
+
}
|
|
10955
|
+
]
|
|
10956
|
+
}
|
|
10957
|
+
},
|
|
10958
|
+
"tags": {
|
|
10959
|
+
"type": "object",
|
|
10960
|
+
"description": "Search keywords by icon name, from the source package: what an icon search (the MCP's search_icons, pptx.gallery) matches besides the name.",
|
|
10961
|
+
"additionalProperties": {
|
|
10962
|
+
"type": "array",
|
|
10963
|
+
"items": {
|
|
10964
|
+
"type": "string"
|
|
10965
|
+
}
|
|
10966
|
+
}
|
|
10967
|
+
}
|
|
10968
|
+
}
|
|
10969
|
+
};
|
|
8795
10970
|
var finding = {
|
|
8796
10971
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
8797
10972
|
"$id": "https://openpresentation.org/schema/opf-finding/v1",
|
|
@@ -9225,6 +11400,7 @@ var schemas = {
|
|
|
9225
11400
|
language,
|
|
9226
11401
|
colorScheme,
|
|
9227
11402
|
fontScheme,
|
|
11403
|
+
iconSet,
|
|
9228
11404
|
finding
|
|
9229
11405
|
};
|
|
9230
11406
|
var schemaNames = [
|
|
@@ -9240,6 +11416,7 @@ var schemaNames = [
|
|
|
9240
11416
|
"language",
|
|
9241
11417
|
"colorScheme",
|
|
9242
11418
|
"fontScheme",
|
|
11419
|
+
"iconSet",
|
|
9243
11420
|
"finding"
|
|
9244
11421
|
];
|
|
9245
11422
|
var schemaEntries = [
|
|
@@ -9255,7 +11432,8 @@ var schemaEntries = [
|
|
|
9255
11432
|
{ name: "language", file: "schemas/language.schema.json", schema: language },
|
|
9256
11433
|
{ name: "colorScheme", file: "schemas/color-scheme.schema.json", schema: colorScheme },
|
|
9257
11434
|
{ name: "fontScheme", file: "schemas/font-scheme.schema.json", schema: fontScheme },
|
|
11435
|
+
{ name: "iconSet", file: "schemas/icon-set.schema.json", schema: iconSet },
|
|
9258
11436
|
{ name: "finding", file: "schemas/finding.schema.json", schema: finding }
|
|
9259
11437
|
];
|
|
9260
11438
|
|
|
9261
|
-
export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone };
|
|
11439
|
+
export { audience, chartType, colorScheme, fontScheme, iconSet, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone };
|