@openpresentation/opf 0.32.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/browser.js +20 -20
- package/dist/{catalog-refs-kAefsZWT.d.ts → catalog-refs-B_0_vZg0.d.ts} +5 -0
- package/dist/{catalog-schemas-LdqOPebq.d.ts → catalog-schemas-CQTM-G8p.d.ts} +10 -4
- package/dist/{chunk-CLRYHWQN.js → chunk-ABWEUXLV.js} +72 -6
- package/dist/{chunk-XFHXQCXL.js → chunk-BI4ERFAA.js} +52 -1
- package/dist/{chunk-56J345KE.js → chunk-DAS75LGR.js} +3 -3
- package/dist/{chunk-F7DN33UL.js → chunk-E7WQHMCL.js} +6 -6
- package/dist/chunk-IJXKVM4W.js +221 -0
- package/dist/{chunk-AQEAZDL2.js → chunk-INIMUBSE.js} +2 -1
- package/dist/{chunk-NEJ32O7X.js → chunk-KVHNDHVS.js} +1 -1
- package/dist/{chunk-NVAJASOD.js → chunk-OPVJLL7H.js} +6867 -1862
- package/dist/{chunk-GM7WFPGG.js → chunk-PRXZD2II.js} +6 -1
- package/dist/{chunk-BBVW5ZC2.js → chunk-QD6DPS7X.js} +2 -2
- package/dist/{chunk-LEF4X4KI.js → chunk-QF5RSRXU.js} +1797 -170
- package/dist/{chunk-HKUV7NEN.js → chunk-R6C6BQOG.js} +1 -1
- package/dist/{chunk-IT7FQKED.js → chunk-S5QRGMUQ.js} +6 -6
- package/dist/{chunk-OXLA4HXQ.js → chunk-UK3J6FSU.js} +346 -53
- package/dist/{chunk-XQO2CT6Q.js → chunk-VKEYV3ZK.js} +1 -1
- package/dist/{chunk-7U3TJBXE.js → chunk-VMBLNCX2.js} +31 -13
- package/dist/{chunk-YFJIIIOL.js → chunk-VSBZC2PR.js} +2 -2
- package/dist/{chunk-UJSAR6GF.js → chunk-W4DYDRV2.js} +21 -0
- package/dist/{chunk-J63CIRIV.js → chunk-XANW7MB7.js} +4 -4
- package/dist/{chunk-PB7ME64J.js → chunk-XIOC6N5P.js} +1 -1
- package/dist/{chunk-2E6CDYL2.js → chunk-Y557TYML.js} +5 -5
- package/dist/{chunk-SW676APJ.js → chunk-YS333HLA.js} +2 -2
- package/dist/chunk-YYT6N7AI.js +642 -0
- package/dist/chunk-ZXOIGUHX.js +1 -0
- package/dist/{composition-DRqNGHJV.d.ts → composition-zMiIgzip.d.ts} +2353 -272
- package/dist/composition.d.ts +3 -2
- package/dist/composition.js +2 -2
- package/dist/conversion-POHRAMSN.js +24 -0
- package/dist/{conversion-Cadul8Mu.d.ts → conversion-mNth9XKm.d.ts} +20 -9
- package/dist/convert.d.ts +3 -2
- package/dist/convert.js +9 -9
- package/dist/data.d.ts +1 -1
- package/dist/data.js +3 -3
- package/dist/{deck-report-BA3IPJAV.d.ts → deck-report-BSlRiR0_.d.ts} +3 -3
- package/dist/deck.d.ts +6 -5
- package/dist/deck.js +12 -12
- package/dist/diagram-engine-eager.js +1 -1
- package/dist/diagram-engine-lazy.js +1 -1
- package/dist/diff.js +5 -5
- package/dist/docs.js +48 -24
- package/dist/examples.js +7507 -142
- package/dist/font-policy.js +1 -1
- package/dist/format.js +3 -3
- package/dist/ids.js +5 -5
- package/dist/index.d.ts +13 -12
- package/dist/index.js +24 -24
- package/dist/markdown.d.ts +2 -1
- package/dist/markdown.js +9 -9
- package/dist/node-engine.d.ts +7 -6
- package/dist/node-engine.js +24 -24
- package/dist/{pagination-DwEkdJ6s.d.ts → pagination-CYzNMazO.d.ts} +20 -3
- package/dist/pagination.d.ts +4 -3
- package/dist/pagination.js +5 -5
- package/dist/patch.js +4 -4
- package/dist/precompiled.js +3 -3
- package/dist/{presentation-DnD7mfmf.d.ts → presentation-CXhfpB_z.d.ts} +876 -39
- package/dist/repo-readme.js +2 -2
- package/dist/schema-engine-ajv.js +2 -2
- package/dist/schema-engine-precompiled.js +3 -3
- package/dist/schema.d.ts +2 -2
- package/dist/schema.js +4 -4
- package/dist/schemas.d.ts +40 -4
- package/dist/schemas.js +2 -2
- package/dist/shape-catalog.d.ts +98 -0
- package/dist/shape-catalog.js +302 -0
- package/dist/shape-engine-eager.js +9 -0
- package/dist/shape-engine-lazy.js +12 -0
- package/dist/shape-engine-module-BK7JNEUV.js +3 -0
- package/dist/shape-geometry.d.ts +126 -0
- package/dist/shape-geometry.js +2 -0
- package/dist/source.js +11 -11
- package/dist/spec/README.md +1 -1
- package/dist/spec/reference/preset-geometry.json +10699 -0
- package/dist/spec/reference/preset-geometry.schema.json +126 -0
- package/dist/spec/schemas/catalog-index.schema.json +1 -0
- package/dist/spec/schemas/chart-type.schema.json +4 -4
- package/dist/spec/schemas/icon-set.schema.json +75 -0
- package/dist/spec/schemas/layout.schema.json +14 -1
- package/dist/spec/schemas/opf.schema.json +1144 -196
- package/dist/spec-files.d.ts +1 -1
- package/dist/spec-files.js +2 -2
- package/dist/symbol-font-encodings.js +1 -1
- package/dist/types.d.ts +10 -6
- package/dist/{validation-types-vVah_PEv.d.ts → validation-types-COwTel3H.d.ts} +2 -2
- package/dist/validator.d.ts +5 -4
- package/dist/validator.js +4 -4
- package/dist/yaml.d.ts +2 -1
- package/dist/yaml.js +8 -8
- package/package.json +24 -8
- package/dist/chunk-DGS47ONG.js +0 -1
- package/dist/conversion-J3YPDS7C.js +0 -24
|
@@ -234,6 +234,29 @@ type ImageSource = string;
|
|
|
234
234
|
* via the `definition` "Background".
|
|
235
235
|
*/
|
|
236
236
|
type Background = (ThemeBackground | SolidBackground | GradientBackground | ImageBackground | PatternBackground);
|
|
237
|
+
/**
|
|
238
|
+
* A ColorRef made lighter or darker (SH-02), as PowerPoint's theme color tints and shades: 'lighten' moves the color's HSL luminance that share of the way to white (lumMod 1 - lighten, lumOff lighten), 'darken' that share of the way to black (lumMod 1 - darken). Exactly one of the two. PPTX export writes a:lumMod and a:lumOff on the base color, a scheme color where the base names one, so re-theming the deck keeps the tint.
|
|
239
|
+
*
|
|
240
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
241
|
+
* via the `definition` "ColorTransform".
|
|
242
|
+
*/
|
|
243
|
+
type ColorTransform = ({
|
|
244
|
+
/**
|
|
245
|
+
* The base color: any ColorRef.
|
|
246
|
+
*/
|
|
247
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
248
|
+
/**
|
|
249
|
+
* Share of the way to white, 0 to 1. 0.4 is PowerPoint's "Lighter 40%".
|
|
250
|
+
*/
|
|
251
|
+
lighten?: number;
|
|
252
|
+
/**
|
|
253
|
+
* Share of the way to black, 0 to 1. 0.25 is PowerPoint's "Darker 25%".
|
|
254
|
+
*/
|
|
255
|
+
darken?: number;
|
|
256
|
+
} & ColorTransform1);
|
|
257
|
+
type ColorTransform1 = {
|
|
258
|
+
[k: string]: unknown;
|
|
259
|
+
};
|
|
237
260
|
/**
|
|
238
261
|
* The scheme slot a color variant puts behind the slide (bg1): a light or dark slot, or an accent. On an accent the text side is the light family (tx1 = light1, tx2 = light2) or the dark family (tx1 = dark1, tx2 = dark2), whichever text slot has the higher contrast on that accent; tx2 falls back to tx1's slot where it is under 4.5:1 on the accent, and bg2 is the accent itself.
|
|
239
262
|
*
|
|
@@ -299,9 +322,9 @@ type TextRun = (string | {
|
|
|
299
322
|
*/
|
|
300
323
|
strikethrough?: boolean;
|
|
301
324
|
/**
|
|
302
|
-
* Run text color. Documented forms: a hex string ('#RGB', '#RRGGBB', '#RRGGBBAA'), a color-scheme slot or role name resolved through the effective color scheme ('accent2', 'text'), or a 'var:<id>' reference into the top-level variables map. Prefer names over hex so runs survive re-theming. Any other string stays schema-valid so imported decks keep validating: validators warn and renderers fall back to the theme text color.
|
|
325
|
+
* Run text color. Documented forms: a hex string ('#RGB', '#RRGGBB', '#RRGGBBAA'), a color-scheme slot or role name resolved through the effective color scheme ('accent2', 'text'), or a 'var:<id>' reference into the top-level variables map. Prefer names over hex so runs survive re-theming. Or the lighter or darker object form of a ColorRef ({ "color": "accent1", "darken": 0.25 }). Any other string stays schema-valid so imported decks keep validating: validators warn and renderers fall back to the theme text color.
|
|
303
326
|
*/
|
|
304
|
-
color?: string;
|
|
327
|
+
color?: (string | ColorTransform);
|
|
305
328
|
/**
|
|
306
329
|
* Requested run font size in points.
|
|
307
330
|
*/
|
|
@@ -359,6 +382,10 @@ type ListItem = (string | TextRun[] | {
|
|
|
359
382
|
* Zero-based nesting level for the list item.
|
|
360
383
|
*/
|
|
361
384
|
level?: number;
|
|
385
|
+
/**
|
|
386
|
+
* An icon drawn on a chip at the start of the entry, in place of its bullet (LH-14): "<set>:<name>" ("lucide:truck"), a name from the deck's icons, or an SVG source. Drawn on first-level entries of an unnumbered list. Decoration only: when the slide has no room for the chips without setting text smaller, they are not drawn (finding opf/icon-dropped). See docs/icons.md.
|
|
387
|
+
*/
|
|
388
|
+
icon?: string;
|
|
362
389
|
/**
|
|
363
390
|
* Restart the list's numbering at this number for this item (counted at its level); the entries after it continue from it. Only meaningful when the payload has `numbering`. Paginated continuation pages use it to keep the numbers of the whole list.
|
|
364
391
|
*/
|
|
@@ -405,17 +432,18 @@ type ChartDataCell = (string | number | boolean | null);
|
|
|
405
432
|
*/
|
|
406
433
|
type DatasetFields = [string, ...(string)[]];
|
|
407
434
|
/**
|
|
408
|
-
* A color value or reference, enforced on styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors.
|
|
435
|
+
* A color value or reference, enforced on shape fills and strokes, image strokes, styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors. Four forms:
|
|
409
436
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
410
437
|
* - Color-scheme name, resolved through the effective color scheme after design resolution: an OOXML slot ('accent1'-'accent6', 'dark1', 'dark2', 'light1', 'light2', 'hyperlink', 'followedHyperlink') or an abstract role ('primary', 'secondary', 'accent', 'background', 'surface', 'surfaceAlt', 'text', 'textSecondary'). Roles resolve through the same role-to-slot mapping engines already apply to color schemes. 'surfaceAlt' has no slot: it is the alternate surface of banded table rows, derived from 'surface' and 'text' (the surface mixed a tenth of the way towards the text color, further when needed, so it always differs visibly from 'surface' and keeps 4.5:1 text contrast; core surfaceAltColor).
|
|
411
438
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
439
|
+
* - 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.
|
|
412
440
|
*
|
|
413
441
|
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
414
442
|
*
|
|
415
443
|
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
416
444
|
* via the `definition` "ColorRef".
|
|
417
445
|
*/
|
|
418
|
-
type ColorRef = (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
446
|
+
type ColorRef = (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
419
447
|
/**
|
|
420
448
|
* A scalar, rich-run array, or styled/spanning cell object. Existing scalar and rich forms remain valid.
|
|
421
449
|
*
|
|
@@ -458,9 +486,9 @@ type ContentPayload = {
|
|
|
458
486
|
*/
|
|
459
487
|
region?: string;
|
|
460
488
|
/**
|
|
461
|
-
* Optional content kind. When omitted, engines infer the kind from the fields present.
|
|
489
|
+
* Optional content kind. When omitted, engines infer the kind from the fields present: a block with 'shape' and no 'image', or with 'path', is a shape block.
|
|
462
490
|
*/
|
|
463
|
-
type?: ("text" | "list" | "image" | "chart" | "table" | "video" | "code" | "metric" | "quote" | "timeline" | "diagram" | "group");
|
|
491
|
+
type?: ("text" | "list" | "image" | "chart" | "table" | "video" | "code" | "metric" | "quote" | "timeline" | "diagram" | "shape" | "group");
|
|
464
492
|
/**
|
|
465
493
|
* Text payload. Use a string for plain text or TextRun[] for inline rich text. TextRun items may be plain strings or formatted run objects.
|
|
466
494
|
*/
|
|
@@ -478,7 +506,7 @@ type ContentPayload = {
|
|
|
478
506
|
*/
|
|
479
507
|
numbering?: (NumberingStyle | Numbering | [(NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)] | [(NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering), (NumberingStyle | Numbering)]);
|
|
480
508
|
/**
|
|
481
|
-
* Lay the payload's `items` or `bullets` out in columns (OPF 0.19). 'auto' tries 1, 2 then 3 equal columns at the starting text size and uses the first count at which the list fits, as long as a column stays at least a quarter of the slide wide; when none fits, the largest
|
|
509
|
+
* Lay the payload's `items` or `bullets` out in columns (OPF 0.19). 'auto' tries 1, 2 then 3 equal columns at the starting text size and uses the first count at which the list fits, as long as a column stays at least a quarter of the slide wide; when none fits, 'auto' takes the count (1, 2 or 3) whose fitted size is largest, preferring fewer columns on a tie, and sets the list in one column only when its lines stay within the prose measure (or it is a type-scale step larger). A list of 6 or fewer entries is never split by 'auto'; it shrinks in one column. 1, 2 or 3 fixes the count. Column breaks fall between items (a nested item stays with its parent) and keep the columns as even as possible; numbering continues and reading order runs column by column. A lone list in a layout region with listColumns: 'auto' behaves as 'auto'.
|
|
482
510
|
*/
|
|
483
511
|
columns?: ("auto" | number);
|
|
484
512
|
/**
|
|
@@ -516,16 +544,174 @@ type ContentPayload = {
|
|
|
516
544
|
*/
|
|
517
545
|
aspectRatio?: number;
|
|
518
546
|
/**
|
|
519
|
-
*
|
|
547
|
+
* The preset geometry. Without 'image' it makes the block a shape block (SH-02): the preset drawn at the block's own fitted size with 'fill', 'stroke' and 'style', and 'text' inside its text rectangle. On an image block it is the frame's mask, exported as the picture's native preset geometry (a:prstGeom); 0.33 renamed rectangle, rounded and circle to rect, roundRect and ellipse, and every other preset is a mask too. 'ellipse' makes an image frame square. Default rect.
|
|
548
|
+
*/
|
|
549
|
+
shape?: ("line" | "lineInv" | "triangle" | "rtTriangle" | "rect" | "diamond" | "parallelogram" | "trapezoid" | "nonIsoscelesTrapezoid" | "pentagon" | "hexagon" | "heptagon" | "octagon" | "decagon" | "dodecagon" | "star4" | "star5" | "star6" | "star7" | "star8" | "star10" | "star12" | "star16" | "star24" | "star32" | "roundRect" | "round1Rect" | "round2SameRect" | "round2DiagRect" | "snipRoundRect" | "snip1Rect" | "snip2SameRect" | "snip2DiagRect" | "plaque" | "ellipse" | "teardrop" | "homePlate" | "chevron" | "pieWedge" | "pie" | "blockArc" | "donut" | "noSmoking" | "rightArrow" | "leftArrow" | "upArrow" | "downArrow" | "stripedRightArrow" | "notchedRightArrow" | "bentUpArrow" | "leftRightArrow" | "upDownArrow" | "leftUpArrow" | "leftRightUpArrow" | "quadArrow" | "leftArrowCallout" | "rightArrowCallout" | "upArrowCallout" | "downArrowCallout" | "leftRightArrowCallout" | "upDownArrowCallout" | "quadArrowCallout" | "bentArrow" | "uturnArrow" | "circularArrow" | "leftCircularArrow" | "leftRightCircularArrow" | "curvedRightArrow" | "curvedLeftArrow" | "curvedUpArrow" | "curvedDownArrow" | "swooshArrow" | "cube" | "can" | "lightningBolt" | "heart" | "sun" | "moon" | "smileyFace" | "irregularSeal1" | "irregularSeal2" | "foldedCorner" | "bevel" | "frame" | "halfFrame" | "corner" | "diagStripe" | "chord" | "arc" | "leftBracket" | "rightBracket" | "leftBrace" | "rightBrace" | "bracketPair" | "bracePair" | "straightConnector1" | "bentConnector2" | "bentConnector3" | "bentConnector4" | "bentConnector5" | "curvedConnector2" | "curvedConnector3" | "curvedConnector4" | "curvedConnector5" | "callout1" | "callout2" | "callout3" | "accentCallout1" | "accentCallout2" | "accentCallout3" | "borderCallout1" | "borderCallout2" | "borderCallout3" | "accentBorderCallout1" | "accentBorderCallout2" | "accentBorderCallout3" | "wedgeRectCallout" | "wedgeRoundRectCallout" | "wedgeEllipseCallout" | "cloudCallout" | "cloud" | "ribbon" | "ribbon2" | "ellipseRibbon" | "ellipseRibbon2" | "leftRightRibbon" | "verticalScroll" | "horizontalScroll" | "wave" | "doubleWave" | "plus" | "flowChartProcess" | "flowChartDecision" | "flowChartInputOutput" | "flowChartPredefinedProcess" | "flowChartInternalStorage" | "flowChartDocument" | "flowChartMultidocument" | "flowChartTerminator" | "flowChartPreparation" | "flowChartManualInput" | "flowChartManualOperation" | "flowChartConnector" | "flowChartPunchedCard" | "flowChartPunchedTape" | "flowChartSummingJunction" | "flowChartOr" | "flowChartCollate" | "flowChartSort" | "flowChartExtract" | "flowChartMerge" | "flowChartOfflineStorage" | "flowChartOnlineStorage" | "flowChartMagneticTape" | "flowChartMagneticDisk" | "flowChartMagneticDrum" | "flowChartDisplay" | "flowChartDelay" | "flowChartAlternateProcess" | "flowChartOffpageConnector" | "actionButtonBlank" | "actionButtonHome" | "actionButtonHelp" | "actionButtonInformation" | "actionButtonForwardNext" | "actionButtonBackPrevious" | "actionButtonEnd" | "actionButtonBeginning" | "actionButtonReturn" | "actionButtonDocument" | "actionButtonSound" | "actionButtonMovie" | "gear6" | "gear9" | "funnel" | "mathPlus" | "mathMinus" | "mathMultiply" | "mathDivide" | "mathEqual" | "mathNotEqual" | "cornerTabs" | "squareTabs" | "plaqueTabs" | "chartX" | "chartStar" | "chartPlus");
|
|
550
|
+
/**
|
|
551
|
+
* Shape and image blocks. The line along the outline: a shape's outline or the picture frame's shape (renamed from the picture key 'border' in 0.33, no alias). Without it a shape takes its style's line; a picture has none.
|
|
552
|
+
*/
|
|
553
|
+
stroke?: ("none" | {
|
|
554
|
+
/**
|
|
555
|
+
* A color value or reference, enforced on shape fills and strokes, image strokes, styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors. Four forms:
|
|
556
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
557
|
+
* - Color-scheme name, resolved through the effective color scheme after design resolution: an OOXML slot ('accent1'-'accent6', 'dark1', 'dark2', 'light1', 'light2', 'hyperlink', 'followedHyperlink') or an abstract role ('primary', 'secondary', 'accent', 'background', 'surface', 'surfaceAlt', 'text', 'textSecondary'). Roles resolve through the same role-to-slot mapping engines already apply to color schemes. 'surfaceAlt' has no slot: it is the alternate surface of banded table rows, derived from 'surface' and 'text' (the surface mixed a tenth of the way towards the text color, further when needed, so it always differs visibly from 'surface' and keeps 4.5:1 text contrast; core surfaceAltColor).
|
|
558
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
559
|
+
* - Lighter or darker (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.
|
|
560
|
+
*
|
|
561
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
562
|
+
*/
|
|
563
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
564
|
+
gradient?: Gradient;
|
|
565
|
+
/**
|
|
566
|
+
* Line width in reference pixels at a 720-pixel short edge. 0 removes the line. Default 4/3 (1 point, PowerPoint's default line) on a shape, 2 on a picture.
|
|
567
|
+
*/
|
|
568
|
+
width?: number;
|
|
569
|
+
/**
|
|
570
|
+
* Dash pattern: a preset name or an array of dash and gap lengths in stroke widths.
|
|
571
|
+
*/
|
|
572
|
+
dash?: (("solid" | "dot" | "dash" | "longDash" | "dashDot" | "longDashDot" | "longDashDotDot" | "sysDot" | "sysDash" | "sysDashDot" | "sysDashDotDot") | [number, number] | [number, number, number] | [number, number, number, number] | [number, number, number, number, number] | [number, number, number, number, number, number] | [number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number]);
|
|
573
|
+
/**
|
|
574
|
+
* Line cap (a:ln cap flat, rnd, sq). Default flat.
|
|
575
|
+
*/
|
|
576
|
+
cap?: ("flat" | "round" | "square");
|
|
577
|
+
/**
|
|
578
|
+
* Line join (a:miter, a:round, a:bevel). Default miter, PowerPoint's default line join.
|
|
579
|
+
*/
|
|
580
|
+
join?: ("miter" | "round" | "bevel");
|
|
581
|
+
/**
|
|
582
|
+
* Miter join limit, as a multiple of the stroke width (a:miter lim). Default 8. Ignored by round and bevel joins.
|
|
583
|
+
*/
|
|
584
|
+
miterLimit?: number;
|
|
585
|
+
/**
|
|
586
|
+
* Compound line (a:ln cmpd sng, dbl, thickThin, thinThick, tri). Default single.
|
|
587
|
+
*/
|
|
588
|
+
compound?: ("single" | "double" | "thickThin" | "thinThick" | "triple");
|
|
589
|
+
/**
|
|
590
|
+
* Where the line sits on the outline (a:ln algn ctr or in). Default center. PowerPoint draws inside-aligned lines only on closed outlines.
|
|
591
|
+
*/
|
|
592
|
+
align?: ("center" | "inside");
|
|
593
|
+
start?: Arrowhead;
|
|
594
|
+
end?: Arrowhead1;
|
|
595
|
+
/**
|
|
596
|
+
* Hand-drawn look (PowerPoint's Sketched line, ask:lineSketchStyleProps): curved, freehand or scribble. OPF computes the sketched outline from a seed and both engines draw it: the preview strokes it and the PPTX stores it, which PowerPoint draws as stored, so the two match. A stroked path's fill follows the sketched outline too. PowerPoint versions before 2021 draw the plain line.
|
|
597
|
+
*/
|
|
598
|
+
sketch?: ("curved" | "freehand" | "scribble");
|
|
599
|
+
});
|
|
600
|
+
/**
|
|
601
|
+
* Shape blocks only. Custom geometry instead of a preset (a:custGeom): SVG path data in a 0 to 1 box, or { d, viewBox }. A block with 'path' is a shape block.
|
|
602
|
+
*/
|
|
603
|
+
path?: (string | {
|
|
604
|
+
/**
|
|
605
|
+
* SVG path data in the viewBox.
|
|
606
|
+
*/
|
|
607
|
+
d: string;
|
|
608
|
+
/**
|
|
609
|
+
* The path's own box, 'minX minY width height' as in SVG; it is stretched to the block.
|
|
610
|
+
*/
|
|
611
|
+
viewBox: string;
|
|
612
|
+
});
|
|
613
|
+
/**
|
|
614
|
+
* Shape blocks only. 'none', a ColorRef, { gradient } or { pattern }. Default the style's fill.
|
|
615
|
+
*/
|
|
616
|
+
fill?: ("none" | (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform) | {
|
|
617
|
+
gradient: Gradient1;
|
|
618
|
+
} | {
|
|
619
|
+
pattern: Pattern;
|
|
620
|
+
});
|
|
621
|
+
/**
|
|
622
|
+
* Shape blocks only. The theme shape style, as PowerPoint's shape styles (p:style with a:lnRef, a:fillRef, a:effectRef and a:fontRef): subtle is a light tint of accent1 with an accent1 line and dark text, moderate (the default) a solid accent1 fill with a darker line and light text, intense accent1 25% darker with no line, light bold text and the soft shadow. none draws nothing the author did not set. An explicit fill, stroke or effect wins over the style's.
|
|
623
|
+
*/
|
|
624
|
+
style?: ("none" | "subtle" | "moderate" | "intense");
|
|
625
|
+
/**
|
|
626
|
+
* Shape blocks only. Rotation in degrees, clockwise, about the shape's center (a:xfrm rot). Composition keeps the unrotated box; the rotated outline may reach past it.
|
|
627
|
+
*/
|
|
628
|
+
rotate?: number;
|
|
629
|
+
/**
|
|
630
|
+
* Shape blocks only. Mirror the geometry (a:xfrm flipH, flipV). The text is not mirrored.
|
|
631
|
+
*/
|
|
632
|
+
flip?: ("horizontal" | "vertical" | "both");
|
|
633
|
+
/**
|
|
634
|
+
* Shape blocks only. Vertical placement of the text in the text rectangle (a:bodyPr anchor t, ctr, b). Default middle.
|
|
635
|
+
*/
|
|
636
|
+
anchor?: ("top" | "middle" | "bottom");
|
|
637
|
+
/**
|
|
638
|
+
* Shape blocks only. Text insets inside the text rectangle.
|
|
639
|
+
*/
|
|
640
|
+
padding?: (number | TableCellPadding);
|
|
641
|
+
/**
|
|
642
|
+
* Shape blocks only. Text direction (a:bodyPr vert horz, vert, vert270, wordArtVert): vertical turns the text 90 degrees clockwise, vertical270 270, stacked stacks the letters top to bottom. Default horizontal.
|
|
643
|
+
*/
|
|
644
|
+
textDirection?: ("horizontal" | "vertical" | "vertical270" | "stacked");
|
|
645
|
+
/**
|
|
646
|
+
* Shape blocks only. Alternative text for screen readers (p:cNvPr descr). Without it a shape's text is what is read.
|
|
520
647
|
*/
|
|
521
|
-
|
|
648
|
+
alt?: string;
|
|
649
|
+
/**
|
|
650
|
+
* Shape blocks only. Mark the shape decorative (a16:decorative): screen readers skip it and the accessibility checker does not ask for alt text.
|
|
651
|
+
*/
|
|
652
|
+
decorative?: boolean;
|
|
522
653
|
/**
|
|
523
|
-
*
|
|
654
|
+
* Shape blocks only. Keep the shape in the file but do not draw it (p:cNvPr hidden). Composition still gives it its room. A link on a hidden shape cannot be clicked and is a validation finding (opf/shape-link-hidden).
|
|
524
655
|
*/
|
|
525
|
-
|
|
526
|
-
|
|
656
|
+
hidden?: boolean;
|
|
657
|
+
/**
|
|
658
|
+
* Shape blocks only. URL opened when the shape is clicked in a slide show (a:hlinkClick): an http(s) URL, a 'mailto:' address or a 'tel:' number.
|
|
659
|
+
*/
|
|
660
|
+
link?: string;
|
|
527
661
|
/**
|
|
528
|
-
*
|
|
662
|
+
* Shape blocks only. Outer shadow.
|
|
663
|
+
*/
|
|
664
|
+
shadow?: (("soft" | "hard" | "perspective") | {
|
|
665
|
+
/**
|
|
666
|
+
* A color value or reference, enforced on shape fills and strokes, image strokes, styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors. Four forms:
|
|
667
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
668
|
+
* - Color-scheme name, resolved through the effective color scheme after design resolution: an OOXML slot ('accent1'-'accent6', 'dark1', 'dark2', 'light1', 'light2', 'hyperlink', 'followedHyperlink') or an abstract role ('primary', 'secondary', 'accent', 'background', 'surface', 'surfaceAlt', 'text', 'textSecondary'). Roles resolve through the same role-to-slot mapping engines already apply to color schemes. 'surfaceAlt' has no slot: it is the alternate surface of banded table rows, derived from 'surface' and 'text' (the surface mixed a tenth of the way towards the text color, further when needed, so it always differs visibly from 'surface' and keeps 4.5:1 text contrast; core surfaceAltColor).
|
|
669
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
670
|
+
* - Lighter or darker (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.
|
|
671
|
+
*
|
|
672
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
673
|
+
*/
|
|
674
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
675
|
+
/**
|
|
676
|
+
* Shadow opacity.
|
|
677
|
+
*/
|
|
678
|
+
opacity?: number;
|
|
679
|
+
/**
|
|
680
|
+
* Blur radius in reference pixels at a 720-pixel short edge.
|
|
681
|
+
*/
|
|
682
|
+
blur?: number;
|
|
683
|
+
/**
|
|
684
|
+
* Offset from the shape in reference pixels at a 720-pixel short edge.
|
|
685
|
+
*/
|
|
686
|
+
distance?: number;
|
|
687
|
+
/**
|
|
688
|
+
* Direction of the offset in degrees (0 = right, 90 = down).
|
|
689
|
+
*/
|
|
690
|
+
angle?: number;
|
|
691
|
+
/**
|
|
692
|
+
* Shadow size relative to the shape (1 = the shape's own size).
|
|
693
|
+
*/
|
|
694
|
+
size?: number;
|
|
695
|
+
});
|
|
696
|
+
innerShadow?: InnerShadow;
|
|
697
|
+
glow?: Glow;
|
|
698
|
+
/**
|
|
699
|
+
* Shape blocks only. Soft edges (a:softEdge): the radius over which the outline fades, in reference pixels at a 720-pixel short edge. SH-03 draws it in both engines.
|
|
700
|
+
*/
|
|
701
|
+
softEdge?: number;
|
|
702
|
+
reflection?: Reflection;
|
|
703
|
+
/**
|
|
704
|
+
* Shape blocks only. Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge. SH-03 draws it in both engines.
|
|
705
|
+
*/
|
|
706
|
+
blur?: number;
|
|
707
|
+
/**
|
|
708
|
+
* Shape and image blocks. The preset's adjust handles (a:avLst), named as DrawingML's guides (adj, adj1, adj2 ... and hexagon's vf): fractions of the shape's shorter side or of its size as the preset defines them, degrees for an angle, never DrawingML's 100000ths or 60000ths. roundRect's adj is the corner radius as a fraction of the shorter side (0.16667 by default, 0 to 0.5). An unknown name or a value out of the preset's range is a validation finding (opf/shape-adjust-unknown, opf/shape-adjust-range) and the preset's default is drawn.
|
|
709
|
+
*/
|
|
710
|
+
adjust?: {
|
|
711
|
+
[k: string]: number;
|
|
712
|
+
};
|
|
713
|
+
/**
|
|
714
|
+
* Image and shape blocks. On an image: the picture's opacity, exported as a native alphaModFix; the stroke and overlay keep their own. On a shape: the fill's opacity (a:alpha on the fill color, multiplied with an eight-digit hex alpha); the stroke and text keep theirs. Default 1.
|
|
529
715
|
*/
|
|
530
716
|
opacity?: number;
|
|
531
717
|
/**
|
|
@@ -535,14 +721,18 @@ type ContentPayload = {
|
|
|
535
721
|
/**
|
|
536
722
|
* Color at luminance 0.
|
|
537
723
|
*/
|
|
538
|
-
dark: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
724
|
+
dark: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
539
725
|
/**
|
|
540
726
|
* Color at luminance 1.
|
|
541
727
|
*/
|
|
542
|
-
light: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
728
|
+
light: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
543
729
|
});
|
|
544
730
|
overlay?: Overlay1;
|
|
545
731
|
placement?: ImagePlacement;
|
|
732
|
+
/**
|
|
733
|
+
* Image payloads only: how a person's picture is drawn in a team. A person is a group of a picture followed by a name (a list of one entry, whose description holds the role and a line, or a short text); a slide whose body is only people is a team. 'top' draws each picture across the top of its card at the card's width, 'side' beside the text at 40% of the card's width (on the logical start side), 'avatar' as the small picture over the name. Without it the engine chooses: 'top' for 2 to 4 people, 'side' for 5 or 6, the avatar for more or when a card is too narrow. The first person's value applies to the whole team, so the cards stay equal. A 'top' or 'side' picture covers its frame around `focus` (the upper third when none is given) in a rounded frame unless `shape` says otherwise; names, roles and lines keep their size, and a frame flatter than 4:3 falls back to the avatar. Ignored on a picture that is not a person's.
|
|
734
|
+
*/
|
|
735
|
+
portrait?: ("avatar" | "side" | "top");
|
|
546
736
|
/**
|
|
547
737
|
* Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.
|
|
548
738
|
*/
|
|
@@ -633,6 +823,10 @@ type ContentPayload = {
|
|
|
633
823
|
* true draws this block or group on the slide's emphasis surface: a contrasting card in its cell (a dark card on a light slide, an accent card on a dark one), from the deck's own scheme slots, with every text color on it at 4.5:1 or more against its fill. A slide has one emphasis surface: the first block or group with emphasis: true in reading order takes it, and any other is drawn without it (composition diagnostic emphasis-ignored). Without any, a slide's short last text block (60 characters or fewer) after longer blocks is drawn as a band at the foot of the body, and one of 30 or fewer after a lone long text as a pill right under that text; neither is drawn where it would cost another block its fitted size. Without any either, the second card of a before-and-after or problem-and-solution pair, or the one tier of a set marked recommended or most popular, takes the surface and the other cards of the pair or set are drawn on plain cards (read from the blocks' labels and short texts, never from ids). false keeps a block out of those automatic rules.
|
|
634
824
|
*/
|
|
635
825
|
emphasis?: boolean;
|
|
826
|
+
/**
|
|
827
|
+
* Groups only (LH-14): an icon drawn on a chip at the top of the group, before its heading, as a card of features or topics draws one: "<set>:<name>" ("lucide:shield-check"), a name from the deck's icons, or an SVG source. A list entry and a metric take their own `icon`. Decoration only: when the slide has no room for it without setting text smaller, it is not drawn (finding opf/icon-dropped). See docs/icons.md.
|
|
828
|
+
*/
|
|
829
|
+
icon?: string;
|
|
636
830
|
};
|
|
637
831
|
/**
|
|
638
832
|
* Identity of a catalog: an HTTPS URL ('https://www.pptx.gallery') or a package reference ('pkg:@acme/opf-catalog'). It names the catalog; engines never fetch or install it. A host registers the catalog's records under this exact string, and copying slides between documents matches groups by it.
|
|
@@ -744,6 +938,7 @@ interface Presentation {
|
|
|
744
938
|
references?: Reference[];
|
|
745
939
|
datasets?: Datasets;
|
|
746
940
|
assets?: Assets;
|
|
941
|
+
icons?: Icons;
|
|
747
942
|
catalogs?: Catalogs;
|
|
748
943
|
/**
|
|
749
944
|
* Custom data passthrough for agent workflows; ignored by the engine but preserved across read/write round-trips.
|
|
@@ -1472,7 +1667,7 @@ interface SolidBackground {
|
|
|
1472
1667
|
/**
|
|
1473
1668
|
* Fixed solid fill color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef, resolved against the effective color scheme and the deck variables). Use { type: 'theme', slot: ... } for PowerPoint's four theme-controlled background choices.
|
|
1474
1669
|
*/
|
|
1475
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1670
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1476
1671
|
/**
|
|
1477
1672
|
* Background opacity from 0 (fully transparent) to 1 (fully opaque).
|
|
1478
1673
|
*/
|
|
@@ -1514,7 +1709,7 @@ interface GradientBackground {
|
|
|
1514
1709
|
/**
|
|
1515
1710
|
* Stop color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1516
1711
|
*/
|
|
1517
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1712
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1518
1713
|
/**
|
|
1519
1714
|
* Stop position along the gradient, from 0 (start) to 1 (end).
|
|
1520
1715
|
*/
|
|
@@ -1525,7 +1720,7 @@ interface GradientBackground {
|
|
|
1525
1720
|
/**
|
|
1526
1721
|
* Stop color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1527
1722
|
*/
|
|
1528
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1723
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1529
1724
|
/**
|
|
1530
1725
|
* Stop position along the gradient, from 0 (start) to 1 (end).
|
|
1531
1726
|
*/
|
|
@@ -1536,7 +1731,7 @@ interface GradientBackground {
|
|
|
1536
1731
|
/**
|
|
1537
1732
|
* Stop color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1538
1733
|
*/
|
|
1539
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1734
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1540
1735
|
/**
|
|
1541
1736
|
* Stop position along the gradient, from 0 (start) to 1 (end).
|
|
1542
1737
|
*/
|
|
@@ -1591,16 +1786,20 @@ interface ImageBackground {
|
|
|
1591
1786
|
/**
|
|
1592
1787
|
* Color at luminance 0.
|
|
1593
1788
|
*/
|
|
1594
|
-
dark: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1789
|
+
dark: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1595
1790
|
/**
|
|
1596
1791
|
* Color at luminance 1.
|
|
1597
1792
|
*/
|
|
1598
|
-
light: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1793
|
+
light: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1599
1794
|
});
|
|
1600
1795
|
/**
|
|
1601
1796
|
* Scrim over the whole picture or a band along one edge (edge, size), beneath furniture and content, for example to keep a title readable over a busy photo. Without an overlay, core draws an automatic scrim in the slide's background color behind text that sits on the picture, at the lowest opacity that keeps it at 4.5:1 over any picture (a gradient from the edge the text is near, or a band across it). An overlay of the author's replaces the automatic scrim, and false turns it off.
|
|
1602
1797
|
*/
|
|
1603
1798
|
overlay?: (Overlay | false);
|
|
1799
|
+
/**
|
|
1800
|
+
* Where a cover's or section's heading group goes on this picture: the top, middle or bottom of its area, start-aligned or centered, or 'panel' (a start-side column on the background color; needs no overlay key). Absent: core picks the calmest place when the host measured the picture (SlideComposition.pictureText).
|
|
1801
|
+
*/
|
|
1802
|
+
textPlacement?: ("top-start" | "top-center" | "middle-start" | "middle-center" | "bottom-start" | "bottom-center" | "panel");
|
|
1604
1803
|
}
|
|
1605
1804
|
/**
|
|
1606
1805
|
* Point of the picture to keep in view when 'cover' crops it. Ignored by the other fits. Without a focus a portrait picture (taller than wide) cropped into a wider frame keeps y 0.3 so heads stay in frame; every other crop is centered.
|
|
@@ -1625,7 +1824,7 @@ interface Overlay {
|
|
|
1625
1824
|
/**
|
|
1626
1825
|
* Overlay fill color: a hex color (eight-digit hex keeps its alpha), a color-scheme slot or role name, or a 'var:<id>' variable reference.
|
|
1627
1826
|
*/
|
|
1628
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1827
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1629
1828
|
/**
|
|
1630
1829
|
* Overlay fill opacity.
|
|
1631
1830
|
*/
|
|
@@ -1661,11 +1860,11 @@ interface PatternBackground {
|
|
|
1661
1860
|
/**
|
|
1662
1861
|
* Foreground color for the pattern: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1663
1862
|
*/
|
|
1664
|
-
foregroundColor?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1863
|
+
foregroundColor?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1665
1864
|
/**
|
|
1666
1865
|
* Background color behind the pattern: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).
|
|
1667
1866
|
*/
|
|
1668
|
-
backgroundColor?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
1867
|
+
backgroundColor?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
1669
1868
|
[k: string]: unknown;
|
|
1670
1869
|
};
|
|
1671
1870
|
/**
|
|
@@ -2282,6 +2481,10 @@ interface Slide {
|
|
|
2282
2481
|
* Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks.
|
|
2283
2482
|
*/
|
|
2284
2483
|
blocks?: ContentPayload[];
|
|
2484
|
+
/**
|
|
2485
|
+
* SH-04: shapes and connectors drawn over the composed slide, above its content and furniture, in array order (later entries on top). They never move content. An entry with connector is a connector between two blocks or overlay shapes; any other entry is an overlay shape placed by x, y, width and height (fractions of the slide) or at (against a block). See docs/shapes.md.
|
|
2486
|
+
*/
|
|
2487
|
+
shapes?: OverlayShape[];
|
|
2285
2488
|
/**
|
|
2286
2489
|
* Slide-level design applied on top of the deck-wide design.
|
|
2287
2490
|
*/
|
|
@@ -2379,7 +2582,7 @@ interface Numbering {
|
|
|
2379
2582
|
*/
|
|
2380
2583
|
interface Chart {
|
|
2381
2584
|
/**
|
|
2382
|
-
* Chart type, an engine vocabulary validated directly (no catalog lookup): the chart types
|
|
2585
|
+
* Chart type, an engine vocabulary validated directly (no catalog lookup): the chart types OPF supports natively in its preview and PPTX export, plus 'combo' (clustered columns with line series, see 'line' and 'secondaryAxis'). Each engine maps a type to its own chart model; labels and picker groups are catalog display metadata.
|
|
2383
2586
|
*/
|
|
2384
2587
|
type: ("100pct-stacked-area" | "100pct-stacked-bar" | "100pct-stacked-column" | "area" | "bar" | "box-and-whisker" | "column" | "combo" | "doughnut" | "filled-radar" | "funnel" | "histogram" | "line" | "line-with-markers" | "pareto" | "pie" | "radar" | "radar-with-markers" | "scatter" | "stacked-area" | "stacked-bar" | "stacked-column" | "stacked-line" | "stacked-line-with-markers" | "treemap" | "waterfall" | "world");
|
|
2385
2588
|
/**
|
|
@@ -2641,23 +2844,25 @@ interface StyledTableCell {
|
|
|
2641
2844
|
*/
|
|
2642
2845
|
interface TableCellStyle {
|
|
2643
2846
|
/**
|
|
2644
|
-
* A color value or reference, enforced on styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors.
|
|
2847
|
+
* A color value or reference, enforced on shape fills and strokes, image strokes, styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors. Four forms:
|
|
2645
2848
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
2646
2849
|
* - Color-scheme name, resolved through the effective color scheme after design resolution: an OOXML slot ('accent1'-'accent6', 'dark1', 'dark2', 'light1', 'light2', 'hyperlink', 'followedHyperlink') or an abstract role ('primary', 'secondary', 'accent', 'background', 'surface', 'surfaceAlt', 'text', 'textSecondary'). Roles resolve through the same role-to-slot mapping engines already apply to color schemes. 'surfaceAlt' has no slot: it is the alternate surface of banded table rows, derived from 'surface' and 'text' (the surface mixed a tenth of the way towards the text color, further when needed, so it always differs visibly from 'surface' and keeps 4.5:1 text contrast; core surfaceAltColor).
|
|
2647
2850
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
2851
|
+
* - 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.
|
|
2648
2852
|
*
|
|
2649
2853
|
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
2650
2854
|
*/
|
|
2651
|
-
fill?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
2855
|
+
fill?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
2652
2856
|
/**
|
|
2653
|
-
* A color value or reference, enforced on styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors.
|
|
2857
|
+
* A color value or reference, enforced on shape fills and strokes, image strokes, styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors. Four forms:
|
|
2654
2858
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
2655
2859
|
* - Color-scheme name, resolved through the effective color scheme after design resolution: an OOXML slot ('accent1'-'accent6', 'dark1', 'dark2', 'light1', 'light2', 'hyperlink', 'followedHyperlink') or an abstract role ('primary', 'secondary', 'accent', 'background', 'surface', 'surfaceAlt', 'text', 'textSecondary'). Roles resolve through the same role-to-slot mapping engines already apply to color schemes. 'surfaceAlt' has no slot: it is the alternate surface of banded table rows, derived from 'surface' and 'text' (the surface mixed a tenth of the way towards the text color, further when needed, so it always differs visibly from 'surface' and keeps 4.5:1 text contrast; core surfaceAltColor).
|
|
2656
2860
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
2861
|
+
* - 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.
|
|
2657
2862
|
*
|
|
2658
2863
|
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
2659
2864
|
*/
|
|
2660
|
-
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
2865
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
2661
2866
|
/**
|
|
2662
2867
|
* Bold cell text. Runs that set their own bold keep it; a number cell stays bold and still uses the cell's or column's number format.
|
|
2663
2868
|
*/
|
|
@@ -2701,14 +2906,15 @@ interface TableCellPadding {
|
|
|
2701
2906
|
*/
|
|
2702
2907
|
interface TableCellBorder {
|
|
2703
2908
|
/**
|
|
2704
|
-
* A color value or reference, enforced on styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors.
|
|
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:
|
|
2705
2910
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
2706
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).
|
|
2707
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.
|
|
2708
2914
|
*
|
|
2709
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.
|
|
2710
2916
|
*/
|
|
2711
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
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);
|
|
2712
2918
|
/**
|
|
2713
2919
|
* Border width in reference pixels; 0 removes this edge.
|
|
2714
2920
|
*/
|
|
@@ -2779,6 +2985,10 @@ interface Metric {
|
|
|
2779
2985
|
* Whether the change is good news. Positive draws the trend arrow and the trend and delta text in green, negative in red and neutral in the neutral text colour, each kept at 4.5:1 contrast or more against the slide background. When absent the colour follows the trend: up is positive, down is negative and flat is neutral. Set it when the direction is not the verdict, for example positive on a falling churn, cost or latency trend. The arrow always keeps the direction of `trend`. Only the trend arrow and the trend and delta text take the colour, so sentiment has no visible effect on a metric without a trend.
|
|
2780
2986
|
*/
|
|
2781
2987
|
sentiment?: ("positive" | "negative" | "neutral");
|
|
2988
|
+
/**
|
|
2989
|
+
* An icon drawn on a chip above the metric (LH-14): "<set>:<name>" ("lucide:users"), a name from the deck's icons, or an SVG source. Decoration only: when the slide has no room for it without setting text smaller, it is not drawn (finding opf/icon-dropped). See docs/icons.md.
|
|
2990
|
+
*/
|
|
2991
|
+
icon?: string;
|
|
2782
2992
|
}
|
|
2783
2993
|
/**
|
|
2784
2994
|
* Quote content with optional attribution metadata. Use 'text' for the quoted text, 'attribution' for the credited person or organization, 'role' for that person's title and organization, 'photo' for their headshot and 'source' for a citation or URL. A string value in a quote field is shorthand for { "text": value }.
|
|
@@ -2824,6 +3034,10 @@ interface Quote {
|
|
|
2824
3034
|
*/
|
|
2825
3035
|
mediaType?: string;
|
|
2826
3036
|
});
|
|
3037
|
+
/**
|
|
3038
|
+
* How the `photo` is drawn. 'side' draws it as a tall picture at the start of the quote (about a quarter of its width, rounded, cropped around the upper third), the quote text beside it and centered against it; 'avatar' as the circle beside the attribution. Without it the engine draws 'side' when the quote is at least 640 px wide and every part of the quote keeps the size it has beside the avatar (the picture takes a narrower share where the text needs the room), and the avatar otherwise (several quotes side by side, a quote beside other blocks). Needs `photo`.
|
|
3039
|
+
*/
|
|
3040
|
+
portrait?: ("avatar" | "side");
|
|
2827
3041
|
/**
|
|
2828
3042
|
* Optional quote source, citation, or URL. Follows the attribution and role after ' - '.
|
|
2829
3043
|
*/
|
|
@@ -2887,22 +3101,284 @@ interface ImageFocus1 {
|
|
|
2887
3101
|
y: number;
|
|
2888
3102
|
}
|
|
2889
3103
|
/**
|
|
2890
|
-
*
|
|
3104
|
+
* A gradient line instead of a solid color (a:ln/a:gradFill).
|
|
3105
|
+
*/
|
|
3106
|
+
interface Gradient {
|
|
3107
|
+
/**
|
|
3108
|
+
* linear runs along 'angle'; radial spreads from the center as a circle, rectangle as a rectangle and shape along the shape's own outline (a:path circle, rect, shape). Default linear.
|
|
3109
|
+
*/
|
|
3110
|
+
type?: ("linear" | "radial" | "rectangle" | "shape");
|
|
3111
|
+
/**
|
|
3112
|
+
* Linear gradients only: angle in degrees (0 = left to right, 90 = top to bottom). Default 90.
|
|
3113
|
+
*/
|
|
3114
|
+
angle?: number;
|
|
3115
|
+
/**
|
|
3116
|
+
* Ordered color stops; at least two. A radial, rectangle or shape gradient runs from the center (position 0) to the outline (position 1).
|
|
3117
|
+
*
|
|
3118
|
+
* @minItems 2
|
|
3119
|
+
*/
|
|
3120
|
+
stops: [
|
|
3121
|
+
{
|
|
3122
|
+
/**
|
|
3123
|
+
* 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:
|
|
3124
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3125
|
+
* - 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
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3127
|
+
* - 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.
|
|
3128
|
+
*
|
|
3129
|
+
* 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
|
+
*/
|
|
3131
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3132
|
+
/**
|
|
3133
|
+
* Stop position, 0 to 1.
|
|
3134
|
+
*/
|
|
3135
|
+
position: number;
|
|
3136
|
+
},
|
|
3137
|
+
{
|
|
3138
|
+
/**
|
|
3139
|
+
* 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:
|
|
3140
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3141
|
+
* - 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
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3143
|
+
* - 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.
|
|
3144
|
+
*
|
|
3145
|
+
* 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
|
+
*/
|
|
3147
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3148
|
+
/**
|
|
3149
|
+
* Stop position, 0 to 1.
|
|
3150
|
+
*/
|
|
3151
|
+
position: number;
|
|
3152
|
+
},
|
|
3153
|
+
...({
|
|
3154
|
+
/**
|
|
3155
|
+
* 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:
|
|
3156
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3157
|
+
* - 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
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3159
|
+
* - 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.
|
|
3160
|
+
*
|
|
3161
|
+
* 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
|
+
*/
|
|
3163
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3164
|
+
/**
|
|
3165
|
+
* Stop position, 0 to 1.
|
|
3166
|
+
*/
|
|
3167
|
+
position: number;
|
|
3168
|
+
})[]
|
|
3169
|
+
];
|
|
3170
|
+
}
|
|
3171
|
+
/**
|
|
3172
|
+
* Arrowhead at the start of an open path (a:headEnd).
|
|
3173
|
+
*/
|
|
3174
|
+
interface Arrowhead {
|
|
3175
|
+
/**
|
|
3176
|
+
* Arrowhead kind, DrawingML's ST_LineEndType. Default 'triangle' when the object is given.
|
|
3177
|
+
*/
|
|
3178
|
+
type?: ("none" | "triangle" | "stealth" | "diamond" | "oval" | "arrow");
|
|
3179
|
+
/**
|
|
3180
|
+
* Arrowhead width relative to the stroke width (2, 3 or 5 stroke widths). Default medium.
|
|
3181
|
+
*/
|
|
3182
|
+
width?: ("small" | "medium" | "large");
|
|
3183
|
+
/**
|
|
3184
|
+
* Arrowhead length relative to the stroke width (2, 3 or 5 stroke widths). Default medium.
|
|
3185
|
+
*/
|
|
3186
|
+
length?: ("small" | "medium" | "large");
|
|
3187
|
+
}
|
|
3188
|
+
/**
|
|
3189
|
+
* Arrowhead at the end of an open path (a:tailEnd).
|
|
3190
|
+
*/
|
|
3191
|
+
interface Arrowhead1 {
|
|
3192
|
+
/**
|
|
3193
|
+
* Arrowhead kind, DrawingML's ST_LineEndType. Default 'triangle' when the object is given.
|
|
3194
|
+
*/
|
|
3195
|
+
type?: ("none" | "triangle" | "stealth" | "diamond" | "oval" | "arrow");
|
|
3196
|
+
/**
|
|
3197
|
+
* Arrowhead width relative to the stroke width (2, 3 or 5 stroke widths). Default medium.
|
|
3198
|
+
*/
|
|
3199
|
+
width?: ("small" | "medium" | "large");
|
|
3200
|
+
/**
|
|
3201
|
+
* Arrowhead length relative to the stroke width (2, 3 or 5 stroke widths). Default medium.
|
|
3202
|
+
*/
|
|
3203
|
+
length?: ("small" | "medium" | "large");
|
|
3204
|
+
}
|
|
3205
|
+
/**
|
|
3206
|
+
* A gradient fill (SH-02): the background gradient object extended with 'type'. DrawingML a:gradFill: a:lin for linear, a:path circle, rect or shape for the others. The gradient rotates with the shape.
|
|
3207
|
+
*
|
|
3208
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
3209
|
+
* via the `definition` "Gradient".
|
|
3210
|
+
*/
|
|
3211
|
+
interface Gradient1 {
|
|
3212
|
+
/**
|
|
3213
|
+
* linear runs along 'angle'; radial spreads from the center as a circle, rectangle as a rectangle and shape along the shape's own outline (a:path circle, rect, shape). Default linear.
|
|
3214
|
+
*/
|
|
3215
|
+
type?: ("linear" | "radial" | "rectangle" | "shape");
|
|
3216
|
+
/**
|
|
3217
|
+
* Linear gradients only: angle in degrees (0 = left to right, 90 = top to bottom). Default 90.
|
|
3218
|
+
*/
|
|
3219
|
+
angle?: number;
|
|
3220
|
+
/**
|
|
3221
|
+
* Ordered color stops; at least two. A radial, rectangle or shape gradient runs from the center (position 0) to the outline (position 1).
|
|
3222
|
+
*
|
|
3223
|
+
* @minItems 2
|
|
3224
|
+
*/
|
|
3225
|
+
stops: [
|
|
3226
|
+
{
|
|
3227
|
+
/**
|
|
3228
|
+
* 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:
|
|
3229
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3230
|
+
* - 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
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3232
|
+
* - 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.
|
|
3233
|
+
*
|
|
3234
|
+
* 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
|
+
*/
|
|
3236
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3237
|
+
/**
|
|
3238
|
+
* Stop position, 0 to 1.
|
|
3239
|
+
*/
|
|
3240
|
+
position: number;
|
|
3241
|
+
},
|
|
3242
|
+
{
|
|
3243
|
+
/**
|
|
3244
|
+
* 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:
|
|
3245
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3246
|
+
* - 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
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3248
|
+
* - 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.
|
|
3249
|
+
*
|
|
3250
|
+
* 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
|
+
*/
|
|
3252
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3253
|
+
/**
|
|
3254
|
+
* Stop position, 0 to 1.
|
|
3255
|
+
*/
|
|
3256
|
+
position: number;
|
|
3257
|
+
},
|
|
3258
|
+
...({
|
|
3259
|
+
/**
|
|
3260
|
+
* 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:
|
|
3261
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3262
|
+
* - 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
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3264
|
+
* - 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.
|
|
3265
|
+
*
|
|
3266
|
+
* 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
|
+
*/
|
|
3268
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3269
|
+
/**
|
|
3270
|
+
* Stop position, 0 to 1.
|
|
3271
|
+
*/
|
|
3272
|
+
position: number;
|
|
3273
|
+
})[]
|
|
3274
|
+
];
|
|
3275
|
+
}
|
|
3276
|
+
/**
|
|
3277
|
+
* A two-color pattern fill (the background pattern object), DrawingML a:pattFill.
|
|
3278
|
+
*
|
|
3279
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
3280
|
+
* via the `definition` "Pattern".
|
|
2891
3281
|
*/
|
|
2892
|
-
interface
|
|
3282
|
+
interface Pattern {
|
|
2893
3283
|
/**
|
|
2894
|
-
*
|
|
3284
|
+
* DrawingML pattern preset (ECMA-376 ST_PresetPatternVal), for example pct5, ltHorz, wdUpDiag, smGrid or dotDmnd.
|
|
3285
|
+
*/
|
|
3286
|
+
preset: string;
|
|
3287
|
+
/**
|
|
3288
|
+
* A color value or reference, enforced on shape fills and strokes, image strokes, styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors. Four forms:
|
|
2895
3289
|
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
2896
3290
|
* - Color-scheme name, resolved through the effective color scheme after design resolution: an OOXML slot ('accent1'-'accent6', 'dark1', 'dark2', 'light1', 'light2', 'hyperlink', 'followedHyperlink') or an abstract role ('primary', 'secondary', 'accent', 'background', 'surface', 'surfaceAlt', 'text', 'textSecondary'). Roles resolve through the same role-to-slot mapping engines already apply to color schemes. 'surfaceAlt' has no slot: it is the alternate surface of banded table rows, derived from 'surface' and 'text' (the surface mixed a tenth of the way towards the text color, further when needed, so it always differs visibly from 'surface' and keeps 4.5:1 text contrast; core surfaceAltColor).
|
|
2897
3291
|
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3292
|
+
* - 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.
|
|
2898
3293
|
*
|
|
2899
3294
|
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
2900
3295
|
*/
|
|
2901
|
-
|
|
3296
|
+
foregroundColor?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
2902
3297
|
/**
|
|
2903
|
-
*
|
|
3298
|
+
* 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:
|
|
3299
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3300
|
+
* - 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
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3302
|
+
* - 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.
|
|
3303
|
+
*
|
|
3304
|
+
* Names keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.
|
|
2904
3305
|
*/
|
|
2905
|
-
|
|
3306
|
+
backgroundColor?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3307
|
+
}
|
|
3308
|
+
/**
|
|
3309
|
+
* Shape blocks only. Inner shadow.
|
|
3310
|
+
*/
|
|
3311
|
+
interface InnerShadow {
|
|
3312
|
+
/**
|
|
3313
|
+
* 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:
|
|
3314
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3315
|
+
* - 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
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3317
|
+
* - 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.
|
|
3318
|
+
*
|
|
3319
|
+
* 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
|
+
*/
|
|
3321
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3322
|
+
/**
|
|
3323
|
+
* Shadow opacity.
|
|
3324
|
+
*/
|
|
3325
|
+
opacity?: number;
|
|
3326
|
+
/**
|
|
3327
|
+
* Blur radius in reference pixels at a 720-pixel short edge.
|
|
3328
|
+
*/
|
|
3329
|
+
blur?: number;
|
|
3330
|
+
/**
|
|
3331
|
+
* Offset in reference pixels at a 720-pixel short edge.
|
|
3332
|
+
*/
|
|
3333
|
+
distance?: number;
|
|
3334
|
+
/**
|
|
3335
|
+
* Direction of the offset in degrees (0 = right, 90 = down).
|
|
3336
|
+
*/
|
|
3337
|
+
angle?: number;
|
|
3338
|
+
}
|
|
3339
|
+
/**
|
|
3340
|
+
* Shape blocks only. Glow.
|
|
3341
|
+
*/
|
|
3342
|
+
interface Glow {
|
|
3343
|
+
/**
|
|
3344
|
+
* 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:
|
|
3345
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3346
|
+
* - 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
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3348
|
+
* - 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.
|
|
3349
|
+
*
|
|
3350
|
+
* 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
|
+
*/
|
|
3352
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3353
|
+
/**
|
|
3354
|
+
* Glow opacity.
|
|
3355
|
+
*/
|
|
3356
|
+
opacity?: number;
|
|
3357
|
+
/**
|
|
3358
|
+
* Glow size in reference pixels at a 720-pixel short edge.
|
|
3359
|
+
*/
|
|
3360
|
+
radius?: number;
|
|
3361
|
+
}
|
|
3362
|
+
/**
|
|
3363
|
+
* Shape blocks only. Reflection.
|
|
3364
|
+
*/
|
|
3365
|
+
interface Reflection {
|
|
3366
|
+
/**
|
|
3367
|
+
* Opacity where the reflection starts.
|
|
3368
|
+
*/
|
|
3369
|
+
opacity?: number;
|
|
3370
|
+
/**
|
|
3371
|
+
* Share of the shape's height reflected.
|
|
3372
|
+
*/
|
|
3373
|
+
size?: number;
|
|
3374
|
+
/**
|
|
3375
|
+
* Gap between the shape and its reflection in reference pixels at a 720-pixel short edge.
|
|
3376
|
+
*/
|
|
3377
|
+
distance?: number;
|
|
3378
|
+
/**
|
|
3379
|
+
* Blur radius in reference pixels at a 720-pixel short edge.
|
|
3380
|
+
*/
|
|
3381
|
+
blur?: number;
|
|
2906
3382
|
}
|
|
2907
3383
|
/**
|
|
2908
3384
|
* Solid scrim over a picture: the whole frame in the frame's shape, or a band along one edge. Shared by image backgrounds and image blocks. Drawn directly above its picture and beneath headings and content; PowerPoint export writes one native shape above the picture.
|
|
@@ -2911,7 +3387,7 @@ interface Overlay1 {
|
|
|
2911
3387
|
/**
|
|
2912
3388
|
* Overlay fill color: a hex color (eight-digit hex keeps its alpha), a color-scheme slot or role name, or a 'var:<id>' variable reference.
|
|
2913
3389
|
*/
|
|
2914
|
-
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string);
|
|
3390
|
+
color: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
2915
3391
|
/**
|
|
2916
3392
|
* Overlay fill opacity.
|
|
2917
3393
|
*/
|
|
@@ -2947,7 +3423,7 @@ interface ImagePlacement {
|
|
|
2947
3423
|
*/
|
|
2948
3424
|
interface Chart1 {
|
|
2949
3425
|
/**
|
|
2950
|
-
* Chart type, an engine vocabulary validated directly (no catalog lookup): the chart types
|
|
3426
|
+
* Chart type, an engine vocabulary validated directly (no catalog lookup): the chart types OPF supports natively in its preview and PPTX export, plus 'combo' (clustered columns with line series, see 'line' and 'secondaryAxis'). Each engine maps a type to its own chart model; labels and picker groups are catalog display metadata.
|
|
2951
3427
|
*/
|
|
2952
3428
|
type: ("100pct-stacked-area" | "100pct-stacked-bar" | "100pct-stacked-column" | "area" | "bar" | "box-and-whisker" | "column" | "combo" | "doughnut" | "filled-radar" | "funnel" | "histogram" | "line" | "line-with-markers" | "pareto" | "pie" | "radar" | "radar-with-markers" | "scatter" | "stacked-area" | "stacked-bar" | "stacked-column" | "stacked-line" | "stacked-line-with-markers" | "treemap" | "waterfall" | "world");
|
|
2953
3429
|
/**
|
|
@@ -3060,6 +3536,349 @@ interface Composition {
|
|
|
3060
3536
|
*/
|
|
3061
3537
|
overflow?: ("warn" | "error");
|
|
3062
3538
|
}
|
|
3539
|
+
/**
|
|
3540
|
+
* SH-04: an entry of slide 'shapes', drawn over the composed slide above the content and the furniture, later entries on top; it never moves content. An entry with 'connector' is a connector between two blocks or overlay shapes: it takes only 'id', 'connector', 'adjust', 'stroke', 'alt', 'decorative', 'hidden' and 'extensions'; core routes it as PowerPoint's own connector presets and PPTX export writes a native p:cxnSp glued to the shapes at its ends, so it follows them when they are moved in PowerPoint. Any other entry is an overlay shape: the shape block vocabulary (geometry, paint, effects, transform, text, accessibility) and exactly one placement, 'x', 'y', 'width' and 'height' (fractions of the slide) or 'at' (against a block, so it follows the block wherever composition puts it); PPTX export writes a native p:sp.
|
|
3541
|
+
*
|
|
3542
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
3543
|
+
* via the `definition` "OverlayShape".
|
|
3544
|
+
*/
|
|
3545
|
+
interface OverlayShape {
|
|
3546
|
+
/**
|
|
3547
|
+
* Optional stable identifier, unique among slide, payload and overlay ids in the document. A connector names it in 'from' or 'to'.
|
|
3548
|
+
*/
|
|
3549
|
+
id?: string;
|
|
3550
|
+
/**
|
|
3551
|
+
* Left edge as a fraction of the slide width, from the left edge; in a right-to-left deck from the right edge, mirrored as OPF mirrors start and end. With 'y', 'width' and 'height'.
|
|
3552
|
+
*/
|
|
3553
|
+
x?: number;
|
|
3554
|
+
/**
|
|
3555
|
+
* Top edge as a fraction of the slide height, from the top edge.
|
|
3556
|
+
*/
|
|
3557
|
+
y?: number;
|
|
3558
|
+
/**
|
|
3559
|
+
* Width as a fraction of the slide width.
|
|
3560
|
+
*/
|
|
3561
|
+
width?: number;
|
|
3562
|
+
/**
|
|
3563
|
+
* Height as a fraction of the slide height.
|
|
3564
|
+
*/
|
|
3565
|
+
height?: number;
|
|
3566
|
+
at?: OverlayAnchor;
|
|
3567
|
+
/**
|
|
3568
|
+
* Overlay shapes only. front (the default) draws the shape over the slide: above the content and the furniture. back draws it behind the slide: above the background and the watermark, below the content and the furniture (a panel or band behind a block). Array order stacks the shapes within each layer. Connectors are always in front.
|
|
3569
|
+
*/
|
|
3570
|
+
layer?: ("front" | "back");
|
|
3571
|
+
connector?: Connector;
|
|
3572
|
+
/**
|
|
3573
|
+
* The preset geometry, as on a shape block. Default rect.
|
|
3574
|
+
*/
|
|
3575
|
+
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");
|
|
3576
|
+
/**
|
|
3577
|
+
* Custom geometry instead of a preset (a:custGeom), as on a shape block.
|
|
3578
|
+
*/
|
|
3579
|
+
path?: (string | {
|
|
3580
|
+
/**
|
|
3581
|
+
* SVG path data in the viewBox.
|
|
3582
|
+
*/
|
|
3583
|
+
d: string;
|
|
3584
|
+
/**
|
|
3585
|
+
* The path's own box, 'minX minY width height' as in SVG; it is stretched to the block.
|
|
3586
|
+
*/
|
|
3587
|
+
viewBox: string;
|
|
3588
|
+
});
|
|
3589
|
+
/**
|
|
3590
|
+
* The preset's adjust handles (a:avLst) in OPF units, as on a shape block. On a connector, the adjust values of its connector preset (adj1 of an elbow or a curve between sites on one axis, a fraction of the frame's width), which replace the automatic route's, so a route made in PowerPoint is kept exactly.
|
|
3591
|
+
*/
|
|
3592
|
+
adjust?: {
|
|
3593
|
+
[k: string]: number;
|
|
3594
|
+
};
|
|
3595
|
+
/**
|
|
3596
|
+
* 'none', a ColorRef, { gradient } or { pattern }. Default the style's fill.
|
|
3597
|
+
*/
|
|
3598
|
+
fill?: ("none" | (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform) | {
|
|
3599
|
+
gradient: Gradient1;
|
|
3600
|
+
} | {
|
|
3601
|
+
pattern: Pattern;
|
|
3602
|
+
});
|
|
3603
|
+
/**
|
|
3604
|
+
* The fill's opacity (a:alpha). Default 1.
|
|
3605
|
+
*/
|
|
3606
|
+
opacity?: number;
|
|
3607
|
+
/**
|
|
3608
|
+
* A shape's line along its outline (default the style's line), or a connector's line: color, width, dash, compound, sketch and arrowheads ('start' at 'from', 'end' at 'to'; default a 2-pixel line in the slide's text color with no arrowheads).
|
|
3609
|
+
*/
|
|
3610
|
+
stroke?: ("none" | {
|
|
3611
|
+
/**
|
|
3612
|
+
* 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:
|
|
3613
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3614
|
+
* - 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
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3616
|
+
* - 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.
|
|
3617
|
+
*
|
|
3618
|
+
* 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
|
+
*/
|
|
3620
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3621
|
+
gradient?: Gradient;
|
|
3622
|
+
/**
|
|
3623
|
+
* Line width in reference pixels at a 720-pixel short edge. 0 removes the line. Default 4/3 (1 point, PowerPoint's default line) on a shape, 2 on a picture.
|
|
3624
|
+
*/
|
|
3625
|
+
width?: number;
|
|
3626
|
+
/**
|
|
3627
|
+
* Dash pattern: a preset name or an array of dash and gap lengths in stroke widths.
|
|
3628
|
+
*/
|
|
3629
|
+
dash?: (("solid" | "dot" | "dash" | "longDash" | "dashDot" | "longDashDot" | "longDashDotDot" | "sysDot" | "sysDash" | "sysDashDot" | "sysDashDotDot") | [number, number] | [number, number, number] | [number, number, number, number] | [number, number, number, number, number] | [number, number, number, number, number, number] | [number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number]);
|
|
3630
|
+
/**
|
|
3631
|
+
* Line cap (a:ln cap flat, rnd, sq). Default flat.
|
|
3632
|
+
*/
|
|
3633
|
+
cap?: ("flat" | "round" | "square");
|
|
3634
|
+
/**
|
|
3635
|
+
* Line join (a:miter, a:round, a:bevel). Default miter, PowerPoint's default line join.
|
|
3636
|
+
*/
|
|
3637
|
+
join?: ("miter" | "round" | "bevel");
|
|
3638
|
+
/**
|
|
3639
|
+
* Miter join limit, as a multiple of the stroke width (a:miter lim). Default 8. Ignored by round and bevel joins.
|
|
3640
|
+
*/
|
|
3641
|
+
miterLimit?: number;
|
|
3642
|
+
/**
|
|
3643
|
+
* Compound line (a:ln cmpd sng, dbl, thickThin, thinThick, tri). Default single.
|
|
3644
|
+
*/
|
|
3645
|
+
compound?: ("single" | "double" | "thickThin" | "thinThick" | "triple");
|
|
3646
|
+
/**
|
|
3647
|
+
* Where the line sits on the outline (a:ln algn ctr or in). Default center. PowerPoint draws inside-aligned lines only on closed outlines.
|
|
3648
|
+
*/
|
|
3649
|
+
align?: ("center" | "inside");
|
|
3650
|
+
start?: Arrowhead;
|
|
3651
|
+
end?: Arrowhead1;
|
|
3652
|
+
/**
|
|
3653
|
+
* Hand-drawn look (PowerPoint's Sketched line, ask:lineSketchStyleProps): curved, freehand or scribble. OPF computes the sketched outline from a seed and both engines draw it: the preview strokes it and the PPTX stores it, which PowerPoint draws as stored, so the two match. A stroked path's fill follows the sketched outline too. PowerPoint versions before 2021 draw the plain line.
|
|
3654
|
+
*/
|
|
3655
|
+
sketch?: ("curved" | "freehand" | "scribble");
|
|
3656
|
+
});
|
|
3657
|
+
/**
|
|
3658
|
+
* The theme shape style, as on a shape block. Default moderate.
|
|
3659
|
+
*/
|
|
3660
|
+
style?: ("none" | "subtle" | "moderate" | "intense");
|
|
3661
|
+
/**
|
|
3662
|
+
* Outer shadow.
|
|
3663
|
+
*/
|
|
3664
|
+
shadow?: (("soft" | "hard" | "perspective") | {
|
|
3665
|
+
/**
|
|
3666
|
+
* 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:
|
|
3667
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3668
|
+
* - 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
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3670
|
+
* - 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.
|
|
3671
|
+
*
|
|
3672
|
+
* 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
|
+
*/
|
|
3674
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3675
|
+
/**
|
|
3676
|
+
* Shadow opacity.
|
|
3677
|
+
*/
|
|
3678
|
+
opacity?: number;
|
|
3679
|
+
/**
|
|
3680
|
+
* Blur radius in reference pixels at a 720-pixel short edge.
|
|
3681
|
+
*/
|
|
3682
|
+
blur?: number;
|
|
3683
|
+
/**
|
|
3684
|
+
* Offset from the shape in reference pixels at a 720-pixel short edge.
|
|
3685
|
+
*/
|
|
3686
|
+
distance?: number;
|
|
3687
|
+
/**
|
|
3688
|
+
* Direction of the offset in degrees (0 = right, 90 = down).
|
|
3689
|
+
*/
|
|
3690
|
+
angle?: number;
|
|
3691
|
+
/**
|
|
3692
|
+
* Shadow size relative to the shape (1 = the shape's own size).
|
|
3693
|
+
*/
|
|
3694
|
+
size?: number;
|
|
3695
|
+
});
|
|
3696
|
+
innerShadow?: InnerShadow1;
|
|
3697
|
+
glow?: Glow1;
|
|
3698
|
+
/**
|
|
3699
|
+
* Soft edges (a:softEdge), radius in reference pixels at a 720-pixel short edge.
|
|
3700
|
+
*/
|
|
3701
|
+
softEdge?: number;
|
|
3702
|
+
reflection?: Reflection1;
|
|
3703
|
+
/**
|
|
3704
|
+
* Blur of the whole shape (a:blur), radius in reference pixels at a 720-pixel short edge.
|
|
3705
|
+
*/
|
|
3706
|
+
blur?: number;
|
|
3707
|
+
/**
|
|
3708
|
+
* Rotation in degrees, clockwise, about the shape's center (a:xfrm rot). Its connection sites turn with it.
|
|
3709
|
+
*/
|
|
3710
|
+
rotate?: number;
|
|
3711
|
+
/**
|
|
3712
|
+
* Mirror the geometry (a:xfrm flipH, flipV). The text is not mirrored.
|
|
3713
|
+
*/
|
|
3714
|
+
flip?: ("horizontal" | "vertical" | "both");
|
|
3715
|
+
/**
|
|
3716
|
+
* Text inside the shape's text rectangle (a string or TextRun[]), fitted by OPF's measured fonts from the body size down to the readability floor and never below it.
|
|
3717
|
+
*/
|
|
3718
|
+
text?: (string | TextRun[]);
|
|
3719
|
+
/**
|
|
3720
|
+
* Vertical placement of the text in the text rectangle (a:bodyPr anchor). Default middle.
|
|
3721
|
+
*/
|
|
3722
|
+
anchor?: ("top" | "middle" | "bottom");
|
|
3723
|
+
/**
|
|
3724
|
+
* Text insets inside the text rectangle.
|
|
3725
|
+
*/
|
|
3726
|
+
padding?: (number | TableCellPadding);
|
|
3727
|
+
/**
|
|
3728
|
+
* Text direction (a:bodyPr vert). Default horizontal.
|
|
3729
|
+
*/
|
|
3730
|
+
textDirection?: ("horizontal" | "vertical" | "vertical270" | "stacked");
|
|
3731
|
+
/**
|
|
3732
|
+
* Alternative text (p:cNvPr descr). Without it the shape's text is what is read.
|
|
3733
|
+
*/
|
|
3734
|
+
alt?: string;
|
|
3735
|
+
/**
|
|
3736
|
+
* Mark the shape decorative (a16:decorative): screen readers skip it.
|
|
3737
|
+
*/
|
|
3738
|
+
decorative?: boolean;
|
|
3739
|
+
/**
|
|
3740
|
+
* Keep the shape in the file but do not draw it (p:cNvPr hidden). A link on a hidden shape is a validation finding (opf/shape-link-hidden).
|
|
3741
|
+
*/
|
|
3742
|
+
hidden?: boolean;
|
|
3743
|
+
/**
|
|
3744
|
+
* URL opened when the shape is clicked in a slide show (a:hlinkClick): an http(s) URL, a 'mailto:' address or a 'tel:' number.
|
|
3745
|
+
*/
|
|
3746
|
+
link?: string;
|
|
3747
|
+
/**
|
|
3748
|
+
* Custom data passthrough for agent workflows; ignored by the engine but preserved across read/write round-trips.
|
|
3749
|
+
*/
|
|
3750
|
+
extensions?: {
|
|
3751
|
+
[k: string]: unknown;
|
|
3752
|
+
};
|
|
3753
|
+
}
|
|
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
|
+
/**
|
|
3783
|
+
* Makes the entry a connector: what it joins and how it runs.
|
|
3784
|
+
*/
|
|
3785
|
+
interface Connector {
|
|
3786
|
+
/**
|
|
3787
|
+
* The id of the block or overlay shape on this slide the connector starts at. An id that is not on the slide is a finding (opf/connector-end-missing) and the connector is not drawn.
|
|
3788
|
+
*/
|
|
3789
|
+
from: string;
|
|
3790
|
+
/**
|
|
3791
|
+
* The id of the block or overlay shape on this slide the connector ends at.
|
|
3792
|
+
*/
|
|
3793
|
+
to: string;
|
|
3794
|
+
/**
|
|
3795
|
+
* straight is one segment (straightConnector1); elbow runs horizontally and vertically (bentConnector3, bentConnector2 between perpendicular sites); curved is PowerPoint's curved connector (curvedConnector3, curvedConnector2 between perpendicular sites). Default straight.
|
|
3796
|
+
*/
|
|
3797
|
+
route?: ("straight" | "elbow" | "curved");
|
|
3798
|
+
/**
|
|
3799
|
+
* The connection site index at 'from' (DrawingML's cxn idx), instead of the automatic choice. An index the shape does not have is a validation error.
|
|
3800
|
+
*/
|
|
3801
|
+
fromSite?: number;
|
|
3802
|
+
/**
|
|
3803
|
+
* The connection site index at 'to', instead of the automatic choice.
|
|
3804
|
+
*/
|
|
3805
|
+
toSite?: number;
|
|
3806
|
+
}
|
|
3807
|
+
/**
|
|
3808
|
+
* Inner shadow.
|
|
3809
|
+
*/
|
|
3810
|
+
interface InnerShadow1 {
|
|
3811
|
+
/**
|
|
3812
|
+
* 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:
|
|
3813
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3814
|
+
* - 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
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3816
|
+
* - 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.
|
|
3817
|
+
*
|
|
3818
|
+
* 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
|
+
*/
|
|
3820
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3821
|
+
/**
|
|
3822
|
+
* Shadow opacity.
|
|
3823
|
+
*/
|
|
3824
|
+
opacity?: number;
|
|
3825
|
+
/**
|
|
3826
|
+
* Blur radius in reference pixels at a 720-pixel short edge.
|
|
3827
|
+
*/
|
|
3828
|
+
blur?: number;
|
|
3829
|
+
/**
|
|
3830
|
+
* Offset in reference pixels at a 720-pixel short edge.
|
|
3831
|
+
*/
|
|
3832
|
+
distance?: number;
|
|
3833
|
+
/**
|
|
3834
|
+
* Direction of the offset in degrees (0 = right, 90 = down).
|
|
3835
|
+
*/
|
|
3836
|
+
angle?: number;
|
|
3837
|
+
}
|
|
3838
|
+
/**
|
|
3839
|
+
* Glow.
|
|
3840
|
+
*/
|
|
3841
|
+
interface Glow1 {
|
|
3842
|
+
/**
|
|
3843
|
+
* 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:
|
|
3844
|
+
* - Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.
|
|
3845
|
+
* - 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
|
+
* - Variable reference: 'var:<id>' into the top-level variables map.
|
|
3847
|
+
* - 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.
|
|
3848
|
+
*
|
|
3849
|
+
* 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
|
+
*/
|
|
3851
|
+
color?: (HexColor | ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "dark1" | "dark2" | "light1" | "light2" | "hyperlink" | "followedHyperlink" | "primary" | "secondary" | "accent" | "background" | "surface" | "surfaceAlt" | "text" | "textSecondary") | string | ColorTransform);
|
|
3852
|
+
/**
|
|
3853
|
+
* Glow opacity.
|
|
3854
|
+
*/
|
|
3855
|
+
opacity?: number;
|
|
3856
|
+
/**
|
|
3857
|
+
* Glow size in reference pixels at a 720-pixel short edge.
|
|
3858
|
+
*/
|
|
3859
|
+
radius?: number;
|
|
3860
|
+
}
|
|
3861
|
+
/**
|
|
3862
|
+
* Reflection.
|
|
3863
|
+
*/
|
|
3864
|
+
interface Reflection1 {
|
|
3865
|
+
/**
|
|
3866
|
+
* Opacity where the reflection starts.
|
|
3867
|
+
*/
|
|
3868
|
+
opacity?: number;
|
|
3869
|
+
/**
|
|
3870
|
+
* Share of the shape's height reflected.
|
|
3871
|
+
*/
|
|
3872
|
+
size?: number;
|
|
3873
|
+
/**
|
|
3874
|
+
* Gap between the shape and its reflection in reference pixels at a 720-pixel short edge.
|
|
3875
|
+
*/
|
|
3876
|
+
distance?: number;
|
|
3877
|
+
/**
|
|
3878
|
+
* Blur radius in reference pixels at a 720-pixel short edge.
|
|
3879
|
+
*/
|
|
3880
|
+
blur?: number;
|
|
3881
|
+
}
|
|
3063
3882
|
/**
|
|
3064
3883
|
* Visual design system applied to the presentation; individual slides may override fields via Slide.design.
|
|
3065
3884
|
*
|
|
@@ -3286,6 +4105,12 @@ interface DataSourceRef1 {
|
|
|
3286
4105
|
interface Assets {
|
|
3287
4106
|
[k: string]: Asset;
|
|
3288
4107
|
}
|
|
4108
|
+
/**
|
|
4109
|
+
* Optional deck-local icons (LH-14), keyed by name: an author's or an LLM's own SVG, written once and named by any `icon` of the deck. See docs/icons.md.
|
|
4110
|
+
*/
|
|
4111
|
+
interface Icons {
|
|
4112
|
+
[k: string]: string;
|
|
4113
|
+
}
|
|
3289
4114
|
/**
|
|
3290
4115
|
* The catalog records this document embeds, grouped by the catalog they came from: 'default' (the catalog bare ids come from), 'custom' (records the document defines itself) and any number of named catalogs ('acme', referenced as 'acme:<id>'). A saved document embeds every record it references, so it renders the same with no catalog registered. See Catalogs.
|
|
3291
4116
|
*/
|
|
@@ -3321,6 +4146,7 @@ interface CatalogGroup {
|
|
|
3321
4146
|
audiences?: CatalogRecords5;
|
|
3322
4147
|
purposes?: CatalogRecords6;
|
|
3323
4148
|
tones?: CatalogRecords7;
|
|
4149
|
+
iconSets?: CatalogRecords8;
|
|
3324
4150
|
}
|
|
3325
4151
|
/**
|
|
3326
4152
|
* Layout records keyed by id, each with the fields of https://openpresentation.org/schema/opf-layout/v2. Referenced from Slide.layout.
|
|
@@ -3410,5 +4236,16 @@ interface CatalogRecords7 {
|
|
|
3410
4236
|
[k: string]: unknown;
|
|
3411
4237
|
};
|
|
3412
4238
|
}
|
|
4239
|
+
/**
|
|
4240
|
+
* Icon-set records keyed by set id (LH-14), each with the fields of https://openpresentation.org/schema/opf-icon-set/v1, holding only the icons the document uses (no licenseText or tags). Referenced from an icon as "<set>:<name>".
|
|
4241
|
+
*/
|
|
4242
|
+
interface CatalogRecords8 {
|
|
4243
|
+
/**
|
|
4244
|
+
* One embedded record: the fields of the kind's companion schema without '$schema' and 'id'.
|
|
4245
|
+
*/
|
|
4246
|
+
[k: string]: {
|
|
4247
|
+
[k: string]: unknown;
|
|
4248
|
+
};
|
|
4249
|
+
}
|
|
3413
4250
|
|
|
3414
4251
|
export type { Chart as C, Presentation as P };
|