@openpresentation/opf 0.32.1 → 0.33.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 +20 -20
- package/dist/{catalog-refs-kAefsZWT.d.ts → catalog-refs-B_0_vZg0.d.ts} +5 -0
- package/dist/{catalog-schemas-LdqOPebq.d.ts → catalog-schemas-CQTM-G8p.d.ts} +10 -4
- package/dist/{chunk-CLRYHWQN.js → chunk-ABWEUXLV.js} +72 -6
- package/dist/{chunk-XFHXQCXL.js → chunk-BI4ERFAA.js} +52 -1
- package/dist/{chunk-SZFO3MAJ.js → chunk-DAS75LGR.js} +3 -3
- package/dist/{chunk-F7DN33UL.js → chunk-E7WQHMCL.js} +6 -6
- package/dist/chunk-IJXKVM4W.js +221 -0
- package/dist/{chunk-AQEAZDL2.js → chunk-INIMUBSE.js} +2 -1
- package/dist/{chunk-NEJ32O7X.js → chunk-KVHNDHVS.js} +1 -1
- package/dist/{chunk-NVAJASOD.js → chunk-OPVJLL7H.js} +6867 -1862
- package/dist/{chunk-GM7WFPGG.js → chunk-PRXZD2II.js} +6 -1
- package/dist/{chunk-BBVW5ZC2.js → chunk-QD6DPS7X.js} +2 -2
- package/dist/{chunk-LEF4X4KI.js → chunk-QF5RSRXU.js} +1797 -170
- package/dist/{chunk-HKUV7NEN.js → chunk-R6C6BQOG.js} +1 -1
- package/dist/{chunk-IT7FQKED.js → chunk-S5QRGMUQ.js} +6 -6
- package/dist/{chunk-OXLA4HXQ.js → chunk-UK3J6FSU.js} +346 -53
- package/dist/{chunk-XQO2CT6Q.js → chunk-VKEYV3ZK.js} +1 -1
- package/dist/{chunk-ONVFUVQ5.js → chunk-VMBLNCX2.js} +31 -13
- package/dist/{chunk-YFJIIIOL.js → chunk-VSBZC2PR.js} +2 -2
- package/dist/{chunk-UJSAR6GF.js → chunk-W4DYDRV2.js} +21 -0
- package/dist/{chunk-J63CIRIV.js → chunk-XANW7MB7.js} +4 -4
- package/dist/{chunk-PB7ME64J.js → chunk-XIOC6N5P.js} +1 -1
- package/dist/{chunk-2E6CDYL2.js → chunk-Y557TYML.js} +5 -5
- package/dist/{chunk-SW676APJ.js → chunk-YS333HLA.js} +2 -2
- package/dist/chunk-YYT6N7AI.js +642 -0
- package/dist/chunk-ZXOIGUHX.js +1 -0
- package/dist/{composition-Ds6WHyO7.d.ts → composition-zMiIgzip.d.ts} +2353 -272
- package/dist/composition.d.ts +3 -2
- package/dist/composition.js +2 -2
- package/dist/conversion-POHRAMSN.js +24 -0
- package/dist/{conversion-CdzrTxib.d.ts → conversion-mNth9XKm.d.ts} +20 -9
- package/dist/convert.d.ts +3 -2
- package/dist/convert.js +9 -9
- package/dist/data.d.ts +1 -1
- package/dist/data.js +3 -3
- package/dist/{deck-report-CKDNQ2t4.d.ts → deck-report-BSlRiR0_.d.ts} +3 -3
- package/dist/deck.d.ts +6 -5
- package/dist/deck.js +12 -12
- package/dist/diagram-engine-eager.js +1 -1
- package/dist/diagram-engine-lazy.js +1 -1
- package/dist/diff.js +5 -5
- package/dist/docs.js +48 -24
- package/dist/examples.js +7507 -142
- package/dist/font-policy.js +1 -1
- package/dist/format.js +3 -3
- package/dist/ids.js +5 -5
- package/dist/index.d.ts +13 -12
- package/dist/index.js +24 -24
- package/dist/markdown.d.ts +2 -1
- package/dist/markdown.js +9 -9
- package/dist/node-engine.d.ts +7 -6
- package/dist/node-engine.js +24 -24
- package/dist/{pagination-DRZ_JNFY.d.ts → pagination-CYzNMazO.d.ts} +20 -3
- package/dist/pagination.d.ts +4 -3
- package/dist/pagination.js +5 -5
- package/dist/patch.js +4 -4
- package/dist/precompiled.js +3 -3
- package/dist/{presentation-DnD7mfmf.d.ts → presentation-CXhfpB_z.d.ts} +876 -39
- 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 +2 -2
- package/dist/schema.js +4 -4
- package/dist/schemas.d.ts +40 -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-BK7JNEUV.js +3 -0
- package/dist/shape-geometry.d.ts +126 -0
- package/dist/shape-geometry.js +2 -0
- package/dist/source.js +11 -11
- package/dist/spec/README.md +1 -1
- 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 +14 -1
- package/dist/spec/schemas/opf.schema.json +1144 -196
- 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 +10 -6
- package/dist/{validation-types-DxyYPebs.d.ts → validation-types-COwTel3H.d.ts} +2 -2
- package/dist/validator.d.ts +5 -4
- package/dist/validator.js +4 -4
- package/dist/yaml.d.ts +2 -1
- package/dist/yaml.js +8 -8
- package/package.json +21 -5
- package/dist/chunk-DGS47ONG.js +0 -1
- package/dist/conversion-5FUDQPED.js +0 -24
|
@@ -206,6 +206,10 @@
|
|
|
206
206
|
"$ref": "#/$defs/Assets",
|
|
207
207
|
"description": "Optional reusable asset registry for images, data files, videos, documents, fonts, and other resources referenced elsewhere in the deck via 'asset:<id>' strings."
|
|
208
208
|
},
|
|
209
|
+
"icons": {
|
|
210
|
+
"$ref": "#/$defs/Icons",
|
|
211
|
+
"description": "Optional deck-local icons (LH-14), keyed by name: an author's or an LLM's own SVG, written once and named by any `icon` of the deck. See docs/icons.md."
|
|
212
|
+
},
|
|
209
213
|
"catalogs": {
|
|
210
214
|
"$ref": "#/$defs/Catalogs",
|
|
211
215
|
"description": "The catalog records this document embeds, grouped by the catalog they came from: 'default' (the catalog bare ids come from), 'custom' (records the document defines itself) and any number of named catalogs ('acme', referenced as 'acme:<id>'). A saved document embeds every record it references, so it renders the same with no catalog registered. See Catalogs."
|
|
@@ -1029,22 +1033,78 @@
|
|
|
1029
1033
|
},
|
|
1030
1034
|
"ColorRef": {
|
|
1031
1035
|
"anyOf": [
|
|
1032
|
-
{
|
|
1036
|
+
{
|
|
1037
|
+
"$ref": "#/$defs/HexColor"
|
|
1038
|
+
},
|
|
1033
1039
|
{
|
|
1034
1040
|
"type": "string",
|
|
1035
|
-
"enum": [
|
|
1036
|
-
"accent1", "accent2", "accent3", "accent4", "accent5", "accent6",
|
|
1037
|
-
"dark1", "dark2", "light1", "light2", "hyperlink", "followedHyperlink",
|
|
1038
|
-
"primary", "secondary", "accent", "background", "surface", "surfaceAlt", "text", "textSecondary"
|
|
1039
|
-
]
|
|
1041
|
+
"enum": ["accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "dark1", "dark2", "light1", "light2", "hyperlink", "followedHyperlink", "primary", "secondary", "accent", "background", "surface", "surfaceAlt", "text", "textSecondary"]
|
|
1040
1042
|
},
|
|
1041
1043
|
{
|
|
1042
1044
|
"type": "string",
|
|
1043
1045
|
"pattern": "^var:[a-z][a-z0-9-]*$"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"$ref": "#/$defs/ColorTransform"
|
|
1049
|
+
}
|
|
1050
|
+
],
|
|
1051
|
+
"description": "A color value or reference, enforced on shape fills and strokes, image strokes, styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors. Four forms:\n- Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.\n- Color-scheme name, resolved through the effective color scheme after design resolution: an OOXML slot ('accent1'-'accent6', 'dark1', 'dark2', 'light1', 'light2', 'hyperlink', 'followedHyperlink') or an abstract role ('primary', 'secondary', 'accent', 'background', 'surface', 'surfaceAlt', 'text', 'textSecondary'). Roles resolve through the same role-to-slot mapping engines already apply to color schemes. 'surfaceAlt' has no slot: it is the alternate surface of banded table rows, derived from 'surface' and 'text' (the surface mixed a tenth of the way towards the text color, further when needed, so it always differs visibly from 'surface' and keeps 4.5:1 text contrast; core surfaceAltColor).\n- Variable reference: 'var:<id>' into the top-level variables map.\n- Lighter or darker (SH-02): { \"color\": <ColorRef>, \"lighten\": 0..1 } or { \"color\": <ColorRef>, \"darken\": 0..1 }, PowerPoint's \"Lighter 40%\" and \"Darker 25%\": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.\n\nNames keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.",
|
|
1052
|
+
"examples": [
|
|
1053
|
+
"#0F4C81",
|
|
1054
|
+
"accent2",
|
|
1055
|
+
"text",
|
|
1056
|
+
"var:risk",
|
|
1057
|
+
{
|
|
1058
|
+
"color": "accent1",
|
|
1059
|
+
"lighten": 0.4
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"color": "text",
|
|
1063
|
+
"darken": 0.25
|
|
1064
|
+
}
|
|
1065
|
+
]
|
|
1066
|
+
},
|
|
1067
|
+
"ColorTransform": {
|
|
1068
|
+
"type": "object",
|
|
1069
|
+
"additionalProperties": false,
|
|
1070
|
+
"required": ["color"],
|
|
1071
|
+
"description": "A ColorRef made lighter or darker (SH-02), as PowerPoint's theme color tints and shades: 'lighten' moves the color's HSL luminance that share of the way to white (lumMod 1 - lighten, lumOff lighten), 'darken' that share of the way to black (lumMod 1 - darken). Exactly one of the two. PPTX export writes a:lumMod and a:lumOff on the base color, a scheme color where the base names one, so re-theming the deck keeps the tint.",
|
|
1072
|
+
"properties": {
|
|
1073
|
+
"color": {
|
|
1074
|
+
"$ref": "#/$defs/ColorRef",
|
|
1075
|
+
"description": "The base color: any ColorRef."
|
|
1076
|
+
},
|
|
1077
|
+
"lighten": {
|
|
1078
|
+
"type": "number",
|
|
1079
|
+
"minimum": 0,
|
|
1080
|
+
"maximum": 1,
|
|
1081
|
+
"description": "Share of the way to white, 0 to 1. 0.4 is PowerPoint's \"Lighter 40%\"."
|
|
1082
|
+
},
|
|
1083
|
+
"darken": {
|
|
1084
|
+
"type": "number",
|
|
1085
|
+
"minimum": 0,
|
|
1086
|
+
"maximum": 1,
|
|
1087
|
+
"description": "Share of the way to black, 0 to 1. 0.25 is PowerPoint's \"Darker 25%\"."
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
"oneOf": [
|
|
1091
|
+
{
|
|
1092
|
+
"required": ["lighten"]
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"required": ["darken"]
|
|
1044
1096
|
}
|
|
1045
1097
|
],
|
|
1046
|
-
"
|
|
1047
|
-
|
|
1098
|
+
"examples": [
|
|
1099
|
+
{
|
|
1100
|
+
"color": "accent1",
|
|
1101
|
+
"lighten": 0.4
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"color": "#0F4C81",
|
|
1105
|
+
"darken": 0.25
|
|
1106
|
+
}
|
|
1107
|
+
]
|
|
1048
1108
|
},
|
|
1049
1109
|
"Variables": {
|
|
1050
1110
|
"type": "object",
|
|
@@ -1635,12 +1695,19 @@
|
|
|
1635
1695
|
{ "$ref": "#/$defs/Overlay" },
|
|
1636
1696
|
{ "const": false, "description": "No overlay and no automatic scrim: the picture shows as it is behind the text." }
|
|
1637
1697
|
]
|
|
1698
|
+
},
|
|
1699
|
+
"textPlacement": {
|
|
1700
|
+
"type": "string",
|
|
1701
|
+
"enum": ["top-start", "top-center", "middle-start", "middle-center", "bottom-start", "bottom-center", "panel"],
|
|
1702
|
+
"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).",
|
|
1703
|
+
"examples": ["top-start", "panel"]
|
|
1638
1704
|
}
|
|
1639
1705
|
},
|
|
1640
1706
|
"examples": [
|
|
1641
1707
|
{ "type": "image", "src": "asset:cover-photo" },
|
|
1642
1708
|
{ "type": "image", "src": "./images/harbour.jpg", "alt": "Container ships at dawn", "focus": { "x": 0.5, "y": 0.7 }, "overlay": { "color": "dark1", "opacity": 0.4 } },
|
|
1643
|
-
{ "type": "image", "src": "asset:texture", "overlay": false }
|
|
1709
|
+
{ "type": "image", "src": "asset:texture", "overlay": false },
|
|
1710
|
+
{ "type": "image", "src": "asset:city-night", "tone": "dark", "textPlacement": "top-start" }
|
|
1644
1711
|
]
|
|
1645
1712
|
},
|
|
1646
1713
|
"ImageFocus": {
|
|
@@ -1711,21 +1778,483 @@
|
|
|
1711
1778
|
},
|
|
1712
1779
|
"examples": [{ "edge": "left", "size": 0.45 }, { "edge": "right", "size": 0.4, "inset": true }]
|
|
1713
1780
|
},
|
|
1714
|
-
"
|
|
1781
|
+
"Stroke": {
|
|
1782
|
+
"anyOf": [
|
|
1783
|
+
{
|
|
1784
|
+
"type": "string",
|
|
1785
|
+
"const": "none",
|
|
1786
|
+
"description": "No line (a:ln with a:noFill), also on a shape whose style would draw one."
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
"type": "object",
|
|
1790
|
+
"additionalProperties": false,
|
|
1791
|
+
"properties": {
|
|
1792
|
+
"color": {
|
|
1793
|
+
"$ref": "#/$defs/ColorRef",
|
|
1794
|
+
"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."
|
|
1795
|
+
},
|
|
1796
|
+
"gradient": {
|
|
1797
|
+
"$ref": "#/$defs/Gradient",
|
|
1798
|
+
"description": "A gradient line instead of a solid color (a:ln/a:gradFill)."
|
|
1799
|
+
},
|
|
1800
|
+
"width": {
|
|
1801
|
+
"type": "number",
|
|
1802
|
+
"minimum": 0,
|
|
1803
|
+
"maximum": 64,
|
|
1804
|
+
"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."
|
|
1805
|
+
},
|
|
1806
|
+
"dash": {
|
|
1807
|
+
"anyOf": [
|
|
1808
|
+
{
|
|
1809
|
+
"type": "string",
|
|
1810
|
+
"enum": ["solid", "dot", "dash", "longDash", "dashDot", "longDashDot", "longDashDotDot", "sysDot", "sysDash", "sysDashDot", "sysDashDotDot"],
|
|
1811
|
+
"description": "DrawingML preset dash (a:prstDash). Default solid."
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
"type": "array",
|
|
1815
|
+
"minItems": 2,
|
|
1816
|
+
"maxItems": 20,
|
|
1817
|
+
"items": {
|
|
1818
|
+
"type": "number",
|
|
1819
|
+
"exclusiveMinimum": 0,
|
|
1820
|
+
"maximum": 100
|
|
1821
|
+
},
|
|
1822
|
+
"description": "A custom dash (a:custDash): dash and gap lengths in stroke widths, alternating, for example [4, 2]. An odd count repeats."
|
|
1823
|
+
}
|
|
1824
|
+
],
|
|
1825
|
+
"description": "Dash pattern: a preset name or an array of dash and gap lengths in stroke widths."
|
|
1826
|
+
},
|
|
1827
|
+
"cap": {
|
|
1828
|
+
"type": "string",
|
|
1829
|
+
"enum": ["flat", "round", "square"],
|
|
1830
|
+
"description": "Line cap (a:ln cap flat, rnd, sq). Default flat."
|
|
1831
|
+
},
|
|
1832
|
+
"join": {
|
|
1833
|
+
"type": "string",
|
|
1834
|
+
"enum": ["miter", "round", "bevel"],
|
|
1835
|
+
"description": "Line join (a:miter, a:round, a:bevel). Default miter, PowerPoint's default line join."
|
|
1836
|
+
},
|
|
1837
|
+
"miterLimit": {
|
|
1838
|
+
"type": "number",
|
|
1839
|
+
"minimum": 1,
|
|
1840
|
+
"maximum": 100,
|
|
1841
|
+
"description": "Miter join limit, as a multiple of the stroke width (a:miter lim). Default 8. Ignored by round and bevel joins."
|
|
1842
|
+
},
|
|
1843
|
+
"compound": {
|
|
1844
|
+
"type": "string",
|
|
1845
|
+
"enum": ["single", "double", "thickThin", "thinThick", "triple"],
|
|
1846
|
+
"description": "Compound line (a:ln cmpd sng, dbl, thickThin, thinThick, tri). Default single."
|
|
1847
|
+
},
|
|
1848
|
+
"align": {
|
|
1849
|
+
"type": "string",
|
|
1850
|
+
"enum": ["center", "inside"],
|
|
1851
|
+
"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."
|
|
1852
|
+
},
|
|
1853
|
+
"start": {
|
|
1854
|
+
"$ref": "#/$defs/Arrowhead",
|
|
1855
|
+
"description": "Arrowhead at the start of an open path (a:headEnd)."
|
|
1856
|
+
},
|
|
1857
|
+
"end": {
|
|
1858
|
+
"$ref": "#/$defs/Arrowhead",
|
|
1859
|
+
"description": "Arrowhead at the end of an open path (a:tailEnd)."
|
|
1860
|
+
},
|
|
1861
|
+
"sketch": {
|
|
1862
|
+
"type": "string",
|
|
1863
|
+
"enum": ["curved", "freehand", "scribble"],
|
|
1864
|
+
"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."
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
],
|
|
1869
|
+
"description": "A line along an outline (SH-02): a shape block's outline or a picture's frame (the picture key 'border' was renamed 'stroke' in 0.33, with no alias). DrawingML a:ln. 'none' removes the line.",
|
|
1870
|
+
"examples": [
|
|
1871
|
+
"none",
|
|
1872
|
+
{
|
|
1873
|
+
"color": "accent1",
|
|
1874
|
+
"width": 2
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
"color": "text",
|
|
1878
|
+
"width": 1.5,
|
|
1879
|
+
"dash": "dash",
|
|
1880
|
+
"end": {
|
|
1881
|
+
"type": "triangle"
|
|
1882
|
+
}
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
"color": "#0F172A",
|
|
1886
|
+
"width": 12,
|
|
1887
|
+
"join": "round"
|
|
1888
|
+
}
|
|
1889
|
+
]
|
|
1890
|
+
},
|
|
1891
|
+
"Arrowhead": {
|
|
1892
|
+
"type": "object",
|
|
1893
|
+
"additionalProperties": false,
|
|
1894
|
+
"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.",
|
|
1895
|
+
"properties": {
|
|
1896
|
+
"type": {
|
|
1897
|
+
"type": "string",
|
|
1898
|
+
"enum": ["none", "triangle", "stealth", "diamond", "oval", "arrow"],
|
|
1899
|
+
"description": "Arrowhead kind, DrawingML's ST_LineEndType. Default 'triangle' when the object is given."
|
|
1900
|
+
},
|
|
1901
|
+
"width": {
|
|
1902
|
+
"type": "string",
|
|
1903
|
+
"enum": ["small", "medium", "large"],
|
|
1904
|
+
"description": "Arrowhead width relative to the stroke width (2, 3 or 5 stroke widths). Default medium."
|
|
1905
|
+
},
|
|
1906
|
+
"length": {
|
|
1907
|
+
"type": "string",
|
|
1908
|
+
"enum": ["small", "medium", "large"],
|
|
1909
|
+
"description": "Arrowhead length relative to the stroke width (2, 3 or 5 stroke widths). Default medium."
|
|
1910
|
+
}
|
|
1911
|
+
},
|
|
1912
|
+
"examples": [
|
|
1913
|
+
{
|
|
1914
|
+
"type": "triangle"
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
"type": "stealth",
|
|
1918
|
+
"width": "large",
|
|
1919
|
+
"length": "large"
|
|
1920
|
+
}
|
|
1921
|
+
]
|
|
1922
|
+
},
|
|
1923
|
+
"Gradient": {
|
|
1715
1924
|
"type": "object",
|
|
1716
1925
|
"additionalProperties": false,
|
|
1717
|
-
"required": ["
|
|
1718
|
-
"description": "
|
|
1926
|
+
"required": ["stops"],
|
|
1927
|
+
"description": "A gradient fill (SH-02): the background gradient object extended with 'type'. DrawingML a:gradFill: a:lin for linear, a:path circle, rect or shape for the others. The gradient rotates with the shape.",
|
|
1928
|
+
"properties": {
|
|
1929
|
+
"type": {
|
|
1930
|
+
"type": "string",
|
|
1931
|
+
"enum": ["linear", "radial", "rectangle", "shape"],
|
|
1932
|
+
"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."
|
|
1933
|
+
},
|
|
1934
|
+
"angle": {
|
|
1935
|
+
"type": "number",
|
|
1936
|
+
"description": "Linear gradients only: angle in degrees (0 = left to right, 90 = top to bottom). Default 90."
|
|
1937
|
+
},
|
|
1938
|
+
"stops": {
|
|
1939
|
+
"type": "array",
|
|
1940
|
+
"minItems": 2,
|
|
1941
|
+
"description": "Ordered color stops; at least two. A radial, rectangle or shape gradient runs from the center (position 0) to the outline (position 1).",
|
|
1942
|
+
"items": {
|
|
1943
|
+
"type": "object",
|
|
1944
|
+
"additionalProperties": false,
|
|
1945
|
+
"required": ["color", "position"],
|
|
1946
|
+
"properties": {
|
|
1947
|
+
"color": {
|
|
1948
|
+
"$ref": "#/$defs/ColorRef",
|
|
1949
|
+
"description": "Stop color: any ColorRef (eight-digit hex keeps its alpha)."
|
|
1950
|
+
},
|
|
1951
|
+
"position": {
|
|
1952
|
+
"type": "number",
|
|
1953
|
+
"minimum": 0,
|
|
1954
|
+
"maximum": 1,
|
|
1955
|
+
"description": "Stop position, 0 to 1."
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
},
|
|
1961
|
+
"examples": [
|
|
1962
|
+
{
|
|
1963
|
+
"type": "linear",
|
|
1964
|
+
"angle": 90,
|
|
1965
|
+
"stops": [
|
|
1966
|
+
{
|
|
1967
|
+
"color": "accent1",
|
|
1968
|
+
"position": 0
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
"color": {
|
|
1972
|
+
"color": "accent1",
|
|
1973
|
+
"darken": 0.5
|
|
1974
|
+
},
|
|
1975
|
+
"position": 1
|
|
1976
|
+
}
|
|
1977
|
+
]
|
|
1978
|
+
}
|
|
1979
|
+
]
|
|
1980
|
+
},
|
|
1981
|
+
"Pattern": {
|
|
1982
|
+
"type": "object",
|
|
1983
|
+
"additionalProperties": false,
|
|
1984
|
+
"required": ["preset"],
|
|
1985
|
+
"description": "A two-color pattern fill (the background pattern object), DrawingML a:pattFill.",
|
|
1986
|
+
"properties": {
|
|
1987
|
+
"preset": {
|
|
1988
|
+
"type": "string",
|
|
1989
|
+
"description": "DrawingML pattern preset (ECMA-376 ST_PresetPatternVal), for example pct5, ltHorz, wdUpDiag, smGrid or dotDmnd.",
|
|
1990
|
+
"examples": ["pct20", "ltUpDiag", "smGrid"]
|
|
1991
|
+
},
|
|
1992
|
+
"foregroundColor": {
|
|
1993
|
+
"$ref": "#/$defs/ColorRef",
|
|
1994
|
+
"description": "Pattern color. Default the shape style's fill color."
|
|
1995
|
+
},
|
|
1996
|
+
"backgroundColor": {
|
|
1997
|
+
"$ref": "#/$defs/ColorRef",
|
|
1998
|
+
"description": "Color behind the pattern. Default the slide background."
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
},
|
|
2002
|
+
"ShapeFill": {
|
|
2003
|
+
"anyOf": [
|
|
2004
|
+
{
|
|
2005
|
+
"type": "string",
|
|
2006
|
+
"const": "none",
|
|
2007
|
+
"description": "No fill (a:noFill)."
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
"$ref": "#/$defs/ColorRef",
|
|
2011
|
+
"description": "A solid fill (a:solidFill): any ColorRef; eight-digit hex keeps its alpha."
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
"type": "object",
|
|
2015
|
+
"additionalProperties": false,
|
|
2016
|
+
"required": ["gradient"],
|
|
2017
|
+
"properties": {
|
|
2018
|
+
"gradient": {
|
|
2019
|
+
"$ref": "#/$defs/Gradient"
|
|
2020
|
+
}
|
|
2021
|
+
},
|
|
2022
|
+
"description": "A gradient fill (a:gradFill)."
|
|
2023
|
+
},
|
|
2024
|
+
{
|
|
2025
|
+
"type": "object",
|
|
2026
|
+
"additionalProperties": false,
|
|
2027
|
+
"required": ["pattern"],
|
|
2028
|
+
"properties": {
|
|
2029
|
+
"pattern": {
|
|
2030
|
+
"$ref": "#/$defs/Pattern"
|
|
2031
|
+
}
|
|
2032
|
+
},
|
|
2033
|
+
"description": "A pattern fill (a:pattFill)."
|
|
2034
|
+
}
|
|
2035
|
+
],
|
|
2036
|
+
"description": "A shape block's fill (SH-02): 'none', a ColorRef, { gradient } or { pattern }. Without a fill a shape takes its style's fill (the theme's accent1 for the default style). Fills rotate with the shape (rotWithShape).",
|
|
2037
|
+
"examples": [
|
|
2038
|
+
"accent2",
|
|
2039
|
+
"none",
|
|
2040
|
+
{
|
|
2041
|
+
"color": "accent1",
|
|
2042
|
+
"lighten": 0.6
|
|
2043
|
+
},
|
|
2044
|
+
{
|
|
2045
|
+
"gradient": {
|
|
2046
|
+
"type": "radial",
|
|
2047
|
+
"stops": [
|
|
2048
|
+
{
|
|
2049
|
+
"color": "light1",
|
|
2050
|
+
"position": 0
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
"color": "accent1",
|
|
2054
|
+
"position": 1
|
|
2055
|
+
}
|
|
2056
|
+
]
|
|
2057
|
+
}
|
|
2058
|
+
},
|
|
2059
|
+
{
|
|
2060
|
+
"pattern": {
|
|
2061
|
+
"preset": "ltUpDiag",
|
|
2062
|
+
"foregroundColor": "accent1"
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
]
|
|
2066
|
+
},
|
|
2067
|
+
"ShapePreset": {
|
|
2068
|
+
"type": "string",
|
|
2069
|
+
"enum": ["line", "lineInv", "triangle", "rtTriangle", "rect", "diamond", "parallelogram", "trapezoid", "nonIsoscelesTrapezoid", "pentagon", "hexagon", "heptagon", "octagon", "decagon", "dodecagon", "star4", "star5", "star6", "star7", "star8", "star10", "star12", "star16", "star24", "star32", "roundRect", "round1Rect", "round2SameRect", "round2DiagRect", "snipRoundRect", "snip1Rect", "snip2SameRect", "snip2DiagRect", "plaque", "ellipse", "teardrop", "homePlate", "chevron", "pieWedge", "pie", "blockArc", "donut", "noSmoking", "rightArrow", "leftArrow", "upArrow", "downArrow", "stripedRightArrow", "notchedRightArrow", "bentUpArrow", "leftRightArrow", "upDownArrow", "leftUpArrow", "leftRightUpArrow", "quadArrow", "leftArrowCallout", "rightArrowCallout", "upArrowCallout", "downArrowCallout", "leftRightArrowCallout", "upDownArrowCallout", "quadArrowCallout", "bentArrow", "uturnArrow", "circularArrow", "leftCircularArrow", "leftRightCircularArrow", "curvedRightArrow", "curvedLeftArrow", "curvedUpArrow", "curvedDownArrow", "swooshArrow", "cube", "can", "lightningBolt", "heart", "sun", "moon", "smileyFace", "irregularSeal1", "irregularSeal2", "foldedCorner", "bevel", "frame", "halfFrame", "corner", "diagStripe", "chord", "arc", "leftBracket", "rightBracket", "leftBrace", "rightBrace", "bracketPair", "bracePair", "straightConnector1", "bentConnector2", "bentConnector3", "bentConnector4", "bentConnector5", "curvedConnector2", "curvedConnector3", "curvedConnector4", "curvedConnector5", "callout1", "callout2", "callout3", "accentCallout1", "accentCallout2", "accentCallout3", "borderCallout1", "borderCallout2", "borderCallout3", "accentBorderCallout1", "accentBorderCallout2", "accentBorderCallout3", "wedgeRectCallout", "wedgeRoundRectCallout", "wedgeEllipseCallout", "cloudCallout", "cloud", "ribbon", "ribbon2", "ellipseRibbon", "ellipseRibbon2", "leftRightRibbon", "verticalScroll", "horizontalScroll", "wave", "doubleWave", "plus", "flowChartProcess", "flowChartDecision", "flowChartInputOutput", "flowChartPredefinedProcess", "flowChartInternalStorage", "flowChartDocument", "flowChartMultidocument", "flowChartTerminator", "flowChartPreparation", "flowChartManualInput", "flowChartManualOperation", "flowChartConnector", "flowChartPunchedCard", "flowChartPunchedTape", "flowChartSummingJunction", "flowChartOr", "flowChartCollate", "flowChartSort", "flowChartExtract", "flowChartMerge", "flowChartOfflineStorage", "flowChartOnlineStorage", "flowChartMagneticTape", "flowChartMagneticDisk", "flowChartMagneticDrum", "flowChartDisplay", "flowChartDelay", "flowChartAlternateProcess", "flowChartOffpageConnector", "actionButtonBlank", "actionButtonHome", "actionButtonHelp", "actionButtonInformation", "actionButtonForwardNext", "actionButtonBackPrevious", "actionButtonEnd", "actionButtonBeginning", "actionButtonReturn", "actionButtonDocument", "actionButtonSound", "actionButtonMovie", "gear6", "gear9", "funnel", "mathPlus", "mathMinus", "mathMultiply", "mathDivide", "mathEqual", "mathNotEqual", "cornerTabs", "squareTabs", "plaqueTabs", "chartX", "chartStar", "chartPlus"],
|
|
2070
|
+
"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.",
|
|
2071
|
+
"examples": ["rect", "roundRect", "ellipse", "chevron", "rightArrow", "wedgeRectCallout", "flowChartDecision"]
|
|
2072
|
+
},
|
|
2073
|
+
"ShapePath": {
|
|
2074
|
+
"anyOf": [
|
|
2075
|
+
{
|
|
2076
|
+
"type": "string",
|
|
2077
|
+
"minLength": 1,
|
|
2078
|
+
"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\"."
|
|
2079
|
+
},
|
|
2080
|
+
{
|
|
2081
|
+
"type": "object",
|
|
2082
|
+
"additionalProperties": false,
|
|
2083
|
+
"required": ["d", "viewBox"],
|
|
2084
|
+
"properties": {
|
|
2085
|
+
"d": {
|
|
2086
|
+
"type": "string",
|
|
2087
|
+
"minLength": 1,
|
|
2088
|
+
"description": "SVG path data in the viewBox."
|
|
2089
|
+
},
|
|
2090
|
+
"viewBox": {
|
|
2091
|
+
"type": "string",
|
|
2092
|
+
"pattern": "^\\s*-?[0-9.]+([ ,]+-?[0-9.]+){3}\\s*$",
|
|
2093
|
+
"description": "The path's own box, 'minX minY width height' as in SVG; it is stretched to the block."
|
|
2094
|
+
}
|
|
2095
|
+
},
|
|
2096
|
+
"description": "SVG path data with its own viewBox, for example an icon outline drawn on a 24 by 24 grid."
|
|
2097
|
+
}
|
|
2098
|
+
],
|
|
2099
|
+
"description": "Custom geometry (SH-02): SVG path data (M, L, H, V, C, S, Q, T, A and Z, absolute or relative) instead of a preset. PPTX export writes a:custGeom with the same path. A subpath that ends without Z is open: arrowheads draw at its ends (its fill closes it, as in PowerPoint).",
|
|
2100
|
+
"examples": [
|
|
2101
|
+
"M0 0 L1 0 L0.5 1 Z",
|
|
2102
|
+
{
|
|
2103
|
+
"d": "M12 2 L22 22 L2 22 Z",
|
|
2104
|
+
"viewBox": "0 0 24 24"
|
|
2105
|
+
}
|
|
2106
|
+
]
|
|
2107
|
+
},
|
|
2108
|
+
"ShapePadding": {
|
|
2109
|
+
"anyOf": [
|
|
2110
|
+
{
|
|
2111
|
+
"type": "number",
|
|
2112
|
+
"minimum": 0,
|
|
2113
|
+
"maximum": 200,
|
|
2114
|
+
"description": "The same inset on every side, in reference pixels at a 720-pixel short edge."
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
"$ref": "#/$defs/TableCellPadding"
|
|
2118
|
+
}
|
|
2119
|
+
],
|
|
2120
|
+
"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."
|
|
2121
|
+
},
|
|
2122
|
+
"Shadow": {
|
|
2123
|
+
"anyOf": [
|
|
2124
|
+
{
|
|
2125
|
+
"type": "string",
|
|
2126
|
+
"enum": ["soft", "hard", "perspective"],
|
|
2127
|
+
"description": "A preset outer shadow."
|
|
2128
|
+
},
|
|
2129
|
+
{
|
|
2130
|
+
"type": "object",
|
|
2131
|
+
"additionalProperties": false,
|
|
2132
|
+
"properties": {
|
|
2133
|
+
"color": {
|
|
2134
|
+
"$ref": "#/$defs/ColorRef",
|
|
2135
|
+
"description": "Shadow color. Default black."
|
|
2136
|
+
},
|
|
2137
|
+
"opacity": {
|
|
2138
|
+
"type": "number",
|
|
2139
|
+
"minimum": 0,
|
|
2140
|
+
"maximum": 1,
|
|
2141
|
+
"description": "Shadow opacity."
|
|
2142
|
+
},
|
|
2143
|
+
"blur": {
|
|
2144
|
+
"type": "number",
|
|
2145
|
+
"minimum": 0,
|
|
2146
|
+
"maximum": 200,
|
|
2147
|
+
"description": "Blur radius in reference pixels at a 720-pixel short edge."
|
|
2148
|
+
},
|
|
2149
|
+
"distance": {
|
|
2150
|
+
"type": "number",
|
|
2151
|
+
"minimum": 0,
|
|
2152
|
+
"maximum": 200,
|
|
2153
|
+
"description": "Offset from the shape in reference pixels at a 720-pixel short edge."
|
|
2154
|
+
},
|
|
2155
|
+
"angle": {
|
|
2156
|
+
"type": "number",
|
|
2157
|
+
"minimum": 0,
|
|
2158
|
+
"maximum": 360,
|
|
2159
|
+
"description": "Direction of the offset in degrees (0 = right, 90 = down)."
|
|
2160
|
+
},
|
|
2161
|
+
"size": {
|
|
2162
|
+
"type": "number",
|
|
2163
|
+
"minimum": 0.1,
|
|
2164
|
+
"maximum": 2,
|
|
2165
|
+
"description": "Shadow size relative to the shape (1 = the shape's own size)."
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2169
|
+
],
|
|
2170
|
+
"description": "Outer shadow (a:outerShdw): a preset name (soft, hard, perspective) or { color, opacity, blur, distance, angle, size }. SH-03 draws it in both engines."
|
|
2171
|
+
},
|
|
2172
|
+
"InnerShadow": {
|
|
2173
|
+
"type": "object",
|
|
2174
|
+
"additionalProperties": false,
|
|
2175
|
+
"description": "Inner shadow (a:innerShdw). SH-03 draws it in both engines.",
|
|
1719
2176
|
"properties": {
|
|
1720
2177
|
"color": {
|
|
1721
2178
|
"$ref": "#/$defs/ColorRef",
|
|
1722
|
-
"description": "
|
|
2179
|
+
"description": "Shadow color. Default black."
|
|
1723
2180
|
},
|
|
1724
|
-
"
|
|
2181
|
+
"opacity": {
|
|
2182
|
+
"type": "number",
|
|
2183
|
+
"minimum": 0,
|
|
2184
|
+
"maximum": 1,
|
|
2185
|
+
"description": "Shadow opacity."
|
|
2186
|
+
},
|
|
2187
|
+
"blur": {
|
|
2188
|
+
"type": "number",
|
|
2189
|
+
"minimum": 0,
|
|
2190
|
+
"maximum": 200,
|
|
2191
|
+
"description": "Blur radius in reference pixels at a 720-pixel short edge."
|
|
2192
|
+
},
|
|
2193
|
+
"distance": {
|
|
2194
|
+
"type": "number",
|
|
2195
|
+
"minimum": 0,
|
|
2196
|
+
"maximum": 200,
|
|
2197
|
+
"description": "Offset in reference pixels at a 720-pixel short edge."
|
|
2198
|
+
},
|
|
2199
|
+
"angle": {
|
|
2200
|
+
"type": "number",
|
|
2201
|
+
"minimum": 0,
|
|
2202
|
+
"maximum": 360,
|
|
2203
|
+
"description": "Direction of the offset in degrees (0 = right, 90 = down)."
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
},
|
|
2207
|
+
"Glow": {
|
|
2208
|
+
"type": "object",
|
|
2209
|
+
"additionalProperties": false,
|
|
2210
|
+
"description": "Glow around the outline (a:glow). SH-03 draws it in both engines.",
|
|
2211
|
+
"properties": {
|
|
2212
|
+
"color": {
|
|
2213
|
+
"$ref": "#/$defs/ColorRef",
|
|
2214
|
+
"description": "Glow color. Default accent."
|
|
2215
|
+
},
|
|
2216
|
+
"opacity": {
|
|
1725
2217
|
"type": "number",
|
|
1726
2218
|
"minimum": 0,
|
|
1727
|
-
"maximum":
|
|
1728
|
-
"description": "
|
|
2219
|
+
"maximum": 1,
|
|
2220
|
+
"description": "Glow opacity."
|
|
2221
|
+
},
|
|
2222
|
+
"radius": {
|
|
2223
|
+
"type": "number",
|
|
2224
|
+
"minimum": 0,
|
|
2225
|
+
"maximum": 200,
|
|
2226
|
+
"description": "Glow size in reference pixels at a 720-pixel short edge."
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
},
|
|
2230
|
+
"Reflection": {
|
|
2231
|
+
"type": "object",
|
|
2232
|
+
"additionalProperties": false,
|
|
2233
|
+
"description": "Reflection below the shape (a:reflection). SH-03 draws it in both engines.",
|
|
2234
|
+
"properties": {
|
|
2235
|
+
"opacity": {
|
|
2236
|
+
"type": "number",
|
|
2237
|
+
"minimum": 0,
|
|
2238
|
+
"maximum": 1,
|
|
2239
|
+
"description": "Opacity where the reflection starts."
|
|
2240
|
+
},
|
|
2241
|
+
"size": {
|
|
2242
|
+
"type": "number",
|
|
2243
|
+
"minimum": 0,
|
|
2244
|
+
"maximum": 1,
|
|
2245
|
+
"description": "Share of the shape's height reflected."
|
|
2246
|
+
},
|
|
2247
|
+
"distance": {
|
|
2248
|
+
"type": "number",
|
|
2249
|
+
"minimum": 0,
|
|
2250
|
+
"maximum": 200,
|
|
2251
|
+
"description": "Gap between the shape and its reflection in reference pixels at a 720-pixel short edge."
|
|
2252
|
+
},
|
|
2253
|
+
"blur": {
|
|
2254
|
+
"type": "number",
|
|
2255
|
+
"minimum": 0,
|
|
2256
|
+
"maximum": 200,
|
|
2257
|
+
"description": "Blur radius in reference pixels at a 720-pixel short edge."
|
|
1729
2258
|
}
|
|
1730
2259
|
}
|
|
1731
2260
|
},
|
|
@@ -1805,126 +2334,364 @@
|
|
|
1805
2334
|
"$ref": "#/$defs/LogoSource",
|
|
1806
2335
|
"description": "The full logo (lockup): mark and name side by side. Drawn on cover and section slides, and placed by 'var:organization.logo'."
|
|
1807
2336
|
},
|
|
1808
|
-
"stacked": {
|
|
1809
|
-
"$ref": "#/$defs/LogoSource",
|
|
1810
|
-
"description": "The stacked lockup: mark above the name, for portrait or square slots. Placed by 'var:organization.logo.stacked'."
|
|
2337
|
+
"stacked": {
|
|
2338
|
+
"$ref": "#/$defs/LogoSource",
|
|
2339
|
+
"description": "The stacked lockup: mark above the name, for portrait or square slots. Placed by 'var:organization.logo.stacked'."
|
|
2340
|
+
},
|
|
2341
|
+
"icon": {
|
|
2342
|
+
"$ref": "#/$defs/LogoSource",
|
|
2343
|
+
"description": "The mark or symbol without the name, for tight spaces such as header and footer zones and picture bullets. Placed by 'var:organization.logo.icon'."
|
|
2344
|
+
},
|
|
2345
|
+
"wordmark": {
|
|
2346
|
+
"$ref": "#/$defs/LogoSource",
|
|
2347
|
+
"description": "The name set in the brand's lettering, without the mark. Placed by 'var:organization.logo.wordmark'."
|
|
2348
|
+
}
|
|
2349
|
+
},
|
|
2350
|
+
"examples": [
|
|
2351
|
+
{ "full": "./assets/acme-logo.svg", "icon": "./assets/acme-mark.svg" },
|
|
2352
|
+
{ "full": { "onLight": "./assets/acme-logo.svg", "onDark": "./assets/acme-logo-white.svg" } }
|
|
2353
|
+
]
|
|
2354
|
+
},
|
|
2355
|
+
"LogoSource": {
|
|
2356
|
+
"description": "One logo shape: a path or Asset for every background, or { onLight, onDark }. onLight is drawn on light backgrounds (usually dark artwork) and onDark on dark backgrounds (usually light artwork), by each slide's background; a missing one uses the other.",
|
|
2357
|
+
"oneOf": [
|
|
2358
|
+
{ "$ref": "#/$defs/Asset" },
|
|
2359
|
+
{
|
|
2360
|
+
"type": "object",
|
|
2361
|
+
"additionalProperties": false,
|
|
2362
|
+
"minProperties": 1,
|
|
2363
|
+
"properties": {
|
|
2364
|
+
"onLight": {
|
|
2365
|
+
"$ref": "#/$defs/Asset",
|
|
2366
|
+
"description": "The logo for light backgrounds, usually dark artwork."
|
|
2367
|
+
},
|
|
2368
|
+
"onDark": {
|
|
2369
|
+
"$ref": "#/$defs/Asset",
|
|
2370
|
+
"description": "The logo for dark backgrounds, usually light or white artwork."
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
],
|
|
2375
|
+
"examples": ["./assets/acme-mark.svg", { "onLight": "./assets/acme-logo.svg", "onDark": "./assets/acme-logo-white.svg" }]
|
|
2376
|
+
},
|
|
2377
|
+
"Watermark": {
|
|
2378
|
+
"type": "object",
|
|
2379
|
+
"description": "Decorative watermark: an image ('src') or a text stamp ('text'), exactly one of the two, with its opacity. An image is drawn once per slide, contained and centered in a fixed frame (the middle 40% of the slide width and height, from 30% to 70% on each axis). A text watermark is one line of text in the heading font and the theme text color at the given opacity, centered on the slide and rotated 30 degrees counterclockwise (rising to the right), sized to span at most 70% of the slide width and at most 30% of the shorter slide edge in height; it is drawn behind the slide content and above the background. There is no option to move, scale, rotate or tile either form. PPTX export writes one native picture (image) or one native text box (text) per slide with the opacity as alpha, and import restores the watermark. A string or Asset (no opacity) is the image watermark at opacity 0.08. A watermark object needs opacity and exactly one of src and text; use a plain string or Asset for an image at the default opacity. Use design.watermark = false to disable an inherited watermark.",
|
|
2380
|
+
"additionalProperties": false,
|
|
2381
|
+
"required": ["opacity"],
|
|
2382
|
+
"oneOf": [
|
|
2383
|
+
{ "required": ["src"] },
|
|
2384
|
+
{ "required": ["text"] }
|
|
2385
|
+
],
|
|
2386
|
+
"properties": {
|
|
2387
|
+
"src": {
|
|
2388
|
+
"type": "string",
|
|
2389
|
+
"description": "Source for the watermark image: an 'asset:<id>' reference, HTTPS URL, data URI, relative path or local path, as for Asset.src. Exactly one of src and text is set."
|
|
2390
|
+
},
|
|
2391
|
+
"text": {
|
|
2392
|
+
"type": "string",
|
|
2393
|
+
"minLength": 1,
|
|
2394
|
+
"description": "Text for a text watermark, such as DRAFT or CONFIDENTIAL; line breaks are drawn as spaces. Exactly one of src and text is set.",
|
|
2395
|
+
"examples": ["DRAFT", "CONFIDENTIAL"]
|
|
2396
|
+
},
|
|
2397
|
+
"opacity": {
|
|
2398
|
+
"type": "number",
|
|
2399
|
+
"minimum": 0,
|
|
2400
|
+
"maximum": 1,
|
|
2401
|
+
"description": "Watermark opacity from 0 (fully transparent) to 1 (fully opaque)."
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
},
|
|
2405
|
+
"HeaderFooter": {
|
|
2406
|
+
"type": "object",
|
|
2407
|
+
"description": "Repeated header or footer content split into left, center, and right zones. Header/footer content is slide furniture, separate from the main slide content payloads.",
|
|
2408
|
+
"properties": {
|
|
2409
|
+
"left": {
|
|
2410
|
+
"$ref": "#/$defs/HeaderFooterItem",
|
|
2411
|
+
"description": "Left-aligned header/footer content."
|
|
2412
|
+
},
|
|
2413
|
+
"center": {
|
|
2414
|
+
"$ref": "#/$defs/HeaderFooterItem",
|
|
2415
|
+
"description": "Centered header/footer content."
|
|
2416
|
+
},
|
|
2417
|
+
"right": {
|
|
2418
|
+
"$ref": "#/$defs/HeaderFooterItem",
|
|
2419
|
+
"description": "Right-aligned header/footer content."
|
|
2420
|
+
}
|
|
2421
|
+
}
|
|
2422
|
+
},
|
|
2423
|
+
"HeaderFooterItem": {
|
|
2424
|
+
"type": "object",
|
|
2425
|
+
"description": "One header/footer zone. Every configured field renders, side by side in one row in the order image, text, socials, date (mirrored in a right-to-left deck), aligned to the zone's edge (left, center or right) and vertically centered on each other; a line break inside text or socials ('\\n') stacks lines within that part. When the parts are wider than the zone their text wraps, and a row that cannot fit even so is reported as overflow. Generated values such as the slide number, the slide count, the section, the organization or the speaker are variables inside text ('{{slide.number}} / {{deck.slideCount}}', '{{organization.name}}'), so one text writes several values in the author's order. An organization logo is image: 'var:organization.logo.icon'. See docs/templates-and-variables.md.",
|
|
2426
|
+
"additionalProperties": false,
|
|
2427
|
+
"properties": {
|
|
2428
|
+
"text": {
|
|
2429
|
+
"type": "string",
|
|
2430
|
+
"description": "Text rendered in this zone. Variables resolve inside it like any string: deck-wide ones ('{{organization.name}}', '{{speaker.name}}, {{speaker.title}}', '{{customer}}') before composition, and the slide-scoped built-ins '{{slide.number}}', '{{slide.section}}' and '{{deck.slideCount}}' for each slide as it is laid out. Each '{{slide.number}}' is a live slide-number field: PPTX export writes it as a native field when its value fits within one accepted text line, and as static text with a diagnostic otherwise. '{{deck.slideCount}}' is fixed text, because PowerPoint has no slide-count field. Write '\\{{' for literal braces.",
|
|
2431
|
+
"examples": ["Confidential", "Q4 Business Review", "{{slide.number}} / {{deck.slideCount}}", "{{organization.name}}\n{{slide.section}}"]
|
|
2432
|
+
},
|
|
2433
|
+
"image": {
|
|
2434
|
+
"$ref": "#/$defs/Asset",
|
|
2435
|
+
"description": "Image rendered first in this zone's row, such as a logo, partner mark, certification badge, or icon: a path, URL or Asset, or an organization logo reference ('var:organization.logo.icon', 'var:organization.<id>.logo.wordmark'), which resolves for each slide's background (onLight or onDark).",
|
|
2436
|
+
"examples": ["var:organization.logo.icon", "./assets/footer-badge.svg", "var:organization.beta.logo"]
|
|
2437
|
+
},
|
|
2438
|
+
"date": {
|
|
2439
|
+
"oneOf": [
|
|
2440
|
+
{ "type": "boolean" },
|
|
2441
|
+
{ "type": "string" }
|
|
2442
|
+
],
|
|
2443
|
+
"description": "true renders the current date: the renderer or exporter must be given an explicit ISO date by its host (core never reads a clock). PPTX export writes a native date field only for a supported dateFormat whose complete value fits within one accepted text line; otherwise it writes static text with a diagnostic. Native PowerPoint refresh and save/reopen compatibility require separate verification. A string is fixed: with dateFormat it must be an ISO YYYY-MM-DD date and is formatted; without dateFormat it is literal text rendered as written.",
|
|
2444
|
+
"examples": [true, "2026-04-23", "April 2026"]
|
|
2445
|
+
},
|
|
2446
|
+
"dateFormat": {
|
|
2447
|
+
"type": "string",
|
|
2448
|
+
"minLength": 1,
|
|
2449
|
+
"description": "Date pattern for date. Tokens: yyyy (2026), yy (26), MMMM (April), MMM (Apr), MM (04), M (4), dd (09), d (9), EEEE (Thursday), EEE (Thu). Text in single quotes and other non-letter characters are literal. Month and weekday names are English, independent of host locale. Defaults to \"M/d/yyyy\" for a current date. PPTX export writes a native current-date field only when its complete value fits within one accepted text line and the pattern matches a PowerPoint en-US date field ('M/d/yyyy'; 'EEEE, MMMM d, yyyy'; 'd MMMM yyyy'; 'MMMM d, yyyy'; 'd-MMM-yy'; 'MMMM yy'; 'MMM-yy'). Other patterns and wrapped fields export as static text with a diagnostic. Full provenance can recover generated-date intent from unchanged supported wrapped dates on OPF reimport; the existing PPTX text remains static.",
|
|
2450
|
+
"examples": ["MMM d, yyyy", "yyyy-MM-dd", "MMM yyyy", "MMMM d, yyyy"]
|
|
2451
|
+
},
|
|
2452
|
+
"socials": {
|
|
2453
|
+
"type": "boolean",
|
|
2454
|
+
"description": "Whether to render the primary organization's social profiles from organization.socials, one line per platform in key order. A handle is formatted through the platform's socialPlatforms record (companyUrlPattern, else profileUrlPattern, else baseUrl, with handlePrefix stripped) and shown as that profile URL without its 'https://' scheme; a value that is already a URL is shown without an 'https://' scheme; an unknown platform key shows the raw value. Exporters link each line to its full URL when one exists. Speaker socials are not rendered by this field."
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
},
|
|
2458
|
+
"OverlayShape": {
|
|
2459
|
+
"type": "object",
|
|
2460
|
+
"additionalProperties": false,
|
|
2461
|
+
"description": "SH-04: an entry of slide 'shapes', drawn over the composed slide above the content and the furniture, later entries on top; it never moves content. An entry with 'connector' is a connector between two blocks or overlay shapes: it takes only 'id', 'connector', 'adjust', 'stroke', 'alt', 'decorative', 'hidden' and 'extensions'; core routes it as PowerPoint's own connector presets and PPTX export writes a native p:cxnSp glued to the shapes at its ends, so it follows them when they are moved in PowerPoint. Any other entry is an overlay shape: the shape block vocabulary (geometry, paint, effects, transform, text, accessibility) and exactly one placement, 'x', 'y', 'width' and 'height' (fractions of the slide) or 'at' (against a block, so it follows the block wherever composition puts it); PPTX export writes a native p:sp.",
|
|
2462
|
+
"properties": {
|
|
2463
|
+
"id": {
|
|
2464
|
+
"type": "string",
|
|
2465
|
+
"minLength": 1,
|
|
2466
|
+
"description": "Optional stable identifier, unique among slide, payload and overlay ids in the document. A connector names it in 'from' or 'to'.",
|
|
2467
|
+
"examples": ["badge-new", "callout-1"]
|
|
2468
|
+
},
|
|
2469
|
+
"x": {
|
|
2470
|
+
"type": "number",
|
|
2471
|
+
"minimum": 0,
|
|
2472
|
+
"maximum": 1,
|
|
2473
|
+
"description": "Left edge as a fraction of the slide width, from the left edge; in a right-to-left deck from the right edge, mirrored as OPF mirrors start and end. With 'y', 'width' and 'height'."
|
|
2474
|
+
},
|
|
2475
|
+
"y": {
|
|
2476
|
+
"type": "number",
|
|
2477
|
+
"minimum": 0,
|
|
2478
|
+
"maximum": 1,
|
|
2479
|
+
"description": "Top edge as a fraction of the slide height, from the top edge."
|
|
2480
|
+
},
|
|
2481
|
+
"width": {
|
|
2482
|
+
"type": "number",
|
|
2483
|
+
"minimum": 0,
|
|
2484
|
+
"maximum": 1,
|
|
2485
|
+
"description": "Width as a fraction of the slide width."
|
|
2486
|
+
},
|
|
2487
|
+
"height": {
|
|
2488
|
+
"type": "number",
|
|
2489
|
+
"minimum": 0,
|
|
2490
|
+
"maximum": 1,
|
|
2491
|
+
"description": "Height as a fraction of the slide height."
|
|
2492
|
+
},
|
|
2493
|
+
"at": {
|
|
2494
|
+
"$ref": "#/$defs/OverlayAnchor"
|
|
2495
|
+
},
|
|
2496
|
+
"layer": {
|
|
2497
|
+
"type": "string",
|
|
2498
|
+
"enum": ["front", "back"],
|
|
2499
|
+
"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."
|
|
2500
|
+
},
|
|
2501
|
+
"connector": {
|
|
2502
|
+
"$ref": "#/$defs/Connector",
|
|
2503
|
+
"description": "Makes the entry a connector: what it joins and how it runs."
|
|
2504
|
+
},
|
|
2505
|
+
"shape": {
|
|
2506
|
+
"$ref": "#/$defs/ShapePreset",
|
|
2507
|
+
"description": "The preset geometry, as on a shape block. Default rect."
|
|
2508
|
+
},
|
|
2509
|
+
"path": {
|
|
2510
|
+
"$ref": "#/$defs/ShapePath",
|
|
2511
|
+
"description": "Custom geometry instead of a preset (a:custGeom), as on a shape block."
|
|
2512
|
+
},
|
|
2513
|
+
"adjust": {
|
|
2514
|
+
"type": "object",
|
|
2515
|
+
"propertyNames": { "pattern": "^[a-z][A-Za-z0-9]*$" },
|
|
2516
|
+
"additionalProperties": { "type": "number" },
|
|
2517
|
+
"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.",
|
|
2518
|
+
"examples": [{ "adj": 0.25 }]
|
|
2519
|
+
},
|
|
2520
|
+
"fill": {
|
|
2521
|
+
"$ref": "#/$defs/ShapeFill",
|
|
2522
|
+
"description": "'none', a ColorRef, { gradient } or { pattern }. Default the style's fill."
|
|
2523
|
+
},
|
|
2524
|
+
"opacity": {
|
|
2525
|
+
"type": "number",
|
|
2526
|
+
"minimum": 0,
|
|
2527
|
+
"maximum": 1,
|
|
2528
|
+
"description": "The fill's opacity (a:alpha). Default 1."
|
|
2529
|
+
},
|
|
2530
|
+
"stroke": {
|
|
2531
|
+
"$ref": "#/$defs/Stroke",
|
|
2532
|
+
"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)."
|
|
2533
|
+
},
|
|
2534
|
+
"style": {
|
|
2535
|
+
"type": "string",
|
|
2536
|
+
"enum": ["none", "subtle", "moderate", "intense"],
|
|
2537
|
+
"description": "The theme shape style, as on a shape block. Default moderate."
|
|
2538
|
+
},
|
|
2539
|
+
"shadow": {
|
|
2540
|
+
"$ref": "#/$defs/Shadow",
|
|
2541
|
+
"description": "Outer shadow."
|
|
2542
|
+
},
|
|
2543
|
+
"innerShadow": {
|
|
2544
|
+
"$ref": "#/$defs/InnerShadow",
|
|
2545
|
+
"description": "Inner shadow."
|
|
2546
|
+
},
|
|
2547
|
+
"glow": {
|
|
2548
|
+
"$ref": "#/$defs/Glow",
|
|
2549
|
+
"description": "Glow."
|
|
2550
|
+
},
|
|
2551
|
+
"softEdge": {
|
|
2552
|
+
"type": "number",
|
|
2553
|
+
"minimum": 0,
|
|
2554
|
+
"maximum": 200,
|
|
2555
|
+
"description": "Soft edges (a:softEdge), radius in reference pixels at a 720-pixel short edge."
|
|
2556
|
+
},
|
|
2557
|
+
"reflection": {
|
|
2558
|
+
"$ref": "#/$defs/Reflection",
|
|
2559
|
+
"description": "Reflection."
|
|
2560
|
+
},
|
|
2561
|
+
"blur": {
|
|
2562
|
+
"type": "number",
|
|
2563
|
+
"minimum": 0,
|
|
2564
|
+
"maximum": 200,
|
|
2565
|
+
"description": "Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge."
|
|
2566
|
+
},
|
|
2567
|
+
"rotate": {
|
|
2568
|
+
"type": "number",
|
|
2569
|
+
"minimum": -360,
|
|
2570
|
+
"maximum": 360,
|
|
2571
|
+
"description": "Rotation in degrees, clockwise, about the shape's center (a:xfrm rot). Its connection sites turn with it."
|
|
2572
|
+
},
|
|
2573
|
+
"flip": {
|
|
2574
|
+
"type": "string",
|
|
2575
|
+
"enum": ["horizontal", "vertical", "both"],
|
|
2576
|
+
"description": "Mirror the geometry (a:xfrm flipH, flipV). The text is not mirrored."
|
|
2577
|
+
},
|
|
2578
|
+
"text": {
|
|
2579
|
+
"$ref": "#/$defs/ContentPayload/properties/text",
|
|
2580
|
+
"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."
|
|
2581
|
+
},
|
|
2582
|
+
"anchor": {
|
|
2583
|
+
"type": "string",
|
|
2584
|
+
"enum": ["top", "middle", "bottom"],
|
|
2585
|
+
"description": "Vertical placement of the text in the text rectangle (a:bodyPr anchor). Default middle."
|
|
2586
|
+
},
|
|
2587
|
+
"padding": {
|
|
2588
|
+
"$ref": "#/$defs/ShapePadding",
|
|
2589
|
+
"description": "Text insets inside the text rectangle."
|
|
2590
|
+
},
|
|
2591
|
+
"textDirection": {
|
|
2592
|
+
"type": "string",
|
|
2593
|
+
"enum": ["horizontal", "vertical", "vertical270", "stacked"],
|
|
2594
|
+
"description": "Text direction (a:bodyPr vert). Default horizontal."
|
|
2595
|
+
},
|
|
2596
|
+
"alt": {
|
|
2597
|
+
"type": "string",
|
|
2598
|
+
"description": "Alternative text (p:cNvPr descr). Without it the shape's text is what is read."
|
|
2599
|
+
},
|
|
2600
|
+
"decorative": {
|
|
2601
|
+
"type": "boolean",
|
|
2602
|
+
"description": "Mark the shape decorative (a16:decorative): screen readers skip it."
|
|
2603
|
+
},
|
|
2604
|
+
"hidden": {
|
|
2605
|
+
"type": "boolean",
|
|
2606
|
+
"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)."
|
|
1811
2607
|
},
|
|
1812
|
-
"
|
|
1813
|
-
"
|
|
1814
|
-
"
|
|
2608
|
+
"link": {
|
|
2609
|
+
"type": "string",
|
|
2610
|
+
"pattern": "^(https?://|mailto:|tel:)\\S+$",
|
|
2611
|
+
"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.",
|
|
2612
|
+
"examples": ["https://acme.com/pricing"]
|
|
1815
2613
|
},
|
|
1816
|
-
"
|
|
1817
|
-
"
|
|
1818
|
-
"description": "
|
|
2614
|
+
"extensions": {
|
|
2615
|
+
"type": "object",
|
|
2616
|
+
"description": "Custom data passthrough for agent workflows; ignored by the engine but preserved across read/write round-trips."
|
|
1819
2617
|
}
|
|
1820
2618
|
},
|
|
1821
2619
|
"examples": [
|
|
1822
|
-
{ "
|
|
1823
|
-
{ "
|
|
2620
|
+
{ "shape": "wedgeRectCallout", "text": "New this quarter", "x": 0.62, "y": 0.12, "width": 0.25, "height": 0.12, "style": "subtle" },
|
|
2621
|
+
{ "id": "badge", "shape": "ellipse", "text": "3", "at": { "block": "team-photo", "edge": "top", "offset": -12 } },
|
|
2622
|
+
{ "connector": { "from": "plan", "to": "build", "route": "elbow" }, "stroke": { "width": 2, "end": { "type": "triangle" } } }
|
|
1824
2623
|
]
|
|
1825
2624
|
},
|
|
1826
|
-
"
|
|
1827
|
-
"description": "One logo shape: a path or Asset for every background, or { onLight, onDark }. onLight is drawn on light backgrounds (usually dark artwork) and onDark on dark backgrounds (usually light artwork), by each slide's background; a missing one uses the other.",
|
|
1828
|
-
"oneOf": [
|
|
1829
|
-
{ "$ref": "#/$defs/Asset" },
|
|
1830
|
-
{
|
|
1831
|
-
"type": "object",
|
|
1832
|
-
"additionalProperties": false,
|
|
1833
|
-
"minProperties": 1,
|
|
1834
|
-
"properties": {
|
|
1835
|
-
"onLight": {
|
|
1836
|
-
"$ref": "#/$defs/Asset",
|
|
1837
|
-
"description": "The logo for light backgrounds, usually dark artwork."
|
|
1838
|
-
},
|
|
1839
|
-
"onDark": {
|
|
1840
|
-
"$ref": "#/$defs/Asset",
|
|
1841
|
-
"description": "The logo for dark backgrounds, usually light or white artwork."
|
|
1842
|
-
}
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
],
|
|
1846
|
-
"examples": ["./assets/acme-mark.svg", { "onLight": "./assets/acme-logo.svg", "onDark": "./assets/acme-logo-white.svg" }]
|
|
1847
|
-
},
|
|
1848
|
-
"Watermark": {
|
|
2625
|
+
"OverlayAnchor": {
|
|
1849
2626
|
"type": "object",
|
|
1850
|
-
"description": "Decorative watermark: an image ('src') or a text stamp ('text'), exactly one of the two, with its opacity. An image is drawn once per slide, contained and centered in a fixed frame (the middle 40% of the slide width and height, from 30% to 70% on each axis). A text watermark is one line of text in the heading font and the theme text color at the given opacity, centered on the slide and rotated 30 degrees counterclockwise (rising to the right), sized to span at most 70% of the slide width and at most 30% of the shorter slide edge in height; it is drawn behind the slide content and above the background. There is no option to move, scale, rotate or tile either form. PPTX export writes one native picture (image) or one native text box (text) per slide with the opacity as alpha, and import restores the watermark. A string or Asset (no opacity) is the image watermark at opacity 0.08. A watermark object needs opacity and exactly one of src and text; use a plain string or Asset for an image at the default opacity. Use design.watermark = false to disable an inherited watermark.",
|
|
1851
2627
|
"additionalProperties": false,
|
|
1852
|
-
"required": ["
|
|
1853
|
-
"
|
|
1854
|
-
{ "required": ["src"] },
|
|
1855
|
-
{ "required": ["text"] }
|
|
1856
|
-
],
|
|
2628
|
+
"required": ["block", "edge"],
|
|
2629
|
+
"description": "Places an overlay shape against a composed block's box, so the shape follows the block wherever composition puts it. 'edge' puts the shape outside that edge, centered along it ('start' and 'end' follow the deck's direction: left and right in a left-to-right deck, right and left in a right-to-left one); 'center' puts it on the block's center. A block id that is not on the slide is a finding (opf/shape-anchor-missing) and the shape is not drawn.",
|
|
1857
2630
|
"properties": {
|
|
1858
|
-
"
|
|
2631
|
+
"block": {
|
|
1859
2632
|
"type": "string",
|
|
1860
|
-
"
|
|
2633
|
+
"minLength": 1,
|
|
2634
|
+
"description": "The id of a block on this slide (a content payload or a group, at any depth)."
|
|
1861
2635
|
},
|
|
1862
|
-
"
|
|
2636
|
+
"edge": {
|
|
1863
2637
|
"type": "string",
|
|
1864
|
-
"
|
|
1865
|
-
"description": "
|
|
1866
|
-
"examples": ["DRAFT", "CONFIDENTIAL"]
|
|
2638
|
+
"enum": ["top", "bottom", "start", "end", "center"],
|
|
2639
|
+
"description": "The edge of the block the shape sits outside of, or its center."
|
|
1867
2640
|
},
|
|
1868
|
-
"
|
|
2641
|
+
"offset": {
|
|
1869
2642
|
"type": "number",
|
|
1870
|
-
"minimum":
|
|
1871
|
-
"maximum":
|
|
1872
|
-
"description": "
|
|
1873
|
-
}
|
|
1874
|
-
}
|
|
1875
|
-
},
|
|
1876
|
-
"HeaderFooter": {
|
|
1877
|
-
"type": "object",
|
|
1878
|
-
"description": "Repeated header or footer content split into left, center, and right zones. Header/footer content is slide furniture, separate from the main slide content payloads.",
|
|
1879
|
-
"properties": {
|
|
1880
|
-
"left": {
|
|
1881
|
-
"$ref": "#/$defs/HeaderFooterItem",
|
|
1882
|
-
"description": "Left-aligned header/footer content."
|
|
2643
|
+
"minimum": -720,
|
|
2644
|
+
"maximum": 720,
|
|
2645
|
+
"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'."
|
|
1883
2646
|
},
|
|
1884
|
-
"
|
|
1885
|
-
"
|
|
1886
|
-
"
|
|
2647
|
+
"width": {
|
|
2648
|
+
"type": "number",
|
|
2649
|
+
"exclusiveMinimum": 0,
|
|
2650
|
+
"maximum": 1280,
|
|
2651
|
+
"description": "The shape's width: up to 1 a fraction of the block's width, above 1 reference pixels at a 720-pixel short edge. Default the preset's natural proportions with the shape's shorter side at 15% of the block's shorter side."
|
|
1887
2652
|
},
|
|
1888
|
-
"
|
|
1889
|
-
"
|
|
1890
|
-
"
|
|
2653
|
+
"height": {
|
|
2654
|
+
"type": "number",
|
|
2655
|
+
"exclusiveMinimum": 0,
|
|
2656
|
+
"maximum": 1280,
|
|
2657
|
+
"description": "The shape's height: up to 1 a fraction of the block's height, above 1 reference pixels at a 720-pixel short edge. Default as for width."
|
|
1891
2658
|
}
|
|
1892
|
-
}
|
|
2659
|
+
},
|
|
2660
|
+
"examples": [{ "block": "team-photo", "edge": "top", "offset": 8 }, { "block": "revenue-chart", "edge": "end", "width": 160, "height": 64 }]
|
|
1893
2661
|
},
|
|
1894
|
-
"
|
|
2662
|
+
"Connector": {
|
|
1895
2663
|
"type": "object",
|
|
1896
|
-
"description": "One header/footer zone. Every configured field renders, side by side in one row in the order image, text, socials, date (mirrored in a right-to-left deck), aligned to the zone's edge (left, center or right) and vertically centered on each other; a line break inside text or socials ('\\n') stacks lines within that part. When the parts are wider than the zone their text wraps, and a row that cannot fit even so is reported as overflow. Generated values such as the slide number, the slide count, the section, the organization or the speaker are variables inside text ('{{slide.number}} / {{deck.slideCount}}', '{{organization.name}}'), so one text writes several values in the author's order. An organization logo is image: 'var:organization.logo.icon'. See docs/templates-and-variables.md.",
|
|
1897
2664
|
"additionalProperties": false,
|
|
2665
|
+
"required": ["from", "to"],
|
|
2666
|
+
"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.",
|
|
1898
2667
|
"properties": {
|
|
1899
|
-
"
|
|
2668
|
+
"from": {
|
|
1900
2669
|
"type": "string",
|
|
1901
|
-
"
|
|
1902
|
-
"
|
|
1903
|
-
},
|
|
1904
|
-
"image": {
|
|
1905
|
-
"$ref": "#/$defs/Asset",
|
|
1906
|
-
"description": "Image rendered first in this zone's row, such as a logo, partner mark, certification badge, or icon: a path, URL or Asset, or an organization logo reference ('var:organization.logo.icon', 'var:organization.<id>.logo.wordmark'), which resolves for each slide's background (onLight or onDark).",
|
|
1907
|
-
"examples": ["var:organization.logo.icon", "./assets/footer-badge.svg", "var:organization.beta.logo"]
|
|
1908
|
-
},
|
|
1909
|
-
"date": {
|
|
1910
|
-
"oneOf": [
|
|
1911
|
-
{ "type": "boolean" },
|
|
1912
|
-
{ "type": "string" }
|
|
1913
|
-
],
|
|
1914
|
-
"description": "true renders the current date: the renderer or exporter must be given an explicit ISO date by its host (core never reads a clock). PPTX export writes a native date field only for a supported dateFormat whose complete value fits within one accepted text line; otherwise it writes static text with a diagnostic. Native PowerPoint refresh and save/reopen compatibility require separate verification. A string is fixed: with dateFormat it must be an ISO YYYY-MM-DD date and is formatted; without dateFormat it is literal text rendered as written.",
|
|
1915
|
-
"examples": [true, "2026-04-23", "April 2026"]
|
|
2670
|
+
"minLength": 1,
|
|
2671
|
+
"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."
|
|
1916
2672
|
},
|
|
1917
|
-
"
|
|
2673
|
+
"to": {
|
|
1918
2674
|
"type": "string",
|
|
1919
2675
|
"minLength": 1,
|
|
1920
|
-
"description": "
|
|
1921
|
-
"examples": ["MMM d, yyyy", "yyyy-MM-dd", "MMM yyyy", "MMMM d, yyyy"]
|
|
2676
|
+
"description": "The id of the block or overlay shape on this slide the connector ends at."
|
|
1922
2677
|
},
|
|
1923
|
-
"
|
|
1924
|
-
"type": "
|
|
1925
|
-
"
|
|
2678
|
+
"route": {
|
|
2679
|
+
"type": "string",
|
|
2680
|
+
"enum": ["straight", "elbow", "curved"],
|
|
2681
|
+
"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."
|
|
2682
|
+
},
|
|
2683
|
+
"fromSite": {
|
|
2684
|
+
"type": "integer",
|
|
2685
|
+
"minimum": 0,
|
|
2686
|
+
"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."
|
|
2687
|
+
},
|
|
2688
|
+
"toSite": {
|
|
2689
|
+
"type": "integer",
|
|
2690
|
+
"minimum": 0,
|
|
2691
|
+
"description": "The connection site index at 'to', instead of the automatic choice."
|
|
1926
2692
|
}
|
|
1927
|
-
}
|
|
2693
|
+
},
|
|
2694
|
+
"examples": [{ "from": "plan", "to": "build", "route": "elbow" }, { "from": "a", "to": "b", "fromSite": 3, "toSite": 1 }]
|
|
1928
2695
|
},
|
|
1929
2696
|
"Slide": {
|
|
1930
2697
|
"type": "object",
|
|
@@ -2072,6 +2839,15 @@
|
|
|
2072
2839
|
"items": { "$ref": "#/$defs/ContentPayload" },
|
|
2073
2840
|
"description": "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks."
|
|
2074
2841
|
},
|
|
2842
|
+
"shapes": {
|
|
2843
|
+
"type": "array",
|
|
2844
|
+
"items": { "$ref": "#/$defs/OverlayShape" },
|
|
2845
|
+
"description": "SH-04: shapes and connectors drawn over the composed slide, above its content and furniture, in array order (later entries on top). They never move content. An entry with connector is a connector between two blocks or overlay shapes; any other entry is an overlay shape placed by x, y, width and height (fractions of the slide) or at (against a block). See docs/shapes.md.",
|
|
2846
|
+
"examples": [[
|
|
2847
|
+
{ "id": "note", "shape": "wedgeRectCallout", "text": "Launch", "x": 0.7, "y": 0.1, "width": 0.2, "height": 0.1 },
|
|
2848
|
+
{ "connector": { "from": "plan", "to": "ship", "route": "elbow" }, "stroke": { "end": { "type": "triangle" } } }
|
|
2849
|
+
]]
|
|
2850
|
+
},
|
|
2075
2851
|
"design": {
|
|
2076
2852
|
"$ref": "#/$defs/SlideDesign",
|
|
2077
2853
|
"description": "Slide-level design applied on top of the deck-wide design."
|
|
@@ -2265,9 +3041,8 @@
|
|
|
2265
3041
|
},
|
|
2266
3042
|
"type": {
|
|
2267
3043
|
"type": "string",
|
|
2268
|
-
"enum": ["text", "list", "image", "chart", "table", "video", "code", "metric", "quote", "timeline",
|
|
2269
|
-
|
|
2270
|
-
"description": "Optional content kind. When omitted, engines infer the kind from the fields present."
|
|
3044
|
+
"enum": ["text", "list", "image", "chart", "table", "video", "code", "metric", "quote", "timeline", "diagram", "shape", "group"],
|
|
3045
|
+
"description": "Optional content kind. When omitted, engines infer the kind from the fields present: a block with 'shape' and no 'image', or with 'path', is a shape block."
|
|
2271
3046
|
},
|
|
2272
3047
|
"text": {
|
|
2273
3048
|
"oneOf": [
|
|
@@ -2322,7 +3097,7 @@
|
|
|
2322
3097
|
"maximum": 3
|
|
2323
3098
|
}
|
|
2324
3099
|
],
|
|
2325
|
-
"description": "Lay the payload's `items` or `bullets` out in columns (OPF 0.19). 'auto' tries 1, 2 then 3 equal columns at the starting text size and uses the first count at which the list fits, as long as a column stays at least a quarter of the slide wide; when none fits, the largest
|
|
3100
|
+
"description": "Lay the payload's `items` or `bullets` out in columns (OPF 0.19). 'auto' tries 1, 2 then 3 equal columns at the starting text size and uses the first count at which the list fits, as long as a column stays at least a quarter of the slide wide; when none fits, 'auto' takes the count (1, 2 or 3) whose fitted size is largest, preferring fewer columns on a tie, and sets the list in one column only when its lines stay within the prose measure (or it is a type-scale step larger). A list of 6 or fewer entries is never split by 'auto'; it shrinks in one column. 1, 2 or 3 fixes the count. Column breaks fall between items (a nested item stays with its parent) and keep the columns as even as possible; numbering continues and reading order runs column by column. A lone list in a layout region with listColumns: 'auto' behaves as 'auto'.",
|
|
2326
3101
|
"examples": ["auto", 2]
|
|
2327
3102
|
},
|
|
2328
3103
|
"image": {
|
|
@@ -2351,25 +3126,122 @@
|
|
|
2351
3126
|
"description": "Image payloads only. Width-to-height ratio of the frame: the frame becomes the largest centered box with this ratio inside the block's region, for example 2.39 for a cinematic letterbox or 0.5 for a phone-shaped frame. shape 'circle' always uses 1."
|
|
2352
3127
|
},
|
|
2353
3128
|
"shape": {
|
|
3129
|
+
"$ref": "#/$defs/ShapePreset",
|
|
3130
|
+
"description": "The preset geometry. Without 'image' it makes the block a shape block (SH-02): the preset drawn at the block's own fitted size with 'fill', 'stroke' and 'style', and 'text' inside its text rectangle. On an image block it is the frame's mask, exported as the picture's native preset geometry (a:prstGeom); 0.33 renamed rectangle, rounded and circle to rect, roundRect and ellipse, and every other preset is a mask too. 'ellipse' makes an image frame square. Default rect.",
|
|
3131
|
+
"examples": ["roundRect", "chevron", "ellipse", "wedgeRectCallout"]
|
|
3132
|
+
},
|
|
3133
|
+
"stroke": {
|
|
3134
|
+
"$ref": "#/$defs/Stroke",
|
|
3135
|
+
"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."
|
|
3136
|
+
},
|
|
3137
|
+
"path": {
|
|
3138
|
+
"$ref": "#/$defs/ShapePath",
|
|
3139
|
+
"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."
|
|
3140
|
+
},
|
|
3141
|
+
"fill": {
|
|
3142
|
+
"$ref": "#/$defs/ShapeFill",
|
|
3143
|
+
"description": "Shape blocks only. 'none', a ColorRef, { gradient } or { pattern }. Default the style's fill."
|
|
3144
|
+
},
|
|
3145
|
+
"style": {
|
|
3146
|
+
"type": "string",
|
|
3147
|
+
"enum": ["none", "subtle", "moderate", "intense"],
|
|
3148
|
+
"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."
|
|
3149
|
+
},
|
|
3150
|
+
"rotate": {
|
|
3151
|
+
"type": "number",
|
|
3152
|
+
"minimum": -360,
|
|
3153
|
+
"maximum": 360,
|
|
3154
|
+
"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."
|
|
3155
|
+
},
|
|
3156
|
+
"flip": {
|
|
3157
|
+
"type": "string",
|
|
3158
|
+
"enum": ["horizontal", "vertical", "both"],
|
|
3159
|
+
"description": "Shape blocks only. Mirror the geometry (a:xfrm flipH, flipV). The text is not mirrored."
|
|
3160
|
+
},
|
|
3161
|
+
"anchor": {
|
|
3162
|
+
"type": "string",
|
|
3163
|
+
"enum": ["top", "middle", "bottom"],
|
|
3164
|
+
"description": "Shape blocks only. Vertical placement of the text in the text rectangle (a:bodyPr anchor t, ctr, b). Default middle."
|
|
3165
|
+
},
|
|
3166
|
+
"padding": {
|
|
3167
|
+
"$ref": "#/$defs/ShapePadding",
|
|
3168
|
+
"description": "Shape blocks only. Text insets inside the text rectangle."
|
|
3169
|
+
},
|
|
3170
|
+
"textDirection": {
|
|
3171
|
+
"type": "string",
|
|
3172
|
+
"enum": ["horizontal", "vertical", "vertical270", "stacked"],
|
|
3173
|
+
"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."
|
|
3174
|
+
},
|
|
3175
|
+
"alt": {
|
|
3176
|
+
"type": "string",
|
|
3177
|
+
"description": "Shape blocks only. Alternative text for screen readers (p:cNvPr descr). Without it a shape's text is what is read."
|
|
3178
|
+
},
|
|
3179
|
+
"decorative": {
|
|
3180
|
+
"type": "boolean",
|
|
3181
|
+
"description": "Shape blocks only. Mark the shape decorative (a16:decorative): screen readers skip it and the accessibility checker does not ask for alt text."
|
|
3182
|
+
},
|
|
3183
|
+
"hidden": {
|
|
3184
|
+
"type": "boolean",
|
|
3185
|
+
"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)."
|
|
3186
|
+
},
|
|
3187
|
+
"link": {
|
|
2354
3188
|
"type": "string",
|
|
2355
|
-
"
|
|
2356
|
-
"description": "
|
|
3189
|
+
"pattern": "^(https?://|mailto:|tel:)\\S+$",
|
|
3190
|
+
"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.",
|
|
3191
|
+
"examples": ["https://acme.com/pricing"]
|
|
3192
|
+
},
|
|
3193
|
+
"shadow": {
|
|
3194
|
+
"$ref": "#/$defs/Shadow",
|
|
3195
|
+
"description": "Shape blocks only. Outer shadow."
|
|
3196
|
+
},
|
|
3197
|
+
"innerShadow": {
|
|
3198
|
+
"$ref": "#/$defs/InnerShadow",
|
|
3199
|
+
"description": "Shape blocks only. Inner shadow."
|
|
3200
|
+
},
|
|
3201
|
+
"glow": {
|
|
3202
|
+
"$ref": "#/$defs/Glow",
|
|
3203
|
+
"description": "Shape blocks only. Glow."
|
|
3204
|
+
},
|
|
3205
|
+
"softEdge": {
|
|
3206
|
+
"type": "number",
|
|
3207
|
+
"minimum": 0,
|
|
3208
|
+
"maximum": 200,
|
|
3209
|
+
"description": "Shape blocks only. Soft edges (a:softEdge): the radius over which the outline fades, in reference pixels at a 720-pixel short edge. SH-03 draws it in both engines."
|
|
2357
3210
|
},
|
|
2358
|
-
"
|
|
3211
|
+
"reflection": {
|
|
3212
|
+
"$ref": "#/$defs/Reflection",
|
|
3213
|
+
"description": "Shape blocks only. Reflection."
|
|
3214
|
+
},
|
|
3215
|
+
"blur": {
|
|
2359
3216
|
"type": "number",
|
|
2360
3217
|
"minimum": 0,
|
|
2361
|
-
"maximum":
|
|
2362
|
-
"description": "
|
|
3218
|
+
"maximum": 200,
|
|
3219
|
+
"description": "Shape blocks only. Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge. SH-03 draws it in both engines."
|
|
2363
3220
|
},
|
|
2364
|
-
"
|
|
2365
|
-
"
|
|
2366
|
-
"
|
|
3221
|
+
"adjust": {
|
|
3222
|
+
"type": "object",
|
|
3223
|
+
"propertyNames": {
|
|
3224
|
+
"pattern": "^[a-z][A-Za-z0-9]*$"
|
|
3225
|
+
},
|
|
3226
|
+
"additionalProperties": {
|
|
3227
|
+
"type": "number"
|
|
3228
|
+
},
|
|
3229
|
+
"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.",
|
|
3230
|
+
"examples": [
|
|
3231
|
+
{
|
|
3232
|
+
"adj": 0.25
|
|
3233
|
+
},
|
|
3234
|
+
{
|
|
3235
|
+
"adj1": 0.5,
|
|
3236
|
+
"adj2": 0.35
|
|
3237
|
+
}
|
|
3238
|
+
]
|
|
2367
3239
|
},
|
|
2368
3240
|
"opacity": {
|
|
2369
3241
|
"type": "number",
|
|
2370
3242
|
"minimum": 0,
|
|
2371
3243
|
"maximum": 1,
|
|
2372
|
-
"description": "Image
|
|
3244
|
+
"description": "Image and shape blocks. On an image: the picture's opacity, exported as a native alphaModFix; the stroke and overlay keep their own. On a shape: the fill's opacity (a:alpha on the fill color, multiplied with an eight-digit hex alpha); the stroke and text keep theirs. Default 1."
|
|
2373
3245
|
},
|
|
2374
3246
|
"recolor": {
|
|
2375
3247
|
"$ref": "#/$defs/ImageRecolor",
|
|
@@ -2383,6 +3255,12 @@
|
|
|
2383
3255
|
"$ref": "#/$defs/ImagePlacement",
|
|
2384
3256
|
"description": "Image payloads only, and only on a top-level block (slides.N.blocks.I), at most one per edge. Bleeds the image to one slide edge; the headings and the other blocks compose in the rest of the slide."
|
|
2385
3257
|
},
|
|
3258
|
+
"portrait": {
|
|
3259
|
+
"type": "string",
|
|
3260
|
+
"enum": ["avatar", "side", "top"],
|
|
3261
|
+
"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.",
|
|
3262
|
+
"examples": ["top", "side", "avatar"]
|
|
3263
|
+
},
|
|
2386
3264
|
"video": {
|
|
2387
3265
|
"$ref": "#/$defs/Asset",
|
|
2388
3266
|
"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).",
|
|
@@ -2500,13 +3378,21 @@
|
|
|
2500
3378
|
"type": "boolean",
|
|
2501
3379
|
"description": "true draws this block or group on the slide's emphasis surface: a contrasting card in its cell (a dark card on a light slide, an accent card on a dark one), from the deck's own scheme slots, with every text color on it at 4.5:1 or more against its fill. A slide has one emphasis surface: the first block or group with emphasis: true in reading order takes it, and any other is drawn without it (composition diagnostic emphasis-ignored). Without any, a slide's short last text block (60 characters or fewer) after longer blocks is drawn as a band at the foot of the body, and one of 30 or fewer after a lone long text as a pill right under that text; neither is drawn where it would cost another block its fitted size. Without any either, the second card of a before-and-after or problem-and-solution pair, or the one tier of a set marked recommended or most popular, takes the surface and the other cards of the pair or set are drawn on plain cards (read from the blocks' labels and short texts, never from ids). false keeps a block out of those automatic rules.",
|
|
2502
3380
|
"examples": [true, false]
|
|
3381
|
+
},
|
|
3382
|
+
"icon": {
|
|
3383
|
+
"$ref": "#/$defs/IconReference",
|
|
3384
|
+
"description": "Groups only (LH-14): an icon drawn on a chip at the top of the group, before its heading, as a card of features or topics draws one: \"<set>:<name>\" (\"lucide:shield-check\"), a name from the deck's icons, or an SVG source. A list entry and a metric take their own `icon`. Decoration only: when the slide has no room for it without setting text smaller, it is not drawn (finding opf/icon-dropped). See docs/icons.md."
|
|
2503
3385
|
}
|
|
2504
3386
|
},
|
|
2505
3387
|
"allOf": [
|
|
2506
3388
|
{
|
|
2507
3389
|
"if": {
|
|
2508
3390
|
"required": ["type"],
|
|
2509
|
-
"properties": {
|
|
3391
|
+
"properties": {
|
|
3392
|
+
"type": {
|
|
3393
|
+
"const": "list"
|
|
3394
|
+
}
|
|
3395
|
+
}
|
|
2510
3396
|
},
|
|
2511
3397
|
"then": {
|
|
2512
3398
|
"required": ["items"]
|
|
@@ -2515,7 +3401,11 @@
|
|
|
2515
3401
|
{
|
|
2516
3402
|
"if": {
|
|
2517
3403
|
"required": ["type"],
|
|
2518
|
-
"properties": {
|
|
3404
|
+
"properties": {
|
|
3405
|
+
"type": {
|
|
3406
|
+
"const": "image"
|
|
3407
|
+
}
|
|
3408
|
+
}
|
|
2519
3409
|
},
|
|
2520
3410
|
"then": {
|
|
2521
3411
|
"required": ["image"]
|
|
@@ -2524,7 +3414,11 @@
|
|
|
2524
3414
|
{
|
|
2525
3415
|
"if": {
|
|
2526
3416
|
"required": ["type"],
|
|
2527
|
-
"properties": {
|
|
3417
|
+
"properties": {
|
|
3418
|
+
"type": {
|
|
3419
|
+
"const": "chart"
|
|
3420
|
+
}
|
|
3421
|
+
}
|
|
2528
3422
|
},
|
|
2529
3423
|
"then": {
|
|
2530
3424
|
"required": ["chart"]
|
|
@@ -2533,7 +3427,11 @@
|
|
|
2533
3427
|
{
|
|
2534
3428
|
"if": {
|
|
2535
3429
|
"required": ["type"],
|
|
2536
|
-
"properties": {
|
|
3430
|
+
"properties": {
|
|
3431
|
+
"type": {
|
|
3432
|
+
"const": "table"
|
|
3433
|
+
}
|
|
3434
|
+
}
|
|
2537
3435
|
},
|
|
2538
3436
|
"then": {
|
|
2539
3437
|
"required": ["table"]
|
|
@@ -2542,7 +3440,11 @@
|
|
|
2542
3440
|
{
|
|
2543
3441
|
"if": {
|
|
2544
3442
|
"required": ["type"],
|
|
2545
|
-
"properties": {
|
|
3443
|
+
"properties": {
|
|
3444
|
+
"type": {
|
|
3445
|
+
"const": "video"
|
|
3446
|
+
}
|
|
3447
|
+
}
|
|
2546
3448
|
},
|
|
2547
3449
|
"then": {
|
|
2548
3450
|
"required": ["video"]
|
|
@@ -2551,7 +3453,11 @@
|
|
|
2551
3453
|
{
|
|
2552
3454
|
"if": {
|
|
2553
3455
|
"required": ["type"],
|
|
2554
|
-
"properties": {
|
|
3456
|
+
"properties": {
|
|
3457
|
+
"type": {
|
|
3458
|
+
"const": "code"
|
|
3459
|
+
}
|
|
3460
|
+
}
|
|
2555
3461
|
},
|
|
2556
3462
|
"then": {
|
|
2557
3463
|
"required": ["code"]
|
|
@@ -2560,7 +3466,11 @@
|
|
|
2560
3466
|
{
|
|
2561
3467
|
"if": {
|
|
2562
3468
|
"required": ["type"],
|
|
2563
|
-
"properties": {
|
|
3469
|
+
"properties": {
|
|
3470
|
+
"type": {
|
|
3471
|
+
"const": "metric"
|
|
3472
|
+
}
|
|
3473
|
+
}
|
|
2564
3474
|
},
|
|
2565
3475
|
"then": {
|
|
2566
3476
|
"required": ["metric"]
|
|
@@ -2569,7 +3479,11 @@
|
|
|
2569
3479
|
{
|
|
2570
3480
|
"if": {
|
|
2571
3481
|
"required": ["type"],
|
|
2572
|
-
"properties": {
|
|
3482
|
+
"properties": {
|
|
3483
|
+
"type": {
|
|
3484
|
+
"const": "quote"
|
|
3485
|
+
}
|
|
3486
|
+
}
|
|
2573
3487
|
},
|
|
2574
3488
|
"then": {
|
|
2575
3489
|
"required": ["quote"]
|
|
@@ -2578,7 +3492,11 @@
|
|
|
2578
3492
|
{
|
|
2579
3493
|
"if": {
|
|
2580
3494
|
"required": ["type"],
|
|
2581
|
-
"properties": {
|
|
3495
|
+
"properties": {
|
|
3496
|
+
"type": {
|
|
3497
|
+
"const": "timeline"
|
|
3498
|
+
}
|
|
3499
|
+
}
|
|
2582
3500
|
},
|
|
2583
3501
|
"then": {
|
|
2584
3502
|
"required": ["timeline"]
|
|
@@ -2587,7 +3505,11 @@
|
|
|
2587
3505
|
{
|
|
2588
3506
|
"if": {
|
|
2589
3507
|
"required": ["type"],
|
|
2590
|
-
"properties": {
|
|
3508
|
+
"properties": {
|
|
3509
|
+
"type": {
|
|
3510
|
+
"const": "diagram"
|
|
3511
|
+
}
|
|
3512
|
+
}
|
|
2591
3513
|
},
|
|
2592
3514
|
"then": {
|
|
2593
3515
|
"required": ["diagram"]
|
|
@@ -2595,38 +3517,48 @@
|
|
|
2595
3517
|
},
|
|
2596
3518
|
{
|
|
2597
3519
|
"if": {
|
|
2598
|
-
"required": [
|
|
2599
|
-
"type"
|
|
2600
|
-
],
|
|
3520
|
+
"required": ["type"],
|
|
2601
3521
|
"properties": {
|
|
2602
3522
|
"type": {
|
|
2603
|
-
"const": "
|
|
3523
|
+
"const": "shape"
|
|
2604
3524
|
}
|
|
2605
3525
|
}
|
|
2606
3526
|
},
|
|
2607
3527
|
"then": {
|
|
2608
|
-
"
|
|
2609
|
-
|
|
3528
|
+
"anyOf": [
|
|
3529
|
+
{
|
|
3530
|
+
"required": ["shape"]
|
|
3531
|
+
},
|
|
3532
|
+
{
|
|
3533
|
+
"required": ["path"]
|
|
3534
|
+
}
|
|
2610
3535
|
]
|
|
2611
3536
|
}
|
|
2612
3537
|
},
|
|
2613
3538
|
{
|
|
2614
3539
|
"if": {
|
|
2615
|
-
"required": [
|
|
2616
|
-
|
|
2617
|
-
|
|
3540
|
+
"required": ["type"],
|
|
3541
|
+
"properties": {
|
|
3542
|
+
"type": {
|
|
3543
|
+
"const": "group"
|
|
3544
|
+
}
|
|
3545
|
+
}
|
|
2618
3546
|
},
|
|
2619
3547
|
"then": {
|
|
2620
|
-
"required": [
|
|
2621
|
-
"blocks"
|
|
2622
|
-
]
|
|
3548
|
+
"required": ["blocks"]
|
|
2623
3549
|
}
|
|
2624
3550
|
},
|
|
2625
3551
|
{
|
|
2626
3552
|
"if": {
|
|
2627
|
-
"required": [
|
|
2628
|
-
|
|
2629
|
-
|
|
3553
|
+
"required": ["composition"]
|
|
3554
|
+
},
|
|
3555
|
+
"then": {
|
|
3556
|
+
"required": ["blocks"]
|
|
3557
|
+
}
|
|
3558
|
+
},
|
|
3559
|
+
{
|
|
3560
|
+
"if": {
|
|
3561
|
+
"required": ["blocks"]
|
|
2630
3562
|
},
|
|
2631
3563
|
"then": {
|
|
2632
3564
|
"properties": {
|
|
@@ -2637,64 +3569,40 @@
|
|
|
2637
3569
|
"not": {
|
|
2638
3570
|
"anyOf": [
|
|
2639
3571
|
{
|
|
2640
|
-
"required": [
|
|
2641
|
-
"text"
|
|
2642
|
-
]
|
|
3572
|
+
"required": ["text"]
|
|
2643
3573
|
},
|
|
2644
3574
|
{
|
|
2645
|
-
"required": [
|
|
2646
|
-
"items"
|
|
2647
|
-
]
|
|
3575
|
+
"required": ["items"]
|
|
2648
3576
|
},
|
|
2649
3577
|
{
|
|
2650
|
-
"required": [
|
|
2651
|
-
"bullets"
|
|
2652
|
-
]
|
|
3578
|
+
"required": ["bullets"]
|
|
2653
3579
|
},
|
|
2654
3580
|
{
|
|
2655
|
-
"required": [
|
|
2656
|
-
"image"
|
|
2657
|
-
]
|
|
3581
|
+
"required": ["image"]
|
|
2658
3582
|
},
|
|
2659
3583
|
{
|
|
2660
|
-
"required": [
|
|
2661
|
-
"video"
|
|
2662
|
-
]
|
|
3584
|
+
"required": ["video"]
|
|
2663
3585
|
},
|
|
2664
3586
|
{
|
|
2665
|
-
"required": [
|
|
2666
|
-
"chart"
|
|
2667
|
-
]
|
|
3587
|
+
"required": ["chart"]
|
|
2668
3588
|
},
|
|
2669
3589
|
{
|
|
2670
|
-
"required": [
|
|
2671
|
-
"table"
|
|
2672
|
-
]
|
|
3590
|
+
"required": ["table"]
|
|
2673
3591
|
},
|
|
2674
3592
|
{
|
|
2675
|
-
"required": [
|
|
2676
|
-
"code"
|
|
2677
|
-
]
|
|
3593
|
+
"required": ["code"]
|
|
2678
3594
|
},
|
|
2679
3595
|
{
|
|
2680
|
-
"required": [
|
|
2681
|
-
"metric"
|
|
2682
|
-
]
|
|
3596
|
+
"required": ["metric"]
|
|
2683
3597
|
},
|
|
2684
3598
|
{
|
|
2685
|
-
"required": [
|
|
2686
|
-
"quote"
|
|
2687
|
-
]
|
|
3599
|
+
"required": ["quote"]
|
|
2688
3600
|
},
|
|
2689
3601
|
{
|
|
2690
|
-
"required": [
|
|
2691
|
-
"timeline"
|
|
2692
|
-
]
|
|
3602
|
+
"required": ["timeline"]
|
|
2693
3603
|
},
|
|
2694
3604
|
{
|
|
2695
|
-
"required": [
|
|
2696
|
-
"diagram"
|
|
2697
|
-
]
|
|
3605
|
+
"required": ["diagram"]
|
|
2698
3606
|
}
|
|
2699
3607
|
]
|
|
2700
3608
|
}
|
|
@@ -2702,21 +3610,15 @@
|
|
|
2702
3610
|
},
|
|
2703
3611
|
{
|
|
2704
3612
|
"if": {
|
|
2705
|
-
"required": [
|
|
2706
|
-
"columns"
|
|
2707
|
-
]
|
|
3613
|
+
"required": ["columns"]
|
|
2708
3614
|
},
|
|
2709
3615
|
"then": {
|
|
2710
3616
|
"anyOf": [
|
|
2711
3617
|
{
|
|
2712
|
-
"required": [
|
|
2713
|
-
"items"
|
|
2714
|
-
]
|
|
3618
|
+
"required": ["items"]
|
|
2715
3619
|
},
|
|
2716
3620
|
{
|
|
2717
|
-
"required": [
|
|
2718
|
-
"bullets"
|
|
2719
|
-
]
|
|
3621
|
+
"required": ["bullets"]
|
|
2720
3622
|
}
|
|
2721
3623
|
]
|
|
2722
3624
|
}
|
|
@@ -2752,9 +3654,15 @@
|
|
|
2752
3654
|
},
|
|
2753
3655
|
"photo": {
|
|
2754
3656
|
"$ref": "#/$defs/Asset",
|
|
2755
|
-
"description": "Headshot of the attributed person, drawn as a circle beside the attribution and role lines (on the logical start side: left in a left-to-right deck, right in a right-to-left deck). Give it alt text (validate's opf/missing-alt-text rule checks it). A raster photograph works best; an SVG exports as its PNG raster because the
|
|
3657
|
+
"description": "Headshot of the attributed person, drawn as a circle beside the attribution and role lines (on the logical start side: left in a left-to-right deck, right in a right-to-left deck), or as a tall portrait beside the quote (see `portrait`). Give it alt text (validate's opf/missing-alt-text rule checks it). A raster photograph works best; an SVG exports as its PNG raster because the mask is not confirmed on SVG pictures in PowerPoint. An unresolved source draws the ordinary image placeholder.",
|
|
2756
3658
|
"examples": ["./assets/priya-raman.jpg", {"src": "asset:priya-raman", "alt": "Priya Raman"}]
|
|
2757
3659
|
},
|
|
3660
|
+
"portrait": {
|
|
3661
|
+
"type": "string",
|
|
3662
|
+
"enum": ["avatar", "side"],
|
|
3663
|
+
"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`.",
|
|
3664
|
+
"examples": ["side", "avatar"]
|
|
3665
|
+
},
|
|
2758
3666
|
"source": {
|
|
2759
3667
|
"type": "string",
|
|
2760
3668
|
"description": "Optional quote source, citation, or URL. Follows the attribution and role after ' - '.",
|
|
@@ -2843,6 +3751,10 @@
|
|
|
2843
3751
|
"type": "string",
|
|
2844
3752
|
"enum": ["positive", "negative", "neutral"],
|
|
2845
3753
|
"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."
|
|
3754
|
+
},
|
|
3755
|
+
"icon": {
|
|
3756
|
+
"$ref": "#/$defs/IconReference",
|
|
3757
|
+
"description": "An icon drawn on a chip above the metric (LH-14): \"<set>:<name>\" (\"lucide:users\"), a name from the deck's icons, or an SVG source. Decoration only: when the slide has no room for it without setting text smaller, it is not drawn (finding opf/icon-dropped). See docs/icons.md."
|
|
2846
3758
|
}
|
|
2847
3759
|
}
|
|
2848
3760
|
},
|
|
@@ -2986,6 +3898,10 @@
|
|
|
2986
3898
|
"minimum": 0,
|
|
2987
3899
|
"description": "Zero-based nesting level for the list item."
|
|
2988
3900
|
},
|
|
3901
|
+
"icon": {
|
|
3902
|
+
"$ref": "#/$defs/IconReference",
|
|
3903
|
+
"description": "An icon drawn on a chip at the start of the entry, in place of its bullet (LH-14): \"<set>:<name>\" (\"lucide:truck\"), a name from the deck's icons, or an SVG source. Drawn on first-level entries of an unnumbered list. Decoration only: when the slide has no room for the chips without setting text smaller, they are not drawn (finding opf/icon-dropped). See docs/icons.md."
|
|
3904
|
+
},
|
|
2989
3905
|
"start": {
|
|
2990
3906
|
"type": "integer",
|
|
2991
3907
|
"minimum": 1,
|
|
@@ -3116,9 +4032,24 @@
|
|
|
3116
4032
|
"description": "Whether the run is rendered with a strikethrough line."
|
|
3117
4033
|
},
|
|
3118
4034
|
"color": {
|
|
3119
|
-
"
|
|
3120
|
-
|
|
3121
|
-
|
|
4035
|
+
"anyOf": [
|
|
4036
|
+
{
|
|
4037
|
+
"type": "string"
|
|
4038
|
+
},
|
|
4039
|
+
{
|
|
4040
|
+
"$ref": "#/$defs/ColorTransform"
|
|
4041
|
+
}
|
|
4042
|
+
],
|
|
4043
|
+
"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.",
|
|
4044
|
+
"examples": [
|
|
4045
|
+
"#0F172A",
|
|
4046
|
+
"accent2",
|
|
4047
|
+
"var:risk",
|
|
4048
|
+
{
|
|
4049
|
+
"color": "accent1",
|
|
4050
|
+
"darken": 0.25
|
|
4051
|
+
}
|
|
4052
|
+
]
|
|
3122
4053
|
},
|
|
3123
4054
|
"fontSize": {
|
|
3124
4055
|
"type": "number",
|
|
@@ -3244,7 +4175,7 @@
|
|
|
3244
4175
|
"type": {
|
|
3245
4176
|
"type": "string",
|
|
3246
4177
|
"enum": ["100pct-stacked-area", "100pct-stacked-bar", "100pct-stacked-column", "area", "bar", "box-and-whisker", "column", "combo", "doughnut", "filled-radar", "funnel", "histogram", "line", "line-with-markers", "pareto", "pie", "radar", "radar-with-markers", "scatter", "stacked-area", "stacked-bar", "stacked-column", "stacked-line", "stacked-line-with-markers", "treemap", "waterfall", "world"],
|
|
3247
|
-
"description": "Chart type, an engine vocabulary validated directly (no catalog lookup): the chart types
|
|
4178
|
+
"description": "Chart type, an engine vocabulary validated directly (no catalog lookup): the chart types OPF supports natively in its preview and PPTX export, plus 'combo' (clustered columns with line series, see 'line' and 'secondaryAxis'). Each engine maps a type to its own chart model; labels and picker groups are catalog display metadata.",
|
|
3248
4179
|
"examples": ["column", "bar", "line", "pie", "doughnut", "area", "scatter", "radar", "waterfall", "funnel", "treemap", "stacked-column", "combo"]
|
|
3249
4180
|
},
|
|
3250
4181
|
"data": {
|
|
@@ -3985,9 +4916,26 @@
|
|
|
3985
4916
|
"tones": {
|
|
3986
4917
|
"$ref": "#/$defs/CatalogRecords",
|
|
3987
4918
|
"description": "Tone records keyed by id, each with the fields of https://openpresentation.org/schema/opf-tone/v1. Referenced from tone."
|
|
4919
|
+
},
|
|
4920
|
+
"iconSets": {
|
|
4921
|
+
"$ref": "#/$defs/CatalogRecords",
|
|
4922
|
+
"description": "Icon-set records keyed by set id (LH-14), each with the fields of https://openpresentation.org/schema/opf-icon-set/v1, holding only the icons the document uses (no licenseText or tags). Referenced from an icon as \"<set>:<name>\"."
|
|
3988
4923
|
}
|
|
3989
4924
|
}
|
|
3990
4925
|
},
|
|
4926
|
+
"IconReference": {
|
|
4927
|
+
"type": "string",
|
|
4928
|
+
"pattern": "^(?:[a-z][a-z0-9-]*:[a-z0-9][a-z0-9-]*|[a-z][a-z0-9-]*|(?:asset:|https://|data:|\\./|\\.\\./)\\S+)$",
|
|
4929
|
+
"description": "An icon (LH-14): \"<set>:<name>\" names an icon of a set (\"lucide:truck\", \"tabler:rocket\"; the gallery bundles Lucide and Tabler outline), a bare name names one of the deck's `icons`, and an SVG source (\"asset:<id>\", \"./icon.svg\", an HTTPS URL or a data:image/svg+xml URI) names an SVG file, as pictures accept. A one-color icon draws in the accent and exports as a native, theme-colored PowerPoint shape; a multicolor SVG draws as a picture with its own colors. Unknown names are opf/icon-unknown, unusable SVG opf/icon-invalid.",
|
|
4930
|
+
"examples": ["lucide:truck", "tabler:rocket", "brand-mark", "asset:partner-logo"]
|
|
4931
|
+
},
|
|
4932
|
+
"Icons": {
|
|
4933
|
+
"type": "object",
|
|
4934
|
+
"description": "Deck-local icons (LH-14), keyed by name: SVG text (\"<svg …>\") or an SVG source (\"asset:<id>\", \"./icon.svg\", an HTTPS URL or a data URI). An `icon` names one by its bare name. The SVG is read, never run: a script, an event handler, an external reference or a raster makes it opf/icon-invalid. One paint (or currentColor) makes it a recolorable glyph; several make it a picture with its own colors.",
|
|
4935
|
+
"propertyNames": { "pattern": "^[a-z][a-z0-9-]*$" },
|
|
4936
|
+
"additionalProperties": { "type": "string", "minLength": 1 },
|
|
4937
|
+
"examples": [{ "brand-mark": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M4 12l5 5L20 6\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"/></svg>" }]
|
|
4938
|
+
},
|
|
3991
4939
|
"CatalogSource": {
|
|
3992
4940
|
"type": "string",
|
|
3993
4941
|
"pattern": "^(?:https://[^\\s]+|pkg:[^\\s]+)$",
|