@openpresentation/opf 0.33.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/browser.js +20 -19
- package/dist/catalog-refs-CoIrOdAw.d.ts +937 -0
- package/dist/{catalog-schemas-CQTM-G8p.d.ts → catalog-schemas-FjLRPtjB.d.ts} +1 -1
- package/dist/{chart-data-oIZQlFGi.d.ts → chart-data-B_k-WTex.d.ts} +7 -4
- package/dist/{chunk-XIOC6N5P.js → chunk-244OPLAV.js} +1 -1
- package/dist/{chunk-S5QRGMUQ.js → chunk-2HX4BGAS.js} +6 -6
- package/dist/{chunk-Y557TYML.js → chunk-36DLVJGW.js} +19 -16
- package/dist/{chunk-VKEYV3ZK.js → chunk-3THGTDL2.js} +2 -2
- package/dist/{chunk-ABWEUXLV.js → chunk-42JBXJKW.js} +117 -21
- package/dist/chunk-BLCDUM7B.js +7 -0
- package/dist/{chunk-OPVJLL7H.js → chunk-CJVKOJ6B.js} +11841 -8687
- package/dist/{chunk-BI4ERFAA.js → chunk-DQ7QYOUV.js} +48 -13
- package/dist/{chunk-KVHNDHVS.js → chunk-F6BXO4AI.js} +1 -1
- package/dist/{chunk-UK3J6FSU.js → chunk-FAXO3SUE.js} +858 -268
- package/dist/{chunk-XANW7MB7.js → chunk-FIQMAIZV.js} +4 -4
- package/dist/{chunk-PJSPHHRK.js → chunk-FK5XG742.js} +3 -16
- package/dist/{chunk-R6C6BQOG.js → chunk-HHVQ2SDT.js} +1 -1
- package/dist/{chunk-DAS75LGR.js → chunk-HUGVYHZ2.js} +4 -4
- package/dist/{chunk-QF5RSRXU.js → chunk-LCT5ZV3Q.js} +750 -199
- package/dist/chunk-NLJFNCZ4.js +1560 -0
- package/dist/{chunk-VSBZC2PR.js → chunk-QGJVOPLG.js} +3 -3
- package/dist/{chunk-E7WQHMCL.js → chunk-QGTJF7HV.js} +16 -14
- package/dist/{chunk-VMBLNCX2.js → chunk-RUV7CCE6.js} +117 -30
- package/dist/{chunk-YS333HLA.js → chunk-U7TYSPYM.js} +2 -2
- package/dist/chunk-UJZN2ZH6.js +1 -0
- package/dist/{chunk-IJXKVM4W.js → chunk-VDZXNNZF.js} +1 -1
- package/dist/{chunk-YYT6N7AI.js → chunk-WCPDN7AY.js} +1 -1
- package/dist/{chunk-QD6DPS7X.js → chunk-WMFT5R7I.js} +2 -2
- package/dist/{chunk-INIMUBSE.js → chunk-XJUMFH33.js} +1 -1
- package/dist/{composition-zMiIgzip.d.ts → composition-CvtvgBDE.d.ts} +1360 -1531
- package/dist/composition.d.ts +3 -3
- package/dist/composition.js +2 -1
- package/dist/{conversion-mNth9XKm.d.ts → conversion-B_5AKTYQ.d.ts} +25 -7
- package/dist/conversion-CMBGOTAC.js +25 -0
- package/dist/convert.d.ts +4 -4
- package/dist/convert.js +15 -11
- package/dist/data.d.ts +2 -2
- package/dist/data.js +3 -2
- package/dist/{deck-report-BSlRiR0_.d.ts → deck-report-BVlQZ42f.d.ts} +3 -3
- package/dist/deck.d.ts +6 -6
- package/dist/deck.js +12 -11
- package/dist/diagram-engine-eager.js +5 -1
- package/dist/diagram-engine-lazy.js +13 -0
- package/dist/diagram-plantuml-XRZ6VAOL.js +3 -0
- package/dist/diff.js +5 -4
- package/dist/docs.js +64 -52
- package/dist/examples.js +4070 -1083
- package/dist/font-policy.js +1 -1
- package/dist/format.js +2 -2
- package/dist/ids.js +5 -4
- package/dist/index.d.ts +18 -16
- package/dist/index.js +35 -24
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.js +9 -8
- package/dist/node-engine.d.ts +43 -11
- package/dist/node-engine.js +45 -26
- package/dist/{pagination-CYzNMazO.d.ts → pagination-CZQQYk7L.d.ts} +4 -3
- package/dist/pagination.d.ts +4 -4
- package/dist/pagination.js +5 -4
- package/dist/patch.js +4 -3
- package/dist/precompiled.js +2 -2
- package/dist/{presentation-CXhfpB_z.d.ts → presentation-s9262acV.d.ts} +357 -230
- package/dist/repo-readme.js +1 -1
- package/dist/schema-engine-ajv.js +1 -1
- package/dist/schema-engine-precompiled.js +2 -2
- package/dist/schema.d.ts +3 -3
- package/dist/schema.js +4 -3
- package/dist/schemas.d.ts +16 -0
- package/dist/schemas.js +1 -1
- package/dist/shape-engine-eager.js +2 -2
- package/dist/shape-engine-lazy.js +1 -1
- package/dist/{shape-engine-module-BK7JNEUV.js → shape-engine-module-N74FCHGY.js} +2 -2
- package/dist/shape-geometry.js +1 -1
- package/dist/source.d.ts +10 -5
- package/dist/source.js +11 -10
- package/dist/spec/reference/engine-vocabularies.json +135 -0
- package/dist/spec/reference/font-policy.json +3 -16
- package/dist/spec/reference/preset-geometry.json +3 -3
- package/dist/spec/schemas/icon-set.schema.json +1 -1
- package/dist/spec/schemas/layout.schema.json +71 -25
- package/dist/spec/schemas/opf.schema.json +540 -168
- package/dist/spec/schemas/theme.schema.json +11 -5
- package/dist/types.d.ts +81 -73
- package/dist/{validation-types-COwTel3H.d.ts → validation-types-CYbsUuZ9.d.ts} +8 -5
- package/dist/validator.d.ts +34 -7
- package/dist/validator.js +4 -3
- package/dist/yaml.d.ts +2 -2
- package/dist/yaml.js +8 -7
- package/package.json +6 -6
- package/dist/catalog-refs-B_0_vZg0.d.ts +0 -134
- package/dist/chunk-ZXOIGUHX.js +0 -1
- package/dist/conversion-POHRAMSN.js +0 -24
|
@@ -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;
|
|
@@ -235,7 +232,7 @@ type ImageSource = string;
|
|
|
235
232
|
*/
|
|
236
233
|
type Background = (ThemeBackground | SolidBackground | GradientBackground | ImageBackground | PatternBackground);
|
|
237
234
|
/**
|
|
238
|
-
* A ColorRef made lighter or darker
|
|
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.
|
|
239
236
|
*
|
|
240
237
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
241
238
|
* via the `definition` "ColorTransform".
|
|
@@ -326,7 +323,7 @@ type TextRun = (string | {
|
|
|
326
323
|
*/
|
|
327
324
|
color?: (string | ColorTransform);
|
|
328
325
|
/**
|
|
329
|
-
*
|
|
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.
|
|
330
327
|
*/
|
|
331
328
|
fontSize?: number;
|
|
332
329
|
/**
|
|
@@ -338,9 +335,9 @@ type TextRun = (string | {
|
|
|
338
335
|
*/
|
|
339
336
|
code?: boolean;
|
|
340
337
|
/**
|
|
341
|
-
* 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.
|
|
342
339
|
*/
|
|
343
|
-
|
|
340
|
+
language?: string;
|
|
344
341
|
/**
|
|
345
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.
|
|
346
343
|
*/
|
|
@@ -361,7 +358,6 @@ type TextRun = (string | {
|
|
|
361
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.
|
|
362
359
|
*/
|
|
363
360
|
footnote?: (string | [TextRun, ...(TextRun)[]]);
|
|
364
|
-
[k: string]: unknown;
|
|
365
361
|
});
|
|
366
362
|
/**
|
|
367
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.
|
|
@@ -383,7 +379,7 @@ type ListItem = (string | TextRun[] | {
|
|
|
383
379
|
*/
|
|
384
380
|
level?: number;
|
|
385
381
|
/**
|
|
386
|
-
* An icon drawn on a chip at the start of the entry, in place of its bullet
|
|
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.
|
|
387
383
|
*/
|
|
388
384
|
icon?: string;
|
|
389
385
|
/**
|
|
@@ -436,7 +432,7 @@ type DatasetFields = [string, ...(string)[]];
|
|
|
436
432
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
437
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).
|
|
438
434
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
439
|
-
* - Lighter or darker
|
|
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.
|
|
440
436
|
*
|
|
441
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.
|
|
442
438
|
*
|
|
@@ -482,7 +478,7 @@ type ContentPayload = {
|
|
|
482
478
|
[k: string]: unknown;
|
|
483
479
|
};
|
|
484
480
|
/**
|
|
485
|
-
* 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.
|
|
486
482
|
*/
|
|
487
483
|
region?: string;
|
|
488
484
|
/**
|
|
@@ -506,19 +502,19 @@ type ContentPayload = {
|
|
|
506
502
|
*/
|
|
507
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)]);
|
|
508
504
|
/**
|
|
509
|
-
* 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'.
|
|
510
506
|
*/
|
|
511
507
|
columns?: ("auto" | number);
|
|
512
508
|
/**
|
|
513
|
-
*
|
|
509
|
+
* Source for an image item.
|
|
514
510
|
*/
|
|
515
511
|
image?: (string | {
|
|
516
512
|
/**
|
|
517
|
-
*
|
|
513
|
+
* Image source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
518
514
|
*/
|
|
519
515
|
src: string;
|
|
520
516
|
/**
|
|
521
|
-
* Alternative text for
|
|
517
|
+
* Alternative text for the image.
|
|
522
518
|
*/
|
|
523
519
|
alt?: string;
|
|
524
520
|
/**
|
|
@@ -533,6 +529,10 @@ type ContentPayload = {
|
|
|
533
529
|
* Optional MIME media type when it cannot be inferred from src.
|
|
534
530
|
*/
|
|
535
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[];
|
|
536
536
|
});
|
|
537
537
|
/**
|
|
538
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.
|
|
@@ -544,7 +544,7 @@ type ContentPayload = {
|
|
|
544
544
|
*/
|
|
545
545
|
aspectRatio?: number;
|
|
546
546
|
/**
|
|
547
|
-
* The preset geometry. Without 'image' it makes the block a shape block
|
|
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
548
|
*/
|
|
549
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
550
|
/**
|
|
@@ -556,7 +556,7 @@ type ContentPayload = {
|
|
|
556
556
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
557
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
558
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
559
|
-
* - Lighter or darker
|
|
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
560
|
*
|
|
561
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
562
|
*/
|
|
@@ -667,7 +667,7 @@ type ContentPayload = {
|
|
|
667
667
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
668
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
669
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
670
|
-
* - Lighter or darker
|
|
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
671
|
*
|
|
672
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
673
|
*/
|
|
@@ -696,12 +696,12 @@ type ContentPayload = {
|
|
|
696
696
|
innerShadow?: InnerShadow;
|
|
697
697
|
glow?: Glow;
|
|
698
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.
|
|
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
700
|
*/
|
|
701
701
|
softEdge?: number;
|
|
702
702
|
reflection?: Reflection;
|
|
703
703
|
/**
|
|
704
|
-
* Shape blocks only. Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge.
|
|
704
|
+
* Shape blocks only. Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge.
|
|
705
705
|
*/
|
|
706
706
|
blur?: number;
|
|
707
707
|
/**
|
|
@@ -792,7 +792,7 @@ type ContentPayload = {
|
|
|
792
792
|
events: [TimelineEvent, ...(TimelineEvent)[]];
|
|
793
793
|
});
|
|
794
794
|
/**
|
|
795
|
-
* 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'.
|
|
796
796
|
*/
|
|
797
797
|
diagram?: (string | Diagram);
|
|
798
798
|
/**
|
|
@@ -808,9 +808,9 @@ type ContentPayload = {
|
|
|
808
808
|
*/
|
|
809
809
|
position?: ("below" | "above");
|
|
810
810
|
/**
|
|
811
|
-
* 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.
|
|
812
812
|
*/
|
|
813
|
-
align?: ("
|
|
813
|
+
align?: ("start" | "center" | "end");
|
|
814
814
|
});
|
|
815
815
|
/**
|
|
816
816
|
* Ordered children of a group. Each child is a leaf or another group.
|
|
@@ -824,10 +824,54 @@ type ContentPayload = {
|
|
|
824
824
|
*/
|
|
825
825
|
emphasis?: boolean;
|
|
826
826
|
/**
|
|
827
|
-
* Groups only
|
|
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
828
|
*/
|
|
829
829
|
icon?: string;
|
|
830
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);
|
|
874
|
+
};
|
|
831
875
|
/**
|
|
832
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.
|
|
833
877
|
*
|
|
@@ -991,7 +1035,6 @@ interface Organization {
|
|
|
991
1035
|
*/
|
|
992
1036
|
role?: ("primary" | "partner" | "client" | "sponsor" | "host");
|
|
993
1037
|
socials?: Socials;
|
|
994
|
-
[k: string]: unknown;
|
|
995
1038
|
}
|
|
996
1039
|
/**
|
|
997
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'.
|
|
@@ -1291,7 +1334,6 @@ interface Speaker {
|
|
|
1291
1334
|
*/
|
|
1292
1335
|
organizationId?: string;
|
|
1293
1336
|
socials?: Socials1;
|
|
1294
|
-
[k: string]: unknown;
|
|
1295
1337
|
}
|
|
1296
1338
|
/**
|
|
1297
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).
|
|
@@ -1314,7 +1356,7 @@ interface Language {
|
|
|
1314
1356
|
*/
|
|
1315
1357
|
name?: string;
|
|
1316
1358
|
/**
|
|
1317
|
-
* 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.
|
|
1318
1360
|
*/
|
|
1319
1361
|
bcp47: string;
|
|
1320
1362
|
/**
|
|
@@ -1326,7 +1368,7 @@ interface Language {
|
|
|
1326
1368
|
*/
|
|
1327
1369
|
code?: string;
|
|
1328
1370
|
/**
|
|
1329
|
-
* 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.
|
|
1330
1372
|
*/
|
|
1331
1373
|
direction?: ("ltr" | "rtl");
|
|
1332
1374
|
/**
|
|
@@ -1353,7 +1395,6 @@ interface Language {
|
|
|
1353
1395
|
* Free-form labels for filtering and search.
|
|
1354
1396
|
*/
|
|
1355
1397
|
tags?: string[];
|
|
1356
|
-
[k: string]: unknown;
|
|
1357
1398
|
}
|
|
1358
1399
|
/**
|
|
1359
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.
|
|
@@ -1392,7 +1433,7 @@ interface Design {
|
|
|
1392
1433
|
*/
|
|
1393
1434
|
variant?: (ColorVariantSlot | ColorVariant);
|
|
1394
1435
|
/**
|
|
1395
|
-
* 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.
|
|
1396
1437
|
*/
|
|
1397
1438
|
logo?: (string | false);
|
|
1398
1439
|
/**
|
|
@@ -1408,25 +1449,25 @@ interface Design {
|
|
|
1408
1449
|
*/
|
|
1409
1450
|
footer?: (false | HeaderFooter);
|
|
1410
1451
|
/**
|
|
1411
|
-
* 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.
|
|
1412
1453
|
*/
|
|
1413
|
-
titleAlignment?: ("
|
|
1454
|
+
titleAlignment?: ("start" | "center" | "end");
|
|
1414
1455
|
/**
|
|
1415
|
-
* 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.
|
|
1416
1457
|
*/
|
|
1417
|
-
contentAlignment?: ("
|
|
1458
|
+
contentAlignment?: ("start" | "center" | "end");
|
|
1418
1459
|
/**
|
|
1419
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.
|
|
1420
1461
|
*/
|
|
1421
1462
|
contentBox?: boolean;
|
|
1422
1463
|
/**
|
|
1423
|
-
* 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.
|
|
1424
1465
|
*/
|
|
1425
1466
|
contentDirection?: ("horizontal" | "vertical");
|
|
1426
1467
|
/**
|
|
1427
|
-
* 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.
|
|
1428
1469
|
*/
|
|
1429
|
-
chartPrimary?: ("none" | "top" | "bottom" | "
|
|
1470
|
+
chartPrimary?: ("none" | "top" | "bottom" | "start" | "end");
|
|
1430
1471
|
/**
|
|
1431
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.
|
|
1432
1473
|
*/
|
|
@@ -1436,14 +1477,13 @@ interface Design {
|
|
|
1436
1477
|
*/
|
|
1437
1478
|
listBullet?: ("character" | "image" | "none");
|
|
1438
1479
|
/**
|
|
1439
|
-
* 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.
|
|
1440
1481
|
*/
|
|
1441
1482
|
listStyle?: ("stack" | "rows");
|
|
1442
1483
|
/**
|
|
1443
|
-
* 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.
|
|
1444
1485
|
*/
|
|
1445
1486
|
mirror?: boolean;
|
|
1446
|
-
[k: string]: unknown;
|
|
1447
1487
|
}
|
|
1448
1488
|
/**
|
|
1449
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.
|
|
@@ -1458,6 +1498,10 @@ interface Design {
|
|
|
1458
1498
|
* via the `definition` "ColorScheme".
|
|
1459
1499
|
*/
|
|
1460
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;
|
|
1461
1505
|
/**
|
|
1462
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.
|
|
1463
1507
|
*/
|
|
@@ -1538,7 +1582,6 @@ interface ColorScheme {
|
|
|
1538
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).
|
|
1539
1583
|
*/
|
|
1540
1584
|
textSecondary?: string;
|
|
1541
|
-
[k: string]: unknown;
|
|
1542
1585
|
}
|
|
1543
1586
|
/**
|
|
1544
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.
|
|
@@ -1619,7 +1662,6 @@ interface FontScheme {
|
|
|
1619
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.
|
|
1620
1663
|
*/
|
|
1621
1664
|
code?: string;
|
|
1622
|
-
[k: string]: unknown;
|
|
1623
1665
|
}
|
|
1624
1666
|
/**
|
|
1625
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.
|
|
@@ -1637,7 +1679,6 @@ interface Dimensions {
|
|
|
1637
1679
|
* Custom slide height in inches; overrides the preset height when provided.
|
|
1638
1680
|
*/
|
|
1639
1681
|
heightInches?: number;
|
|
1640
|
-
[k: string]: unknown;
|
|
1641
1682
|
}
|
|
1642
1683
|
/**
|
|
1643
1684
|
* Theme-controlled PowerPoint slide background. The slot is resolved through the active color scheme and remains theme-aware.
|
|
@@ -1651,7 +1692,10 @@ interface ThemeBackground {
|
|
|
1651
1692
|
*/
|
|
1652
1693
|
type: "theme";
|
|
1653
1694
|
slot: ThemeBackgroundSlot;
|
|
1654
|
-
|
|
1695
|
+
/**
|
|
1696
|
+
* Background opacity from 0 (fully transparent) to 1 (fully opaque). Default 1; the selected theme slot remains unchanged.
|
|
1697
|
+
*/
|
|
1698
|
+
opacity?: number;
|
|
1655
1699
|
}
|
|
1656
1700
|
/**
|
|
1657
1701
|
* Fixed solid slide background fill.
|
|
@@ -1672,7 +1716,6 @@ interface SolidBackground {
|
|
|
1672
1716
|
* Background opacity from 0 (fully transparent) to 1 (fully opaque).
|
|
1673
1717
|
*/
|
|
1674
1718
|
opacity?: number;
|
|
1675
|
-
[k: string]: unknown;
|
|
1676
1719
|
}
|
|
1677
1720
|
/**
|
|
1678
1721
|
* Fixed gradient slide background fill.
|
|
@@ -1690,7 +1733,7 @@ interface GradientBackground {
|
|
|
1690
1733
|
*/
|
|
1691
1734
|
type: "gradient";
|
|
1692
1735
|
/**
|
|
1693
|
-
* 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.
|
|
1694
1737
|
*/
|
|
1695
1738
|
gradient: {
|
|
1696
1739
|
/**
|
|
@@ -1704,7 +1747,7 @@ interface GradientBackground {
|
|
|
1704
1747
|
*
|
|
1705
1748
|
* Items: Color stop along the gradient.
|
|
1706
1749
|
*/
|
|
1707
|
-
stops
|
|
1750
|
+
stops: [
|
|
1708
1751
|
{
|
|
1709
1752
|
/**
|
|
1710
1753
|
* Stop color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
@@ -1714,7 +1757,6 @@ interface GradientBackground {
|
|
|
1714
1757
|
* Stop position along the gradient, from 0 (start) to 1 (end).
|
|
1715
1758
|
*/
|
|
1716
1759
|
position: number;
|
|
1717
|
-
[k: string]: unknown;
|
|
1718
1760
|
},
|
|
1719
1761
|
{
|
|
1720
1762
|
/**
|
|
@@ -1725,7 +1767,6 @@ interface GradientBackground {
|
|
|
1725
1767
|
* Stop position along the gradient, from 0 (start) to 1 (end).
|
|
1726
1768
|
*/
|
|
1727
1769
|
position: number;
|
|
1728
|
-
[k: string]: unknown;
|
|
1729
1770
|
},
|
|
1730
1771
|
...({
|
|
1731
1772
|
/**
|
|
@@ -1736,16 +1777,13 @@ interface GradientBackground {
|
|
|
1736
1777
|
* Stop position along the gradient, from 0 (start) to 1 (end).
|
|
1737
1778
|
*/
|
|
1738
1779
|
position: number;
|
|
1739
|
-
[k: string]: unknown;
|
|
1740
1780
|
})[]
|
|
1741
1781
|
];
|
|
1742
|
-
[k: string]: unknown;
|
|
1743
1782
|
};
|
|
1744
1783
|
/**
|
|
1745
1784
|
* Background opacity from 0 (fully transparent) to 1 (fully opaque).
|
|
1746
1785
|
*/
|
|
1747
1786
|
opacity?: number;
|
|
1748
|
-
[k: string]: unknown;
|
|
1749
1787
|
}
|
|
1750
1788
|
/**
|
|
1751
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.
|
|
@@ -1755,7 +1793,7 @@ interface GradientBackground {
|
|
|
1755
1793
|
*/
|
|
1756
1794
|
interface ImageBackground {
|
|
1757
1795
|
/**
|
|
1758
|
-
* 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.
|
|
1759
1797
|
*/
|
|
1760
1798
|
tone?: ("dark" | "light");
|
|
1761
1799
|
/**
|
|
@@ -1830,9 +1868,9 @@ interface Overlay {
|
|
|
1830
1868
|
*/
|
|
1831
1869
|
opacity: number;
|
|
1832
1870
|
/**
|
|
1833
|
-
* 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.
|
|
1834
1872
|
*/
|
|
1835
|
-
edge?: ("top" | "bottom" | "
|
|
1873
|
+
edge?: ("top" | "bottom" | "start" | "end");
|
|
1836
1874
|
/**
|
|
1837
1875
|
* Band share of the frame for an edge overlay. Default 0.3. Ignored without edge.
|
|
1838
1876
|
*/
|
|
@@ -1865,13 +1903,11 @@ interface PatternBackground {
|
|
|
1865
1903
|
* Background color behind the pattern: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1866
1904
|
*/
|
|
1867
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);
|
|
1868
|
-
[k: string]: unknown;
|
|
1869
1906
|
};
|
|
1870
1907
|
/**
|
|
1871
1908
|
* Background opacity from 0 (fully transparent) to 1 (fully opaque).
|
|
1872
1909
|
*/
|
|
1873
1910
|
opacity?: number;
|
|
1874
|
-
[k: string]: unknown;
|
|
1875
1911
|
}
|
|
1876
1912
|
/**
|
|
1877
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.
|
|
@@ -1893,19 +1929,18 @@ interface ColorVariant {
|
|
|
1893
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")];
|
|
1894
1930
|
}
|
|
1895
1931
|
/**
|
|
1896
|
-
* 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.
|
|
1897
1933
|
*
|
|
1898
1934
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1899
1935
|
* via the `definition` "HeaderFooter".
|
|
1900
1936
|
*/
|
|
1901
1937
|
interface HeaderFooter {
|
|
1902
|
-
|
|
1938
|
+
start?: HeaderFooterItem;
|
|
1903
1939
|
center?: HeaderFooterItem1;
|
|
1904
|
-
|
|
1905
|
-
[k: string]: unknown;
|
|
1940
|
+
end?: HeaderFooterItem2;
|
|
1906
1941
|
}
|
|
1907
1942
|
/**
|
|
1908
|
-
*
|
|
1943
|
+
* Content at the start edge, aligned to it.
|
|
1909
1944
|
*/
|
|
1910
1945
|
interface HeaderFooterItem {
|
|
1911
1946
|
/**
|
|
@@ -1997,7 +2032,7 @@ interface HeaderFooterItem1 {
|
|
|
1997
2032
|
socials?: boolean;
|
|
1998
2033
|
}
|
|
1999
2034
|
/**
|
|
2000
|
-
*
|
|
2035
|
+
* Content at the end edge, aligned to it.
|
|
2001
2036
|
*/
|
|
2002
2037
|
interface HeaderFooterItem2 {
|
|
2003
2038
|
/**
|
|
@@ -2323,7 +2358,7 @@ interface ListVariable {
|
|
|
2323
2358
|
example?: string[];
|
|
2324
2359
|
}
|
|
2325
2360
|
/**
|
|
2326
|
-
* 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.
|
|
2327
2362
|
*
|
|
2328
2363
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2329
2364
|
* via the `definition` "Slide".
|
|
@@ -2333,6 +2368,10 @@ interface Slide {
|
|
|
2333
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.
|
|
2334
2369
|
*/
|
|
2335
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);
|
|
2336
2375
|
/**
|
|
2337
2376
|
* Optional full-slide content kind. When omitted, engines infer the kind from root payload fields.
|
|
2338
2377
|
*/
|
|
@@ -2354,7 +2393,7 @@ interface Slide {
|
|
|
2354
2393
|
*/
|
|
2355
2394
|
subtitle?: (string | TextRun[]);
|
|
2356
2395
|
/**
|
|
2357
|
-
* 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.
|
|
2358
2397
|
*/
|
|
2359
2398
|
tag?: (string | TextRun[]);
|
|
2360
2399
|
/**
|
|
@@ -2374,15 +2413,15 @@ interface Slide {
|
|
|
2374
2413
|
*/
|
|
2375
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)]);
|
|
2376
2415
|
/**
|
|
2377
|
-
*
|
|
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'.
|
|
2378
2417
|
*/
|
|
2379
2418
|
image?: (string | {
|
|
2380
2419
|
/**
|
|
2381
|
-
*
|
|
2420
|
+
* Image source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
2382
2421
|
*/
|
|
2383
2422
|
src: string;
|
|
2384
2423
|
/**
|
|
2385
|
-
* Alternative text for
|
|
2424
|
+
* Alternative text for the image.
|
|
2386
2425
|
*/
|
|
2387
2426
|
alt?: string;
|
|
2388
2427
|
/**
|
|
@@ -2397,6 +2436,10 @@ interface Slide {
|
|
|
2397
2436
|
* Optional MIME media type when it cannot be inferred from src.
|
|
2398
2437
|
*/
|
|
2399
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[];
|
|
2400
2443
|
});
|
|
2401
2444
|
/**
|
|
2402
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.
|
|
@@ -2457,7 +2500,7 @@ interface Slide {
|
|
|
2457
2500
|
events: [TimelineEvent, ...(TimelineEvent)[]];
|
|
2458
2501
|
});
|
|
2459
2502
|
/**
|
|
2460
|
-
* 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'.
|
|
2461
2504
|
*/
|
|
2462
2505
|
diagram?: (string | Diagram);
|
|
2463
2506
|
/**
|
|
@@ -2473,70 +2516,70 @@ interface Slide {
|
|
|
2473
2516
|
*/
|
|
2474
2517
|
position?: ("below" | "above");
|
|
2475
2518
|
/**
|
|
2476
|
-
* 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.
|
|
2477
2520
|
*/
|
|
2478
|
-
align?: ("
|
|
2521
|
+
align?: ("start" | "center" | "end");
|
|
2479
2522
|
});
|
|
2480
2523
|
/**
|
|
2481
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.
|
|
2482
2525
|
*/
|
|
2483
2526
|
blocks?: ContentPayload[];
|
|
2484
2527
|
/**
|
|
2485
|
-
*
|
|
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.
|
|
2486
2529
|
*/
|
|
2487
2530
|
shapes?: OverlayShape[];
|
|
2488
2531
|
/**
|
|
2489
2532
|
* Slide-level design applied on top of the deck-wide design.
|
|
2490
2533
|
*/
|
|
2491
2534
|
design?: Design1;
|
|
2492
|
-
|
|
2535
|
+
start?: ContentPayload;
|
|
2493
2536
|
center?: ContentPayload;
|
|
2494
|
-
|
|
2495
|
-
"
|
|
2496
|
-
"center+
|
|
2497
|
-
"
|
|
2537
|
+
end?: ContentPayload;
|
|
2538
|
+
"start+center"?: ContentPayload;
|
|
2539
|
+
"center+end"?: ContentPayload;
|
|
2540
|
+
"start+center+end"?: ContentPayload;
|
|
2498
2541
|
top?: ContentPayload;
|
|
2499
2542
|
middle?: ContentPayload;
|
|
2500
2543
|
bottom?: ContentPayload;
|
|
2501
2544
|
"top+middle"?: ContentPayload;
|
|
2502
2545
|
"middle+bottom"?: ContentPayload;
|
|
2503
2546
|
"top+middle+bottom"?: ContentPayload;
|
|
2504
|
-
"top:
|
|
2547
|
+
"top:start"?: ContentPayload;
|
|
2505
2548
|
"top:center"?: ContentPayload;
|
|
2506
|
-
"top:
|
|
2507
|
-
"top:
|
|
2508
|
-
"top:center+
|
|
2509
|
-
"top:
|
|
2510
|
-
"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;
|
|
2511
2554
|
"middle:center"?: ContentPayload;
|
|
2512
|
-
"middle:
|
|
2513
|
-
"middle:
|
|
2514
|
-
"middle:center+
|
|
2515
|
-
"middle:
|
|
2516
|
-
"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;
|
|
2517
2560
|
"bottom:center"?: ContentPayload;
|
|
2518
|
-
"bottom:
|
|
2519
|
-
"bottom:
|
|
2520
|
-
"bottom:center+
|
|
2521
|
-
"bottom:
|
|
2522
|
-
"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;
|
|
2523
2566
|
"top+middle:center"?: ContentPayload;
|
|
2524
|
-
"top+middle:
|
|
2525
|
-
"top+middle:
|
|
2526
|
-
"top+middle:center+
|
|
2527
|
-
"top+middle:
|
|
2528
|
-
"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;
|
|
2529
2572
|
"middle+bottom:center"?: ContentPayload;
|
|
2530
|
-
"middle+bottom:
|
|
2531
|
-
"middle+bottom:
|
|
2532
|
-
"middle+bottom:center+
|
|
2533
|
-
"middle+bottom:
|
|
2534
|
-
"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;
|
|
2535
2578
|
"top+middle+bottom:center"?: ContentPayload;
|
|
2536
|
-
"top+middle+bottom:
|
|
2537
|
-
"top+middle+bottom:
|
|
2538
|
-
"top+middle+bottom:center+
|
|
2539
|
-
"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;
|
|
2540
2583
|
/**
|
|
2541
2584
|
* Speaker notes shown in presenter view.
|
|
2542
2585
|
*/
|
|
@@ -2577,6 +2620,32 @@ interface Numbering {
|
|
|
2577
2620
|
*/
|
|
2578
2621
|
suffix?: ("period" | "paren" | "paren-both");
|
|
2579
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
|
+
}
|
|
2580
2649
|
/**
|
|
2581
2650
|
* Full-slide chart payload. Presence of this field infers type 'chart'.
|
|
2582
2651
|
*/
|
|
@@ -2597,18 +2666,22 @@ interface Chart {
|
|
|
2597
2666
|
*/
|
|
2598
2667
|
line?: [string, ...(string)[]];
|
|
2599
2668
|
/**
|
|
2600
|
-
* 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.
|
|
2601
2670
|
*
|
|
2602
2671
|
* @minItems 1
|
|
2603
2672
|
*/
|
|
2604
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[];
|
|
2605
2678
|
axisTitles?: ChartAxisTitles;
|
|
2606
2679
|
/**
|
|
2607
|
-
* 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.
|
|
2608
2681
|
*/
|
|
2609
2682
|
legend?: ("none" | "top" | "bottom" | "left" | "right");
|
|
2610
2683
|
/**
|
|
2611
|
-
* 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.
|
|
2612
2685
|
*/
|
|
2613
2686
|
dataLabels?: (boolean | ChartDataLabels);
|
|
2614
2687
|
/**
|
|
@@ -2725,7 +2798,48 @@ interface ChartMapping {
|
|
|
2725
2798
|
series?: [string, ...(string)[]];
|
|
2726
2799
|
}
|
|
2727
2800
|
/**
|
|
2728
|
-
*
|
|
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.
|
|
2729
2843
|
*/
|
|
2730
2844
|
interface ChartAxisTitles {
|
|
2731
2845
|
/**
|
|
@@ -2733,11 +2847,11 @@ interface ChartAxisTitles {
|
|
|
2733
2847
|
*/
|
|
2734
2848
|
category?: string;
|
|
2735
2849
|
/**
|
|
2736
|
-
* 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).
|
|
2737
2851
|
*/
|
|
2738
2852
|
value?: string;
|
|
2739
2853
|
/**
|
|
2740
|
-
* 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'.
|
|
2741
2855
|
*/
|
|
2742
2856
|
secondary?: string;
|
|
2743
2857
|
}
|
|
@@ -2755,7 +2869,7 @@ interface ChartDataLabels {
|
|
|
2755
2869
|
*/
|
|
2756
2870
|
content?: [("value" | "percent" | "category"), ...(("value" | "percent" | "category"))[]];
|
|
2757
2871
|
/**
|
|
2758
|
-
* 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.
|
|
2759
2873
|
*/
|
|
2760
2874
|
position?: ("auto" | "center" | "inside-end" | "inside-base" | "outside-end" | "above" | "below" | "left" | "right");
|
|
2761
2875
|
/**
|
|
@@ -2764,21 +2878,17 @@ interface ChartDataLabels {
|
|
|
2764
2878
|
separator?: string;
|
|
2765
2879
|
}
|
|
2766
2880
|
/**
|
|
2767
|
-
* 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.
|
|
2768
2882
|
*/
|
|
2769
2883
|
interface ChartHighlight {
|
|
2770
2884
|
/**
|
|
2771
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.
|
|
2772
|
-
*
|
|
2773
|
-
* @minItems 1
|
|
2774
2886
|
*/
|
|
2775
|
-
series?:
|
|
2887
|
+
series?: string[];
|
|
2776
2888
|
/**
|
|
2777
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.
|
|
2778
|
-
*
|
|
2779
|
-
* @minItems 1
|
|
2780
2890
|
*/
|
|
2781
|
-
categories?:
|
|
2891
|
+
categories?: string[];
|
|
2782
2892
|
}
|
|
2783
2893
|
/**
|
|
2784
2894
|
* Full-slide table payload. Presence of this field infers type 'table'.
|
|
@@ -2848,7 +2958,7 @@ interface TableCellStyle {
|
|
|
2848
2958
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
2849
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).
|
|
2850
2960
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
2851
|
-
* - Lighter or darker
|
|
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.
|
|
2852
2962
|
*
|
|
2853
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.
|
|
2854
2964
|
*/
|
|
@@ -2858,7 +2968,7 @@ interface TableCellStyle {
|
|
|
2858
2968
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
2859
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).
|
|
2860
2970
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
2861
|
-
* - Lighter or darker
|
|
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.
|
|
2862
2972
|
*
|
|
2863
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.
|
|
2864
2974
|
*/
|
|
@@ -2868,9 +2978,9 @@ interface TableCellStyle {
|
|
|
2868
2978
|
*/
|
|
2869
2979
|
bold?: boolean;
|
|
2870
2980
|
/**
|
|
2871
|
-
* 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.
|
|
2872
2982
|
*/
|
|
2873
|
-
align?: ("
|
|
2983
|
+
align?: ("start" | "center" | "end");
|
|
2874
2984
|
/**
|
|
2875
2985
|
* Vertical alignment inside the padded cell box.
|
|
2876
2986
|
*/
|
|
@@ -2880,10 +2990,74 @@ interface TableCellStyle {
|
|
|
2880
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.
|
|
2881
2991
|
*/
|
|
2882
2992
|
borders?: {
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
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
|
+
});
|
|
2887
3061
|
};
|
|
2888
3062
|
}
|
|
2889
3063
|
/**
|
|
@@ -2898,32 +3072,6 @@ interface TableCellPadding {
|
|
|
2898
3072
|
bottom?: number;
|
|
2899
3073
|
left?: number;
|
|
2900
3074
|
}
|
|
2901
|
-
/**
|
|
2902
|
-
* One explicit cell border.
|
|
2903
|
-
*
|
|
2904
|
-
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2905
|
-
* via the `definition` "TableCellBorder".
|
|
2906
|
-
*/
|
|
2907
|
-
interface TableCellBorder {
|
|
2908
|
-
/**
|
|
2909
|
-
* 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:
|
|
2910
|
-
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
2911
|
-
* - 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).
|
|
2912
|
-
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
2913
|
-
* - Lighter or darker (SH-02): { "color": <ColorRef>, "lighten": 0..1 } or { "color": <ColorRef>, "darken": 0..1 }, PowerPoint's "Lighter 40%" and "Darker 25%": the color's HSL luminance moved that share of the way to white (lighten) or to black (darken). Core resolves it (resolveColorRef); PPTX export writes the base color (a scheme color where it is one) with a:lumMod and a:lumOff.
|
|
2914
|
-
*
|
|
2915
|
-
* 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.
|
|
2916
|
-
*/
|
|
2917
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
2918
|
-
/**
|
|
2919
|
-
* Border width in reference pixels; 0 removes this edge.
|
|
2920
|
-
*/
|
|
2921
|
-
width: number;
|
|
2922
|
-
/**
|
|
2923
|
-
* Default solid.
|
|
2924
|
-
*/
|
|
2925
|
-
dash?: ("solid" | "dash" | "dot");
|
|
2926
|
-
}
|
|
2927
3075
|
/**
|
|
2928
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 }.
|
|
2929
3077
|
*
|
|
@@ -2986,7 +3134,7 @@ interface Metric {
|
|
|
2986
3134
|
*/
|
|
2987
3135
|
sentiment?: ("positive" | "negative" | "neutral");
|
|
2988
3136
|
/**
|
|
2989
|
-
* An icon drawn on a chip above the metric
|
|
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.
|
|
2990
3138
|
*/
|
|
2991
3139
|
icon?: string;
|
|
2992
3140
|
}
|
|
@@ -3054,6 +3202,10 @@ interface TimelineEvent {
|
|
|
3054
3202
|
* Event time, date, or sequence label. Use ISO-like values when possible, but human labels are allowed for quarters, eras, and relative milestones.
|
|
3055
3203
|
*/
|
|
3056
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;
|
|
3057
3209
|
/**
|
|
3058
3210
|
* Short event label.
|
|
3059
3211
|
*/
|
|
@@ -3068,22 +3220,22 @@ interface TimelineEvent {
|
|
|
3068
3220
|
status?: ("done" | "current" | "planned");
|
|
3069
3221
|
}
|
|
3070
3222
|
/**
|
|
3071
|
-
* 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 }.
|
|
3072
3224
|
*
|
|
3073
3225
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
3074
3226
|
* via the `definition` "Diagram".
|
|
3075
3227
|
*/
|
|
3076
3228
|
interface Diagram {
|
|
3077
3229
|
/**
|
|
3078
|
-
* 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.
|
|
3079
3231
|
*/
|
|
3080
3232
|
source: string;
|
|
3081
3233
|
/**
|
|
3082
|
-
* 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.
|
|
3083
3235
|
*/
|
|
3084
|
-
syntax?: "mermaid";
|
|
3236
|
+
syntax?: ("mermaid" | "dot" | "plantuml");
|
|
3085
3237
|
/**
|
|
3086
|
-
* 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.
|
|
3087
3239
|
*/
|
|
3088
3240
|
alt?: string;
|
|
3089
3241
|
}
|
|
@@ -3124,7 +3276,7 @@ interface Gradient {
|
|
|
3124
3276
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3125
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).
|
|
3126
3278
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3127
|
-
* - Lighter or darker
|
|
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.
|
|
3128
3280
|
*
|
|
3129
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.
|
|
3130
3282
|
*/
|
|
@@ -3140,7 +3292,7 @@ interface Gradient {
|
|
|
3140
3292
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3141
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).
|
|
3142
3294
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3143
|
-
* - Lighter or darker
|
|
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.
|
|
3144
3296
|
*
|
|
3145
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.
|
|
3146
3298
|
*/
|
|
@@ -3156,7 +3308,7 @@ interface Gradient {
|
|
|
3156
3308
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3157
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).
|
|
3158
3310
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3159
|
-
* - Lighter or darker
|
|
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.
|
|
3160
3312
|
*
|
|
3161
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.
|
|
3162
3314
|
*/
|
|
@@ -3203,7 +3355,7 @@ interface Arrowhead1 {
|
|
|
3203
3355
|
length?: ("small" | "medium" | "large");
|
|
3204
3356
|
}
|
|
3205
3357
|
/**
|
|
3206
|
-
* A gradient fill
|
|
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.
|
|
3207
3359
|
*
|
|
3208
3360
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
3209
3361
|
* via the `definition` "Gradient".
|
|
@@ -3229,7 +3381,7 @@ interface Gradient1 {
|
|
|
3229
3381
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3230
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).
|
|
3231
3383
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3232
|
-
* - Lighter or darker
|
|
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.
|
|
3233
3385
|
*
|
|
3234
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.
|
|
3235
3387
|
*/
|
|
@@ -3245,7 +3397,7 @@ interface Gradient1 {
|
|
|
3245
3397
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3246
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).
|
|
3247
3399
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3248
|
-
* - Lighter or darker
|
|
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.
|
|
3249
3401
|
*
|
|
3250
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.
|
|
3251
3403
|
*/
|
|
@@ -3261,7 +3413,7 @@ interface Gradient1 {
|
|
|
3261
3413
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3262
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).
|
|
3263
3415
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3264
|
-
* - Lighter or darker
|
|
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.
|
|
3265
3417
|
*
|
|
3266
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.
|
|
3267
3419
|
*/
|
|
@@ -3289,7 +3441,7 @@ interface Pattern {
|
|
|
3289
3441
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3290
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).
|
|
3291
3443
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3292
|
-
* - Lighter or darker
|
|
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.
|
|
3293
3445
|
*
|
|
3294
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.
|
|
3295
3447
|
*/
|
|
@@ -3299,7 +3451,7 @@ interface Pattern {
|
|
|
3299
3451
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3300
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).
|
|
3301
3453
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3302
|
-
* - Lighter or darker
|
|
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.
|
|
3303
3455
|
*
|
|
3304
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.
|
|
3305
3457
|
*/
|
|
@@ -3314,7 +3466,7 @@ interface InnerShadow {
|
|
|
3314
3466
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3315
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).
|
|
3316
3468
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3317
|
-
* - Lighter or darker
|
|
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.
|
|
3318
3470
|
*
|
|
3319
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.
|
|
3320
3472
|
*/
|
|
@@ -3345,7 +3497,7 @@ interface Glow {
|
|
|
3345
3497
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3346
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).
|
|
3347
3499
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3348
|
-
* - Lighter or darker
|
|
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.
|
|
3349
3501
|
*
|
|
3350
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.
|
|
3351
3503
|
*/
|
|
@@ -3393,9 +3545,9 @@ interface Overlay1 {
|
|
|
3393
3545
|
*/
|
|
3394
3546
|
opacity: number;
|
|
3395
3547
|
/**
|
|
3396
|
-
* 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.
|
|
3397
3549
|
*/
|
|
3398
|
-
edge?: ("top" | "bottom" | "
|
|
3550
|
+
edge?: ("top" | "bottom" | "start" | "end");
|
|
3399
3551
|
/**
|
|
3400
3552
|
* Band share of the frame for an edge overlay. Default 0.3. Ignored without edge.
|
|
3401
3553
|
*/
|
|
@@ -3408,9 +3560,9 @@ interface ImagePlacement {
|
|
|
3408
3560
|
/**
|
|
3409
3561
|
* The slide edge the image bleeds to.
|
|
3410
3562
|
*/
|
|
3411
|
-
edge: ("
|
|
3563
|
+
edge: ("start" | "end" | "top" | "bottom");
|
|
3412
3564
|
/**
|
|
3413
|
-
* Share of the slide width (
|
|
3565
|
+
* Share of the slide width (start, end) or height (top, bottom) given to the band. Default 0.5.
|
|
3414
3566
|
*/
|
|
3415
3567
|
size?: number;
|
|
3416
3568
|
/**
|
|
@@ -3438,18 +3590,22 @@ interface Chart1 {
|
|
|
3438
3590
|
*/
|
|
3439
3591
|
line?: [string, ...(string)[]];
|
|
3440
3592
|
/**
|
|
3441
|
-
* 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.
|
|
3442
3594
|
*
|
|
3443
3595
|
* @minItems 1
|
|
3444
3596
|
*/
|
|
3445
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[];
|
|
3446
3602
|
axisTitles?: ChartAxisTitles;
|
|
3447
3603
|
/**
|
|
3448
|
-
* 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.
|
|
3449
3605
|
*/
|
|
3450
3606
|
legend?: ("none" | "top" | "bottom" | "left" | "right");
|
|
3451
3607
|
/**
|
|
3452
|
-
* 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.
|
|
3453
3609
|
*/
|
|
3454
3610
|
dataLabels?: (boolean | ChartDataLabels);
|
|
3455
3611
|
/**
|
|
@@ -3537,7 +3693,7 @@ interface Composition {
|
|
|
3537
3693
|
overflow?: ("warn" | "error");
|
|
3538
3694
|
}
|
|
3539
3695
|
/**
|
|
3540
|
-
*
|
|
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.
|
|
3541
3697
|
*
|
|
3542
3698
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
3543
3699
|
* via the `definition` "OverlayShape".
|
|
@@ -3548,19 +3704,19 @@ interface OverlayShape {
|
|
|
3548
3704
|
*/
|
|
3549
3705
|
id?: string;
|
|
3550
3706
|
/**
|
|
3551
|
-
*
|
|
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'.
|
|
3552
3708
|
*/
|
|
3553
3709
|
x?: number;
|
|
3554
3710
|
/**
|
|
3555
|
-
* Top edge as a fraction of the slide height, from the top edge.
|
|
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.
|
|
3556
3712
|
*/
|
|
3557
3713
|
y?: number;
|
|
3558
3714
|
/**
|
|
3559
|
-
* Width as a fraction of the slide width.
|
|
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.
|
|
3560
3716
|
*/
|
|
3561
3717
|
width?: number;
|
|
3562
3718
|
/**
|
|
3563
|
-
* Height as a fraction of the slide height.
|
|
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.
|
|
3564
3720
|
*/
|
|
3565
3721
|
height?: number;
|
|
3566
3722
|
at?: OverlayAnchor;
|
|
@@ -3613,7 +3769,7 @@ interface OverlayShape {
|
|
|
3613
3769
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3614
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).
|
|
3615
3771
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3616
|
-
* - Lighter or darker
|
|
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.
|
|
3617
3773
|
*
|
|
3618
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.
|
|
3619
3775
|
*/
|
|
@@ -3667,7 +3823,7 @@ interface OverlayShape {
|
|
|
3667
3823
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3668
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).
|
|
3669
3825
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3670
|
-
* - Lighter or darker
|
|
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.
|
|
3671
3827
|
*
|
|
3672
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.
|
|
3673
3829
|
*/
|
|
@@ -3751,34 +3907,6 @@ interface OverlayShape {
|
|
|
3751
3907
|
[k: string]: unknown;
|
|
3752
3908
|
};
|
|
3753
3909
|
}
|
|
3754
|
-
/**
|
|
3755
|
-
* 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.
|
|
3756
|
-
*
|
|
3757
|
-
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
3758
|
-
* via the `definition` "OverlayAnchor".
|
|
3759
|
-
*/
|
|
3760
|
-
interface OverlayAnchor {
|
|
3761
|
-
/**
|
|
3762
|
-
* The id of a block on this slide (a content payload or a group, at any depth).
|
|
3763
|
-
*/
|
|
3764
|
-
block: string;
|
|
3765
|
-
/**
|
|
3766
|
-
* The edge of the block the shape sits outside of, or its center.
|
|
3767
|
-
*/
|
|
3768
|
-
edge: ("top" | "bottom" | "start" | "end" | "center");
|
|
3769
|
-
/**
|
|
3770
|
-
* 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'.
|
|
3771
|
-
*/
|
|
3772
|
-
offset?: number;
|
|
3773
|
-
/**
|
|
3774
|
-
* The shape's width: up to 1 a fraction of the block's width, above 1 reference pixels at a 720-pixel short edge. Default the preset's natural proportions with the shape's shorter side at 15% of the block's shorter side.
|
|
3775
|
-
*/
|
|
3776
|
-
width?: number;
|
|
3777
|
-
/**
|
|
3778
|
-
* The shape's height: up to 1 a fraction of the block's height, above 1 reference pixels at a 720-pixel short edge. Default as for width.
|
|
3779
|
-
*/
|
|
3780
|
-
height?: number;
|
|
3781
|
-
}
|
|
3782
3910
|
/**
|
|
3783
3911
|
* Makes the entry a connector: what it joins and how it runs.
|
|
3784
3912
|
*/
|
|
@@ -3813,7 +3941,7 @@ interface InnerShadow1 {
|
|
|
3813
3941
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3814
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).
|
|
3815
3943
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3816
|
-
* - Lighter or darker
|
|
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.
|
|
3817
3945
|
*
|
|
3818
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.
|
|
3819
3947
|
*/
|
|
@@ -3844,7 +3972,7 @@ interface Glow1 {
|
|
|
3844
3972
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3845
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).
|
|
3846
3974
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3847
|
-
* - Lighter or darker
|
|
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.
|
|
3848
3976
|
*
|
|
3849
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.
|
|
3850
3978
|
*/
|
|
@@ -3919,7 +4047,7 @@ interface Design1 {
|
|
|
3919
4047
|
*/
|
|
3920
4048
|
variant?: (ColorVariantSlot | ColorVariant);
|
|
3921
4049
|
/**
|
|
3922
|
-
* 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.
|
|
3923
4051
|
*/
|
|
3924
4052
|
logo?: (string | false);
|
|
3925
4053
|
/**
|
|
@@ -3935,25 +4063,25 @@ interface Design1 {
|
|
|
3935
4063
|
*/
|
|
3936
4064
|
footer?: (false | HeaderFooter);
|
|
3937
4065
|
/**
|
|
3938
|
-
* 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.
|
|
3939
4067
|
*/
|
|
3940
|
-
titleAlignment?: ("
|
|
4068
|
+
titleAlignment?: ("start" | "center" | "end");
|
|
3941
4069
|
/**
|
|
3942
|
-
* 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.
|
|
3943
4071
|
*/
|
|
3944
|
-
contentAlignment?: ("
|
|
4072
|
+
contentAlignment?: ("start" | "center" | "end");
|
|
3945
4073
|
/**
|
|
3946
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.
|
|
3947
4075
|
*/
|
|
3948
4076
|
contentBox?: boolean;
|
|
3949
4077
|
/**
|
|
3950
|
-
* 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.
|
|
3951
4079
|
*/
|
|
3952
4080
|
contentDirection?: ("horizontal" | "vertical");
|
|
3953
4081
|
/**
|
|
3954
|
-
* 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.
|
|
3955
4083
|
*/
|
|
3956
|
-
chartPrimary?: ("none" | "top" | "bottom" | "
|
|
4084
|
+
chartPrimary?: ("none" | "top" | "bottom" | "start" | "end");
|
|
3957
4085
|
/**
|
|
3958
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.
|
|
3959
4087
|
*/
|
|
@@ -3963,14 +4091,13 @@ interface Design1 {
|
|
|
3963
4091
|
*/
|
|
3964
4092
|
listBullet?: ("character" | "image" | "none");
|
|
3965
4093
|
/**
|
|
3966
|
-
* 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.
|
|
3967
4095
|
*/
|
|
3968
4096
|
listStyle?: ("stack" | "rows");
|
|
3969
4097
|
/**
|
|
3970
|
-
* 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.
|
|
3971
4099
|
*/
|
|
3972
4100
|
mirror?: boolean;
|
|
3973
|
-
[k: string]: unknown;
|
|
3974
4101
|
}
|
|
3975
4102
|
/**
|
|
3976
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.
|
|
@@ -4106,7 +4233,7 @@ interface Assets {
|
|
|
4106
4233
|
[k: string]: Asset;
|
|
4107
4234
|
}
|
|
4108
4235
|
/**
|
|
4109
|
-
* Optional deck-local icons
|
|
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.
|
|
4110
4237
|
*/
|
|
4111
4238
|
interface Icons {
|
|
4112
4239
|
[k: string]: string;
|
|
@@ -4237,7 +4364,7 @@ interface CatalogRecords7 {
|
|
|
4237
4364
|
};
|
|
4238
4365
|
}
|
|
4239
4366
|
/**
|
|
4240
|
-
* Icon-set records keyed by set id
|
|
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>".
|
|
4241
4368
|
*/
|
|
4242
4369
|
interface CatalogRecords8 {
|
|
4243
4370
|
/**
|