@openpresentation/opf 0.31.0 → 0.32.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 +1 -1
- package/dist/browser.js +18 -18
- package/dist/{chart-data-Ci9s_NDN.d.ts → chart-data-oIZQlFGi.d.ts} +4 -2
- package/dist/{chunk-UKWNHK62.js → chunk-2E6CDYL2.js} +23 -6
- package/dist/{chunk-I6G32TB5.js → chunk-56J345KE.js} +5 -5
- package/dist/{chunk-XSCZZWYI.js → chunk-7U3TJBXE.js} +99 -15
- package/dist/{chunk-HRKV43GC.js → chunk-BBVW5ZC2.js} +3 -3
- package/dist/{chunk-7UO6H32I.js → chunk-CLRYHWQN.js} +162 -22
- package/dist/chunk-DGS47ONG.js +1 -0
- package/dist/{chunk-F5QC7E2O.js → chunk-F7DN33UL.js} +28 -8
- package/dist/{chunk-KELC4K62.js → chunk-HKUV7NEN.js} +1 -1
- package/dist/{chunk-XG4JKFZ6.js → chunk-IT7FQKED.js} +6 -6
- package/dist/{chunk-SYCHWS7C.js → chunk-J63CIRIV.js} +4 -4
- package/dist/{chunk-5Q4IYLMW.js → chunk-LEF4X4KI.js} +274 -33
- package/dist/{chunk-5OMZW44K.js → chunk-NEJ32O7X.js} +1 -1
- package/dist/chunk-NVAJASOD.js +14764 -0
- package/dist/{chunk-M7YZU3DX.js → chunk-OXLA4HXQ.js} +615 -58
- package/dist/{chunk-P5E3FNYO.js → chunk-PB7ME64J.js} +1 -1
- package/dist/{chunk-ARFAQNOH.js → chunk-SW676APJ.js} +2 -2
- package/dist/{chunk-W7KPMUJF.js → chunk-XFHXQCXL.js} +58 -5
- package/dist/{chunk-KOCXV7H3.js → chunk-XQO2CT6Q.js} +2 -2
- package/dist/{chunk-WHDOOLIO.js → chunk-YFJIIIOL.js} +3 -3
- package/dist/composition-DRqNGHJV.d.ts +5620 -0
- package/dist/composition.d.ts +2 -2
- package/dist/composition.js +1 -1
- package/dist/{conversion-Bh-skyMc.d.ts → conversion-Cadul8Mu.d.ts} +56 -9
- package/dist/conversion-J3YPDS7C.js +24 -0
- package/dist/convert.d.ts +2 -2
- package/dist/convert.js +7 -7
- package/dist/data.d.ts +2 -2
- package/dist/data.js +2 -2
- package/dist/{deck-report-DQMsvyBI.d.ts → deck-report-BA3IPJAV.d.ts} +2 -2
- package/dist/deck.d.ts +5 -5
- package/dist/deck.js +11 -11
- package/dist/diagram-engine-eager.js +6 -0
- package/dist/diagram-engine-lazy.js +2 -0
- package/dist/diff.js +4 -4
- package/dist/docs.js +25 -19
- package/dist/examples.js +4759 -995
- package/dist/format.js +2 -2
- package/dist/ids.js +4 -4
- package/dist/index.d.ts +15 -12
- package/dist/index.js +23 -22
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.js +8 -8
- package/dist/node-engine.d.ts +6 -6
- package/dist/node-engine.js +20 -20
- package/dist/{pagination-DyAKYpXu.d.ts → pagination-DwEkdJ6s.d.ts} +74 -4
- package/dist/pagination.d.ts +3 -3
- package/dist/pagination.js +4 -4
- package/dist/patch.js +3 -3
- package/dist/precompiled.js +2 -2
- package/dist/{presentation-8jLSTFqL.d.ts → presentation-DnD7mfmf.d.ts} +106 -27
- package/dist/repo-readme.js +1 -1
- package/dist/schema-engine-ajv.js +1 -1
- package/dist/schema-engine-precompiled.js +2 -2
- package/dist/schema.js +3 -3
- package/dist/schemas.d.ts +6 -0
- package/dist/schemas.js +1 -1
- package/dist/source.d.ts +4 -3
- package/dist/source.js +10 -10
- package/dist/spec/schemas/layout.schema.json +58 -8
- package/dist/spec/schemas/narrative.schema.json +2 -1
- package/dist/spec/schemas/opf.schema.json +122 -23
- package/dist/spec/schemas/theme.schema.json +9 -3
- package/dist/types.d.ts +69 -18
- package/dist/{validation-types-mNmfcY9A.d.ts → validation-types-vVah_PEv.d.ts} +1 -1
- package/dist/validator.d.ts +4 -4
- package/dist/validator.js +3 -3
- package/dist/yaml.d.ts +2 -2
- package/dist/yaml.js +7 -7
- package/package.json +15 -6
- package/dist/chunk-W3SEWSO5.js +0 -8043
- package/dist/chunk-ZROVYWGU.js +0 -1
- package/dist/composition-C-hd_Ci3.d.ts +0 -3207
- package/dist/conversion-7OPM5MMJ.js +0 -24
|
@@ -1103,13 +1103,13 @@ var presentation = {
|
|
|
1103
1103
|
"variant": {
|
|
1104
1104
|
"oneOf": [
|
|
1105
1105
|
{
|
|
1106
|
-
"$ref": "#/$defs/
|
|
1106
|
+
"$ref": "#/$defs/ColorVariantSlot"
|
|
1107
1107
|
},
|
|
1108
1108
|
{
|
|
1109
1109
|
"$ref": "#/$defs/ColorVariant"
|
|
1110
1110
|
}
|
|
1111
1111
|
],
|
|
1112
|
-
"description": "Optional color variant, as a background slot ('light1', 'light2', 'dark1', 'dark2'; the same as { background: slot }) or the object form, which is needed only for an accent order: which slot of the color scheme is the slide background (and so which are the text and the alternate surface), and optionally the order of the accents. A variant is a mapping over the same twelve-slot scheme, as PowerPoint's color map is, never a second scheme. Without it the background decides: a theme-slot background ('dark1', { type: 'theme', slot }) is the variant of that slot, a picture or gradient takes its 'tone', and any other background picks light or dark by its luminance. A slide's variant replaces the deck's whole, including its accent order.",
|
|
1112
|
+
"description": "Optional color variant, as a background slot ('light1', 'light2', 'dark1', 'dark2', or an accent 'accent1' to 'accent6'; the same as { background: slot }) or the object form, which is needed only for an accent order: which slot of the color scheme is the slide background (and so which are the text and the alternate surface), and optionally the order of the accents. A variant is a mapping over the same twelve-slot scheme, as PowerPoint's color map is, never a second scheme. Without it the background decides: a theme-slot background ('dark1', { type: 'theme', slot }) is the variant of that slot, a picture or gradient takes its 'tone', and any other background picks light or dark by its luminance. A slide's variant replaces the deck's whole, including its accent order. A slide's layout record can name a variant too (layout design.variant): it outranks the deck's and the theme's, and the slide's own variant or background still wins.",
|
|
1113
1113
|
"examples": [
|
|
1114
1114
|
"dark1",
|
|
1115
1115
|
{
|
|
@@ -1265,9 +1265,10 @@ var presentation = {
|
|
|
1265
1265
|
"enum": [
|
|
1266
1266
|
"cover",
|
|
1267
1267
|
"contain",
|
|
1268
|
-
"stretch"
|
|
1268
|
+
"stretch",
|
|
1269
|
+
"auto"
|
|
1269
1270
|
],
|
|
1270
|
-
"description": "Default fit of image blocks (and Slide.image) that set no fit of their own: 'cover' fills the frame and crops what overflows around the block's focus, 'contain' shows the whole picture in a frame of its own proportions, centered across and placed down the cell by the region's anchor (top by default), 'stretch' scales it to the frame exactly. Effective value: the slide's design, then the deck's design, then the theme's design.imageFit, then the layout record's design.imageFit, then 'cover'; a slide composed with no layout shows its pictures whole ('contain') instead. Backgrounds set their own fit."
|
|
1271
|
+
"description": "Default fit of image blocks (and Slide.image) that set no fit of their own: 'cover' fills the frame and crops what overflows around the block's focus, 'contain' shows the whole picture in a frame of its own proportions, centered across and placed down the cell by the region's anchor (top by default), 'stretch' scales it to the frame exactly, 'auto' covers when the crop keeps at least 85% of the picture's width or height (its proportions read from the file, EXIF orientation applied) and contains otherwise; an SVG, or a picture whose size cannot be read from the document, is contained. Effective value: the slide's design, then the deck's design, then the theme's design.imageFit, then the layout record's design.imageFit, then 'cover'; a slide composed with no layout shows its pictures whole ('contain') instead. Backgrounds set their own fit."
|
|
1271
1272
|
},
|
|
1272
1273
|
"listBullet": {
|
|
1273
1274
|
"type": "string",
|
|
@@ -1278,6 +1279,14 @@ var presentation = {
|
|
|
1278
1279
|
],
|
|
1279
1280
|
"description": "Marker style for items and bullets lists. Effective value: the slide's design, then the deck's design, then the theme's design.listBullet, then the layout record's design.listBullet, then 'character'. 'character' (the default) draws the glyph marker. 'image' draws the primary organization's icon logo (or the organization and shape design.logo names; the onDark value on dark backgrounds) as a picture bullet: a square with side 0.65 times the marker's font size whose bottom sits on the marker baseline, so list geometry does not change. Without a logo the glyph is drawn and the engine reports unresolved-content at this field. 'none' draws no marker and no hanging indent, so each entry's text (and its description) starts at the left edge of the list: use it for label-and-description lists such as pillars, team members and questions with answers. Nested levels keep their indent. A list that sets numbering still draws its numbers."
|
|
1280
1281
|
},
|
|
1282
|
+
"listStyle": {
|
|
1283
|
+
"type": "string",
|
|
1284
|
+
"enum": [
|
|
1285
|
+
"stack",
|
|
1286
|
+
"rows"
|
|
1287
|
+
],
|
|
1288
|
+
"description": "How list entries are arranged (LH-08). 'stack' draws each entry's text with its description under it, the entries close together, as before. 'rows' draws ruled rows: a hairline between two first-level entries (the scheme's border neutral, 1 reference pixel), 0.8 em between rows and no bullet (a numbered list keeps its numbers); when every entry has a description and sits at the first level, the labels are bold and, when the widest fits 40% of the list's width on one line, sit in a column beside their descriptions, first baselines aligned, else each description sits under its label. Both engines draw the rules (PowerPoint: native lines). Effective value: the slide's design, then the deck's design, then the theme's design.listStyle, then the layout record's design.listStyle. Without one, a list of two or more first-level entries that each pair a short label (3 words or fewer, no full stop) with a description is drawn as rows when that sets no block of the slide smaller, and every other list is stacked."
|
|
1289
|
+
},
|
|
1281
1290
|
"mirror": {
|
|
1282
1291
|
"type": "boolean",
|
|
1283
1292
|
"description": "Draw the slide's template layout mirrored (OPF 0.19): each row's cells and the column sizes reversed, so a 'beside' layout puts its picture, chart or table at the end. Logical: a right-to-left deck mirrors on top. Binding and reading order do not change. Effective value: the slide's design, then the deck's design, then the layout record's design.mirror, then false. Slides without a template layout ignore it."
|
|
@@ -1641,6 +1650,22 @@ var presentation = {
|
|
|
1641
1650
|
}
|
|
1642
1651
|
}
|
|
1643
1652
|
},
|
|
1653
|
+
"ColorVariantSlot": {
|
|
1654
|
+
"type": "string",
|
|
1655
|
+
"description": "The scheme slot a color variant puts behind the slide (bg1): a light or dark slot, or an accent. On an accent the text side is the light family (tx1 = light1, tx2 = light2) or the dark family (tx1 = dark1, tx2 = dark2), whichever text slot has the higher contrast on that accent; tx2 falls back to tx1's slot where it is under 4.5:1 on the accent, and bg2 is the accent itself.",
|
|
1656
|
+
"enum": [
|
|
1657
|
+
"light1",
|
|
1658
|
+
"light2",
|
|
1659
|
+
"dark1",
|
|
1660
|
+
"dark2",
|
|
1661
|
+
"accent1",
|
|
1662
|
+
"accent2",
|
|
1663
|
+
"accent3",
|
|
1664
|
+
"accent4",
|
|
1665
|
+
"accent5",
|
|
1666
|
+
"accent6"
|
|
1667
|
+
]
|
|
1668
|
+
},
|
|
1644
1669
|
"ThemeBackgroundSlot": {
|
|
1645
1670
|
"type": "string",
|
|
1646
1671
|
"description": "PowerPoint theme-controlled slide background slot from the active color scheme. These are slots, not assumptions about actual colors: light1 is usually white and dark1 is usually black by convention, but the color scheme controls the real values.",
|
|
@@ -2134,10 +2159,10 @@ var presentation = {
|
|
|
2134
2159
|
"required": [
|
|
2135
2160
|
"background"
|
|
2136
2161
|
],
|
|
2137
|
-
"description": "A variant of the deck's single color scheme, as a mapping over its twelve slots (PowerPoint's clrMap): 'background' is the slot the slide background and the role bg1 take, and with it the other roles: light1 maps bg1 = light1, tx1 = dark1, bg2 = light2, tx2 = dark2; dark1 maps bg1 = dark1, tx1 = light1, bg2 = dark2, tx2 = light2; light2 and dark2 make that slot both the background and the alternate surface (light2: bg1 = bg2 = light2, tx1 = dark1, tx2 = dark2; dark2: bg1 = bg2 = dark2, tx1 = light1, tx2 = light2), which is how a slide with that theme background has always been drawn. Text, secondary text, the card surface and every neutral (borders, gridlines, chart axis, code panel) follow the map. The PowerPoint export writes it as the master's clrMap, or a slide's clrMapOvr.",
|
|
2162
|
+
"description": "A variant of the deck's single color scheme, as a mapping over its twelve slots (PowerPoint's clrMap): 'background' is the slot the slide background and the role bg1 take, and with it the other roles: light1 maps bg1 = light1, tx1 = dark1, bg2 = light2, tx2 = dark2; dark1 maps bg1 = dark1, tx1 = light1, bg2 = dark2, tx2 = light2; light2 and dark2 make that slot both the background and the alternate surface (light2: bg1 = bg2 = light2, tx1 = dark1, tx2 = dark2; dark2: bg1 = bg2 = dark2, tx1 = light1, tx2 = light2), which is how a slide with that theme background has always been drawn. An accent background (accent1 to accent6) is both bg1 and bg2, with the text family (light1 and light2, or dark1 and dark2) that reads better on it; see ColorVariantSlot. Text, secondary text, the card surface and every neutral (borders, gridlines, chart axis, code panel) follow the map. The PowerPoint export writes it as the master's clrMap, or a slide's clrMapOvr.",
|
|
2138
2163
|
"properties": {
|
|
2139
2164
|
"background": {
|
|
2140
|
-
"$ref": "#/$defs/
|
|
2165
|
+
"$ref": "#/$defs/ColorVariantSlot",
|
|
2141
2166
|
"description": "The scheme slot that is the background (bg1) of the variant."
|
|
2142
2167
|
},
|
|
2143
2168
|
"accents": {
|
|
@@ -2370,7 +2395,7 @@ var presentation = {
|
|
|
2370
2395
|
},
|
|
2371
2396
|
"focus": {
|
|
2372
2397
|
"$ref": "#/$defs/ImageFocus",
|
|
2373
|
-
"description": "Point of the picture to keep in view when 'cover' crops it. Ignored by the other fits."
|
|
2398
|
+
"description": "Point of the picture to keep in view when 'cover' crops it. Ignored by the other fits. Without a focus a portrait picture (taller than wide) cropped into a wider frame keeps y 0.3 so heads stay in frame; every other crop is centered."
|
|
2374
2399
|
},
|
|
2375
2400
|
"opacity": {
|
|
2376
2401
|
"type": "number",
|
|
@@ -2383,8 +2408,16 @@ var presentation = {
|
|
|
2383
2408
|
"description": "Grayscale or duotone treatment of the picture's pixels, as on an image block: recolor and opacity apply to the pixels, then the overlay is drawn above."
|
|
2384
2409
|
},
|
|
2385
2410
|
"overlay": {
|
|
2386
|
-
"
|
|
2387
|
-
"
|
|
2411
|
+
"description": "Scrim over the whole picture or a band along one edge (edge, size), beneath furniture and content, for example to keep a title readable over a busy photo. Without an overlay, core draws an automatic scrim in the slide's background color behind text that sits on the picture, at the lowest opacity that keeps it at 4.5:1 over any picture (a gradient from the edge the text is near, or a band across it). An overlay of the author's replaces the automatic scrim, and false turns it off.",
|
|
2412
|
+
"oneOf": [
|
|
2413
|
+
{
|
|
2414
|
+
"$ref": "#/$defs/Overlay"
|
|
2415
|
+
},
|
|
2416
|
+
{
|
|
2417
|
+
"const": false,
|
|
2418
|
+
"description": "No overlay and no automatic scrim: the picture shows as it is behind the text."
|
|
2419
|
+
}
|
|
2420
|
+
]
|
|
2388
2421
|
}
|
|
2389
2422
|
},
|
|
2390
2423
|
"examples": [
|
|
@@ -2404,6 +2437,11 @@ var presentation = {
|
|
|
2404
2437
|
"color": "dark1",
|
|
2405
2438
|
"opacity": 0.4
|
|
2406
2439
|
}
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
"type": "image",
|
|
2443
|
+
"src": "asset:texture",
|
|
2444
|
+
"overlay": false
|
|
2407
2445
|
}
|
|
2408
2446
|
]
|
|
2409
2447
|
},
|
|
@@ -2838,7 +2876,8 @@ var presentation = {
|
|
|
2838
2876
|
"code",
|
|
2839
2877
|
"metric",
|
|
2840
2878
|
"quote",
|
|
2841
|
-
"timeline"
|
|
2879
|
+
"timeline",
|
|
2880
|
+
"diagram"
|
|
2842
2881
|
],
|
|
2843
2882
|
"description": "Optional full-slide content kind. When omitted, engines infer the kind from root payload fields."
|
|
2844
2883
|
},
|
|
@@ -2923,7 +2962,7 @@ var presentation = {
|
|
|
2923
2962
|
}
|
|
2924
2963
|
}
|
|
2925
2964
|
],
|
|
2926
|
-
"description": "Small slide-level label or badge. A v2 layout renders this before the title in its title heading group; tag is not a separate layout area. Use a string for plain text or TextRun[] for inline rich text (a colored word, bold, a link, a citation or footnote marker); the heading keeps its size and fitting rules either way, and run colors resolve like body text.",
|
|
2965
|
+
"description": "Small slide-level label or badge. A v2 layout renders this before the title in its title heading group; tag is not a separate layout area. Engines draw it as an eyebrow (LH-32): 22 reference pixels, bold, in the primary color (the text color where that is under 4.5:1 on the background) and, where its script has case, in capitals with 0.08 em of letter spacing (PowerPoint: cap=all and spc on the authored text). Use a string for plain text or TextRun[] for inline rich text (a colored word, bold, a link, a citation or footnote marker); the heading keeps its size and fitting rules either way, and run colors resolve like body text.",
|
|
2927
2966
|
"examples": [
|
|
2928
2967
|
"Intro",
|
|
2929
2968
|
"Confidential",
|
|
@@ -3035,9 +3074,20 @@ var presentation = {
|
|
|
3035
3074
|
"$ref": "#/$defs/Timeline",
|
|
3036
3075
|
"description": `Full-slide timeline payload. An array is shorthand for { "events": value }; object form carries optional name and description metadata. Presence of this field infers type 'timeline'.`
|
|
3037
3076
|
},
|
|
3077
|
+
"diagram": {
|
|
3078
|
+
"oneOf": [
|
|
3079
|
+
{
|
|
3080
|
+
"type": "string"
|
|
3081
|
+
},
|
|
3082
|
+
{
|
|
3083
|
+
"$ref": "#/$defs/Diagram"
|
|
3084
|
+
}
|
|
3085
|
+
],
|
|
3086
|
+
"description": `Full-slide diagram payload: Mermaid source drawn in the deck's fonts and colors. A string is shorthand for { "source": value }; object form carries the source syntax and a text alternative. Presence of this field infers type 'diagram'.`
|
|
3087
|
+
},
|
|
3038
3088
|
"caption": {
|
|
3039
3089
|
"$ref": "#/$defs/Caption",
|
|
3040
|
-
"description": "Caption for the slide's root image, chart, table or
|
|
3090
|
+
"description": "Caption for the slide's root image, chart, table, video or diagram payload. Valid only when the slide root holds exactly one of those payloads."
|
|
3041
3091
|
},
|
|
3042
3092
|
"blocks": {
|
|
3043
3093
|
"type": "array",
|
|
@@ -3264,6 +3314,7 @@ var presentation = {
|
|
|
3264
3314
|
"metric",
|
|
3265
3315
|
"quote",
|
|
3266
3316
|
"timeline",
|
|
3317
|
+
"diagram",
|
|
3267
3318
|
"group"
|
|
3268
3319
|
],
|
|
3269
3320
|
"description": "Optional content kind. When omitted, engines infer the kind from the fields present."
|
|
@@ -3363,7 +3414,7 @@ var presentation = {
|
|
|
3363
3414
|
"maximum": 3
|
|
3364
3415
|
}
|
|
3365
3416
|
],
|
|
3366
|
-
"description": "Lay the payload's `items` or `bullets` out in columns (OPF 0.19). 'auto' tries 1, 2 then 3 equal columns at the starting text size and uses the first count at which the list fits, as long as a column stays at least a quarter of the slide wide; when none fits, the largest allowed count shrinks towards minFontSize. 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'.",
|
|
3417
|
+
"description": "Lay the payload's `items` or `bullets` out in columns (OPF 0.19). 'auto' tries 1, 2 then 3 equal columns at the starting text size and uses the first count at which the list fits, as long as a column stays at least a quarter of the slide wide; when none fits, the largest allowed count shrinks towards minFontSize. A list of 6 or fewer entries is never split by 'auto'; it shrinks in one column. 1, 2 or 3 fixes the count. Column breaks fall between items (a nested item stays with its parent) and keep the columns as even as possible; numbering continues and reading order runs column by column. A lone list in a layout region with listColumns: 'auto' behaves as 'auto'.",
|
|
3367
3418
|
"examples": [
|
|
3368
3419
|
"auto",
|
|
3369
3420
|
2
|
|
@@ -3384,13 +3435,14 @@ var presentation = {
|
|
|
3384
3435
|
"enum": [
|
|
3385
3436
|
"cover",
|
|
3386
3437
|
"contain",
|
|
3387
|
-
"stretch"
|
|
3438
|
+
"stretch",
|
|
3439
|
+
"auto"
|
|
3388
3440
|
],
|
|
3389
|
-
"description": "Image payloads only. How the picture fills its frame: 'cover' fills it and crops what overflows around focus; 'contain' shows the whole picture, in a frame of its own proportions placed at the region's anchor (top by default); 'stretch' scales it to the frame exactly. Default: the effective design.imageFit, else 'cover' in a layout and 'contain' on a slide with no layout."
|
|
3441
|
+
"description": "Image payloads only. How the picture fills its frame: 'cover' fills it and crops what overflows around focus; 'contain' shows the whole picture, in a frame of its own proportions placed at the region's anchor (top by default); 'stretch' scales it to the frame exactly; 'auto' covers when the crop keeps at least 85% of the picture's width or height and contains otherwise (an SVG, or a picture whose size cannot be read from the document, is contained), so a photo close to its frame's shape fills it and any other is shown whole. Default: the effective design.imageFit, else 'cover' in a layout and 'contain' on a slide with no layout."
|
|
3390
3442
|
},
|
|
3391
3443
|
"focus": {
|
|
3392
3444
|
"$ref": "#/$defs/ImageFocus",
|
|
3393
|
-
"description": "Image payloads only. Point of the picture to keep in view when 'cover' crops it. Ignored by the other fits."
|
|
3445
|
+
"description": "Image payloads only. Point of the picture to keep in view when 'cover' crops it. Ignored by the other fits. Without a focus a portrait picture (taller than wide) cropped into a wider frame keeps y 0.3 so heads stay in frame; every other crop is centered."
|
|
3394
3446
|
},
|
|
3395
3447
|
"aspectRatio": {
|
|
3396
3448
|
"type": "number",
|
|
@@ -3547,9 +3599,27 @@ var presentation = {
|
|
|
3547
3599
|
}
|
|
3548
3600
|
]
|
|
3549
3601
|
},
|
|
3602
|
+
"diagram": {
|
|
3603
|
+
"oneOf": [
|
|
3604
|
+
{
|
|
3605
|
+
"type": "string"
|
|
3606
|
+
},
|
|
3607
|
+
{
|
|
3608
|
+
"$ref": "#/$defs/Diagram"
|
|
3609
|
+
}
|
|
3610
|
+
],
|
|
3611
|
+
"description": `Diagram payload: Mermaid source (flowchart, sequence, state, class, ER, mindmap, timeline, journey, C4, architecture and the other built-in Mermaid families) drawn in the deck's fonts and colors. A string is shorthand for { "source": value }; object form carries the source syntax and a text alternative. Presence of this field infers type 'diagram'.`,
|
|
3612
|
+
"examples": [
|
|
3613
|
+
"flowchart LR\n A[Brief] --> B{Approved?}\n B -->|yes| C[Build]\n B -->|no| A",
|
|
3614
|
+
{
|
|
3615
|
+
"source": "sequenceDiagram\n Client->>API: POST /decks\n API-->>Client: 201 Created",
|
|
3616
|
+
"alt": "The client creates a deck and the API answers 201 Created."
|
|
3617
|
+
}
|
|
3618
|
+
]
|
|
3619
|
+
},
|
|
3550
3620
|
"caption": {
|
|
3551
3621
|
"$ref": "#/$defs/Caption",
|
|
3552
|
-
"description": "Caption for an image, chart, table or
|
|
3622
|
+
"description": "Caption for an image, chart, table, video or diagram payload, composed inside the block's region (below the media by default). Invalid on other payload kinds and on groups."
|
|
3553
3623
|
},
|
|
3554
3624
|
"blocks": {
|
|
3555
3625
|
"type": "array",
|
|
@@ -3561,7 +3631,15 @@ var presentation = {
|
|
|
3561
3631
|
},
|
|
3562
3632
|
"composition": {
|
|
3563
3633
|
"$ref": "#/$defs/Composition",
|
|
3564
|
-
"description": "Arrangement within this group. Only minFontSize and overflow inherit from the parent; strict overflow cannot be weakened."
|
|
3634
|
+
"description": "Arrangement within this group. Only minFontSize, maxFontSize and overflow inherit from the parent; strict overflow cannot be weakened."
|
|
3635
|
+
},
|
|
3636
|
+
"emphasis": {
|
|
3637
|
+
"type": "boolean",
|
|
3638
|
+
"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.",
|
|
3639
|
+
"examples": [
|
|
3640
|
+
true,
|
|
3641
|
+
false
|
|
3642
|
+
]
|
|
3565
3643
|
}
|
|
3566
3644
|
},
|
|
3567
3645
|
"allOf": [
|
|
@@ -3718,6 +3796,23 @@ var presentation = {
|
|
|
3718
3796
|
]
|
|
3719
3797
|
}
|
|
3720
3798
|
},
|
|
3799
|
+
{
|
|
3800
|
+
"if": {
|
|
3801
|
+
"required": [
|
|
3802
|
+
"type"
|
|
3803
|
+
],
|
|
3804
|
+
"properties": {
|
|
3805
|
+
"type": {
|
|
3806
|
+
"const": "diagram"
|
|
3807
|
+
}
|
|
3808
|
+
}
|
|
3809
|
+
},
|
|
3810
|
+
"then": {
|
|
3811
|
+
"required": [
|
|
3812
|
+
"diagram"
|
|
3813
|
+
]
|
|
3814
|
+
}
|
|
3815
|
+
},
|
|
3721
3816
|
{
|
|
3722
3817
|
"if": {
|
|
3723
3818
|
"required": [
|
|
@@ -3815,6 +3910,11 @@ var presentation = {
|
|
|
3815
3910
|
"required": [
|
|
3816
3911
|
"timeline"
|
|
3817
3912
|
]
|
|
3913
|
+
},
|
|
3914
|
+
{
|
|
3915
|
+
"required": [
|
|
3916
|
+
"diagram"
|
|
3917
|
+
]
|
|
3818
3918
|
}
|
|
3819
3919
|
]
|
|
3820
3920
|
}
|
|
@@ -4068,7 +4168,7 @@ var presentation = {
|
|
|
4068
4168
|
"down",
|
|
4069
4169
|
"flat"
|
|
4070
4170
|
],
|
|
4071
|
-
"description": "Metric trend direction. The preview and the PowerPoint export draw an arrow
|
|
4171
|
+
"description": "Metric trend direction. The preview and the PowerPoint export draw it as an arrow that always points the way the trend does (up, down or flat), before the delta on its line (or before the label without a delta), and color the arrow and the delta text by `sentiment`. The word itself is not drawn; it is the arrow's text alternative."
|
|
4072
4172
|
},
|
|
4073
4173
|
"sentiment": {
|
|
4074
4174
|
"type": "string",
|
|
@@ -4081,6 +4181,40 @@ var presentation = {
|
|
|
4081
4181
|
}
|
|
4082
4182
|
}
|
|
4083
4183
|
},
|
|
4184
|
+
"Diagram": {
|
|
4185
|
+
"type": "object",
|
|
4186
|
+
"description": `A diagram written as text. Engines parse the source, lay it out with the deck's measured fonts at the largest type size that fits the block, and draw it in the slide's resolved colors (color scheme, variant, color map and background); the PPTX export writes it as a native SVG picture with a PNG fallback. A string value in a diagram field is shorthand for { "source": value }.`,
|
|
4187
|
+
"additionalProperties": false,
|
|
4188
|
+
"required": [
|
|
4189
|
+
"source"
|
|
4190
|
+
],
|
|
4191
|
+
"properties": {
|
|
4192
|
+
"source": {
|
|
4193
|
+
"type": "string",
|
|
4194
|
+
"minLength": 1,
|
|
4195
|
+
"description": "The diagram source. With syntax 'mermaid' (the default) it is Mermaid 12.1 text whose first line names the diagram type (flowchart, sequenceDiagram, classDiagram, stateDiagram-v2, erDiagram, gantt, pie, mindmap, timeline, journey, quadrantChart, xychart, sankey, gitGraph, C4Context, block, architecture-beta, kanban, packet, radar-beta, treemap, venn-beta, ishikawa, requirementDiagram and the other built-in families; ZenUML is not supported). Mermaid themes, colors in themeVariables and click callbacks are ignored: the deck's design decides the colors and fonts.",
|
|
4196
|
+
"examples": [
|
|
4197
|
+
"flowchart LR\n A[Idea] --> B[Prototype] --> C[Launch]",
|
|
4198
|
+
"mindmap\n root((Strategy))\n Growth\n Efficiency\n People"
|
|
4199
|
+
]
|
|
4200
|
+
},
|
|
4201
|
+
"syntax": {
|
|
4202
|
+
"type": "string",
|
|
4203
|
+
"enum": [
|
|
4204
|
+
"mermaid"
|
|
4205
|
+
],
|
|
4206
|
+
"default": "mermaid",
|
|
4207
|
+
"description": "The language of 'source'. Mermaid is the only syntax today."
|
|
4208
|
+
},
|
|
4209
|
+
"alt": {
|
|
4210
|
+
"type": "string",
|
|
4211
|
+
"description": "Text alternative that says what the diagram shows. Exported as the picture's description. Without it, engines derive one from the diagram's labels.",
|
|
4212
|
+
"examples": [
|
|
4213
|
+
"Ideas move from brief to approval; approved work is built, rejected work returns to the brief."
|
|
4214
|
+
]
|
|
4215
|
+
}
|
|
4216
|
+
}
|
|
4217
|
+
},
|
|
4084
4218
|
"Timeline": {
|
|
4085
4219
|
"description": 'Timeline content. An array is shorthand for { "events": value }; object form carries optional name and description metadata.',
|
|
4086
4220
|
"oneOf": [
|
|
@@ -4994,6 +5128,31 @@ var presentation = {
|
|
|
4994
5128
|
"examples": [
|
|
4995
5129
|
"North America grew 46% to $18.1M in Q4, ahead of EMEA at 40%."
|
|
4996
5130
|
]
|
|
5131
|
+
},
|
|
5132
|
+
"highlight": {
|
|
5133
|
+
"type": "object",
|
|
5134
|
+
"additionalProperties": false,
|
|
5135
|
+
"description": "Optional emphasis: the body rows that carry the message, named by their first-column (key) text exactly as 'chart.highlight' names categories, as text; a key shared by several rows highlights each of them. The engines draw a highlighted row on an accent tint of the table surface (15% of the deck's primary color, mixed less where the cell text would fall under 4.5:1); a cell with its own 'style.fill' keeps it. Absent, the engines highlight the rows the slide's other texts name (its title, a sentence, a list entry, a quote or a chart's alt) when they agree on some rows but not all; an empty 'rows' list turns that off. PPTX export writes the tint as each cell's fill and import restores the list. A name no row has is a 'table-highlight-unknown-name' error.",
|
|
5136
|
+
"required": [
|
|
5137
|
+
"rows"
|
|
5138
|
+
],
|
|
5139
|
+
"properties": {
|
|
5140
|
+
"rows": {
|
|
5141
|
+
"type": "array",
|
|
5142
|
+
"items": {
|
|
5143
|
+
"type": "string"
|
|
5144
|
+
},
|
|
5145
|
+
"description": "Key texts (the first cell of each body row, as text) of the rows to highlight."
|
|
5146
|
+
}
|
|
5147
|
+
},
|
|
5148
|
+
"examples": [
|
|
5149
|
+
{
|
|
5150
|
+
"rows": [
|
|
5151
|
+
"Southeast",
|
|
5152
|
+
"Southwest"
|
|
5153
|
+
]
|
|
5154
|
+
}
|
|
5155
|
+
]
|
|
4997
5156
|
}
|
|
4998
5157
|
}
|
|
4999
5158
|
},
|
|
@@ -5368,7 +5527,7 @@ var presentation = {
|
|
|
5368
5527
|
"ChartMapping": {
|
|
5369
5528
|
"type": "object",
|
|
5370
5529
|
"additionalProperties": false,
|
|
5371
|
-
"description": "Series mapping by column name (after any 'fields' selection). Mapping only selects and orders columns;
|
|
5530
|
+
"description": "Series mapping by column name (after any 'fields' selection). Mapping only selects and orders columns; a chart type that plots one series (treemap, funnel, waterfall and the like) still plots the first and names the others in a 'chart-series-dropped' warning, and a pie or doughnut of several series draws nested rings. An unknown name is a 'chart-mapping-unknown-column' error; a series that repeats the category or X column, and an X column on a chart type without an X axis, are dropped with a 'chart-mapping-adapted' warning.",
|
|
5372
5531
|
"properties": {
|
|
5373
5532
|
"category": {
|
|
5374
5533
|
"type": "string",
|
|
@@ -5899,7 +6058,7 @@ var presentation = {
|
|
|
5899
6058
|
"Composition": {
|
|
5900
6059
|
"type": "object",
|
|
5901
6060
|
"additionalProperties": false,
|
|
5902
|
-
"description": "Automatic slide and content-group arrangement. Nested content groups arrange their children independently, inheriting only minFontSize and overflow. Explicit promoted regions retain their positions. A layout defines its grid as one ordered list of regions; its composition supports gap, padding, minFontSize and overflow rather than mode, columns or weights.",
|
|
6061
|
+
"description": "Automatic slide and content-group arrangement. Nested content groups arrange their children independently, inheriting only minFontSize, maxFontSize and overflow. Explicit promoted regions retain their positions. A layout defines its grid as one ordered list of regions; its composition supports gap, padding, minFontSize, maxFontSize and overflow rather than mode, columns or weights.",
|
|
5903
6062
|
"properties": {
|
|
5904
6063
|
"mode": {
|
|
5905
6064
|
"type": "string",
|
|
@@ -5946,6 +6105,12 @@ var presentation = {
|
|
|
5946
6105
|
"maximum": 32,
|
|
5947
6106
|
"description": "Minimum readable text size in reference pixels at a 720-pixel canvas short edge. Default 16. Overflow is diagnosed when text cannot fit at this size."
|
|
5948
6107
|
},
|
|
6108
|
+
"maxFontSize": {
|
|
6109
|
+
"type": "number",
|
|
6110
|
+
"minimum": 8,
|
|
6111
|
+
"maximum": 200,
|
|
6112
|
+
"description": "Largest body text size in reference pixels at a 720-pixel canvas short edge: paragraphs, lists, quotes, metrics and timelines are never set larger, their growth included (headings, tables, code and charts keep their sizes). Never lowers text under minFontSize. paginate writes it on the pages after the first, so the pages of one slide share its type sizes."
|
|
6113
|
+
},
|
|
5949
6114
|
"overflow": {
|
|
5950
6115
|
"type": "string",
|
|
5951
6116
|
"enum": [
|
|
@@ -6583,7 +6748,8 @@ var theme = {
|
|
|
6583
6748
|
"enum": [
|
|
6584
6749
|
"cover",
|
|
6585
6750
|
"contain",
|
|
6586
|
-
"stretch"
|
|
6751
|
+
"stretch",
|
|
6752
|
+
"auto"
|
|
6587
6753
|
],
|
|
6588
6754
|
"description": "As design.imageFit of a deck."
|
|
6589
6755
|
},
|
|
@@ -6595,6 +6761,14 @@ var theme = {
|
|
|
6595
6761
|
"none"
|
|
6596
6762
|
],
|
|
6597
6763
|
"description": "As design.listBullet of a deck."
|
|
6764
|
+
},
|
|
6765
|
+
"listStyle": {
|
|
6766
|
+
"type": "string",
|
|
6767
|
+
"enum": [
|
|
6768
|
+
"stack",
|
|
6769
|
+
"rows"
|
|
6770
|
+
],
|
|
6771
|
+
"description": "As design.listStyle of a deck."
|
|
6598
6772
|
}
|
|
6599
6773
|
},
|
|
6600
6774
|
"examples": [
|
|
@@ -6685,10 +6859,10 @@ var theme = {
|
|
|
6685
6859
|
]
|
|
6686
6860
|
},
|
|
6687
6861
|
"variant": {
|
|
6688
|
-
"description": "The value design.variant takes when the variant is chosen: a background slot ('light1', 'light2', 'dark1', 'dark2'; the same as { background: slot }) or the ColorVariant object of opf.schema.json, which adds an accent order.",
|
|
6862
|
+
"description": "The value design.variant takes when the variant is chosen: a background slot ('light1', 'light2', 'dark1', 'dark2', or an accent 'accent1' to 'accent6'; the same as { background: slot }) or the ColorVariant object of opf.schema.json, which adds an accent order.",
|
|
6689
6863
|
"oneOf": [
|
|
6690
6864
|
{
|
|
6691
|
-
"$ref": "#/$defs/
|
|
6865
|
+
"$ref": "https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot"
|
|
6692
6866
|
},
|
|
6693
6867
|
{
|
|
6694
6868
|
"$ref": "https://openpresentation.org/schema/opf/v1#/$defs/ColorVariant"
|
|
@@ -6800,7 +6974,7 @@ var layout = {
|
|
|
6800
6974
|
},
|
|
6801
6975
|
"design": {
|
|
6802
6976
|
"$ref": "#/$defs/DesignHints",
|
|
6803
|
-
"description": "The layout's design defaults, with the same keys and values as the deck's design and a slide's design (a slide overrides exactly what its layout sets, by the same name). An absent key means the layout has no opinion. Per key the slide's design wins, then the deck's design, then the resolved theme's design, then this record's design, then the engine default. Composition, the renderer and the PPTX exporter all read the one result."
|
|
6977
|
+
"description": "The layout's design defaults, with the same keys and values as the deck's design and a slide's design (a slide overrides exactly what its layout sets, by the same name). An absent key means the layout has no opinion. Per key the slide's design wins, then the deck's design, then the resolved theme's design, then this record's design, then the engine default; 'variant' alone ranks this record above the deck and the theme (see DesignHints.variant). Composition, the renderer and the PPTX exporter all read the one result."
|
|
6804
6978
|
},
|
|
6805
6979
|
"direction": {
|
|
6806
6980
|
"type": "string",
|
|
@@ -6821,7 +6995,7 @@ var layout = {
|
|
|
6821
6995
|
"middle",
|
|
6822
6996
|
"bottom"
|
|
6823
6997
|
],
|
|
6824
|
-
"description": "Vertical position of the content of every body region when it is shorter than the region. A split's 'anchor' replaces it for the regions under that split, and a region's own 'anchor' replaces both. Only 'anchor' is inherited, and only by body regions: the heading regions 'title' and 'subtitle' never take it, and the other region rules stay per region. One exception places the whole slide: when the record is a column and every entry of its 'regions' list is sized 'auto' (heading regions included), the record has no numeric row to hold the leftover height, so its 'anchor' places the whole stack, title and subtitle included, in the content box's leftover height: 'middle' centres it, 'bottom' sits it at the foot, 'top' (default) starts it at the top as before. A record with any numeric entry, a row record and an anchor on a split keep the rule above. Default 'top'."
|
|
6998
|
+
"description": "Vertical position of the content of every body region when it is shorter than the region. A split's 'anchor' replaces it for the regions under that split, and a region's own 'anchor' replaces both. Only 'anchor' is inherited, and only by body regions: the heading regions 'title' and 'subtitle' never take it (they set their own, HeadingRegion.anchor), and the other region rules stay per region. One exception places the whole slide: when the record is a column and every entry of its 'regions' list is sized 'auto' (heading regions included), the record has no numeric row to hold the leftover height, so its 'anchor' places the whole stack, title and subtitle included, in the content box's leftover height: 'middle' centres it, 'bottom' sits it at the foot, 'top' (default) starts it at the top as before. A record with any numeric entry, a row record and an anchor on a split keep the rule above. Default 'top'."
|
|
6825
6999
|
},
|
|
6826
7000
|
"regions": {
|
|
6827
7001
|
"type": "array",
|
|
@@ -6830,7 +7004,7 @@ var layout = {
|
|
|
6830
7004
|
"items": {
|
|
6831
7005
|
"$ref": "#/$defs/RegionEntry"
|
|
6832
7006
|
},
|
|
6833
|
-
"description": "The record's regions in reading order: 1 to 12 entries, each a region ({ name, size?, ...rules }) or a split ({ direction, regions, size?, anchor? }). Every region is declared once, here, with its content rules; a block can target a body region with 'region': '<name>'. Names are unique across the whole record. 'size' is a number above 0 and up to 100 (default 1) that siblings share in proportion, separated by the gap; 'auto' is the height the content needs, allowed only in a column. 'title' and 'subtitle' are heading regions that take only a size (default auto in a column, 1 in a row): 'title' holds the slide's heading group (tag, title and subtitle, stacked) and a 'subtitle' region takes the subtitle out of it, and a 'subtitle' needs a 'title'. A record with no 'title' region gets an implicit auto row on top for a slide that has headings. Splits nest at most three levels (the record's own list is level 1). Rules the schema cannot express (a reserved or repeated name, a 'subtitle' without a 'title', 'auto' outside a column, nesting too deep, more than 12 rows or columns once compiled) are the validate findings opf/layout-template and opf/layout-region.",
|
|
7007
|
+
"description": "The record's regions in reading order: 1 to 12 entries, each a region ({ name, size?, ...rules }) or a split ({ direction, regions, size?, anchor? }). Every region is declared once, here, with its content rules; a block can target a body region with 'region': '<name>'. Names are unique across the whole record. 'size' is a number above 0 and up to 100 (default 1) that siblings share in proportion, separated by the gap; 'auto' is the height the content needs, allowed only in a column. 'title' and 'subtitle' are heading regions that take only a size (default auto in a column, 1 in a row), an anchor and (the 'title') a rule: 'title' holds the slide's heading group (tag, title and subtitle, stacked) and a 'subtitle' region takes the subtitle out of it, and a 'subtitle' needs a 'title'. A record with no 'title' region gets an implicit auto row on top for a slide that has headings. Splits nest at most three levels (the record's own list is level 1). Rules the schema cannot express (a reserved or repeated name, a 'subtitle' without a 'title', 'auto' outside a column, nesting too deep, more than 12 rows or columns once compiled) are the validate findings opf/layout-template and opf/layout-region.",
|
|
6834
7008
|
"examples": [
|
|
6835
7009
|
[
|
|
6836
7010
|
{
|
|
@@ -6977,7 +7151,7 @@ var layout = {
|
|
|
6977
7151
|
"required": [
|
|
6978
7152
|
"name"
|
|
6979
7153
|
],
|
|
6980
|
-
"description": "A reserved heading region: 'title' holds the slide's heading group (tag, title and subtitle, stacked) and 'subtitle' takes the subtitle out of it. A heading region takes
|
|
7154
|
+
"description": "A reserved heading region: 'title' holds the slide's heading group (tag, title and subtitle, stacked) and 'subtitle' takes the subtitle out of it. A heading region takes a size and an anchor, and the 'title' a rule; the content rules belong on body regions. At most one of each; a 'subtitle' needs a 'title'.",
|
|
6981
7155
|
"properties": {
|
|
6982
7156
|
"name": {
|
|
6983
7157
|
"type": "string",
|
|
@@ -6989,6 +7163,19 @@ var layout = {
|
|
|
6989
7163
|
},
|
|
6990
7164
|
"size": {
|
|
6991
7165
|
"$ref": "#/$defs/RegionSize"
|
|
7166
|
+
},
|
|
7167
|
+
"anchor": {
|
|
7168
|
+
"type": "string",
|
|
7169
|
+
"enum": [
|
|
7170
|
+
"top",
|
|
7171
|
+
"middle",
|
|
7172
|
+
"bottom"
|
|
7173
|
+
],
|
|
7174
|
+
"description": "Vertical position of the heading group in its area when the area is sized (a number): 'middle' (default) centers it, 'bottom' sets it at the foot of the area, as a cover or section sets its display title low (LH-130), 'top' at the top. An 'auto' area is as tall as the group, so the anchor changes nothing there. A heading region never inherits the 'anchor' of the record or a split."
|
|
7175
|
+
},
|
|
7176
|
+
"rule": {
|
|
7177
|
+
"type": "boolean",
|
|
7178
|
+
"description": "'title' only: draw a short accent rule (80 by 5 px at a 720 px short edge) half a gap above the title, at the title's start edge, on a slide with a title and no tag; a tag is the group's eyebrow and takes the rule's place (LH-130). Engines draw it in the tag's color, the primary or the text color where the primary is under 4.5:1 on the slide. Default false."
|
|
6992
7179
|
}
|
|
6993
7180
|
}
|
|
6994
7181
|
},
|
|
@@ -7073,6 +7260,7 @@ var layout = {
|
|
|
7073
7260
|
"metric",
|
|
7074
7261
|
"quote",
|
|
7075
7262
|
"timeline",
|
|
7263
|
+
"diagram",
|
|
7076
7264
|
"group"
|
|
7077
7265
|
]
|
|
7078
7266
|
},
|
|
@@ -7106,7 +7294,7 @@ var layout = {
|
|
|
7106
7294
|
"column",
|
|
7107
7295
|
"auto"
|
|
7108
7296
|
],
|
|
7109
|
-
"description": "How several blocks share the region: 'none' one block fills it; 'grid' by count (1 fills, 2 side by side, 3 in a row, 4 as 2 x 2, 5 as 3 + 2, 6 as 3 x 2, 7 to 12 in four
|
|
7297
|
+
"description": "How several blocks share the region: 'none' one block fills it (blocks no region had room for join it, up to 6, and it flows as 'auto'); 'grid' by count (1 fills, 2 side by side, 3 in a row, 4 as 2 x 2, 5 as 3 + 2, 6 as 3 x 2, 7 to 12 in balanced rows of at most four, 9 as 3 x 3; rows and columns swap in a portrait region; the cells of a short row stretch to the full width, or keep one size and are centred in a grid of pictures); 'column' stacked at the heights the blocks need, one gap apart, and placed by the region's anchor (charts, pictures, tables, timelines and videos take what the measured blocks leave; blocks that do not fit share the region, each giving up the same fraction of what it can give up above its height at the minimum font size); 'auto' a grid when every block is short and a column when any block is long (more than 6 estimated lines in its grid cell at the starting size). design.contentDirection turns every flowing region into one row or one column. Default 'auto'."
|
|
7110
7298
|
},
|
|
7111
7299
|
"max": {
|
|
7112
7300
|
"type": "integer",
|
|
@@ -7127,7 +7315,23 @@ var layout = {
|
|
|
7127
7315
|
"const": 1
|
|
7128
7316
|
}
|
|
7129
7317
|
],
|
|
7130
|
-
"description": "'auto': a list in the region that does not fit its cell at the starting size (a lone list, or one of several blocks) flows into up to three columns before it shrinks, as a list payload's columns: 'auto'. Default 1."
|
|
7318
|
+
"description": "'auto': a list in the region that does not fit its cell at the starting size (a lone list, or one of several blocks) flows into up to three columns before it shrinks, as a list payload's columns: 'auto'; a list of 6 or fewer entries is never split. 2 or more lists alone in a region are one list per cell in a grid instead. Default 1."
|
|
7319
|
+
},
|
|
7320
|
+
"metrics": {
|
|
7321
|
+
"type": "string",
|
|
7322
|
+
"enum": [
|
|
7323
|
+
"stack",
|
|
7324
|
+
"tile"
|
|
7325
|
+
],
|
|
7326
|
+
"description": "How a metric block in the region is laid out. 'stack' (default): value, unit, label and the rest as one block at the region's anchor and content alignment. 'tile': the metric fills its cell (its card when the layout draws cards) from the start: the label first as an eyebrow, the value under it asking for a quarter of the cell's height (between its 76 px role size and twice it, fitted down as usual), and the description, delta and trend at the foot of the cell."
|
|
7327
|
+
},
|
|
7328
|
+
"sequence": {
|
|
7329
|
+
"type": "string",
|
|
7330
|
+
"enum": [
|
|
7331
|
+
"steps",
|
|
7332
|
+
"numbered"
|
|
7333
|
+
],
|
|
7334
|
+
"description": "The region lists the steps of a sequence (LH-07). 'steps': two or more text or list blocks are the steps, each under a numbered badge (an accent circle with its numeral; a one-entry numbered list gives the badge its number and draws as a heading over its description) on one connector line through the badge centers; a lone list's entries are the steps, each beside its badge on a connector down the badge column; a lone list of 3 to 6 entries of one or two words is a flow of chips joined by arrows. 'numbered' (an agenda, ordered by nature): every list of two or more entries of one level draws its entries beside badges, numbered or not; an unnumbered list is counted in arabic, continuing from the region's previous unnumbered list, as drawing only (the document keeps no numbering). Steps keep the text size they have without the badges: a slide whose blocks would get smaller draws them as before. Absent: the region's content draws as any other."
|
|
7131
7335
|
},
|
|
7132
7336
|
"anchor": {
|
|
7133
7337
|
"type": "string",
|
|
@@ -7202,9 +7406,10 @@ var layout = {
|
|
|
7202
7406
|
"enum": [
|
|
7203
7407
|
"cover",
|
|
7204
7408
|
"contain",
|
|
7205
|
-
"stretch"
|
|
7409
|
+
"stretch",
|
|
7410
|
+
"auto"
|
|
7206
7411
|
],
|
|
7207
|
-
"description": "Default fit of the slide's image blocks: 'cover' fills the frame and crops around focus, 'contain' shows the whole picture, 'stretch' scales it to the frame."
|
|
7412
|
+
"description": "Default fit of the slide's image blocks: 'cover' fills the frame and crops around focus, 'contain' shows the whole picture, 'stretch' scales it to the frame, 'auto' covers when the crop keeps at least 85% of the picture and contains otherwise."
|
|
7208
7413
|
},
|
|
7209
7414
|
"listBullet": {
|
|
7210
7415
|
"type": "string",
|
|
@@ -7215,12 +7420,47 @@ var layout = {
|
|
|
7215
7420
|
],
|
|
7216
7421
|
"description": "Marker style of lists: 'character' draws the glyph, 'image' draws the deck's icon logo as a picture bullet, 'none' draws no marker and no hanging indent (label-and-description lists)."
|
|
7217
7422
|
},
|
|
7423
|
+
"listStyle": {
|
|
7424
|
+
"type": "string",
|
|
7425
|
+
"enum": [
|
|
7426
|
+
"stack",
|
|
7427
|
+
"rows"
|
|
7428
|
+
],
|
|
7429
|
+
"description": "As design.listStyle of a deck: 'stack' or 'rows' (ruled rows) for the lists of slides using this layout."
|
|
7430
|
+
},
|
|
7218
7431
|
"mirror": {
|
|
7219
7432
|
"type": "boolean",
|
|
7220
7433
|
"description": "Draw the layout mirrored: each row's cells and the column sizes reversed, so a 'beside' layout puts its picture, chart or table at the end. Logical: a right-to-left deck mirrors on top. Binding and reading order do not change."
|
|
7434
|
+
},
|
|
7435
|
+
"variant": {
|
|
7436
|
+
"oneOf": [
|
|
7437
|
+
{
|
|
7438
|
+
"$ref": "https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot"
|
|
7439
|
+
},
|
|
7440
|
+
{
|
|
7441
|
+
"$ref": "https://openpresentation.org/schema/opf/v1#/$defs/ColorVariant"
|
|
7442
|
+
},
|
|
7443
|
+
{
|
|
7444
|
+
"$ref": "#/$defs/LayoutVariantRole"
|
|
7445
|
+
}
|
|
7446
|
+
],
|
|
7447
|
+
"description": "The color variant slides on this layout draw on (LH-01): a background slot ('accent1', 'dark1', ...) or the ColorVariant object, as design.variant, or a value relative to the deck's own variant (LayoutVariantRole: 'surface', 'brand'), so the layout keeps the deck's tone. Unlike the other keys it outranks the deck's design and the theme: the slide's own design.variant or design.background wins, then this, then the deck's variant or background, then the theme's. It hides a background of the deck or theme (the slide is the variant's bg1), and without an accent order of its own it keeps the deck's.",
|
|
7448
|
+
"examples": [
|
|
7449
|
+
"accent1",
|
|
7450
|
+
"surface",
|
|
7451
|
+
"brand"
|
|
7452
|
+
]
|
|
7221
7453
|
}
|
|
7222
7454
|
}
|
|
7223
7455
|
},
|
|
7456
|
+
"LayoutVariantRole": {
|
|
7457
|
+
"type": "string",
|
|
7458
|
+
"enum": [
|
|
7459
|
+
"surface",
|
|
7460
|
+
"brand"
|
|
7461
|
+
],
|
|
7462
|
+
"description": "A layout variant relative to the deck's own variant (LH-01). 'surface' is the deck's secondary surface on its own side: light2 on a light deck and dark2 on a dark one (light1 or dark1 where the deck is already on light2 or dark2), so a statement stands off the deck without changing its tone. 'brand' is the scheme's brand dark, dark2 (dark1 where the deck is already on dark2), with light text: a closing slide's strong surface on a light or a dark deck."
|
|
7463
|
+
},
|
|
7224
7464
|
"Composition": {
|
|
7225
7465
|
"type": "object",
|
|
7226
7466
|
"additionalProperties": false,
|
|
@@ -7704,7 +7944,8 @@ var narrative = {
|
|
|
7704
7944
|
"code",
|
|
7705
7945
|
"metric",
|
|
7706
7946
|
"quote",
|
|
7707
|
-
"timeline"
|
|
7947
|
+
"timeline",
|
|
7948
|
+
"diagram"
|
|
7708
7949
|
],
|
|
7709
7950
|
"description": "Default content kind for the beat's slide: the same values as Slide.type. Helps engines and planners choose a layout when only the beat is known."
|
|
7710
7951
|
},
|