pptxgenjs-plus 4.1.19 → 4.2.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/dist/pptxgen.bundle.js +68 -54
- package/dist/pptxgen.cjs.js +1903 -278
- package/dist/pptxgen.es.js +1898 -277
- package/dist/pptxgen.min.js +63 -49
- package/package.json +4 -2
- package/types/index.d.ts +1186 -25
package/types/index.d.ts
CHANGED
|
@@ -83,6 +83,28 @@ declare interface AppearOnClickProps {
|
|
|
83
83
|
appearOnClick?: boolean;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
/**
|
|
87
|
+
* CD audio source (`a:audioCd`, ECMA-376 Part 1 §20.1.3.3 CT_AudioCD)
|
|
88
|
+
* - references the listener's CD drive, so it embeds nothing and needs no relationship
|
|
89
|
+
*/
|
|
90
|
+
declare interface AudioCdProps {
|
|
91
|
+
start: AudioCdTimeProps;
|
|
92
|
+
end: AudioCdTimeProps;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* A point on an audio CD (`a:st`/`a:end`, ECMA-376 Part 1 §20.1.3.4 CT_AudioCDTime)
|
|
97
|
+
*/
|
|
98
|
+
declare interface AudioCdTimeProps {
|
|
99
|
+
/** CD track number (0-255) - required by the schema */
|
|
100
|
+
track: number;
|
|
101
|
+
/**
|
|
102
|
+
* Offset into the track, in seconds
|
|
103
|
+
* @default 0
|
|
104
|
+
*/
|
|
105
|
+
time?: number;
|
|
106
|
+
}
|
|
107
|
+
|
|
86
108
|
declare interface BackgroundProps extends DataOrPathProps, ShapeFillProps {
|
|
87
109
|
/**
|
|
88
110
|
* Color (hex format)
|
|
@@ -94,6 +116,12 @@ declare interface BackgroundProps extends DataOrPathProps, ShapeFillProps {
|
|
|
94
116
|
* @deprecated v3.6.0 - use `DataOrPathProps` instead - remove in v4.0.0
|
|
95
117
|
*/
|
|
96
118
|
src?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Recolor and correction effects applied to a background image (`a:blip` children)
|
|
121
|
+
* - distinct from SVG `fill` path recolor
|
|
122
|
+
* @example { grayscale: true, brightness: -20 }
|
|
123
|
+
*/
|
|
124
|
+
recolor?: ImageRecolorProps;
|
|
97
125
|
}
|
|
98
126
|
|
|
99
127
|
declare interface BaseAnimationConfig {
|
|
@@ -162,6 +190,55 @@ declare interface BorderProps {
|
|
|
162
190
|
pt?: number;
|
|
163
191
|
}
|
|
164
192
|
|
|
193
|
+
/**
|
|
194
|
+
* 3-D properties of a table cell (`a:cell3D`, ECMA-376 Part 1 §21.1.3.1 CT_Cell3D)
|
|
195
|
+
*/
|
|
196
|
+
declare interface Cell3DProps {
|
|
197
|
+
/**
|
|
198
|
+
* Cell bevel
|
|
199
|
+
* - `a:bevel` is required by the schema, so an `a:bevel` with schema defaults is written
|
|
200
|
+
* whenever `cell3D` is set
|
|
201
|
+
*/
|
|
202
|
+
bevel?: CellBevelProps;
|
|
203
|
+
/**
|
|
204
|
+
* Surface material
|
|
205
|
+
* @default plastic
|
|
206
|
+
*/
|
|
207
|
+
material?: 'legacyMatte' | 'legacyPlastic' | 'legacyMetal' | 'legacyWireframe' | 'matte' | 'plastic' | 'metal' | 'warmMatte' | 'translucentPowder' | 'powder' | 'dkEdge' | 'softEdge' | 'clear' | 'flat' | 'softmetal';
|
|
208
|
+
/** Light rig - dropped unless both `rig` and `dir` are set */
|
|
209
|
+
lightRig?: CellLightRigProps;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* 3-D bevel applied to a table cell (`a:bevel`, ECMA-376 Part 1 §20.1.5.3 CT_Bevel)
|
|
214
|
+
*/
|
|
215
|
+
declare interface CellBevelProps {
|
|
216
|
+
/**
|
|
217
|
+
* Bevel shape
|
|
218
|
+
* @default circle
|
|
219
|
+
*/
|
|
220
|
+
preset?: 'relaxedInset' | 'circle' | 'slope' | 'cross' | 'angle' | 'softRound' | 'convex' | 'coolSlant' | 'divot' | 'riblet' | 'hardEdge' | 'artDeco';
|
|
221
|
+
/**
|
|
222
|
+
* Bevel width (inches)
|
|
223
|
+
* @default 0.083
|
|
224
|
+
*/
|
|
225
|
+
width?: number;
|
|
226
|
+
/**
|
|
227
|
+
* Bevel height (inches)
|
|
228
|
+
* @default 0.083
|
|
229
|
+
*/
|
|
230
|
+
height?: number;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Light rig for a 3-D table cell (`a:lightRig`, ECMA-376 Part 1 §20.1.5.5 CT_LightRig)
|
|
235
|
+
* - both properties are required by the schema, so a partial value is not emitted
|
|
236
|
+
*/
|
|
237
|
+
declare interface CellLightRigProps {
|
|
238
|
+
rig: 'legacyFlat1' | 'legacyFlat2' | 'legacyFlat3' | 'legacyFlat4' | 'legacyNormal1' | 'legacyNormal2' | 'legacyNormal3' | 'legacyNormal4' | 'legacyHarsh1' | 'legacyHarsh2' | 'legacyHarsh3' | 'legacyHarsh4' | 'threePt' | 'balanced' | 'soft' | 'harsh' | 'flood' | 'contrasting' | 'morning' | 'sunrise' | 'sunset' | 'chilly' | 'freezing' | 'flat' | 'twoPt' | 'glow' | 'brightRoom';
|
|
239
|
+
dir: 'tl' | 't' | 'tr' | 'l' | 'r' | 'bl' | 'b' | 'br';
|
|
240
|
+
}
|
|
241
|
+
|
|
165
242
|
/** Changes Information part payload (MS-PPTX §2.12.1.1 `chgInfo`). Empty object emits a valid empty part. */
|
|
166
243
|
declare type ChangesInfoProps = Record<string, never>;
|
|
167
244
|
|
|
@@ -171,17 +248,48 @@ declare enum CHART_TYPE {
|
|
|
171
248
|
'AREA' = "area",
|
|
172
249
|
'BAR' = "bar",
|
|
173
250
|
'BAR3D' = "bar3D",
|
|
251
|
+
'BOX_WHISKER' = "boxWhisker",
|
|
174
252
|
'BUBBLE' = "bubble",
|
|
175
253
|
'BUBBLE3D' = "bubble3D",
|
|
176
254
|
'DOUGHNUT' = "doughnut",
|
|
255
|
+
'FUNNEL' = "funnel",
|
|
256
|
+
'HISTOGRAM' = "histogram",
|
|
177
257
|
'LINE' = "line",
|
|
178
258
|
'PIE' = "pie",
|
|
179
259
|
'RADAR' = "radar",
|
|
180
|
-
'SCATTER' = "scatter"
|
|
260
|
+
'SCATTER' = "scatter",
|
|
261
|
+
'SUNBURST' = "sunburst",
|
|
262
|
+
'TREEMAP' = "treemap",
|
|
263
|
+
'WATERFALL' = "waterfall"
|
|
181
264
|
}
|
|
182
265
|
|
|
183
266
|
declare type ChartAxisTickMark = 'none' | 'inside' | 'outside' | 'cross';
|
|
184
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Chart colour style (`cs:colorStyle` in `ppt/charts/colorsN.xml`)
|
|
270
|
+
* - the palette PowerPoint's Change Colors gallery offers for the chart
|
|
271
|
+
*/
|
|
272
|
+
declare interface ChartColorStyleProps {
|
|
273
|
+
/**
|
|
274
|
+
* How the palette is walked
|
|
275
|
+
* @default cycle
|
|
276
|
+
*/
|
|
277
|
+
method?: 'cycle' | 'withinLinear' | 'acrossLinear' | 'withinLinearReversed' | 'acrossLinearReversed';
|
|
278
|
+
/**
|
|
279
|
+
* Which entry of the Change Colors gallery is selected
|
|
280
|
+
* @default 10
|
|
281
|
+
*/
|
|
282
|
+
id?: number;
|
|
283
|
+
/**
|
|
284
|
+
* The palette itself
|
|
285
|
+
* @default the theme's six accent colours
|
|
286
|
+
*/
|
|
287
|
+
colors?: Color[];
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/** PowerPoint 2016+ chart types; emitted as a `cx:chartSpace` part (MS-ODRAWXML 2.1) rather than ECMA-376 `c:chartSpace` */
|
|
291
|
+
declare type CHARTEX_NAME = 'boxWhisker' | 'funnel' | 'histogram' | 'sunburst' | 'treemap' | 'waterfall';
|
|
292
|
+
|
|
185
293
|
declare type ChartLineCap = 'flat' | 'round' | 'square';
|
|
186
294
|
|
|
187
295
|
declare enum ChartType {
|
|
@@ -194,7 +302,13 @@ declare enum ChartType {
|
|
|
194
302
|
'line' = "line",
|
|
195
303
|
'pie' = "pie",
|
|
196
304
|
'radar' = "radar",
|
|
197
|
-
'scatter' = "scatter"
|
|
305
|
+
'scatter' = "scatter",
|
|
306
|
+
'boxWhisker' = "boxWhisker",
|
|
307
|
+
'funnel' = "funnel",
|
|
308
|
+
'histogram' = "histogram",
|
|
309
|
+
'sunburst' = "sunburst",
|
|
310
|
+
'treemap' = "treemap",
|
|
311
|
+
'waterfall' = "waterfall"
|
|
198
312
|
}
|
|
199
313
|
|
|
200
314
|
/**
|
|
@@ -215,6 +329,32 @@ declare interface ColorAnimationConfig extends BaseAnimationConfig {
|
|
|
215
329
|
color?: string;
|
|
216
330
|
}
|
|
217
331
|
|
|
332
|
+
/**
|
|
333
|
+
* Per-layout colour map override (`p:clrMapOvr` > `a:overrideClrMapping`)
|
|
334
|
+
* - remaps the presentation's colour slots for one layout
|
|
335
|
+
* - all twelve attributes are required by the schema, so anything left unset is filled from the
|
|
336
|
+
* identity map (which is what inheriting the master's mapping means)
|
|
337
|
+
*/
|
|
338
|
+
declare interface ColorMapOverrideProps {
|
|
339
|
+
bg1?: ColorSchemeIndex;
|
|
340
|
+
tx1?: ColorSchemeIndex;
|
|
341
|
+
bg2?: ColorSchemeIndex;
|
|
342
|
+
tx2?: ColorSchemeIndex;
|
|
343
|
+
accent1?: ColorSchemeIndex;
|
|
344
|
+
accent2?: ColorSchemeIndex;
|
|
345
|
+
accent3?: ColorSchemeIndex;
|
|
346
|
+
accent4?: ColorSchemeIndex;
|
|
347
|
+
accent5?: ColorSchemeIndex;
|
|
348
|
+
accent6?: ColorSchemeIndex;
|
|
349
|
+
hlink?: ColorSchemeIndex;
|
|
350
|
+
folHlink?: ColorSchemeIndex;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* ECMA-376 20.1.10.14 ST_ColorSchemeIndex - a slot in the theme's colour scheme
|
|
355
|
+
*/
|
|
356
|
+
declare type ColorSchemeIndex = 'dk1' | 'lt1' | 'dk2' | 'lt2' | 'accent1' | 'accent2' | 'accent3' | 'accent4' | 'accent5' | 'accent6' | 'hlink' | 'folHlink';
|
|
357
|
+
|
|
218
358
|
/** A modern-comment author. MS-PPTX §2.16.3.1 `CT_Author`. */
|
|
219
359
|
declare interface CommentAuthorProps {
|
|
220
360
|
/** Author display name (required). */
|
|
@@ -365,6 +505,50 @@ declare interface CommentTaskProps {
|
|
|
365
505
|
*/
|
|
366
506
|
declare type CompressionLevel = 'none' | 'fast' | 'best';
|
|
367
507
|
|
|
508
|
+
/**
|
|
509
|
+
* Where a connector attaches to a shape (`a:stCxn`/`a:endCxn`)
|
|
510
|
+
* - maps onto existing `line.sourceId`/`targetId` via `objectName` at emit time
|
|
511
|
+
*/
|
|
512
|
+
declare interface ConnectionProps {
|
|
513
|
+
/** `objectName` of the shape to glue to */
|
|
514
|
+
shape: string;
|
|
515
|
+
/**
|
|
516
|
+
* Which connection site on that shape
|
|
517
|
+
* - a rectangle has 0 (top), 1 (left), 2 (bottom), 3 (right)
|
|
518
|
+
* @default 0
|
|
519
|
+
*/
|
|
520
|
+
site?: number;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Additive connector convenience (`slide.addConnector`)
|
|
525
|
+
* - maps onto `addShape` + `line.isConnector` / sourceId / targetId
|
|
526
|
+
*/
|
|
527
|
+
declare interface ConnectorProps extends PositionProps, ObjectNameProps {
|
|
528
|
+
/**
|
|
529
|
+
* Connector geometry
|
|
530
|
+
* @default straightConnector1
|
|
531
|
+
*/
|
|
532
|
+
type?: 'line' | 'straightConnector1' | 'bentConnector2' | 'bentConnector3' | 'bentConnector4' | 'bentConnector5' | 'curvedConnector2' | 'curvedConnector3' | 'curvedConnector4' | 'curvedConnector5';
|
|
533
|
+
/** line formatting, including arrow heads */
|
|
534
|
+
line?: ShapeLineProps;
|
|
535
|
+
/**
|
|
536
|
+
* Rotation in degrees
|
|
537
|
+
* @default 0
|
|
538
|
+
*/
|
|
539
|
+
rotate?: number;
|
|
540
|
+
flipH?: boolean;
|
|
541
|
+
flipV?: boolean;
|
|
542
|
+
/** glue the start of the connector to a shape (`objectName`) */
|
|
543
|
+
start?: ConnectionProps;
|
|
544
|
+
/** glue the end of the connector to a shape (`objectName`) */
|
|
545
|
+
end?: ConnectionProps;
|
|
546
|
+
/** theme style references (`p:style`) */
|
|
547
|
+
styleRef?: ShapeStyleProps;
|
|
548
|
+
shadow?: ShadowProps;
|
|
549
|
+
fill?: ShapeFillProps;
|
|
550
|
+
}
|
|
551
|
+
|
|
368
552
|
/** ST_BlackWhiteMode values accepted on `p:contentPart` (MS-PPTX §2.3.2.2). */
|
|
369
553
|
declare type ContentPartBwMode = 'clr' | 'auto' | 'gray' | 'ltGray' | 'invGray' | 'grayWhite' | 'blackGray' | 'blackWhite' | 'black' | 'white' | 'hidden';
|
|
370
554
|
|
|
@@ -382,15 +566,7 @@ declare interface ContentPartProps extends PositionProps, ObjectNameProps {
|
|
|
382
566
|
altText?: string;
|
|
383
567
|
}
|
|
384
568
|
|
|
385
|
-
|
|
386
|
-
* Coordinate number - either:
|
|
387
|
-
* - Inches (0-n)
|
|
388
|
-
* - Percentage (0-100)
|
|
389
|
-
*
|
|
390
|
-
* @example 10.25 // coordinate in inches
|
|
391
|
-
* @example '75%' // coordinate as percentage of slide size
|
|
392
|
-
*/
|
|
393
|
-
declare type Coord = number | `${number}%`;
|
|
569
|
+
declare type Coord = number | `${number}%` | UnitLength;
|
|
394
570
|
|
|
395
571
|
/**
|
|
396
572
|
* Either `data` or `path` is required
|
|
@@ -445,6 +621,50 @@ declare interface DesignerTag {
|
|
|
445
621
|
val: string;
|
|
446
622
|
}
|
|
447
623
|
|
|
624
|
+
/**
|
|
625
|
+
* Additional document properties (ECMA-376 15.2 and the OPC core properties)
|
|
626
|
+
* - each is omitted when unset, so `docProps` output is unchanged by default
|
|
627
|
+
*/
|
|
628
|
+
declare interface DocumentProps {
|
|
629
|
+
/** `dc:description` - the Comments field in PowerPoint's Info pane */
|
|
630
|
+
description?: string;
|
|
631
|
+
/** `dc:language`, ex: 'en-US' */
|
|
632
|
+
language?: string;
|
|
633
|
+
/** `dc:identifier` */
|
|
634
|
+
identifier?: string;
|
|
635
|
+
/** `cp:keywords`, comma-separated */
|
|
636
|
+
keywords?: string;
|
|
637
|
+
/** `cp:category` */
|
|
638
|
+
category?: string;
|
|
639
|
+
/** `cp:contentStatus`, ex: 'Draft' */
|
|
640
|
+
contentStatus?: string;
|
|
641
|
+
/** `cp:version` */
|
|
642
|
+
version?: string;
|
|
643
|
+
/** `cp:lastPrinted`, ISO 8601 */
|
|
644
|
+
lastPrinted?: string;
|
|
645
|
+
/** `Manager` in app.xml */
|
|
646
|
+
manager?: string;
|
|
647
|
+
/** `Template` in app.xml */
|
|
648
|
+
template?: string;
|
|
649
|
+
/** `HyperlinkBase` in app.xml - the base for relative hyperlinks */
|
|
650
|
+
hyperlinkBase?: string;
|
|
651
|
+
/** `TotalTime` in app.xml - editing time in minutes */
|
|
652
|
+
totalEditTime?: number;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Composed effect graph (`a:effectDag`, ECMA-376 Part 1 §20.1.8.25 CT_EffectContainer)
|
|
657
|
+
* - `a:effectLst` and `a:effectDag` are alternatives in the schema, so setting this emits the
|
|
658
|
+
* shape's effects inside `a:effectDag` instead of `a:effectLst`
|
|
659
|
+
*/
|
|
660
|
+
declare interface EffectDagProps {
|
|
661
|
+
/**
|
|
662
|
+
* Whether the contained effects apply to siblings or to the whole tree
|
|
663
|
+
* @default sib
|
|
664
|
+
*/
|
|
665
|
+
type?: 'sib' | 'tree';
|
|
666
|
+
}
|
|
667
|
+
|
|
448
668
|
/** Font file formats supported by embedded TrueType fonts (`addFont`) */
|
|
449
669
|
declare type EmbedFontType = 'ttf' | 'otf' | 'woff' | 'eot';
|
|
450
670
|
|
|
@@ -454,6 +674,18 @@ declare type EntranceAnimation = 'appear' | 'fadein' | 'flyin' | 'floatin' | 'sp
|
|
|
454
674
|
|
|
455
675
|
declare type ExitAnimation = 'disappear' | 'fadeout' | 'flyout' | 'floatout' | 'splitexit' | 'wipeexit' | 'shapeexit' | 'wheelexit' | 'randombarsexit' | 'shrinkandturn' | 'zoomexit' | 'swivelexit' | 'bounceexit';
|
|
456
676
|
|
|
677
|
+
/**
|
|
678
|
+
* Fill-overlay effect (`a:fillOverlay`, ECMA-376 Part 1 §20.1.8.29 CT_FillOverlayEffect)
|
|
679
|
+
* - blends a second fill over the shape's own fill
|
|
680
|
+
* - both properties are required by the schema, so a partial value is not emitted
|
|
681
|
+
*/
|
|
682
|
+
declare interface FillOverlayProps {
|
|
683
|
+
/** Blend mode */
|
|
684
|
+
blend: 'over' | 'mult' | 'screen' | 'darken' | 'lighten';
|
|
685
|
+
/** The fill blended over the shape */
|
|
686
|
+
fill: ShapeFillProps;
|
|
687
|
+
}
|
|
688
|
+
|
|
457
689
|
declare interface FloatAnimationConfig extends BaseAnimationConfig {
|
|
458
690
|
type: 'floatin' | 'floatout';
|
|
459
691
|
direction?: FloatDirection;
|
|
@@ -477,6 +709,7 @@ declare interface Group {
|
|
|
477
709
|
addText(text: string | TextProps[], options?: TextPropsOptions): Group;
|
|
478
710
|
addImage(options: ImageProps): Group;
|
|
479
711
|
addGroup(options: GroupProps, build?: (group: Group) => void): Group;
|
|
712
|
+
addConnector(options?: ConnectorProps): Group;
|
|
480
713
|
}
|
|
481
714
|
|
|
482
715
|
/**
|
|
@@ -493,6 +726,11 @@ declare interface GroupProps extends PositionProps, ObjectNameProps {
|
|
|
493
726
|
* Group shadow (`a:effectLst` on `p:grpSpPr`)
|
|
494
727
|
*/
|
|
495
728
|
shadow?: ShadowProps;
|
|
729
|
+
/**
|
|
730
|
+
* Group fill (`EG_FillProperties` on `p:grpSpPr`)
|
|
731
|
+
* - child shapes can inherit this with `fill: { type: 'group' }`
|
|
732
|
+
*/
|
|
733
|
+
fill?: ShapeFillProps;
|
|
496
734
|
/** @internal child objects collected by `addGroup` */
|
|
497
735
|
_objects?: ISlideObject[];
|
|
498
736
|
}
|
|
@@ -551,6 +789,42 @@ declare interface HyperlinkProps {
|
|
|
551
789
|
* Hyperlink Tooltip
|
|
552
790
|
*/
|
|
553
791
|
tooltip?: string;
|
|
792
|
+
/**
|
|
793
|
+
* Highlight the link when clicked
|
|
794
|
+
* @default false
|
|
795
|
+
*/
|
|
796
|
+
highlightClick?: boolean;
|
|
797
|
+
/**
|
|
798
|
+
* Stop any playing sounds when the link is clicked
|
|
799
|
+
* @default false
|
|
800
|
+
*/
|
|
801
|
+
stopSoundsOnClick?: boolean;
|
|
802
|
+
/**
|
|
803
|
+
* Sound played when the link is triggered (`a:snd`)
|
|
804
|
+
* - must be WAV data; ECMA-376 20.1.2.2.32 allows no other format here
|
|
805
|
+
*/
|
|
806
|
+
sound?: HyperlinkSoundProps;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
declare interface HyperlinkSoundProps {
|
|
810
|
+
/**
|
|
811
|
+
* WAV audio data (base64), with a mime header
|
|
812
|
+
* - one of `data` or `path` is required
|
|
813
|
+
* @example 'audio/wav;base64,UklGRi...'
|
|
814
|
+
*/
|
|
815
|
+
data?: string;
|
|
816
|
+
/**
|
|
817
|
+
* WAV file path or URL
|
|
818
|
+
* - one of `data` or `path` is required
|
|
819
|
+
*/
|
|
820
|
+
path?: string;
|
|
821
|
+
/**
|
|
822
|
+
* Sound name PowerPoint shows in the Action dialog
|
|
823
|
+
* @default 'sound.wav'
|
|
824
|
+
*/
|
|
825
|
+
name?: string;
|
|
826
|
+
/** relationship id resolved when the object is created @internal */
|
|
827
|
+
_sndRId?: number;
|
|
554
828
|
}
|
|
555
829
|
|
|
556
830
|
declare interface IChartAreaProps extends IChartPropsFillLine {
|
|
@@ -569,12 +843,26 @@ declare interface IChartMulti {
|
|
|
569
843
|
options: IChartOptsLib;
|
|
570
844
|
}
|
|
571
845
|
|
|
572
|
-
declare interface IChartOpts extends IChartPropsAxisCat, IChartPropsAxisSer, IChartPropsAxisVal, IChartPropsBase, IChartPropsChartBar, IChartPropsChartDoughnut, IChartPropsChartLine, IChartPropsChartPie, IChartPropsChartRadar, IChartPropsDataLabel, IChartPropsDataTable, IChartPropsLegend, IChartPropsTitle, ObjectNameProps, OptsChartGridLine, PositionProps {
|
|
846
|
+
declare interface IChartOpts extends IChartPropsAxisCat, IChartPropsAxisSer, IChartPropsAxisVal, IChartPropsBase, IChartPropsChartBar, IChartPropsChartDoughnut, IChartPropsChartEx, IChartPropsChartLine, IChartPropsChartPie, IChartPropsChartRadar, IChartPropsDataLabel, IChartPropsDataTable, IChartPropsLegend, IChartPropsTitle, ObjectNameProps, OptsChartGridLine, PositionProps {
|
|
573
847
|
/**
|
|
574
848
|
* Alt Text value ("How would you describe this object and its contents to someone who is blind?")
|
|
575
849
|
* - PowerPoint: [right-click on a chart] > "Edit Alt Text..."
|
|
576
850
|
*/
|
|
577
851
|
altText?: string;
|
|
852
|
+
/**
|
|
853
|
+
* Which entry of PowerPoint's Chart Styles gallery is selected (`cs:chartStyle@id`)
|
|
854
|
+
* - the style *definitions* written are Office's defaults regardless of this id, so it selects
|
|
855
|
+
* the gallery entry rather than changing the formatting
|
|
856
|
+
* - opt-in for classic `c:chart` parts; ChartEx layouts always emit style/colors parts
|
|
857
|
+
* @default 201
|
|
858
|
+
*/
|
|
859
|
+
chartStyle?: number;
|
|
860
|
+
/**
|
|
861
|
+
* Chart colour style (`ppt/charts/colorsN.xml`)
|
|
862
|
+
* - distinct from `chartColors`, which sets the series colours directly on the chart
|
|
863
|
+
* - opt-in for classic `c:chart` parts; ChartEx layouts always emit style/colors parts
|
|
864
|
+
*/
|
|
865
|
+
chartColorStyle?: ChartColorStyleProps;
|
|
578
866
|
/**
|
|
579
867
|
* Animation configuration
|
|
580
868
|
* - Can be a simple animation name or full configuration object
|
|
@@ -589,7 +877,7 @@ declare interface IChartOpts extends IChartPropsAxisCat, IChartPropsAxisSer, ICh
|
|
|
589
877
|
}
|
|
590
878
|
|
|
591
879
|
declare interface IChartOptsLib extends IChartOpts {
|
|
592
|
-
_type?: CHART_NAME | IChartMulti[];
|
|
880
|
+
_type?: CHART_NAME | CHARTEX_NAME | IChartMulti[];
|
|
593
881
|
}
|
|
594
882
|
|
|
595
883
|
declare interface IChartPropsAxisCat {
|
|
@@ -861,6 +1149,44 @@ declare interface IChartPropsChartDoughnut {
|
|
|
861
1149
|
holeSize?: number;
|
|
862
1150
|
}
|
|
863
1151
|
|
|
1152
|
+
/**
|
|
1153
|
+
* Options for the PowerPoint 2016+ chartex layouts (waterfall, funnel, treemap, sunburst, histogram,
|
|
1154
|
+
* box & whisker). Each is ignored by every other chart type.
|
|
1155
|
+
* @see MS-ODRAWXML 2.1
|
|
1156
|
+
*/
|
|
1157
|
+
declare interface IChartPropsChartEx {
|
|
1158
|
+
/**
|
|
1159
|
+
* MS-PPT > Chart Type > Histogram > Format Axis > "Number of bins"
|
|
1160
|
+
* - fixed bin count; ignored when `chartExBinSize` is set
|
|
1161
|
+
* - omit both to let PowerPoint choose the bins
|
|
1162
|
+
* @example 8
|
|
1163
|
+
*/
|
|
1164
|
+
chartExBinCount?: number;
|
|
1165
|
+
/**
|
|
1166
|
+
* MS-PPT > Chart Type > Histogram > Format Axis > "Bin width"
|
|
1167
|
+
* - fixed bin width, in value-axis units; takes precedence over `chartExBinCount`
|
|
1168
|
+
* @example 5
|
|
1169
|
+
*/
|
|
1170
|
+
chartExBinSize?: number;
|
|
1171
|
+
/**
|
|
1172
|
+
* MS-PPT > Chart Type > Box & Whisker > Format Data Series > "Show mean line"
|
|
1173
|
+
* @default false
|
|
1174
|
+
*/
|
|
1175
|
+
chartExMeanLine?: boolean;
|
|
1176
|
+
/**
|
|
1177
|
+
* MS-PPT > Chart Type > Treemap > Format Data Series > "Treemap Label Options"
|
|
1178
|
+
* - how a parent category label is drawn over its children
|
|
1179
|
+
* @default overlapping
|
|
1180
|
+
*/
|
|
1181
|
+
chartExParentLabels?: 'none' | 'overlapping' | 'banner';
|
|
1182
|
+
/**
|
|
1183
|
+
* MS-PPT > Chart Type > Waterfall > "Set as Total"
|
|
1184
|
+
* - zero-based indexes of the data points drawn as absolute totals rather than deltas
|
|
1185
|
+
* @example [0, 4] // first and fifth bars are totals
|
|
1186
|
+
*/
|
|
1187
|
+
chartExSubtotals?: number[];
|
|
1188
|
+
}
|
|
1189
|
+
|
|
864
1190
|
declare interface IChartPropsChartLine {
|
|
865
1191
|
/**
|
|
866
1192
|
* MS-PPT > Chart format > Format Data Series > Line > Cap type
|
|
@@ -1019,6 +1345,24 @@ declare interface IChartPropsTitle extends TextBaseProps {
|
|
|
1019
1345
|
titleRotate?: number;
|
|
1020
1346
|
}
|
|
1021
1347
|
|
|
1348
|
+
/**
|
|
1349
|
+
* Alpha (transparency) effects applied to an image's `a:blip`
|
|
1350
|
+
* - allowed on `a:blip` and inside `a:effectDag`, not in `a:effectLst`
|
|
1351
|
+
*/
|
|
1352
|
+
declare interface ImageAlphaEffectProps {
|
|
1353
|
+
/**
|
|
1354
|
+
* Replace every alpha value with this one (`a:alphaRepl`)
|
|
1355
|
+
* - percent, 0 (fully transparent) to 100 (fully opaque)
|
|
1356
|
+
*/
|
|
1357
|
+
replace?: number;
|
|
1358
|
+
/** Invert the alpha channel (`a:alphaInv`) */
|
|
1359
|
+
invert?: boolean;
|
|
1360
|
+
/** Force alpha values below 100% to fully transparent (`a:alphaFloor`) */
|
|
1361
|
+
floor?: boolean;
|
|
1362
|
+
/** Force alpha values above 0% to fully opaque (`a:alphaCeiling`) */
|
|
1363
|
+
ceiling?: boolean;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1022
1366
|
declare interface ImageProps extends PositionProps, DataOrPathProps, ObjectNameProps, AppearOnClickProps, NvPrExtensionProps {
|
|
1023
1367
|
/**
|
|
1024
1368
|
* Alt Text value ("How would you describe this object and its contents to someone who is blind?")
|
|
@@ -1036,6 +1380,12 @@ declare interface ImageProps extends PositionProps, DataOrPathProps, ObjectNameP
|
|
|
1036
1380
|
*/
|
|
1037
1381
|
flipV?: boolean;
|
|
1038
1382
|
hyperlink?: HyperlinkProps;
|
|
1383
|
+
/**
|
|
1384
|
+
* Mouse-over action, configured like `hyperlink` but triggered on hover
|
|
1385
|
+
* - PowerPoint's Insert > Action > Mouse Over tab
|
|
1386
|
+
* @example { hyperlinkHover: { slide: 3, tooltip: 'Jump to results' } }
|
|
1387
|
+
*/
|
|
1388
|
+
hyperlinkHover?: HyperlinkProps;
|
|
1039
1389
|
/**
|
|
1040
1390
|
* Image outline/border (a picture frame)
|
|
1041
1391
|
* @example { color: '696969', width: 2 } // 2pt dim-gray border
|
|
@@ -1096,6 +1446,31 @@ declare interface ImageProps extends PositionProps, DataOrPathProps, ObjectNameP
|
|
|
1096
1446
|
* Blur effect (`a:blur` in picture `effectLst`)
|
|
1097
1447
|
*/
|
|
1098
1448
|
blur?: BlurProps;
|
|
1449
|
+
/**
|
|
1450
|
+
* Fill blended over the image's own fill (`a:fillOverlay`)
|
|
1451
|
+
* @example { blend: 'mult', fill: { color: 'FF0000', transparency: 50 } }
|
|
1452
|
+
*/
|
|
1453
|
+
fillOverlay?: FillOverlayProps;
|
|
1454
|
+
/**
|
|
1455
|
+
* Emit the effects as a composed effect graph (`a:effectDag`) rather than an `a:effectLst`
|
|
1456
|
+
*/
|
|
1457
|
+
effectDag?: EffectDagProps;
|
|
1458
|
+
/**
|
|
1459
|
+
* Alpha (transparency) effects applied to the image itself (`a:blip`)
|
|
1460
|
+
* @example { invert: true }
|
|
1461
|
+
*/
|
|
1462
|
+
alphaEffects?: ImageAlphaEffectProps;
|
|
1463
|
+
/**
|
|
1464
|
+
* Recolor and correction effects applied to the image itself (`a:blip`)
|
|
1465
|
+
* - distinct from SVG path `fill` recolor
|
|
1466
|
+
* @example { grayscale: true, brightness: 20, contrast: -10 }
|
|
1467
|
+
*/
|
|
1468
|
+
recolor?: ImageRecolorProps;
|
|
1469
|
+
/**
|
|
1470
|
+
* Theme style references (`p:style`)
|
|
1471
|
+
* @example { fill: 1, line: 2, effect: 0, font: 'minor' }
|
|
1472
|
+
*/
|
|
1473
|
+
styleRef?: ShapeStyleProps;
|
|
1099
1474
|
/**
|
|
1100
1475
|
* Image sizing options
|
|
1101
1476
|
*/
|
|
@@ -1158,6 +1533,50 @@ declare interface ImageProps extends PositionProps, DataOrPathProps, ObjectNameP
|
|
|
1158
1533
|
animation?: string | AnimationConfig;
|
|
1159
1534
|
}
|
|
1160
1535
|
|
|
1536
|
+
/**
|
|
1537
|
+
* Recolor and correction effects applied to an image's `a:blip`
|
|
1538
|
+
* - PowerPoint Picture Format > Color / Corrections
|
|
1539
|
+
* - named `recolor` so it does not collide with SVG path `fill` recolor
|
|
1540
|
+
* - artistic effects are not implemented (MS-ODRAWXML + required pre-rendered `a14:imgLayer`)
|
|
1541
|
+
*/
|
|
1542
|
+
declare interface ImageRecolorProps {
|
|
1543
|
+
/**
|
|
1544
|
+
* Map the image onto two colours (`a:duotone`)
|
|
1545
|
+
* - the schema requires exactly two, so anything else is dropped
|
|
1546
|
+
* @example ['000000', 'FFFFFF']
|
|
1547
|
+
*/
|
|
1548
|
+
duotone?: [Color, Color];
|
|
1549
|
+
/** Convert to greyscale (`a:grayscl`) */
|
|
1550
|
+
grayscale?: boolean;
|
|
1551
|
+
/**
|
|
1552
|
+
* Brightness, percent -100 to 100 (`a:lum@bright`)
|
|
1553
|
+
* @default 0
|
|
1554
|
+
*/
|
|
1555
|
+
brightness?: number;
|
|
1556
|
+
/**
|
|
1557
|
+
* Contrast, percent -100 to 100 (`a:lum@contrast`)
|
|
1558
|
+
* @default 0
|
|
1559
|
+
*/
|
|
1560
|
+
contrast?: number;
|
|
1561
|
+
/**
|
|
1562
|
+
* Reduce to two tones at this threshold, percent 0 to 100 (`a:biLevel@thresh`)
|
|
1563
|
+
*/
|
|
1564
|
+
blackWhiteThreshold?: number;
|
|
1565
|
+
/**
|
|
1566
|
+
* Replace one colour with another (`a:clrChange`)
|
|
1567
|
+
* - both colours are required by the schema
|
|
1568
|
+
*/
|
|
1569
|
+
colorChange?: {
|
|
1570
|
+
from: Color;
|
|
1571
|
+
to: Color;
|
|
1572
|
+
/**
|
|
1573
|
+
* Whether the alpha channel takes part in the comparison (`@useA`)
|
|
1574
|
+
* @default true
|
|
1575
|
+
*/
|
|
1576
|
+
useAlpha?: boolean;
|
|
1577
|
+
};
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1161
1580
|
/** Ink content part (MS-PPTX §2.2.3.1). Opt-in; emits `mc:AlternateContent` with a `pic` fallback. */
|
|
1162
1581
|
declare interface InkProps extends ContentPartProps {
|
|
1163
1582
|
/** Cover/thumbnail image for the mandated `pic` fallback (base64 data URI). */
|
|
@@ -1183,9 +1602,20 @@ declare interface ISlideObject {
|
|
|
1183
1602
|
image?: string;
|
|
1184
1603
|
imageRid?: number;
|
|
1185
1604
|
hyperlink?: HyperlinkProps;
|
|
1605
|
+
/**
|
|
1606
|
+
* Mouse-over action, configured like `hyperlink` but triggered on hover
|
|
1607
|
+
* - PowerPoint's Insert > Action > Mouse Over tab
|
|
1608
|
+
*/
|
|
1609
|
+
hyperlinkHover?: HyperlinkProps;
|
|
1186
1610
|
media?: string;
|
|
1187
1611
|
mtype?: MediaType;
|
|
1188
1612
|
mediaRid?: number;
|
|
1613
|
+
/**
|
|
1614
|
+
* rId of the media frame's preview image - the media source kinds push different numbers of
|
|
1615
|
+
* relationships, so the cover cannot be derived from `mediaRid`
|
|
1616
|
+
* @internal
|
|
1617
|
+
*/
|
|
1618
|
+
_coverRid?: number;
|
|
1189
1619
|
shape?: SHAPE_NAME;
|
|
1190
1620
|
/** @internal group children (`p:grpSp`) */
|
|
1191
1621
|
_objects?: ISlideObject[];
|
|
@@ -1195,8 +1625,12 @@ declare interface ISlideObject {
|
|
|
1195
1625
|
zoomSlideNum?: number;
|
|
1196
1626
|
/** target section title (section/summary zoom) @internal */
|
|
1197
1627
|
zoomSectionTitle?: string;
|
|
1628
|
+
/** extra summary-zoom section titles (`sectionTitles`) @internal */
|
|
1629
|
+
zoomSectionTitles?: string[];
|
|
1198
1630
|
/** resolved target section GUID (braced `{…}`), set at build @internal */
|
|
1199
1631
|
zoomSectionId?: string;
|
|
1632
|
+
/** resolved extra summary-zoom section GUIDs @internal */
|
|
1633
|
+
zoomSectionIds?: string[];
|
|
1200
1634
|
/** cover/thumbnail image rId @internal */
|
|
1201
1635
|
zoomRid?: number;
|
|
1202
1636
|
/** content-part / ink / Office App relationship id @internal */
|
|
@@ -1224,7 +1658,7 @@ declare interface ISlideRel {
|
|
|
1224
1658
|
}
|
|
1225
1659
|
|
|
1226
1660
|
declare interface ISlideRelChart extends OptsChartData {
|
|
1227
|
-
type: CHART_NAME | IChartMulti[];
|
|
1661
|
+
type: CHART_NAME | CHARTEX_NAME | IChartMulti[];
|
|
1228
1662
|
opts: IChartOptsLib;
|
|
1229
1663
|
data: IOptsChartData[];
|
|
1230
1664
|
rId: number;
|
|
@@ -1241,6 +1675,12 @@ declare interface ISlideRelMedia {
|
|
|
1241
1675
|
data?: string | ArrayBuffer;
|
|
1242
1676
|
/** used to indicate that a media file has already been read/enocded (PERF) */
|
|
1243
1677
|
isDuplicate?: boolean;
|
|
1678
|
+
/**
|
|
1679
|
+
* Media referenced rather than embedded: the relationship is written `TargetMode="External"`
|
|
1680
|
+
* and no part is added to the package
|
|
1681
|
+
* @internal
|
|
1682
|
+
*/
|
|
1683
|
+
isLinked?: boolean;
|
|
1244
1684
|
isSvgPng?: boolean;
|
|
1245
1685
|
/** SVG path recolor (Martin-N) — applied when encoding SVG media */
|
|
1246
1686
|
fill?: ShapeFillProps;
|
|
@@ -1254,6 +1694,18 @@ declare interface ISlideRelMedia {
|
|
|
1254
1694
|
|
|
1255
1695
|
declare type JSZIP_OUTPUT_TYPE = 'arraybuffer' | 'base64' | 'binarystring' | 'blob' | 'nodebuffer' | 'uint8array';
|
|
1256
1696
|
|
|
1697
|
+
/**
|
|
1698
|
+
* East Asian line-breaking rules (`p:kinsoku`)
|
|
1699
|
+
*/
|
|
1700
|
+
declare interface KinsokuProps {
|
|
1701
|
+
/** language the rules apply to, ex: 'ja-JP' */
|
|
1702
|
+
lang?: string;
|
|
1703
|
+
/** characters that may not start a line */
|
|
1704
|
+
invalidStartChars?: string;
|
|
1705
|
+
/** characters that may not end a line */
|
|
1706
|
+
invalidEndChars?: string;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1257
1709
|
/** A laser-pointer sample. MS-PPTX §2.3.3.9 `CT_LaserTracePoint`. `t` is ms; `x`/`y` are EMU. */
|
|
1258
1710
|
declare interface LaserTracePoint {
|
|
1259
1711
|
/** Time from the start of the slide timeline, in milliseconds. */
|
|
@@ -1377,9 +1829,29 @@ declare interface MediaProps extends PositionProps, DataOrPathProps, ObjectNameP
|
|
|
1377
1829
|
* @default false
|
|
1378
1830
|
*/
|
|
1379
1831
|
mute?: boolean;
|
|
1832
|
+
/**
|
|
1833
|
+
* MIME type of the referenced media (`a:audioFile@contentType`, `a:videoFile@contentType`)
|
|
1834
|
+
* @example 'video/mp4'
|
|
1835
|
+
*/
|
|
1836
|
+
contentType?: string;
|
|
1837
|
+
/**
|
|
1838
|
+
* CD audio track range - required when `type` is `audioCd`
|
|
1839
|
+
* @example { start: { track: 1 }, end: { track: 1, time: 30 } }
|
|
1840
|
+
*/
|
|
1841
|
+
audioCd?: AudioCdProps;
|
|
1842
|
+
/**
|
|
1843
|
+
* Mark the media frame as a photo (`p:nvPr@isPhoto`)
|
|
1844
|
+
* @default false
|
|
1845
|
+
*/
|
|
1846
|
+
isPhoto?: boolean;
|
|
1847
|
+
/**
|
|
1848
|
+
* Mark the media frame as author-placed rather than layout furniture (`p:nvPr@userDrawn`)
|
|
1849
|
+
* @default false
|
|
1850
|
+
*/
|
|
1851
|
+
userDrawn?: boolean;
|
|
1380
1852
|
}
|
|
1381
1853
|
|
|
1382
|
-
declare type MediaType = 'audio' | 'online' | 'video';
|
|
1854
|
+
declare type MediaType = 'audio' | 'online' | 'video' | 'audioCd' | 'wav';
|
|
1383
1855
|
|
|
1384
1856
|
/**
|
|
1385
1857
|
* Theme/hex color with DrawingML color transforms (`a:tint`, `a:shade`, `a:lumMod`, …)
|
|
@@ -1423,6 +1895,27 @@ declare interface ModifiedThemeColor {
|
|
|
1423
1895
|
gamma?: boolean;
|
|
1424
1896
|
}
|
|
1425
1897
|
|
|
1898
|
+
/**
|
|
1899
|
+
* Non-visual drawing properties beyond the name (ECMA-376 19.3.1.12 `p:cNvPr`)
|
|
1900
|
+
*/
|
|
1901
|
+
declare interface NonVisualProps {
|
|
1902
|
+
/**
|
|
1903
|
+
* Alt-text *title*, distinct from the description
|
|
1904
|
+
* - PowerPoint: right-click > Edit Alt Text
|
|
1905
|
+
*/
|
|
1906
|
+
title?: string;
|
|
1907
|
+
/**
|
|
1908
|
+
* Hide the shape
|
|
1909
|
+
* - it stays in the file and can be re-shown from the selection pane
|
|
1910
|
+
* @default false
|
|
1911
|
+
*/
|
|
1912
|
+
hidden?: boolean;
|
|
1913
|
+
/**
|
|
1914
|
+
* Editing locks for this shape
|
|
1915
|
+
*/
|
|
1916
|
+
lock?: ShapeLockProps;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1426
1919
|
/**
|
|
1427
1920
|
* Opt-in MS-PPTX nvPr extensions: designElem (§2.2.17), classification (§2.2.18),
|
|
1428
1921
|
* designPr (§2.2.19), and phTypeExt (§2.22). Classification is never defaulted.
|
|
@@ -1450,7 +1943,7 @@ declare interface NvPrExtensionProps {
|
|
|
1450
1943
|
phTypeExt?: PlaceholderTypeExt;
|
|
1451
1944
|
}
|
|
1452
1945
|
|
|
1453
|
-
declare interface ObjectNameProps {
|
|
1946
|
+
declare interface ObjectNameProps extends NonVisualProps {
|
|
1454
1947
|
/**
|
|
1455
1948
|
* Object name
|
|
1456
1949
|
* - used instead of default "Object N" name
|
|
@@ -1479,6 +1972,12 @@ declare interface ObjectNameProps {
|
|
|
1479
1972
|
declare interface ObjectOptions extends ImageProps, PositionProps, ShapeProps, TableCellProps, TextPropsOptions {
|
|
1480
1973
|
_placeholderIdx?: number;
|
|
1481
1974
|
_placeholderType?: PLACEHOLDER_TYPE;
|
|
1975
|
+
/** placeholder text direction (`p:ph@orient`) */
|
|
1976
|
+
orient?: 'horz' | 'vert';
|
|
1977
|
+
/** placeholder size (`p:ph@sz`) */
|
|
1978
|
+
sz?: 'full' | 'half' | 'quarter';
|
|
1979
|
+
/** author-placed rather than layout furniture (`p:nvPr@userDrawn`) */
|
|
1980
|
+
userDrawn?: boolean;
|
|
1482
1981
|
/** image added without `w`/`h`: size it from the image itself during export @internal */
|
|
1483
1982
|
_sizeFromImage?: boolean;
|
|
1484
1983
|
/** Caller set this axis; placeholder geometry must not overwrite it. */
|
|
@@ -1508,6 +2007,14 @@ declare interface ObjectOptions extends ImageProps, PositionProps, ShapeProps, T
|
|
|
1508
2007
|
loop?: boolean;
|
|
1509
2008
|
fullScreen?: boolean;
|
|
1510
2009
|
mute?: boolean;
|
|
2010
|
+
/** MIME type of referenced media (`a:audioFile@contentType`) @internal */
|
|
2011
|
+
contentType?: string;
|
|
2012
|
+
/** CD audio track range (`a:audioCd`) @internal */
|
|
2013
|
+
audioCd?: AudioCdProps;
|
|
2014
|
+
/** media frame marked as a photo (`p:nvPr@isPhoto`) @internal */
|
|
2015
|
+
isPhoto?: boolean;
|
|
2016
|
+
/** media referenced rather than embedded @internal */
|
|
2017
|
+
isLinked?: boolean;
|
|
1511
2018
|
returnToParent?: boolean;
|
|
1512
2019
|
showBg?: boolean;
|
|
1513
2020
|
transitionDur?: number;
|
|
@@ -1656,6 +2163,20 @@ declare enum OutputType {
|
|
|
1656
2163
|
|
|
1657
2164
|
declare type PathAnimation = 'pathdown' | 'patharcdown' | 'pathturnright' | 'pathcircle' | 'pathzigzag';
|
|
1658
2165
|
|
|
2166
|
+
/**
|
|
2167
|
+
* Photo-album mode (`p:photoAlbum`)
|
|
2168
|
+
*/
|
|
2169
|
+
declare interface PhotoAlbumProps {
|
|
2170
|
+
/** render in black and white */
|
|
2171
|
+
blackWhite?: boolean;
|
|
2172
|
+
/** show captions below each picture */
|
|
2173
|
+
showCaptions?: boolean;
|
|
2174
|
+
/** pictures per slide and orientation */
|
|
2175
|
+
layout?: 'fitToSlide' | '1pic' | '2pic' | '4pic' | '1picTitle' | '2picTitle' | '4picTitle';
|
|
2176
|
+
/** frame style drawn around each picture */
|
|
2177
|
+
frame?: 'frameStyle1' | 'frameStyle2' | 'frameStyle3' | 'frameStyle4' | 'frameStyle5' | 'frameStyle6' | 'frameStyle7';
|
|
2178
|
+
}
|
|
2179
|
+
|
|
1659
2180
|
declare type PLACEHOLDER_TYPE = 'title' | 'body' | 'ctrTitle' | 'subTitle' | 'dt' | 'sldNum' | 'ftr' | 'hdr' | 'obj' | 'chart' | 'tbl' | 'clipArt' | 'dgm' | 'media' | 'sldImg' | 'pic';
|
|
1660
2181
|
|
|
1661
2182
|
declare interface PlaceholderProps extends PositionProps, TextBaseProps, NvPrExtensionProps {
|
|
@@ -1669,6 +2190,22 @@ declare interface PlaceholderProps extends PositionProps, TextBaseProps, NvPrExt
|
|
|
1669
2190
|
* Placeholder background fill. Kept when a slide inherits layout defaults (caller fill wins).
|
|
1670
2191
|
*/
|
|
1671
2192
|
fill?: ShapeFillProps;
|
|
2193
|
+
/**
|
|
2194
|
+
* Text direction inside the placeholder (`p:ph@orient`)
|
|
2195
|
+
* @default horz
|
|
2196
|
+
*/
|
|
2197
|
+
orient?: 'horz' | 'vert';
|
|
2198
|
+
/**
|
|
2199
|
+
* How much of the layout the placeholder covers (`p:ph@sz`)
|
|
2200
|
+
* @default full
|
|
2201
|
+
*/
|
|
2202
|
+
sz?: 'full' | 'half' | 'quarter';
|
|
2203
|
+
/**
|
|
2204
|
+
* Mark the placeholder as drawn by the author rather than inherited layout furniture
|
|
2205
|
+
* (`p:nvPr@userDrawn`)
|
|
2206
|
+
* @default false
|
|
2207
|
+
*/
|
|
2208
|
+
userDrawn?: boolean;
|
|
1672
2209
|
}
|
|
1673
2210
|
|
|
1674
2211
|
/** Modern placeholder type extension (`CT_PlaceholderTypeACB`, MS-PPTX §2.22). */
|
|
@@ -1788,6 +2325,10 @@ declare class PptxGenJS implements IPresentationProps {
|
|
|
1788
2325
|
private _rtlMode;
|
|
1789
2326
|
set rtlMode(value: boolean);
|
|
1790
2327
|
get rtlMode(): boolean;
|
|
2328
|
+
/** tableStyles - custom table style definitions written into `ppt/tableStyles.xml` */
|
|
2329
|
+
private _tableStyles?;
|
|
2330
|
+
set tableStyles(value: TableStyleProps[] | undefined);
|
|
2331
|
+
get tableStyles(): TableStyleProps[] | undefined;
|
|
1791
2332
|
/**
|
|
1792
2333
|
* Starting slide number (`p:presentation@firstSlideNum`)
|
|
1793
2334
|
* @default 1
|
|
@@ -1828,6 +2369,11 @@ declare class PptxGenJS implements IPresentationProps {
|
|
|
1828
2369
|
browseMode?: boolean;
|
|
1829
2370
|
/** Laser-pointer color. MS-PPTX §2.3.1.16 `p14:laserClr` on `showPr`. */
|
|
1830
2371
|
laserColor?: string;
|
|
2372
|
+
/**
|
|
2373
|
+
* Slide-show options (`p:showPr`). Opt-in — omitted unless set.
|
|
2374
|
+
* @example pptx.slideShow = { mode: 'kiosk', loop: true }
|
|
2375
|
+
*/
|
|
2376
|
+
slideShow?: SlideShowProps;
|
|
1831
2377
|
/**
|
|
1832
2378
|
* Chart data-point properties and datalabels follow their cell references.
|
|
1833
2379
|
* MS-PPTX §2.4.1.1 `chartTrackingRefBased` on `presentationPr` extLst.
|
|
@@ -1839,6 +2385,20 @@ declare class PptxGenJS implements IPresentationProps {
|
|
|
1839
2385
|
* @example pptx.notesGuides = [{ orient: 'horz', pos: 2 }]
|
|
1840
2386
|
*/
|
|
1841
2387
|
notesGuides: GuideProps[];
|
|
2388
|
+
/** Additional document properties written to `docProps`. */
|
|
2389
|
+
documentProps?: DocumentProps;
|
|
2390
|
+
/** Slide-size preset (`p:sldSz@type`). */
|
|
2391
|
+
slideSizeType?: SlideSizeType;
|
|
2392
|
+
/** Photo-album mode (`p:photoAlbum`). */
|
|
2393
|
+
photoAlbum?: PhotoAlbumProps;
|
|
2394
|
+
/** East Asian line-breaking rules (`p:kinsoku`). */
|
|
2395
|
+
kinsoku?: KinsokuProps;
|
|
2396
|
+
/** Print defaults (`p:prnPr` on `presentationPr`). */
|
|
2397
|
+
printProps?: PrintProps;
|
|
2398
|
+
/** Recently-used colours (`p:clrMru` on `presentationPr`). */
|
|
2399
|
+
recentColors?: Color[];
|
|
2400
|
+
/** View properties (`ppt/viewProps.xml`). Unset keeps the previous hardcoded viewPr. */
|
|
2401
|
+
viewProps?: ViewProps;
|
|
1842
2402
|
/**
|
|
1843
2403
|
* Modern comment authors (MS-PPTX §2.16). Emitted to `ppt/authors.xml`.
|
|
1844
2404
|
* Auto-populated from slide `addComment` author names if left empty.
|
|
@@ -2039,6 +2599,11 @@ declare interface PresentationProps {
|
|
|
2039
2599
|
* @default false
|
|
2040
2600
|
*/
|
|
2041
2601
|
rtlMode: boolean;
|
|
2602
|
+
/**
|
|
2603
|
+
* Custom table style definitions written into `ppt/tableStyles.xml`
|
|
2604
|
+
* - reference one from a table with `tableStyleId`
|
|
2605
|
+
*/
|
|
2606
|
+
tableStyles?: TableStyleProps[];
|
|
2042
2607
|
/**
|
|
2043
2608
|
* Starting slide number written to `ppt/presentation.xml` (`firstSlideNum`)
|
|
2044
2609
|
* - PowerPoint: Design > Slide Size > Custom Slide Size > Number slides from
|
|
@@ -2060,9 +2625,18 @@ declare interface PresentationProps {
|
|
|
2060
2625
|
notesGuides?: GuideProps[];
|
|
2061
2626
|
/**
|
|
2062
2627
|
* Default DPI used when compressing/saving images. MS-PPTX §2.3.1.5 `defaultImageDpi`.
|
|
2063
|
-
* Only applies when image compression is on.
|
|
2628
|
+
* Only applies when image compression is on. `0` means "do not compress".
|
|
2629
|
+
* @example 220
|
|
2630
|
+
* @example 0
|
|
2064
2631
|
*/
|
|
2065
2632
|
defaultImageDpi?: number;
|
|
2633
|
+
/**
|
|
2634
|
+
* Slide-show options (`p:showPr`). Opt-in — omitted unless set.
|
|
2635
|
+
* Emits the required present/browse/kiosk choice plus optional loop/narration/animation flags.
|
|
2636
|
+
* Flat `browseMode` / `laserColor` still work and merge into this `showPr`.
|
|
2637
|
+
* @example { mode: 'kiosk', loop: true }
|
|
2638
|
+
*/
|
|
2639
|
+
slideShow?: SlideShowProps;
|
|
2066
2640
|
/**
|
|
2067
2641
|
* Discard image editing data (crop info, imgProps) on save. MS-PPTX §2.3.1.6 `discardImageEditData`.
|
|
2068
2642
|
* @default false
|
|
@@ -2110,6 +2684,35 @@ declare interface PresentationProps {
|
|
|
2110
2684
|
subject: string;
|
|
2111
2685
|
theme?: ThemeProps;
|
|
2112
2686
|
title: string;
|
|
2687
|
+
/**
|
|
2688
|
+
* Additional document properties written to `docProps`
|
|
2689
|
+
*/
|
|
2690
|
+
documentProps?: DocumentProps;
|
|
2691
|
+
/**
|
|
2692
|
+
* Slide-size preset (`p:sldSz@type`)
|
|
2693
|
+
* - the dimensions come from the layout; this records which preset they match
|
|
2694
|
+
*/
|
|
2695
|
+
slideSizeType?: SlideSizeType;
|
|
2696
|
+
/**
|
|
2697
|
+
* Photo-album mode (`p:photoAlbum`)
|
|
2698
|
+
*/
|
|
2699
|
+
photoAlbum?: PhotoAlbumProps;
|
|
2700
|
+
/**
|
|
2701
|
+
* East Asian line-breaking rules (`p:kinsoku`)
|
|
2702
|
+
*/
|
|
2703
|
+
kinsoku?: KinsokuProps;
|
|
2704
|
+
/**
|
|
2705
|
+
* Print defaults stored with the deck (`p:prnPr` on `presentationPr`)
|
|
2706
|
+
*/
|
|
2707
|
+
printProps?: PrintProps;
|
|
2708
|
+
/**
|
|
2709
|
+
* Recently-used colours shown in the colour picker (`p:clrMru` on `presentationPr`)
|
|
2710
|
+
*/
|
|
2711
|
+
recentColors?: Color[];
|
|
2712
|
+
/**
|
|
2713
|
+
* View properties (`ppt/viewProps.xml`). Unset keeps the previous hardcoded viewPr.
|
|
2714
|
+
*/
|
|
2715
|
+
viewProps?: ViewProps;
|
|
2113
2716
|
}
|
|
2114
2717
|
|
|
2115
2718
|
/**
|
|
@@ -2135,7 +2738,7 @@ declare interface PresSlide extends SlideBaseProps {
|
|
|
2135
2738
|
_rId: number;
|
|
2136
2739
|
_slideLayout: SlideLayout;
|
|
2137
2740
|
_slideId: number;
|
|
2138
|
-
addChart: (type: CHART_NAME | IChartMulti[], data: IOptsChartData[], options?: IChartOpts) => PresSlide;
|
|
2741
|
+
addChart: (type: CHART_NAME | CHARTEX_NAME | IChartMulti[], data: IOptsChartData[], options?: IChartOpts) => PresSlide;
|
|
2139
2742
|
addImage: (options: ImageProps) => PresSlide;
|
|
2140
2743
|
addMedia: (options: MediaProps) => PresSlide;
|
|
2141
2744
|
addNotes: (notes: string) => PresSlide;
|
|
@@ -2147,6 +2750,11 @@ declare interface PresSlide extends SlideBaseProps {
|
|
|
2147
2750
|
* Holds shapes, text, images, and nested groups — not tables, charts, or media.
|
|
2148
2751
|
*/
|
|
2149
2752
|
addGroup: (options: GroupProps, build?: (group: Group) => void) => PresSlide;
|
|
2753
|
+
/**
|
|
2754
|
+
* Connector shape (`p:cxnSp`). Additive convenience over `line.isConnector`.
|
|
2755
|
+
* Glue with `start`/`end` `objectName`s, or pass numeric `line.sourceId`/`targetId`.
|
|
2756
|
+
*/
|
|
2757
|
+
addConnector: (options?: ConnectorProps) => PresSlide;
|
|
2150
2758
|
/**
|
|
2151
2759
|
* WordArt: text with a warp (`presetShape` / `a:prstTxWarp`) and/or a gradient run fill.
|
|
2152
2760
|
* Defaults to centered `textNoShape` (no transform) unless `options` override them.
|
|
@@ -2205,9 +2813,11 @@ declare interface PresSlide extends SlideBaseProps {
|
|
|
2205
2813
|
addComment: (comment: CommentProps) => PresSlide;
|
|
2206
2814
|
/**
|
|
2207
2815
|
* Slide creation identifier (MS-PPTX §2.3.1.4 `p14:creationId` on `cSld`).
|
|
2208
|
-
* Opt-in — omitted unless set.
|
|
2816
|
+
* Opt-in — omitted unless set. `true` assigns a reproducible id from the slide number.
|
|
2817
|
+
* @example 123456789
|
|
2818
|
+
* @example true
|
|
2209
2819
|
*/
|
|
2210
|
-
creationId?: number;
|
|
2820
|
+
creationId?: number | true;
|
|
2211
2821
|
/**
|
|
2212
2822
|
* Add a Slide Zoom object linking to another slide (MS-PPTX §2.10 `p16:sldZm`).
|
|
2213
2823
|
* Rendered inside `mc:AlternateContent` with a `pic` fallback for older readers.
|
|
@@ -2260,6 +2870,22 @@ declare interface PresSlide extends SlideBaseProps {
|
|
|
2260
2870
|
designTags?: DesignerTag[];
|
|
2261
2871
|
}
|
|
2262
2872
|
|
|
2873
|
+
/**
|
|
2874
|
+
* Print defaults stored with the deck (`p:prnPr` on `presentationPr`)
|
|
2875
|
+
*/
|
|
2876
|
+
declare interface PrintProps {
|
|
2877
|
+
/** what to print */
|
|
2878
|
+
what?: 'slides' | 'handouts1' | 'handouts2' | 'handouts3' | 'handouts4' | 'handouts6' | 'handouts9' | 'notes' | 'outline';
|
|
2879
|
+
/** colour mode */
|
|
2880
|
+
colorMode?: 'bw' | 'gray' | 'clr';
|
|
2881
|
+
/** include hidden slides */
|
|
2882
|
+
hiddenSlides?: boolean;
|
|
2883
|
+
/** scale to fit the paper */
|
|
2884
|
+
scaleToFitPaper?: boolean;
|
|
2885
|
+
/** draw a frame around each slide */
|
|
2886
|
+
frameSlides?: boolean;
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2263
2889
|
declare interface RandomBarsAnimationConfig extends BaseAnimationConfig {
|
|
2264
2890
|
type: 'randombars' | 'randombarsexit';
|
|
2265
2891
|
direction?: 'horizontal' | 'vertical';
|
|
@@ -2378,7 +3004,12 @@ declare interface ShadowProps {
|
|
|
2378
3004
|
* shadow type
|
|
2379
3005
|
* @default 'none'
|
|
2380
3006
|
*/
|
|
2381
|
-
type: 'outer' | 'inner' | 'none';
|
|
3007
|
+
type: 'outer' | 'inner' | 'none' | 'preset';
|
|
3008
|
+
/**
|
|
3009
|
+
* Preset shadow name, required when `type` is `preset` (`a:prstShdw@prst`)
|
|
3010
|
+
* - PowerPoint's twenty built-in shadow presets
|
|
3011
|
+
*/
|
|
3012
|
+
preset?: 'shdw1' | 'shdw2' | 'shdw3' | 'shdw4' | 'shdw5' | 'shdw6' | 'shdw7' | 'shdw8' | 'shdw9' | 'shdw10' | 'shdw11' | 'shdw12' | 'shdw13' | 'shdw14' | 'shdw15' | 'shdw16' | 'shdw17' | 'shdw18' | 'shdw19' | 'shdw20';
|
|
2382
3013
|
/**
|
|
2383
3014
|
* opacity (percent)
|
|
2384
3015
|
* - range: 0.0-1.0
|
|
@@ -2415,7 +3046,7 @@ declare interface ShadowProps {
|
|
|
2415
3046
|
rotateWithShape?: boolean;
|
|
2416
3047
|
}
|
|
2417
3048
|
|
|
2418
|
-
declare type SHAPE_NAME = 'accentBorderCallout1' | 'accentBorderCallout2' | 'accentBorderCallout3' | 'accentCallout1' | 'accentCallout2' | 'accentCallout3' | 'accentCallout4' | 'accentBorderCallout4' | 'actionButtonBackPrevious' | 'actionButtonBeginning' | 'actionButtonBlank' | 'actionButtonDocument' | 'actionButtonEnd' | 'actionButtonForwardNext' | 'actionButtonHelp' | 'actionButtonHome' | 'actionButtonInformation' | 'actionButtonMovie' | 'actionButtonReturn' | 'actionButtonSound' | 'arc' | 'bentArrow' | 'bentUpArrow' | 'bevel' | 'blockArc' | 'borderCallout1' | 'borderCallout2' | 'borderCallout3' | 'borderCallout4' | 'bracePair' | 'bracketPair' | 'callout1' | 'callout2' | 'callout3' | 'callout4' | 'can' | 'chartPlus' | 'chartStar' | 'chartX' | 'chevron' | 'chord' | 'circularArrow' | 'cloud' | 'cloudCallout' | 'corner' | 'cornerTabs' | 'cube' | 'curvedDownArrow' | 'curvedLeftArrow' | 'curvedRightArrow' | 'curvedUpArrow' | 'custGeom' | 'decagon' | 'diagStripe' | 'diamond' | 'dodecagon' | 'donut' | 'doubleWave' | 'downArrow' | 'downArrowCallout' | 'ellipse' | 'ellipseRibbon' | 'ellipseRibbon2' | 'flowChartAlternateProcess' | 'flowChartCollate' | 'flowChartConnector' | 'flowChartDecision' | 'flowChartDelay' | 'flowChartDisplay' | 'flowChartDocument' | 'flowChartExtract' | 'flowChartInputOutput' | 'flowChartInternalStorage' | 'flowChartMagneticDisk' | 'flowChartMagneticDrum' | 'flowChartMagneticTape' | 'flowChartManualInput' | 'flowChartManualOperation' | 'flowChartMerge' | 'flowChartMultidocument' | 'flowChartOfflineStorage' | 'flowChartOffpageConnector' | 'flowChartOnlineStorage' | 'flowChartOr' | 'flowChartPredefinedProcess' | 'flowChartPreparation' | 'flowChartProcess' | 'flowChartPunchedCard' | 'flowChartPunchedTape' | 'flowChartSort' | 'flowChartSummingJunction' | 'flowChartTerminator' | 'folderCorner' | 'frame' | 'funnel' | 'gear6' | 'gear9' | 'halfFrame' | 'heart' | 'heptagon' | 'hexagon' | 'homePlate' | 'horizontalScroll' | 'irregularSeal1' | 'irregularSeal2' | 'leftArrow' | 'leftArrowCallout' | 'leftBrace' | 'leftBracket' | 'leftCircularArrow' | 'leftRightArrow' | 'leftRightArrowCallout' | 'leftRightCircularArrow' | 'leftRightRibbon' | 'leftRightUpArrow' | 'leftUpArrow' | 'lightningBolt' | 'line' | 'lineInv' | 'mathDivide' | 'mathEqual' | 'mathMinus' | 'mathMultiply' | 'mathNotEqual' | 'mathPlus' | 'moon' | 'noSmoking' | 'nonIsoscelesTrapezoid' | 'notchedRightArrow' | 'octagon' | 'parallelogram' | 'pentagon' | 'pie' | 'pieWedge' | 'plaque' | 'plaqueTabs' | 'plus' | 'quadArrow' | 'quadArrowCallout' | 'rect' | 'ribbon' | 'ribbon2' | 'rightArrow' | 'rightArrowCallout' | 'rightBrace' | 'rightBracket' | 'round1Rect' | 'round2DiagRect' | 'round2SameRect' | 'roundRect' | 'rtTriangle' | 'smileyFace' | 'snip1Rect' | 'snip2DiagRect' | 'snip2SameRect' | 'snipRoundRect' | 'squareTabs' | 'star10' | 'star12' | 'star16' | 'star24' | 'star32' | 'star4' | 'star5' | 'star6' | 'star7' | 'star8' | 'stripedRightArrow' | 'sun' | 'swooshArrow' | 'teardrop' | 'trapezoid' | 'triangle' | 'upArrow' | 'upArrowCallout' | 'upDownArrow' | 'upDownArrowCallout' | 'uturnArrow' | 'verticalScroll' | 'wave' | 'wedgeEllipseCallout' | 'wedgeRectCallout' | 'wedgeRoundRectCallout';
|
|
3049
|
+
declare type SHAPE_NAME = 'accentBorderCallout1' | 'accentBorderCallout2' | 'accentBorderCallout3' | 'accentCallout1' | 'accentCallout2' | 'accentCallout3' | 'accentCallout4' | 'accentBorderCallout4' | 'actionButtonBackPrevious' | 'actionButtonBeginning' | 'actionButtonBlank' | 'actionButtonDocument' | 'actionButtonEnd' | 'actionButtonForwardNext' | 'actionButtonHelp' | 'actionButtonHome' | 'actionButtonInformation' | 'actionButtonMovie' | 'actionButtonReturn' | 'actionButtonSound' | 'arc' | 'bentArrow' | 'bentConnector2' | 'bentConnector3' | 'bentConnector4' | 'bentConnector5' | 'bentUpArrow' | 'bevel' | 'blockArc' | 'borderCallout1' | 'borderCallout2' | 'borderCallout3' | 'borderCallout4' | 'bracePair' | 'bracketPair' | 'callout1' | 'callout2' | 'callout3' | 'callout4' | 'can' | 'chartPlus' | 'chartStar' | 'chartX' | 'chevron' | 'chord' | 'circularArrow' | 'cloud' | 'cloudCallout' | 'corner' | 'cornerTabs' | 'cube' | 'curvedConnector2' | 'curvedConnector3' | 'curvedConnector4' | 'curvedConnector5' | 'curvedDownArrow' | 'curvedLeftArrow' | 'curvedRightArrow' | 'curvedUpArrow' | 'custGeom' | 'decagon' | 'diagStripe' | 'diamond' | 'dodecagon' | 'donut' | 'doubleWave' | 'downArrow' | 'downArrowCallout' | 'ellipse' | 'ellipseRibbon' | 'ellipseRibbon2' | 'flowChartAlternateProcess' | 'flowChartCollate' | 'flowChartConnector' | 'flowChartDecision' | 'flowChartDelay' | 'flowChartDisplay' | 'flowChartDocument' | 'flowChartExtract' | 'flowChartInputOutput' | 'flowChartInternalStorage' | 'flowChartMagneticDisk' | 'flowChartMagneticDrum' | 'flowChartMagneticTape' | 'flowChartManualInput' | 'flowChartManualOperation' | 'flowChartMerge' | 'flowChartMultidocument' | 'flowChartOfflineStorage' | 'flowChartOffpageConnector' | 'flowChartOnlineStorage' | 'flowChartOr' | 'flowChartPredefinedProcess' | 'flowChartPreparation' | 'flowChartProcess' | 'flowChartPunchedCard' | 'flowChartPunchedTape' | 'flowChartSort' | 'flowChartSummingJunction' | 'flowChartTerminator' | 'folderCorner' | 'frame' | 'funnel' | 'gear6' | 'gear9' | 'halfFrame' | 'heart' | 'heptagon' | 'hexagon' | 'homePlate' | 'horizontalScroll' | 'irregularSeal1' | 'irregularSeal2' | 'leftArrow' | 'leftArrowCallout' | 'leftBrace' | 'leftBracket' | 'leftCircularArrow' | 'leftRightArrow' | 'leftRightArrowCallout' | 'leftRightCircularArrow' | 'leftRightRibbon' | 'leftRightUpArrow' | 'leftUpArrow' | 'lightningBolt' | 'line' | 'lineInv' | 'mathDivide' | 'mathEqual' | 'mathMinus' | 'mathMultiply' | 'mathNotEqual' | 'mathPlus' | 'moon' | 'noSmoking' | 'nonIsoscelesTrapezoid' | 'notchedRightArrow' | 'octagon' | 'parallelogram' | 'pentagon' | 'pie' | 'pieWedge' | 'plaque' | 'plaqueTabs' | 'plus' | 'quadArrow' | 'quadArrowCallout' | 'rect' | 'ribbon' | 'ribbon2' | 'rightArrow' | 'rightArrowCallout' | 'rightBrace' | 'rightBracket' | 'round1Rect' | 'round2DiagRect' | 'round2SameRect' | 'roundRect' | 'rtTriangle' | 'smileyFace' | 'snip1Rect' | 'snip2DiagRect' | 'snip2SameRect' | 'snipRoundRect' | 'squareTabs' | 'star10' | 'star12' | 'star16' | 'star24' | 'star32' | 'star4' | 'star5' | 'star6' | 'star7' | 'star8' | 'straightConnector1' | 'stripedRightArrow' | 'sun' | 'swooshArrow' | 'teardrop' | 'trapezoid' | 'triangle' | 'upArrow' | 'upArrowCallout' | 'upDownArrow' | 'upDownArrowCallout' | 'uturnArrow' | 'verticalScroll' | 'wave' | 'wedgeEllipseCallout' | 'wedgeRectCallout' | 'wedgeRoundRectCallout';
|
|
2419
3050
|
|
|
2420
3051
|
declare enum SHAPE_TYPE {
|
|
2421
3052
|
ACTION_BUTTON_BACK_OR_PREVIOUS = "actionButtonBackPrevious",
|
|
@@ -2433,6 +3064,10 @@ declare enum SHAPE_TYPE {
|
|
|
2433
3064
|
ARC = "arc",
|
|
2434
3065
|
BALLOON = "wedgeRoundRectCallout",
|
|
2435
3066
|
BENT_ARROW = "bentArrow",
|
|
3067
|
+
BENT_CONNECTOR_2 = "bentConnector2",
|
|
3068
|
+
BENT_CONNECTOR_3 = "bentConnector3",
|
|
3069
|
+
BENT_CONNECTOR_4 = "bentConnector4",
|
|
3070
|
+
BENT_CONNECTOR_5 = "bentConnector5",
|
|
2436
3071
|
BENT_UP_ARROW = "bentUpArrow",
|
|
2437
3072
|
BEVEL = "bevel",
|
|
2438
3073
|
BLOCK_ARC = "blockArc",
|
|
@@ -2449,6 +3084,10 @@ declare enum SHAPE_TYPE {
|
|
|
2449
3084
|
CORNER_TABS = "cornerTabs",
|
|
2450
3085
|
CROSS = "plus",
|
|
2451
3086
|
CUBE = "cube",
|
|
3087
|
+
CURVED_CONNECTOR_2 = "curvedConnector2",
|
|
3088
|
+
CURVED_CONNECTOR_3 = "curvedConnector3",
|
|
3089
|
+
CURVED_CONNECTOR_4 = "curvedConnector4",
|
|
3090
|
+
CURVED_CONNECTOR_5 = "curvedConnector5",
|
|
2452
3091
|
CURVED_DOWN_ARROW = "curvedDownArrow",
|
|
2453
3092
|
CURVED_DOWN_RIBBON = "ellipseRibbon",
|
|
2454
3093
|
CURVED_LEFT_ARROW = "curvedLeftArrow",
|
|
@@ -2589,6 +3228,7 @@ declare enum SHAPE_TYPE {
|
|
|
2589
3228
|
STAR_6_POINT = "star6",
|
|
2590
3229
|
STAR_7_POINT = "star7",
|
|
2591
3230
|
STAR_8_POINT = "star8",
|
|
3231
|
+
STRAIGHT_CONNECTOR_1 = "straightConnector1",
|
|
2592
3232
|
STRIPED_RIGHT_ARROW = "stripedRightArrow",
|
|
2593
3233
|
SUN = "sun",
|
|
2594
3234
|
SWOOSH_ARROW = "swooshArrow",
|
|
@@ -2634,8 +3274,10 @@ declare interface ShapeFillProps {
|
|
|
2634
3274
|
* - `'gradient'` — nested definition via `gradient` (linear + radial)
|
|
2635
3275
|
* - `'linearGradient'` — flat sambauers/gradients API (`stops`/`angle`/… on this object)
|
|
2636
3276
|
* - `'pattern'` — pattern fill via `pattern`
|
|
3277
|
+
* - `'image'` — picture fill via `image` (`a:blipFill`)
|
|
3278
|
+
* - `'group'` — inherit the parent group's fill (`a:grpFill`)
|
|
2637
3279
|
*/
|
|
2638
|
-
type?: 'none' | 'solid' | 'gradient' | 'linearGradient' | 'pattern';
|
|
3280
|
+
type?: 'none' | 'solid' | 'gradient' | 'linearGradient' | 'pattern' | 'image' | 'group';
|
|
2639
3281
|
/**
|
|
2640
3282
|
* Gradient fill definition
|
|
2641
3283
|
* - required when `type` is `'gradient'` (ignored otherwise)
|
|
@@ -2648,6 +3290,14 @@ declare interface ShapeFillProps {
|
|
|
2648
3290
|
* @example { type:'pattern', pattern:{ prst:'ltHorz', color:'000000', bgColor:'FFFFFF' } }
|
|
2649
3291
|
*/
|
|
2650
3292
|
pattern?: ShapePatternProps;
|
|
3293
|
+
/**
|
|
3294
|
+
* Picture fill definition
|
|
3295
|
+
* - required when `type` is `'image'`
|
|
3296
|
+
* @example { type:'image', image:{ data:'image/png;base64,iV[...]', sizing:'tile' } }
|
|
3297
|
+
*/
|
|
3298
|
+
image?: ShapeImageFillProps;
|
|
3299
|
+
/** relationship id for a picture fill without a nested `image` object @internal */
|
|
3300
|
+
_rId?: number;
|
|
2651
3301
|
/**
|
|
2652
3302
|
* Flat linear-gradient stops (`type: 'linearGradient'`, sambauers/gradients)
|
|
2653
3303
|
* @example { type:'linearGradient', angle:45, stops:[{position:0,color:'000000'},{position:100,color:'333333'}] }
|
|
@@ -2765,6 +3415,46 @@ declare interface ShapeGradientTileRect {
|
|
|
2765
3415
|
l?: number;
|
|
2766
3416
|
}
|
|
2767
3417
|
|
|
3418
|
+
/**
|
|
3419
|
+
* Picture fill (`a:blipFill`) for shapes and table cells
|
|
3420
|
+
* - stretch (ECMA-376 20.1.8.56) or tile (20.1.8.58)
|
|
3421
|
+
*/
|
|
3422
|
+
declare interface ShapeImageFillProps {
|
|
3423
|
+
/**
|
|
3424
|
+
* Image data (base64), with a mime header
|
|
3425
|
+
* - one of `data` or `path` is required
|
|
3426
|
+
* @example 'image/png;base64,iVBORw0KGgo...'
|
|
3427
|
+
*/
|
|
3428
|
+
data?: string;
|
|
3429
|
+
/**
|
|
3430
|
+
* Image path or URL
|
|
3431
|
+
* - one of `data` or `path` is required
|
|
3432
|
+
*/
|
|
3433
|
+
path?: string;
|
|
3434
|
+
/**
|
|
3435
|
+
* How the image fills the shape
|
|
3436
|
+
* @default 'stretch'
|
|
3437
|
+
*/
|
|
3438
|
+
sizing?: 'stretch' | 'tile';
|
|
3439
|
+
/**
|
|
3440
|
+
* `tile` only: scale applied to each tile (percent)
|
|
3441
|
+
* @default 100
|
|
3442
|
+
*/
|
|
3443
|
+
scale?: number;
|
|
3444
|
+
/**
|
|
3445
|
+
* `tile` only: where tiling starts
|
|
3446
|
+
* @default 'tl'
|
|
3447
|
+
*/
|
|
3448
|
+
alignment?: 'tl' | 't' | 'tr' | 'l' | 'ctr' | 'r' | 'bl' | 'b' | 'br';
|
|
3449
|
+
/**
|
|
3450
|
+
* Whether the fill rotates with the shape
|
|
3451
|
+
* @default true
|
|
3452
|
+
*/
|
|
3453
|
+
rotateWithShape?: boolean;
|
|
3454
|
+
/** relationship id resolved when the object is created @internal */
|
|
3455
|
+
_rId?: number;
|
|
3456
|
+
}
|
|
3457
|
+
|
|
2768
3458
|
declare interface ShapeLineProps extends ShapeFillProps {
|
|
2769
3459
|
/**
|
|
2770
3460
|
* Line width (pt)
|
|
@@ -2819,6 +3509,10 @@ declare interface ShapeLineProps extends ShapeFillProps {
|
|
|
2819
3509
|
* @example [50000] // mid bend for bentConnector3
|
|
2820
3510
|
*/
|
|
2821
3511
|
curveadjust?: number[];
|
|
3512
|
+
/** `objectName` of the start shape (resolved to `sourceId` at emit) @internal */
|
|
3513
|
+
_sourceName?: string;
|
|
3514
|
+
/** `objectName` of the end shape (resolved to `targetId` at emit) @internal */
|
|
3515
|
+
_targetName?: string;
|
|
2822
3516
|
/**
|
|
2823
3517
|
* Dash type
|
|
2824
3518
|
* @deprecated v3.3.0 - use `dashType`
|
|
@@ -2844,6 +3538,39 @@ declare interface ShapeLineProps extends ShapeFillProps {
|
|
|
2844
3538
|
size?: number;
|
|
2845
3539
|
}
|
|
2846
3540
|
|
|
3541
|
+
/**
|
|
3542
|
+
* Editing locks (ECMA-376 20.1.2.2.34 `a:spLocks` and its siblings)
|
|
3543
|
+
* - each is omitted unless set, so the values the library emits today are unchanged
|
|
3544
|
+
*/
|
|
3545
|
+
declare interface ShapeLockProps {
|
|
3546
|
+
/** prevent grouping with other shapes */
|
|
3547
|
+
noGroup?: boolean;
|
|
3548
|
+
/** prevent selection */
|
|
3549
|
+
noSelect?: boolean;
|
|
3550
|
+
/** prevent rotation */
|
|
3551
|
+
noRotate?: boolean;
|
|
3552
|
+
/** prevent changing the aspect ratio */
|
|
3553
|
+
noChangeAspect?: boolean;
|
|
3554
|
+
/** prevent moving */
|
|
3555
|
+
noMove?: boolean;
|
|
3556
|
+
/** prevent resizing */
|
|
3557
|
+
noResize?: boolean;
|
|
3558
|
+
/** prevent editing the geometry points */
|
|
3559
|
+
noEditPoints?: boolean;
|
|
3560
|
+
/** prevent dragging the adjust handles */
|
|
3561
|
+
noAdjustHandles?: boolean;
|
|
3562
|
+
/** prevent changing arrowheads */
|
|
3563
|
+
noChangeArrowheads?: boolean;
|
|
3564
|
+
/** prevent changing the preset geometry */
|
|
3565
|
+
noChangeShapeType?: boolean;
|
|
3566
|
+
/** prevent editing the text */
|
|
3567
|
+
noTextEdit?: boolean;
|
|
3568
|
+
/** pictures only: prevent cropping */
|
|
3569
|
+
noCrop?: boolean;
|
|
3570
|
+
/** pictures only: prefer resizing relative to the original size */
|
|
3571
|
+
preferRelativeResize?: boolean;
|
|
3572
|
+
}
|
|
3573
|
+
|
|
2847
3574
|
declare type ShapeMaskType = 'circle' | 'box' | 'diamond' | 'plus';
|
|
2848
3575
|
|
|
2849
3576
|
declare interface ShapePatternProps {
|
|
@@ -2910,6 +3637,12 @@ declare interface ShapeProps extends PositionProps, ObjectNameProps, AppearOnCli
|
|
|
2910
3637
|
* @example hyperlink: { url: "https://github.com/gitbrent/pptxgenjs", tooltip: "Visit Homepage" },
|
|
2911
3638
|
*/
|
|
2912
3639
|
hyperlink?: HyperlinkProps;
|
|
3640
|
+
/**
|
|
3641
|
+
* Mouse-over action, configured like `hyperlink` but triggered on hover
|
|
3642
|
+
* - PowerPoint's Insert > Action > Mouse Over tab
|
|
3643
|
+
* @example { hyperlinkHover: { slide: 3, tooltip: 'Jump to results' } }
|
|
3644
|
+
*/
|
|
3645
|
+
hyperlinkHover?: HyperlinkProps;
|
|
2913
3646
|
/**
|
|
2914
3647
|
* Line options
|
|
2915
3648
|
*/
|
|
@@ -3005,6 +3738,20 @@ declare interface ShapeProps extends PositionProps, ObjectNameProps, AppearOnCli
|
|
|
3005
3738
|
* Blur effect (`a:blur` in shape `effectLst`)
|
|
3006
3739
|
*/
|
|
3007
3740
|
blur?: BlurProps;
|
|
3741
|
+
/**
|
|
3742
|
+
* Fill blended over the shape's own fill (`a:fillOverlay`)
|
|
3743
|
+
* @example { blend: 'mult', fill: { color: 'FF0000', transparency: 50 } }
|
|
3744
|
+
*/
|
|
3745
|
+
fillOverlay?: FillOverlayProps;
|
|
3746
|
+
/**
|
|
3747
|
+
* Emit the effects as a composed effect graph (`a:effectDag`) rather than an `a:effectLst`
|
|
3748
|
+
*/
|
|
3749
|
+
effectDag?: EffectDagProps;
|
|
3750
|
+
/**
|
|
3751
|
+
* Theme style references (`p:style`)
|
|
3752
|
+
* @example { fill: 1, line: 2, effect: 0, font: 'minor' }
|
|
3753
|
+
*/
|
|
3754
|
+
styleRef?: ShapeStyleProps;
|
|
3008
3755
|
/**
|
|
3009
3756
|
* @deprecated v3.3.0
|
|
3010
3757
|
*/
|
|
@@ -3035,6 +3782,36 @@ declare interface ShapeProps extends PositionProps, ObjectNameProps, AppearOnCli
|
|
|
3035
3782
|
animation?: string | AnimationConfig;
|
|
3036
3783
|
}
|
|
3037
3784
|
|
|
3785
|
+
/**
|
|
3786
|
+
* Theme style references for a shape (`p:style`, ECMA-376 Part 1 §20.1.4.1.25 CT_ShapeStyle)
|
|
3787
|
+
* - named `styleRef` because `style` is already used by chart gridlines
|
|
3788
|
+
* - each index points into the matching list in the theme's `a:fmtScheme`, 1-based
|
|
3789
|
+
*/
|
|
3790
|
+
declare interface ShapeStyleProps {
|
|
3791
|
+
/** Index into the theme's `a:lnStyleLst` (1-based) */
|
|
3792
|
+
line?: number;
|
|
3793
|
+
/** Index into the theme's `a:fillStyleLst` (1-based) */
|
|
3794
|
+
fill?: number;
|
|
3795
|
+
/** Index into the theme's `a:effectStyleLst` (1-based) */
|
|
3796
|
+
effect?: number;
|
|
3797
|
+
/**
|
|
3798
|
+
* Which of the theme's font collections the shape's text follows
|
|
3799
|
+
* @default none
|
|
3800
|
+
*/
|
|
3801
|
+
font?: 'major' | 'minor' | 'none';
|
|
3802
|
+
/**
|
|
3803
|
+
* Colour the referenced line, fill and effect resolve the theme's `phClr` against
|
|
3804
|
+
* @default 'accent1'
|
|
3805
|
+
*/
|
|
3806
|
+
color?: Color;
|
|
3807
|
+
/**
|
|
3808
|
+
* Colour the referenced font resolves against
|
|
3809
|
+
* - defaults to `lt1` because a font sharing the fill's colour renders as invisible text
|
|
3810
|
+
* @default 'lt1'
|
|
3811
|
+
*/
|
|
3812
|
+
fontColor?: Color;
|
|
3813
|
+
}
|
|
3814
|
+
|
|
3038
3815
|
declare enum ShapeType {
|
|
3039
3816
|
'accentBorderCallout1' = "accentBorderCallout1",
|
|
3040
3817
|
'accentBorderCallout2' = "accentBorderCallout2",
|
|
@@ -3060,6 +3837,10 @@ declare enum ShapeType {
|
|
|
3060
3837
|
'actionButtonSound' = "actionButtonSound",
|
|
3061
3838
|
'arc' = "arc",
|
|
3062
3839
|
'bentArrow' = "bentArrow",
|
|
3840
|
+
'bentConnector2' = "bentConnector2",
|
|
3841
|
+
'bentConnector3' = "bentConnector3",
|
|
3842
|
+
'bentConnector4' = "bentConnector4",
|
|
3843
|
+
'bentConnector5' = "bentConnector5",
|
|
3063
3844
|
'bentUpArrow' = "bentUpArrow",
|
|
3064
3845
|
'bevel' = "bevel",
|
|
3065
3846
|
'blockArc' = "blockArc",
|
|
@@ -3083,6 +3864,10 @@ declare enum ShapeType {
|
|
|
3083
3864
|
'corner' = "corner",
|
|
3084
3865
|
'cornerTabs' = "cornerTabs",
|
|
3085
3866
|
'cube' = "cube",
|
|
3867
|
+
'curvedConnector2' = "curvedConnector2",
|
|
3868
|
+
'curvedConnector3' = "curvedConnector3",
|
|
3869
|
+
'curvedConnector4' = "curvedConnector4",
|
|
3870
|
+
'curvedConnector5' = "curvedConnector5",
|
|
3086
3871
|
'curvedDownArrow' = "curvedDownArrow",
|
|
3087
3872
|
'curvedLeftArrow' = "curvedLeftArrow",
|
|
3088
3873
|
'curvedRightArrow' = "curvedRightArrow",
|
|
@@ -3203,6 +3988,7 @@ declare enum ShapeType {
|
|
|
3203
3988
|
'star6' = "star6",
|
|
3204
3989
|
'star7' = "star7",
|
|
3205
3990
|
'star8' = "star8",
|
|
3991
|
+
'straightConnector1' = "straightConnector1",
|
|
3206
3992
|
'stripedRightArrow' = "stripedRightArrow",
|
|
3207
3993
|
'sun' = "sun",
|
|
3208
3994
|
'swooshArrow' = "swooshArrow",
|
|
@@ -3258,6 +4044,14 @@ declare interface SlideBaseProps {
|
|
|
3258
4044
|
}
|
|
3259
4045
|
|
|
3260
4046
|
declare interface SlideLayout extends SlideBaseProps {
|
|
4047
|
+
layoutType?: SlideLayoutType;
|
|
4048
|
+
matchingName?: string;
|
|
4049
|
+
preserve?: boolean;
|
|
4050
|
+
showMasterShapes?: boolean;
|
|
4051
|
+
showMasterPlaceholderAnimation?: boolean;
|
|
4052
|
+
userDrawn?: boolean;
|
|
4053
|
+
colorMapOverride?: ColorMapOverrideProps;
|
|
4054
|
+
transition?: SlideTransitionProps;
|
|
3261
4055
|
_slide?: {
|
|
3262
4056
|
_bkgdImgRid?: number;
|
|
3263
4057
|
back: string;
|
|
@@ -3266,11 +4060,57 @@ declare interface SlideLayout extends SlideBaseProps {
|
|
|
3266
4060
|
};
|
|
3267
4061
|
}
|
|
3268
4062
|
|
|
4063
|
+
/**
|
|
4064
|
+
* ECMA-376 19.7.15 ST_SlideLayoutType - the placeholder arrangement a layout describes
|
|
4065
|
+
* - PowerPoint's layout gallery and its Reset Layout command read this
|
|
4066
|
+
*/
|
|
4067
|
+
declare type SlideLayoutType = 'title' | 'tx' | 'twoColTx' | 'tbl' | 'txAndChart' | 'chartAndTx' | 'dgm' | 'chart' | 'txAndClipArt' | 'clipArtAndTx' | 'titleOnly' | 'blank' | 'txAndObj' | 'objAndTx' | 'objOnly' | 'obj' | 'txAndMedia' | 'mediaAndTx' | 'objOverTx' | 'txOverObj' | 'txAndTwoObj' | 'twoObjAndTx' | 'twoObjOverTx' | 'fourObj' | 'vertTx' | 'clipArtAndVertTx' | 'vertTitleAndTx' | 'vertTitleAndTxOverChart' | 'twoObj' | 'objAndTwoObj' | 'twoObjAndObj' | 'cust' | 'secHead' | 'twoTxTwoObj' | 'objTx' | 'picTx';
|
|
4068
|
+
|
|
3269
4069
|
declare interface SlideMasterProps {
|
|
3270
4070
|
/**
|
|
3271
4071
|
* Unique name for this master
|
|
3272
4072
|
*/
|
|
3273
4073
|
title: string;
|
|
4074
|
+
/**
|
|
4075
|
+
* Which placeholder arrangement this layout describes (`p:sldLayout@type`)
|
|
4076
|
+
* - PowerPoint's New Slide gallery groups layouts by this, and Reset Layout trusts it
|
|
4077
|
+
* @default cust
|
|
4078
|
+
*/
|
|
4079
|
+
layoutType?: SlideLayoutType;
|
|
4080
|
+
/**
|
|
4081
|
+
* Name shown for the layout in PowerPoint's gallery (`@matchingName`)
|
|
4082
|
+
* - unset writes nothing; PowerPoint then falls back to the layout name from `title`
|
|
4083
|
+
*/
|
|
4084
|
+
matchingName?: string;
|
|
4085
|
+
/**
|
|
4086
|
+
* Keep the layout in the deck even when no slide uses it (`@preserve`)
|
|
4087
|
+
* @default true
|
|
4088
|
+
*/
|
|
4089
|
+
preserve?: boolean;
|
|
4090
|
+
/**
|
|
4091
|
+
* Draw the master's shapes behind slides using this layout (`@showMasterSp`)
|
|
4092
|
+
* @default true
|
|
4093
|
+
*/
|
|
4094
|
+
showMasterShapes?: boolean;
|
|
4095
|
+
/**
|
|
4096
|
+
* Play the master's placeholder animations on slides using this layout (`@showMasterPhAnim`)
|
|
4097
|
+
* @default true
|
|
4098
|
+
*/
|
|
4099
|
+
showMasterPlaceholderAnimation?: boolean;
|
|
4100
|
+
/**
|
|
4101
|
+
* Mark the layout as drawn by the author rather than generated (`@userDrawn`)
|
|
4102
|
+
* @default false
|
|
4103
|
+
*/
|
|
4104
|
+
userDrawn?: boolean;
|
|
4105
|
+
/**
|
|
4106
|
+
* Remap the theme's colour slots for this layout only (`p:clrMapOvr`)
|
|
4107
|
+
* - with none set the layout inherits the master's mapping, which is today's behaviour
|
|
4108
|
+
*/
|
|
4109
|
+
colorMapOverride?: ColorMapOverrideProps;
|
|
4110
|
+
/**
|
|
4111
|
+
* Transition applied to slides using this layout (`p:transition`)
|
|
4112
|
+
*/
|
|
4113
|
+
transition?: SlideTransitionProps;
|
|
3274
4114
|
background?: BackgroundProps;
|
|
3275
4115
|
margin?: Margin;
|
|
3276
4116
|
slideNumber?: SlideNumberProps;
|
|
@@ -3341,9 +4181,52 @@ declare interface SlideShowEvent {
|
|
|
3341
4181
|
seek?: number;
|
|
3342
4182
|
}
|
|
3343
4183
|
|
|
4184
|
+
/**
|
|
4185
|
+
* Slide-show options written to `ppt/presProps.xml` as `p:showPr` (ECMA-376 §19.2.1.30).
|
|
4186
|
+
* Opt-in: unset writes no `showPr`. The present/browse/kiosk choice is required when `showPr` is emitted.
|
|
4187
|
+
*/
|
|
4188
|
+
declare interface SlideShowProps {
|
|
4189
|
+
/**
|
|
4190
|
+
* How the slide show runs (`p:showPr` choice).
|
|
4191
|
+
* - `present`: full screen, presenter-driven
|
|
4192
|
+
* - `browse`: windowed, viewer-driven
|
|
4193
|
+
* - `kiosk`: full screen, self-running
|
|
4194
|
+
* @default 'present'
|
|
4195
|
+
*/
|
|
4196
|
+
mode?: 'present' | 'browse' | 'kiosk';
|
|
4197
|
+
/** Restart the show after the last slide. @default false */
|
|
4198
|
+
loop?: boolean;
|
|
4199
|
+
/** Play recorded narration. @default true */
|
|
4200
|
+
showNarration?: boolean;
|
|
4201
|
+
/** Play animations. @default true */
|
|
4202
|
+
showAnimation?: boolean;
|
|
4203
|
+
/** Use the slide timings recorded in the file. @default true */
|
|
4204
|
+
useTimings?: boolean;
|
|
4205
|
+
/**
|
|
4206
|
+
* Show the scrollbar when `mode` is `browse` (`p:browse@showScrollbar`).
|
|
4207
|
+
* Distinct from `browseMode` (MS-PPTX status-bar `p14:browseMode@showStatus`).
|
|
4208
|
+
*/
|
|
4209
|
+
showScrollbar?: boolean;
|
|
4210
|
+
/**
|
|
4211
|
+
* Status-bar visibility in browse mode (MS-PPTX §2.3.1.2 `p14:browseMode@showStatus`).
|
|
4212
|
+
* Merges with the presentation-level `browseMode` property.
|
|
4213
|
+
*/
|
|
4214
|
+
browseMode?: boolean;
|
|
4215
|
+
/**
|
|
4216
|
+
* Laser-pointer color (MS-PPTX §2.3.1.16 `p14:laserClr`).
|
|
4217
|
+
* Merges with the presentation-level `laserColor` property.
|
|
4218
|
+
*/
|
|
4219
|
+
laserColor?: Color;
|
|
4220
|
+
}
|
|
4221
|
+
|
|
3344
4222
|
/** ECMA-376 `ST_TLTriggerEvent` values used by `p14:triggerEvt`. */
|
|
3345
4223
|
declare type SlideShowTriggerType = 'onBegin' | 'onEnd' | 'begin' | 'end' | 'onClick' | 'onDblClick' | 'onMouseOver' | 'onMouseOut' | 'onNext' | 'onPrev' | 'onStopAudio';
|
|
3346
4224
|
|
|
4225
|
+
/**
|
|
4226
|
+
* Slide-size preset (`p:sldSz@type`)
|
|
4227
|
+
*/
|
|
4228
|
+
declare type SlideSizeType = 'screen4x3' | 'screen16x9' | 'screen16x10' | 'letter' | 'ledger' | 'a3' | 'a4' | 'b4ISO' | 'b5ISO' | 'b4JIS' | 'b5JIS' | 'hagakiCard' | '35mm' | 'overhead' | 'banner' | 'custom';
|
|
4229
|
+
|
|
3347
4230
|
/**
|
|
3348
4231
|
* Slide transition options. ECMA-376 §19.3.1.50 `CT_SlideTransition`.
|
|
3349
4232
|
* Modern (MS-PPTX) transition types are emitted inside `<mc:AlternateContent>` with a base-type fallback.
|
|
@@ -3421,7 +4304,9 @@ declare type SplitDirection = 'horizontalIn' | 'horizontalOut' | 'verticalIn' |
|
|
|
3421
4304
|
/** A Summary Zoom navigation object. MS-PPTX §2.11 `CT_SummaryZoom`. */
|
|
3422
4305
|
declare interface SummaryZoomProps extends ZoomBaseProps {
|
|
3423
4306
|
/** Title of the target section (must match an `addSection({ title })`). */
|
|
3424
|
-
sectionTitle
|
|
4307
|
+
sectionTitle?: string;
|
|
4308
|
+
/** Additional section titles (each emits a `p16:summaryZmObj`). */
|
|
4309
|
+
sectionTitles?: string[];
|
|
3425
4310
|
/** Alt-text title on the zoom object. */
|
|
3426
4311
|
title?: string;
|
|
3427
4312
|
/** Alt-text description on the zoom object. */
|
|
@@ -3472,14 +4357,39 @@ declare interface TableCellProps extends TextBaseProps {
|
|
|
3472
4357
|
* @example 0.5 // tables are taller (increases the number of lines that can fit on a given slide)
|
|
3473
4358
|
*/
|
|
3474
4359
|
autoPageLineWeight?: number;
|
|
4360
|
+
/**
|
|
4361
|
+
* Whether text is centered both horizontally and vertically in the cell
|
|
4362
|
+
* @default false
|
|
4363
|
+
*/
|
|
4364
|
+
anchorCtr?: boolean;
|
|
3475
4365
|
/**
|
|
3476
4366
|
* Cell border
|
|
3477
4367
|
*/
|
|
3478
4368
|
border?: BorderProps | [BorderProps, BorderProps, BorderProps, BorderProps];
|
|
4369
|
+
/**
|
|
4370
|
+
* Diagonal border running bottom-left to top-right (`a:lnBlToTr`)
|
|
4371
|
+
* - independent of `border`, which only covers the four edges
|
|
4372
|
+
*/
|
|
4373
|
+
borderDiagonalUp?: BorderProps;
|
|
4374
|
+
/**
|
|
4375
|
+
* Diagonal border running top-left to bottom-right (`a:lnTlToBr`)
|
|
4376
|
+
* - independent of `border`, which only covers the four edges
|
|
4377
|
+
*/
|
|
4378
|
+
borderDiagonalDown?: BorderProps;
|
|
4379
|
+
/**
|
|
4380
|
+
* 3-D bevel and lighting for the cell
|
|
4381
|
+
* @example { bevel: { preset: 'circle', width: 0.05, height: 0.05 }, material: 'metal' }
|
|
4382
|
+
*/
|
|
4383
|
+
cell3D?: Cell3DProps;
|
|
3479
4384
|
/**
|
|
3480
4385
|
* Cell colspan
|
|
3481
4386
|
*/
|
|
3482
4387
|
colspan?: number;
|
|
4388
|
+
/**
|
|
4389
|
+
* Whether text wider than the cell is clipped or allowed to overflow it
|
|
4390
|
+
* @default clip
|
|
4391
|
+
*/
|
|
4392
|
+
horzOverflow?: 'clip' | 'overflow';
|
|
3483
4393
|
/**
|
|
3484
4394
|
* Fill color
|
|
3485
4395
|
* @example { color:'FF0000' } // hex color (red)
|
|
@@ -3490,6 +4400,12 @@ declare interface TableCellProps extends TextBaseProps {
|
|
|
3490
4400
|
/** @internal rId of a cell `a:blipFill` image (registered at addTable) */
|
|
3491
4401
|
_fillRid?: number;
|
|
3492
4402
|
hyperlink?: HyperlinkProps;
|
|
4403
|
+
/**
|
|
4404
|
+
* Mouse-over action, configured like `hyperlink` but triggered on hover
|
|
4405
|
+
* - PowerPoint's Insert > Action > Mouse Over tab
|
|
4406
|
+
* @example { hyperlinkHover: { slide: 3, tooltip: 'Jump to results' } }
|
|
4407
|
+
*/
|
|
4408
|
+
hyperlinkHover?: HyperlinkProps;
|
|
3493
4409
|
/**
|
|
3494
4410
|
* Cell margin (inches)
|
|
3495
4411
|
* @default 0
|
|
@@ -3621,7 +4537,7 @@ declare interface TableProps extends PositionProps, TextBaseProps, ObjectNamePro
|
|
|
3621
4537
|
*/
|
|
3622
4538
|
rtlMode?: boolean;
|
|
3623
4539
|
/**
|
|
3624
|
-
* Table style id (GUID of a built-in PowerPoint table style)
|
|
4540
|
+
* Table style id (GUID of a built-in PowerPoint table style, or a custom style from `pptx.tableStyles`)
|
|
3625
4541
|
* - required for `bandRow`/`firstRow`/etc. to have a visible effect
|
|
3626
4542
|
* @example '{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}' // "Medium Style 2 - Accent 1"
|
|
3627
4543
|
*/
|
|
@@ -3646,6 +4562,71 @@ declare interface TableProps extends PositionProps, TextBaseProps, ObjectNamePro
|
|
|
3646
4562
|
|
|
3647
4563
|
declare type TableRow = TableCell[];
|
|
3648
4564
|
|
|
4565
|
+
/**
|
|
4566
|
+
* Borders of one part of a table style (`a:tcBdr`, ECMA-376 Part 1 §21.1.3.11)
|
|
4567
|
+
*/
|
|
4568
|
+
declare interface TableStyleBorderProps {
|
|
4569
|
+
left?: ShapeLineProps;
|
|
4570
|
+
right?: ShapeLineProps;
|
|
4571
|
+
top?: ShapeLineProps;
|
|
4572
|
+
bottom?: ShapeLineProps;
|
|
4573
|
+
/** horizontal borders between rows */
|
|
4574
|
+
insideH?: ShapeLineProps;
|
|
4575
|
+
/** vertical borders between columns */
|
|
4576
|
+
insideV?: ShapeLineProps;
|
|
4577
|
+
}
|
|
4578
|
+
|
|
4579
|
+
/**
|
|
4580
|
+
* How one part of a table looks in a table style (`a:wholeTbl`, `a:band1H`, `a:firstRow`, ...)
|
|
4581
|
+
* - `a:tcTxStyle` carries the text half, `a:tcStyle` the cell half
|
|
4582
|
+
*/
|
|
4583
|
+
declare interface TableStylePartProps {
|
|
4584
|
+
/** bold text - omitted leaves it to the theme */
|
|
4585
|
+
bold?: boolean;
|
|
4586
|
+
/** italic text - omitted leaves it to the theme */
|
|
4587
|
+
italic?: boolean;
|
|
4588
|
+
/** text colour */
|
|
4589
|
+
color?: Color;
|
|
4590
|
+
/** cell fill */
|
|
4591
|
+
fill?: ShapeFillProps;
|
|
4592
|
+
/** cell borders */
|
|
4593
|
+
borders?: TableStyleBorderProps;
|
|
4594
|
+
}
|
|
4595
|
+
|
|
4596
|
+
/**
|
|
4597
|
+
* A custom table style, written into `ppt/tableStyles.xml` (ECMA-376 Part 1 §14.2.9)
|
|
4598
|
+
* - reference it from a table with `tableStyleId: '<the same id>'`
|
|
4599
|
+
* - `id` and `name` are both required by the schema
|
|
4600
|
+
*/
|
|
4601
|
+
declare interface TableStyleProps {
|
|
4602
|
+
/** Style GUID, braced and upper-case, e.g. `{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}` */
|
|
4603
|
+
id: string;
|
|
4604
|
+
/** Name shown in PowerPoint's table-style gallery */
|
|
4605
|
+
name: string;
|
|
4606
|
+
/** applies to every cell */
|
|
4607
|
+
wholeTable?: TableStylePartProps;
|
|
4608
|
+
/** first banded row */
|
|
4609
|
+
band1H?: TableStylePartProps;
|
|
4610
|
+
/** second banded row */
|
|
4611
|
+
band2H?: TableStylePartProps;
|
|
4612
|
+
/** first banded column */
|
|
4613
|
+
band1V?: TableStylePartProps;
|
|
4614
|
+
/** second banded column */
|
|
4615
|
+
band2V?: TableStylePartProps;
|
|
4616
|
+
firstRow?: TableStylePartProps;
|
|
4617
|
+
lastRow?: TableStylePartProps;
|
|
4618
|
+
firstCol?: TableStylePartProps;
|
|
4619
|
+
lastCol?: TableStylePartProps;
|
|
4620
|
+
/** top-left cell */
|
|
4621
|
+
nwCell?: TableStylePartProps;
|
|
4622
|
+
/** top-right cell */
|
|
4623
|
+
neCell?: TableStylePartProps;
|
|
4624
|
+
/** bottom-left cell */
|
|
4625
|
+
swCell?: TableStylePartProps;
|
|
4626
|
+
/** bottom-right cell */
|
|
4627
|
+
seCell?: TableStylePartProps;
|
|
4628
|
+
}
|
|
4629
|
+
|
|
3649
4630
|
declare interface TableToSlidesProps extends TableProps {
|
|
3650
4631
|
_arrObjTabHeadRows?: TableRow[];
|
|
3651
4632
|
/**
|
|
@@ -3792,6 +4773,28 @@ declare interface TextBaseProps {
|
|
|
3792
4773
|
* @example pptx.SchemeColor.accent1
|
|
3793
4774
|
*/
|
|
3794
4775
|
color?: Color;
|
|
4776
|
+
/**
|
|
4777
|
+
* Bullet size as a percent of the text size (`a:buSzPct`)
|
|
4778
|
+
* - range: 25-400
|
|
4779
|
+
* @default 100
|
|
4780
|
+
*/
|
|
4781
|
+
size?: number;
|
|
4782
|
+
/**
|
|
4783
|
+
* Bullet size in points (`a:buSzPts`), instead of a percent
|
|
4784
|
+
*/
|
|
4785
|
+
sizePts?: number;
|
|
4786
|
+
/**
|
|
4787
|
+
* Typeface for the bullet glyph (`a:buFont`)
|
|
4788
|
+
* - needed for Wingdings-style character bullets
|
|
4789
|
+
*/
|
|
4790
|
+
fontFace?: string;
|
|
4791
|
+
/**
|
|
4792
|
+
* Picture bullet (`a:buBlip`) - base64 image data with a mime header
|
|
4793
|
+
* - takes precedence over a character or number bullet
|
|
4794
|
+
*/
|
|
4795
|
+
image?: string;
|
|
4796
|
+
/** relationship id of the picture bullet, resolved when the object is created @internal */
|
|
4797
|
+
_imageRId?: number;
|
|
3795
4798
|
/**
|
|
3796
4799
|
* Indentation (space between bullet and text) (points)
|
|
3797
4800
|
* @since v3.3.0
|
|
@@ -3931,6 +4934,11 @@ declare interface TextBaseProps {
|
|
|
3931
4934
|
valign?: VAlign;
|
|
3932
4935
|
}
|
|
3933
4936
|
|
|
4937
|
+
/**
|
|
4938
|
+
* Refreshable text-run field type (`a:fld@type`, ECMA-376 21.1.2.2.4)
|
|
4939
|
+
*/
|
|
4940
|
+
declare type TextFieldType = 'slidenum' | 'datetime' | 'datetimeFigureOut' | 'datetime1' | 'datetime2' | 'datetime3' | 'datetime4' | 'datetime5' | 'datetime6' | 'datetime7' | 'datetime8' | 'datetime9' | 'datetime10' | 'datetime11' | 'datetime12' | 'datetime13' | 'headerfooter' | 'hdr' | 'ftr';
|
|
4941
|
+
|
|
3934
4942
|
declare interface TextGlowProps {
|
|
3935
4943
|
/**
|
|
3936
4944
|
* Border color (hex format)
|
|
@@ -4036,6 +5044,12 @@ declare interface TextPropsOptions extends PositionProps, DataOrPathProps, TextB
|
|
|
4036
5044
|
flipV?: boolean;
|
|
4037
5045
|
glow?: TextGlowProps;
|
|
4038
5046
|
hyperlink?: HyperlinkProps;
|
|
5047
|
+
/**
|
|
5048
|
+
* Mouse-over action, configured like `hyperlink` but triggered on hover
|
|
5049
|
+
* - PowerPoint's Insert > Action > Mouse Over tab
|
|
5050
|
+
* @example { hyperlinkHover: { slide: 3, tooltip: 'Jump to results' } }
|
|
5051
|
+
*/
|
|
5052
|
+
hyperlinkHover?: HyperlinkProps;
|
|
4039
5053
|
indentLevel?: number;
|
|
4040
5054
|
isTextBox?: boolean;
|
|
4041
5055
|
line?: ShapeLineProps;
|
|
@@ -4098,6 +5112,22 @@ declare interface TextPropsOptions extends PositionProps, DataOrPathProps, TextB
|
|
|
4098
5112
|
* @default false
|
|
4099
5113
|
*/
|
|
4100
5114
|
rtlMode?: boolean;
|
|
5115
|
+
/**
|
|
5116
|
+
* Lay columns out right-to-left (`a:bodyPr@rtlCol`)
|
|
5117
|
+
* - defaults to this text box's `rtlMode` when unset
|
|
5118
|
+
*/
|
|
5119
|
+
rtlColumns?: boolean;
|
|
5120
|
+
/**
|
|
5121
|
+
* Render this run as a field the consumer refreshes, rather than literal text (`a:fld`)
|
|
5122
|
+
* - the run's `text` becomes the cached value, so consumers that do not refresh still show something
|
|
5123
|
+
* @example { text: '22/08/2026', options: { field: 'datetime1' } }
|
|
5124
|
+
*/
|
|
5125
|
+
field?: TextFieldType;
|
|
5126
|
+
/**
|
|
5127
|
+
* Horizontal-in-vertical numerals for East Asian vertical text (`a:rPr@kumimoji`)
|
|
5128
|
+
* @default false
|
|
5129
|
+
*/
|
|
5130
|
+
kumimoji?: boolean;
|
|
4101
5131
|
shadow?: ShadowProps;
|
|
4102
5132
|
/**
|
|
4103
5133
|
* Soft-edge effect (`a:softEdge` on the text shape)
|
|
@@ -4111,6 +5141,18 @@ declare interface TextPropsOptions extends PositionProps, DataOrPathProps, TextB
|
|
|
4111
5141
|
* Blur effect (`a:blur` on the text shape)
|
|
4112
5142
|
*/
|
|
4113
5143
|
blur?: BlurProps;
|
|
5144
|
+
/**
|
|
5145
|
+
* Fill blended over the text shape's own fill (`a:fillOverlay`)
|
|
5146
|
+
*/
|
|
5147
|
+
fillOverlay?: FillOverlayProps;
|
|
5148
|
+
/**
|
|
5149
|
+
* Emit the effects as a composed effect graph (`a:effectDag`) rather than an `a:effectLst`
|
|
5150
|
+
*/
|
|
5151
|
+
effectDag?: EffectDagProps;
|
|
5152
|
+
/**
|
|
5153
|
+
* Theme style references (`p:style`)
|
|
5154
|
+
*/
|
|
5155
|
+
styleRef?: ShapeStyleProps;
|
|
4114
5156
|
shape?: SHAPE_NAME;
|
|
4115
5157
|
/**
|
|
4116
5158
|
* Strikethrough style
|
|
@@ -4301,8 +5343,43 @@ declare interface TransparencyAnimationConfig extends BaseAnimationConfig {
|
|
|
4301
5343
|
|
|
4302
5344
|
declare type TransparencyLevel = '25%' | '50%' | '75%' | '100%' | number;
|
|
4303
5345
|
|
|
5346
|
+
/**
|
|
5347
|
+
* Coordinate number - either:
|
|
5348
|
+
* - Inches (0-n)
|
|
5349
|
+
* - Percentage (0-100)
|
|
5350
|
+
* - Unit-suffixed length (`in` / `cm` / `mm` / `pt`)
|
|
5351
|
+
*
|
|
5352
|
+
* @example 10.25 // coordinate in inches
|
|
5353
|
+
* @example '2.5cm' // coordinate with an explicit unit
|
|
5354
|
+
* @example '75%' // coordinate as percentage of slide size
|
|
5355
|
+
*/
|
|
5356
|
+
declare type UnitLength = `${number}in` | `${number}cm` | `${number}mm` | `${number}pt`;
|
|
5357
|
+
|
|
4304
5358
|
declare type VAlign = 'top' | 'middle' | 'bottom';
|
|
4305
5359
|
|
|
5360
|
+
/**
|
|
5361
|
+
* View properties stored in `ppt/viewProps.xml` (`p:viewPr`)
|
|
5362
|
+
* - unset values keep the literal prior versions wrote
|
|
5363
|
+
*/
|
|
5364
|
+
declare interface ViewProps {
|
|
5365
|
+
/** zoom percent in the normal slide view @default 136 */
|
|
5366
|
+
zoom?: number;
|
|
5367
|
+
/** snap objects to the grid @default false */
|
|
5368
|
+
snapToGrid?: boolean;
|
|
5369
|
+
/** snap objects to each other @default true */
|
|
5370
|
+
snapToObjects?: boolean;
|
|
5371
|
+
/** show drawing guides */
|
|
5372
|
+
showGuides?: boolean;
|
|
5373
|
+
/** show comments and ink markup */
|
|
5374
|
+
showComments?: boolean;
|
|
5375
|
+
/** grid spacing in inches @default 0.0833 (76200 EMU) */
|
|
5376
|
+
gridSpacing?: number;
|
|
5377
|
+
/** view PowerPoint opens the deck in */
|
|
5378
|
+
lastView?: 'sldView' | 'sldMasterView' | 'notesView' | 'handoutView' | 'notesMasterView' | 'outlineView' | 'sldSorterView' | 'sldThumbnailView';
|
|
5379
|
+
/** classic drawing guides (`p:guideLst`), positioned in inches */
|
|
5380
|
+
guides?: GuideProps[];
|
|
5381
|
+
}
|
|
5382
|
+
|
|
4306
5383
|
declare interface WheelAnimationConfig extends BaseAnimationConfig {
|
|
4307
5384
|
type: 'wheel' | 'wheelexit';
|
|
4308
5385
|
spokes?: 1 | 2 | 3 | 4 | 8;
|
|
@@ -4390,22 +5467,33 @@ export { AnimationPreset }
|
|
|
4390
5467
|
export { AnimationTrigger }
|
|
4391
5468
|
export { AnimationType }
|
|
4392
5469
|
export { AppearOnClickProps }
|
|
5470
|
+
export { AudioCdProps }
|
|
5471
|
+
export { AudioCdTimeProps }
|
|
4393
5472
|
export { BARCHART_COLORS }
|
|
4394
5473
|
export { BULLET_TYPES }
|
|
4395
5474
|
export { BackgroundProps }
|
|
4396
5475
|
export { BaseAnimationConfig }
|
|
4397
5476
|
export { BlurProps }
|
|
4398
5477
|
export { BorderProps }
|
|
5478
|
+
export { CHARTEX_LAYOUT_ID }
|
|
5479
|
+
export { CHARTEX_NAME }
|
|
4399
5480
|
export { CHART_NAME }
|
|
5481
|
+
export { CHART_STYLE }
|
|
4400
5482
|
export { CHART_TYPE }
|
|
4401
5483
|
export { CRLF }
|
|
5484
|
+
export { Cell3DProps }
|
|
5485
|
+
export { CellBevelProps }
|
|
5486
|
+
export { CellLightRigProps }
|
|
4402
5487
|
export { ChangesInfoProps }
|
|
4403
5488
|
export { ChartAxisTickMark }
|
|
5489
|
+
export { ChartColorStyleProps }
|
|
4404
5490
|
export { ChartLineCap }
|
|
4405
5491
|
export { ChartType }
|
|
4406
5492
|
export { ClassificationOutcome }
|
|
4407
5493
|
export { Color }
|
|
4408
5494
|
export { ColorAnimationConfig }
|
|
5495
|
+
export { ColorMapOverrideProps }
|
|
5496
|
+
export { ColorSchemeIndex }
|
|
4409
5497
|
export { CommentAuthorProps }
|
|
4410
5498
|
export { CommentAuthorRef }
|
|
4411
5499
|
export { CommentChangeBit }
|
|
@@ -4421,6 +5509,8 @@ export { CommentTaskEventKind }
|
|
|
4421
5509
|
export { CommentTaskEventProps }
|
|
4422
5510
|
export { CommentTaskProps }
|
|
4423
5511
|
export { CompressionLevel }
|
|
5512
|
+
export { ConnectionProps }
|
|
5513
|
+
export { ConnectorProps }
|
|
4424
5514
|
export { ContentPartBwMode }
|
|
4425
5515
|
export { ContentPartProps }
|
|
4426
5516
|
export { Coord }
|
|
@@ -4430,6 +5520,7 @@ export { DEF_CELL_MARGIN_IN }
|
|
|
4430
5520
|
export { DEF_CELL_MARGIN_PT }
|
|
4431
5521
|
export { DEF_CHART_BORDER }
|
|
4432
5522
|
export { DEF_CHART_GRIDLINE }
|
|
5523
|
+
export { DEF_COLOR_MAP }
|
|
4433
5524
|
export { DEF_FONT_COLOR }
|
|
4434
5525
|
export { DEF_FONT_SIZE }
|
|
4435
5526
|
export { DEF_FONT_TITLE_SIZE }
|
|
@@ -4445,11 +5536,14 @@ export { DataOrPathProps }
|
|
|
4445
5536
|
export { DefineLayoutProps }
|
|
4446
5537
|
export { DesignerProps }
|
|
4447
5538
|
export { DesignerTag }
|
|
5539
|
+
export { DocumentProps }
|
|
4448
5540
|
export { EMU }
|
|
5541
|
+
export { EffectDagProps }
|
|
4449
5542
|
export { EmbedFontType }
|
|
4450
5543
|
export { EmphasisAnimation }
|
|
4451
5544
|
export { EntranceAnimation }
|
|
4452
5545
|
export { ExitAnimation }
|
|
5546
|
+
export { FillOverlayProps }
|
|
4453
5547
|
export { FloatAnimationConfig }
|
|
4454
5548
|
export { FloatDirection }
|
|
4455
5549
|
export { FlyAnimationConfig }
|
|
@@ -4463,6 +5557,7 @@ export { GuideProps }
|
|
|
4463
5557
|
export { HAlign }
|
|
4464
5558
|
export { HexColor }
|
|
4465
5559
|
export { HyperlinkProps }
|
|
5560
|
+
export { HyperlinkSoundProps }
|
|
4466
5561
|
export { IChartAreaProps }
|
|
4467
5562
|
export { IChartMulti }
|
|
4468
5563
|
export { IChartOpts }
|
|
@@ -4473,6 +5568,7 @@ export { IChartPropsAxisVal }
|
|
|
4473
5568
|
export { IChartPropsBase }
|
|
4474
5569
|
export { IChartPropsChartBar }
|
|
4475
5570
|
export { IChartPropsChartDoughnut }
|
|
5571
|
+
export { IChartPropsChartEx }
|
|
4476
5572
|
export { IChartPropsChartLine }
|
|
4477
5573
|
export { IChartPropsChartPie }
|
|
4478
5574
|
export { IChartPropsChartRadar }
|
|
@@ -4489,9 +5585,12 @@ export { ISlideObject }
|
|
|
4489
5585
|
export { ISlideRel }
|
|
4490
5586
|
export { ISlideRelChart }
|
|
4491
5587
|
export { ISlideRelMedia }
|
|
5588
|
+
export { ImageAlphaEffectProps }
|
|
4492
5589
|
export { ImageProps }
|
|
5590
|
+
export { ImageRecolorProps }
|
|
4493
5591
|
export { InkProps }
|
|
4494
5592
|
export { JSZIP_OUTPUT_TYPE }
|
|
5593
|
+
export { KinsokuProps }
|
|
4495
5594
|
export { LAYOUT_IDX_SERIES_BASE }
|
|
4496
5595
|
export { LETTERS }
|
|
4497
5596
|
export { LINEH_MODIFIER }
|
|
@@ -4502,8 +5601,10 @@ export { MediaOnError }
|
|
|
4502
5601
|
export { MediaProps }
|
|
4503
5602
|
export { MediaType }
|
|
4504
5603
|
export { ModifiedThemeColor }
|
|
5604
|
+
export { NonVisualProps }
|
|
4505
5605
|
export { NvPrExtensionProps }
|
|
4506
5606
|
export { ONEPT }
|
|
5607
|
+
export { OOXML_CHARTEX }
|
|
4507
5608
|
export { ObjectNameProps }
|
|
4508
5609
|
export { ObjectOptions }
|
|
4509
5610
|
export { OfficeAppProps }
|
|
@@ -4517,6 +5618,7 @@ export { PIECHART_COLORS }
|
|
|
4517
5618
|
export { PLACEHOLDER_TYPE }
|
|
4518
5619
|
export { PLACEHOLDER_TYPES }
|
|
4519
5620
|
export { PathAnimation }
|
|
5621
|
+
export { PhotoAlbumProps }
|
|
4520
5622
|
export { PlaceholderProps }
|
|
4521
5623
|
export { PlaceholderTypeExt }
|
|
4522
5624
|
export { PositionProps }
|
|
@@ -4524,6 +5626,7 @@ export { PresLayout }
|
|
|
4524
5626
|
export { PresSlide }
|
|
4525
5627
|
export { PresentationProps }
|
|
4526
5628
|
export { PresetPatternValues }
|
|
5629
|
+
export { PrintProps }
|
|
4527
5630
|
export { REGEX_HEX_COLOR }
|
|
4528
5631
|
export { RandomBarsAnimationConfig }
|
|
4529
5632
|
export { ReflectionProps }
|
|
@@ -4546,18 +5649,24 @@ export { ShapeGradientFlip }
|
|
|
4546
5649
|
export { ShapeGradientProps }
|
|
4547
5650
|
export { ShapeGradientStopProps }
|
|
4548
5651
|
export { ShapeGradientTileRect }
|
|
5652
|
+
export { ShapeImageFillProps }
|
|
4549
5653
|
export { ShapeLineProps }
|
|
5654
|
+
export { ShapeLockProps }
|
|
4550
5655
|
export { ShapeMaskType }
|
|
4551
5656
|
export { ShapePatternProps }
|
|
4552
5657
|
export { ShapeProps }
|
|
5658
|
+
export { ShapeStyleProps }
|
|
4553
5659
|
export { ShapeType }
|
|
4554
5660
|
export { SlideBaseProps }
|
|
4555
5661
|
export { SlideLayout }
|
|
5662
|
+
export { SlideLayoutType }
|
|
4556
5663
|
export { SlideMasterProps }
|
|
4557
5664
|
export { SlideNumberProps }
|
|
4558
5665
|
export { SlideObjectAnimation }
|
|
4559
5666
|
export { SlideShowEvent }
|
|
5667
|
+
export { SlideShowProps }
|
|
4560
5668
|
export { SlideShowTriggerType }
|
|
5669
|
+
export { SlideSizeType }
|
|
4561
5670
|
export { SlideTransitionProps }
|
|
4562
5671
|
export { SoftEdgeProps }
|
|
4563
5672
|
export { SpinAmount }
|
|
@@ -4566,16 +5675,22 @@ export { SpinDirection }
|
|
|
4566
5675
|
export { SplitAnimationConfig }
|
|
4567
5676
|
export { SplitDirection }
|
|
4568
5677
|
export { SummaryZoomProps }
|
|
5678
|
+
export { TEXT_FIELD_TYPES }
|
|
4569
5679
|
export { TEXT_HALIGN }
|
|
4570
5680
|
export { TEXT_VALIGN }
|
|
5681
|
+
export { TILE_ALIGNMENTS }
|
|
4571
5682
|
export { TRANSITION_TYPE }
|
|
4572
5683
|
export { TableCell }
|
|
4573
5684
|
export { TableCellProps }
|
|
4574
5685
|
export { TableProps }
|
|
4575
5686
|
export { TableRow }
|
|
4576
5687
|
export { TableRowSlide }
|
|
5688
|
+
export { TableStyleBorderProps }
|
|
5689
|
+
export { TableStylePartProps }
|
|
5690
|
+
export { TableStyleProps }
|
|
4577
5691
|
export { TableToSlidesProps }
|
|
4578
5692
|
export { TextBaseProps }
|
|
5693
|
+
export { TextFieldType }
|
|
4579
5694
|
export { TextGlowProps }
|
|
4580
5695
|
export { TextProps }
|
|
4581
5696
|
export { TextPropsOptions }
|
|
@@ -4585,7 +5700,9 @@ export { ThemeProps }
|
|
|
4585
5700
|
export { TransitionType }
|
|
4586
5701
|
export { TransparencyAnimationConfig }
|
|
4587
5702
|
export { TransparencyLevel }
|
|
5703
|
+
export { UnitLength }
|
|
4588
5704
|
export { VAlign }
|
|
5705
|
+
export { ViewProps }
|
|
4589
5706
|
export { WRITE_OUTPUT_TYPE }
|
|
4590
5707
|
export { WheelAnimationConfig }
|
|
4591
5708
|
export { WipeAnimationConfig }
|
|
@@ -4596,6 +5713,8 @@ export { WriteProps }
|
|
|
4596
5713
|
export { ZoomAnimationConfig }
|
|
4597
5714
|
export { ZoomDirection }
|
|
4598
5715
|
export { ZoomProps }
|
|
5716
|
+
export { chartExRequiresNs }
|
|
5717
|
+
export { isChartexType }
|
|
4599
5718
|
|
|
4600
5719
|
export as namespace PptxGenJS
|
|
4601
5720
|
|
|
@@ -4615,22 +5734,33 @@ declare namespace PptxGenJS {
|
|
|
4615
5734
|
export { AnimationTrigger }
|
|
4616
5735
|
export { AnimationType }
|
|
4617
5736
|
export { AppearOnClickProps }
|
|
5737
|
+
export { AudioCdProps }
|
|
5738
|
+
export { AudioCdTimeProps }
|
|
4618
5739
|
export { BARCHART_COLORS }
|
|
4619
5740
|
export { BULLET_TYPES }
|
|
4620
5741
|
export { BackgroundProps }
|
|
4621
5742
|
export { BaseAnimationConfig }
|
|
4622
5743
|
export { BlurProps }
|
|
4623
5744
|
export { BorderProps }
|
|
5745
|
+
export { CHARTEX_LAYOUT_ID }
|
|
5746
|
+
export { CHARTEX_NAME }
|
|
4624
5747
|
export { CHART_NAME }
|
|
5748
|
+
export { CHART_STYLE }
|
|
4625
5749
|
export { CHART_TYPE }
|
|
4626
5750
|
export { CRLF }
|
|
5751
|
+
export { Cell3DProps }
|
|
5752
|
+
export { CellBevelProps }
|
|
5753
|
+
export { CellLightRigProps }
|
|
4627
5754
|
export { ChangesInfoProps }
|
|
4628
5755
|
export { ChartAxisTickMark }
|
|
5756
|
+
export { ChartColorStyleProps }
|
|
4629
5757
|
export { ChartLineCap }
|
|
4630
5758
|
export { ChartType }
|
|
4631
5759
|
export { ClassificationOutcome }
|
|
4632
5760
|
export { Color }
|
|
4633
5761
|
export { ColorAnimationConfig }
|
|
5762
|
+
export { ColorMapOverrideProps }
|
|
5763
|
+
export { ColorSchemeIndex }
|
|
4634
5764
|
export { CommentAuthorProps }
|
|
4635
5765
|
export { CommentAuthorRef }
|
|
4636
5766
|
export { CommentChangeBit }
|
|
@@ -4646,6 +5776,8 @@ declare namespace PptxGenJS {
|
|
|
4646
5776
|
export { CommentTaskEventProps }
|
|
4647
5777
|
export { CommentTaskProps }
|
|
4648
5778
|
export { CompressionLevel }
|
|
5779
|
+
export { ConnectionProps }
|
|
5780
|
+
export { ConnectorProps }
|
|
4649
5781
|
export { ContentPartBwMode }
|
|
4650
5782
|
export { ContentPartProps }
|
|
4651
5783
|
export { Coord }
|
|
@@ -4655,6 +5787,7 @@ declare namespace PptxGenJS {
|
|
|
4655
5787
|
export { DEF_CELL_MARGIN_PT }
|
|
4656
5788
|
export { DEF_CHART_BORDER }
|
|
4657
5789
|
export { DEF_CHART_GRIDLINE }
|
|
5790
|
+
export { DEF_COLOR_MAP }
|
|
4658
5791
|
export { DEF_FONT_COLOR }
|
|
4659
5792
|
export { DEF_FONT_SIZE }
|
|
4660
5793
|
export { DEF_FONT_TITLE_SIZE }
|
|
@@ -4670,11 +5803,14 @@ declare namespace PptxGenJS {
|
|
|
4670
5803
|
export { DefineLayoutProps }
|
|
4671
5804
|
export { DesignerProps }
|
|
4672
5805
|
export { DesignerTag }
|
|
5806
|
+
export { DocumentProps }
|
|
4673
5807
|
export { EMU }
|
|
5808
|
+
export { EffectDagProps }
|
|
4674
5809
|
export { EmbedFontType }
|
|
4675
5810
|
export { EmphasisAnimation }
|
|
4676
5811
|
export { EntranceAnimation }
|
|
4677
5812
|
export { ExitAnimation }
|
|
5813
|
+
export { FillOverlayProps }
|
|
4678
5814
|
export { FloatAnimationConfig }
|
|
4679
5815
|
export { FloatDirection }
|
|
4680
5816
|
export { FlyAnimationConfig }
|
|
@@ -4688,6 +5824,7 @@ declare namespace PptxGenJS {
|
|
|
4688
5824
|
export { HAlign }
|
|
4689
5825
|
export { HexColor }
|
|
4690
5826
|
export { HyperlinkProps }
|
|
5827
|
+
export { HyperlinkSoundProps }
|
|
4691
5828
|
export { IChartAreaProps }
|
|
4692
5829
|
export { IChartMulti }
|
|
4693
5830
|
export { IChartOpts }
|
|
@@ -4698,6 +5835,7 @@ declare namespace PptxGenJS {
|
|
|
4698
5835
|
export { IChartPropsBase }
|
|
4699
5836
|
export { IChartPropsChartBar }
|
|
4700
5837
|
export { IChartPropsChartDoughnut }
|
|
5838
|
+
export { IChartPropsChartEx }
|
|
4701
5839
|
export { IChartPropsChartLine }
|
|
4702
5840
|
export { IChartPropsChartPie }
|
|
4703
5841
|
export { IChartPropsChartRadar }
|
|
@@ -4714,9 +5852,12 @@ declare namespace PptxGenJS {
|
|
|
4714
5852
|
export { ISlideRel }
|
|
4715
5853
|
export { ISlideRelChart }
|
|
4716
5854
|
export { ISlideRelMedia }
|
|
5855
|
+
export { ImageAlphaEffectProps }
|
|
4717
5856
|
export { ImageProps }
|
|
5857
|
+
export { ImageRecolorProps }
|
|
4718
5858
|
export { InkProps }
|
|
4719
5859
|
export { JSZIP_OUTPUT_TYPE }
|
|
5860
|
+
export { KinsokuProps }
|
|
4720
5861
|
export { LAYOUT_IDX_SERIES_BASE }
|
|
4721
5862
|
export { LETTERS }
|
|
4722
5863
|
export { LINEH_MODIFIER }
|
|
@@ -4727,8 +5868,10 @@ declare namespace PptxGenJS {
|
|
|
4727
5868
|
export { MediaProps }
|
|
4728
5869
|
export { MediaType }
|
|
4729
5870
|
export { ModifiedThemeColor }
|
|
5871
|
+
export { NonVisualProps }
|
|
4730
5872
|
export { NvPrExtensionProps }
|
|
4731
5873
|
export { ONEPT }
|
|
5874
|
+
export { OOXML_CHARTEX }
|
|
4732
5875
|
export { ObjectNameProps }
|
|
4733
5876
|
export { ObjectOptions }
|
|
4734
5877
|
export { OfficeAppProps }
|
|
@@ -4742,6 +5885,7 @@ declare namespace PptxGenJS {
|
|
|
4742
5885
|
export { PLACEHOLDER_TYPE }
|
|
4743
5886
|
export { PLACEHOLDER_TYPES }
|
|
4744
5887
|
export { PathAnimation }
|
|
5888
|
+
export { PhotoAlbumProps }
|
|
4745
5889
|
export { PlaceholderProps }
|
|
4746
5890
|
export { PlaceholderTypeExt }
|
|
4747
5891
|
export { PositionProps }
|
|
@@ -4749,6 +5893,7 @@ declare namespace PptxGenJS {
|
|
|
4749
5893
|
export { PresSlide }
|
|
4750
5894
|
export { PresentationProps }
|
|
4751
5895
|
export { PresetPatternValues }
|
|
5896
|
+
export { PrintProps }
|
|
4752
5897
|
export { REGEX_HEX_COLOR }
|
|
4753
5898
|
export { RandomBarsAnimationConfig }
|
|
4754
5899
|
export { ReflectionProps }
|
|
@@ -4771,18 +5916,24 @@ declare namespace PptxGenJS {
|
|
|
4771
5916
|
export { ShapeGradientProps }
|
|
4772
5917
|
export { ShapeGradientStopProps }
|
|
4773
5918
|
export { ShapeGradientTileRect }
|
|
5919
|
+
export { ShapeImageFillProps }
|
|
4774
5920
|
export { ShapeLineProps }
|
|
5921
|
+
export { ShapeLockProps }
|
|
4775
5922
|
export { ShapeMaskType }
|
|
4776
5923
|
export { ShapePatternProps }
|
|
4777
5924
|
export { ShapeProps }
|
|
5925
|
+
export { ShapeStyleProps }
|
|
4778
5926
|
export { ShapeType }
|
|
4779
5927
|
export { SlideBaseProps }
|
|
4780
5928
|
export { SlideLayout }
|
|
5929
|
+
export { SlideLayoutType }
|
|
4781
5930
|
export { SlideMasterProps }
|
|
4782
5931
|
export { SlideNumberProps }
|
|
4783
5932
|
export { SlideObjectAnimation }
|
|
4784
5933
|
export { SlideShowEvent }
|
|
5934
|
+
export { SlideShowProps }
|
|
4785
5935
|
export { SlideShowTriggerType }
|
|
5936
|
+
export { SlideSizeType }
|
|
4786
5937
|
export { SlideTransitionProps }
|
|
4787
5938
|
export { SoftEdgeProps }
|
|
4788
5939
|
export { SpinAmount }
|
|
@@ -4791,16 +5942,22 @@ declare namespace PptxGenJS {
|
|
|
4791
5942
|
export { SplitAnimationConfig }
|
|
4792
5943
|
export { SplitDirection }
|
|
4793
5944
|
export { SummaryZoomProps }
|
|
5945
|
+
export { TEXT_FIELD_TYPES }
|
|
4794
5946
|
export { TEXT_HALIGN }
|
|
4795
5947
|
export { TEXT_VALIGN }
|
|
5948
|
+
export { TILE_ALIGNMENTS }
|
|
4796
5949
|
export { TRANSITION_TYPE }
|
|
4797
5950
|
export { TableCell }
|
|
4798
5951
|
export { TableCellProps }
|
|
4799
5952
|
export { TableProps }
|
|
4800
5953
|
export { TableRow }
|
|
4801
5954
|
export { TableRowSlide }
|
|
5955
|
+
export { TableStyleBorderProps }
|
|
5956
|
+
export { TableStylePartProps }
|
|
5957
|
+
export { TableStyleProps }
|
|
4802
5958
|
export { TableToSlidesProps }
|
|
4803
5959
|
export { TextBaseProps }
|
|
5960
|
+
export { TextFieldType }
|
|
4804
5961
|
export { TextGlowProps }
|
|
4805
5962
|
export { TextProps }
|
|
4806
5963
|
export { TextPropsOptions }
|
|
@@ -4810,7 +5967,9 @@ declare namespace PptxGenJS {
|
|
|
4810
5967
|
export { TransitionType }
|
|
4811
5968
|
export { TransparencyAnimationConfig }
|
|
4812
5969
|
export { TransparencyLevel }
|
|
5970
|
+
export { UnitLength }
|
|
4813
5971
|
export { VAlign }
|
|
5972
|
+
export { ViewProps }
|
|
4814
5973
|
export { WRITE_OUTPUT_TYPE }
|
|
4815
5974
|
export { WheelAnimationConfig }
|
|
4816
5975
|
export { WipeAnimationConfig }
|
|
@@ -4821,4 +5980,6 @@ declare namespace PptxGenJS {
|
|
|
4821
5980
|
export { ZoomAnimationConfig }
|
|
4822
5981
|
export { ZoomDirection }
|
|
4823
5982
|
export { ZoomProps }
|
|
5983
|
+
export { chartExRequiresNs }
|
|
5984
|
+
export { isChartexType }
|
|
4824
5985
|
}
|