@openpresentation/opf 0.32.1 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/browser.js +22 -21
- package/dist/catalog-refs-CoIrOdAw.d.ts +937 -0
- package/dist/{catalog-schemas-LdqOPebq.d.ts → catalog-schemas-FjLRPtjB.d.ts} +10 -4
- package/dist/{chart-data-oIZQlFGi.d.ts → chart-data-B_k-WTex.d.ts} +7 -4
- package/dist/{chunk-PB7ME64J.js → chunk-244OPLAV.js} +1 -1
- package/dist/{chunk-IT7FQKED.js → chunk-2HX4BGAS.js} +6 -6
- package/dist/{chunk-2E6CDYL2.js → chunk-36DLVJGW.js} +19 -16
- package/dist/{chunk-XQO2CT6Q.js → chunk-3THGTDL2.js} +2 -2
- package/dist/{chunk-CLRYHWQN.js → chunk-42JBXJKW.js} +187 -25
- package/dist/chunk-BLCDUM7B.js +7 -0
- package/dist/{chunk-NVAJASOD.js → chunk-CJVKOJ6B.js} +10195 -2036
- package/dist/{chunk-XFHXQCXL.js → chunk-DQ7QYOUV.js} +99 -13
- package/dist/{chunk-NEJ32O7X.js → chunk-F6BXO4AI.js} +1 -1
- package/dist/{chunk-OXLA4HXQ.js → chunk-FAXO3SUE.js} +1196 -313
- package/dist/{chunk-J63CIRIV.js → chunk-FIQMAIZV.js} +4 -4
- package/dist/{chunk-PJSPHHRK.js → chunk-FK5XG742.js} +3 -16
- package/dist/{chunk-HKUV7NEN.js → chunk-HHVQ2SDT.js} +1 -1
- package/dist/{chunk-SZFO3MAJ.js → chunk-HUGVYHZ2.js} +4 -4
- package/dist/{chunk-LEF4X4KI.js → chunk-LCT5ZV3Q.js} +2400 -222
- package/dist/chunk-NLJFNCZ4.js +1560 -0
- package/dist/{chunk-GM7WFPGG.js → chunk-PRXZD2II.js} +6 -1
- package/dist/{chunk-YFJIIIOL.js → chunk-QGJVOPLG.js} +3 -3
- package/dist/{chunk-F7DN33UL.js → chunk-QGTJF7HV.js} +16 -14
- package/dist/{chunk-ONVFUVQ5.js → chunk-RUV7CCE6.js} +136 -31
- package/dist/{chunk-SW676APJ.js → chunk-U7TYSPYM.js} +2 -2
- package/dist/chunk-UJZN2ZH6.js +1 -0
- package/dist/chunk-VDZXNNZF.js +221 -0
- package/dist/{chunk-UJSAR6GF.js → chunk-W4DYDRV2.js} +21 -0
- package/dist/chunk-WCPDN7AY.js +642 -0
- package/dist/{chunk-BBVW5ZC2.js → chunk-WMFT5R7I.js} +2 -2
- package/dist/{chunk-AQEAZDL2.js → chunk-XJUMFH33.js} +2 -1
- package/dist/{composition-Ds6WHyO7.d.ts → composition-CvtvgBDE.d.ts} +2783 -873
- package/dist/composition.d.ts +4 -3
- package/dist/composition.js +3 -2
- package/dist/{conversion-CdzrTxib.d.ts → conversion-B_5AKTYQ.d.ts} +39 -10
- package/dist/conversion-CMBGOTAC.js +25 -0
- package/dist/convert.d.ts +5 -4
- package/dist/convert.js +17 -13
- package/dist/data.d.ts +2 -2
- package/dist/data.js +4 -3
- package/dist/{deck-report-CKDNQ2t4.d.ts → deck-report-BVlQZ42f.d.ts} +3 -3
- package/dist/deck.d.ts +7 -6
- package/dist/deck.js +13 -12
- package/dist/diagram-engine-eager.js +6 -2
- package/dist/diagram-engine-lazy.js +14 -1
- package/dist/diagram-plantuml-XRZ6VAOL.js +3 -0
- package/dist/diff.js +6 -5
- package/dist/docs.js +88 -52
- package/dist/examples.js +28745 -18393
- package/dist/font-policy.js +2 -2
- package/dist/format.js +3 -3
- package/dist/ids.js +6 -5
- package/dist/index.d.ts +19 -16
- package/dist/index.js +37 -26
- package/dist/markdown.d.ts +3 -2
- package/dist/markdown.js +10 -9
- package/dist/node-engine.d.ts +44 -11
- package/dist/node-engine.js +47 -28
- package/dist/{pagination-DRZ_JNFY.d.ts → pagination-CZQQYk7L.d.ts} +22 -4
- package/dist/pagination.d.ts +5 -4
- package/dist/pagination.js +6 -5
- package/dist/patch.js +5 -4
- package/dist/precompiled.js +3 -3
- package/dist/{presentation-DnD7mfmf.d.ts → presentation-s9262acV.d.ts} +1172 -208
- package/dist/repo-readme.js +2 -2
- package/dist/schema-engine-ajv.js +2 -2
- package/dist/schema-engine-precompiled.js +3 -3
- package/dist/schema.d.ts +3 -3
- package/dist/schema.js +5 -4
- package/dist/schemas.d.ts +56 -4
- package/dist/schemas.js +2 -2
- package/dist/shape-catalog.d.ts +98 -0
- package/dist/shape-catalog.js +302 -0
- package/dist/shape-engine-eager.js +9 -0
- package/dist/shape-engine-lazy.js +12 -0
- package/dist/shape-engine-module-N74FCHGY.js +3 -0
- package/dist/shape-geometry.d.ts +126 -0
- package/dist/shape-geometry.js +2 -0
- package/dist/source.d.ts +10 -5
- package/dist/source.js +12 -11
- package/dist/spec/README.md +1 -1
- package/dist/spec/reference/engine-vocabularies.json +135 -0
- package/dist/spec/reference/font-policy.json +3 -16
- package/dist/spec/reference/preset-geometry.json +10699 -0
- package/dist/spec/reference/preset-geometry.schema.json +126 -0
- package/dist/spec/schemas/catalog-index.schema.json +1 -0
- package/dist/spec/schemas/chart-type.schema.json +4 -4
- package/dist/spec/schemas/icon-set.schema.json +75 -0
- package/dist/spec/schemas/layout.schema.json +82 -23
- package/dist/spec/schemas/opf.schema.json +1616 -296
- package/dist/spec/schemas/theme.schema.json +11 -5
- package/dist/spec-files.d.ts +1 -1
- package/dist/spec-files.js +2 -2
- package/dist/symbol-font-encodings.js +1 -1
- package/dist/types.d.ts +83 -71
- package/dist/{validation-types-DxyYPebs.d.ts → validation-types-CYbsUuZ9.d.ts} +8 -5
- package/dist/validator.d.ts +35 -7
- package/dist/validator.js +5 -4
- package/dist/yaml.d.ts +3 -2
- package/dist/yaml.js +9 -8
- package/package.json +22 -6
- package/dist/catalog-refs-kAefsZWT.d.ts +0 -129
- package/dist/chunk-DGS47ONG.js +0 -1
- package/dist/conversion-5FUDQPED.js +0 -24
|
@@ -77,7 +77,6 @@ type Audience = (Audience1 & {
|
|
|
77
77
|
* Free-form labels for filtering and search.
|
|
78
78
|
*/
|
|
79
79
|
tags?: string[];
|
|
80
|
-
[k: string]: unknown;
|
|
81
80
|
});
|
|
82
81
|
type Audience1 = {
|
|
83
82
|
[k: string]: unknown;
|
|
@@ -125,13 +124,12 @@ type Purpose = (Purpose1 & {
|
|
|
125
124
|
* Free-form labels for filtering and search.
|
|
126
125
|
*/
|
|
127
126
|
tags?: string[];
|
|
128
|
-
[k: string]: unknown;
|
|
129
127
|
});
|
|
130
128
|
type Purpose1 = {
|
|
131
129
|
[k: string]: unknown;
|
|
132
130
|
};
|
|
133
131
|
/**
|
|
134
|
-
* A BCP-47 language tag ('en-US', 'ja', 'zh-Hans', 'sr-Latn-ME'), an engine vocabulary. Use 'en-GB' for UK English; 'en-UK' is not a valid region.
|
|
132
|
+
* A BCP-47 language tag ('en-US', 'ja', 'zh-Hans', 'sr-Latn-ME'), an engine vocabulary. Use 'en-GB' for UK English; 'en-UK' is not a valid region. Numbers the engines generate (metric values, chart labels and ticks, table numbers, list numerals, slide numbers) are drawn in the numbering system of the language, the locale's own (Arabic-Indic digits for 'ar-SA', Latin for 'ar-AE', Persian for 'fa-IR'); the Unicode extension '-u-nu-<system>' chooses another ('ar-SA-u-nu-latn' draws Latin digits). PowerPoint's lang attribute is written without the extension.
|
|
135
133
|
*
|
|
136
134
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
137
135
|
* via the `definition` "LanguageTag".
|
|
@@ -187,7 +185,6 @@ type Tone = (Tone1 & {
|
|
|
187
185
|
* Free-form labels for filtering and search.
|
|
188
186
|
*/
|
|
189
187
|
tags?: string[];
|
|
190
|
-
[k: string]: unknown;
|
|
191
188
|
});
|
|
192
189
|
type Tone1 = {
|
|
193
190
|
[k: string]: unknown;
|
|
@@ -234,6 +231,29 @@ type ImageSource = string;
|
|
|
234
231
|
* via the `definition` "Background".
|
|
235
232
|
*/
|
|
236
233
|
type Background = (ThemeBackground | SolidBackground | GradientBackground | ImageBackground | PatternBackground);
|
|
234
|
+
/**
|
|
235
|
+
* A ColorRef made lighter or darker, as PowerPoint's theme color tints and shades: 'lighten' moves the color's HSL luminance that share of the way to white (lumMod 1 - lighten, lumOff lighten), 'darken' that share of the way to black (lumMod 1 - darken). Exactly one of the two. PPTX export writes a:lumMod and a:lumOff on the base color, a scheme color where the base names one, so re-theming the deck keeps the tint.
|
|
236
|
+
*
|
|
237
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
238
|
+
* via the `definition` "ColorTransform".
|
|
239
|
+
*/
|
|
240
|
+
type ColorTransform = ({
|
|
241
|
+
/**
|
|
242
|
+
* The base color: any ColorRef.
|
|
243
|
+
*/
|
|
244
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
245
|
+
/**
|
|
246
|
+
* Share of the way to white, 0 to 1. 0.4 is PowerPoint's "Lighter 40%".
|
|
247
|
+
*/
|
|
248
|
+
lighten?: number;
|
|
249
|
+
/**
|
|
250
|
+
* Share of the way to black, 0 to 1. 0.25 is PowerPoint's "Darker 25%".
|
|
251
|
+
*/
|
|
252
|
+
darken?: number;
|
|
253
|
+
} & ColorTransform1);
|
|
254
|
+
type ColorTransform1 = {
|
|
255
|
+
[k: string]: unknown;
|
|
256
|
+
};
|
|
237
257
|
/**
|
|
238
258
|
* 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.
|
|
239
259
|
*
|
|
@@ -299,11 +319,11 @@ type TextRun = (string | {
|
|
|
299
319
|
*/
|
|
300
320
|
strikethrough?: boolean;
|
|
301
321
|
/**
|
|
302
|
-
* Run text color. Documented forms: a hex string ('#RGB', '#RRGGBB', '#RRGGBBAA'), a color-scheme slot or role name resolved through the effective color scheme ('accent2', 'text'), or a 'var:<id>' reference into the top-level variables map. Prefer names over hex so runs survive re-theming. Any other string stays schema-valid so imported decks keep validating: validators warn and renderers fall back to the theme text color.
|
|
322
|
+
* 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.
|
|
303
323
|
*/
|
|
304
|
-
color?: string;
|
|
324
|
+
color?: (string | ColorTransform);
|
|
305
325
|
/**
|
|
306
|
-
*
|
|
326
|
+
* Run font size in points, the unit presenters know from PowerPoint. One point is 4/3 reference pixels at a 720-pixel short edge, so 12 points corresponds to 16 reference pixels (composition.minFontSize: 16). Other fields state their own units, including inches, reference pixels, fractional geometry and chart data-axis values.
|
|
307
327
|
*/
|
|
308
328
|
fontSize?: number;
|
|
309
329
|
/**
|
|
@@ -315,9 +335,9 @@ type TextRun = (string | {
|
|
|
315
335
|
*/
|
|
316
336
|
code?: boolean;
|
|
317
337
|
/**
|
|
318
|
-
* BCP-47 language tag of the run, such as 'fr-FR' or 'ja-JP', when it differs from the deck language. It sets the proofing language (PPTX a:rPr lang) and the language the run's script fonts and glyph variants follow (for example the Japanese or the Simplified Chinese face for Han characters); without it the run follows the deck language.
|
|
338
|
+
* BCP-47 language tag of the run, such as 'fr-FR' or 'ja-JP', when it differs from the deck language. It sets the proofing language (PPTX a:rPr lang) and the language the run's script fonts and glyph variants follow (for example the Japanese or the Simplified Chinese face for Han characters); without it the run follows the effective slide language, then the deck language.
|
|
319
339
|
*/
|
|
320
|
-
|
|
340
|
+
language?: string;
|
|
321
341
|
/**
|
|
322
342
|
* URL to link the run text to: an http(s) URL, a 'mailto:' address or a 'tel:' number, without whitespace. The preview draws it as a link and PPTX export writes a native hyperlink for all three; any other scheme is not valid.
|
|
323
343
|
*/
|
|
@@ -338,7 +358,6 @@ type TextRun = (string | {
|
|
|
338
358
|
* An inline note for this run, without a references entry. Engines draw a superscript marker after the run and list the note in the slide's footnote area; every footnote takes a new number in the deck's marker sequence. Supported in text, bullets and list item runs, in the slide title, subtitle and tag, and in the quote text.
|
|
339
359
|
*/
|
|
340
360
|
footnote?: (string | [TextRun, ...(TextRun)[]]);
|
|
341
|
-
[k: string]: unknown;
|
|
342
361
|
});
|
|
343
362
|
/**
|
|
344
363
|
* A flat item inside a list. Strings cover the common case, TextRun[] supports inline rich text without an object wrapper, and object form adds description and nesting depth without creating nested slide content payloads.
|
|
@@ -359,6 +378,10 @@ type ListItem = (string | TextRun[] | {
|
|
|
359
378
|
* Zero-based nesting level for the list item.
|
|
360
379
|
*/
|
|
361
380
|
level?: number;
|
|
381
|
+
/**
|
|
382
|
+
* An icon drawn on a chip at the start of the entry, in place of its bullet: "<set>:<name>" ("lucide:truck"), a name from the deck's icons, or an SVG source. Drawn on first-level entries of an unnumbered list. Decoration only: when the slide has no room for the chips without setting text smaller, they are not drawn (finding opf/icon-dropped). See docs/icons.md.
|
|
383
|
+
*/
|
|
384
|
+
icon?: string;
|
|
362
385
|
/**
|
|
363
386
|
* Restart the list's numbering at this number for this item (counted at its level); the entries after it continue from it. Only meaningful when the payload has `numbering`. Paginated continuation pages use it to keep the numbers of the whole list.
|
|
364
387
|
*/
|
|
@@ -405,17 +428,18 @@ type ChartDataCell = (string | number | boolean | null);
|
|
|
405
428
|
*/
|
|
406
429
|
type DatasetFields = [string, ...(string)[]];
|
|
407
430
|
/**
|
|
408
|
-
* A color value or reference, enforced on styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors.
|
|
431
|
+
* 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:
|
|
409
432
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
410
433
|
* - 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).
|
|
411
434
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
435
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
412
436
|
*
|
|
413
437
|
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
414
438
|
*
|
|
415
439
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
416
440
|
* via the `definition` "ColorRef".
|
|
417
441
|
*/
|
|
418
|
-
type ColorRef = (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
442
|
+
type ColorRef = (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
419
443
|
/**
|
|
420
444
|
* A scalar, rich-run array, or styled/spanning cell object. Existing scalar and rich forms remain valid.
|
|
421
445
|
*
|
|
@@ -454,13 +478,13 @@ type ContentPayload = {
|
|
|
454
478
|
[k: string]: unknown;
|
|
455
479
|
};
|
|
456
480
|
/**
|
|
457
|
-
* Pin a root block (slides.N.blocks.I) to a region of the slide's template layout by name
|
|
481
|
+
* Pin a root block (slides.N.blocks.I) to a region of the slide's template layout by name. The block goes to that region when the region exists, accepts the block's kind and has room; otherwise the pin is ignored with a warning (opf/region-unknown, opf/region-kind or opf/region-full) and the block is placed by its kind. Blocks without a pin are bound by reading order, role and kind. A pin on a nested block, or on a slide without a template layout, has no effect.
|
|
458
482
|
*/
|
|
459
483
|
region?: string;
|
|
460
484
|
/**
|
|
461
|
-
* Optional content kind. When omitted, engines infer the kind from the fields present.
|
|
485
|
+
* 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.
|
|
462
486
|
*/
|
|
463
|
-
type?: ("text" | "list" | "image" | "chart" | "table" | "video" | "code" | "metric" | "quote" | "timeline" | "diagram" | "group");
|
|
487
|
+
type?: ("text" | "list" | "image" | "chart" | "table" | "video" | "code" | "metric" | "quote" | "timeline" | "diagram" | "shape" | "group");
|
|
464
488
|
/**
|
|
465
489
|
* Text payload. Use a string for plain text or TextRun[] for inline rich text. TextRun items may be plain strings or formatted run objects.
|
|
466
490
|
*/
|
|
@@ -478,19 +502,19 @@ type ContentPayload = {
|
|
|
478
502
|
*/
|
|
479
503
|
numbering?: (NumberingStyle | Numbering | [(NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)]);
|
|
480
504
|
/**
|
|
481
|
-
* Lay the payload's `items` or `bullets` out in columns
|
|
505
|
+
* Lay the payload's `items` or `bullets` out in columns. 'auto' tries 1, 2 then 3 equal columns at the starting text size and uses the first count at which the list fits, as long as a column stays at least a quarter of the slide wide; when none fits, 'auto' takes the count (1, 2 or 3) whose fitted size is largest, preferring fewer columns on a tie, and sets the list in one column only when its lines stay within the prose measure (or it is a type-scale step larger). A list of 6 or fewer entries is never split by 'auto'; it shrinks in one column. 1, 2 or 3 fixes the count. Column breaks fall between items (a nested item stays with its parent) and keep the columns as even as possible; numbering continues and reading order runs column by column. A lone list in a layout region with listColumns: 'auto' behaves as 'auto'.
|
|
482
506
|
*/
|
|
483
507
|
columns?: ("auto" | number);
|
|
484
508
|
/**
|
|
485
|
-
*
|
|
509
|
+
* Source for an image item.
|
|
486
510
|
*/
|
|
487
511
|
image?: (string | {
|
|
488
512
|
/**
|
|
489
|
-
*
|
|
513
|
+
* Image source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
490
514
|
*/
|
|
491
515
|
src: string;
|
|
492
516
|
/**
|
|
493
|
-
* Alternative text for
|
|
517
|
+
* Alternative text for the image.
|
|
494
518
|
*/
|
|
495
519
|
alt?: string;
|
|
496
520
|
/**
|
|
@@ -505,6 +529,10 @@ type ContentPayload = {
|
|
|
505
529
|
* Optional MIME media type when it cannot be inferred from src.
|
|
506
530
|
*/
|
|
507
531
|
mediaType?: string;
|
|
532
|
+
/**
|
|
533
|
+
* Editable text panels over this image. Coordinates are fractions of its visible frame, measured from the physical top-left even in RTL. Panels are drawn above masks and overlays; overflowing text is reported, never clipped or shrunk below the body role.
|
|
534
|
+
*/
|
|
535
|
+
callouts?: ImageCallout[];
|
|
508
536
|
});
|
|
509
537
|
/**
|
|
510
538
|
* 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.
|
|
@@ -516,16 +544,174 @@ type ContentPayload = {
|
|
|
516
544
|
*/
|
|
517
545
|
aspectRatio?: number;
|
|
518
546
|
/**
|
|
519
|
-
*
|
|
547
|
+
* The preset geometry. Without 'image' it makes the block a shape block: the preset drawn at the block's own fitted size with 'fill', 'stroke' and 'style', and 'text' inside its text rectangle. On an image block it is the frame's mask, exported as the picture's native preset geometry (a:prstGeom); 0.33 renamed rectangle, rounded and circle to rect, roundRect and ellipse, and every other preset is a mask too. 'ellipse' makes an image frame square. Default rect.
|
|
548
|
+
*/
|
|
549
|
+
shape?: ("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");
|
|
550
|
+
/**
|
|
551
|
+
* 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.
|
|
552
|
+
*/
|
|
553
|
+
stroke?: ("none" | {
|
|
554
|
+
/**
|
|
555
|
+
* 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:
|
|
556
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
557
|
+
* - 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).
|
|
558
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
559
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
560
|
+
*
|
|
561
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
562
|
+
*/
|
|
563
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
564
|
+
gradient?: Gradient;
|
|
565
|
+
/**
|
|
566
|
+
* 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.
|
|
567
|
+
*/
|
|
568
|
+
width?: number;
|
|
569
|
+
/**
|
|
570
|
+
* Dash pattern: a preset name or an array of dash and gap lengths in stroke widths.
|
|
571
|
+
*/
|
|
572
|
+
dash?: (("solid" | "dot" | "dash" | "longDash" | "dashDot" | "longDashDot" | "longDashDotDot" | "sysDot" | "sysDash" | "sysDashDot" | "sysDashDotDot") | [number, number] | [number, number, number] | [number, number, number, number] | [number, number, number, number, number] | [number, number, number, number, number, number] | [number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number]);
|
|
573
|
+
/**
|
|
574
|
+
* Line cap (a:ln cap flat, rnd, sq). Default flat.
|
|
575
|
+
*/
|
|
576
|
+
cap?: ("flat" | "round" | "square");
|
|
577
|
+
/**
|
|
578
|
+
* Line join (a:miter, a:round, a:bevel). Default miter, PowerPoint's default line join.
|
|
579
|
+
*/
|
|
580
|
+
join?: ("miter" | "round" | "bevel");
|
|
581
|
+
/**
|
|
582
|
+
* Miter join limit, as a multiple of the stroke width (a:miter lim). Default 8. Ignored by round and bevel joins.
|
|
583
|
+
*/
|
|
584
|
+
miterLimit?: number;
|
|
585
|
+
/**
|
|
586
|
+
* Compound line (a:ln cmpd sng, dbl, thickThin, thinThick, tri). Default single.
|
|
587
|
+
*/
|
|
588
|
+
compound?: ("single" | "double" | "thickThin" | "thinThick" | "triple");
|
|
589
|
+
/**
|
|
590
|
+
* Where the line sits on the outline (a:ln algn ctr or in). Default center. PowerPoint draws inside-aligned lines only on closed outlines.
|
|
591
|
+
*/
|
|
592
|
+
align?: ("center" | "inside");
|
|
593
|
+
start?: Arrowhead;
|
|
594
|
+
end?: Arrowhead1;
|
|
595
|
+
/**
|
|
596
|
+
* 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.
|
|
597
|
+
*/
|
|
598
|
+
sketch?: ("curved" | "freehand" | "scribble");
|
|
599
|
+
});
|
|
600
|
+
/**
|
|
601
|
+
* 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.
|
|
602
|
+
*/
|
|
603
|
+
path?: (string | {
|
|
604
|
+
/**
|
|
605
|
+
* SVG path data in the viewBox.
|
|
606
|
+
*/
|
|
607
|
+
d: string;
|
|
608
|
+
/**
|
|
609
|
+
* The path's own box, 'minX minY width height' as in SVG; it is stretched to the block.
|
|
610
|
+
*/
|
|
611
|
+
viewBox: string;
|
|
612
|
+
});
|
|
613
|
+
/**
|
|
614
|
+
* Shape blocks only. 'none', a ColorRef, { gradient } or { pattern }. Default the style's fill.
|
|
615
|
+
*/
|
|
616
|
+
fill?: ("none" | (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform) | {
|
|
617
|
+
gradient: Gradient1;
|
|
618
|
+
} | {
|
|
619
|
+
pattern: Pattern;
|
|
620
|
+
});
|
|
621
|
+
/**
|
|
622
|
+
* 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.
|
|
623
|
+
*/
|
|
624
|
+
style?: ("none" | "subtle" | "moderate" | "intense");
|
|
625
|
+
/**
|
|
626
|
+
* 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.
|
|
627
|
+
*/
|
|
628
|
+
rotate?: number;
|
|
629
|
+
/**
|
|
630
|
+
* Shape blocks only. Mirror the geometry (a:xfrm flipH, flipV). The text is not mirrored.
|
|
631
|
+
*/
|
|
632
|
+
flip?: ("horizontal" | "vertical" | "both");
|
|
633
|
+
/**
|
|
634
|
+
* Shape blocks only. Vertical placement of the text in the text rectangle (a:bodyPr anchor t, ctr, b). Default middle.
|
|
520
635
|
*/
|
|
521
|
-
|
|
636
|
+
anchor?: ("top" | "middle" | "bottom");
|
|
522
637
|
/**
|
|
523
|
-
*
|
|
638
|
+
* Shape blocks only. Text insets inside the text rectangle.
|
|
524
639
|
*/
|
|
525
|
-
|
|
526
|
-
border?: ImageBorder;
|
|
640
|
+
padding?: (number | TableCellPadding);
|
|
527
641
|
/**
|
|
528
|
-
*
|
|
642
|
+
* 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.
|
|
643
|
+
*/
|
|
644
|
+
textDirection?: ("horizontal" | "vertical" | "vertical270" | "stacked");
|
|
645
|
+
/**
|
|
646
|
+
* Shape blocks only. Alternative text for screen readers (p:cNvPr descr). Without it a shape's text is what is read.
|
|
647
|
+
*/
|
|
648
|
+
alt?: string;
|
|
649
|
+
/**
|
|
650
|
+
* Shape blocks only. Mark the shape decorative (a16:decorative): screen readers skip it and the accessibility checker does not ask for alt text.
|
|
651
|
+
*/
|
|
652
|
+
decorative?: boolean;
|
|
653
|
+
/**
|
|
654
|
+
* 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).
|
|
655
|
+
*/
|
|
656
|
+
hidden?: boolean;
|
|
657
|
+
/**
|
|
658
|
+
* 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.
|
|
659
|
+
*/
|
|
660
|
+
link?: string;
|
|
661
|
+
/**
|
|
662
|
+
* Shape blocks only. Outer shadow.
|
|
663
|
+
*/
|
|
664
|
+
shadow?: (("soft" | "hard" | "perspective") | {
|
|
665
|
+
/**
|
|
666
|
+
* 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:
|
|
667
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
668
|
+
* - 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).
|
|
669
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
670
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
671
|
+
*
|
|
672
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
673
|
+
*/
|
|
674
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
675
|
+
/**
|
|
676
|
+
* Shadow opacity.
|
|
677
|
+
*/
|
|
678
|
+
opacity?: number;
|
|
679
|
+
/**
|
|
680
|
+
* Blur radius in reference pixels at a 720-pixel short edge.
|
|
681
|
+
*/
|
|
682
|
+
blur?: number;
|
|
683
|
+
/**
|
|
684
|
+
* Offset from the shape in reference pixels at a 720-pixel short edge.
|
|
685
|
+
*/
|
|
686
|
+
distance?: number;
|
|
687
|
+
/**
|
|
688
|
+
* Direction of the offset in degrees (0 = right, 90 = down).
|
|
689
|
+
*/
|
|
690
|
+
angle?: number;
|
|
691
|
+
/**
|
|
692
|
+
* Shadow size relative to the shape (1 = the shape's own size).
|
|
693
|
+
*/
|
|
694
|
+
size?: number;
|
|
695
|
+
});
|
|
696
|
+
innerShadow?: InnerShadow;
|
|
697
|
+
glow?: Glow;
|
|
698
|
+
/**
|
|
699
|
+
* Shape blocks only. Soft edges (a:softEdge): the radius over which the outline fades, in reference pixels at a 720-pixel short edge.
|
|
700
|
+
*/
|
|
701
|
+
softEdge?: number;
|
|
702
|
+
reflection?: Reflection;
|
|
703
|
+
/**
|
|
704
|
+
* Shape blocks only. Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge.
|
|
705
|
+
*/
|
|
706
|
+
blur?: number;
|
|
707
|
+
/**
|
|
708
|
+
* 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.
|
|
709
|
+
*/
|
|
710
|
+
adjust?: {
|
|
711
|
+
[k: string]: number;
|
|
712
|
+
};
|
|
713
|
+
/**
|
|
714
|
+
* 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.
|
|
529
715
|
*/
|
|
530
716
|
opacity?: number;
|
|
531
717
|
/**
|
|
@@ -535,14 +721,18 @@ type ContentPayload = {
|
|
|
535
721
|
/**
|
|
536
722
|
* Color at luminance 0.
|
|
537
723
|
*/
|
|
538
|
-
dark: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
724
|
+
dark: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
539
725
|
/**
|
|
540
726
|
* Color at luminance 1.
|
|
541
727
|
*/
|
|
542
|
-
light: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
728
|
+
light: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
543
729
|
});
|
|
544
730
|
overlay?: Overlay1;
|
|
545
731
|
placement?: ImagePlacement;
|
|
732
|
+
/**
|
|
733
|
+
* 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.
|
|
734
|
+
*/
|
|
735
|
+
portrait?: ("avatar" | "side" | "top");
|
|
546
736
|
/**
|
|
547
737
|
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
548
738
|
*/
|
|
@@ -602,7 +792,7 @@ type ContentPayload = {
|
|
|
602
792
|
events: [TimelineEvent, ...(TimelineEvent)[]];
|
|
603
793
|
});
|
|
604
794
|
/**
|
|
605
|
-
* 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'.
|
|
795
|
+
* Diagram payload: Mermaid source (flowchart, sequence, state, class, ER, mindmap, timeline, journey, C4, architecture and the other built-in Mermaid families), or Graphviz DOT or PlantUML source with 'syntax', drawn in the deck's fonts and colors. A string is shorthand for { "source": value }; object form carries the source syntax and a text alternative. Presence of this field infers type 'diagram'.
|
|
606
796
|
*/
|
|
607
797
|
diagram?: (string | Diagram);
|
|
608
798
|
/**
|
|
@@ -618,9 +808,9 @@ type ContentPayload = {
|
|
|
618
808
|
*/
|
|
619
809
|
position?: ("below" | "above");
|
|
620
810
|
/**
|
|
621
|
-
* Horizontal alignment of the caption text within the block. Defaults to left.
|
|
811
|
+
* Horizontal alignment of the caption text within the block. Defaults to start. Logical: 'start' is the edge a paragraph starts on (the left for left-to-right text, the right for right-to-left text) and 'end' is the opposite edge.
|
|
622
812
|
*/
|
|
623
|
-
align?: ("
|
|
813
|
+
align?: ("start" | "center" | "end");
|
|
624
814
|
});
|
|
625
815
|
/**
|
|
626
816
|
* Ordered children of a group. Each child is a leaf or another group.
|
|
@@ -633,6 +823,54 @@ type ContentPayload = {
|
|
|
633
823
|
* 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.
|
|
634
824
|
*/
|
|
635
825
|
emphasis?: boolean;
|
|
826
|
+
/**
|
|
827
|
+
* Groups only: an icon drawn on a chip at the top of the group, before its heading, as a card of features or topics draws one: "<set>:<name>" ("lucide:shield-check"), a name from the deck's icons, or an SVG source. A list entry and a metric take their own `icon`. Decoration only: when the slide has no room for it without setting text smaller, it is not drawn (finding opf/icon-dropped). See docs/icons.md.
|
|
828
|
+
*/
|
|
829
|
+
icon?: string;
|
|
830
|
+
};
|
|
831
|
+
/**
|
|
832
|
+
* Places an overlay shape against a composed block's box, so the shape follows the block wherever composition puts it. 'edge' puts the shape outside that edge, centered along it ('start' and 'end' follow the deck's direction: left and right in a left-to-right deck, right and left in a right-to-left one); 'center' puts it on the block's center. A block id that is not on the slide is a finding (opf/shape-anchor-missing) and the shape is not drawn. With point, block must carry a supported classic chart. point selects a category label or zero-based row; series selects an exact unique plotted value-column name or zero-based plotted-series index (default first). The selected mark location centers the overlay, and offset moves along its outward normal; whole-block anchors retain their existing outside-edge placement. Unknown, ambiguous, unplotted or unsupported references report opf/shape-anchor-missing and draw no shape.
|
|
833
|
+
*
|
|
834
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
835
|
+
* via the `definition` "OverlayAnchor".
|
|
836
|
+
*/
|
|
837
|
+
type OverlayAnchor = {
|
|
838
|
+
/**
|
|
839
|
+
* The id of a block on this slide (a content payload or a group, at any depth).
|
|
840
|
+
*/
|
|
841
|
+
block: string;
|
|
842
|
+
/**
|
|
843
|
+
* The edge of the block the shape sits outside of, or its center.
|
|
844
|
+
*/
|
|
845
|
+
edge: ("top" | "bottom" | "start" | "end" | "center");
|
|
846
|
+
/**
|
|
847
|
+
* 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'.
|
|
848
|
+
*/
|
|
849
|
+
offset?: number;
|
|
850
|
+
/**
|
|
851
|
+
* The shape's width as a fraction of its target's width: the block's box, or with 'point' the chart mark's bounds. 1 is the target's own width and 1.08 a frame 8% wider, up to 8. For a size in pixels use 'widthPx'; not both. Default: the preset's natural proportions with the shape's shorter side at 15% of the target's shorter side (at least 12 reference pixels on a chart mark).
|
|
852
|
+
*/
|
|
853
|
+
width?: number;
|
|
854
|
+
/**
|
|
855
|
+
* The shape's height as a fraction of its target's height, up to 8. For a size in pixels use 'heightPx'; not both. Default as for width.
|
|
856
|
+
*/
|
|
857
|
+
height?: number;
|
|
858
|
+
/**
|
|
859
|
+
* The shape's width in reference pixels at a 720-pixel short edge, whatever size its target has: a badge or a ring of a fixed size. Instead of 'width'.
|
|
860
|
+
*/
|
|
861
|
+
widthPx?: number;
|
|
862
|
+
/**
|
|
863
|
+
* The shape's height in reference pixels at a 720-pixel short edge. Instead of 'height'.
|
|
864
|
+
*/
|
|
865
|
+
heightPx?: number;
|
|
866
|
+
/**
|
|
867
|
+
* Exact unique category label or zero-based data row index of the chart. Numeric strings name labels; numbers index rows. Empty/duplicate labels can be selected by index. Requires a supported classic chart block.
|
|
868
|
+
*/
|
|
869
|
+
point?: (string | number);
|
|
870
|
+
/**
|
|
871
|
+
* Exact unique plotted value-column name or zero-based plotted-series index; omission selects the first plotted series. Requires point. Scatter X is not a value series.
|
|
872
|
+
*/
|
|
873
|
+
series?: (string | number);
|
|
636
874
|
};
|
|
637
875
|
/**
|
|
638
876
|
* Identity of a catalog: an HTTPS URL ('https://www.pptx.gallery') or a package reference ('pkg:@acme/opf-catalog'). It names the catalog; engines never fetch or install it. A host registers the catalog's records under this exact string, and copying slides between documents matches groups by it.
|
|
@@ -744,6 +982,7 @@ interface Presentation {
|
|
|
744
982
|
references?: Reference[];
|
|
745
983
|
datasets?: Datasets;
|
|
746
984
|
assets?: Assets;
|
|
985
|
+
icons?: Icons;
|
|
747
986
|
catalogs?: Catalogs;
|
|
748
987
|
/**
|
|
749
988
|
* Custom data passthrough for agent workflows; ignored by the engine but preserved across read/write round-trips.
|
|
@@ -796,7 +1035,6 @@ interface Organization {
|
|
|
796
1035
|
*/
|
|
797
1036
|
role?: ("primary" | "partner" | "client" | "sponsor" | "host");
|
|
798
1037
|
socials?: Socials;
|
|
799
|
-
[k: string]: unknown;
|
|
800
1038
|
}
|
|
801
1039
|
/**
|
|
802
1040
|
* An organization's logo in up to four shapes. Each shape is a path or Asset, or { onLight, onDark } for the two backgrounds. A missing shape falls back to full, and full to the first defined of wordmark, stacked and icon; within a shape a missing onLight or onDark uses the other. Shapes are placed with slide-scoped references such as 'var:organization.logo.icon'.
|
|
@@ -1096,7 +1334,6 @@ interface Speaker {
|
|
|
1096
1334
|
*/
|
|
1097
1335
|
organizationId?: string;
|
|
1098
1336
|
socials?: Socials1;
|
|
1099
|
-
[k: string]: unknown;
|
|
1100
1337
|
}
|
|
1101
1338
|
/**
|
|
1102
1339
|
* Optional social media handles or URLs for the speaker. Authoring metadata only: nothing draws speaker socials and there is no built-in variable for them (the 'socials' header/footer field draws the primary organization's socials).
|
|
@@ -1119,7 +1356,7 @@ interface Language {
|
|
|
1119
1356
|
*/
|
|
1120
1357
|
name?: string;
|
|
1121
1358
|
/**
|
|
1122
|
-
* A BCP-47 language tag ('en-US', 'ja', 'zh-Hans', 'sr-Latn-ME'), an engine vocabulary. Use 'en-GB' for UK English; 'en-UK' is not a valid region.
|
|
1359
|
+
* A BCP-47 language tag ('en-US', 'ja', 'zh-Hans', 'sr-Latn-ME'), an engine vocabulary. Use 'en-GB' for UK English; 'en-UK' is not a valid region. Numbers the engines generate (metric values, chart labels and ticks, table numbers, list numerals, slide numbers) are drawn in the numbering system of the language, the locale's own (Arabic-Indic digits for 'ar-SA', Latin for 'ar-AE', Persian for 'fa-IR'); the Unicode extension '-u-nu-<system>' chooses another ('ar-SA-u-nu-latn' draws Latin digits). PowerPoint's lang attribute is written without the extension.
|
|
1123
1360
|
*/
|
|
1124
1361
|
bcp47: string;
|
|
1125
1362
|
/**
|
|
@@ -1131,7 +1368,7 @@ interface Language {
|
|
|
1131
1368
|
*/
|
|
1132
1369
|
code?: string;
|
|
1133
1370
|
/**
|
|
1134
|
-
* Base text direction for the language. When omitted, engines derive it from the script: Arabic (Arab), Hebrew (Hebr), Syriac (Syrc), Thaana (Thaa), N'Ko (Nkoo), Adlam (Adlm), Samaritan (Samr), Mandaic (Mand) and Hanifi Rohingya (Rohg) are right-to-left; every other script is left-to-right. The engine language vocabulary (spec/reference/engine-vocabularies.json) states it for the tags it knows.
|
|
1371
|
+
* Base text direction for the language. When omitted, engines derive it from the script: Arabic (Arab), Hebrew (Hebr), Syriac (Syrc), Thaana (Thaa), N'Ko (Nkoo), Adlam (Adlm), Samaritan (Samr), Mandaic (Mand) and Hanifi Rohingya (Rohg) are right-to-left; every other script is left-to-right. The engine language vocabulary (spec/reference/engine-vocabularies.json) states it for the tags it knows. A right-to-left deck mirrors its layout, and one rule says what follows it. Layout words and layout coordinates are logical: 'start' and 'end' in alignments, header and footer zones, promoted regions, image placement, overlay bands, chartPrimary and shape anchors, the order of side-by-side blocks and columns, and an overlay shape's 'x' all run from the edge the deck starts on. Coordinates and sides that name pixels of a picture or parts of a plot are physical in every language: ImageFocus, ImageCallout 'x', a chart's 'legend' and data label 'position', and the 'left' and 'right' of table cell borders and paddings and of a shape's padding.
|
|
1135
1372
|
*/
|
|
1136
1373
|
direction?: ("ltr" | "rtl");
|
|
1137
1374
|
/**
|
|
@@ -1158,7 +1395,6 @@ interface Language {
|
|
|
1158
1395
|
* Free-form labels for filtering and search.
|
|
1159
1396
|
*/
|
|
1160
1397
|
tags?: string[];
|
|
1161
|
-
[k: string]: unknown;
|
|
1162
1398
|
}
|
|
1163
1399
|
/**
|
|
1164
1400
|
* Optional design system covering theme, color scheme, font scheme, dimensions, background, logo, watermark, header, and footer applied to the deck. When omitted, engines use their default design configuration.
|
|
@@ -1197,7 +1433,7 @@ interface Design {
|
|
|
1197
1433
|
*/
|
|
1198
1434
|
variant?: (ColorVariantSlot | ColorVariant);
|
|
1199
1435
|
/**
|
|
1200
|
-
* Which logo covers, section dividers and picture bullets draw. Logos live on the organization (Organization.logo); without this field covers and sections draw the primary organization's full logo and picture bullets its icon. A logo reference overrides that: 'var:organization.beta.logo' draws organization beta's logo, and a reference that names a shape ('var:organization.logo.wordmark') draws that shape everywhere this field applies. false draws no logo. A slide's design.logo overrides the deck's; absence inherits. An override naming an organization without a logo draws nothing (validation warns). Placement (reference engines
|
|
1436
|
+
* Which logo covers, section dividers and picture bullets draw. Logos live on the organization (Organization.logo); without this field covers and sections draw the primary organization's full logo and picture bullets its icon. A logo reference overrides that: 'var:organization.beta.logo' draws organization beta's logo, and a reference that names a shape ('var:organization.logo.wordmark') draws that shape everywhere this field applies. false draws no logo. A slide's design.logo overrides the deck's; absence inherits. An override naming an organization without a logo draws nothing (validation warns). Placement (reference engines): on a cover or section slide (no body payload on a heading-only layout such as title, title-subtitle or section-divider, or no layout) the logo is drawn at the top-left of the free area, inside the slide padding and below any header furniture, in a box 56 reference pixels tall and at most four times as wide; the tag/title/subtitle group then centers in the remaining span. Content slides never get an automatic logo; a header or footer zone places one with image: 'var:organization.logo.icon'. composeSlide returns the cover box as geometry.logo.
|
|
1201
1437
|
*/
|
|
1202
1438
|
logo?: (string | false);
|
|
1203
1439
|
/**
|
|
@@ -1213,25 +1449,25 @@ interface Design {
|
|
|
1213
1449
|
*/
|
|
1214
1450
|
footer?: (false | HeaderFooter);
|
|
1215
1451
|
/**
|
|
1216
|
-
* Default horizontal alignment for the title heading area (the title and the tag) in resolved layouts. Effective value: the slide's design, then the deck's design, then the theme's design.titleAlignment, then the layout record's design.titleAlignment, then the engine default.
|
|
1452
|
+
* Default horizontal alignment for the title heading area (the title and the tag) in resolved layouts. Effective value: the slide's design, then the deck's design, then the theme's design.titleAlignment, then the layout record's design.titleAlignment, then the engine default. Logical: 'start' is the edge a paragraph starts on (the left for left-to-right text, the right for right-to-left text) and 'end' is the opposite edge.
|
|
1217
1453
|
*/
|
|
1218
|
-
titleAlignment?: ("
|
|
1454
|
+
titleAlignment?: ("start" | "center" | "end");
|
|
1219
1455
|
/**
|
|
1220
|
-
* Default horizontal alignment for body/content regions in resolved layouts. Effective value: the slide's design, then the deck's design, then the theme's design.contentAlignment, then the layout record's design.contentAlignment, then the engine default. The tag follows titleAlignment (and so does a subtitle in the title area, as on a cover) unless the slide's own design sets contentAlignment.
|
|
1456
|
+
* Default horizontal alignment for body/content regions in resolved layouts. Effective value: the slide's design, then the deck's design, then the theme's design.contentAlignment, then the layout record's design.contentAlignment, then the engine default. The tag follows titleAlignment (and so does a subtitle in the title area, as on a cover) unless the slide's own design sets contentAlignment. Logical: 'start' is the edge a paragraph starts on (the left for left-to-right text, the right for right-to-left text) and 'end' is the opposite edge.
|
|
1221
1457
|
*/
|
|
1222
|
-
contentAlignment?: ("
|
|
1458
|
+
contentAlignment?: ("start" | "center" | "end");
|
|
1223
1459
|
/**
|
|
1224
1460
|
* Whether body/content regions are rendered inside a visible card or surface. Effective value: the slide's design, then the deck's design, then the theme's design.contentBox, then the layout record's design.contentBox, then the engine default.
|
|
1225
1461
|
*/
|
|
1226
1462
|
contentBox?: boolean;
|
|
1227
1463
|
/**
|
|
1228
|
-
* Axis along which parallel body content is arranged: 'vertical' is a column, 'horizontal' a row. Effective value: the slide's design, then the deck's design, then the theme's design.contentDirection, then the layout record's design.contentDirection. On a slide with a template layout
|
|
1464
|
+
* Axis along which parallel body content is arranged: 'vertical' is a column, 'horizontal' a row. Effective value: the slide's design, then the deck's design, then the theme's design.contentDirection, then the layout record's design.contentDirection. On a slide with a template layout it turns every flowing region of the slide into one row or one column, below the slide's own composition.mode, columns and weights, which arrange its first primary flowing region. On an automatic slide (and a 0.18 record) it sets the root arrangement mode when no composition.mode is set on the slide or on its layout record. Promoted regions (start, top:start, ...) keep their explicit geometry and nested groups keep their own composition.
|
|
1229
1465
|
*/
|
|
1230
1466
|
contentDirection?: ("horizontal" | "vertical");
|
|
1231
1467
|
/**
|
|
1232
|
-
* Where the primary chart sits relative to supporting content. Effective value: slide design, then deck design, then the layout record's design.chartPrimary. It applies to automatic slides only; a template layout says the same with its regions (chart-beside). When the slide has no promoted regions and no composition.mode of its own, and its root nodes mix at least one chart with other content, the first chart becomes a primary track and the other nodes form one synthetic sub-grid: '
|
|
1468
|
+
* Where the primary chart sits relative to supporting content. Effective value: slide design, then deck design, then the layout record's design.chartPrimary. It applies to automatic slides only; a template layout says the same with its regions (chart-beside). When the slide has no promoted regions and no composition.mode of its own, and its root nodes mix at least one chart with other content, the first chart becomes a primary track and the other nodes form one synthetic sub-grid: 'start'/'end' is a two-track row with the chart on that side (logical: 'start' is the left in a left-to-right deck and the right in a right-to-left one) and 'top'/'bottom' a two-track column, weighted 3:2 in favor of the chart; explicit root columns and weights are ignored while it applies. 'none' (the default) keeps the ordinary automatic grid with equal weight. Automatic composition builds direct content groups; template regions remain authoritative.
|
|
1233
1469
|
*/
|
|
1234
|
-
chartPrimary?: ("none" | "top" | "bottom" | "
|
|
1470
|
+
chartPrimary?: ("none" | "top" | "bottom" | "start" | "end");
|
|
1235
1471
|
/**
|
|
1236
1472
|
* 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.
|
|
1237
1473
|
*/
|
|
@@ -1241,14 +1477,13 @@ interface Design {
|
|
|
1241
1477
|
*/
|
|
1242
1478
|
listBullet?: ("character" | "image" | "none");
|
|
1243
1479
|
/**
|
|
1244
|
-
* How list entries are arranged
|
|
1480
|
+
* How list entries are arranged. 'stack' draws each entry's text with its description under it, the entries close together, as before. 'rows' draws ruled rows: a hairline between two first-level entries (the scheme's border neutral, 1 reference pixel), 0.8 em between rows and no bullet (a numbered list keeps its numbers); when every entry has a description and sits at the first level, the labels are bold and, when the widest fits 40% of the list's width on one line, sit in a column beside their descriptions, first baselines aligned, else each description sits under its label. Both engines draw the rules (PowerPoint: native lines). Effective value: the slide's design, then the deck's design, then the theme's design.listStyle, then the layout record's design.listStyle. Without one, a list of two or more first-level entries that each pair a short label (3 words or fewer, no full stop) with a description is drawn as rows when that sets no block of the slide smaller, and every other list is stacked.
|
|
1245
1481
|
*/
|
|
1246
1482
|
listStyle?: ("stack" | "rows");
|
|
1247
1483
|
/**
|
|
1248
|
-
* Draw the slide's template layout mirrored
|
|
1484
|
+
* Draw the slide's template layout mirrored: each row's cells and the column sizes reversed, so a 'beside' layout puts its picture, chart or table at the end. Logical: a right-to-left deck mirrors on top. Binding and reading order do not change. Effective value: the slide's design, then the deck's design, then the layout record's design.mirror, then false. Slides without a template layout ignore it.
|
|
1249
1485
|
*/
|
|
1250
1486
|
mirror?: boolean;
|
|
1251
|
-
[k: string]: unknown;
|
|
1252
1487
|
}
|
|
1253
1488
|
/**
|
|
1254
1489
|
* Color palette used by the design system. Every slot and role is a hex color ('#RGB', '#RRGGBB' or '#RRGGBBAA'); a color-scheme name or a 'var:<id>' reference is not valid here, because those resolve through the scheme. The slot fields (accent1-accent6, dark1, dark2, light1, light2, hyperlink, followedHyperlink) mirror color-scheme.schema.json (https://openpresentation.org/schema/opf-color-scheme/v1) so library records and inline OPF overrides are interchangeable on those fields.
|
|
@@ -1263,6 +1498,10 @@ interface Design {
|
|
|
1263
1498
|
* via the `definition` "ColorScheme".
|
|
1264
1499
|
*/
|
|
1265
1500
|
interface ColorScheme {
|
|
1501
|
+
/**
|
|
1502
|
+
* Name of this palette. PPTX export writes it as the name of the theme's color scheme (a:clrScheme name), which PowerPoint lists under Design, Variants, Colors; without it, an object form with 'id' writes that id, and the string form or an object without 'id' writes 'OpenPresentation'. It names the palette only: it is not a reference and resolves nothing.
|
|
1503
|
+
*/
|
|
1504
|
+
name?: string;
|
|
1266
1505
|
/**
|
|
1267
1506
|
* A content reference: a bare id ('two-column') or 'name:id' ('acme:hero'), where the prefix names a group of 'catalogs'. URLs and 'pkg:' strings are not references; a named catalog group replaces them. See Catalogs for the resolution order.
|
|
1268
1507
|
*/
|
|
@@ -1343,7 +1582,6 @@ interface ColorScheme {
|
|
|
1343
1582
|
* Abstract role: secondary or muted text color used for captions and supporting copy (hex). Overrides the default of dark2 (light2 on a dark slide).
|
|
1344
1583
|
*/
|
|
1345
1584
|
textSecondary?: string;
|
|
1346
|
-
[k: string]: unknown;
|
|
1347
1585
|
}
|
|
1348
1586
|
/**
|
|
1349
1587
|
* Typography selections used by the design system. The pair fields (major, minor) and refinement fields (type, app, languageFamily) mirror font-scheme.schema.json (https://openpresentation.org/schema/opf-font-scheme/v1) so library records and inline OPF overrides are interchangeable on those fields.
|
|
@@ -1424,7 +1662,6 @@ interface FontScheme {
|
|
|
1424
1662
|
* Abstract role: monospaced font family name used for code blocks and for inline code runs (TextRun.code). No direct OOXML slot. Resolution: this override, then the resolved font-scheme record's 'code' (for example Consolas for the consolas scheme), then the engine fallback Roboto Mono. Heading and body families are never used as the code fallback.
|
|
1425
1663
|
*/
|
|
1426
1664
|
code?: string;
|
|
1427
|
-
[k: string]: unknown;
|
|
1428
1665
|
}
|
|
1429
1666
|
/**
|
|
1430
1667
|
* Slide dimensions: a preset, or custom inches that override it. PowerPoint's Letter Paper (10 x 7.5 in), A4 Paper (10.8333 x 7.5 in) and On-screen Show (16:9) (10 x 5.625 in) are not OPF presets; use widthInches and heightInches. docs/slide-sizes.md compares every preset.
|
|
@@ -1442,7 +1679,6 @@ interface Dimensions {
|
|
|
1442
1679
|
* Custom slide height in inches; overrides the preset height when provided.
|
|
1443
1680
|
*/
|
|
1444
1681
|
heightInches?: number;
|
|
1445
|
-
[k: string]: unknown;
|
|
1446
1682
|
}
|
|
1447
1683
|
/**
|
|
1448
1684
|
* Theme-controlled PowerPoint slide background. The slot is resolved through the active color scheme and remains theme-aware.
|
|
@@ -1456,7 +1692,10 @@ interface ThemeBackground {
|
|
|
1456
1692
|
*/
|
|
1457
1693
|
type: "theme";
|
|
1458
1694
|
slot: ThemeBackgroundSlot;
|
|
1459
|
-
|
|
1695
|
+
/**
|
|
1696
|
+
* Background opacity from 0 (fully transparent) to 1 (fully opaque). Default 1; the selected theme slot remains unchanged.
|
|
1697
|
+
*/
|
|
1698
|
+
opacity?: number;
|
|
1460
1699
|
}
|
|
1461
1700
|
/**
|
|
1462
1701
|
* Fixed solid slide background fill.
|
|
@@ -1472,12 +1711,11 @@ interface SolidBackground {
|
|
|
1472
1711
|
/**
|
|
1473
1712
|
* Fixed solid fill color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef, resolved against the effective color scheme and the deck variables). Use { type: 'theme', slot: ... } for PowerPoint's four theme-controlled background choices.
|
|
1474
1713
|
*/
|
|
1475
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1714
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1476
1715
|
/**
|
|
1477
1716
|
* Background opacity from 0 (fully transparent) to 1 (fully opaque).
|
|
1478
1717
|
*/
|
|
1479
1718
|
opacity?: number;
|
|
1480
|
-
[k: string]: unknown;
|
|
1481
1719
|
}
|
|
1482
1720
|
/**
|
|
1483
1721
|
* Fixed gradient slide background fill.
|
|
@@ -1495,7 +1733,7 @@ interface GradientBackground {
|
|
|
1495
1733
|
*/
|
|
1496
1734
|
type: "gradient";
|
|
1497
1735
|
/**
|
|
1498
|
-
* Gradient fill definition.
|
|
1736
|
+
* Gradient fill definition: a linear gradient along 'angle' (default 0, left to right). A shape fill's Gradient also takes radial and path types; a background does not.
|
|
1499
1737
|
*/
|
|
1500
1738
|
gradient: {
|
|
1501
1739
|
/**
|
|
@@ -1509,48 +1747,43 @@ interface GradientBackground {
|
|
|
1509
1747
|
*
|
|
1510
1748
|
* Items: Color stop along the gradient.
|
|
1511
1749
|
*/
|
|
1512
|
-
stops
|
|
1750
|
+
stops: [
|
|
1513
1751
|
{
|
|
1514
1752
|
/**
|
|
1515
1753
|
* Stop color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1516
1754
|
*/
|
|
1517
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1755
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1518
1756
|
/**
|
|
1519
1757
|
* Stop position along the gradient, from 0 (start) to 1 (end).
|
|
1520
1758
|
*/
|
|
1521
1759
|
position: number;
|
|
1522
|
-
[k: string]: unknown;
|
|
1523
1760
|
},
|
|
1524
1761
|
{
|
|
1525
1762
|
/**
|
|
1526
1763
|
* Stop color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1527
1764
|
*/
|
|
1528
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1765
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1529
1766
|
/**
|
|
1530
1767
|
* Stop position along the gradient, from 0 (start) to 1 (end).
|
|
1531
1768
|
*/
|
|
1532
1769
|
position: number;
|
|
1533
|
-
[k: string]: unknown;
|
|
1534
1770
|
},
|
|
1535
1771
|
...({
|
|
1536
1772
|
/**
|
|
1537
1773
|
* Stop color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1538
1774
|
*/
|
|
1539
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1775
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1540
1776
|
/**
|
|
1541
1777
|
* Stop position along the gradient, from 0 (start) to 1 (end).
|
|
1542
1778
|
*/
|
|
1543
1779
|
position: number;
|
|
1544
|
-
[k: string]: unknown;
|
|
1545
1780
|
})[]
|
|
1546
1781
|
];
|
|
1547
|
-
[k: string]: unknown;
|
|
1548
1782
|
};
|
|
1549
1783
|
/**
|
|
1550
1784
|
* Background opacity from 0 (fully transparent) to 1 (fully opaque).
|
|
1551
1785
|
*/
|
|
1552
1786
|
opacity?: number;
|
|
1553
|
-
[k: string]: unknown;
|
|
1554
1787
|
}
|
|
1555
1788
|
/**
|
|
1556
1789
|
* Picture background: the image fills the whole canvas behind everything and never moves content (to push content aside, use an image block with placement). The string shorthand 'asset:x' (or any image source) is { type: 'image', src: 'asset:x' }, a cover image. Paint order: the colour scheme's default slide background, the picture, then the overlay, then furniture and content.
|
|
@@ -1560,7 +1793,7 @@ interface GradientBackground {
|
|
|
1560
1793
|
*/
|
|
1561
1794
|
interface ImageBackground {
|
|
1562
1795
|
/**
|
|
1563
|
-
* Whether the background is dark or light, which picks the color map (dark1 or light1) so text, lines and neutrals read on it. Without a tone a picture or
|
|
1796
|
+
* Whether the background is dark or light, which picks the color map (dark1 or light1) so text, lines and neutrals read on it. Without a tone a picture takes the tone its recolor, opacity and overlay imply (a duotone in dark colors or a dark overlay makes it dark), else the deck's variant, else counts as light.
|
|
1564
1797
|
*/
|
|
1565
1798
|
tone?: ("dark" | "light");
|
|
1566
1799
|
/**
|
|
@@ -1591,16 +1824,20 @@ interface ImageBackground {
|
|
|
1591
1824
|
/**
|
|
1592
1825
|
* Color at luminance 0.
|
|
1593
1826
|
*/
|
|
1594
|
-
dark: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1827
|
+
dark: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1595
1828
|
/**
|
|
1596
1829
|
* Color at luminance 1.
|
|
1597
1830
|
*/
|
|
1598
|
-
light: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1831
|
+
light: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1599
1832
|
});
|
|
1600
1833
|
/**
|
|
1601
1834
|
* 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.
|
|
1602
1835
|
*/
|
|
1603
1836
|
overlay?: (Overlay | false);
|
|
1837
|
+
/**
|
|
1838
|
+
* 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).
|
|
1839
|
+
*/
|
|
1840
|
+
textPlacement?: ("top-start" | "top-center" | "middle-start" | "middle-center" | "bottom-start" | "bottom-center" | "panel");
|
|
1604
1841
|
}
|
|
1605
1842
|
/**
|
|
1606
1843
|
* 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.
|
|
@@ -1625,15 +1862,15 @@ interface Overlay {
|
|
|
1625
1862
|
/**
|
|
1626
1863
|
* Overlay fill color: a hex color (eight-digit hex keeps its alpha), a color-scheme slot or role name, or a 'var:<id>' variable reference.
|
|
1627
1864
|
*/
|
|
1628
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1865
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1629
1866
|
/**
|
|
1630
1867
|
* Overlay fill opacity.
|
|
1631
1868
|
*/
|
|
1632
1869
|
opacity: number;
|
|
1633
1870
|
/**
|
|
1634
|
-
* Cover only a band along this edge of the frame, for example a caption strip. Backgrounds and rectangle image frames only; on another shape the overlay is not drawn and composition reports unsupported-image-treatment. Omit to cover the whole frame.
|
|
1871
|
+
* Cover only a band along this edge of the frame, for example a caption strip. Backgrounds and rectangle image frames only; on another shape the overlay is not drawn and composition reports unsupported-image-treatment. Omit to cover the whole frame. 'start' and 'end' follow the deck's direction: the left and right sides in a left-to-right deck, the right and left sides in a right-to-left one.
|
|
1635
1872
|
*/
|
|
1636
|
-
edge?: ("top" | "bottom" | "
|
|
1873
|
+
edge?: ("top" | "bottom" | "start" | "end");
|
|
1637
1874
|
/**
|
|
1638
1875
|
* Band share of the frame for an edge overlay. Default 0.3. Ignored without edge.
|
|
1639
1876
|
*/
|
|
@@ -1661,18 +1898,16 @@ interface PatternBackground {
|
|
|
1661
1898
|
/**
|
|
1662
1899
|
* Foreground color for the pattern: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1663
1900
|
*/
|
|
1664
|
-
foregroundColor?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1901
|
+
foregroundColor?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1665
1902
|
/**
|
|
1666
1903
|
* Background color behind the pattern: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1667
1904
|
*/
|
|
1668
|
-
backgroundColor?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1669
|
-
[k: string]: unknown;
|
|
1905
|
+
backgroundColor?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1670
1906
|
};
|
|
1671
1907
|
/**
|
|
1672
1908
|
* Background opacity from 0 (fully transparent) to 1 (fully opaque).
|
|
1673
1909
|
*/
|
|
1674
1910
|
opacity?: number;
|
|
1675
|
-
[k: string]: unknown;
|
|
1676
1911
|
}
|
|
1677
1912
|
/**
|
|
1678
1913
|
* 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.
|
|
@@ -1694,19 +1929,18 @@ interface ColorVariant {
|
|
|
1694
1929
|
accents?: [("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6"), ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6"), ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6"), ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6"), ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6"), ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6")];
|
|
1695
1930
|
}
|
|
1696
1931
|
/**
|
|
1697
|
-
* Repeated header or footer content split into
|
|
1932
|
+
* Repeated header or footer content split into start, center, and end zones. The zones follow the deck's direction: 'start' is at the left of a left-to-right deck and at the right of a right-to-left one. Header/footer content is slide furniture, separate from the main slide content payloads.
|
|
1698
1933
|
*
|
|
1699
1934
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1700
1935
|
* via the `definition` "HeaderFooter".
|
|
1701
1936
|
*/
|
|
1702
1937
|
interface HeaderFooter {
|
|
1703
|
-
|
|
1938
|
+
start?: HeaderFooterItem;
|
|
1704
1939
|
center?: HeaderFooterItem1;
|
|
1705
|
-
|
|
1706
|
-
[k: string]: unknown;
|
|
1940
|
+
end?: HeaderFooterItem2;
|
|
1707
1941
|
}
|
|
1708
1942
|
/**
|
|
1709
|
-
*
|
|
1943
|
+
* Content at the start edge, aligned to it.
|
|
1710
1944
|
*/
|
|
1711
1945
|
interface HeaderFooterItem {
|
|
1712
1946
|
/**
|
|
@@ -1798,7 +2032,7 @@ interface HeaderFooterItem1 {
|
|
|
1798
2032
|
socials?: boolean;
|
|
1799
2033
|
}
|
|
1800
2034
|
/**
|
|
1801
|
-
*
|
|
2035
|
+
* Content at the end edge, aligned to it.
|
|
1802
2036
|
*/
|
|
1803
2037
|
interface HeaderFooterItem2 {
|
|
1804
2038
|
/**
|
|
@@ -2124,7 +2358,7 @@ interface ListVariable {
|
|
|
2124
2358
|
example?: string[];
|
|
2125
2359
|
}
|
|
2126
2360
|
/**
|
|
2127
|
-
* A single slide. Content can be authored as a full-slide root payload, or inside promoted named region keys such as '
|
|
2361
|
+
* A single slide. Content can be authored as a full-slide root payload, or inside promoted named region keys such as 'start', 'center+end', and 'top:start'. The columns of that grid are logical: 'start' is the left column in a left-to-right deck and the right column in a right-to-left one.
|
|
2128
2362
|
*
|
|
2129
2363
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2130
2364
|
* via the `definition` "Slide".
|
|
@@ -2134,6 +2368,10 @@ interface Slide {
|
|
|
2134
2368
|
* Optional stable identifier for the slide within the document. Use when another system needs to reference a slide across edits, comments, generation state, exports, or narrative tooling. Slide order is defined by the slides array, so simple decks may omit this.
|
|
2135
2369
|
*/
|
|
2136
2370
|
id?: string;
|
|
2371
|
+
/**
|
|
2372
|
+
* Language of this slide, overriding the presentation language. Accepts the same BCP-47 tag or inline Language object as the presentation. Omission inherits the deck language. Direction, script fonts, quotation marks, line breaking and number formatting follow the effective slide language; TextRun.language still overrides an individual run.
|
|
2373
|
+
*/
|
|
2374
|
+
language?: (LanguageTag | Language);
|
|
2137
2375
|
/**
|
|
2138
2376
|
* Optional full-slide content kind. When omitted, engines infer the kind from root payload fields.
|
|
2139
2377
|
*/
|
|
@@ -2155,7 +2393,7 @@ interface Slide {
|
|
|
2155
2393
|
*/
|
|
2156
2394
|
subtitle?: (string | TextRun[]);
|
|
2157
2395
|
/**
|
|
2158
|
-
* 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
|
|
2396
|
+
* Small slide-level label or badge. A v2 layout renders this before the title in its title heading group; tag is not a separate layout area. Engines draw it as an eyebrow: 22 reference pixels, bold, in the primary color (the text color where that is under 4.5:1 on the background) and, where its script has case, in capitals with 0.08 em of letter spacing (PowerPoint: cap=all and spc on the authored text). Use a string for plain text or TextRun[] for inline rich text (a colored word, bold, a link, a citation or footnote marker); the heading keeps its size and fitting rules either way, and run colors resolve like body text.
|
|
2159
2397
|
*/
|
|
2160
2398
|
tag?: (string | TextRun[]);
|
|
2161
2399
|
/**
|
|
@@ -2175,15 +2413,15 @@ interface Slide {
|
|
|
2175
2413
|
*/
|
|
2176
2414
|
numbering?: (NumberingStyle | Numbering | [(NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)]);
|
|
2177
2415
|
/**
|
|
2178
|
-
*
|
|
2416
|
+
* Shorthand for one image block: the picture composes as body content, like { type: 'image', image: value }, with the effective design.imageFit. A v2 layout binds it to a compatible body region; a region's bleed setting may extend its outer edges to the slide edge. For fit, focus, treatments or an explicit placement use an image block in blocks; for a full-slide picture behind the content use design.background. Presence of this field infers type 'image'.
|
|
2179
2417
|
*/
|
|
2180
2418
|
image?: (string | {
|
|
2181
2419
|
/**
|
|
2182
|
-
*
|
|
2420
|
+
* Image source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
2183
2421
|
*/
|
|
2184
2422
|
src: string;
|
|
2185
2423
|
/**
|
|
2186
|
-
* Alternative text for
|
|
2424
|
+
* Alternative text for the image.
|
|
2187
2425
|
*/
|
|
2188
2426
|
alt?: string;
|
|
2189
2427
|
/**
|
|
@@ -2198,6 +2436,10 @@ interface Slide {
|
|
|
2198
2436
|
* Optional MIME media type when it cannot be inferred from src.
|
|
2199
2437
|
*/
|
|
2200
2438
|
mediaType?: string;
|
|
2439
|
+
/**
|
|
2440
|
+
* Editable text panels over this image. Coordinates are fractions of its visible frame, measured from the physical top-left even in RTL. Panels are drawn above masks and overlays; overflowing text is reported, never clipped or shrunk below the body role.
|
|
2441
|
+
*/
|
|
2442
|
+
callouts?: ImageCallout[];
|
|
2201
2443
|
});
|
|
2202
2444
|
/**
|
|
2203
2445
|
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
@@ -2258,7 +2500,7 @@ interface Slide {
|
|
|
2258
2500
|
events: [TimelineEvent, ...(TimelineEvent)[]];
|
|
2259
2501
|
});
|
|
2260
2502
|
/**
|
|
2261
|
-
* 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'.
|
|
2503
|
+
* Full-slide diagram payload: Mermaid, Graphviz DOT or PlantUML source drawn in the deck's fonts and colors. A string is shorthand for { "source": value }; object form carries the source syntax and a text alternative. Presence of this field infers type 'diagram'.
|
|
2262
2504
|
*/
|
|
2263
2505
|
diagram?: (string | Diagram);
|
|
2264
2506
|
/**
|
|
@@ -2274,66 +2516,70 @@ interface Slide {
|
|
|
2274
2516
|
*/
|
|
2275
2517
|
position?: ("below" | "above");
|
|
2276
2518
|
/**
|
|
2277
|
-
* Horizontal alignment of the caption text within the block. Defaults to left.
|
|
2519
|
+
* Horizontal alignment of the caption text within the block. Defaults to start. Logical: 'start' is the edge a paragraph starts on (the left for left-to-right text, the right for right-to-left text) and 'end' is the opposite edge.
|
|
2278
2520
|
*/
|
|
2279
|
-
align?: ("
|
|
2521
|
+
align?: ("start" | "center" | "end");
|
|
2280
2522
|
});
|
|
2281
2523
|
/**
|
|
2282
2524
|
* 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.
|
|
2283
2525
|
*/
|
|
2284
2526
|
blocks?: ContentPayload[];
|
|
2527
|
+
/**
|
|
2528
|
+
* 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.
|
|
2529
|
+
*/
|
|
2530
|
+
shapes?: OverlayShape[];
|
|
2285
2531
|
/**
|
|
2286
2532
|
* Slide-level design applied on top of the deck-wide design.
|
|
2287
2533
|
*/
|
|
2288
2534
|
design?: Design1;
|
|
2289
|
-
|
|
2535
|
+
start?: ContentPayload;
|
|
2290
2536
|
center?: ContentPayload;
|
|
2291
|
-
|
|
2292
|
-
"
|
|
2293
|
-
"center+
|
|
2294
|
-
"
|
|
2537
|
+
end?: ContentPayload;
|
|
2538
|
+
"start+center"?: ContentPayload;
|
|
2539
|
+
"center+end"?: ContentPayload;
|
|
2540
|
+
"start+center+end"?: ContentPayload;
|
|
2295
2541
|
top?: ContentPayload;
|
|
2296
2542
|
middle?: ContentPayload;
|
|
2297
2543
|
bottom?: ContentPayload;
|
|
2298
2544
|
"top+middle"?: ContentPayload;
|
|
2299
2545
|
"middle+bottom"?: ContentPayload;
|
|
2300
2546
|
"top+middle+bottom"?: ContentPayload;
|
|
2301
|
-
"top:
|
|
2547
|
+
"top:start"?: ContentPayload;
|
|
2302
2548
|
"top:center"?: ContentPayload;
|
|
2303
|
-
"top:
|
|
2304
|
-
"top:
|
|
2305
|
-
"top:center+
|
|
2306
|
-
"top:
|
|
2307
|
-
"middle:
|
|
2549
|
+
"top:end"?: ContentPayload;
|
|
2550
|
+
"top:start+center"?: ContentPayload;
|
|
2551
|
+
"top:center+end"?: ContentPayload;
|
|
2552
|
+
"top:start+center+end"?: ContentPayload;
|
|
2553
|
+
"middle:start"?: ContentPayload;
|
|
2308
2554
|
"middle:center"?: ContentPayload;
|
|
2309
|
-
"middle:
|
|
2310
|
-
"middle:
|
|
2311
|
-
"middle:center+
|
|
2312
|
-
"middle:
|
|
2313
|
-
"bottom:
|
|
2555
|
+
"middle:end"?: ContentPayload;
|
|
2556
|
+
"middle:start+center"?: ContentPayload;
|
|
2557
|
+
"middle:center+end"?: ContentPayload;
|
|
2558
|
+
"middle:start+center+end"?: ContentPayload;
|
|
2559
|
+
"bottom:start"?: ContentPayload;
|
|
2314
2560
|
"bottom:center"?: ContentPayload;
|
|
2315
|
-
"bottom:
|
|
2316
|
-
"bottom:
|
|
2317
|
-
"bottom:center+
|
|
2318
|
-
"bottom:
|
|
2319
|
-
"top+middle:
|
|
2561
|
+
"bottom:end"?: ContentPayload;
|
|
2562
|
+
"bottom:start+center"?: ContentPayload;
|
|
2563
|
+
"bottom:center+end"?: ContentPayload;
|
|
2564
|
+
"bottom:start+center+end"?: ContentPayload;
|
|
2565
|
+
"top+middle:start"?: ContentPayload;
|
|
2320
2566
|
"top+middle:center"?: ContentPayload;
|
|
2321
|
-
"top+middle:
|
|
2322
|
-
"top+middle:
|
|
2323
|
-
"top+middle:center+
|
|
2324
|
-
"top+middle:
|
|
2325
|
-
"middle+bottom:
|
|
2567
|
+
"top+middle:end"?: ContentPayload;
|
|
2568
|
+
"top+middle:start+center"?: ContentPayload;
|
|
2569
|
+
"top+middle:center+end"?: ContentPayload;
|
|
2570
|
+
"top+middle:start+center+end"?: ContentPayload;
|
|
2571
|
+
"middle+bottom:start"?: ContentPayload;
|
|
2326
2572
|
"middle+bottom:center"?: ContentPayload;
|
|
2327
|
-
"middle+bottom:
|
|
2328
|
-
"middle+bottom:
|
|
2329
|
-
"middle+bottom:center+
|
|
2330
|
-
"middle+bottom:
|
|
2331
|
-
"top+middle+bottom:
|
|
2573
|
+
"middle+bottom:end"?: ContentPayload;
|
|
2574
|
+
"middle+bottom:start+center"?: ContentPayload;
|
|
2575
|
+
"middle+bottom:center+end"?: ContentPayload;
|
|
2576
|
+
"middle+bottom:start+center+end"?: ContentPayload;
|
|
2577
|
+
"top+middle+bottom:start"?: ContentPayload;
|
|
2332
2578
|
"top+middle+bottom:center"?: ContentPayload;
|
|
2333
|
-
"top+middle+bottom:
|
|
2334
|
-
"top+middle+bottom:
|
|
2335
|
-
"top+middle+bottom:center+
|
|
2336
|
-
"top+middle+bottom:
|
|
2579
|
+
"top+middle+bottom:end"?: ContentPayload;
|
|
2580
|
+
"top+middle+bottom:start+center"?: ContentPayload;
|
|
2581
|
+
"top+middle+bottom:center+end"?: ContentPayload;
|
|
2582
|
+
"top+middle+bottom:start+center+end"?: ContentPayload;
|
|
2337
2583
|
/**
|
|
2338
2584
|
* Speaker notes shown in presenter view.
|
|
2339
2585
|
*/
|
|
@@ -2374,12 +2620,38 @@ interface Numbering {
|
|
|
2374
2620
|
*/
|
|
2375
2621
|
suffix?: ("period" | "paren" | "paren-both");
|
|
2376
2622
|
}
|
|
2623
|
+
/**
|
|
2624
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2625
|
+
* via the `definition` "ImageCallout".
|
|
2626
|
+
*/
|
|
2627
|
+
interface ImageCallout {
|
|
2628
|
+
/**
|
|
2629
|
+
* Plain editable text. Native edits preserve current words; an empty string is retained.
|
|
2630
|
+
*/
|
|
2631
|
+
text: string;
|
|
2632
|
+
/**
|
|
2633
|
+
* Signed fraction of the visible image frame width from its physical left edge. A callout points at pixels, and a picture never mirrors, so this coordinate is physical in every language. Negative values or values greater than 1 position the panel outside the image; its text is not clipped to the image. The slide crops what lies outside it.
|
|
2634
|
+
*/
|
|
2635
|
+
x: number;
|
|
2636
|
+
/**
|
|
2637
|
+
* Signed fraction of the visible image frame height from its physical top edge. Negative values or values greater than 1 position the panel outside the image; its text is not clipped to the image. The slide crops what lies outside it.
|
|
2638
|
+
*/
|
|
2639
|
+
y: number;
|
|
2640
|
+
/**
|
|
2641
|
+
* Positive fraction of the visible image frame width, at most 1. The signed x origin controls placement outside the frame.
|
|
2642
|
+
*/
|
|
2643
|
+
width: number;
|
|
2644
|
+
/**
|
|
2645
|
+
* Positive fraction of the visible image frame height, at most 1. The signed y origin controls placement outside the frame.
|
|
2646
|
+
*/
|
|
2647
|
+
height: number;
|
|
2648
|
+
}
|
|
2377
2649
|
/**
|
|
2378
2650
|
* Full-slide chart payload. Presence of this field infers type 'chart'.
|
|
2379
2651
|
*/
|
|
2380
2652
|
interface Chart {
|
|
2381
2653
|
/**
|
|
2382
|
-
* Chart type, an engine vocabulary validated directly (no catalog lookup): the chart types
|
|
2654
|
+
* 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.
|
|
2383
2655
|
*/
|
|
2384
2656
|
type: ("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");
|
|
2385
2657
|
/**
|
|
@@ -2394,18 +2666,22 @@ interface Chart {
|
|
|
2394
2666
|
*/
|
|
2395
2667
|
line?: [string, ...(string)[]];
|
|
2396
2668
|
/**
|
|
2397
|
-
* Combo charts only: line series, by column name, plotted against a secondary value axis at the
|
|
2669
|
+
* Combo charts only: line series, by column name, plotted against a secondary value axis at the end of the plot (the right; the left in a right-to-left deck, where the category axis runs from the right). That axis has its own scale, and its tick labels use the number format of the first secondary series' column (DataColumn.format), for example '0%' for a margin. Absent: every series shares the primary value axis at the start of the plot (the left; the right in a right-to-left deck). A name that is not a line series (see 'line') stays on the primary axis with a 'chart-mapping-adapted' warning; an unknown column is a 'chart-mapping-unknown-column' error. On any other chart type it is ignored with a 'chart-option-adapted' warning.
|
|
2398
2670
|
*
|
|
2399
2671
|
* @minItems 1
|
|
2400
2672
|
*/
|
|
2401
2673
|
secondaryAxis?: [string, ...(string)[]];
|
|
2674
|
+
/**
|
|
2675
|
+
* Explicit numeric references on the chart's value axis, supported on the chart types with one value axis for every series: column, bar, line, line-with-markers, area and combo. A non-empty list on any other type (the stacked and 100% stacked types among them) is the error opf/chart-reference-unsupported-type, located at referenceLines, so a reference is never dropped silently. Absent or [] means none. Authored order, duplicates and values equal to data are preserved. Vertical charts with two or more categories span first-to-last category centers; bars/single-category charts span the full plot. Titles/subtitles never create references or period bands.
|
|
2676
|
+
*/
|
|
2677
|
+
referenceLines?: ChartReferenceLine[];
|
|
2402
2678
|
axisTitles?: ChartAxisTitles;
|
|
2403
2679
|
/**
|
|
2404
|
-
* Optional legend position. 'none' hides the legend. Absent
|
|
2680
|
+
* Optional legend position. 'none' hides the legend. Absent leaves it to the engines: a line chart of two to four series names its series at the line ends and a pie or one-series doughnut names its slices, with no legend; a column, bar, area or combo chart of two to four series shows its legend in the header row above the plot; other multi-series charts and pie and doughnut charts take a legend at the physical right; a single-series chart takes none. A named position shows the legend there even for a single-series chart; 'left' and 'right' are physical sides in every language. Of the Office 2016 constructs only box-and-whisker takes a legend; histogram, pareto, waterfall, funnel, treemap and world drop the option with a 'chart-option-adapted' diagnostic.
|
|
2405
2681
|
*/
|
|
2406
2682
|
legend?: ("none" | "top" | "bottom" | "left" | "right");
|
|
2407
2683
|
/**
|
|
2408
|
-
* Optional data labels. true shows value labels at each type's default position
|
|
2684
|
+
* Optional data labels. true shows value labels at each type's default position and false shows none. Absent leaves it to the engines: no labels, except on a small chart, which labels its values in place of its value axis, the direct labels of line, pie and doughnut charts, and the labels the funnel and treemap constructs draw by default. Use the object form for the label content, position and separator.
|
|
2409
2685
|
*/
|
|
2410
2686
|
dataLabels?: (boolean | ChartDataLabels);
|
|
2411
2687
|
/**
|
|
@@ -2522,7 +2798,48 @@ interface ChartMapping {
|
|
|
2522
2798
|
series?: [string, ...(string)[]];
|
|
2523
2799
|
}
|
|
2524
2800
|
/**
|
|
2525
|
-
*
|
|
2801
|
+
* One explicit reference on the chart's numeric value axis. Labels and titles never select its value, units or placement. A reference at a category or a band between two values is not expressible yet; 'axis' and a separate key are reserved for them.
|
|
2802
|
+
*
|
|
2803
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2804
|
+
* via the `definition` "ChartReferenceLine".
|
|
2805
|
+
*/
|
|
2806
|
+
interface ChartReferenceLine {
|
|
2807
|
+
/**
|
|
2808
|
+
* Finite value in the associated data-axis units. With format 0%, 0.25 means 25%; 25 means 2500%. Every reference expands automatic bounds when needed.
|
|
2809
|
+
*/
|
|
2810
|
+
value: number;
|
|
2811
|
+
/**
|
|
2812
|
+
* Secondary requires a combo chart with an actual secondary line series.
|
|
2813
|
+
*/
|
|
2814
|
+
axis?: ("value" | "secondary");
|
|
2815
|
+
/**
|
|
2816
|
+
* Optional nonblank plain text, shown verbatim. Omission draws no label.
|
|
2817
|
+
*/
|
|
2818
|
+
label?: string;
|
|
2819
|
+
/**
|
|
2820
|
+
* Logical endpoint. Horizontal start/end mirror in RTL; on bars they mean top/bottom. Requires label.
|
|
2821
|
+
*/
|
|
2822
|
+
labelPosition?: ("start" | "end");
|
|
2823
|
+
/**
|
|
2824
|
+
* The line's color, width and dash, or 'none' to draw only the label. Defaults: the chart-text neutral, 4/3 reference pixels (1 point) and 'dash'. The value expands the axis bounds whether or not the line is drawn.
|
|
2825
|
+
*/
|
|
2826
|
+
stroke?: ("none" | {
|
|
2827
|
+
/**
|
|
2828
|
+
* Line color: any ColorRef (eight-digit hex keeps its alpha).
|
|
2829
|
+
*/
|
|
2830
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
2831
|
+
/**
|
|
2832
|
+
* Line width in reference pixels at a 720-pixel short edge. 0 draws no line, the same as 'none'.
|
|
2833
|
+
*/
|
|
2834
|
+
width?: number;
|
|
2835
|
+
/**
|
|
2836
|
+
* Dash pattern, by the names Stroke.dash uses.
|
|
2837
|
+
*/
|
|
2838
|
+
dash?: ("solid" | "dash" | "dot");
|
|
2839
|
+
});
|
|
2840
|
+
}
|
|
2841
|
+
/**
|
|
2842
|
+
* Optional axis titles. Absent keeps today's untitled axes. Supported on the chart types that have a category/value (or X/Y) axis pair (column, bar, line, area, scatter, and the histogram, pareto, waterfall and box-and-whisker constructs; the funnel construct takes a category title only; a combo chart also takes 'secondary' when it plots a series on the secondary axis); a title on a type without that axis (pie, doughnut, radar, treemap, world) is dropped with a 'chart-option-adapted' diagnostic by renderers and exporters.
|
|
2526
2843
|
*/
|
|
2527
2844
|
interface ChartAxisTitles {
|
|
2528
2845
|
/**
|
|
@@ -2530,11 +2847,11 @@ interface ChartAxisTitles {
|
|
|
2530
2847
|
*/
|
|
2531
2848
|
category?: string;
|
|
2532
2849
|
/**
|
|
2533
|
-
* Title of the value (Y) axis. On a combo chart, the primary (
|
|
2850
|
+
* Title of the value (Y) axis. On a combo chart, the primary value axis (at the start of the plot).
|
|
2534
2851
|
*/
|
|
2535
2852
|
value?: string;
|
|
2536
2853
|
/**
|
|
2537
|
-
* Combo charts only: title of the secondary value axis at the
|
|
2854
|
+
* Combo charts only: title of the secondary value axis at the end of the plot (the right; the left in a right-to-left deck), drawn rotated like the primary value axis title. Dropped with a 'chart-option-adapted' diagnostic on any other chart type and on a combo chart without 'secondaryAxis'.
|
|
2538
2855
|
*/
|
|
2539
2856
|
secondary?: string;
|
|
2540
2857
|
}
|
|
@@ -2552,7 +2869,7 @@ interface ChartDataLabels {
|
|
|
2552
2869
|
*/
|
|
2553
2870
|
content?: [("value" | "percent" | "category"), ...(("value" | "percent" | "category"))[]];
|
|
2554
2871
|
/**
|
|
2555
|
-
* Where a label sits relative to its mark. 'auto' (the default) is the type's default: outside-end for clustered columns and bars, pie slices and the histogram, pareto and waterfall constructs; center for stacked columns and bars; above for line and scatter points. Clustered columns and bars and the histogram, pareto and waterfall constructs take center, inside-end, inside-base and outside-end; stacked columns and bars take center, inside-end and inside-base; pie takes center, inside-end and outside-end; line and scatter points take above, below, left, right and center. Area, doughnut and radar charts and the funnel and treemap constructs take only 'auto' (the box-and-whisker and
|
|
2872
|
+
* Where a label sits relative to its mark. 'auto' (the default) is the type's default: outside-end for clustered columns and bars, pie slices and the histogram, pareto and waterfall constructs; center for stacked columns and bars; above for line and scatter points. Clustered columns and bars and the histogram, pareto and waterfall constructs take center, inside-end, inside-base and outside-end; stacked columns and bars take center, inside-end and inside-base; pie takes center, inside-end and outside-end; line and scatter points take above, below, left, right and center. Area, doughnut and radar charts and the funnel and treemap constructs take only 'auto' (the box-and-whisker and world constructs have no data labels). A combo chart places the labels of its column series like clustered columns and those of its line series like line points; a position only one part takes applies to that part, and the other part keeps its default (outside-end, above). An unsupported position falls back to 'auto' with a 'chart-option-adapted' diagnostic.
|
|
2556
2873
|
*/
|
|
2557
2874
|
position?: ("auto" | "center" | "inside-end" | "inside-base" | "outside-end" | "above" | "below" | "left" | "right");
|
|
2558
2875
|
/**
|
|
@@ -2561,21 +2878,17 @@ interface ChartDataLabels {
|
|
|
2561
2878
|
separator?: string;
|
|
2562
2879
|
}
|
|
2563
2880
|
/**
|
|
2564
|
-
* Optional emphasis: the series and/or categories that carry the message. The engines draw the highlighted marks in the deck's primary (accent) color and every other mark in a muted neutral derived from the theme (a light grey on a light chart panel, a dim grey on a dark one); there is no color field. A mark is highlighted when its series OR its category is named. Absent keeps today's colors exactly. Supported on column, bar and line charts (series and categories; on a line a category highlight marks that category's points), pie and doughnut charts (categories, one per slice), and area, scatter and radar charts (series); the histogram, pareto, waterfall, funnel, treemap, box-and-whisker,
|
|
2881
|
+
* Optional emphasis: the series and/or categories that carry the message. The engines draw the highlighted marks in the deck's primary (accent) color and every other mark in a muted neutral derived from the theme (a light grey on a light chart panel, a dim grey on a dark one); there is no color field. A mark is highlighted when its series OR its category is named. Absent keeps today's colors exactly. Supported on column, bar and line charts (series and categories; on a line a category highlight marks that category's points), pie and doughnut charts (categories, one per slice), and area, scatter and radar charts (series); the histogram, pareto, waterfall, funnel, treemap, box-and-whisker, world and combo constructs drop the option with a 'chart-option-adapted' diagnostic, as does a part the type cannot highlight. A name that matches no column or row label is a 'chart-highlight-unknown-name' error.
|
|
2565
2882
|
*/
|
|
2566
2883
|
interface ChartHighlight {
|
|
2567
2884
|
/**
|
|
2568
2885
|
* Series (value columns) to highlight: all marks of each named series. A name that is not a column is a 'chart-highlight-unknown-name' error; a column that is not plotted as a series (the category or X column, or one mapping.series leaves out) highlights nothing and is a 'chart-highlight-adapted' warning.
|
|
2569
|
-
*
|
|
2570
|
-
* @minItems 1
|
|
2571
2886
|
*/
|
|
2572
|
-
series?:
|
|
2887
|
+
series?: string[];
|
|
2573
2888
|
/**
|
|
2574
2889
|
* Categories (row labels) to highlight: the marks of each named category (a column or bar of every series, a line's points, a pie or doughnut slice). A label no row has is a 'chart-highlight-unknown-name' error.
|
|
2575
|
-
*
|
|
2576
|
-
* @minItems 1
|
|
2577
2890
|
*/
|
|
2578
|
-
categories?:
|
|
2891
|
+
categories?: string[];
|
|
2579
2892
|
}
|
|
2580
2893
|
/**
|
|
2581
2894
|
* Full-slide table payload. Presence of this field infers type 'table'.
|
|
@@ -2641,31 +2954,33 @@ interface StyledTableCell {
|
|
|
2641
2954
|
*/
|
|
2642
2955
|
interface TableCellStyle {
|
|
2643
2956
|
/**
|
|
2644
|
-
* A color value or reference, enforced on styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors.
|
|
2957
|
+
* 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:
|
|
2645
2958
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
2646
2959
|
* - 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).
|
|
2647
2960
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
2961
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
2648
2962
|
*
|
|
2649
2963
|
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
2650
2964
|
*/
|
|
2651
|
-
fill?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
2965
|
+
fill?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
2652
2966
|
/**
|
|
2653
|
-
* A color value or reference, enforced on styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors.
|
|
2967
|
+
* 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:
|
|
2654
2968
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
2655
2969
|
* - 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).
|
|
2656
2970
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
2971
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
2657
2972
|
*
|
|
2658
2973
|
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
2659
2974
|
*/
|
|
2660
|
-
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
2975
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
2661
2976
|
/**
|
|
2662
2977
|
* Bold cell text. Runs that set their own bold keep it; a number cell stays bold and still uses the cell's or column's number format.
|
|
2663
2978
|
*/
|
|
2664
2979
|
bold?: boolean;
|
|
2665
2980
|
/**
|
|
2666
|
-
* Horizontal text alignment inside the cell.
|
|
2981
|
+
* Horizontal text alignment inside the cell. Logical: 'start' is the edge a paragraph starts on (the left for left-to-right text, the right for right-to-left text) and 'end' is the opposite edge.
|
|
2667
2982
|
*/
|
|
2668
|
-
align?: ("
|
|
2983
|
+
align?: ("start" | "center" | "end");
|
|
2669
2984
|
/**
|
|
2670
2985
|
* Vertical alignment inside the padded cell box.
|
|
2671
2986
|
*/
|
|
@@ -2675,10 +2990,74 @@ interface TableCellStyle {
|
|
|
2675
2990
|
* Independent cell edges. An omitted edge keeps the table's default rule: a line under every row (and over the first row), none between columns. Width 0 removes an edge.
|
|
2676
2991
|
*/
|
|
2677
2992
|
borders?: {
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2993
|
+
/**
|
|
2994
|
+
* One explicit cell border: a Line, or 'none' to remove this edge. Defaults: the table's rule color (the scheme's border neutral), 1 reference pixel and 'solid'.
|
|
2995
|
+
*/
|
|
2996
|
+
top?: ("none" | {
|
|
2997
|
+
/**
|
|
2998
|
+
* Line color: any ColorRef (eight-digit hex keeps its alpha).
|
|
2999
|
+
*/
|
|
3000
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3001
|
+
/**
|
|
3002
|
+
* Line width in reference pixels at a 720-pixel short edge. 0 draws no line, the same as 'none'.
|
|
3003
|
+
*/
|
|
3004
|
+
width?: number;
|
|
3005
|
+
/**
|
|
3006
|
+
* Dash pattern, by the names Stroke.dash uses.
|
|
3007
|
+
*/
|
|
3008
|
+
dash?: ("solid" | "dash" | "dot");
|
|
3009
|
+
});
|
|
3010
|
+
/**
|
|
3011
|
+
* One explicit cell border: a Line, or 'none' to remove this edge. Defaults: the table's rule color (the scheme's border neutral), 1 reference pixel and 'solid'.
|
|
3012
|
+
*/
|
|
3013
|
+
right?: ("none" | {
|
|
3014
|
+
/**
|
|
3015
|
+
* Line color: any ColorRef (eight-digit hex keeps its alpha).
|
|
3016
|
+
*/
|
|
3017
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3018
|
+
/**
|
|
3019
|
+
* Line width in reference pixels at a 720-pixel short edge. 0 draws no line, the same as 'none'.
|
|
3020
|
+
*/
|
|
3021
|
+
width?: number;
|
|
3022
|
+
/**
|
|
3023
|
+
* Dash pattern, by the names Stroke.dash uses.
|
|
3024
|
+
*/
|
|
3025
|
+
dash?: ("solid" | "dash" | "dot");
|
|
3026
|
+
});
|
|
3027
|
+
/**
|
|
3028
|
+
* One explicit cell border: a Line, or 'none' to remove this edge. Defaults: the table's rule color (the scheme's border neutral), 1 reference pixel and 'solid'.
|
|
3029
|
+
*/
|
|
3030
|
+
bottom?: ("none" | {
|
|
3031
|
+
/**
|
|
3032
|
+
* Line color: any ColorRef (eight-digit hex keeps its alpha).
|
|
3033
|
+
*/
|
|
3034
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3035
|
+
/**
|
|
3036
|
+
* Line width in reference pixels at a 720-pixel short edge. 0 draws no line, the same as 'none'.
|
|
3037
|
+
*/
|
|
3038
|
+
width?: number;
|
|
3039
|
+
/**
|
|
3040
|
+
* Dash pattern, by the names Stroke.dash uses.
|
|
3041
|
+
*/
|
|
3042
|
+
dash?: ("solid" | "dash" | "dot");
|
|
3043
|
+
});
|
|
3044
|
+
/**
|
|
3045
|
+
* One explicit cell border: a Line, or 'none' to remove this edge. Defaults: the table's rule color (the scheme's border neutral), 1 reference pixel and 'solid'.
|
|
3046
|
+
*/
|
|
3047
|
+
left?: ("none" | {
|
|
3048
|
+
/**
|
|
3049
|
+
* Line color: any ColorRef (eight-digit hex keeps its alpha).
|
|
3050
|
+
*/
|
|
3051
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3052
|
+
/**
|
|
3053
|
+
* Line width in reference pixels at a 720-pixel short edge. 0 draws no line, the same as 'none'.
|
|
3054
|
+
*/
|
|
3055
|
+
width?: number;
|
|
3056
|
+
/**
|
|
3057
|
+
* Dash pattern, by the names Stroke.dash uses.
|
|
3058
|
+
*/
|
|
3059
|
+
dash?: ("solid" | "dash" | "dot");
|
|
3060
|
+
});
|
|
2682
3061
|
};
|
|
2683
3062
|
}
|
|
2684
3063
|
/**
|
|
@@ -2694,43 +3073,18 @@ interface TableCellPadding {
|
|
|
2694
3073
|
left?: number;
|
|
2695
3074
|
}
|
|
2696
3075
|
/**
|
|
2697
|
-
*
|
|
3076
|
+
* Code content with optional rendering metadata. Use 'source' for the code text, 'language' for syntax highlighting, 'filename' when the rendered block should show a file label, and 'highlight' to emphasize lines. A string value in a code field is shorthand for { "source": value }.
|
|
2698
3077
|
*
|
|
2699
3078
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2700
|
-
* via the `definition` "
|
|
3079
|
+
* via the `definition` "Code".
|
|
2701
3080
|
*/
|
|
2702
|
-
interface
|
|
3081
|
+
interface Code {
|
|
2703
3082
|
/**
|
|
2704
|
-
*
|
|
2705
|
-
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
2706
|
-
* - 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).
|
|
2707
|
-
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
2708
|
-
*
|
|
2709
|
-
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
3083
|
+
* Source code text to display.
|
|
2710
3084
|
*/
|
|
2711
|
-
|
|
3085
|
+
source: string;
|
|
2712
3086
|
/**
|
|
2713
|
-
*
|
|
2714
|
-
*/
|
|
2715
|
-
width: number;
|
|
2716
|
-
/**
|
|
2717
|
-
* Default solid.
|
|
2718
|
-
*/
|
|
2719
|
-
dash?: ("solid" | "dash" | "dot");
|
|
2720
|
-
}
|
|
2721
|
-
/**
|
|
2722
|
-
* Code content with optional rendering metadata. Use 'source' for the code text, 'language' for syntax highlighting, 'filename' when the rendered block should show a file label, and 'highlight' to emphasize lines. A string value in a code field is shorthand for { "source": value }.
|
|
2723
|
-
*
|
|
2724
|
-
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2725
|
-
* via the `definition` "Code".
|
|
2726
|
-
*/
|
|
2727
|
-
interface Code {
|
|
2728
|
-
/**
|
|
2729
|
-
* Source code text to display.
|
|
2730
|
-
*/
|
|
2731
|
-
source: string;
|
|
2732
|
-
/**
|
|
2733
|
-
* Language identifier used for syntax highlighting.
|
|
3087
|
+
* Language identifier used for syntax highlighting.
|
|
2734
3088
|
*/
|
|
2735
3089
|
language?: string;
|
|
2736
3090
|
/**
|
|
@@ -2779,6 +3133,10 @@ interface Metric {
|
|
|
2779
3133
|
* 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.
|
|
2780
3134
|
*/
|
|
2781
3135
|
sentiment?: ("positive" | "negative" | "neutral");
|
|
3136
|
+
/**
|
|
3137
|
+
* An icon drawn on a chip above the metric: "<set>:<name>" ("lucide:users"), a name from the deck's icons, or an SVG source. Decoration only: when the slide has no room for it without setting text smaller, it is not drawn (finding opf/icon-dropped). See docs/icons.md.
|
|
3138
|
+
*/
|
|
3139
|
+
icon?: string;
|
|
2782
3140
|
}
|
|
2783
3141
|
/**
|
|
2784
3142
|
* Quote content with optional attribution metadata. Use 'text' for the quoted text, 'attribution' for the credited person or organization, 'role' for that person's title and organization, 'photo' for their headshot and 'source' for a citation or URL. A string value in a quote field is shorthand for { "text": value }.
|
|
@@ -2824,6 +3182,10 @@ interface Quote {
|
|
|
2824
3182
|
*/
|
|
2825
3183
|
mediaType?: string;
|
|
2826
3184
|
});
|
|
3185
|
+
/**
|
|
3186
|
+
* 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`.
|
|
3187
|
+
*/
|
|
3188
|
+
portrait?: ("avatar" | "side");
|
|
2827
3189
|
/**
|
|
2828
3190
|
* Optional quote source, citation, or URL. Follows the attribution and role after ' - '.
|
|
2829
3191
|
*/
|
|
@@ -2840,6 +3202,10 @@ interface TimelineEvent {
|
|
|
2840
3202
|
* Event time, date, or sequence label. Use ISO-like values when possible, but human labels are allowed for quarters, eras, and relative milestones.
|
|
2841
3203
|
*/
|
|
2842
3204
|
when?: string;
|
|
3205
|
+
/**
|
|
3206
|
+
* Relative length of this consecutive event period. Use the same unit for every event (for example 1 for Week 1 and 4 for Weeks 2–5). Omitted means one unit. When any event supplies duration, both engines draw proportional ranges. The 'when' field stays the authored display label and is never parsed to guess a duration.
|
|
3207
|
+
*/
|
|
3208
|
+
duration?: number;
|
|
2843
3209
|
/**
|
|
2844
3210
|
* Short event label.
|
|
2845
3211
|
*/
|
|
@@ -2854,22 +3220,22 @@ interface TimelineEvent {
|
|
|
2854
3220
|
status?: ("done" | "current" | "planned");
|
|
2855
3221
|
}
|
|
2856
3222
|
/**
|
|
2857
|
-
* A diagram written as text
|
|
3223
|
+
* A diagram written as text (Mermaid, Graphviz DOT or PlantUML), laid out with the deck's measured fonts and resolved colors at the largest type size that fits. PPTX export defaults to editable native shapes, connectors and text in one group for qualified families; unsupported families or drawing constructs use an SVG picture with a PNG fallback. The diagrams: "picture" option always uses that picture form. A string diagram is shorthand for { "source": value }.
|
|
2858
3224
|
*
|
|
2859
3225
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2860
3226
|
* via the `definition` "Diagram".
|
|
2861
3227
|
*/
|
|
2862
3228
|
interface Diagram {
|
|
2863
3229
|
/**
|
|
2864
|
-
* 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.
|
|
3230
|
+
* The diagram source. With syntax 'mermaid' (the default) it is Mermaid 12.1 text whose first line names the diagram type (flowchart, sequenceDiagram, classDiagram, stateDiagram-v2, erDiagram, gantt, pie, mindmap, timeline, journey, quadrantChart, xychart, sankey, gitGraph, C4Context, block, architecture-beta, kanban, packet, radar-beta, treemap, venn-beta, ishikawa, requirementDiagram and the other built-in families; ZenUML is not supported). Mermaid themes, colors in themeVariables and click callbacks are ignored: the deck's design decides the colors and fonts. With syntax 'dot' it is one Graphviz DOT graph (graph or digraph), laid out in layers as Graphviz's dot engine does: rankdir, node shapes, edge styles, arrowheads, labels and subgraph cluster_* groups are drawn; colors, fonts, sizes and positions are the deck's; a graph whose layout attribute names another engine (neato, fdp, sfdp, circo, twopi, osage, patchwork) is not drawn. With syntax 'plantuml' it is one PlantUML diagram from @startuml (or @startmindmap, @startgantt) to its @end line: sequence, class, state, activity (the current syntax), use case, component and deployment diagrams, mind maps and gantt charts are drawn as the Mermaid family of the same kind; other PlantUML diagrams, the legacy activity syntax and the preprocessor are not drawn, and skinparam, themes and colors are ignored.
|
|
2865
3231
|
*/
|
|
2866
3232
|
source: string;
|
|
2867
3233
|
/**
|
|
2868
|
-
* The language of 'source'. Mermaid
|
|
3234
|
+
* The language of 'source': 'mermaid' (Mermaid 12.1, the default), 'dot' (Graphviz DOT, drawn with the layered layout) or 'plantuml' (PlantUML, drawn as the Mermaid family of the same kind). OPF reads all three itself; no Graphviz or PlantUML code runs.
|
|
2869
3235
|
*/
|
|
2870
|
-
syntax?: "mermaid";
|
|
3236
|
+
syntax?: ("mermaid" | "dot" | "plantuml");
|
|
2871
3237
|
/**
|
|
2872
|
-
* Text alternative that says what the diagram shows. Exported as the picture
|
|
3238
|
+
* Text alternative that says what the diagram shows. Exported as the description of the native shape group or picture. Without it, engines derive one from the diagram's labels.
|
|
2873
3239
|
*/
|
|
2874
3240
|
alt?: string;
|
|
2875
3241
|
}
|
|
@@ -2887,22 +3253,284 @@ interface ImageFocus1 {
|
|
|
2887
3253
|
y: number;
|
|
2888
3254
|
}
|
|
2889
3255
|
/**
|
|
2890
|
-
*
|
|
3256
|
+
* A gradient line instead of a solid color (a:ln/a:gradFill).
|
|
3257
|
+
*/
|
|
3258
|
+
interface Gradient {
|
|
3259
|
+
/**
|
|
3260
|
+
* 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.
|
|
3261
|
+
*/
|
|
3262
|
+
type?: ("linear" | "radial" | "rectangle" | "shape");
|
|
3263
|
+
/**
|
|
3264
|
+
* Linear gradients only: angle in degrees (0 = left to right, 90 = top to bottom). Default 90.
|
|
3265
|
+
*/
|
|
3266
|
+
angle?: number;
|
|
3267
|
+
/**
|
|
3268
|
+
* Ordered color stops; at least two. A radial, rectangle or shape gradient runs from the center (position 0) to the outline (position 1).
|
|
3269
|
+
*
|
|
3270
|
+
* @minItems 2
|
|
3271
|
+
*/
|
|
3272
|
+
stops: [
|
|
3273
|
+
{
|
|
3274
|
+
/**
|
|
3275
|
+
* 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:
|
|
3276
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3277
|
+
* - 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).
|
|
3278
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3279
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
3280
|
+
*
|
|
3281
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
3282
|
+
*/
|
|
3283
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3284
|
+
/**
|
|
3285
|
+
* Stop position, 0 to 1.
|
|
3286
|
+
*/
|
|
3287
|
+
position: number;
|
|
3288
|
+
},
|
|
3289
|
+
{
|
|
3290
|
+
/**
|
|
3291
|
+
* 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:
|
|
3292
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3293
|
+
* - 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).
|
|
3294
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3295
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
3296
|
+
*
|
|
3297
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
3298
|
+
*/
|
|
3299
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3300
|
+
/**
|
|
3301
|
+
* Stop position, 0 to 1.
|
|
3302
|
+
*/
|
|
3303
|
+
position: number;
|
|
3304
|
+
},
|
|
3305
|
+
...({
|
|
3306
|
+
/**
|
|
3307
|
+
* 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:
|
|
3308
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3309
|
+
* - 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).
|
|
3310
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3311
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
3312
|
+
*
|
|
3313
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
3314
|
+
*/
|
|
3315
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3316
|
+
/**
|
|
3317
|
+
* Stop position, 0 to 1.
|
|
3318
|
+
*/
|
|
3319
|
+
position: number;
|
|
3320
|
+
})[]
|
|
3321
|
+
];
|
|
3322
|
+
}
|
|
3323
|
+
/**
|
|
3324
|
+
* Arrowhead at the start of an open path (a:headEnd).
|
|
3325
|
+
*/
|
|
3326
|
+
interface Arrowhead {
|
|
3327
|
+
/**
|
|
3328
|
+
* Arrowhead kind, DrawingML's ST_LineEndType. Default 'triangle' when the object is given.
|
|
3329
|
+
*/
|
|
3330
|
+
type?: ("none" | "triangle" | "stealth" | "diamond" | "oval" | "arrow");
|
|
3331
|
+
/**
|
|
3332
|
+
* Arrowhead width relative to the stroke width (2, 3 or 5 stroke widths). Default medium.
|
|
3333
|
+
*/
|
|
3334
|
+
width?: ("small" | "medium" | "large");
|
|
3335
|
+
/**
|
|
3336
|
+
* Arrowhead length relative to the stroke width (2, 3 or 5 stroke widths). Default medium.
|
|
3337
|
+
*/
|
|
3338
|
+
length?: ("small" | "medium" | "large");
|
|
3339
|
+
}
|
|
3340
|
+
/**
|
|
3341
|
+
* Arrowhead at the end of an open path (a:tailEnd).
|
|
3342
|
+
*/
|
|
3343
|
+
interface Arrowhead1 {
|
|
3344
|
+
/**
|
|
3345
|
+
* Arrowhead kind, DrawingML's ST_LineEndType. Default 'triangle' when the object is given.
|
|
3346
|
+
*/
|
|
3347
|
+
type?: ("none" | "triangle" | "stealth" | "diamond" | "oval" | "arrow");
|
|
3348
|
+
/**
|
|
3349
|
+
* Arrowhead width relative to the stroke width (2, 3 or 5 stroke widths). Default medium.
|
|
3350
|
+
*/
|
|
3351
|
+
width?: ("small" | "medium" | "large");
|
|
3352
|
+
/**
|
|
3353
|
+
* Arrowhead length relative to the stroke width (2, 3 or 5 stroke widths). Default medium.
|
|
3354
|
+
*/
|
|
3355
|
+
length?: ("small" | "medium" | "large");
|
|
3356
|
+
}
|
|
3357
|
+
/**
|
|
3358
|
+
* A gradient fill: the background gradient object extended with 'type'. DrawingML a:gradFill: a:lin for linear, a:path circle, rect or shape for the others. The gradient rotates with the shape.
|
|
3359
|
+
*
|
|
3360
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
3361
|
+
* via the `definition` "Gradient".
|
|
2891
3362
|
*/
|
|
2892
|
-
interface
|
|
3363
|
+
interface Gradient1 {
|
|
3364
|
+
/**
|
|
3365
|
+
* 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.
|
|
3366
|
+
*/
|
|
3367
|
+
type?: ("linear" | "radial" | "rectangle" | "shape");
|
|
2893
3368
|
/**
|
|
2894
|
-
*
|
|
3369
|
+
* Linear gradients only: angle in degrees (0 = left to right, 90 = top to bottom). Default 90.
|
|
3370
|
+
*/
|
|
3371
|
+
angle?: number;
|
|
3372
|
+
/**
|
|
3373
|
+
* Ordered color stops; at least two. A radial, rectangle or shape gradient runs from the center (position 0) to the outline (position 1).
|
|
3374
|
+
*
|
|
3375
|
+
* @minItems 2
|
|
3376
|
+
*/
|
|
3377
|
+
stops: [
|
|
3378
|
+
{
|
|
3379
|
+
/**
|
|
3380
|
+
* 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:
|
|
3381
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3382
|
+
* - 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).
|
|
3383
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3384
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
3385
|
+
*
|
|
3386
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
3387
|
+
*/
|
|
3388
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3389
|
+
/**
|
|
3390
|
+
* Stop position, 0 to 1.
|
|
3391
|
+
*/
|
|
3392
|
+
position: number;
|
|
3393
|
+
},
|
|
3394
|
+
{
|
|
3395
|
+
/**
|
|
3396
|
+
* 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:
|
|
3397
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3398
|
+
* - 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).
|
|
3399
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3400
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
3401
|
+
*
|
|
3402
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
3403
|
+
*/
|
|
3404
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3405
|
+
/**
|
|
3406
|
+
* Stop position, 0 to 1.
|
|
3407
|
+
*/
|
|
3408
|
+
position: number;
|
|
3409
|
+
},
|
|
3410
|
+
...({
|
|
3411
|
+
/**
|
|
3412
|
+
* 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:
|
|
3413
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3414
|
+
* - 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).
|
|
3415
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3416
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
3417
|
+
*
|
|
3418
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
3419
|
+
*/
|
|
3420
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3421
|
+
/**
|
|
3422
|
+
* Stop position, 0 to 1.
|
|
3423
|
+
*/
|
|
3424
|
+
position: number;
|
|
3425
|
+
})[]
|
|
3426
|
+
];
|
|
3427
|
+
}
|
|
3428
|
+
/**
|
|
3429
|
+
* A two-color pattern fill (the background pattern object), DrawingML a:pattFill.
|
|
3430
|
+
*
|
|
3431
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
3432
|
+
* via the `definition` "Pattern".
|
|
3433
|
+
*/
|
|
3434
|
+
interface Pattern {
|
|
3435
|
+
/**
|
|
3436
|
+
* DrawingML pattern preset (ECMA-376 ST_PresetPatternVal), for example pct5, ltHorz, wdUpDiag, smGrid or dotDmnd.
|
|
3437
|
+
*/
|
|
3438
|
+
preset: string;
|
|
3439
|
+
/**
|
|
3440
|
+
* 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:
|
|
2895
3441
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
2896
3442
|
* - 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).
|
|
2897
3443
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3444
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
2898
3445
|
*
|
|
2899
3446
|
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
2900
3447
|
*/
|
|
2901
|
-
|
|
3448
|
+
foregroundColor?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
2902
3449
|
/**
|
|
2903
|
-
*
|
|
3450
|
+
* 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:
|
|
3451
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3452
|
+
* - 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).
|
|
3453
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3454
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
3455
|
+
*
|
|
3456
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
2904
3457
|
*/
|
|
2905
|
-
|
|
3458
|
+
backgroundColor?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3459
|
+
}
|
|
3460
|
+
/**
|
|
3461
|
+
* Shape blocks only. Inner shadow.
|
|
3462
|
+
*/
|
|
3463
|
+
interface InnerShadow {
|
|
3464
|
+
/**
|
|
3465
|
+
* 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:
|
|
3466
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3467
|
+
* - 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).
|
|
3468
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3469
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
3470
|
+
*
|
|
3471
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
3472
|
+
*/
|
|
3473
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3474
|
+
/**
|
|
3475
|
+
* Shadow opacity.
|
|
3476
|
+
*/
|
|
3477
|
+
opacity?: number;
|
|
3478
|
+
/**
|
|
3479
|
+
* Blur radius in reference pixels at a 720-pixel short edge.
|
|
3480
|
+
*/
|
|
3481
|
+
blur?: number;
|
|
3482
|
+
/**
|
|
3483
|
+
* Offset in reference pixels at a 720-pixel short edge.
|
|
3484
|
+
*/
|
|
3485
|
+
distance?: number;
|
|
3486
|
+
/**
|
|
3487
|
+
* Direction of the offset in degrees (0 = right, 90 = down).
|
|
3488
|
+
*/
|
|
3489
|
+
angle?: number;
|
|
3490
|
+
}
|
|
3491
|
+
/**
|
|
3492
|
+
* Shape blocks only. Glow.
|
|
3493
|
+
*/
|
|
3494
|
+
interface Glow {
|
|
3495
|
+
/**
|
|
3496
|
+
* 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:
|
|
3497
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3498
|
+
* - 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).
|
|
3499
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3500
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
3501
|
+
*
|
|
3502
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
3503
|
+
*/
|
|
3504
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3505
|
+
/**
|
|
3506
|
+
* Glow opacity.
|
|
3507
|
+
*/
|
|
3508
|
+
opacity?: number;
|
|
3509
|
+
/**
|
|
3510
|
+
* Glow size in reference pixels at a 720-pixel short edge.
|
|
3511
|
+
*/
|
|
3512
|
+
radius?: number;
|
|
3513
|
+
}
|
|
3514
|
+
/**
|
|
3515
|
+
* Shape blocks only. Reflection.
|
|
3516
|
+
*/
|
|
3517
|
+
interface Reflection {
|
|
3518
|
+
/**
|
|
3519
|
+
* Opacity where the reflection starts.
|
|
3520
|
+
*/
|
|
3521
|
+
opacity?: number;
|
|
3522
|
+
/**
|
|
3523
|
+
* Share of the shape's height reflected.
|
|
3524
|
+
*/
|
|
3525
|
+
size?: number;
|
|
3526
|
+
/**
|
|
3527
|
+
* Gap between the shape and its reflection in reference pixels at a 720-pixel short edge.
|
|
3528
|
+
*/
|
|
3529
|
+
distance?: number;
|
|
3530
|
+
/**
|
|
3531
|
+
* Blur radius in reference pixels at a 720-pixel short edge.
|
|
3532
|
+
*/
|
|
3533
|
+
blur?: number;
|
|
2906
3534
|
}
|
|
2907
3535
|
/**
|
|
2908
3536
|
* Solid scrim over a picture: the whole frame in the frame's shape, or a band along one edge. Shared by image backgrounds and image blocks. Drawn directly above its picture and beneath headings and content; PowerPoint export writes one native shape above the picture.
|
|
@@ -2911,15 +3539,15 @@ interface Overlay1 {
|
|
|
2911
3539
|
/**
|
|
2912
3540
|
* Overlay fill color: a hex color (eight-digit hex keeps its alpha), a color-scheme slot or role name, or a 'var:<id>' variable reference.
|
|
2913
3541
|
*/
|
|
2914
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
3542
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
2915
3543
|
/**
|
|
2916
3544
|
* Overlay fill opacity.
|
|
2917
3545
|
*/
|
|
2918
3546
|
opacity: number;
|
|
2919
3547
|
/**
|
|
2920
|
-
* Cover only a band along this edge of the frame, for example a caption strip. Backgrounds and rectangle image frames only; on another shape the overlay is not drawn and composition reports unsupported-image-treatment. Omit to cover the whole frame.
|
|
3548
|
+
* Cover only a band along this edge of the frame, for example a caption strip. Backgrounds and rectangle image frames only; on another shape the overlay is not drawn and composition reports unsupported-image-treatment. Omit to cover the whole frame. 'start' and 'end' follow the deck's direction: the left and right sides in a left-to-right deck, the right and left sides in a right-to-left one.
|
|
2921
3549
|
*/
|
|
2922
|
-
edge?: ("top" | "bottom" | "
|
|
3550
|
+
edge?: ("top" | "bottom" | "start" | "end");
|
|
2923
3551
|
/**
|
|
2924
3552
|
* Band share of the frame for an edge overlay. Default 0.3. Ignored without edge.
|
|
2925
3553
|
*/
|
|
@@ -2932,9 +3560,9 @@ interface ImagePlacement {
|
|
|
2932
3560
|
/**
|
|
2933
3561
|
* The slide edge the image bleeds to.
|
|
2934
3562
|
*/
|
|
2935
|
-
edge: ("
|
|
3563
|
+
edge: ("start" | "end" | "top" | "bottom");
|
|
2936
3564
|
/**
|
|
2937
|
-
* Share of the slide width (
|
|
3565
|
+
* Share of the slide width (start, end) or height (top, bottom) given to the band. Default 0.5.
|
|
2938
3566
|
*/
|
|
2939
3567
|
size?: number;
|
|
2940
3568
|
/**
|
|
@@ -2947,7 +3575,7 @@ interface ImagePlacement {
|
|
|
2947
3575
|
*/
|
|
2948
3576
|
interface Chart1 {
|
|
2949
3577
|
/**
|
|
2950
|
-
* Chart type, an engine vocabulary validated directly (no catalog lookup): the chart types
|
|
3578
|
+
* 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.
|
|
2951
3579
|
*/
|
|
2952
3580
|
type: ("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");
|
|
2953
3581
|
/**
|
|
@@ -2962,18 +3590,22 @@ interface Chart1 {
|
|
|
2962
3590
|
*/
|
|
2963
3591
|
line?: [string, ...(string)[]];
|
|
2964
3592
|
/**
|
|
2965
|
-
* Combo charts only: line series, by column name, plotted against a secondary value axis at the
|
|
3593
|
+
* Combo charts only: line series, by column name, plotted against a secondary value axis at the end of the plot (the right; the left in a right-to-left deck, where the category axis runs from the right). That axis has its own scale, and its tick labels use the number format of the first secondary series' column (DataColumn.format), for example '0%' for a margin. Absent: every series shares the primary value axis at the start of the plot (the left; the right in a right-to-left deck). A name that is not a line series (see 'line') stays on the primary axis with a 'chart-mapping-adapted' warning; an unknown column is a 'chart-mapping-unknown-column' error. On any other chart type it is ignored with a 'chart-option-adapted' warning.
|
|
2966
3594
|
*
|
|
2967
3595
|
* @minItems 1
|
|
2968
3596
|
*/
|
|
2969
3597
|
secondaryAxis?: [string, ...(string)[]];
|
|
3598
|
+
/**
|
|
3599
|
+
* Explicit numeric references on the chart's value axis, supported on the chart types with one value axis for every series: column, bar, line, line-with-markers, area and combo. A non-empty list on any other type (the stacked and 100% stacked types among them) is the error opf/chart-reference-unsupported-type, located at referenceLines, so a reference is never dropped silently. Absent or [] means none. Authored order, duplicates and values equal to data are preserved. Vertical charts with two or more categories span first-to-last category centers; bars/single-category charts span the full plot. Titles/subtitles never create references or period bands.
|
|
3600
|
+
*/
|
|
3601
|
+
referenceLines?: ChartReferenceLine[];
|
|
2970
3602
|
axisTitles?: ChartAxisTitles;
|
|
2971
3603
|
/**
|
|
2972
|
-
* Optional legend position. 'none' hides the legend. Absent
|
|
3604
|
+
* Optional legend position. 'none' hides the legend. Absent leaves it to the engines: a line chart of two to four series names its series at the line ends and a pie or one-series doughnut names its slices, with no legend; a column, bar, area or combo chart of two to four series shows its legend in the header row above the plot; other multi-series charts and pie and doughnut charts take a legend at the physical right; a single-series chart takes none. A named position shows the legend there even for a single-series chart; 'left' and 'right' are physical sides in every language. Of the Office 2016 constructs only box-and-whisker takes a legend; histogram, pareto, waterfall, funnel, treemap and world drop the option with a 'chart-option-adapted' diagnostic.
|
|
2973
3605
|
*/
|
|
2974
3606
|
legend?: ("none" | "top" | "bottom" | "left" | "right");
|
|
2975
3607
|
/**
|
|
2976
|
-
* Optional data labels. true shows value labels at each type's default position
|
|
3608
|
+
* Optional data labels. true shows value labels at each type's default position and false shows none. Absent leaves it to the engines: no labels, except on a small chart, which labels its values in place of its value axis, the direct labels of line, pie and doughnut charts, and the labels the funnel and treemap constructs draw by default. Use the object form for the label content, position and separator.
|
|
2977
3609
|
*/
|
|
2978
3610
|
dataLabels?: (boolean | ChartDataLabels);
|
|
2979
3611
|
/**
|
|
@@ -3060,6 +3692,321 @@ interface Composition {
|
|
|
3060
3692
|
*/
|
|
3061
3693
|
overflow?: ("warn" | "error");
|
|
3062
3694
|
}
|
|
3695
|
+
/**
|
|
3696
|
+
* 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.
|
|
3697
|
+
*
|
|
3698
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
3699
|
+
* via the `definition` "OverlayShape".
|
|
3700
|
+
*/
|
|
3701
|
+
interface OverlayShape {
|
|
3702
|
+
/**
|
|
3703
|
+
* Optional stable identifier, unique among slide, payload and overlay ids in the document. A connector names it in 'from' or 'to'.
|
|
3704
|
+
*/
|
|
3705
|
+
id?: string;
|
|
3706
|
+
/**
|
|
3707
|
+
* The shape's start edge as a signed fraction of the slide width, measured from the slide's start edge: the left edge in a left-to-right deck, the right edge in a right-to-left one. A shape sits over the layout, and the layout mirrors, so this coordinate is logical; only the position mirrors, never the geometry (an arrow keeps the way it points). Negative values or values greater than 1 place the shape partly or wholly outside the slide. With 'y', 'width' and 'height'.
|
|
3708
|
+
*/
|
|
3709
|
+
x?: number;
|
|
3710
|
+
/**
|
|
3711
|
+
* Top edge as a signed fraction of the slide height, from the top edge. Negative values or values greater than 1 place the shape partly or wholly outside the slide.
|
|
3712
|
+
*/
|
|
3713
|
+
y?: number;
|
|
3714
|
+
/**
|
|
3715
|
+
* Width as a fraction of the slide width, from 0 (a vertical line) up to 8. Above 1 the shape is wider than the slide, for a circle or band that bleeds off it; the slide crops what lies outside.
|
|
3716
|
+
*/
|
|
3717
|
+
width?: number;
|
|
3718
|
+
/**
|
|
3719
|
+
* Height as a fraction of the slide height, from 0 (a horizontal line) up to 8. Above 1 the shape is taller than the slide.
|
|
3720
|
+
*/
|
|
3721
|
+
height?: number;
|
|
3722
|
+
at?: OverlayAnchor;
|
|
3723
|
+
/**
|
|
3724
|
+
* 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.
|
|
3725
|
+
*/
|
|
3726
|
+
layer?: ("front" | "back");
|
|
3727
|
+
connector?: Connector;
|
|
3728
|
+
/**
|
|
3729
|
+
* The preset geometry, as on a shape block. Default rect.
|
|
3730
|
+
*/
|
|
3731
|
+
shape?: ("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");
|
|
3732
|
+
/**
|
|
3733
|
+
* Custom geometry instead of a preset (a:custGeom), as on a shape block.
|
|
3734
|
+
*/
|
|
3735
|
+
path?: (string | {
|
|
3736
|
+
/**
|
|
3737
|
+
* SVG path data in the viewBox.
|
|
3738
|
+
*/
|
|
3739
|
+
d: string;
|
|
3740
|
+
/**
|
|
3741
|
+
* The path's own box, 'minX minY width height' as in SVG; it is stretched to the block.
|
|
3742
|
+
*/
|
|
3743
|
+
viewBox: string;
|
|
3744
|
+
});
|
|
3745
|
+
/**
|
|
3746
|
+
* 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.
|
|
3747
|
+
*/
|
|
3748
|
+
adjust?: {
|
|
3749
|
+
[k: string]: number;
|
|
3750
|
+
};
|
|
3751
|
+
/**
|
|
3752
|
+
* 'none', a ColorRef, { gradient } or { pattern }. Default the style's fill.
|
|
3753
|
+
*/
|
|
3754
|
+
fill?: ("none" | (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform) | {
|
|
3755
|
+
gradient: Gradient1;
|
|
3756
|
+
} | {
|
|
3757
|
+
pattern: Pattern;
|
|
3758
|
+
});
|
|
3759
|
+
/**
|
|
3760
|
+
* The fill's opacity (a:alpha). Default 1.
|
|
3761
|
+
*/
|
|
3762
|
+
opacity?: number;
|
|
3763
|
+
/**
|
|
3764
|
+
* 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).
|
|
3765
|
+
*/
|
|
3766
|
+
stroke?: ("none" | {
|
|
3767
|
+
/**
|
|
3768
|
+
* 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:
|
|
3769
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3770
|
+
* - 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).
|
|
3771
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3772
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
3773
|
+
*
|
|
3774
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
3775
|
+
*/
|
|
3776
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3777
|
+
gradient?: Gradient;
|
|
3778
|
+
/**
|
|
3779
|
+
* 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.
|
|
3780
|
+
*/
|
|
3781
|
+
width?: number;
|
|
3782
|
+
/**
|
|
3783
|
+
* Dash pattern: a preset name or an array of dash and gap lengths in stroke widths.
|
|
3784
|
+
*/
|
|
3785
|
+
dash?: (("solid" | "dot" | "dash" | "longDash" | "dashDot" | "longDashDot" | "longDashDotDot" | "sysDot" | "sysDash" | "sysDashDot" | "sysDashDotDot") | [number, number] | [number, number, number] | [number, number, number, number] | [number, number, number, number, number] | [number, number, number, number, number, number] | [number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number]);
|
|
3786
|
+
/**
|
|
3787
|
+
* Line cap (a:ln cap flat, rnd, sq). Default flat.
|
|
3788
|
+
*/
|
|
3789
|
+
cap?: ("flat" | "round" | "square");
|
|
3790
|
+
/**
|
|
3791
|
+
* Line join (a:miter, a:round, a:bevel). Default miter, PowerPoint's default line join.
|
|
3792
|
+
*/
|
|
3793
|
+
join?: ("miter" | "round" | "bevel");
|
|
3794
|
+
/**
|
|
3795
|
+
* Miter join limit, as a multiple of the stroke width (a:miter lim). Default 8. Ignored by round and bevel joins.
|
|
3796
|
+
*/
|
|
3797
|
+
miterLimit?: number;
|
|
3798
|
+
/**
|
|
3799
|
+
* Compound line (a:ln cmpd sng, dbl, thickThin, thinThick, tri). Default single.
|
|
3800
|
+
*/
|
|
3801
|
+
compound?: ("single" | "double" | "thickThin" | "thinThick" | "triple");
|
|
3802
|
+
/**
|
|
3803
|
+
* Where the line sits on the outline (a:ln algn ctr or in). Default center. PowerPoint draws inside-aligned lines only on closed outlines.
|
|
3804
|
+
*/
|
|
3805
|
+
align?: ("center" | "inside");
|
|
3806
|
+
start?: Arrowhead;
|
|
3807
|
+
end?: Arrowhead1;
|
|
3808
|
+
/**
|
|
3809
|
+
* 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.
|
|
3810
|
+
*/
|
|
3811
|
+
sketch?: ("curved" | "freehand" | "scribble");
|
|
3812
|
+
});
|
|
3813
|
+
/**
|
|
3814
|
+
* The theme shape style, as on a shape block. Default moderate.
|
|
3815
|
+
*/
|
|
3816
|
+
style?: ("none" | "subtle" | "moderate" | "intense");
|
|
3817
|
+
/**
|
|
3818
|
+
* Outer shadow.
|
|
3819
|
+
*/
|
|
3820
|
+
shadow?: (("soft" | "hard" | "perspective") | {
|
|
3821
|
+
/**
|
|
3822
|
+
* 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:
|
|
3823
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3824
|
+
* - 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).
|
|
3825
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3826
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
3827
|
+
*
|
|
3828
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
3829
|
+
*/
|
|
3830
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3831
|
+
/**
|
|
3832
|
+
* Shadow opacity.
|
|
3833
|
+
*/
|
|
3834
|
+
opacity?: number;
|
|
3835
|
+
/**
|
|
3836
|
+
* Blur radius in reference pixels at a 720-pixel short edge.
|
|
3837
|
+
*/
|
|
3838
|
+
blur?: number;
|
|
3839
|
+
/**
|
|
3840
|
+
* Offset from the shape in reference pixels at a 720-pixel short edge.
|
|
3841
|
+
*/
|
|
3842
|
+
distance?: number;
|
|
3843
|
+
/**
|
|
3844
|
+
* Direction of the offset in degrees (0 = right, 90 = down).
|
|
3845
|
+
*/
|
|
3846
|
+
angle?: number;
|
|
3847
|
+
/**
|
|
3848
|
+
* Shadow size relative to the shape (1 = the shape's own size).
|
|
3849
|
+
*/
|
|
3850
|
+
size?: number;
|
|
3851
|
+
});
|
|
3852
|
+
innerShadow?: InnerShadow1;
|
|
3853
|
+
glow?: Glow1;
|
|
3854
|
+
/**
|
|
3855
|
+
* Soft edges (a:softEdge), radius in reference pixels at a 720-pixel short edge.
|
|
3856
|
+
*/
|
|
3857
|
+
softEdge?: number;
|
|
3858
|
+
reflection?: Reflection1;
|
|
3859
|
+
/**
|
|
3860
|
+
* Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge.
|
|
3861
|
+
*/
|
|
3862
|
+
blur?: number;
|
|
3863
|
+
/**
|
|
3864
|
+
* Rotation in degrees, clockwise, about the shape's center (a:xfrm rot). Its connection sites turn with it.
|
|
3865
|
+
*/
|
|
3866
|
+
rotate?: number;
|
|
3867
|
+
/**
|
|
3868
|
+
* Mirror the geometry (a:xfrm flipH, flipV). The text is not mirrored.
|
|
3869
|
+
*/
|
|
3870
|
+
flip?: ("horizontal" | "vertical" | "both");
|
|
3871
|
+
/**
|
|
3872
|
+
* 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.
|
|
3873
|
+
*/
|
|
3874
|
+
text?: (string | TextRun[]);
|
|
3875
|
+
/**
|
|
3876
|
+
* Vertical placement of the text in the text rectangle (a:bodyPr anchor). Default middle.
|
|
3877
|
+
*/
|
|
3878
|
+
anchor?: ("top" | "middle" | "bottom");
|
|
3879
|
+
/**
|
|
3880
|
+
* Text insets inside the text rectangle.
|
|
3881
|
+
*/
|
|
3882
|
+
padding?: (number | TableCellPadding);
|
|
3883
|
+
/**
|
|
3884
|
+
* Text direction (a:bodyPr vert). Default horizontal.
|
|
3885
|
+
*/
|
|
3886
|
+
textDirection?: ("horizontal" | "vertical" | "vertical270" | "stacked");
|
|
3887
|
+
/**
|
|
3888
|
+
* Alternative text (p:cNvPr descr). Without it the shape's text is what is read.
|
|
3889
|
+
*/
|
|
3890
|
+
alt?: string;
|
|
3891
|
+
/**
|
|
3892
|
+
* Mark the shape decorative (a16:decorative): screen readers skip it.
|
|
3893
|
+
*/
|
|
3894
|
+
decorative?: boolean;
|
|
3895
|
+
/**
|
|
3896
|
+
* 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).
|
|
3897
|
+
*/
|
|
3898
|
+
hidden?: boolean;
|
|
3899
|
+
/**
|
|
3900
|
+
* URL opened when the shape is clicked in a slide show (a:hlinkClick): an http(s) URL, a 'mailto:' address or a 'tel:' number.
|
|
3901
|
+
*/
|
|
3902
|
+
link?: string;
|
|
3903
|
+
/**
|
|
3904
|
+
* Custom data passthrough for agent workflows; ignored by the engine but preserved across read/write round-trips.
|
|
3905
|
+
*/
|
|
3906
|
+
extensions?: {
|
|
3907
|
+
[k: string]: unknown;
|
|
3908
|
+
};
|
|
3909
|
+
}
|
|
3910
|
+
/**
|
|
3911
|
+
* Makes the entry a connector: what it joins and how it runs.
|
|
3912
|
+
*/
|
|
3913
|
+
interface Connector {
|
|
3914
|
+
/**
|
|
3915
|
+
* 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.
|
|
3916
|
+
*/
|
|
3917
|
+
from: string;
|
|
3918
|
+
/**
|
|
3919
|
+
* The id of the block or overlay shape on this slide the connector ends at.
|
|
3920
|
+
*/
|
|
3921
|
+
to: string;
|
|
3922
|
+
/**
|
|
3923
|
+
* 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.
|
|
3924
|
+
*/
|
|
3925
|
+
route?: ("straight" | "elbow" | "curved");
|
|
3926
|
+
/**
|
|
3927
|
+
* 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.
|
|
3928
|
+
*/
|
|
3929
|
+
fromSite?: number;
|
|
3930
|
+
/**
|
|
3931
|
+
* The connection site index at 'to', instead of the automatic choice.
|
|
3932
|
+
*/
|
|
3933
|
+
toSite?: number;
|
|
3934
|
+
}
|
|
3935
|
+
/**
|
|
3936
|
+
* Inner shadow.
|
|
3937
|
+
*/
|
|
3938
|
+
interface InnerShadow1 {
|
|
3939
|
+
/**
|
|
3940
|
+
* 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:
|
|
3941
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3942
|
+
* - 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).
|
|
3943
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3944
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
3945
|
+
*
|
|
3946
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
3947
|
+
*/
|
|
3948
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3949
|
+
/**
|
|
3950
|
+
* Shadow opacity.
|
|
3951
|
+
*/
|
|
3952
|
+
opacity?: number;
|
|
3953
|
+
/**
|
|
3954
|
+
* Blur radius in reference pixels at a 720-pixel short edge.
|
|
3955
|
+
*/
|
|
3956
|
+
blur?: number;
|
|
3957
|
+
/**
|
|
3958
|
+
* Offset in reference pixels at a 720-pixel short edge.
|
|
3959
|
+
*/
|
|
3960
|
+
distance?: number;
|
|
3961
|
+
/**
|
|
3962
|
+
* Direction of the offset in degrees (0 = right, 90 = down).
|
|
3963
|
+
*/
|
|
3964
|
+
angle?: number;
|
|
3965
|
+
}
|
|
3966
|
+
/**
|
|
3967
|
+
* Glow.
|
|
3968
|
+
*/
|
|
3969
|
+
interface Glow1 {
|
|
3970
|
+
/**
|
|
3971
|
+
* 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:
|
|
3972
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3973
|
+
* - 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).
|
|
3974
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3975
|
+
* - Lighter or darker: { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
3976
|
+
*
|
|
3977
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
3978
|
+
*/
|
|
3979
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3980
|
+
/**
|
|
3981
|
+
* Glow opacity.
|
|
3982
|
+
*/
|
|
3983
|
+
opacity?: number;
|
|
3984
|
+
/**
|
|
3985
|
+
* Glow size in reference pixels at a 720-pixel short edge.
|
|
3986
|
+
*/
|
|
3987
|
+
radius?: number;
|
|
3988
|
+
}
|
|
3989
|
+
/**
|
|
3990
|
+
* Reflection.
|
|
3991
|
+
*/
|
|
3992
|
+
interface Reflection1 {
|
|
3993
|
+
/**
|
|
3994
|
+
* Opacity where the reflection starts.
|
|
3995
|
+
*/
|
|
3996
|
+
opacity?: number;
|
|
3997
|
+
/**
|
|
3998
|
+
* Share of the shape's height reflected.
|
|
3999
|
+
*/
|
|
4000
|
+
size?: number;
|
|
4001
|
+
/**
|
|
4002
|
+
* Gap between the shape and its reflection in reference pixels at a 720-pixel short edge.
|
|
4003
|
+
*/
|
|
4004
|
+
distance?: number;
|
|
4005
|
+
/**
|
|
4006
|
+
* Blur radius in reference pixels at a 720-pixel short edge.
|
|
4007
|
+
*/
|
|
4008
|
+
blur?: number;
|
|
4009
|
+
}
|
|
3063
4010
|
/**
|
|
3064
4011
|
* Visual design system applied to the presentation; individual slides may override fields via Slide.design.
|
|
3065
4012
|
*
|
|
@@ -3100,7 +4047,7 @@ interface Design1 {
|
|
|
3100
4047
|
*/
|
|
3101
4048
|
variant?: (ColorVariantSlot | ColorVariant);
|
|
3102
4049
|
/**
|
|
3103
|
-
* Which logo covers, section dividers and picture bullets draw. Logos live on the organization (Organization.logo); without this field covers and sections draw the primary organization's full logo and picture bullets its icon. A logo reference overrides that: 'var:organization.beta.logo' draws organization beta's logo, and a reference that names a shape ('var:organization.logo.wordmark') draws that shape everywhere this field applies. false draws no logo. A slide's design.logo overrides the deck's; absence inherits. An override naming an organization without a logo draws nothing (validation warns). Placement (reference engines
|
|
4050
|
+
* Which logo covers, section dividers and picture bullets draw. Logos live on the organization (Organization.logo); without this field covers and sections draw the primary organization's full logo and picture bullets its icon. A logo reference overrides that: 'var:organization.beta.logo' draws organization beta's logo, and a reference that names a shape ('var:organization.logo.wordmark') draws that shape everywhere this field applies. false draws no logo. A slide's design.logo overrides the deck's; absence inherits. An override naming an organization without a logo draws nothing (validation warns). Placement (reference engines): on a cover or section slide (no body payload on a heading-only layout such as title, title-subtitle or section-divider, or no layout) the logo is drawn at the top-left of the free area, inside the slide padding and below any header furniture, in a box 56 reference pixels tall and at most four times as wide; the tag/title/subtitle group then centers in the remaining span. Content slides never get an automatic logo; a header or footer zone places one with image: 'var:organization.logo.icon'. composeSlide returns the cover box as geometry.logo.
|
|
3104
4051
|
*/
|
|
3105
4052
|
logo?: (string | false);
|
|
3106
4053
|
/**
|
|
@@ -3116,25 +4063,25 @@ interface Design1 {
|
|
|
3116
4063
|
*/
|
|
3117
4064
|
footer?: (false | HeaderFooter);
|
|
3118
4065
|
/**
|
|
3119
|
-
* Default horizontal alignment for the title heading area (the title and the tag) in resolved layouts. Effective value: the slide's design, then the deck's design, then the theme's design.titleAlignment, then the layout record's design.titleAlignment, then the engine default.
|
|
4066
|
+
* Default horizontal alignment for the title heading area (the title and the tag) in resolved layouts. Effective value: the slide's design, then the deck's design, then the theme's design.titleAlignment, then the layout record's design.titleAlignment, then the engine default. Logical: 'start' is the edge a paragraph starts on (the left for left-to-right text, the right for right-to-left text) and 'end' is the opposite edge.
|
|
3120
4067
|
*/
|
|
3121
|
-
titleAlignment?: ("
|
|
4068
|
+
titleAlignment?: ("start" | "center" | "end");
|
|
3122
4069
|
/**
|
|
3123
|
-
* Default horizontal alignment for body/content regions in resolved layouts. Effective value: the slide's design, then the deck's design, then the theme's design.contentAlignment, then the layout record's design.contentAlignment, then the engine default. The tag follows titleAlignment (and so does a subtitle in the title area, as on a cover) unless the slide's own design sets contentAlignment.
|
|
4070
|
+
* Default horizontal alignment for body/content regions in resolved layouts. Effective value: the slide's design, then the deck's design, then the theme's design.contentAlignment, then the layout record's design.contentAlignment, then the engine default. The tag follows titleAlignment (and so does a subtitle in the title area, as on a cover) unless the slide's own design sets contentAlignment. Logical: 'start' is the edge a paragraph starts on (the left for left-to-right text, the right for right-to-left text) and 'end' is the opposite edge.
|
|
3124
4071
|
*/
|
|
3125
|
-
contentAlignment?: ("
|
|
4072
|
+
contentAlignment?: ("start" | "center" | "end");
|
|
3126
4073
|
/**
|
|
3127
4074
|
* Whether body/content regions are rendered inside a visible card or surface. Effective value: the slide's design, then the deck's design, then the theme's design.contentBox, then the layout record's design.contentBox, then the engine default.
|
|
3128
4075
|
*/
|
|
3129
4076
|
contentBox?: boolean;
|
|
3130
4077
|
/**
|
|
3131
|
-
* Axis along which parallel body content is arranged: 'vertical' is a column, 'horizontal' a row. Effective value: the slide's design, then the deck's design, then the theme's design.contentDirection, then the layout record's design.contentDirection. On a slide with a template layout
|
|
4078
|
+
* Axis along which parallel body content is arranged: 'vertical' is a column, 'horizontal' a row. Effective value: the slide's design, then the deck's design, then the theme's design.contentDirection, then the layout record's design.contentDirection. On a slide with a template layout it turns every flowing region of the slide into one row or one column, below the slide's own composition.mode, columns and weights, which arrange its first primary flowing region. On an automatic slide (and a 0.18 record) it sets the root arrangement mode when no composition.mode is set on the slide or on its layout record. Promoted regions (start, top:start, ...) keep their explicit geometry and nested groups keep their own composition.
|
|
3132
4079
|
*/
|
|
3133
4080
|
contentDirection?: ("horizontal" | "vertical");
|
|
3134
4081
|
/**
|
|
3135
|
-
* Where the primary chart sits relative to supporting content. Effective value: slide design, then deck design, then the layout record's design.chartPrimary. It applies to automatic slides only; a template layout says the same with its regions (chart-beside). When the slide has no promoted regions and no composition.mode of its own, and its root nodes mix at least one chart with other content, the first chart becomes a primary track and the other nodes form one synthetic sub-grid: '
|
|
4082
|
+
* Where the primary chart sits relative to supporting content. Effective value: slide design, then deck design, then the layout record's design.chartPrimary. It applies to automatic slides only; a template layout says the same with its regions (chart-beside). When the slide has no promoted regions and no composition.mode of its own, and its root nodes mix at least one chart with other content, the first chart becomes a primary track and the other nodes form one synthetic sub-grid: 'start'/'end' is a two-track row with the chart on that side (logical: 'start' is the left in a left-to-right deck and the right in a right-to-left one) and 'top'/'bottom' a two-track column, weighted 3:2 in favor of the chart; explicit root columns and weights are ignored while it applies. 'none' (the default) keeps the ordinary automatic grid with equal weight. Automatic composition builds direct content groups; template regions remain authoritative.
|
|
3136
4083
|
*/
|
|
3137
|
-
chartPrimary?: ("none" | "top" | "bottom" | "
|
|
4084
|
+
chartPrimary?: ("none" | "top" | "bottom" | "start" | "end");
|
|
3138
4085
|
/**
|
|
3139
4086
|
* 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.
|
|
3140
4087
|
*/
|
|
@@ -3144,14 +4091,13 @@ interface Design1 {
|
|
|
3144
4091
|
*/
|
|
3145
4092
|
listBullet?: ("character" | "image" | "none");
|
|
3146
4093
|
/**
|
|
3147
|
-
* How list entries are arranged
|
|
4094
|
+
* How list entries are arranged. 'stack' draws each entry's text with its description under it, the entries close together, as before. 'rows' draws ruled rows: a hairline between two first-level entries (the scheme's border neutral, 1 reference pixel), 0.8 em between rows and no bullet (a numbered list keeps its numbers); when every entry has a description and sits at the first level, the labels are bold and, when the widest fits 40% of the list's width on one line, sit in a column beside their descriptions, first baselines aligned, else each description sits under its label. Both engines draw the rules (PowerPoint: native lines). Effective value: the slide's design, then the deck's design, then the theme's design.listStyle, then the layout record's design.listStyle. Without one, a list of two or more first-level entries that each pair a short label (3 words or fewer, no full stop) with a description is drawn as rows when that sets no block of the slide smaller, and every other list is stacked.
|
|
3148
4095
|
*/
|
|
3149
4096
|
listStyle?: ("stack" | "rows");
|
|
3150
4097
|
/**
|
|
3151
|
-
* Draw the slide's template layout mirrored
|
|
4098
|
+
* Draw the slide's template layout mirrored: each row's cells and the column sizes reversed, so a 'beside' layout puts its picture, chart or table at the end. Logical: a right-to-left deck mirrors on top. Binding and reading order do not change. Effective value: the slide's design, then the deck's design, then the layout record's design.mirror, then false. Slides without a template layout ignore it.
|
|
3152
4099
|
*/
|
|
3153
4100
|
mirror?: boolean;
|
|
3154
|
-
[k: string]: unknown;
|
|
3155
4101
|
}
|
|
3156
4102
|
/**
|
|
3157
4103
|
* 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.
|
|
@@ -3286,6 +4232,12 @@ interface DataSourceRef1 {
|
|
|
3286
4232
|
interface Assets {
|
|
3287
4233
|
[k: string]: Asset;
|
|
3288
4234
|
}
|
|
4235
|
+
/**
|
|
4236
|
+
* Optional deck-local icons, keyed by name: an author's or an LLM's own SVG, written once and named by any `icon` of the deck. See docs/icons.md.
|
|
4237
|
+
*/
|
|
4238
|
+
interface Icons {
|
|
4239
|
+
[k: string]: string;
|
|
4240
|
+
}
|
|
3289
4241
|
/**
|
|
3290
4242
|
* 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.
|
|
3291
4243
|
*/
|
|
@@ -3321,6 +4273,7 @@ interface CatalogGroup {
|
|
|
3321
4273
|
audiences?: CatalogRecords5;
|
|
3322
4274
|
purposes?: CatalogRecords6;
|
|
3323
4275
|
tones?: CatalogRecords7;
|
|
4276
|
+
iconSets?: CatalogRecords8;
|
|
3324
4277
|
}
|
|
3325
4278
|
/**
|
|
3326
4279
|
* Layout records keyed by id, each with the fields of https://openpresentation.org/schema/opf-layout/v2. Referenced from Slide.layout.
|
|
@@ -3410,5 +4363,16 @@ interface CatalogRecords7 {
|
|
|
3410
4363
|
[k: string]: unknown;
|
|
3411
4364
|
};
|
|
3412
4365
|
}
|
|
4366
|
+
/**
|
|
4367
|
+
* Icon-set records keyed by set id, each with the fields of https://openpresentation.org/schema/opf-icon-set/v1, holding only the icons the document uses (no licenseText or tags). Referenced from an icon as "<set>:<name>".
|
|
4368
|
+
*/
|
|
4369
|
+
interface CatalogRecords8 {
|
|
4370
|
+
/**
|
|
4371
|
+
* One embedded record: the fields of the kind's companion schema without '$schema' and 'id'.
|
|
4372
|
+
*/
|
|
4373
|
+
[k: string]: {
|
|
4374
|
+
[k: string]: unknown;
|
|
4375
|
+
};
|
|
4376
|
+
}
|
|
3413
4377
|
|
|
3414
4378
|
export type { Chart as C, Presentation as P };
|