pptxgenjs-plus 4.1.20 → 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 -56
- package/dist/pptxgen.cjs.js +1800 -256
- package/dist/pptxgen.es.js +1795 -255
- package/dist/pptxgen.min.js +63 -51
- package/package.json +1 -1
- package/types/index.d.ts +1120 -21
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[];
|
|
@@ -1228,7 +1658,7 @@ declare interface ISlideRel {
|
|
|
1228
1658
|
}
|
|
1229
1659
|
|
|
1230
1660
|
declare interface ISlideRelChart extends OptsChartData {
|
|
1231
|
-
type: CHART_NAME | IChartMulti[];
|
|
1661
|
+
type: CHART_NAME | CHARTEX_NAME | IChartMulti[];
|
|
1232
1662
|
opts: IChartOptsLib;
|
|
1233
1663
|
data: IOptsChartData[];
|
|
1234
1664
|
rId: number;
|
|
@@ -1245,6 +1675,12 @@ declare interface ISlideRelMedia {
|
|
|
1245
1675
|
data?: string | ArrayBuffer;
|
|
1246
1676
|
/** used to indicate that a media file has already been read/enocded (PERF) */
|
|
1247
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;
|
|
1248
1684
|
isSvgPng?: boolean;
|
|
1249
1685
|
/** SVG path recolor (Martin-N) — applied when encoding SVG media */
|
|
1250
1686
|
fill?: ShapeFillProps;
|
|
@@ -1258,6 +1694,18 @@ declare interface ISlideRelMedia {
|
|
|
1258
1694
|
|
|
1259
1695
|
declare type JSZIP_OUTPUT_TYPE = 'arraybuffer' | 'base64' | 'binarystring' | 'blob' | 'nodebuffer' | 'uint8array';
|
|
1260
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
|
+
|
|
1261
1709
|
/** A laser-pointer sample. MS-PPTX §2.3.3.9 `CT_LaserTracePoint`. `t` is ms; `x`/`y` are EMU. */
|
|
1262
1710
|
declare interface LaserTracePoint {
|
|
1263
1711
|
/** Time from the start of the slide timeline, in milliseconds. */
|
|
@@ -1381,9 +1829,29 @@ declare interface MediaProps extends PositionProps, DataOrPathProps, ObjectNameP
|
|
|
1381
1829
|
* @default false
|
|
1382
1830
|
*/
|
|
1383
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;
|
|
1384
1852
|
}
|
|
1385
1853
|
|
|
1386
|
-
declare type MediaType = 'audio' | 'online' | 'video';
|
|
1854
|
+
declare type MediaType = 'audio' | 'online' | 'video' | 'audioCd' | 'wav';
|
|
1387
1855
|
|
|
1388
1856
|
/**
|
|
1389
1857
|
* Theme/hex color with DrawingML color transforms (`a:tint`, `a:shade`, `a:lumMod`, …)
|
|
@@ -1427,6 +1895,27 @@ declare interface ModifiedThemeColor {
|
|
|
1427
1895
|
gamma?: boolean;
|
|
1428
1896
|
}
|
|
1429
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
|
+
|
|
1430
1919
|
/**
|
|
1431
1920
|
* Opt-in MS-PPTX nvPr extensions: designElem (§2.2.17), classification (§2.2.18),
|
|
1432
1921
|
* designPr (§2.2.19), and phTypeExt (§2.22). Classification is never defaulted.
|
|
@@ -1454,7 +1943,7 @@ declare interface NvPrExtensionProps {
|
|
|
1454
1943
|
phTypeExt?: PlaceholderTypeExt;
|
|
1455
1944
|
}
|
|
1456
1945
|
|
|
1457
|
-
declare interface ObjectNameProps {
|
|
1946
|
+
declare interface ObjectNameProps extends NonVisualProps {
|
|
1458
1947
|
/**
|
|
1459
1948
|
* Object name
|
|
1460
1949
|
* - used instead of default "Object N" name
|
|
@@ -1483,6 +1972,12 @@ declare interface ObjectNameProps {
|
|
|
1483
1972
|
declare interface ObjectOptions extends ImageProps, PositionProps, ShapeProps, TableCellProps, TextPropsOptions {
|
|
1484
1973
|
_placeholderIdx?: number;
|
|
1485
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;
|
|
1486
1981
|
/** image added without `w`/`h`: size it from the image itself during export @internal */
|
|
1487
1982
|
_sizeFromImage?: boolean;
|
|
1488
1983
|
/** Caller set this axis; placeholder geometry must not overwrite it. */
|
|
@@ -1512,6 +2007,14 @@ declare interface ObjectOptions extends ImageProps, PositionProps, ShapeProps, T
|
|
|
1512
2007
|
loop?: boolean;
|
|
1513
2008
|
fullScreen?: boolean;
|
|
1514
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;
|
|
1515
2018
|
returnToParent?: boolean;
|
|
1516
2019
|
showBg?: boolean;
|
|
1517
2020
|
transitionDur?: number;
|
|
@@ -1660,6 +2163,20 @@ declare enum OutputType {
|
|
|
1660
2163
|
|
|
1661
2164
|
declare type PathAnimation = 'pathdown' | 'patharcdown' | 'pathturnright' | 'pathcircle' | 'pathzigzag';
|
|
1662
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
|
+
|
|
1663
2180
|
declare type PLACEHOLDER_TYPE = 'title' | 'body' | 'ctrTitle' | 'subTitle' | 'dt' | 'sldNum' | 'ftr' | 'hdr' | 'obj' | 'chart' | 'tbl' | 'clipArt' | 'dgm' | 'media' | 'sldImg' | 'pic';
|
|
1664
2181
|
|
|
1665
2182
|
declare interface PlaceholderProps extends PositionProps, TextBaseProps, NvPrExtensionProps {
|
|
@@ -1673,6 +2190,22 @@ declare interface PlaceholderProps extends PositionProps, TextBaseProps, NvPrExt
|
|
|
1673
2190
|
* Placeholder background fill. Kept when a slide inherits layout defaults (caller fill wins).
|
|
1674
2191
|
*/
|
|
1675
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;
|
|
1676
2209
|
}
|
|
1677
2210
|
|
|
1678
2211
|
/** Modern placeholder type extension (`CT_PlaceholderTypeACB`, MS-PPTX §2.22). */
|
|
@@ -1792,6 +2325,10 @@ declare class PptxGenJS implements IPresentationProps {
|
|
|
1792
2325
|
private _rtlMode;
|
|
1793
2326
|
set rtlMode(value: boolean);
|
|
1794
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;
|
|
1795
2332
|
/**
|
|
1796
2333
|
* Starting slide number (`p:presentation@firstSlideNum`)
|
|
1797
2334
|
* @default 1
|
|
@@ -1848,6 +2385,20 @@ declare class PptxGenJS implements IPresentationProps {
|
|
|
1848
2385
|
* @example pptx.notesGuides = [{ orient: 'horz', pos: 2 }]
|
|
1849
2386
|
*/
|
|
1850
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;
|
|
1851
2402
|
/**
|
|
1852
2403
|
* Modern comment authors (MS-PPTX §2.16). Emitted to `ppt/authors.xml`.
|
|
1853
2404
|
* Auto-populated from slide `addComment` author names if left empty.
|
|
@@ -2048,6 +2599,11 @@ declare interface PresentationProps {
|
|
|
2048
2599
|
* @default false
|
|
2049
2600
|
*/
|
|
2050
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[];
|
|
2051
2607
|
/**
|
|
2052
2608
|
* Starting slide number written to `ppt/presentation.xml` (`firstSlideNum`)
|
|
2053
2609
|
* - PowerPoint: Design > Slide Size > Custom Slide Size > Number slides from
|
|
@@ -2128,6 +2684,35 @@ declare interface PresentationProps {
|
|
|
2128
2684
|
subject: string;
|
|
2129
2685
|
theme?: ThemeProps;
|
|
2130
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;
|
|
2131
2716
|
}
|
|
2132
2717
|
|
|
2133
2718
|
/**
|
|
@@ -2153,7 +2738,7 @@ declare interface PresSlide extends SlideBaseProps {
|
|
|
2153
2738
|
_rId: number;
|
|
2154
2739
|
_slideLayout: SlideLayout;
|
|
2155
2740
|
_slideId: number;
|
|
2156
|
-
addChart: (type: CHART_NAME | IChartMulti[], data: IOptsChartData[], options?: IChartOpts) => PresSlide;
|
|
2741
|
+
addChart: (type: CHART_NAME | CHARTEX_NAME | IChartMulti[], data: IOptsChartData[], options?: IChartOpts) => PresSlide;
|
|
2157
2742
|
addImage: (options: ImageProps) => PresSlide;
|
|
2158
2743
|
addMedia: (options: MediaProps) => PresSlide;
|
|
2159
2744
|
addNotes: (notes: string) => PresSlide;
|
|
@@ -2165,6 +2750,11 @@ declare interface PresSlide extends SlideBaseProps {
|
|
|
2165
2750
|
* Holds shapes, text, images, and nested groups — not tables, charts, or media.
|
|
2166
2751
|
*/
|
|
2167
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;
|
|
2168
2758
|
/**
|
|
2169
2759
|
* WordArt: text with a warp (`presetShape` / `a:prstTxWarp`) and/or a gradient run fill.
|
|
2170
2760
|
* Defaults to centered `textNoShape` (no transform) unless `options` override them.
|
|
@@ -2280,6 +2870,22 @@ declare interface PresSlide extends SlideBaseProps {
|
|
|
2280
2870
|
designTags?: DesignerTag[];
|
|
2281
2871
|
}
|
|
2282
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
|
+
|
|
2283
2889
|
declare interface RandomBarsAnimationConfig extends BaseAnimationConfig {
|
|
2284
2890
|
type: 'randombars' | 'randombarsexit';
|
|
2285
2891
|
direction?: 'horizontal' | 'vertical';
|
|
@@ -2398,7 +3004,12 @@ declare interface ShadowProps {
|
|
|
2398
3004
|
* shadow type
|
|
2399
3005
|
* @default 'none'
|
|
2400
3006
|
*/
|
|
2401
|
-
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';
|
|
2402
3013
|
/**
|
|
2403
3014
|
* opacity (percent)
|
|
2404
3015
|
* - range: 0.0-1.0
|
|
@@ -2435,7 +3046,7 @@ declare interface ShadowProps {
|
|
|
2435
3046
|
rotateWithShape?: boolean;
|
|
2436
3047
|
}
|
|
2437
3048
|
|
|
2438
|
-
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';
|
|
2439
3050
|
|
|
2440
3051
|
declare enum SHAPE_TYPE {
|
|
2441
3052
|
ACTION_BUTTON_BACK_OR_PREVIOUS = "actionButtonBackPrevious",
|
|
@@ -2453,6 +3064,10 @@ declare enum SHAPE_TYPE {
|
|
|
2453
3064
|
ARC = "arc",
|
|
2454
3065
|
BALLOON = "wedgeRoundRectCallout",
|
|
2455
3066
|
BENT_ARROW = "bentArrow",
|
|
3067
|
+
BENT_CONNECTOR_2 = "bentConnector2",
|
|
3068
|
+
BENT_CONNECTOR_3 = "bentConnector3",
|
|
3069
|
+
BENT_CONNECTOR_4 = "bentConnector4",
|
|
3070
|
+
BENT_CONNECTOR_5 = "bentConnector5",
|
|
2456
3071
|
BENT_UP_ARROW = "bentUpArrow",
|
|
2457
3072
|
BEVEL = "bevel",
|
|
2458
3073
|
BLOCK_ARC = "blockArc",
|
|
@@ -2469,6 +3084,10 @@ declare enum SHAPE_TYPE {
|
|
|
2469
3084
|
CORNER_TABS = "cornerTabs",
|
|
2470
3085
|
CROSS = "plus",
|
|
2471
3086
|
CUBE = "cube",
|
|
3087
|
+
CURVED_CONNECTOR_2 = "curvedConnector2",
|
|
3088
|
+
CURVED_CONNECTOR_3 = "curvedConnector3",
|
|
3089
|
+
CURVED_CONNECTOR_4 = "curvedConnector4",
|
|
3090
|
+
CURVED_CONNECTOR_5 = "curvedConnector5",
|
|
2472
3091
|
CURVED_DOWN_ARROW = "curvedDownArrow",
|
|
2473
3092
|
CURVED_DOWN_RIBBON = "ellipseRibbon",
|
|
2474
3093
|
CURVED_LEFT_ARROW = "curvedLeftArrow",
|
|
@@ -2609,6 +3228,7 @@ declare enum SHAPE_TYPE {
|
|
|
2609
3228
|
STAR_6_POINT = "star6",
|
|
2610
3229
|
STAR_7_POINT = "star7",
|
|
2611
3230
|
STAR_8_POINT = "star8",
|
|
3231
|
+
STRAIGHT_CONNECTOR_1 = "straightConnector1",
|
|
2612
3232
|
STRIPED_RIGHT_ARROW = "stripedRightArrow",
|
|
2613
3233
|
SUN = "sun",
|
|
2614
3234
|
SWOOSH_ARROW = "swooshArrow",
|
|
@@ -2654,8 +3274,10 @@ declare interface ShapeFillProps {
|
|
|
2654
3274
|
* - `'gradient'` — nested definition via `gradient` (linear + radial)
|
|
2655
3275
|
* - `'linearGradient'` — flat sambauers/gradients API (`stops`/`angle`/… on this object)
|
|
2656
3276
|
* - `'pattern'` — pattern fill via `pattern`
|
|
3277
|
+
* - `'image'` — picture fill via `image` (`a:blipFill`)
|
|
3278
|
+
* - `'group'` — inherit the parent group's fill (`a:grpFill`)
|
|
2657
3279
|
*/
|
|
2658
|
-
type?: 'none' | 'solid' | 'gradient' | 'linearGradient' | 'pattern';
|
|
3280
|
+
type?: 'none' | 'solid' | 'gradient' | 'linearGradient' | 'pattern' | 'image' | 'group';
|
|
2659
3281
|
/**
|
|
2660
3282
|
* Gradient fill definition
|
|
2661
3283
|
* - required when `type` is `'gradient'` (ignored otherwise)
|
|
@@ -2668,6 +3290,14 @@ declare interface ShapeFillProps {
|
|
|
2668
3290
|
* @example { type:'pattern', pattern:{ prst:'ltHorz', color:'000000', bgColor:'FFFFFF' } }
|
|
2669
3291
|
*/
|
|
2670
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;
|
|
2671
3301
|
/**
|
|
2672
3302
|
* Flat linear-gradient stops (`type: 'linearGradient'`, sambauers/gradients)
|
|
2673
3303
|
* @example { type:'linearGradient', angle:45, stops:[{position:0,color:'000000'},{position:100,color:'333333'}] }
|
|
@@ -2785,6 +3415,46 @@ declare interface ShapeGradientTileRect {
|
|
|
2785
3415
|
l?: number;
|
|
2786
3416
|
}
|
|
2787
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
|
+
|
|
2788
3458
|
declare interface ShapeLineProps extends ShapeFillProps {
|
|
2789
3459
|
/**
|
|
2790
3460
|
* Line width (pt)
|
|
@@ -2839,6 +3509,10 @@ declare interface ShapeLineProps extends ShapeFillProps {
|
|
|
2839
3509
|
* @example [50000] // mid bend for bentConnector3
|
|
2840
3510
|
*/
|
|
2841
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;
|
|
2842
3516
|
/**
|
|
2843
3517
|
* Dash type
|
|
2844
3518
|
* @deprecated v3.3.0 - use `dashType`
|
|
@@ -2864,6 +3538,39 @@ declare interface ShapeLineProps extends ShapeFillProps {
|
|
|
2864
3538
|
size?: number;
|
|
2865
3539
|
}
|
|
2866
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
|
+
|
|
2867
3574
|
declare type ShapeMaskType = 'circle' | 'box' | 'diamond' | 'plus';
|
|
2868
3575
|
|
|
2869
3576
|
declare interface ShapePatternProps {
|
|
@@ -2930,6 +3637,12 @@ declare interface ShapeProps extends PositionProps, ObjectNameProps, AppearOnCli
|
|
|
2930
3637
|
* @example hyperlink: { url: "https://github.com/gitbrent/pptxgenjs", tooltip: "Visit Homepage" },
|
|
2931
3638
|
*/
|
|
2932
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;
|
|
2933
3646
|
/**
|
|
2934
3647
|
* Line options
|
|
2935
3648
|
*/
|
|
@@ -3025,6 +3738,20 @@ declare interface ShapeProps extends PositionProps, ObjectNameProps, AppearOnCli
|
|
|
3025
3738
|
* Blur effect (`a:blur` in shape `effectLst`)
|
|
3026
3739
|
*/
|
|
3027
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;
|
|
3028
3755
|
/**
|
|
3029
3756
|
* @deprecated v3.3.0
|
|
3030
3757
|
*/
|
|
@@ -3055,6 +3782,36 @@ declare interface ShapeProps extends PositionProps, ObjectNameProps, AppearOnCli
|
|
|
3055
3782
|
animation?: string | AnimationConfig;
|
|
3056
3783
|
}
|
|
3057
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
|
+
|
|
3058
3815
|
declare enum ShapeType {
|
|
3059
3816
|
'accentBorderCallout1' = "accentBorderCallout1",
|
|
3060
3817
|
'accentBorderCallout2' = "accentBorderCallout2",
|
|
@@ -3080,6 +3837,10 @@ declare enum ShapeType {
|
|
|
3080
3837
|
'actionButtonSound' = "actionButtonSound",
|
|
3081
3838
|
'arc' = "arc",
|
|
3082
3839
|
'bentArrow' = "bentArrow",
|
|
3840
|
+
'bentConnector2' = "bentConnector2",
|
|
3841
|
+
'bentConnector3' = "bentConnector3",
|
|
3842
|
+
'bentConnector4' = "bentConnector4",
|
|
3843
|
+
'bentConnector5' = "bentConnector5",
|
|
3083
3844
|
'bentUpArrow' = "bentUpArrow",
|
|
3084
3845
|
'bevel' = "bevel",
|
|
3085
3846
|
'blockArc' = "blockArc",
|
|
@@ -3103,6 +3864,10 @@ declare enum ShapeType {
|
|
|
3103
3864
|
'corner' = "corner",
|
|
3104
3865
|
'cornerTabs' = "cornerTabs",
|
|
3105
3866
|
'cube' = "cube",
|
|
3867
|
+
'curvedConnector2' = "curvedConnector2",
|
|
3868
|
+
'curvedConnector3' = "curvedConnector3",
|
|
3869
|
+
'curvedConnector4' = "curvedConnector4",
|
|
3870
|
+
'curvedConnector5' = "curvedConnector5",
|
|
3106
3871
|
'curvedDownArrow' = "curvedDownArrow",
|
|
3107
3872
|
'curvedLeftArrow' = "curvedLeftArrow",
|
|
3108
3873
|
'curvedRightArrow' = "curvedRightArrow",
|
|
@@ -3223,6 +3988,7 @@ declare enum ShapeType {
|
|
|
3223
3988
|
'star6' = "star6",
|
|
3224
3989
|
'star7' = "star7",
|
|
3225
3990
|
'star8' = "star8",
|
|
3991
|
+
'straightConnector1' = "straightConnector1",
|
|
3226
3992
|
'stripedRightArrow' = "stripedRightArrow",
|
|
3227
3993
|
'sun' = "sun",
|
|
3228
3994
|
'swooshArrow' = "swooshArrow",
|
|
@@ -3278,6 +4044,14 @@ declare interface SlideBaseProps {
|
|
|
3278
4044
|
}
|
|
3279
4045
|
|
|
3280
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;
|
|
3281
4055
|
_slide?: {
|
|
3282
4056
|
_bkgdImgRid?: number;
|
|
3283
4057
|
back: string;
|
|
@@ -3286,11 +4060,57 @@ declare interface SlideLayout extends SlideBaseProps {
|
|
|
3286
4060
|
};
|
|
3287
4061
|
}
|
|
3288
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
|
+
|
|
3289
4069
|
declare interface SlideMasterProps {
|
|
3290
4070
|
/**
|
|
3291
4071
|
* Unique name for this master
|
|
3292
4072
|
*/
|
|
3293
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;
|
|
3294
4114
|
background?: BackgroundProps;
|
|
3295
4115
|
margin?: Margin;
|
|
3296
4116
|
slideNumber?: SlideNumberProps;
|
|
@@ -3402,6 +4222,11 @@ declare interface SlideShowProps {
|
|
|
3402
4222
|
/** ECMA-376 `ST_TLTriggerEvent` values used by `p14:triggerEvt`. */
|
|
3403
4223
|
declare type SlideShowTriggerType = 'onBegin' | 'onEnd' | 'begin' | 'end' | 'onClick' | 'onDblClick' | 'onMouseOver' | 'onMouseOut' | 'onNext' | 'onPrev' | 'onStopAudio';
|
|
3404
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
|
+
|
|
3405
4230
|
/**
|
|
3406
4231
|
* Slide transition options. ECMA-376 §19.3.1.50 `CT_SlideTransition`.
|
|
3407
4232
|
* Modern (MS-PPTX) transition types are emitted inside `<mc:AlternateContent>` with a base-type fallback.
|
|
@@ -3532,14 +4357,39 @@ declare interface TableCellProps extends TextBaseProps {
|
|
|
3532
4357
|
* @example 0.5 // tables are taller (increases the number of lines that can fit on a given slide)
|
|
3533
4358
|
*/
|
|
3534
4359
|
autoPageLineWeight?: number;
|
|
4360
|
+
/**
|
|
4361
|
+
* Whether text is centered both horizontally and vertically in the cell
|
|
4362
|
+
* @default false
|
|
4363
|
+
*/
|
|
4364
|
+
anchorCtr?: boolean;
|
|
3535
4365
|
/**
|
|
3536
4366
|
* Cell border
|
|
3537
4367
|
*/
|
|
3538
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;
|
|
3539
4384
|
/**
|
|
3540
4385
|
* Cell colspan
|
|
3541
4386
|
*/
|
|
3542
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';
|
|
3543
4393
|
/**
|
|
3544
4394
|
* Fill color
|
|
3545
4395
|
* @example { color:'FF0000' } // hex color (red)
|
|
@@ -3550,6 +4400,12 @@ declare interface TableCellProps extends TextBaseProps {
|
|
|
3550
4400
|
/** @internal rId of a cell `a:blipFill` image (registered at addTable) */
|
|
3551
4401
|
_fillRid?: number;
|
|
3552
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;
|
|
3553
4409
|
/**
|
|
3554
4410
|
* Cell margin (inches)
|
|
3555
4411
|
* @default 0
|
|
@@ -3681,7 +4537,7 @@ declare interface TableProps extends PositionProps, TextBaseProps, ObjectNamePro
|
|
|
3681
4537
|
*/
|
|
3682
4538
|
rtlMode?: boolean;
|
|
3683
4539
|
/**
|
|
3684
|
-
* 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`)
|
|
3685
4541
|
* - required for `bandRow`/`firstRow`/etc. to have a visible effect
|
|
3686
4542
|
* @example '{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}' // "Medium Style 2 - Accent 1"
|
|
3687
4543
|
*/
|
|
@@ -3706,6 +4562,71 @@ declare interface TableProps extends PositionProps, TextBaseProps, ObjectNamePro
|
|
|
3706
4562
|
|
|
3707
4563
|
declare type TableRow = TableCell[];
|
|
3708
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
|
+
|
|
3709
4630
|
declare interface TableToSlidesProps extends TableProps {
|
|
3710
4631
|
_arrObjTabHeadRows?: TableRow[];
|
|
3711
4632
|
/**
|
|
@@ -3852,6 +4773,28 @@ declare interface TextBaseProps {
|
|
|
3852
4773
|
* @example pptx.SchemeColor.accent1
|
|
3853
4774
|
*/
|
|
3854
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;
|
|
3855
4798
|
/**
|
|
3856
4799
|
* Indentation (space between bullet and text) (points)
|
|
3857
4800
|
* @since v3.3.0
|
|
@@ -3991,6 +4934,11 @@ declare interface TextBaseProps {
|
|
|
3991
4934
|
valign?: VAlign;
|
|
3992
4935
|
}
|
|
3993
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
|
+
|
|
3994
4942
|
declare interface TextGlowProps {
|
|
3995
4943
|
/**
|
|
3996
4944
|
* Border color (hex format)
|
|
@@ -4096,6 +5044,12 @@ declare interface TextPropsOptions extends PositionProps, DataOrPathProps, TextB
|
|
|
4096
5044
|
flipV?: boolean;
|
|
4097
5045
|
glow?: TextGlowProps;
|
|
4098
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;
|
|
4099
5053
|
indentLevel?: number;
|
|
4100
5054
|
isTextBox?: boolean;
|
|
4101
5055
|
line?: ShapeLineProps;
|
|
@@ -4158,6 +5112,22 @@ declare interface TextPropsOptions extends PositionProps, DataOrPathProps, TextB
|
|
|
4158
5112
|
* @default false
|
|
4159
5113
|
*/
|
|
4160
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;
|
|
4161
5131
|
shadow?: ShadowProps;
|
|
4162
5132
|
/**
|
|
4163
5133
|
* Soft-edge effect (`a:softEdge` on the text shape)
|
|
@@ -4171,6 +5141,18 @@ declare interface TextPropsOptions extends PositionProps, DataOrPathProps, TextB
|
|
|
4171
5141
|
* Blur effect (`a:blur` on the text shape)
|
|
4172
5142
|
*/
|
|
4173
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;
|
|
4174
5156
|
shape?: SHAPE_NAME;
|
|
4175
5157
|
/**
|
|
4176
5158
|
* Strikethrough style
|
|
@@ -4361,8 +5343,43 @@ declare interface TransparencyAnimationConfig extends BaseAnimationConfig {
|
|
|
4361
5343
|
|
|
4362
5344
|
declare type TransparencyLevel = '25%' | '50%' | '75%' | '100%' | number;
|
|
4363
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
|
+
|
|
4364
5358
|
declare type VAlign = 'top' | 'middle' | 'bottom';
|
|
4365
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
|
+
|
|
4366
5383
|
declare interface WheelAnimationConfig extends BaseAnimationConfig {
|
|
4367
5384
|
type: 'wheel' | 'wheelexit';
|
|
4368
5385
|
spokes?: 1 | 2 | 3 | 4 | 8;
|
|
@@ -4450,22 +5467,33 @@ export { AnimationPreset }
|
|
|
4450
5467
|
export { AnimationTrigger }
|
|
4451
5468
|
export { AnimationType }
|
|
4452
5469
|
export { AppearOnClickProps }
|
|
5470
|
+
export { AudioCdProps }
|
|
5471
|
+
export { AudioCdTimeProps }
|
|
4453
5472
|
export { BARCHART_COLORS }
|
|
4454
5473
|
export { BULLET_TYPES }
|
|
4455
5474
|
export { BackgroundProps }
|
|
4456
5475
|
export { BaseAnimationConfig }
|
|
4457
5476
|
export { BlurProps }
|
|
4458
5477
|
export { BorderProps }
|
|
5478
|
+
export { CHARTEX_LAYOUT_ID }
|
|
5479
|
+
export { CHARTEX_NAME }
|
|
4459
5480
|
export { CHART_NAME }
|
|
5481
|
+
export { CHART_STYLE }
|
|
4460
5482
|
export { CHART_TYPE }
|
|
4461
5483
|
export { CRLF }
|
|
5484
|
+
export { Cell3DProps }
|
|
5485
|
+
export { CellBevelProps }
|
|
5486
|
+
export { CellLightRigProps }
|
|
4462
5487
|
export { ChangesInfoProps }
|
|
4463
5488
|
export { ChartAxisTickMark }
|
|
5489
|
+
export { ChartColorStyleProps }
|
|
4464
5490
|
export { ChartLineCap }
|
|
4465
5491
|
export { ChartType }
|
|
4466
5492
|
export { ClassificationOutcome }
|
|
4467
5493
|
export { Color }
|
|
4468
5494
|
export { ColorAnimationConfig }
|
|
5495
|
+
export { ColorMapOverrideProps }
|
|
5496
|
+
export { ColorSchemeIndex }
|
|
4469
5497
|
export { CommentAuthorProps }
|
|
4470
5498
|
export { CommentAuthorRef }
|
|
4471
5499
|
export { CommentChangeBit }
|
|
@@ -4481,6 +5509,8 @@ export { CommentTaskEventKind }
|
|
|
4481
5509
|
export { CommentTaskEventProps }
|
|
4482
5510
|
export { CommentTaskProps }
|
|
4483
5511
|
export { CompressionLevel }
|
|
5512
|
+
export { ConnectionProps }
|
|
5513
|
+
export { ConnectorProps }
|
|
4484
5514
|
export { ContentPartBwMode }
|
|
4485
5515
|
export { ContentPartProps }
|
|
4486
5516
|
export { Coord }
|
|
@@ -4490,6 +5520,7 @@ export { DEF_CELL_MARGIN_IN }
|
|
|
4490
5520
|
export { DEF_CELL_MARGIN_PT }
|
|
4491
5521
|
export { DEF_CHART_BORDER }
|
|
4492
5522
|
export { DEF_CHART_GRIDLINE }
|
|
5523
|
+
export { DEF_COLOR_MAP }
|
|
4493
5524
|
export { DEF_FONT_COLOR }
|
|
4494
5525
|
export { DEF_FONT_SIZE }
|
|
4495
5526
|
export { DEF_FONT_TITLE_SIZE }
|
|
@@ -4505,11 +5536,14 @@ export { DataOrPathProps }
|
|
|
4505
5536
|
export { DefineLayoutProps }
|
|
4506
5537
|
export { DesignerProps }
|
|
4507
5538
|
export { DesignerTag }
|
|
5539
|
+
export { DocumentProps }
|
|
4508
5540
|
export { EMU }
|
|
5541
|
+
export { EffectDagProps }
|
|
4509
5542
|
export { EmbedFontType }
|
|
4510
5543
|
export { EmphasisAnimation }
|
|
4511
5544
|
export { EntranceAnimation }
|
|
4512
5545
|
export { ExitAnimation }
|
|
5546
|
+
export { FillOverlayProps }
|
|
4513
5547
|
export { FloatAnimationConfig }
|
|
4514
5548
|
export { FloatDirection }
|
|
4515
5549
|
export { FlyAnimationConfig }
|
|
@@ -4523,6 +5557,7 @@ export { GuideProps }
|
|
|
4523
5557
|
export { HAlign }
|
|
4524
5558
|
export { HexColor }
|
|
4525
5559
|
export { HyperlinkProps }
|
|
5560
|
+
export { HyperlinkSoundProps }
|
|
4526
5561
|
export { IChartAreaProps }
|
|
4527
5562
|
export { IChartMulti }
|
|
4528
5563
|
export { IChartOpts }
|
|
@@ -4533,6 +5568,7 @@ export { IChartPropsAxisVal }
|
|
|
4533
5568
|
export { IChartPropsBase }
|
|
4534
5569
|
export { IChartPropsChartBar }
|
|
4535
5570
|
export { IChartPropsChartDoughnut }
|
|
5571
|
+
export { IChartPropsChartEx }
|
|
4536
5572
|
export { IChartPropsChartLine }
|
|
4537
5573
|
export { IChartPropsChartPie }
|
|
4538
5574
|
export { IChartPropsChartRadar }
|
|
@@ -4549,9 +5585,12 @@ export { ISlideObject }
|
|
|
4549
5585
|
export { ISlideRel }
|
|
4550
5586
|
export { ISlideRelChart }
|
|
4551
5587
|
export { ISlideRelMedia }
|
|
5588
|
+
export { ImageAlphaEffectProps }
|
|
4552
5589
|
export { ImageProps }
|
|
5590
|
+
export { ImageRecolorProps }
|
|
4553
5591
|
export { InkProps }
|
|
4554
5592
|
export { JSZIP_OUTPUT_TYPE }
|
|
5593
|
+
export { KinsokuProps }
|
|
4555
5594
|
export { LAYOUT_IDX_SERIES_BASE }
|
|
4556
5595
|
export { LETTERS }
|
|
4557
5596
|
export { LINEH_MODIFIER }
|
|
@@ -4562,8 +5601,10 @@ export { MediaOnError }
|
|
|
4562
5601
|
export { MediaProps }
|
|
4563
5602
|
export { MediaType }
|
|
4564
5603
|
export { ModifiedThemeColor }
|
|
5604
|
+
export { NonVisualProps }
|
|
4565
5605
|
export { NvPrExtensionProps }
|
|
4566
5606
|
export { ONEPT }
|
|
5607
|
+
export { OOXML_CHARTEX }
|
|
4567
5608
|
export { ObjectNameProps }
|
|
4568
5609
|
export { ObjectOptions }
|
|
4569
5610
|
export { OfficeAppProps }
|
|
@@ -4577,6 +5618,7 @@ export { PIECHART_COLORS }
|
|
|
4577
5618
|
export { PLACEHOLDER_TYPE }
|
|
4578
5619
|
export { PLACEHOLDER_TYPES }
|
|
4579
5620
|
export { PathAnimation }
|
|
5621
|
+
export { PhotoAlbumProps }
|
|
4580
5622
|
export { PlaceholderProps }
|
|
4581
5623
|
export { PlaceholderTypeExt }
|
|
4582
5624
|
export { PositionProps }
|
|
@@ -4584,6 +5626,7 @@ export { PresLayout }
|
|
|
4584
5626
|
export { PresSlide }
|
|
4585
5627
|
export { PresentationProps }
|
|
4586
5628
|
export { PresetPatternValues }
|
|
5629
|
+
export { PrintProps }
|
|
4587
5630
|
export { REGEX_HEX_COLOR }
|
|
4588
5631
|
export { RandomBarsAnimationConfig }
|
|
4589
5632
|
export { ReflectionProps }
|
|
@@ -4606,19 +5649,24 @@ export { ShapeGradientFlip }
|
|
|
4606
5649
|
export { ShapeGradientProps }
|
|
4607
5650
|
export { ShapeGradientStopProps }
|
|
4608
5651
|
export { ShapeGradientTileRect }
|
|
5652
|
+
export { ShapeImageFillProps }
|
|
4609
5653
|
export { ShapeLineProps }
|
|
5654
|
+
export { ShapeLockProps }
|
|
4610
5655
|
export { ShapeMaskType }
|
|
4611
5656
|
export { ShapePatternProps }
|
|
4612
5657
|
export { ShapeProps }
|
|
5658
|
+
export { ShapeStyleProps }
|
|
4613
5659
|
export { ShapeType }
|
|
4614
5660
|
export { SlideBaseProps }
|
|
4615
5661
|
export { SlideLayout }
|
|
5662
|
+
export { SlideLayoutType }
|
|
4616
5663
|
export { SlideMasterProps }
|
|
4617
5664
|
export { SlideNumberProps }
|
|
4618
5665
|
export { SlideObjectAnimation }
|
|
4619
5666
|
export { SlideShowEvent }
|
|
4620
5667
|
export { SlideShowProps }
|
|
4621
5668
|
export { SlideShowTriggerType }
|
|
5669
|
+
export { SlideSizeType }
|
|
4622
5670
|
export { SlideTransitionProps }
|
|
4623
5671
|
export { SoftEdgeProps }
|
|
4624
5672
|
export { SpinAmount }
|
|
@@ -4627,16 +5675,22 @@ export { SpinDirection }
|
|
|
4627
5675
|
export { SplitAnimationConfig }
|
|
4628
5676
|
export { SplitDirection }
|
|
4629
5677
|
export { SummaryZoomProps }
|
|
5678
|
+
export { TEXT_FIELD_TYPES }
|
|
4630
5679
|
export { TEXT_HALIGN }
|
|
4631
5680
|
export { TEXT_VALIGN }
|
|
5681
|
+
export { TILE_ALIGNMENTS }
|
|
4632
5682
|
export { TRANSITION_TYPE }
|
|
4633
5683
|
export { TableCell }
|
|
4634
5684
|
export { TableCellProps }
|
|
4635
5685
|
export { TableProps }
|
|
4636
5686
|
export { TableRow }
|
|
4637
5687
|
export { TableRowSlide }
|
|
5688
|
+
export { TableStyleBorderProps }
|
|
5689
|
+
export { TableStylePartProps }
|
|
5690
|
+
export { TableStyleProps }
|
|
4638
5691
|
export { TableToSlidesProps }
|
|
4639
5692
|
export { TextBaseProps }
|
|
5693
|
+
export { TextFieldType }
|
|
4640
5694
|
export { TextGlowProps }
|
|
4641
5695
|
export { TextProps }
|
|
4642
5696
|
export { TextPropsOptions }
|
|
@@ -4646,7 +5700,9 @@ export { ThemeProps }
|
|
|
4646
5700
|
export { TransitionType }
|
|
4647
5701
|
export { TransparencyAnimationConfig }
|
|
4648
5702
|
export { TransparencyLevel }
|
|
5703
|
+
export { UnitLength }
|
|
4649
5704
|
export { VAlign }
|
|
5705
|
+
export { ViewProps }
|
|
4650
5706
|
export { WRITE_OUTPUT_TYPE }
|
|
4651
5707
|
export { WheelAnimationConfig }
|
|
4652
5708
|
export { WipeAnimationConfig }
|
|
@@ -4657,6 +5713,8 @@ export { WriteProps }
|
|
|
4657
5713
|
export { ZoomAnimationConfig }
|
|
4658
5714
|
export { ZoomDirection }
|
|
4659
5715
|
export { ZoomProps }
|
|
5716
|
+
export { chartExRequiresNs }
|
|
5717
|
+
export { isChartexType }
|
|
4660
5718
|
|
|
4661
5719
|
export as namespace PptxGenJS
|
|
4662
5720
|
|
|
@@ -4676,22 +5734,33 @@ declare namespace PptxGenJS {
|
|
|
4676
5734
|
export { AnimationTrigger }
|
|
4677
5735
|
export { AnimationType }
|
|
4678
5736
|
export { AppearOnClickProps }
|
|
5737
|
+
export { AudioCdProps }
|
|
5738
|
+
export { AudioCdTimeProps }
|
|
4679
5739
|
export { BARCHART_COLORS }
|
|
4680
5740
|
export { BULLET_TYPES }
|
|
4681
5741
|
export { BackgroundProps }
|
|
4682
5742
|
export { BaseAnimationConfig }
|
|
4683
5743
|
export { BlurProps }
|
|
4684
5744
|
export { BorderProps }
|
|
5745
|
+
export { CHARTEX_LAYOUT_ID }
|
|
5746
|
+
export { CHARTEX_NAME }
|
|
4685
5747
|
export { CHART_NAME }
|
|
5748
|
+
export { CHART_STYLE }
|
|
4686
5749
|
export { CHART_TYPE }
|
|
4687
5750
|
export { CRLF }
|
|
5751
|
+
export { Cell3DProps }
|
|
5752
|
+
export { CellBevelProps }
|
|
5753
|
+
export { CellLightRigProps }
|
|
4688
5754
|
export { ChangesInfoProps }
|
|
4689
5755
|
export { ChartAxisTickMark }
|
|
5756
|
+
export { ChartColorStyleProps }
|
|
4690
5757
|
export { ChartLineCap }
|
|
4691
5758
|
export { ChartType }
|
|
4692
5759
|
export { ClassificationOutcome }
|
|
4693
5760
|
export { Color }
|
|
4694
5761
|
export { ColorAnimationConfig }
|
|
5762
|
+
export { ColorMapOverrideProps }
|
|
5763
|
+
export { ColorSchemeIndex }
|
|
4695
5764
|
export { CommentAuthorProps }
|
|
4696
5765
|
export { CommentAuthorRef }
|
|
4697
5766
|
export { CommentChangeBit }
|
|
@@ -4707,6 +5776,8 @@ declare namespace PptxGenJS {
|
|
|
4707
5776
|
export { CommentTaskEventProps }
|
|
4708
5777
|
export { CommentTaskProps }
|
|
4709
5778
|
export { CompressionLevel }
|
|
5779
|
+
export { ConnectionProps }
|
|
5780
|
+
export { ConnectorProps }
|
|
4710
5781
|
export { ContentPartBwMode }
|
|
4711
5782
|
export { ContentPartProps }
|
|
4712
5783
|
export { Coord }
|
|
@@ -4716,6 +5787,7 @@ declare namespace PptxGenJS {
|
|
|
4716
5787
|
export { DEF_CELL_MARGIN_PT }
|
|
4717
5788
|
export { DEF_CHART_BORDER }
|
|
4718
5789
|
export { DEF_CHART_GRIDLINE }
|
|
5790
|
+
export { DEF_COLOR_MAP }
|
|
4719
5791
|
export { DEF_FONT_COLOR }
|
|
4720
5792
|
export { DEF_FONT_SIZE }
|
|
4721
5793
|
export { DEF_FONT_TITLE_SIZE }
|
|
@@ -4731,11 +5803,14 @@ declare namespace PptxGenJS {
|
|
|
4731
5803
|
export { DefineLayoutProps }
|
|
4732
5804
|
export { DesignerProps }
|
|
4733
5805
|
export { DesignerTag }
|
|
5806
|
+
export { DocumentProps }
|
|
4734
5807
|
export { EMU }
|
|
5808
|
+
export { EffectDagProps }
|
|
4735
5809
|
export { EmbedFontType }
|
|
4736
5810
|
export { EmphasisAnimation }
|
|
4737
5811
|
export { EntranceAnimation }
|
|
4738
5812
|
export { ExitAnimation }
|
|
5813
|
+
export { FillOverlayProps }
|
|
4739
5814
|
export { FloatAnimationConfig }
|
|
4740
5815
|
export { FloatDirection }
|
|
4741
5816
|
export { FlyAnimationConfig }
|
|
@@ -4749,6 +5824,7 @@ declare namespace PptxGenJS {
|
|
|
4749
5824
|
export { HAlign }
|
|
4750
5825
|
export { HexColor }
|
|
4751
5826
|
export { HyperlinkProps }
|
|
5827
|
+
export { HyperlinkSoundProps }
|
|
4752
5828
|
export { IChartAreaProps }
|
|
4753
5829
|
export { IChartMulti }
|
|
4754
5830
|
export { IChartOpts }
|
|
@@ -4759,6 +5835,7 @@ declare namespace PptxGenJS {
|
|
|
4759
5835
|
export { IChartPropsBase }
|
|
4760
5836
|
export { IChartPropsChartBar }
|
|
4761
5837
|
export { IChartPropsChartDoughnut }
|
|
5838
|
+
export { IChartPropsChartEx }
|
|
4762
5839
|
export { IChartPropsChartLine }
|
|
4763
5840
|
export { IChartPropsChartPie }
|
|
4764
5841
|
export { IChartPropsChartRadar }
|
|
@@ -4775,9 +5852,12 @@ declare namespace PptxGenJS {
|
|
|
4775
5852
|
export { ISlideRel }
|
|
4776
5853
|
export { ISlideRelChart }
|
|
4777
5854
|
export { ISlideRelMedia }
|
|
5855
|
+
export { ImageAlphaEffectProps }
|
|
4778
5856
|
export { ImageProps }
|
|
5857
|
+
export { ImageRecolorProps }
|
|
4779
5858
|
export { InkProps }
|
|
4780
5859
|
export { JSZIP_OUTPUT_TYPE }
|
|
5860
|
+
export { KinsokuProps }
|
|
4781
5861
|
export { LAYOUT_IDX_SERIES_BASE }
|
|
4782
5862
|
export { LETTERS }
|
|
4783
5863
|
export { LINEH_MODIFIER }
|
|
@@ -4788,8 +5868,10 @@ declare namespace PptxGenJS {
|
|
|
4788
5868
|
export { MediaProps }
|
|
4789
5869
|
export { MediaType }
|
|
4790
5870
|
export { ModifiedThemeColor }
|
|
5871
|
+
export { NonVisualProps }
|
|
4791
5872
|
export { NvPrExtensionProps }
|
|
4792
5873
|
export { ONEPT }
|
|
5874
|
+
export { OOXML_CHARTEX }
|
|
4793
5875
|
export { ObjectNameProps }
|
|
4794
5876
|
export { ObjectOptions }
|
|
4795
5877
|
export { OfficeAppProps }
|
|
@@ -4803,6 +5885,7 @@ declare namespace PptxGenJS {
|
|
|
4803
5885
|
export { PLACEHOLDER_TYPE }
|
|
4804
5886
|
export { PLACEHOLDER_TYPES }
|
|
4805
5887
|
export { PathAnimation }
|
|
5888
|
+
export { PhotoAlbumProps }
|
|
4806
5889
|
export { PlaceholderProps }
|
|
4807
5890
|
export { PlaceholderTypeExt }
|
|
4808
5891
|
export { PositionProps }
|
|
@@ -4810,6 +5893,7 @@ declare namespace PptxGenJS {
|
|
|
4810
5893
|
export { PresSlide }
|
|
4811
5894
|
export { PresentationProps }
|
|
4812
5895
|
export { PresetPatternValues }
|
|
5896
|
+
export { PrintProps }
|
|
4813
5897
|
export { REGEX_HEX_COLOR }
|
|
4814
5898
|
export { RandomBarsAnimationConfig }
|
|
4815
5899
|
export { ReflectionProps }
|
|
@@ -4832,19 +5916,24 @@ declare namespace PptxGenJS {
|
|
|
4832
5916
|
export { ShapeGradientProps }
|
|
4833
5917
|
export { ShapeGradientStopProps }
|
|
4834
5918
|
export { ShapeGradientTileRect }
|
|
5919
|
+
export { ShapeImageFillProps }
|
|
4835
5920
|
export { ShapeLineProps }
|
|
5921
|
+
export { ShapeLockProps }
|
|
4836
5922
|
export { ShapeMaskType }
|
|
4837
5923
|
export { ShapePatternProps }
|
|
4838
5924
|
export { ShapeProps }
|
|
5925
|
+
export { ShapeStyleProps }
|
|
4839
5926
|
export { ShapeType }
|
|
4840
5927
|
export { SlideBaseProps }
|
|
4841
5928
|
export { SlideLayout }
|
|
5929
|
+
export { SlideLayoutType }
|
|
4842
5930
|
export { SlideMasterProps }
|
|
4843
5931
|
export { SlideNumberProps }
|
|
4844
5932
|
export { SlideObjectAnimation }
|
|
4845
5933
|
export { SlideShowEvent }
|
|
4846
5934
|
export { SlideShowProps }
|
|
4847
5935
|
export { SlideShowTriggerType }
|
|
5936
|
+
export { SlideSizeType }
|
|
4848
5937
|
export { SlideTransitionProps }
|
|
4849
5938
|
export { SoftEdgeProps }
|
|
4850
5939
|
export { SpinAmount }
|
|
@@ -4853,16 +5942,22 @@ declare namespace PptxGenJS {
|
|
|
4853
5942
|
export { SplitAnimationConfig }
|
|
4854
5943
|
export { SplitDirection }
|
|
4855
5944
|
export { SummaryZoomProps }
|
|
5945
|
+
export { TEXT_FIELD_TYPES }
|
|
4856
5946
|
export { TEXT_HALIGN }
|
|
4857
5947
|
export { TEXT_VALIGN }
|
|
5948
|
+
export { TILE_ALIGNMENTS }
|
|
4858
5949
|
export { TRANSITION_TYPE }
|
|
4859
5950
|
export { TableCell }
|
|
4860
5951
|
export { TableCellProps }
|
|
4861
5952
|
export { TableProps }
|
|
4862
5953
|
export { TableRow }
|
|
4863
5954
|
export { TableRowSlide }
|
|
5955
|
+
export { TableStyleBorderProps }
|
|
5956
|
+
export { TableStylePartProps }
|
|
5957
|
+
export { TableStyleProps }
|
|
4864
5958
|
export { TableToSlidesProps }
|
|
4865
5959
|
export { TextBaseProps }
|
|
5960
|
+
export { TextFieldType }
|
|
4866
5961
|
export { TextGlowProps }
|
|
4867
5962
|
export { TextProps }
|
|
4868
5963
|
export { TextPropsOptions }
|
|
@@ -4872,7 +5967,9 @@ declare namespace PptxGenJS {
|
|
|
4872
5967
|
export { TransitionType }
|
|
4873
5968
|
export { TransparencyAnimationConfig }
|
|
4874
5969
|
export { TransparencyLevel }
|
|
5970
|
+
export { UnitLength }
|
|
4875
5971
|
export { VAlign }
|
|
5972
|
+
export { ViewProps }
|
|
4876
5973
|
export { WRITE_OUTPUT_TYPE }
|
|
4877
5974
|
export { WheelAnimationConfig }
|
|
4878
5975
|
export { WipeAnimationConfig }
|
|
@@ -4883,4 +5980,6 @@ declare namespace PptxGenJS {
|
|
|
4883
5980
|
export { ZoomAnimationConfig }
|
|
4884
5981
|
export { ZoomDirection }
|
|
4885
5982
|
export { ZoomProps }
|
|
5983
|
+
export { chartExRequiresNs }
|
|
5984
|
+
export { isChartexType }
|
|
4886
5985
|
}
|