pptxgenjs-plus 4.1.17
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/LICENSE +22 -0
- package/README.md +93 -0
- package/dist/pptxgen.bundle.js +109 -0
- package/dist/pptxgen.cjs.js +21468 -0
- package/dist/pptxgen.es.js +21342 -0
- package/dist/pptxgen.min.js +109 -0
- package/package.json +113 -0
- package/types/index.d.ts +4592 -0
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,4592 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options for `pptx.addFont()` — opt-in embed of a caller-supplied font.
|
|
3
|
+
* The library ships no fonts. Callers must have a license that permits
|
|
4
|
+
* embedding the supplied `fontFile` into a PPTX.
|
|
5
|
+
*/
|
|
6
|
+
declare interface AddFontOptions {
|
|
7
|
+
/** Font family name referenced by `fontFace` on text/shapes */
|
|
8
|
+
fontFace: string;
|
|
9
|
+
/** Raw font file bytes (caller-supplied; not bundled with this library) */
|
|
10
|
+
fontFile: ArrayBuffer;
|
|
11
|
+
/** Source font format */
|
|
12
|
+
fontType: EmbedFontType;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare interface AddSlideProps {
|
|
16
|
+
masterName?: string;
|
|
17
|
+
sectionTitle?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare enum AlignH {
|
|
21
|
+
'left' = "left",
|
|
22
|
+
'center' = "center",
|
|
23
|
+
'right' = "right",
|
|
24
|
+
'justify' = "justify"
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare enum AlignV {
|
|
28
|
+
'top' = "top",
|
|
29
|
+
'middle' = "middle",
|
|
30
|
+
'bottom' = "bottom"
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Connection site index helpers for connector lines (ZentoSoft connectors)
|
|
35
|
+
* - Maps to OOXML `stCxn`/`endCxn` `idx` on common rectangular shapes
|
|
36
|
+
* - Other presets may use different site indices — pass a raw number when needed
|
|
37
|
+
*/
|
|
38
|
+
declare enum ANCHOR {
|
|
39
|
+
TOP = 0,
|
|
40
|
+
LEFT = 1,
|
|
41
|
+
BOTTOM = 2,
|
|
42
|
+
RIGHT = 3
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare type AnimationConfig = BaseAnimationConfig | FlyAnimationConfig | FloatAnimationConfig | SplitAnimationConfig | WipeAnimationConfig | ShapeAnimationConfig | WheelAnimationConfig | RandomBarsAnimationConfig | ZoomAnimationConfig | SpinAnimationConfig | GrowShrinkAnimationConfig | ColorAnimationConfig | TransparencyAnimationConfig;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Curated object-animation presets emitted as `<p:timing>` (ECMA-376 §19.3.1.48).
|
|
49
|
+
* Additional names from `AnimationType` are accepted on `options.animation`.
|
|
50
|
+
*/
|
|
51
|
+
declare enum AnimationPreset {
|
|
52
|
+
appear = "appear",
|
|
53
|
+
fadein = "fadein",
|
|
54
|
+
fadeout = "fadeout",
|
|
55
|
+
flyin = "flyin",
|
|
56
|
+
flyout = "flyout",
|
|
57
|
+
zoom = "zoom",
|
|
58
|
+
disappear = "disappear"
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Animation Properties
|
|
63
|
+
* @see https://github.com/BapunHansdah/PptxGenJS/tree/release/pptxgenjs-animations
|
|
64
|
+
*/
|
|
65
|
+
declare type AnimationTrigger = 'onClick' | 'withPrevious' | 'afterPrevious';
|
|
66
|
+
|
|
67
|
+
declare type AnimationType = EntranceAnimation | EmphasisAnimation | ExitAnimation | PathAnimation;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Convenience entrance animation: appear on click
|
|
71
|
+
* - Alias for `animation: { type: 'appear', trigger: 'onClick' }`
|
|
72
|
+
* - Ignored when `animation` is also set
|
|
73
|
+
* @see MelleB/feat/appear-on-click (PR #1202)
|
|
74
|
+
*/
|
|
75
|
+
declare interface AppearOnClickProps {
|
|
76
|
+
/**
|
|
77
|
+
* Appear on click
|
|
78
|
+
* @default false
|
|
79
|
+
* @example true // entrance "Appear" triggered by click
|
|
80
|
+
*/
|
|
81
|
+
appearOnClick?: boolean;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare interface BackgroundProps extends DataOrPathProps, ShapeFillProps {
|
|
85
|
+
/**
|
|
86
|
+
* Color (hex format)
|
|
87
|
+
* @deprecated v3.6.0 - use `ShapeFillProps` instead
|
|
88
|
+
*/
|
|
89
|
+
fill?: HexColor;
|
|
90
|
+
/**
|
|
91
|
+
* source URL
|
|
92
|
+
* @deprecated v3.6.0 - use `DataOrPathProps` instead - remove in v4.0.0
|
|
93
|
+
*/
|
|
94
|
+
src?: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
declare interface BaseAnimationConfig {
|
|
98
|
+
type: AnimationType;
|
|
99
|
+
trigger?: AnimationTrigger;
|
|
100
|
+
/** Duration in milliseconds */
|
|
101
|
+
duration?: number;
|
|
102
|
+
/** Delay in milliseconds */
|
|
103
|
+
delay?: number;
|
|
104
|
+
/** Advanced: override animation class */
|
|
105
|
+
class?: 'entr' | 'emph' | 'exit' | 'path';
|
|
106
|
+
/** Advanced: override PowerPoint preset ID */
|
|
107
|
+
presetID?: number;
|
|
108
|
+
/** Advanced: override PowerPoint preset subtype */
|
|
109
|
+
presetSubtype?: number;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare interface BorderProps {
|
|
113
|
+
/**
|
|
114
|
+
* Border type
|
|
115
|
+
* @default solid
|
|
116
|
+
*/
|
|
117
|
+
type?: 'none' | 'dash' | 'solid';
|
|
118
|
+
/**
|
|
119
|
+
* Border color (hex)
|
|
120
|
+
* @example 'FF3399'
|
|
121
|
+
* @default '666666'
|
|
122
|
+
*/
|
|
123
|
+
color?: HexColor;
|
|
124
|
+
/**
|
|
125
|
+
* Border width (points)
|
|
126
|
+
* - same name and unit as `ShapeLineProps.width`
|
|
127
|
+
* @default 1
|
|
128
|
+
*/
|
|
129
|
+
width?: number;
|
|
130
|
+
/**
|
|
131
|
+
* Border size (points)
|
|
132
|
+
* @deprecated v4.1.0 - use `width`
|
|
133
|
+
* @default 1
|
|
134
|
+
*/
|
|
135
|
+
pt?: number;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** Changes Information part payload (MS-PPTX §2.12.1.1 `chgInfo`). Empty object emits a valid empty part. */
|
|
139
|
+
declare type ChangesInfoProps = Record<string, never>;
|
|
140
|
+
|
|
141
|
+
declare type CHART_NAME = 'area' | 'bar' | 'bar3D' | 'bubble' | 'bubble3D' | 'doughnut' | 'line' | 'pie' | 'radar' | 'scatter';
|
|
142
|
+
|
|
143
|
+
declare enum CHART_TYPE {
|
|
144
|
+
'AREA' = "area",
|
|
145
|
+
'BAR' = "bar",
|
|
146
|
+
'BAR3D' = "bar3D",
|
|
147
|
+
'BUBBLE' = "bubble",
|
|
148
|
+
'BUBBLE3D' = "bubble3D",
|
|
149
|
+
'DOUGHNUT' = "doughnut",
|
|
150
|
+
'LINE' = "line",
|
|
151
|
+
'PIE' = "pie",
|
|
152
|
+
'RADAR' = "radar",
|
|
153
|
+
'SCATTER' = "scatter"
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare type ChartAxisTickMark = 'none' | 'inside' | 'outside' | 'cross';
|
|
157
|
+
|
|
158
|
+
declare type ChartLineCap = 'flat' | 'round' | 'square';
|
|
159
|
+
|
|
160
|
+
declare enum ChartType {
|
|
161
|
+
'area' = "area",
|
|
162
|
+
'bar' = "bar",
|
|
163
|
+
'bar3d' = "bar3D",
|
|
164
|
+
'bubble' = "bubble",
|
|
165
|
+
'bubble3d' = "bubble3D",
|
|
166
|
+
'doughnut' = "doughnut",
|
|
167
|
+
'line' = "line",
|
|
168
|
+
'pie' = "pie",
|
|
169
|
+
'radar' = "radar",
|
|
170
|
+
'scatter' = "scatter"
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* MS-PPTX classification outcome (`ST_ClassificationOutcomeType`, §2.15).
|
|
175
|
+
* Compliance metadata — emit only when explicitly set.
|
|
176
|
+
*/
|
|
177
|
+
declare type ClassificationOutcome = 'none' | 'hdr' | 'ftr' | 'watermark';
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Color value: hex RGB, scheme token, or a scheme/hex color with OOXML transforms
|
|
181
|
+
* (selective port of rafalBujok/define_color_theme + allow_modified_color_theme)
|
|
182
|
+
*/
|
|
183
|
+
declare type Color = HexColor | ThemeColor | ModifiedThemeColor;
|
|
184
|
+
|
|
185
|
+
declare interface ColorAnimationConfig extends BaseAnimationConfig {
|
|
186
|
+
type: 'colorpulse' | 'objectcolor' | 'linecolor' | 'fillcolor';
|
|
187
|
+
/** Hex color without '#', e.g. 'FFFF00' */
|
|
188
|
+
color?: string;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/** A modern-comment author. MS-PPTX §2.16.3.1 `CT_Author`. */
|
|
192
|
+
declare interface CommentAuthorProps {
|
|
193
|
+
/** Author display name (required). */
|
|
194
|
+
name: string;
|
|
195
|
+
/** Author initials. */
|
|
196
|
+
initials?: string;
|
|
197
|
+
/** Stable GUID. Auto-generated if omitted. */
|
|
198
|
+
id?: string;
|
|
199
|
+
/** Unique user id (presence). Defaults to `id`. */
|
|
200
|
+
userId?: string;
|
|
201
|
+
/** Identity provider that produced userId. @default 'None' */
|
|
202
|
+
providerId?: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/** Author index into `pptx.commentAuthors` (0-based), display name, or author GUID. */
|
|
206
|
+
declare type CommentAuthorRef = number | string;
|
|
207
|
+
|
|
208
|
+
/** Comment-level change bits. MS-PPTX §2.19 `ST_CommentV2ChangeBit`. */
|
|
209
|
+
declare type CommentChangeBit = 'add' | 'del' | 'mod' | 'modTsk' | 'modRxn';
|
|
210
|
+
|
|
211
|
+
/** Edits to a comment. MS-PPTX §2.19 `CT_CommentV2Changes` / `cmChg`. */
|
|
212
|
+
declare interface CommentChangeProps {
|
|
213
|
+
chg: CommentChangeBit | CommentChangeBit[];
|
|
214
|
+
replies?: CommentReplyChangeProps[];
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/** A threaded comment on a slide. MS-PPTX §2.16.3.3 `CT_Comment`. */
|
|
218
|
+
declare interface CommentProps {
|
|
219
|
+
/** Comment body text. */
|
|
220
|
+
text: string;
|
|
221
|
+
/** Author index into `pptx.commentAuthors` (0-based), name, or GUID. @default 0 */
|
|
222
|
+
author?: CommentAuthorRef;
|
|
223
|
+
/** Stable GUID. Auto-generated if omitted. */
|
|
224
|
+
id?: string;
|
|
225
|
+
/** X position (inches) of the comment badge. */
|
|
226
|
+
x?: number;
|
|
227
|
+
/** Y position (inches) of the comment badge. */
|
|
228
|
+
y?: number;
|
|
229
|
+
/** Replies to this comment. */
|
|
230
|
+
replies?: CommentReplyProps[];
|
|
231
|
+
/** Required `created` timestamp. Defaults to `startDate` or now. */
|
|
232
|
+
created?: string;
|
|
233
|
+
/** Optional thread start date. */
|
|
234
|
+
startDate?: string;
|
|
235
|
+
/** Comment status. @default 'active' */
|
|
236
|
+
status?: CommentStatus;
|
|
237
|
+
/** Task due date. */
|
|
238
|
+
dueDate?: string;
|
|
239
|
+
/** Authors assigned to this comment-as-task. */
|
|
240
|
+
assignedTo?: CommentAuthorRef | CommentAuthorRef[];
|
|
241
|
+
/** Percent complete 0–100 (or `"50%"`). */
|
|
242
|
+
complete?: number | string;
|
|
243
|
+
/** Task title. */
|
|
244
|
+
title?: string;
|
|
245
|
+
/** Reactions on this comment. MS-PPTX §2.21. */
|
|
246
|
+
reactions?: CommentReactionProps[];
|
|
247
|
+
/** Task history (`taskDetails`). MS-PPTX §2.20. */
|
|
248
|
+
task?: CommentTaskProps;
|
|
249
|
+
/** Comment-change records (`cmChg`). MS-PPTX §2.19. */
|
|
250
|
+
changes?: CommentChangeProps[];
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/** One user's instance of a reaction. MS-PPTX §2.21 `CT_ReactionInstance`. */
|
|
254
|
+
declare interface CommentReactionInstanceProps {
|
|
255
|
+
/** Author index, name, or GUID. */
|
|
256
|
+
author?: CommentAuthorRef;
|
|
257
|
+
/** ISO date; defaults to now. */
|
|
258
|
+
time?: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/** A reaction on a comment or reply. MS-PPTX §2.21 `CT_Reaction`. */
|
|
262
|
+
declare interface CommentReactionProps {
|
|
263
|
+
/** Reaction type. SHOULD be a Unicode emoji. */
|
|
264
|
+
type: string;
|
|
265
|
+
/** Authors who reacted (shorthand for one instance each). */
|
|
266
|
+
authors?: CommentAuthorRef[];
|
|
267
|
+
/** ISO date applied to shorthand `authors` instances. */
|
|
268
|
+
time?: string;
|
|
269
|
+
/** Explicit per-author instances (wins over `authors` when both are set). */
|
|
270
|
+
instances?: CommentReactionInstanceProps[];
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/** Reply-level change bits. MS-PPTX §2.19 `ST_CommentReplyV2ChangeBit`. */
|
|
274
|
+
declare type CommentReplyChangeBit = 'add' | 'del' | 'mod' | 'modRxn';
|
|
275
|
+
|
|
276
|
+
/** Edits to a reply. MS-PPTX §2.19 `CT_CommentReplyV2Changes`. */
|
|
277
|
+
declare interface CommentReplyChangeProps {
|
|
278
|
+
chg: CommentReplyChangeBit | CommentReplyChangeBit[];
|
|
279
|
+
/** Reply GUID. Defaults to the matching reply's `id`. */
|
|
280
|
+
replyId?: string;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/** A reply on a threaded comment. MS-PPTX §2.16.3.4 `CT_CommentReply`. */
|
|
284
|
+
declare interface CommentReplyProps {
|
|
285
|
+
/** Reply body text. */
|
|
286
|
+
text: string;
|
|
287
|
+
/** Author index, name, or GUID. @default 0 */
|
|
288
|
+
author?: CommentAuthorRef;
|
|
289
|
+
/** Stable GUID. Auto-generated if omitted. */
|
|
290
|
+
id?: string;
|
|
291
|
+
/** ISO created date; defaults to the parent comment date. */
|
|
292
|
+
created?: string;
|
|
293
|
+
/** Reply status. @default 'active' */
|
|
294
|
+
status?: CommentStatus;
|
|
295
|
+
/** Reactions on this reply. MS-PPTX §2.21. */
|
|
296
|
+
reactions?: CommentReactionProps[];
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/** Modern comment status. MS-PPTX §2.16 `ST_CommentStatus`. @default 'active' */
|
|
300
|
+
declare type CommentStatus = 'active' | 'resolved' | 'closed';
|
|
301
|
+
|
|
302
|
+
/** Task history event kinds. MS-PPTX §2.20 `CT_TaskHistoryEvent`. */
|
|
303
|
+
declare type CommentTaskEventKind = 'add' | 'asgn' | 'title' | 'date' | 'pcntCmplt' | 'unasgnAll' | 'undo' | 'unknown';
|
|
304
|
+
|
|
305
|
+
/** One task-history event. MS-PPTX §2.20 `CT_TaskHistoryEvent`. */
|
|
306
|
+
declare interface CommentTaskEventProps {
|
|
307
|
+
kind: CommentTaskEventKind;
|
|
308
|
+
/** Author who initiated the change (`atrbtn`). */
|
|
309
|
+
author?: CommentAuthorRef;
|
|
310
|
+
/** ISO date; defaults to now. */
|
|
311
|
+
time?: string;
|
|
312
|
+
/** Event GUID. Auto-generated if omitted. */
|
|
313
|
+
id?: string;
|
|
314
|
+
/** Assignee for `asgn`. */
|
|
315
|
+
assignTo?: CommentAuthorRef;
|
|
316
|
+
/** Title for `title`. */
|
|
317
|
+
title?: string;
|
|
318
|
+
/** Schedule start for `date`. */
|
|
319
|
+
startDate?: string;
|
|
320
|
+
/** Schedule due for `date`. */
|
|
321
|
+
endDate?: string;
|
|
322
|
+
/** Percent complete 0–100 (or `"50%"`) for `pcntCmplt`. */
|
|
323
|
+
complete?: number | string;
|
|
324
|
+
/** History-event GUID undone by `undo`. */
|
|
325
|
+
undoId?: string;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/** Extra task history (`taskDetails`). MS-PPTX §2.20. */
|
|
329
|
+
declare interface CommentTaskProps {
|
|
330
|
+
history: CommentTaskEventProps[];
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Zip compression applied to the exported file
|
|
335
|
+
* - 'none': store uncompressed (fastest)
|
|
336
|
+
* - 'fast': DEFLATE level 1 (quick, decent savings)
|
|
337
|
+
* - 'best': DEFLATE level 9 (smallest file, slowest)
|
|
338
|
+
*/
|
|
339
|
+
declare type CompressionLevel = 'none' | 'fast' | 'best';
|
|
340
|
+
|
|
341
|
+
/** ST_BlackWhiteMode values accepted on `p:contentPart` (MS-PPTX §2.3.2.2). */
|
|
342
|
+
declare type ContentPartBwMode = 'clr' | 'auto' | 'gray' | 'ltGray' | 'invGray' | 'grayWhite' | 'blackGray' | 'blackWhite' | 'black' | 'white' | 'hidden';
|
|
343
|
+
|
|
344
|
+
/** A content part (MS-PPTX §2.2.3). Opt-in; emits `mc:AlternateContent` with an `sp` fallback. */
|
|
345
|
+
declare interface ContentPartProps extends PositionProps, ObjectNameProps {
|
|
346
|
+
/** XML payload written as the related package part. */
|
|
347
|
+
data: string;
|
|
348
|
+
/** Part content type. @default 'application/xml' */
|
|
349
|
+
contentType?: string;
|
|
350
|
+
/** Optional file name (used as the part leaf). */
|
|
351
|
+
fileName?: string;
|
|
352
|
+
/** Black/white render mode (MS-PPTX §2.3.2.2). */
|
|
353
|
+
bwMode?: ContentPartBwMode | string;
|
|
354
|
+
/** Optional alt text. */
|
|
355
|
+
altText?: string;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Coordinate number - either:
|
|
360
|
+
* - Inches (0-n)
|
|
361
|
+
* - Percentage (0-100)
|
|
362
|
+
*
|
|
363
|
+
* @example 10.25 // coordinate in inches
|
|
364
|
+
* @example '75%' // coordinate as percentage of slide size
|
|
365
|
+
*/
|
|
366
|
+
declare type Coord = number | `${number}%`;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Either `data` or `path` is required
|
|
370
|
+
*/
|
|
371
|
+
declare interface DataOrPathProps {
|
|
372
|
+
/**
|
|
373
|
+
* URL or relative path
|
|
374
|
+
*
|
|
375
|
+
* @example 'https://onedrives.com/myimg.png` // retrieve image via URL
|
|
376
|
+
* @example '/home/gitbrent/images/myimg.png` // retrieve image via local path
|
|
377
|
+
*/
|
|
378
|
+
path?: string;
|
|
379
|
+
/**
|
|
380
|
+
* base64-encoded string
|
|
381
|
+
* - Useful for avoiding potential path/server issues
|
|
382
|
+
*
|
|
383
|
+
* @example 'image/png;base64,iVtDafDrBF[...]=' // pre-encoded image in base-64
|
|
384
|
+
*/
|
|
385
|
+
data?: string;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Argument to `defineLayout()` - dimensions may be given as `width`/`height` or as `w`/`h`
|
|
390
|
+
*/
|
|
391
|
+
declare interface DefineLayoutProps {
|
|
392
|
+
/**
|
|
393
|
+
* Layout name
|
|
394
|
+
* @example 'A3'
|
|
395
|
+
*/
|
|
396
|
+
name: string;
|
|
397
|
+
/** Layout width (inches) - or use `w` */
|
|
398
|
+
width?: number;
|
|
399
|
+
/** Layout height (inches) - or use `h` */
|
|
400
|
+
height?: number;
|
|
401
|
+
/** Layout width (inches) - alias of `width` */
|
|
402
|
+
w?: number;
|
|
403
|
+
/** Layout height (inches) - alias of `height` */
|
|
404
|
+
h?: number;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/** Designer properties on a shape (`CT_DesignerDrawingProps`, MS-PPTX §2.17.1.1). */
|
|
408
|
+
declare interface DesignerProps {
|
|
409
|
+
/** Whether a design element is editable. @default false */
|
|
410
|
+
edtDesignElem?: boolean;
|
|
411
|
+
/** Designer Service tags nested under `designPr`. */
|
|
412
|
+
tags?: DesignerTag[];
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/** Designer Service name/value tag (`CT_DesignerTag`, MS-PPTX §2.17.3.2). */
|
|
416
|
+
declare interface DesignerTag {
|
|
417
|
+
name: string;
|
|
418
|
+
val: string;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/** Font file formats supported by embedded TrueType fonts (`addFont`) */
|
|
422
|
+
declare type EmbedFontType = 'ttf' | 'otf' | 'woff' | 'eot';
|
|
423
|
+
|
|
424
|
+
declare type EmphasisAnimation = 'pulse' | 'colorpulse' | 'teeter' | 'spin' | 'growshrink' | 'desaturate' | 'darken' | 'lighten' | 'transparency' | 'objectcolor' | 'complementarycolor' | 'linecolor' | 'fillcolor';
|
|
425
|
+
|
|
426
|
+
declare type EntranceAnimation = 'appear' | 'fadein' | 'flyin' | 'floatin' | 'split' | 'wipe' | 'shape' | 'wheel' | 'randombars' | 'zoom' | 'growandturn' | 'swivel' | 'bounce';
|
|
427
|
+
|
|
428
|
+
declare type ExitAnimation = 'disappear' | 'fadeout' | 'flyout' | 'floatout' | 'splitexit' | 'wipeexit' | 'shapeexit' | 'wheelexit' | 'randombarsexit' | 'shrinkandturn' | 'zoomexit' | 'swivelexit' | 'bounceexit';
|
|
429
|
+
|
|
430
|
+
declare interface FloatAnimationConfig extends BaseAnimationConfig {
|
|
431
|
+
type: 'floatin' | 'floatout';
|
|
432
|
+
direction?: FloatDirection;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
declare type FloatDirection = 'floatUp' | 'floatDown';
|
|
436
|
+
|
|
437
|
+
declare interface FlyAnimationConfig extends BaseAnimationConfig {
|
|
438
|
+
type: 'flyin' | 'flyout';
|
|
439
|
+
direction?: FlyDirection;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
declare type FlyDirection = 'top' | 'bottom' | 'left' | 'right' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
443
|
+
|
|
444
|
+
declare type GrowShrinkAmount = 'tiny' | 'smaller' | 'larger' | 'huge';
|
|
445
|
+
|
|
446
|
+
declare interface GrowShrinkAnimationConfig extends BaseAnimationConfig {
|
|
447
|
+
type: 'growshrink';
|
|
448
|
+
direction?: GrowShrinkDirection;
|
|
449
|
+
amount?: GrowShrinkAmount;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
declare type GrowShrinkDirection = 'horizontal' | 'vertical' | 'both';
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* An editor alignment guide. MS-PPTX §2.4.3.3 `CT_ExtendedGuide` / §2.4.3.4 `CT_ExtendedGuideList`.
|
|
456
|
+
*/
|
|
457
|
+
declare interface GuideProps {
|
|
458
|
+
/** Unique id within the parent guide list (MS-PPTX §2.4.3.3). Auto-assigned 1-based if omitted. */
|
|
459
|
+
id?: number;
|
|
460
|
+
/** Guide orientation. @default 'vert' */
|
|
461
|
+
orient?: 'horz' | 'vert';
|
|
462
|
+
/** Position from the left (vert) or top (horz) edge of the slide, in inches. @default 0 */
|
|
463
|
+
pos?: number;
|
|
464
|
+
/** Guide line color (hex). @default theme accent */
|
|
465
|
+
color?: HexColor;
|
|
466
|
+
/** Optional guide name. */
|
|
467
|
+
name?: string;
|
|
468
|
+
/** Mark as user-drawn. @default true */
|
|
469
|
+
userDrawn?: boolean;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
declare type HAlign = 'left' | 'center' | 'right' | 'justify';
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Color in Hex format
|
|
476
|
+
* @example 'FF3399'
|
|
477
|
+
*/
|
|
478
|
+
declare type HexColor = string;
|
|
479
|
+
|
|
480
|
+
declare interface HyperlinkProps {
|
|
481
|
+
/**
|
|
482
|
+
* Relationship id - set by the library during export
|
|
483
|
+
* @internal
|
|
484
|
+
*/
|
|
485
|
+
_rId?: number;
|
|
486
|
+
/**
|
|
487
|
+
* Slide number to link to
|
|
488
|
+
*/
|
|
489
|
+
slide?: number;
|
|
490
|
+
/**
|
|
491
|
+
* Url to link to
|
|
492
|
+
*/
|
|
493
|
+
url?: string;
|
|
494
|
+
/**
|
|
495
|
+
* Hyperlink Tooltip
|
|
496
|
+
*/
|
|
497
|
+
tooltip?: string;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
declare interface IChartAreaProps extends IChartPropsFillLine {
|
|
501
|
+
/**
|
|
502
|
+
* Whether the chart area has rounded corners
|
|
503
|
+
* - only applies when either `fill` or `border` is used
|
|
504
|
+
* @default true
|
|
505
|
+
* @since v3.11
|
|
506
|
+
*/
|
|
507
|
+
roundedCorners?: boolean;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
declare interface IChartMulti {
|
|
511
|
+
type: CHART_NAME;
|
|
512
|
+
data: IOptsChartData[];
|
|
513
|
+
options: IChartOptsLib;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
declare interface IChartOpts extends IChartPropsAxisCat, IChartPropsAxisSer, IChartPropsAxisVal, IChartPropsBase, IChartPropsChartBar, IChartPropsChartDoughnut, IChartPropsChartLine, IChartPropsChartPie, IChartPropsChartRadar, IChartPropsDataLabel, IChartPropsDataTable, IChartPropsLegend, IChartPropsTitle, ObjectNameProps, OptsChartGridLine, PositionProps {
|
|
517
|
+
/**
|
|
518
|
+
* Alt Text value ("How would you describe this object and its contents to someone who is blind?")
|
|
519
|
+
* - PowerPoint: [right-click on a chart] > "Edit Alt Text..."
|
|
520
|
+
*/
|
|
521
|
+
altText?: string;
|
|
522
|
+
/**
|
|
523
|
+
* Animation configuration
|
|
524
|
+
* - Can be a simple animation name or full configuration object
|
|
525
|
+
* @example 'fadein'
|
|
526
|
+
* @example { type: 'flyin', direction: 'left', duration: 1000 }
|
|
527
|
+
*/
|
|
528
|
+
animation?: string | AnimationConfig;
|
|
529
|
+
/** Opt-in MS-PPTX nvPr design/classification extensions. */
|
|
530
|
+
designElem?: boolean;
|
|
531
|
+
classification?: ClassificationOutcome;
|
|
532
|
+
designPr?: DesignerProps;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
declare interface IChartOptsLib extends IChartOpts {
|
|
536
|
+
_type?: CHART_NAME | IChartMulti[];
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
declare interface IChartPropsAxisCat {
|
|
540
|
+
/**
|
|
541
|
+
* Multi-Chart prop: array of cat axes
|
|
542
|
+
*/
|
|
543
|
+
catAxes?: IChartPropsAxisCat[];
|
|
544
|
+
catAxisBaseTimeUnit?: string;
|
|
545
|
+
catAxisCrossesAt?: number | 'autoZero';
|
|
546
|
+
catAxisHidden?: boolean;
|
|
547
|
+
catAxisLabelColor?: string;
|
|
548
|
+
catAxisLabelFontBold?: boolean;
|
|
549
|
+
catAxisLabelFontFace?: string;
|
|
550
|
+
catAxisLabelFontItalic?: boolean;
|
|
551
|
+
catAxisLabelFontSize?: number;
|
|
552
|
+
catAxisLabelFrequency?: string;
|
|
553
|
+
catAxisLabelPos?: 'none' | 'low' | 'high' | 'nextTo';
|
|
554
|
+
catAxisLabelRotate?: number;
|
|
555
|
+
catAxisLineColor?: string;
|
|
556
|
+
catAxisLineShow?: boolean;
|
|
557
|
+
catAxisLineSize?: number;
|
|
558
|
+
catAxisLineStyle?: 'solid' | 'dash' | 'dot';
|
|
559
|
+
catAxisMajorTickMark?: ChartAxisTickMark;
|
|
560
|
+
catAxisMajorTimeUnit?: string;
|
|
561
|
+
catAxisMajorUnit?: number;
|
|
562
|
+
catAxisMaxVal?: number;
|
|
563
|
+
catAxisMinorTickMark?: ChartAxisTickMark;
|
|
564
|
+
catAxisMinorTimeUnit?: string;
|
|
565
|
+
catAxisMinorUnit?: number;
|
|
566
|
+
catAxisMinVal?: number;
|
|
567
|
+
/** @since v3.11.0 */
|
|
568
|
+
catAxisMultiLevelLabels?: boolean;
|
|
569
|
+
catAxisOrientation?: 'minMax';
|
|
570
|
+
catAxisTitle?: string;
|
|
571
|
+
catAxisTitleColor?: string;
|
|
572
|
+
catAxisTitleFontFace?: string;
|
|
573
|
+
catAxisTitleFontSize?: number;
|
|
574
|
+
catAxisTitleRotate?: number;
|
|
575
|
+
catGridLine?: OptsChartGridLine;
|
|
576
|
+
catLabelFormatCode?: string;
|
|
577
|
+
/**
|
|
578
|
+
* Whether data should use secondary category axis (instead of primary)
|
|
579
|
+
* @default false
|
|
580
|
+
*/
|
|
581
|
+
secondaryCatAxis?: boolean;
|
|
582
|
+
showCatAxisTitle?: boolean;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
declare interface IChartPropsAxisSer {
|
|
586
|
+
serAxisBaseTimeUnit?: string;
|
|
587
|
+
serAxisHidden?: boolean;
|
|
588
|
+
serAxisLabelColor?: string;
|
|
589
|
+
serAxisLabelFontBold?: boolean;
|
|
590
|
+
serAxisLabelFontFace?: string;
|
|
591
|
+
serAxisLabelFontItalic?: boolean;
|
|
592
|
+
serAxisLabelFontSize?: number;
|
|
593
|
+
serAxisLabelFrequency?: string;
|
|
594
|
+
serAxisLabelPos?: 'none' | 'low' | 'high' | 'nextTo';
|
|
595
|
+
serAxisLineColor?: string;
|
|
596
|
+
serAxisLineShow?: boolean;
|
|
597
|
+
serAxisMajorTimeUnit?: string;
|
|
598
|
+
serAxisMajorUnit?: number;
|
|
599
|
+
serAxisMinorTimeUnit?: string;
|
|
600
|
+
serAxisMinorUnit?: number;
|
|
601
|
+
serAxisOrientation?: string;
|
|
602
|
+
serAxisTitle?: string;
|
|
603
|
+
serAxisTitleColor?: string;
|
|
604
|
+
serAxisTitleFontFace?: string;
|
|
605
|
+
serAxisTitleFontSize?: number;
|
|
606
|
+
serAxisTitleRotate?: number;
|
|
607
|
+
serGridLine?: OptsChartGridLine;
|
|
608
|
+
serLabelFormatCode?: string;
|
|
609
|
+
showSerAxisTitle?: boolean;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
declare interface IChartPropsAxisVal {
|
|
613
|
+
/**
|
|
614
|
+
* Whether data should use secondary value axis (instead of primary)
|
|
615
|
+
* @default false
|
|
616
|
+
*/
|
|
617
|
+
secondaryValAxis?: boolean;
|
|
618
|
+
showValAxisTitle?: boolean;
|
|
619
|
+
/**
|
|
620
|
+
* Multi-Chart prop: array of val axes
|
|
621
|
+
*/
|
|
622
|
+
valAxes?: IChartPropsAxisVal[];
|
|
623
|
+
valAxisCrossesAt?: number | 'autoZero';
|
|
624
|
+
valAxisDisplayUnit?: 'billions' | 'hundredMillions' | 'hundreds' | 'hundredThousands' | 'millions' | 'tenMillions' | 'tenThousands' | 'thousands' | 'trillions';
|
|
625
|
+
valAxisDisplayUnitLabel?: boolean;
|
|
626
|
+
valAxisHidden?: boolean;
|
|
627
|
+
valAxisLabelColor?: string;
|
|
628
|
+
valAxisLabelFontBold?: boolean;
|
|
629
|
+
valAxisLabelFontFace?: string;
|
|
630
|
+
valAxisLabelFontItalic?: boolean;
|
|
631
|
+
valAxisLabelFontSize?: number;
|
|
632
|
+
valAxisLabelFormatCode?: string;
|
|
633
|
+
valAxisLabelPos?: 'none' | 'low' | 'high' | 'nextTo';
|
|
634
|
+
valAxisLabelRotate?: number;
|
|
635
|
+
valAxisLineColor?: string;
|
|
636
|
+
valAxisLineShow?: boolean;
|
|
637
|
+
valAxisLineSize?: number;
|
|
638
|
+
valAxisLineStyle?: 'solid' | 'dash' | 'dot';
|
|
639
|
+
/**
|
|
640
|
+
* PowerPoint: Format Axis > Axis Options > Logarithmic scale - Base
|
|
641
|
+
* - range: 2-99
|
|
642
|
+
* @since v3.5.0
|
|
643
|
+
*/
|
|
644
|
+
valAxisLogScaleBase?: number;
|
|
645
|
+
valAxisMajorTickMark?: ChartAxisTickMark;
|
|
646
|
+
valAxisMajorUnit?: number;
|
|
647
|
+
valAxisMaxVal?: number;
|
|
648
|
+
valAxisMinorTickMark?: ChartAxisTickMark;
|
|
649
|
+
valAxisMinVal?: number;
|
|
650
|
+
valAxisOrientation?: 'minMax';
|
|
651
|
+
valAxisTitle?: string;
|
|
652
|
+
valAxisTitleColor?: string;
|
|
653
|
+
valAxisTitleFontFace?: string;
|
|
654
|
+
valAxisTitleFontSize?: number;
|
|
655
|
+
valAxisTitleRotate?: number;
|
|
656
|
+
valGridLine?: OptsChartGridLine;
|
|
657
|
+
/**
|
|
658
|
+
* Value label format code
|
|
659
|
+
* - this also directs Data Table formatting
|
|
660
|
+
* @since v3.3.0
|
|
661
|
+
* @example '#%' // round percent
|
|
662
|
+
* @example '0.00%' // shows values as '0.00%'
|
|
663
|
+
* @example '$0.00' // shows values as '$0.00'
|
|
664
|
+
*/
|
|
665
|
+
valLabelFormatCode?: string;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
declare interface IChartPropsBase {
|
|
669
|
+
/**
|
|
670
|
+
* Axis position
|
|
671
|
+
*/
|
|
672
|
+
axisPos?: 'b' | 'l' | 'r' | 't';
|
|
673
|
+
/**
|
|
674
|
+
* Series / marker colors
|
|
675
|
+
* - use `'transparent'` for no fill on series and line/radar/scatter markers
|
|
676
|
+
* @example ['4472C4', 'transparent', 'ED7D31']
|
|
677
|
+
*/
|
|
678
|
+
chartColors?: Color[];
|
|
679
|
+
/**
|
|
680
|
+
* opacity (0 - 100)
|
|
681
|
+
* @example 50 // 50% opaque
|
|
682
|
+
*/
|
|
683
|
+
chartColorsOpacity?: number;
|
|
684
|
+
dataBorder?: BorderProps;
|
|
685
|
+
displayBlanksAs?: string;
|
|
686
|
+
invertedColors?: Color[];
|
|
687
|
+
lang?: string;
|
|
688
|
+
layout?: PositionProps;
|
|
689
|
+
shadow?: ShadowProps;
|
|
690
|
+
/**
|
|
691
|
+
* @default false
|
|
692
|
+
*/
|
|
693
|
+
showLabel?: boolean;
|
|
694
|
+
showLeaderLines?: boolean;
|
|
695
|
+
/**
|
|
696
|
+
* Show "Value From Cells" data labels (`c15:showDataLabelsRange`)
|
|
697
|
+
* - auto-enabled when a series has `labelsRange`
|
|
698
|
+
* @default false
|
|
699
|
+
* @see Toukyh/fix-custom-label
|
|
700
|
+
*/
|
|
701
|
+
showDataLabelsRange?: boolean;
|
|
702
|
+
/**
|
|
703
|
+
* @default false
|
|
704
|
+
*/
|
|
705
|
+
showLegend?: boolean;
|
|
706
|
+
/**
|
|
707
|
+
* @default false
|
|
708
|
+
*/
|
|
709
|
+
showPercent?: boolean;
|
|
710
|
+
/**
|
|
711
|
+
* @default false
|
|
712
|
+
*/
|
|
713
|
+
showSerName?: boolean;
|
|
714
|
+
/**
|
|
715
|
+
* @default false
|
|
716
|
+
*/
|
|
717
|
+
showTitle?: boolean;
|
|
718
|
+
/**
|
|
719
|
+
* @default false
|
|
720
|
+
*/
|
|
721
|
+
showValue?: boolean;
|
|
722
|
+
/**
|
|
723
|
+
* 3D Perspecitve
|
|
724
|
+
* - range: 0-120
|
|
725
|
+
* @default 30
|
|
726
|
+
*/
|
|
727
|
+
v3DPerspective?: number;
|
|
728
|
+
/**
|
|
729
|
+
* Right Angle Axes
|
|
730
|
+
* - Shows chart from first-person perspective
|
|
731
|
+
* - Overrides `v3DPerspective` when true
|
|
732
|
+
* - PowerPoint: Chart Options > 3-D Rotation
|
|
733
|
+
* @default false
|
|
734
|
+
*/
|
|
735
|
+
v3DRAngAx?: boolean;
|
|
736
|
+
/**
|
|
737
|
+
* X Rotation
|
|
738
|
+
* - PowerPoint: Chart Options > 3-D Rotation
|
|
739
|
+
* - range: 0-359.9
|
|
740
|
+
* @default 30
|
|
741
|
+
*/
|
|
742
|
+
v3DRotX?: number;
|
|
743
|
+
/**
|
|
744
|
+
* Y Rotation
|
|
745
|
+
* - range: 0-359.9
|
|
746
|
+
* @default 30
|
|
747
|
+
*/
|
|
748
|
+
v3DRotY?: number;
|
|
749
|
+
/**
|
|
750
|
+
* PowerPoint: Format Chart Area (Fill & Border/Line)
|
|
751
|
+
* @since v3.11
|
|
752
|
+
*/
|
|
753
|
+
chartArea?: IChartAreaProps;
|
|
754
|
+
/**
|
|
755
|
+
* PowerPoint: Format Plot Area (Fill & Border/Line)
|
|
756
|
+
* @since v3.11
|
|
757
|
+
*/
|
|
758
|
+
plotArea?: IChartPropsFillLine;
|
|
759
|
+
/**
|
|
760
|
+
* @deprecated v3.11.0 - use `plotArea.border`
|
|
761
|
+
*/
|
|
762
|
+
border?: BorderProps;
|
|
763
|
+
/**
|
|
764
|
+
* @deprecated v3.11.0 - use `plotArea.fill`
|
|
765
|
+
*/
|
|
766
|
+
fill?: HexColor;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
declare interface IChartPropsChartBar {
|
|
770
|
+
/**
|
|
771
|
+
* 3D bar shape
|
|
772
|
+
* @default 'box'
|
|
773
|
+
*/
|
|
774
|
+
bar3DShape?: 'box' | 'cone' | 'coneToMax' | 'cylinder' | 'pyramid' | 'pyramidToMax';
|
|
775
|
+
/**
|
|
776
|
+
* Bar direction - horizontal bars or vertical columns
|
|
777
|
+
* @default 'col'
|
|
778
|
+
*/
|
|
779
|
+
barDir?: 'bar' | 'col';
|
|
780
|
+
barGapDepthPct?: number;
|
|
781
|
+
/**
|
|
782
|
+
* MS-PPT > Format chart > Format Data Point > Series Options > "Gap Width"
|
|
783
|
+
* - width (percent)
|
|
784
|
+
* - range: `0`-`500`
|
|
785
|
+
* @default 150
|
|
786
|
+
*/
|
|
787
|
+
barGapWidthPct?: number;
|
|
788
|
+
/**
|
|
789
|
+
* Bar grouping
|
|
790
|
+
* @default 'clustered'
|
|
791
|
+
*/
|
|
792
|
+
barGrouping?: 'clustered' | 'percentStacked' | 'stacked' | 'standard';
|
|
793
|
+
/**
|
|
794
|
+
* MS-PPT > Format chart > Format Data Point > Series Options > "Series Overlap"
|
|
795
|
+
* - overlap (percent)
|
|
796
|
+
* - range: `-100`-`100`
|
|
797
|
+
* @since v3.9.0
|
|
798
|
+
* @default 0
|
|
799
|
+
*/
|
|
800
|
+
barOverlapPct?: number;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
declare interface IChartPropsChartDoughnut {
|
|
804
|
+
dataNoEffects?: boolean;
|
|
805
|
+
holeSize?: number;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
declare interface IChartPropsChartLine {
|
|
809
|
+
/**
|
|
810
|
+
* MS-PPT > Chart format > Format Data Series > Line > Cap type
|
|
811
|
+
* - line cap type
|
|
812
|
+
* @default flat
|
|
813
|
+
*/
|
|
814
|
+
lineCap?: ChartLineCap;
|
|
815
|
+
/**
|
|
816
|
+
* MS-PPT > Chart format > Format Data Series > Marker Options > Built-in > Type
|
|
817
|
+
* - line dash type
|
|
818
|
+
* @default solid
|
|
819
|
+
*/
|
|
820
|
+
lineDash?: 'dash' | 'dashDot' | 'lgDash' | 'lgDashDot' | 'lgDashDotDot' | 'solid' | 'sysDash' | 'sysDot';
|
|
821
|
+
/**
|
|
822
|
+
* MS-PPT > Chart format > Format Data Series > Marker Options > Built-in > Type
|
|
823
|
+
* - marker type
|
|
824
|
+
* @default circle
|
|
825
|
+
*/
|
|
826
|
+
lineDataSymbol?: 'circle' | 'dash' | 'diamond' | 'dot' | 'none' | 'square' | 'triangle';
|
|
827
|
+
/**
|
|
828
|
+
* MS-PPT > Chart format > Format Data Series > [Marker Options] > Border > Color
|
|
829
|
+
* - border color
|
|
830
|
+
* @default circle
|
|
831
|
+
*/
|
|
832
|
+
lineDataSymbolLineColor?: string;
|
|
833
|
+
/**
|
|
834
|
+
* MS-PPT > Chart format > Format Data Series > [Marker Options] > Border > Width
|
|
835
|
+
* - border width (points)
|
|
836
|
+
* @default 0.75
|
|
837
|
+
*/
|
|
838
|
+
lineDataSymbolLineSize?: number;
|
|
839
|
+
/**
|
|
840
|
+
* MS-PPT > Chart format > Format Data Series > Marker Options > Built-in > Size
|
|
841
|
+
* - marker size
|
|
842
|
+
* - range: 2-72
|
|
843
|
+
* @default 6
|
|
844
|
+
*/
|
|
845
|
+
lineDataSymbolSize?: number;
|
|
846
|
+
/**
|
|
847
|
+
* MS-PPT > Chart format > Format Data Series > Line > Width
|
|
848
|
+
* - line width (points)
|
|
849
|
+
* - range: 0-1584
|
|
850
|
+
* @default 2
|
|
851
|
+
*/
|
|
852
|
+
lineSize?: number;
|
|
853
|
+
/**
|
|
854
|
+
* MS-PPT > Chart format > Format Data Series > Line > Smoothed line
|
|
855
|
+
* - "Smoothed line"
|
|
856
|
+
* @default false
|
|
857
|
+
*/
|
|
858
|
+
lineSmooth?: boolean;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
declare interface IChartPropsChartPie {
|
|
862
|
+
dataNoEffects?: boolean;
|
|
863
|
+
/**
|
|
864
|
+
* MS-PPT > Format chart > Format Data Series > Series Options > "Angle of first slice"
|
|
865
|
+
* - angle (degrees)
|
|
866
|
+
* - range: 0-359
|
|
867
|
+
* @since v3.4.0
|
|
868
|
+
* @default 0
|
|
869
|
+
*/
|
|
870
|
+
firstSliceAng?: number;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
declare interface IChartPropsChartRadar {
|
|
874
|
+
/**
|
|
875
|
+
* MS-PPT > Chart Type > Waterfall
|
|
876
|
+
* - radar chart type
|
|
877
|
+
* @default standard
|
|
878
|
+
*/
|
|
879
|
+
radarStyle?: 'standard' | 'marker' | 'filled';
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
declare interface IChartPropsDataLabel {
|
|
883
|
+
dataLabelBkgrdColors?: boolean;
|
|
884
|
+
dataLabelColor?: string;
|
|
885
|
+
dataLabelFontBold?: boolean;
|
|
886
|
+
dataLabelFontFace?: string;
|
|
887
|
+
dataLabelFontItalic?: boolean;
|
|
888
|
+
dataLabelFontSize?: number;
|
|
889
|
+
/**
|
|
890
|
+
* Data label format code
|
|
891
|
+
* @example '#%' // round percent
|
|
892
|
+
* @example '0.00%' // shows values as '0.00%'
|
|
893
|
+
* @example '$0.00' // shows values as '$0.00'
|
|
894
|
+
*/
|
|
895
|
+
dataLabelFormatCode?: string;
|
|
896
|
+
dataLabelFormatScatter?: 'custom' | 'customXY' | 'XY';
|
|
897
|
+
/**
|
|
898
|
+
* Data label position
|
|
899
|
+
* - friendly names are translated to their OOXML codes; the codes themselves are still accepted
|
|
900
|
+
* - valid values differ per chart type: a value the chart type does not support is dropped with a
|
|
901
|
+
* console warning rather than producing a file PowerPoint asks to repair
|
|
902
|
+
* @example 'outsideEnd' // bar/column, pie
|
|
903
|
+
* @example 'top' // line, scatter, radar
|
|
904
|
+
*/
|
|
905
|
+
dataLabelPosition?: 'bottom' | 'center' | 'left' | 'right' | 'top' | 'insideEnd' | 'insideBase' | 'outsideEnd' | 'bestFit' | 'b' | 'ctr' | 'l' | 'r' | 't' | 'inEnd' | 'inBase' | 'outEnd';
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
declare interface IChartPropsDataTable {
|
|
909
|
+
dataTableFontSize?: number;
|
|
910
|
+
/**
|
|
911
|
+
* Data table format code
|
|
912
|
+
* @since v3.3.0
|
|
913
|
+
* @example '#%' // round percent
|
|
914
|
+
* @example '0.00%' // shows values as '0.00%'
|
|
915
|
+
* @example '$0.00' // shows values as '$0.00'
|
|
916
|
+
*/
|
|
917
|
+
dataTableFormatCode?: string;
|
|
918
|
+
/**
|
|
919
|
+
* Whether to show a data table adjacent to the chart
|
|
920
|
+
* @default false
|
|
921
|
+
*/
|
|
922
|
+
showDataTable?: boolean;
|
|
923
|
+
showDataTableHorzBorder?: boolean;
|
|
924
|
+
showDataTableKeys?: boolean;
|
|
925
|
+
showDataTableOutline?: boolean;
|
|
926
|
+
showDataTableVertBorder?: boolean;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
declare interface IChartPropsFillLine {
|
|
930
|
+
/**
|
|
931
|
+
* PowerPoint: Format Chart Area/Plot > Border ["Line"]
|
|
932
|
+
* @example border: {color: 'FF0000', pt: 1} // hex RGB color, 1 pt line
|
|
933
|
+
*/
|
|
934
|
+
border?: BorderProps;
|
|
935
|
+
/**
|
|
936
|
+
* PowerPoint: Format Chart Area/Plot Area > Fill
|
|
937
|
+
* @example fill: {color: '696969'} // hex RGB color value
|
|
938
|
+
* @example fill: {color: pptx.SchemeColor.background2} // Theme color value
|
|
939
|
+
* @example fill: {transparency: 50} // 50% transparency
|
|
940
|
+
*/
|
|
941
|
+
fill?: ShapeFillProps;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
declare interface IChartPropsLegend {
|
|
945
|
+
legendColor?: string;
|
|
946
|
+
legendFontFace?: string;
|
|
947
|
+
legendFontSize?: number;
|
|
948
|
+
legendPos?: 'b' | 'l' | 'r' | 't' | 'tr';
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
declare interface IChartPropsTitle extends TextBaseProps {
|
|
952
|
+
title?: string;
|
|
953
|
+
titleAlign?: string;
|
|
954
|
+
titleBold?: boolean;
|
|
955
|
+
titleColor?: string;
|
|
956
|
+
titleFontFace?: string;
|
|
957
|
+
titleFontSize?: number;
|
|
958
|
+
titleItalic?: boolean;
|
|
959
|
+
titlePos?: {
|
|
960
|
+
x: number;
|
|
961
|
+
y: number;
|
|
962
|
+
};
|
|
963
|
+
titleRotate?: number;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
declare interface ImageProps extends PositionProps, DataOrPathProps, ObjectNameProps, AppearOnClickProps, NvPrExtensionProps {
|
|
967
|
+
/**
|
|
968
|
+
* Alt Text value ("How would you describe this object and its contents to someone who is blind?")
|
|
969
|
+
* - PowerPoint: [right-click on an image] > "Edit Alt Text..."
|
|
970
|
+
*/
|
|
971
|
+
altText?: string;
|
|
972
|
+
/**
|
|
973
|
+
* Flip horizontally?
|
|
974
|
+
* @default false
|
|
975
|
+
*/
|
|
976
|
+
flipH?: boolean;
|
|
977
|
+
/**
|
|
978
|
+
* Flip vertical?
|
|
979
|
+
* @default false
|
|
980
|
+
*/
|
|
981
|
+
flipV?: boolean;
|
|
982
|
+
hyperlink?: HyperlinkProps;
|
|
983
|
+
/**
|
|
984
|
+
* Image outline/border (a picture frame)
|
|
985
|
+
* @example { color: '696969', width: 2 } // 2pt dim-gray border
|
|
986
|
+
*/
|
|
987
|
+
line?: ShapeLineProps;
|
|
988
|
+
/**
|
|
989
|
+
* Placeholder type
|
|
990
|
+
* - values: 'body' | 'header' | 'footer' | 'title' | et. al.
|
|
991
|
+
* @example 'body'
|
|
992
|
+
* @see https://docs.microsoft.com/en-us/office/vba/api/powerpoint.ppplaceholdertype
|
|
993
|
+
*/
|
|
994
|
+
placeholder?: string;
|
|
995
|
+
/**
|
|
996
|
+
* Image rotation (degrees)
|
|
997
|
+
* - range: -360 to 360
|
|
998
|
+
* @default 0
|
|
999
|
+
* @example 180 // rotate image 180 degrees
|
|
1000
|
+
*/
|
|
1001
|
+
rotate?: number;
|
|
1002
|
+
/**
|
|
1003
|
+
* Enable elliptical (circle/oval) image cropping
|
|
1004
|
+
* - When `rectRadius` is set, that takes precedence (rounded rectangle)
|
|
1005
|
+
* @default false
|
|
1006
|
+
*/
|
|
1007
|
+
rounding?: boolean;
|
|
1008
|
+
/**
|
|
1009
|
+
* Crop image to a rounded rectangle (from niranjan-uma-shankar/feature/html-to-pptx)
|
|
1010
|
+
* - values: 0.0 to 1.0 (0 = sharp corners, 1 = maximum rounding)
|
|
1011
|
+
* - when set, emits `prst="roundRect"` with an adjustment guide
|
|
1012
|
+
* @example 0.2 // 20% corner radius
|
|
1013
|
+
*/
|
|
1014
|
+
rectRadius?: number;
|
|
1015
|
+
/**
|
|
1016
|
+
* Shadow Props
|
|
1017
|
+
* - MS-PPT > Format Picture > Shadow
|
|
1018
|
+
* @example
|
|
1019
|
+
* { type: 'outer', color: '000000', opacity: 0.5, blur: 20, offset: 20, angle: 270 }
|
|
1020
|
+
*/
|
|
1021
|
+
shadow?: ShadowProps;
|
|
1022
|
+
/**
|
|
1023
|
+
* Glow effect (`a:glow` in shape `effectLst`)
|
|
1024
|
+
*/
|
|
1025
|
+
glow?: TextGlowProps;
|
|
1026
|
+
/**
|
|
1027
|
+
* Soft-edge effect (`a:softEdge`)
|
|
1028
|
+
*/
|
|
1029
|
+
softEdge?: SoftEdgeProps;
|
|
1030
|
+
/**
|
|
1031
|
+
* Reflection effect (`a:reflection`)
|
|
1032
|
+
*/
|
|
1033
|
+
reflection?: ReflectionProps;
|
|
1034
|
+
/**
|
|
1035
|
+
* Image sizing options
|
|
1036
|
+
*/
|
|
1037
|
+
sizing?: {
|
|
1038
|
+
/**
|
|
1039
|
+
* Sizing type
|
|
1040
|
+
*/
|
|
1041
|
+
type: 'contain' | 'cover' | 'crop';
|
|
1042
|
+
/**
|
|
1043
|
+
* Image width
|
|
1044
|
+
* - inches or percentage
|
|
1045
|
+
* @example 10.25 // position in inches
|
|
1046
|
+
* @example '75%' // position as percentage of slide size
|
|
1047
|
+
*/
|
|
1048
|
+
w: Coord;
|
|
1049
|
+
/**
|
|
1050
|
+
* Image height
|
|
1051
|
+
* - inches or percentage
|
|
1052
|
+
* @example 10.25 // position in inches
|
|
1053
|
+
* @example '75%' // position as percentage of slide size
|
|
1054
|
+
*/
|
|
1055
|
+
h: Coord;
|
|
1056
|
+
/**
|
|
1057
|
+
* Offset from left to crop image
|
|
1058
|
+
* - `crop` only
|
|
1059
|
+
* - inches or percentage
|
|
1060
|
+
* @example 10.25 // position in inches
|
|
1061
|
+
* @example '75%' // position as percentage of slide size
|
|
1062
|
+
*/
|
|
1063
|
+
x?: Coord;
|
|
1064
|
+
/**
|
|
1065
|
+
* Offset from top to crop image
|
|
1066
|
+
* - `crop` only
|
|
1067
|
+
* - inches or percentage
|
|
1068
|
+
* @example 10.25 // position in inches
|
|
1069
|
+
* @example '75%' // position as percentage of slide size
|
|
1070
|
+
*/
|
|
1071
|
+
y?: Coord;
|
|
1072
|
+
};
|
|
1073
|
+
/**
|
|
1074
|
+
* Transparency (percent)
|
|
1075
|
+
* - MS-PPT > Format Picture > Picture > Picture Transparency > Transparency
|
|
1076
|
+
* - range: 0-100
|
|
1077
|
+
* @default 0
|
|
1078
|
+
* @example 25 // 25% transparent
|
|
1079
|
+
*/
|
|
1080
|
+
transparency?: number;
|
|
1081
|
+
/**
|
|
1082
|
+
* Recolor SVG paths (Martin-N)
|
|
1083
|
+
* - Hex `color` only; replaces existing `#RRGGBB` fills, or adds `fill` on bare `<path>` elements
|
|
1084
|
+
* @example { color: 'FF0000' }
|
|
1085
|
+
*/
|
|
1086
|
+
fill?: ShapeFillProps;
|
|
1087
|
+
/**
|
|
1088
|
+
* Animation configuration
|
|
1089
|
+
* - Can be a simple animation name or full configuration object
|
|
1090
|
+
* @example 'fadein'
|
|
1091
|
+
* @example { type: 'flyin', direction: 'left', duration: 1000 }
|
|
1092
|
+
*/
|
|
1093
|
+
animation?: string | AnimationConfig;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
/** Ink content part (MS-PPTX §2.2.3.1). Opt-in; emits `mc:AlternateContent` with a `pic` fallback. */
|
|
1097
|
+
declare interface InkProps extends ContentPartProps {
|
|
1098
|
+
/** Cover/thumbnail image for the mandated `pic` fallback (base64 data URI). */
|
|
1099
|
+
cover?: string;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
declare interface IOptsChartData extends OptsChartData {
|
|
1103
|
+
labels?: string[][];
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
declare interface IPresentationProps extends PresentationProps {
|
|
1107
|
+
sections: SectionProps[];
|
|
1108
|
+
slideLayouts: SlideLayout[];
|
|
1109
|
+
slides: PresSlide[];
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
declare interface ISlideObject {
|
|
1113
|
+
_type: SLIDE_OBJECT_TYPES;
|
|
1114
|
+
options?: ObjectOptions;
|
|
1115
|
+
text?: TextProps[];
|
|
1116
|
+
arrTabRows?: TableCell[][];
|
|
1117
|
+
chartRid?: number;
|
|
1118
|
+
image?: string;
|
|
1119
|
+
imageRid?: number;
|
|
1120
|
+
hyperlink?: HyperlinkProps;
|
|
1121
|
+
media?: string;
|
|
1122
|
+
mtype?: MediaType;
|
|
1123
|
+
mediaRid?: number;
|
|
1124
|
+
shape?: SHAPE_NAME;
|
|
1125
|
+
/** zoom kind: slide | section | summary @internal */
|
|
1126
|
+
zoomKind?: 'slide' | 'section' | 'summary';
|
|
1127
|
+
/** 1-based target slide number (slide zoom) @internal */
|
|
1128
|
+
zoomSlideNum?: number;
|
|
1129
|
+
/** target section title (section/summary zoom) @internal */
|
|
1130
|
+
zoomSectionTitle?: string;
|
|
1131
|
+
/** resolved target section GUID (braced `{…}`), set at build @internal */
|
|
1132
|
+
zoomSectionId?: string;
|
|
1133
|
+
/** cover/thumbnail image rId @internal */
|
|
1134
|
+
zoomRid?: number;
|
|
1135
|
+
/** content-part / ink / Office App relationship id @internal */
|
|
1136
|
+
contentPartRid?: number;
|
|
1137
|
+
/** content-part kind: generic (`sp` fallback) or ink (`pic` fallback) @internal */
|
|
1138
|
+
contentPartKind?: 'content' | 'ink';
|
|
1139
|
+
/** cover/thumbnail image rId for ink / Office App pic fallback @internal */
|
|
1140
|
+
coverRid?: number;
|
|
1141
|
+
/** MS-PPTX §2.3.2.2 bwMode on contentPart @internal */
|
|
1142
|
+
contentPartBwMode?: string;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
declare interface ISlideRel {
|
|
1146
|
+
type: SLIDE_OBJECT_TYPES;
|
|
1147
|
+
Target: string;
|
|
1148
|
+
fileName?: string;
|
|
1149
|
+
data: any[] | string;
|
|
1150
|
+
opts?: IChartOpts;
|
|
1151
|
+
path?: string;
|
|
1152
|
+
extn?: string;
|
|
1153
|
+
globalId?: number;
|
|
1154
|
+
rId: number;
|
|
1155
|
+
/** Override content type for extension parts (content-part / ink / Office App) */
|
|
1156
|
+
contentType?: string;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
declare interface ISlideRelChart extends OptsChartData {
|
|
1160
|
+
type: CHART_NAME | IChartMulti[];
|
|
1161
|
+
opts: IChartOptsLib;
|
|
1162
|
+
data: IOptsChartData[];
|
|
1163
|
+
rId: number;
|
|
1164
|
+
Target: string;
|
|
1165
|
+
globalId: number;
|
|
1166
|
+
fileName: string;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
declare interface ISlideRelMedia {
|
|
1170
|
+
type: string;
|
|
1171
|
+
opts?: MediaProps;
|
|
1172
|
+
path?: string;
|
|
1173
|
+
extn?: string;
|
|
1174
|
+
data?: string | ArrayBuffer;
|
|
1175
|
+
/** used to indicate that a media file has already been read/enocded (PERF) */
|
|
1176
|
+
isDuplicate?: boolean;
|
|
1177
|
+
isSvgPng?: boolean;
|
|
1178
|
+
/** SVG path recolor (Martin-N) — applied when encoding SVG media */
|
|
1179
|
+
fill?: ShapeFillProps;
|
|
1180
|
+
svgSize?: {
|
|
1181
|
+
w: number;
|
|
1182
|
+
h: number;
|
|
1183
|
+
};
|
|
1184
|
+
rId: number;
|
|
1185
|
+
Target: string;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
declare type JSZIP_OUTPUT_TYPE = 'arraybuffer' | 'base64' | 'binarystring' | 'blob' | 'nodebuffer' | 'uint8array';
|
|
1189
|
+
|
|
1190
|
+
/** A laser-pointer sample. MS-PPTX §2.3.3.9 `CT_LaserTracePoint`. `t` is ms; `x`/`y` are EMU. */
|
|
1191
|
+
declare interface LaserTracePoint {
|
|
1192
|
+
/** Time from the start of the slide timeline, in milliseconds. */
|
|
1193
|
+
t: number;
|
|
1194
|
+
/** Horizontal location in EMU from the top-left of the slide. */
|
|
1195
|
+
x: number;
|
|
1196
|
+
/** Vertical location in EMU from the top-left of the slide. */
|
|
1197
|
+
y: number;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
declare type Margin = number | [number, number, number, number];
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Add media (audio/video) to slide
|
|
1204
|
+
* @requires either `link` or `path`
|
|
1205
|
+
*/
|
|
1206
|
+
declare interface MediaProps extends PositionProps, DataOrPathProps, ObjectNameProps, AppearOnClickProps, NvPrExtensionProps {
|
|
1207
|
+
/**
|
|
1208
|
+
* Media type
|
|
1209
|
+
* - Use 'online' to embed a YouTube video (only supported in recent versions of PowerPoint)
|
|
1210
|
+
*/
|
|
1211
|
+
type: MediaType;
|
|
1212
|
+
/**
|
|
1213
|
+
* Cover image
|
|
1214
|
+
* @since 3.9.0
|
|
1215
|
+
* @default "play button" image, gray background
|
|
1216
|
+
*/
|
|
1217
|
+
cover?: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* media file extension
|
|
1220
|
+
* - use when the media file path does not already have an extension, ex: "/folder/SomeSong"
|
|
1221
|
+
* @since 3.9.0
|
|
1222
|
+
* @default extension from file provided
|
|
1223
|
+
*/
|
|
1224
|
+
extn?: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* Animation configuration
|
|
1227
|
+
* - Can be a simple animation name or full configuration object
|
|
1228
|
+
* @example 'fadein'
|
|
1229
|
+
* @example { type: 'flyin', direction: 'left', duration: 1000 }
|
|
1230
|
+
*/
|
|
1231
|
+
animation?: string | AnimationConfig;
|
|
1232
|
+
/**
|
|
1233
|
+
* video embed link
|
|
1234
|
+
* - works with YouTube
|
|
1235
|
+
* - other sites may not show correctly in PowerPoint
|
|
1236
|
+
* @example 'https://www.youtube.com/embed/Dph6ynRVyUc' // embed a youtube video
|
|
1237
|
+
*/
|
|
1238
|
+
link?: string;
|
|
1239
|
+
/**
|
|
1240
|
+
* full or local path
|
|
1241
|
+
* @example 'https://freesounds/simpsons/bart.mp3' // embed mp3 audio clip from server
|
|
1242
|
+
* @example '/sounds/simpsons_haha.mp3' // embed mp3 audio clip from local directory
|
|
1243
|
+
*/
|
|
1244
|
+
path?: string;
|
|
1245
|
+
/**
|
|
1246
|
+
* Trim playback start/end (milliseconds). MS-PPTX §2.3.3.18 `p14:media/p14:trim`.
|
|
1247
|
+
* @example { st: 1000, end: 500 } // skip first 1s and last 0.5s
|
|
1248
|
+
*/
|
|
1249
|
+
trim?: {
|
|
1250
|
+
st?: number;
|
|
1251
|
+
end?: number;
|
|
1252
|
+
};
|
|
1253
|
+
/**
|
|
1254
|
+
* Audio fade in/out durations (milliseconds). MS-PPTX §2.3.3.15 `p14:media/p14:fade`.
|
|
1255
|
+
* @example { in: 500, out: 1000 }
|
|
1256
|
+
*/
|
|
1257
|
+
fade?: {
|
|
1258
|
+
in?: number;
|
|
1259
|
+
out?: number;
|
|
1260
|
+
};
|
|
1261
|
+
/**
|
|
1262
|
+
* Media bookmarks (name + ms timestamp). MS-PPTX §2.3.3.11/12 `p14:media/p14:bmkLst`.
|
|
1263
|
+
* @example [{ name: 'chorus', time: 30000 }]
|
|
1264
|
+
*/
|
|
1265
|
+
bookmarks?: {
|
|
1266
|
+
name: string;
|
|
1267
|
+
time: number;
|
|
1268
|
+
}[];
|
|
1269
|
+
/**
|
|
1270
|
+
* Mark the shape as a narration recording. MS-PPTX §2.2.14 `isNarration`.
|
|
1271
|
+
* @default false
|
|
1272
|
+
*/
|
|
1273
|
+
isNarration?: boolean;
|
|
1274
|
+
/**
|
|
1275
|
+
* Start playing the media automatically when the slide is shown (no click needed).
|
|
1276
|
+
* Implemented via the slide timing tree (`p:timing`) as a `p:video`/`p:audio` media node
|
|
1277
|
+
* whose start condition has `delay="0"` (ECMA-376 §19.5 `CT_TLMediaNode` / MS-PPTX §2.3.3).
|
|
1278
|
+
*
|
|
1279
|
+
* Playback options (`autoplay`, `loop`, `fullScreen`, `mute`) are additive. Omitted/`false`
|
|
1280
|
+
* is the default: click-to-play (`delay="indefinite"`), play once, windowed, unmuted.
|
|
1281
|
+
* A timing-tree media node is emitted only when at least one option is `true`.
|
|
1282
|
+
*
|
|
1283
|
+
* Invalid (thrown by `addMedia`): `fullScreen` on `type: 'audio'` (`fullScrn` exists only on
|
|
1284
|
+
* `CT_TLMediaNodeVideo`); any of these four on `type: 'online'` (linked videos have no
|
|
1285
|
+
* embedded timing-tree media node).
|
|
1286
|
+
* @default false (plays on click)
|
|
1287
|
+
*/
|
|
1288
|
+
autoplay?: boolean;
|
|
1289
|
+
/**
|
|
1290
|
+
* Loop the media until stopped ("Loop until Stopped" in the PowerPoint Playback tab).
|
|
1291
|
+
* Sets `repeatCount="indefinite"` on the media node's `cTn` (ECMA-376 §19.5.33).
|
|
1292
|
+
* @default false
|
|
1293
|
+
*/
|
|
1294
|
+
loop?: boolean;
|
|
1295
|
+
/**
|
|
1296
|
+
* Play the video full-screen (`p:video@fullScrn`, ECMA-376 §19.5.92 `CT_TLMediaNodeVideo`).
|
|
1297
|
+
* Invalid on `type: 'audio'` and `type: 'online'`.
|
|
1298
|
+
* @default false
|
|
1299
|
+
*/
|
|
1300
|
+
fullScreen?: boolean;
|
|
1301
|
+
/**
|
|
1302
|
+
* Mute the media's audio (`p:cMediaNode@mute`, ECMA-376 §19.5.30 `CT_TLCommonMediaNodeData`).
|
|
1303
|
+
* Invalid on `type: 'online'`.
|
|
1304
|
+
* @default false
|
|
1305
|
+
*/
|
|
1306
|
+
mute?: boolean;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
declare type MediaType = 'audio' | 'online' | 'video';
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* Theme/hex color with DrawingML color transforms (`a:tint`, `a:shade`, `a:lumMod`, …)
|
|
1313
|
+
* - Percent fields are 0-100 (written as OOXML 0-100000)
|
|
1314
|
+
* - `hue` / `hueOff` are degrees (written as OOXML fixed-angle = deg × 60000)
|
|
1315
|
+
* @example { baseColor: 'accent1', tint: 40 }
|
|
1316
|
+
* @example { baseColor: 'FF0000', shade: 50, alpha: 80 }
|
|
1317
|
+
*/
|
|
1318
|
+
declare interface ModifiedThemeColor {
|
|
1319
|
+
baseColor: HexColor | ThemeColor;
|
|
1320
|
+
/** Opacity percent 0-100 (OOXML `a:alpha`) */
|
|
1321
|
+
alpha?: number;
|
|
1322
|
+
alphaMod?: number;
|
|
1323
|
+
alphaOff?: number;
|
|
1324
|
+
blue?: number;
|
|
1325
|
+
blueMod?: number;
|
|
1326
|
+
blueOff?: number;
|
|
1327
|
+
green?: number;
|
|
1328
|
+
greenMod?: number;
|
|
1329
|
+
greenOff?: number;
|
|
1330
|
+
red?: number;
|
|
1331
|
+
redMod?: number;
|
|
1332
|
+
redOff?: number;
|
|
1333
|
+
/** Hue in degrees 0-359 (OOXML `a:hue`) */
|
|
1334
|
+
hue?: number;
|
|
1335
|
+
/** Hue modulation percent 0-100 */
|
|
1336
|
+
hueMod?: number;
|
|
1337
|
+
/** Hue offset in degrees */
|
|
1338
|
+
hueOff?: number;
|
|
1339
|
+
lum?: number;
|
|
1340
|
+
lumMod?: number;
|
|
1341
|
+
lumOff?: number;
|
|
1342
|
+
sat?: number;
|
|
1343
|
+
satMod?: number;
|
|
1344
|
+
satOff?: number;
|
|
1345
|
+
shade?: number;
|
|
1346
|
+
tint?: number;
|
|
1347
|
+
comp?: boolean;
|
|
1348
|
+
gray?: boolean;
|
|
1349
|
+
inv?: boolean;
|
|
1350
|
+
gamma?: boolean;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* Opt-in MS-PPTX nvPr extensions: designElem (§2.2.17), classification (§2.2.18),
|
|
1355
|
+
* designPr (§2.2.19), and phTypeExt (§2.22). Classification is never defaulted.
|
|
1356
|
+
*/
|
|
1357
|
+
declare interface NvPrExtensionProps {
|
|
1358
|
+
/**
|
|
1359
|
+
* Mark the object as a Designer design element. MS-PPTX §2.5.1.1 `designElem`.
|
|
1360
|
+
* Emitted on `p:nvPr` extLst URI `{386F3935-93C4-4BCD-93E2-E3B085C9AB24}`.
|
|
1361
|
+
*/
|
|
1362
|
+
designElem?: boolean;
|
|
1363
|
+
/**
|
|
1364
|
+
* Classification / compliance outcome. MS-PPTX §2.15.1.1 `classification`.
|
|
1365
|
+
* Emitted only when set. URI `{1162E1C5-73C7-4A58-AE30-91384D911F3F}`.
|
|
1366
|
+
*/
|
|
1367
|
+
classification?: ClassificationOutcome;
|
|
1368
|
+
/**
|
|
1369
|
+
* Designer drawing properties. MS-PPTX §2.17.1.1 `designPr`.
|
|
1370
|
+
* URI `{E7BDC344-281C-4309-B0C6-D0EE65EED2A8}`.
|
|
1371
|
+
*/
|
|
1372
|
+
designPr?: DesignerProps;
|
|
1373
|
+
/**
|
|
1374
|
+
* Modern placeholder type (`cameo` / `unknown`). MS-PPTX §2.22.1.1 `phTypeExt`.
|
|
1375
|
+
* Nested under `p:ph` extLst URI `{56F484CC-4922-43CF-B6FB-B326C6A72FC8}`.
|
|
1376
|
+
*/
|
|
1377
|
+
phTypeExt?: PlaceholderTypeExt;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
declare interface ObjectNameProps {
|
|
1381
|
+
/**
|
|
1382
|
+
* Object name
|
|
1383
|
+
* - used instead of default "Object N" name
|
|
1384
|
+
* - PowerPoint: Home > Arrange > Selection Pane...
|
|
1385
|
+
* @since v3.10.0
|
|
1386
|
+
* @default 'Object 1'
|
|
1387
|
+
* @example 'Antenna Design 9'
|
|
1388
|
+
*/
|
|
1389
|
+
objectName?: string;
|
|
1390
|
+
/**
|
|
1391
|
+
* Explicit DrawingML shape id (`p:cNvPr@id`)
|
|
1392
|
+
* - Required when other shapes attach connectors via `line.sourceId` / `line.targetId`
|
|
1393
|
+
* - Must be unique on the slide; defaults to `slideObjectIndex + 2` when omitted
|
|
1394
|
+
* @see ZentoSoft/PptxGenJS connectors
|
|
1395
|
+
* @example 20
|
|
1396
|
+
*/
|
|
1397
|
+
sId?: number;
|
|
1398
|
+
/**
|
|
1399
|
+
* Shape modification identifier (MS-PPTX §2.3.1.19 `p14:modId` on `nvPr`).
|
|
1400
|
+
* Updated each time the shape is modified; MUST be unique on the slide.
|
|
1401
|
+
* Opt-in — omitted unless set. @example 1579011935
|
|
1402
|
+
*/
|
|
1403
|
+
modId?: number;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
declare interface ObjectOptions extends ImageProps, PositionProps, ShapeProps, TableCellProps, TextPropsOptions {
|
|
1407
|
+
_placeholderIdx?: number;
|
|
1408
|
+
_placeholderType?: PLACEHOLDER_TYPE;
|
|
1409
|
+
/** image added without `w`/`h`: size it from the image itself during export @internal */
|
|
1410
|
+
_sizeFromImage?: boolean;
|
|
1411
|
+
cx?: Coord;
|
|
1412
|
+
cy?: Coord;
|
|
1413
|
+
margin?: Margin;
|
|
1414
|
+
colW?: number | number[];
|
|
1415
|
+
rowH?: number | number[];
|
|
1416
|
+
trim?: {
|
|
1417
|
+
st?: number;
|
|
1418
|
+
end?: number;
|
|
1419
|
+
};
|
|
1420
|
+
fade?: {
|
|
1421
|
+
in?: number;
|
|
1422
|
+
out?: number;
|
|
1423
|
+
};
|
|
1424
|
+
bookmarks?: {
|
|
1425
|
+
name: string;
|
|
1426
|
+
time: number;
|
|
1427
|
+
}[];
|
|
1428
|
+
isNarration?: boolean;
|
|
1429
|
+
autoplay?: boolean;
|
|
1430
|
+
loop?: boolean;
|
|
1431
|
+
fullScreen?: boolean;
|
|
1432
|
+
mute?: boolean;
|
|
1433
|
+
returnToParent?: boolean;
|
|
1434
|
+
showBg?: boolean;
|
|
1435
|
+
transitionDur?: number;
|
|
1436
|
+
zoomTitle?: string;
|
|
1437
|
+
zoomDescr?: string;
|
|
1438
|
+
offsetFactorX?: number;
|
|
1439
|
+
offsetFactorY?: number;
|
|
1440
|
+
scaleFactorX?: number;
|
|
1441
|
+
scaleFactorY?: number;
|
|
1442
|
+
designElem?: boolean;
|
|
1443
|
+
classification?: ClassificationOutcome;
|
|
1444
|
+
designPr?: DesignerProps;
|
|
1445
|
+
phTypeExt?: PlaceholderTypeExt;
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
/** An Office App / content add-in (MS-PPTX §2.2.13, MS-OWEXML webextensionref). */
|
|
1449
|
+
declare interface OfficeAppProps extends PositionProps, ObjectNameProps {
|
|
1450
|
+
/** Instance id on `we:webextension`. Generated when omitted. */
|
|
1451
|
+
id?: string;
|
|
1452
|
+
/** Primary catalog reference (required). */
|
|
1453
|
+
reference: OfficeAppReference;
|
|
1454
|
+
/** Custom properties written to `we:properties`. */
|
|
1455
|
+
properties?: Record<string, string> | Array<{
|
|
1456
|
+
name: string;
|
|
1457
|
+
value: string;
|
|
1458
|
+
}>;
|
|
1459
|
+
/** When true, the add-in is non-interactive (`frozen`). */
|
|
1460
|
+
frozen?: boolean;
|
|
1461
|
+
/** Cover/thumbnail image for the mandated `pic` fallback (base64 data URI). */
|
|
1462
|
+
cover?: string;
|
|
1463
|
+
/** Optional alt text. */
|
|
1464
|
+
altText?: string;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
/** Catalog reference for an Office Add-in (MS-OWEXML CT_OsfWebExtensionReference). */
|
|
1468
|
+
declare interface OfficeAppReference {
|
|
1469
|
+
/** Add-in id within the catalog provider. */
|
|
1470
|
+
id: string;
|
|
1471
|
+
/** Add-in version. @default '1.0.0.0' */
|
|
1472
|
+
version?: string;
|
|
1473
|
+
/** Marketplace / store instance. */
|
|
1474
|
+
store?: string;
|
|
1475
|
+
/** Marketplace type. @default SPCatalog */
|
|
1476
|
+
storeType?: OfficeAppStoreType | string;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
/** MS-OWEXML CT_OsfWebExtensionReference `storeType` values. */
|
|
1480
|
+
declare type OfficeAppStoreType = 'OMEX' | 'SPCatalog' | 'SPApp' | 'Exchange' | 'FileSystem' | 'Registry' | 'ExCatalog' | 'WOPICatalog';
|
|
1481
|
+
|
|
1482
|
+
declare interface OptsChartData {
|
|
1483
|
+
_dataIndex?: number;
|
|
1484
|
+
/**
|
|
1485
|
+
* category labels
|
|
1486
|
+
* @example ['Year 2000', 'Year 2010', 'Year 2020'] // single-level category axes labels
|
|
1487
|
+
* @example [['Year 2000', 'Year 2010', 'Year 2020'], ['Decades', '', '']] // multi-level category axes labels
|
|
1488
|
+
* @since `labels` string[][] type added v3.11.0
|
|
1489
|
+
*/
|
|
1490
|
+
labels?: string[] | string[][];
|
|
1491
|
+
/**
|
|
1492
|
+
* series name
|
|
1493
|
+
* @example 'Locations'
|
|
1494
|
+
*/
|
|
1495
|
+
name?: string;
|
|
1496
|
+
/**
|
|
1497
|
+
* bubble sizes
|
|
1498
|
+
* @example [5, 1, 5, 1]
|
|
1499
|
+
*/
|
|
1500
|
+
sizes?: number[];
|
|
1501
|
+
/**
|
|
1502
|
+
* category values
|
|
1503
|
+
* @example [2000, 2010, 2020]
|
|
1504
|
+
*/
|
|
1505
|
+
values?: number[];
|
|
1506
|
+
/**
|
|
1507
|
+
* Per-point custom Y error-bar magnitudes (symmetric plus/minus)
|
|
1508
|
+
* - emits DrawingML `<c:errBars>` with `errValType="cust"`
|
|
1509
|
+
* - values are packed into columns after all series in the embedded workbook
|
|
1510
|
+
* @example [0.5, 0.3, 0.8]
|
|
1511
|
+
* @see LanPodder/master
|
|
1512
|
+
*/
|
|
1513
|
+
errorrate?: number[];
|
|
1514
|
+
/**
|
|
1515
|
+
* Series color - overrides the `chartColors` cycle for this series only
|
|
1516
|
+
* - hex color or the string `'transparent'`
|
|
1517
|
+
* - pie/doughnut charts colour each data point rather than each series: use `chartColors` for those
|
|
1518
|
+
* @example 'FF0000' // this series is red, the rest follow `chartColors`
|
|
1519
|
+
*/
|
|
1520
|
+
color?: string;
|
|
1521
|
+
/**
|
|
1522
|
+
* Per-point custom data label text (replaces the numeric value label for that index)
|
|
1523
|
+
* - sparse arrays are allowed: only defined string entries emit a custom `<c:dLbl>`
|
|
1524
|
+
* - other points keep series-level `<c:dLbls>` defaults
|
|
1525
|
+
* @example ['Q1', 'Q2', 'Q3', 'Q4']
|
|
1526
|
+
* @example [undefined, 'Peak'] // only the second point is overridden
|
|
1527
|
+
* @since v4.1.2
|
|
1528
|
+
*/
|
|
1529
|
+
dataLabels?: Array<string | undefined>;
|
|
1530
|
+
/**
|
|
1531
|
+
* "Value From Cells" data labels (DrawingML `c15:datalabelsRange`)
|
|
1532
|
+
* - PowerPoint: Chart Design > Add Chart Element > Data Labels > More Options > Value From Cells
|
|
1533
|
+
* - distinct from `dataLabels` (rich-text `<c:dLbl>`); use this for the Excel-linked range path
|
|
1534
|
+
* @example ['10 units', '20 units', '30 units']
|
|
1535
|
+
* @see Toukyh/fix-custom-label
|
|
1536
|
+
*/
|
|
1537
|
+
labelsRange?: string[];
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
declare interface OptsChartGridLine {
|
|
1541
|
+
/**
|
|
1542
|
+
* MS-PPT > Chart format > Format Major Gridlines > Line > Cap type
|
|
1543
|
+
* - line cap type
|
|
1544
|
+
* @default flat
|
|
1545
|
+
*/
|
|
1546
|
+
cap?: ChartLineCap;
|
|
1547
|
+
/**
|
|
1548
|
+
* Gridline color (`HexColor`, `ThemeColor`, or `ModifiedThemeColor`)
|
|
1549
|
+
* - widened to `Color` so `IChartOpts` can extend both this and `IChartPropsTitle`
|
|
1550
|
+
* (`TextBaseProps.color` is also `Color` after theme-color support)
|
|
1551
|
+
* @example 'FF3399'
|
|
1552
|
+
*/
|
|
1553
|
+
color?: Color;
|
|
1554
|
+
/**
|
|
1555
|
+
* Gridline size (points)
|
|
1556
|
+
*/
|
|
1557
|
+
size?: number;
|
|
1558
|
+
/**
|
|
1559
|
+
* Gridline style
|
|
1560
|
+
*/
|
|
1561
|
+
style?: 'solid' | 'dash' | 'dot' | 'none';
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
declare enum OutputType {
|
|
1565
|
+
'arraybuffer' = "arraybuffer",
|
|
1566
|
+
'base64' = "base64",
|
|
1567
|
+
'binarystring' = "binarystring",
|
|
1568
|
+
'blob' = "blob",
|
|
1569
|
+
'nodebuffer' = "nodebuffer",
|
|
1570
|
+
'uint8array' = "uint8array"
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
declare type PathAnimation = 'pathdown' | 'patharcdown' | 'pathturnright' | 'pathcircle' | 'pathzigzag';
|
|
1574
|
+
|
|
1575
|
+
declare type PLACEHOLDER_TYPE = 'title' | 'body' | 'pic' | 'chart' | 'tbl' | 'media';
|
|
1576
|
+
|
|
1577
|
+
declare interface PlaceholderProps extends PositionProps, TextBaseProps, NvPrExtensionProps {
|
|
1578
|
+
name: string;
|
|
1579
|
+
type: PLACEHOLDER_TYPE;
|
|
1580
|
+
/**
|
|
1581
|
+
* margin (points)
|
|
1582
|
+
*/
|
|
1583
|
+
margin?: Margin;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
/** Modern placeholder type extension (`CT_PlaceholderTypeACB`, MS-PPTX §2.22). */
|
|
1587
|
+
declare type PlaceholderTypeExt = 'cameo' | 'unknown';
|
|
1588
|
+
|
|
1589
|
+
declare interface PositionProps {
|
|
1590
|
+
/**
|
|
1591
|
+
* Horizontal position
|
|
1592
|
+
* - inches or percentage
|
|
1593
|
+
* @example 10.25 // position in inches
|
|
1594
|
+
* @example '75%' // position as percentage of slide size
|
|
1595
|
+
*/
|
|
1596
|
+
x?: Coord;
|
|
1597
|
+
/**
|
|
1598
|
+
* Vertical position
|
|
1599
|
+
* - inches or percentage
|
|
1600
|
+
* @example 10.25 // position in inches
|
|
1601
|
+
* @example '75%' // position as percentage of slide size
|
|
1602
|
+
*/
|
|
1603
|
+
y?: Coord;
|
|
1604
|
+
/**
|
|
1605
|
+
* Height
|
|
1606
|
+
* - inches or percentage
|
|
1607
|
+
* @example 10.25 // height in inches
|
|
1608
|
+
* @example '75%' // height as percentage of slide size
|
|
1609
|
+
*/
|
|
1610
|
+
h?: Coord;
|
|
1611
|
+
/**
|
|
1612
|
+
* Width
|
|
1613
|
+
* - inches or percentage
|
|
1614
|
+
* @example 10.25 // width in inches
|
|
1615
|
+
* @example '75%' // width as percentage of slide size
|
|
1616
|
+
*/
|
|
1617
|
+
w?: Coord;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
declare class PptxGenJS implements IPresentationProps {
|
|
1621
|
+
/**
|
|
1622
|
+
* Presentation layout name
|
|
1623
|
+
* Standard layouts:
|
|
1624
|
+
* - 'LAYOUT_4x3' (10" x 7.5")
|
|
1625
|
+
* - 'LAYOUT_16x9' (10" x 5.625")
|
|
1626
|
+
* - 'LAYOUT_16x10' (10" x 6.25")
|
|
1627
|
+
* - 'LAYOUT_WIDE' (13.33" x 7.5")
|
|
1628
|
+
* Custom layouts:
|
|
1629
|
+
* Use `pptx.defineLayout()` to create custom layouts (e.g.: 'A4')
|
|
1630
|
+
* @type {string}
|
|
1631
|
+
* @see https://support.office.com/en-us/article/Change-the-size-of-your-slides-040a811c-be43-40b9-8d04-0de5ed79987e
|
|
1632
|
+
*/
|
|
1633
|
+
private _layout;
|
|
1634
|
+
set layout(value: string);
|
|
1635
|
+
get layout(): string;
|
|
1636
|
+
/**
|
|
1637
|
+
* PptxGenJS Library Version
|
|
1638
|
+
*/
|
|
1639
|
+
private readonly _version;
|
|
1640
|
+
get version(): string;
|
|
1641
|
+
/**
|
|
1642
|
+
* @type {string}
|
|
1643
|
+
*/
|
|
1644
|
+
private _author;
|
|
1645
|
+
set author(value: string);
|
|
1646
|
+
get author(): string;
|
|
1647
|
+
/**
|
|
1648
|
+
* @type {string}
|
|
1649
|
+
*/
|
|
1650
|
+
private _company;
|
|
1651
|
+
set company(value: string);
|
|
1652
|
+
get company(): string;
|
|
1653
|
+
/**
|
|
1654
|
+
* @type {string}
|
|
1655
|
+
* @note the `revision` value must be a whole number only (without "." or "," - otherwise, PPT will throw errors upon opening!)
|
|
1656
|
+
*/
|
|
1657
|
+
private _revision;
|
|
1658
|
+
set revision(value: string);
|
|
1659
|
+
get revision(): string;
|
|
1660
|
+
/**
|
|
1661
|
+
* @type {string}
|
|
1662
|
+
*/
|
|
1663
|
+
private _subject;
|
|
1664
|
+
set subject(value: string);
|
|
1665
|
+
get subject(): string;
|
|
1666
|
+
/**
|
|
1667
|
+
* @type {ThemeProps}
|
|
1668
|
+
*/
|
|
1669
|
+
private _theme?;
|
|
1670
|
+
set theme(value: ThemeProps);
|
|
1671
|
+
get theme(): ThemeProps | undefined;
|
|
1672
|
+
/**
|
|
1673
|
+
* @type {string}
|
|
1674
|
+
*/
|
|
1675
|
+
private _title;
|
|
1676
|
+
set title(value: string);
|
|
1677
|
+
get title(): string;
|
|
1678
|
+
/**
|
|
1679
|
+
* Whether Right-to-Left (RTL) mode is enabled
|
|
1680
|
+
* @type {boolean}
|
|
1681
|
+
*/
|
|
1682
|
+
private _rtlMode;
|
|
1683
|
+
set rtlMode(value: boolean);
|
|
1684
|
+
get rtlMode(): boolean;
|
|
1685
|
+
/**
|
|
1686
|
+
* Starting slide number (`p:presentation@firstSlideNum`)
|
|
1687
|
+
* @default 1
|
|
1688
|
+
* @example pptx.firstSlideNum = 0
|
|
1689
|
+
*/
|
|
1690
|
+
private _firstSlideNum;
|
|
1691
|
+
get firstSlideNum(): number;
|
|
1692
|
+
set firstSlideNum(value: number);
|
|
1693
|
+
/**
|
|
1694
|
+
* Zip compression for exported files - document config applied by every export method
|
|
1695
|
+
* @default 'none'
|
|
1696
|
+
* @since v4.1.0
|
|
1697
|
+
*/
|
|
1698
|
+
private _compression;
|
|
1699
|
+
set compression(value: CompressionLevel);
|
|
1700
|
+
get compression(): CompressionLevel;
|
|
1701
|
+
/** master slide layout object */
|
|
1702
|
+
private readonly _masterSlide;
|
|
1703
|
+
get masterSlide(): PresSlide;
|
|
1704
|
+
/** this Presentation's Slide objects */
|
|
1705
|
+
private readonly _slides;
|
|
1706
|
+
get slides(): PresSlide[];
|
|
1707
|
+
/** this Presentation's sections */
|
|
1708
|
+
private readonly _sections;
|
|
1709
|
+
get sections(): SectionProps[];
|
|
1710
|
+
/**
|
|
1711
|
+
* Editor alignment guides (MS-PPTX §2.4.3.3). Emitted as `p15:sldGuideLst`.
|
|
1712
|
+
* @example pptx.guides = [{ orient: 'vert', pos: 3.5 }, { orient: 'horz', pos: 2 }]
|
|
1713
|
+
*/
|
|
1714
|
+
guides: GuideProps[];
|
|
1715
|
+
/** Default image DPI. MS-PPTX §2.3.1.5 `p14:defaultImageDpi` on `presentationPr`. */
|
|
1716
|
+
defaultImageDpi?: number;
|
|
1717
|
+
/** Discard image edit data on save. MS-PPTX §2.3.1.6 `p14:discardImageEditData`. */
|
|
1718
|
+
discardImageEditData?: boolean;
|
|
1719
|
+
/** Recommend opening read-only. MS-PPTX §2.14.1.1 `p1710:readonlyRecommended`. */
|
|
1720
|
+
readonlyRecommended?: boolean;
|
|
1721
|
+
/** Browse-mode status bar. MS-PPTX §2.3.1.2 `p14:browseMode` on `showPr`. */
|
|
1722
|
+
browseMode?: boolean;
|
|
1723
|
+
/** Laser-pointer color. MS-PPTX §2.3.1.16 `p14:laserClr` on `showPr`. */
|
|
1724
|
+
laserColor?: string;
|
|
1725
|
+
/**
|
|
1726
|
+
* Chart data-point properties and datalabels follow their cell references.
|
|
1727
|
+
* MS-PPTX §2.4.1.1 `chartTrackingRefBased` on `presentationPr` extLst.
|
|
1728
|
+
* @example pptx.chartTrackingRefBased = true
|
|
1729
|
+
*/
|
|
1730
|
+
chartTrackingRefBased?: boolean;
|
|
1731
|
+
/**
|
|
1732
|
+
* Notes-page alignment guides (MS-PPTX §2.4.1.3). Emitted as `p15:notesGuideLst`.
|
|
1733
|
+
* @example pptx.notesGuides = [{ orient: 'horz', pos: 2 }]
|
|
1734
|
+
*/
|
|
1735
|
+
notesGuides: GuideProps[];
|
|
1736
|
+
/**
|
|
1737
|
+
* Modern comment authors (MS-PPTX §2.16). Emitted to `ppt/authors.xml`.
|
|
1738
|
+
* Auto-populated from slide `addComment` author names if left empty.
|
|
1739
|
+
* @example pptx.commentAuthors = [{ name: 'Ada Lovelace', initials: 'AL' }]
|
|
1740
|
+
*/
|
|
1741
|
+
commentAuthors: CommentAuthorProps[];
|
|
1742
|
+
/**
|
|
1743
|
+
* Revision Information part (MS-PPTX §2.1.2). Opt-in — not emitted unless set.
|
|
1744
|
+
* @example pptx.revisionInfo = { clients: [{ id: 'app-1', v: 1, dt: '2024-08-15T00:00:00Z' }] }
|
|
1745
|
+
*/
|
|
1746
|
+
revisionInfo?: boolean | RevisionInfoProps;
|
|
1747
|
+
/**
|
|
1748
|
+
* Changes Information part (MS-PPTX §2.1.4). Opt-in — not emitted unless set.
|
|
1749
|
+
* @example pptx.changesInfo = true
|
|
1750
|
+
*/
|
|
1751
|
+
changesInfo?: boolean | ChangesInfoProps;
|
|
1752
|
+
/** slide layout definition objects, used for generating slide layout files */
|
|
1753
|
+
private readonly _slideLayouts;
|
|
1754
|
+
get slideLayouts(): SlideLayout[];
|
|
1755
|
+
private LAYOUTS;
|
|
1756
|
+
/** Fonts registered via addFont() — embedded into the PPTX on export */
|
|
1757
|
+
private readonly _embedFonts;
|
|
1758
|
+
private readonly _alignH;
|
|
1759
|
+
get AlignH(): typeof AlignH;
|
|
1760
|
+
private readonly _alignV;
|
|
1761
|
+
get AlignV(): typeof AlignV;
|
|
1762
|
+
private readonly _chartType;
|
|
1763
|
+
get ChartType(): typeof ChartType;
|
|
1764
|
+
private readonly _outputType;
|
|
1765
|
+
get OutputType(): typeof OutputType;
|
|
1766
|
+
private _presLayout;
|
|
1767
|
+
get presLayout(): PresLayout;
|
|
1768
|
+
private readonly _schemeColor;
|
|
1769
|
+
get SchemeColor(): typeof SchemeColor;
|
|
1770
|
+
private readonly _shapeType;
|
|
1771
|
+
get ShapeType(): typeof ShapeType;
|
|
1772
|
+
private readonly _transitionType;
|
|
1773
|
+
get TransitionType(): typeof TransitionType;
|
|
1774
|
+
private readonly _animationPreset;
|
|
1775
|
+
get AnimationPreset(): typeof AnimationPreset;
|
|
1776
|
+
/**
|
|
1777
|
+
* @depricated use `ChartType`
|
|
1778
|
+
*/
|
|
1779
|
+
private readonly _charts;
|
|
1780
|
+
get charts(): typeof CHART_TYPE;
|
|
1781
|
+
/**
|
|
1782
|
+
* @depricated use `SchemeColor`
|
|
1783
|
+
*/
|
|
1784
|
+
private readonly _colors;
|
|
1785
|
+
get colors(): typeof SCHEME_COLOR_NAMES;
|
|
1786
|
+
/**
|
|
1787
|
+
* @depricated use `ShapeType`
|
|
1788
|
+
*/
|
|
1789
|
+
private readonly _shapes;
|
|
1790
|
+
get shapes(): typeof SHAPE_TYPE;
|
|
1791
|
+
/** Connection-site helpers for connectors (`line.sourceAnchorPos` / `targetAnchorPos`) — ZentoSoft */
|
|
1792
|
+
private readonly _anchor;
|
|
1793
|
+
get anchor(): typeof ANCHOR;
|
|
1794
|
+
/** Alias of `anchor` (PascalCase, matches `ShapeType`) */
|
|
1795
|
+
get Anchor(): typeof ANCHOR;
|
|
1796
|
+
private _chartCounter;
|
|
1797
|
+
private readonly allocChartId;
|
|
1798
|
+
constructor();
|
|
1799
|
+
/**
|
|
1800
|
+
* Provides an API for `addTableDefinition` to create slides as needed for auto-paging
|
|
1801
|
+
* @param {AddSlideProps} options - slide masterName and/or sectionTitle
|
|
1802
|
+
* @return {PresSlide} new Slide
|
|
1803
|
+
*/
|
|
1804
|
+
private readonly addNewSlide;
|
|
1805
|
+
/**
|
|
1806
|
+
* Provides an API for `addTableDefinition` to get slide reference by number
|
|
1807
|
+
* @param {number} slideNum - slide number
|
|
1808
|
+
* @return {PresSlide} Slide
|
|
1809
|
+
* @since 3.0.0
|
|
1810
|
+
*/
|
|
1811
|
+
private readonly getSlide;
|
|
1812
|
+
/**
|
|
1813
|
+
* Enables the `Slide` class to set PptxGenJS [Presentation] master/layout slidenumbers
|
|
1814
|
+
* @param {SlideNumberProps} slideNum - slide number config
|
|
1815
|
+
*/
|
|
1816
|
+
private readonly setSlideNumber;
|
|
1817
|
+
/**
|
|
1818
|
+
* Create all chart and media rels for this Presentation
|
|
1819
|
+
* @param {PresSlide | SlideLayout} slide - slide with rels
|
|
1820
|
+
* @param {JSZip} zip - JSZip instance
|
|
1821
|
+
* @param {Promise<string>[]} chartPromises - promise array
|
|
1822
|
+
*/
|
|
1823
|
+
private readonly createChartMediaRels;
|
|
1824
|
+
/**
|
|
1825
|
+
* Create and export the .pptx file
|
|
1826
|
+
* @param {string} exportName - output file type
|
|
1827
|
+
* @param {Blob} blobContent - Blob content
|
|
1828
|
+
* @return {Promise<string>} Promise with file name
|
|
1829
|
+
*/
|
|
1830
|
+
private readonly writeFileToBrowser;
|
|
1831
|
+
/**
|
|
1832
|
+
* Create and export the .pptx file
|
|
1833
|
+
* @param {WRITE_OUTPUT_TYPE} outputType - output file type
|
|
1834
|
+
* @return {Promise<string | ArrayBuffer | Blob | Uint8Array>} Promise with data or stream (node) or filename (browser)
|
|
1835
|
+
*/
|
|
1836
|
+
private readonly exportPresentation;
|
|
1837
|
+
/**
|
|
1838
|
+
* Export the current Presentation to stream
|
|
1839
|
+
* @param {WriteBaseProps} props - output properties
|
|
1840
|
+
* @returns {Promise<string | ArrayBuffer | Blob | Uint8Array>} file stream
|
|
1841
|
+
*/
|
|
1842
|
+
stream(props?: WriteBaseProps): Promise<string | ArrayBuffer | Blob | Uint8Array>;
|
|
1843
|
+
/**
|
|
1844
|
+
* Export the current Presentation as JSZip content with the selected type
|
|
1845
|
+
* @param {WriteProps} props output properties
|
|
1846
|
+
* @returns {Promise<string | ArrayBuffer | Blob | Uint8Array>} file content in selected type
|
|
1847
|
+
*/
|
|
1848
|
+
write(props?: WriteProps | WRITE_OUTPUT_TYPE): Promise<string | ArrayBuffer | Blob | Uint8Array>;
|
|
1849
|
+
/**
|
|
1850
|
+
* Export the current Presentation.
|
|
1851
|
+
* Write the generated presentation to disk (Node) or trigger a download (browser).
|
|
1852
|
+
* @param {WriteFileProps} props - output file properties
|
|
1853
|
+
* @returns {Promise<string>} the presentation name
|
|
1854
|
+
*/
|
|
1855
|
+
writeFile(props?: WriteFileProps | string): Promise<string>;
|
|
1856
|
+
/**
|
|
1857
|
+
* Opt-in: register a custom font to embed in the exported PPTX.
|
|
1858
|
+
* Nothing is embedded unless this is called — the default write path
|
|
1859
|
+
* writes no Font parts, no fntdata content type, and no font relationships.
|
|
1860
|
+
* - Call before `write` / `writeFile` / `stream`
|
|
1861
|
+
* - Use the same `fontFace` name on text/shape options
|
|
1862
|
+
* - Caller must have a third-party license that permits embedding `fontFile`
|
|
1863
|
+
* @param {AddFontOptions} options - font face, file bytes, and format
|
|
1864
|
+
* @example await pptx.addFont({ fontFace: 'MyFont', fontFile: ttfBuffer, fontType: 'ttf' })
|
|
1865
|
+
*/
|
|
1866
|
+
addFont(options: AddFontOptions): Promise<void>;
|
|
1867
|
+
/**
|
|
1868
|
+
* Add a new Section to Presentation
|
|
1869
|
+
* @param {ISectionProps} section - section properties
|
|
1870
|
+
* @example pptx.addSection({ title:'Charts' });
|
|
1871
|
+
*/
|
|
1872
|
+
addSection(section: SectionProps): void;
|
|
1873
|
+
/**
|
|
1874
|
+
* Add a new Slide to Presentation
|
|
1875
|
+
* @param {AddSlideProps} options - slide options
|
|
1876
|
+
* @returns {PresSlide} the new Slide
|
|
1877
|
+
*/
|
|
1878
|
+
addSlide(options?: AddSlideProps): PresSlide;
|
|
1879
|
+
/**
|
|
1880
|
+
* Create a custom Slide Layout in any size
|
|
1881
|
+
* @param {DefineLayoutProps} layout - layout properties (`width`/`height` or `w`/`h`)
|
|
1882
|
+
* @example pptx.defineLayout({ name:'A3', width:16.5, height:11.7 });
|
|
1883
|
+
*/
|
|
1884
|
+
defineLayout(layout: DefineLayoutProps): void;
|
|
1885
|
+
/**
|
|
1886
|
+
* Create a new slide master [layout] for the Presentation
|
|
1887
|
+
* @param {SlideMasterProps} props - layout properties
|
|
1888
|
+
*/
|
|
1889
|
+
defineSlideMaster(props: SlideMasterProps): void;
|
|
1890
|
+
/**
|
|
1891
|
+
* Reproduces an HTML table as a PowerPoint table - including column widths, style, etc. - creates 1 or more slides as needed
|
|
1892
|
+
* @param {string} eleId - table HTML element ID
|
|
1893
|
+
* @param {TableToSlidesProps} options - generation options
|
|
1894
|
+
*/
|
|
1895
|
+
tableToSlides(eleId: string, options?: TableToSlidesProps): void;
|
|
1896
|
+
}
|
|
1897
|
+
export default PptxGenJS;
|
|
1898
|
+
|
|
1899
|
+
declare interface PresentationProps {
|
|
1900
|
+
author: string;
|
|
1901
|
+
company: string;
|
|
1902
|
+
/**
|
|
1903
|
+
* Zip compression for exported files
|
|
1904
|
+
* @default 'none'
|
|
1905
|
+
* @since v4.1.0
|
|
1906
|
+
*/
|
|
1907
|
+
compression: CompressionLevel;
|
|
1908
|
+
layout: string;
|
|
1909
|
+
masterSlide: PresSlide;
|
|
1910
|
+
/**
|
|
1911
|
+
* Presentation's layout
|
|
1912
|
+
* read-only
|
|
1913
|
+
*/
|
|
1914
|
+
presLayout: PresLayout;
|
|
1915
|
+
revision: string;
|
|
1916
|
+
/**
|
|
1917
|
+
* Whether to enable right-to-left mode
|
|
1918
|
+
* @default false
|
|
1919
|
+
*/
|
|
1920
|
+
rtlMode: boolean;
|
|
1921
|
+
/**
|
|
1922
|
+
* Starting slide number written to `ppt/presentation.xml` (`firstSlideNum`)
|
|
1923
|
+
* - PowerPoint: Design > Slide Size > Custom Slide Size > Number slides from
|
|
1924
|
+
* @default 1
|
|
1925
|
+
* @example 0 // first slide displays as "0"
|
|
1926
|
+
*/
|
|
1927
|
+
firstSlideNum: number;
|
|
1928
|
+
/**
|
|
1929
|
+
* Alignment guides shown in PowerPoint's editor (ruler guides). MS-PPTX §2.4.3.3 `CT_ExtendedGuide`.
|
|
1930
|
+
* Emitted as `p15:sldGuideLst` under `<p:presentation>` extLst.
|
|
1931
|
+
* @example [{ orient: 'vert', pos: 3.5 }, { orient: 'horz', pos: 2, color: 'FF0000' }] // pos in inches
|
|
1932
|
+
*/
|
|
1933
|
+
guides?: GuideProps[];
|
|
1934
|
+
/**
|
|
1935
|
+
* Alignment guides for notes page view. MS-PPTX §2.4.1.3 `notesGuideLst`.
|
|
1936
|
+
* Emitted as `p15:notesGuideLst` under `<p:presentation>` extLst.
|
|
1937
|
+
* @example [{ orient: 'vert', pos: 3.5 }]
|
|
1938
|
+
*/
|
|
1939
|
+
notesGuides?: GuideProps[];
|
|
1940
|
+
/**
|
|
1941
|
+
* Default DPI used when compressing/saving images. MS-PPTX §2.3.1.5 `defaultImageDpi`.
|
|
1942
|
+
* Only applies when image compression is on. @example 220
|
|
1943
|
+
*/
|
|
1944
|
+
defaultImageDpi?: number;
|
|
1945
|
+
/**
|
|
1946
|
+
* Discard image editing data (crop info, imgProps) on save. MS-PPTX §2.3.1.6 `discardImageEditData`.
|
|
1947
|
+
* @default false
|
|
1948
|
+
*/
|
|
1949
|
+
discardImageEditData?: boolean;
|
|
1950
|
+
/**
|
|
1951
|
+
* Recommend the document open read-only. MS-PPTX §2.14.1.1 `readonlyRecommended`.
|
|
1952
|
+
* @default false
|
|
1953
|
+
*/
|
|
1954
|
+
readonlyRecommended?: boolean;
|
|
1955
|
+
/**
|
|
1956
|
+
* Chart data-point properties and datalabels follow their cell references.
|
|
1957
|
+
* MS-PPTX §2.4.1.1 `chartTrackingRefBased` on `presentationPr` extLst
|
|
1958
|
+
* (`uri="{FD5EFAAD-0ECE-453E-9831-46B23BE46B34}"`). Opt-in; unset is not emitted.
|
|
1959
|
+
* @default unset
|
|
1960
|
+
*/
|
|
1961
|
+
chartTrackingRefBased?: boolean;
|
|
1962
|
+
/**
|
|
1963
|
+
* Status-bar visibility when the slide show is in browse mode.
|
|
1964
|
+
* MS-PPTX §2.3.1.2 `p14:browseMode` on `presentationPr/showPr`.
|
|
1965
|
+
*/
|
|
1966
|
+
browseMode?: boolean;
|
|
1967
|
+
/**
|
|
1968
|
+
* Laser-pointer color. MS-PPTX §2.3.1.16 `p14:laserClr` on `presentationPr/showPr`.
|
|
1969
|
+
* @example 'FF0000'
|
|
1970
|
+
*/
|
|
1971
|
+
laserColor?: HexColor;
|
|
1972
|
+
/**
|
|
1973
|
+
* Modern comment authors (MS-PPTX §2.16 `authorLst`). Emitted to `ppt/authors.xml`.
|
|
1974
|
+
* Comments reference authors by index. Auto-populated from slide comments if left empty.
|
|
1975
|
+
* @example [{ name: 'Ada Lovelace', initials: 'AL' }]
|
|
1976
|
+
*/
|
|
1977
|
+
commentAuthors?: CommentAuthorProps[];
|
|
1978
|
+
/**
|
|
1979
|
+
* Revision Information part (MS-PPTX §2.1.2 `revInfo`). Opt-in — omitted unless set.
|
|
1980
|
+
* `true` or `{}` emits an empty valid part; `clients` records collaborative revisions.
|
|
1981
|
+
* @example { clients: [{ id: 'app-1', v: 1, dt: '2024-08-15T00:00:00Z' }] }
|
|
1982
|
+
*/
|
|
1983
|
+
revisionInfo?: boolean | RevisionInfoProps;
|
|
1984
|
+
/**
|
|
1985
|
+
* Changes Information part (MS-PPTX §2.1.4 `chgInfo`). Opt-in — omitted unless set.
|
|
1986
|
+
* `true` or `{}` emits an empty valid part (zero-or-one cardinality).
|
|
1987
|
+
*/
|
|
1988
|
+
changesInfo?: boolean | ChangesInfoProps;
|
|
1989
|
+
subject: string;
|
|
1990
|
+
theme?: ThemeProps;
|
|
1991
|
+
title: string;
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
/**
|
|
1995
|
+
* OOXML preset pattern values for `a:pattFill`
|
|
1996
|
+
* @see ECMA-376 ST_PresetPatternVal
|
|
1997
|
+
* @see https://github.com/hakrueger/PptxGenJS/tree/pattern
|
|
1998
|
+
*/
|
|
1999
|
+
declare type PresetPatternValues = 'cross' | 'dkDnDiag' | 'dkHorz' | 'dkUpDiag' | 'dkVert' | 'dashDnDiag' | 'dashHorz' | 'dashUpDiag' | 'dashVert' | 'diagBrick' | 'diagCross' | 'divot' | 'dotGrid' | 'dotDmnd' | 'dnDiag' | 'horz' | 'horzBrick' | 'lgCheck' | 'lgConfetti' | 'lgGrid' | 'ltDnDiag' | 'ltHorz' | 'ltUpDiag' | 'ltVert' | 'narHorz' | 'narVert' | 'openDmnd' | 'pct5' | 'pct10' | 'pct20' | 'pct25' | 'pct30' | 'pct40' | 'pct50' | 'pct60' | 'pct70' | 'pct75' | 'pct80' | 'pct90' | 'plaid' | 'shingle' | 'smCheck' | 'smConfetti' | 'smGrid' | 'solidDmnd' | 'sphere' | 'trellis' | 'upDiag' | 'vert' | 'wave' | 'weave' | 'wdDnDiag' | 'wdUpDiag' | 'zigZag';
|
|
2000
|
+
|
|
2001
|
+
declare interface PresLayout {
|
|
2002
|
+
_sizeW?: number;
|
|
2003
|
+
_sizeH?: number;
|
|
2004
|
+
/**
|
|
2005
|
+
* Layout Name
|
|
2006
|
+
* @example 'LAYOUT_WIDE'
|
|
2007
|
+
*/
|
|
2008
|
+
name: string;
|
|
2009
|
+
width: number;
|
|
2010
|
+
height: number;
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
declare interface PresSlide extends SlideBaseProps {
|
|
2014
|
+
_rId: number;
|
|
2015
|
+
_slideLayout: SlideLayout;
|
|
2016
|
+
_slideId: number;
|
|
2017
|
+
addChart: (type: CHART_NAME | IChartMulti[], data: IOptsChartData[], options?: IChartOpts) => PresSlide;
|
|
2018
|
+
addImage: (options: ImageProps) => PresSlide;
|
|
2019
|
+
addMedia: (options: MediaProps) => PresSlide;
|
|
2020
|
+
addNotes: (notes: string) => PresSlide;
|
|
2021
|
+
addShape: (shapeName: SHAPE_NAME, options?: ShapeProps) => PresSlide;
|
|
2022
|
+
addTable: (tableRows: TableRow[], options?: TableProps) => PresSlide;
|
|
2023
|
+
addText: (text: string | TextProps[], options?: TextPropsOptions) => PresSlide;
|
|
2024
|
+
/**
|
|
2025
|
+
* Background color or image (`color` | `path` | `data`)
|
|
2026
|
+
* @example { color: 'FF3399' } - hex color
|
|
2027
|
+
* @example { color: 'FF3399', transparency:50 } - hex color with 50% transparency
|
|
2028
|
+
* @example { path: 'https://onedrives.com/myimg.png` } - retrieve image via URL
|
|
2029
|
+
* @example { path: '/home/gitbrent/images/myimg.png` } - retrieve image via local path
|
|
2030
|
+
* @example { data: 'image/png;base64,iVtDaDrF[...]=' } - base64 string
|
|
2031
|
+
* @since v3.3.0
|
|
2032
|
+
*/
|
|
2033
|
+
background?: BackgroundProps;
|
|
2034
|
+
/**
|
|
2035
|
+
* Default text color (hex format)
|
|
2036
|
+
* @example 'FF3399'
|
|
2037
|
+
* @default '000000' (DEF_FONT_COLOR)
|
|
2038
|
+
*/
|
|
2039
|
+
color?: HexColor;
|
|
2040
|
+
/**
|
|
2041
|
+
* Whether slide is hidden
|
|
2042
|
+
* @default false
|
|
2043
|
+
*/
|
|
2044
|
+
hidden?: boolean;
|
|
2045
|
+
/**
|
|
2046
|
+
* Slide number options
|
|
2047
|
+
*/
|
|
2048
|
+
slideNumber?: SlideNumberProps;
|
|
2049
|
+
/**
|
|
2050
|
+
* Slide transition. Emitted as `<p:transition>` (ECMA-376 §19.3.1.50 `CT_SlideTransition`).
|
|
2051
|
+
* @example { type: 'fade', duration: 700 }
|
|
2052
|
+
* @example { type: 'push', direction: 'l', advClick: false, advTm: 3000 }
|
|
2053
|
+
*/
|
|
2054
|
+
transition?: SlideTransitionProps;
|
|
2055
|
+
/**
|
|
2056
|
+
* Add a slide transition (convenience method; sets `transition`).
|
|
2057
|
+
* @example slide.addTransition({ type: 'morph', duration: 800 })
|
|
2058
|
+
*/
|
|
2059
|
+
addTransition: (options: SlideTransitionProps) => PresSlide;
|
|
2060
|
+
/**
|
|
2061
|
+
* Attach an object animation to the most recently added shape/text/image.
|
|
2062
|
+
* Equivalent to passing `animation` on that object's options.
|
|
2063
|
+
* @example slide.addText('Hello', { x: 0.5, y: 0.5, w: 3, h: 0.5 }).addAnimation('fadein')
|
|
2064
|
+
*/
|
|
2065
|
+
addAnimation: (animation: string | AnimationConfig) => PresSlide;
|
|
2066
|
+
/**
|
|
2067
|
+
* Threaded comments on this slide (MS-PPTX §2.16). Emitted to `ppt/comments/commentSlide<N>.xml`.
|
|
2068
|
+
*/
|
|
2069
|
+
comments?: CommentProps[];
|
|
2070
|
+
/**
|
|
2071
|
+
* Add a threaded comment to this slide.
|
|
2072
|
+
* @example slide.addComment({ text: 'Review this', author: 'Ada', x: 1, y: 1 })
|
|
2073
|
+
*/
|
|
2074
|
+
addComment: (comment: CommentProps) => PresSlide;
|
|
2075
|
+
/**
|
|
2076
|
+
* Slide creation identifier (MS-PPTX §2.3.1.4 `p14:creationId` on `cSld`).
|
|
2077
|
+
* Opt-in — omitted unless set. @example 123456789
|
|
2078
|
+
*/
|
|
2079
|
+
creationId?: number;
|
|
2080
|
+
/**
|
|
2081
|
+
* Add a Slide Zoom object linking to another slide (MS-PPTX §2.10 `p16:sldZm`).
|
|
2082
|
+
* Rendered inside `mc:AlternateContent` with a `pic` fallback for older readers.
|
|
2083
|
+
* @example slide.addZoom({ slideNum: 3, x: 1, y: 4, w: 2, h: 1.13 })
|
|
2084
|
+
*/
|
|
2085
|
+
addZoom: (options: ZoomProps) => PresSlide;
|
|
2086
|
+
/**
|
|
2087
|
+
* Add a Section Zoom object linking to a section's first slide (MS-PPTX §2.9 `p16:sectionZm`).
|
|
2088
|
+
* Rendered inside `mc:AlternateContent` with a `pic` fallback.
|
|
2089
|
+
* @example slide.addSectionZoom({ sectionTitle: 'Intro', x: 1, y: 4, w: 2, h: 1.13 })
|
|
2090
|
+
*/
|
|
2091
|
+
addSectionZoom: (options: SectionZoomProps) => PresSlide;
|
|
2092
|
+
/**
|
|
2093
|
+
* Add a Summary Zoom object linking to a section (MS-PPTX §2.11 `p16:summaryZm`).
|
|
2094
|
+
* Rendered inside `mc:AlternateContent` with a `grpSp` fallback.
|
|
2095
|
+
* @example slide.addSummaryZoom({ sectionTitle: 'Intro', x: 1, y: 4, w: 2, h: 1.13 })
|
|
2096
|
+
*/
|
|
2097
|
+
addSummaryZoom: (options: SummaryZoomProps) => PresSlide;
|
|
2098
|
+
/**
|
|
2099
|
+
* Recorded laser traces. MS-PPTX §2.3.1.17 `p14:laserTraceLst` on `sld`.
|
|
2100
|
+
* Each inner array is one `tracePtLst`. `t` is milliseconds; `x`/`y` are EMU.
|
|
2101
|
+
*/
|
|
2102
|
+
laserTraces?: LaserTracePoint[][];
|
|
2103
|
+
/**
|
|
2104
|
+
* Recorded slide-show events. MS-PPTX §2.3.1.26 `p14:showEvtLst` on `sld`.
|
|
2105
|
+
*/
|
|
2106
|
+
showEvents?: SlideShowEvent[];
|
|
2107
|
+
/**
|
|
2108
|
+
* Embed a content part (MS-PPTX §2.2.3 `p:contentPart`).
|
|
2109
|
+
* Emitted inside `mc:AlternateContent` with an `sp` fallback. Opt-in — not written unless called.
|
|
2110
|
+
* @example slide.addContentPart({ data: '<payload/>', x: 1, y: 1, w: 2, h: 1 })
|
|
2111
|
+
*/
|
|
2112
|
+
addContentPart: (options: ContentPartProps) => PresSlide;
|
|
2113
|
+
/**
|
|
2114
|
+
* Embed ink as a content part (MS-PPTX §2.2.3.1).
|
|
2115
|
+
* Emitted inside `mc:AlternateContent` with a `pic` fallback. Opt-in — not written unless called.
|
|
2116
|
+
* @example slide.addInk({ data: inkMl, cover: 'data:image/png;base64,...', x: 1, y: 1, w: 2, h: 1 })
|
|
2117
|
+
*/
|
|
2118
|
+
addInk: (options: InkProps) => PresSlide;
|
|
2119
|
+
/**
|
|
2120
|
+
* Reference an Office App / web extension (MS-PPTX §2.2.13, MS-OWEXML `webextensionref`).
|
|
2121
|
+
* Emitted inside `mc:AlternateContent` with a `pic` fallback. Opt-in — not written unless called.
|
|
2122
|
+
* @example slide.addOfficeApp({ reference: { id: 'WA00000', version: '1.0.0.0', store: 'en-US', storeType: 'OMEX' }, x: 1, y: 1, w: 3, h: 2 })
|
|
2123
|
+
*/
|
|
2124
|
+
addOfficeApp: (options: OfficeAppProps) => PresSlide;
|
|
2125
|
+
/**
|
|
2126
|
+
* Designer Service tags on this slide's `p:sldId`. MS-PPTX §2.2.20 `designTagLst`.
|
|
2127
|
+
* Emitted only when set. URI `{E3EDB536-0D56-4F60-86BA-61A60CA02DAB}`.
|
|
2128
|
+
*/
|
|
2129
|
+
designTags?: DesignerTag[];
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
declare interface RandomBarsAnimationConfig extends BaseAnimationConfig {
|
|
2133
|
+
type: 'randombars' | 'randombarsexit';
|
|
2134
|
+
direction?: 'horizontal' | 'vertical';
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
/**
|
|
2138
|
+
* Reflection effect (`a:reflection`) — Mona/PPTist-compatible subset.
|
|
2139
|
+
* Units: blur/distance in points; direction in degrees; opacity 0–1; scaleY as ratio (e.g. -1).
|
|
2140
|
+
*/
|
|
2141
|
+
declare interface ReflectionProps {
|
|
2142
|
+
/**
|
|
2143
|
+
* Blur radius (points)
|
|
2144
|
+
* @default 0
|
|
2145
|
+
*/
|
|
2146
|
+
blur?: number;
|
|
2147
|
+
/**
|
|
2148
|
+
* Offset distance (points)
|
|
2149
|
+
* @default 0
|
|
2150
|
+
*/
|
|
2151
|
+
distance?: number;
|
|
2152
|
+
/**
|
|
2153
|
+
* Direction (degrees)
|
|
2154
|
+
* @default 0
|
|
2155
|
+
*/
|
|
2156
|
+
direction?: number;
|
|
2157
|
+
/**
|
|
2158
|
+
* Start opacity (0.0–1.0)
|
|
2159
|
+
* @default 0.5
|
|
2160
|
+
*/
|
|
2161
|
+
opacity?: number;
|
|
2162
|
+
/**
|
|
2163
|
+
* Vertical scale ratio (`sy` / 100000). Negative flips the reflection.
|
|
2164
|
+
* @default -1
|
|
2165
|
+
*/
|
|
2166
|
+
scaleY?: number;
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
/** One collaborating application instance in `revInfo` (MS-PPTX §2.7.3.1 `CT_ClientRevision`). */
|
|
2170
|
+
declare interface RevisionClientProps {
|
|
2171
|
+
/** Unique application-instance id (`ST_ClientID`). */
|
|
2172
|
+
id: string;
|
|
2173
|
+
/** Latest revision saved by this instance (`ST_ClientRevisionNumber`). */
|
|
2174
|
+
v?: number;
|
|
2175
|
+
/** Latest revision saved by another instance on this client's behalf. */
|
|
2176
|
+
vWet?: number;
|
|
2177
|
+
/** Date/time of the later of `v` / `vWet` (`xsd:dateTime`). Defaults to now. */
|
|
2178
|
+
dt?: string;
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
/** Revision Information part payload (MS-PPTX §2.7.1.1 `revInfo`). */
|
|
2182
|
+
declare interface RevisionInfoProps {
|
|
2183
|
+
/** Collaborative client revisions (`revLst`). Omit for an empty `revInfo`. */
|
|
2184
|
+
clients?: RevisionClientProps[];
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
declare enum SCHEME_COLOR_NAMES {
|
|
2188
|
+
'TEXT1' = "tx1",
|
|
2189
|
+
'TEXT2' = "tx2",
|
|
2190
|
+
'BACKGROUND1' = "bg1",
|
|
2191
|
+
'BACKGROUND2' = "bg2",
|
|
2192
|
+
'ACCENT1' = "accent1",
|
|
2193
|
+
'ACCENT2' = "accent2",
|
|
2194
|
+
'ACCENT3' = "accent3",
|
|
2195
|
+
'ACCENT4' = "accent4",
|
|
2196
|
+
'ACCENT5' = "accent5",
|
|
2197
|
+
'ACCENT6' = "accent6"
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
/**
|
|
2201
|
+
* TODO: FUTURE: v4.0: rename to `ThemeColor`
|
|
2202
|
+
*/
|
|
2203
|
+
declare enum SchemeColor {
|
|
2204
|
+
'text1' = "tx1",
|
|
2205
|
+
'text2' = "tx2",
|
|
2206
|
+
'background1' = "bg1",
|
|
2207
|
+
'background2' = "bg2",
|
|
2208
|
+
'accent1' = "accent1",
|
|
2209
|
+
'accent2' = "accent2",
|
|
2210
|
+
'accent3' = "accent3",
|
|
2211
|
+
'accent4' = "accent4",
|
|
2212
|
+
'accent5' = "accent5",
|
|
2213
|
+
'accent6' = "accent6"
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
declare interface SectionProps {
|
|
2217
|
+
/** @internal managed by the library; consumers only pass `{ title, order? }` */
|
|
2218
|
+
_type?: 'user' | 'default';
|
|
2219
|
+
/** @internal slides in this section, populated at build time */
|
|
2220
|
+
_slides?: PresSlide[];
|
|
2221
|
+
/** Stable GUID for section-zoom anchors (MS-PPTX §2.9). Auto-assigned at build if unset. @internal */
|
|
2222
|
+
_id?: string;
|
|
2223
|
+
/**
|
|
2224
|
+
* Section title
|
|
2225
|
+
*/
|
|
2226
|
+
title: string;
|
|
2227
|
+
/**
|
|
2228
|
+
* Section order - uses to add section at any index
|
|
2229
|
+
* - values: 1-n
|
|
2230
|
+
*/
|
|
2231
|
+
order?: number;
|
|
2232
|
+
/**
|
|
2233
|
+
* Optional stable GUID written to `p14:section/@id` (MS-PPTX §2.3.3.21).
|
|
2234
|
+
* Accepts with or without braces. Auto-generated at build if omitted.
|
|
2235
|
+
*/
|
|
2236
|
+
id?: string;
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2239
|
+
/** A Section Zoom navigation object. MS-PPTX §2.9 `CT_SectionZoom`. */
|
|
2240
|
+
declare interface SectionZoomProps extends ZoomBaseProps {
|
|
2241
|
+
/** Title of the target section (must match an `addSection({ title })`). */
|
|
2242
|
+
sectionTitle: string;
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
declare interface ShadowProps {
|
|
2246
|
+
/**
|
|
2247
|
+
* shadow type
|
|
2248
|
+
* @default 'none'
|
|
2249
|
+
*/
|
|
2250
|
+
type: 'outer' | 'inner' | 'none';
|
|
2251
|
+
/**
|
|
2252
|
+
* opacity (percent)
|
|
2253
|
+
* - range: 0.0-1.0
|
|
2254
|
+
* @example 0.5 // 50% opaque
|
|
2255
|
+
*/
|
|
2256
|
+
opacity?: number;
|
|
2257
|
+
/**
|
|
2258
|
+
* blur (points)
|
|
2259
|
+
* - range: 0-100
|
|
2260
|
+
* @default 0
|
|
2261
|
+
*/
|
|
2262
|
+
blur?: number;
|
|
2263
|
+
/**
|
|
2264
|
+
* angle (degrees)
|
|
2265
|
+
* - range: 0-359
|
|
2266
|
+
* @default 0
|
|
2267
|
+
*/
|
|
2268
|
+
angle?: number;
|
|
2269
|
+
/**
|
|
2270
|
+
* shadow offset (points)
|
|
2271
|
+
* - range: 0-200
|
|
2272
|
+
* @default 0
|
|
2273
|
+
*/
|
|
2274
|
+
offset?: number;
|
|
2275
|
+
/**
|
|
2276
|
+
* shadow color (hex format)
|
|
2277
|
+
* @example 'FF3399'
|
|
2278
|
+
*/
|
|
2279
|
+
color?: HexColor;
|
|
2280
|
+
/**
|
|
2281
|
+
* whether to rotate shadow with shape
|
|
2282
|
+
* @default false
|
|
2283
|
+
*/
|
|
2284
|
+
rotateWithShape?: boolean;
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2287
|
+
declare type SHAPE_NAME = 'accentBorderCallout1' | 'accentBorderCallout2' | 'accentBorderCallout3' | 'accentCallout1' | 'accentCallout2' | 'accentCallout3' | 'actionButtonBackPrevious' | 'actionButtonBeginning' | 'actionButtonBlank' | 'actionButtonDocument' | 'actionButtonEnd' | 'actionButtonForwardNext' | 'actionButtonHelp' | 'actionButtonHome' | 'actionButtonInformation' | 'actionButtonMovie' | 'actionButtonReturn' | 'actionButtonSound' | 'arc' | 'bentArrow' | 'bentUpArrow' | 'bevel' | 'blockArc' | 'borderCallout1' | 'borderCallout2' | 'borderCallout3' | 'bracePair' | 'bracketPair' | 'callout1' | 'callout2' | 'callout3' | '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';
|
|
2288
|
+
|
|
2289
|
+
declare enum SHAPE_TYPE {
|
|
2290
|
+
ACTION_BUTTON_BACK_OR_PREVIOUS = "actionButtonBackPrevious",
|
|
2291
|
+
ACTION_BUTTON_BEGINNING = "actionButtonBeginning",
|
|
2292
|
+
ACTION_BUTTON_CUSTOM = "actionButtonBlank",
|
|
2293
|
+
ACTION_BUTTON_DOCUMENT = "actionButtonDocument",
|
|
2294
|
+
ACTION_BUTTON_END = "actionButtonEnd",
|
|
2295
|
+
ACTION_BUTTON_FORWARD_OR_NEXT = "actionButtonForwardNext",
|
|
2296
|
+
ACTION_BUTTON_HELP = "actionButtonHelp",
|
|
2297
|
+
ACTION_BUTTON_HOME = "actionButtonHome",
|
|
2298
|
+
ACTION_BUTTON_INFORMATION = "actionButtonInformation",
|
|
2299
|
+
ACTION_BUTTON_MOVIE = "actionButtonMovie",
|
|
2300
|
+
ACTION_BUTTON_RETURN = "actionButtonReturn",
|
|
2301
|
+
ACTION_BUTTON_SOUND = "actionButtonSound",
|
|
2302
|
+
ARC = "arc",
|
|
2303
|
+
BALLOON = "wedgeRoundRectCallout",
|
|
2304
|
+
BENT_ARROW = "bentArrow",
|
|
2305
|
+
BENT_UP_ARROW = "bentUpArrow",
|
|
2306
|
+
BEVEL = "bevel",
|
|
2307
|
+
BLOCK_ARC = "blockArc",
|
|
2308
|
+
CAN = "can",
|
|
2309
|
+
CHART_PLUS = "chartPlus",
|
|
2310
|
+
CHART_STAR = "chartStar",
|
|
2311
|
+
CHART_X = "chartX",
|
|
2312
|
+
CHEVRON = "chevron",
|
|
2313
|
+
CHORD = "chord",
|
|
2314
|
+
CIRCULAR_ARROW = "circularArrow",
|
|
2315
|
+
CLOUD = "cloud",
|
|
2316
|
+
CLOUD_CALLOUT = "cloudCallout",
|
|
2317
|
+
CORNER = "corner",
|
|
2318
|
+
CORNER_TABS = "cornerTabs",
|
|
2319
|
+
CROSS = "plus",
|
|
2320
|
+
CUBE = "cube",
|
|
2321
|
+
CURVED_DOWN_ARROW = "curvedDownArrow",
|
|
2322
|
+
CURVED_DOWN_RIBBON = "ellipseRibbon",
|
|
2323
|
+
CURVED_LEFT_ARROW = "curvedLeftArrow",
|
|
2324
|
+
CURVED_RIGHT_ARROW = "curvedRightArrow",
|
|
2325
|
+
CURVED_UP_ARROW = "curvedUpArrow",
|
|
2326
|
+
CURVED_UP_RIBBON = "ellipseRibbon2",
|
|
2327
|
+
CUSTOM_GEOMETRY = "custGeom",
|
|
2328
|
+
DECAGON = "decagon",
|
|
2329
|
+
DIAGONAL_STRIPE = "diagStripe",
|
|
2330
|
+
DIAMOND = "diamond",
|
|
2331
|
+
DODECAGON = "dodecagon",
|
|
2332
|
+
DONUT = "donut",
|
|
2333
|
+
DOUBLE_BRACE = "bracePair",
|
|
2334
|
+
DOUBLE_BRACKET = "bracketPair",
|
|
2335
|
+
DOUBLE_WAVE = "doubleWave",
|
|
2336
|
+
DOWN_ARROW = "downArrow",
|
|
2337
|
+
DOWN_ARROW_CALLOUT = "downArrowCallout",
|
|
2338
|
+
DOWN_RIBBON = "ribbon",
|
|
2339
|
+
EXPLOSION1 = "irregularSeal1",
|
|
2340
|
+
EXPLOSION2 = "irregularSeal2",
|
|
2341
|
+
FLOWCHART_ALTERNATE_PROCESS = "flowChartAlternateProcess",
|
|
2342
|
+
FLOWCHART_CARD = "flowChartPunchedCard",
|
|
2343
|
+
FLOWCHART_COLLATE = "flowChartCollate",
|
|
2344
|
+
FLOWCHART_CONNECTOR = "flowChartConnector",
|
|
2345
|
+
FLOWCHART_DATA = "flowChartInputOutput",
|
|
2346
|
+
FLOWCHART_DECISION = "flowChartDecision",
|
|
2347
|
+
FLOWCHART_DELAY = "flowChartDelay",
|
|
2348
|
+
FLOWCHART_DIRECT_ACCESS_STORAGE = "flowChartMagneticDrum",
|
|
2349
|
+
FLOWCHART_DISPLAY = "flowChartDisplay",
|
|
2350
|
+
FLOWCHART_DOCUMENT = "flowChartDocument",
|
|
2351
|
+
FLOWCHART_EXTRACT = "flowChartExtract",
|
|
2352
|
+
FLOWCHART_INTERNAL_STORAGE = "flowChartInternalStorage",
|
|
2353
|
+
FLOWCHART_MAGNETIC_DISK = "flowChartMagneticDisk",
|
|
2354
|
+
FLOWCHART_MANUAL_INPUT = "flowChartManualInput",
|
|
2355
|
+
FLOWCHART_MANUAL_OPERATION = "flowChartManualOperation",
|
|
2356
|
+
FLOWCHART_MERGE = "flowChartMerge",
|
|
2357
|
+
FLOWCHART_MULTIDOCUMENT = "flowChartMultidocument",
|
|
2358
|
+
FLOWCHART_OFFLINE_STORAGE = "flowChartOfflineStorage",
|
|
2359
|
+
FLOWCHART_OFFPAGE_CONNECTOR = "flowChartOffpageConnector",
|
|
2360
|
+
FLOWCHART_OR = "flowChartOr",
|
|
2361
|
+
FLOWCHART_PREDEFINED_PROCESS = "flowChartPredefinedProcess",
|
|
2362
|
+
FLOWCHART_PREPARATION = "flowChartPreparation",
|
|
2363
|
+
FLOWCHART_PROCESS = "flowChartProcess",
|
|
2364
|
+
FLOWCHART_PUNCHED_TAPE = "flowChartPunchedTape",
|
|
2365
|
+
FLOWCHART_SEQUENTIAL_ACCESS_STORAGE = "flowChartMagneticTape",
|
|
2366
|
+
FLOWCHART_SORT = "flowChartSort",
|
|
2367
|
+
FLOWCHART_STORED_DATA = "flowChartOnlineStorage",
|
|
2368
|
+
FLOWCHART_SUMMING_JUNCTION = "flowChartSummingJunction",
|
|
2369
|
+
FLOWCHART_TERMINATOR = "flowChartTerminator",
|
|
2370
|
+
FOLDED_CORNER = "folderCorner",
|
|
2371
|
+
FRAME = "frame",
|
|
2372
|
+
FUNNEL = "funnel",
|
|
2373
|
+
GEAR_6 = "gear6",
|
|
2374
|
+
GEAR_9 = "gear9",
|
|
2375
|
+
HALF_FRAME = "halfFrame",
|
|
2376
|
+
HEART = "heart",
|
|
2377
|
+
HEPTAGON = "heptagon",
|
|
2378
|
+
HEXAGON = "hexagon",
|
|
2379
|
+
HORIZONTAL_SCROLL = "horizontalScroll",
|
|
2380
|
+
ISOSCELES_TRIANGLE = "triangle",
|
|
2381
|
+
LEFT_ARROW = "leftArrow",
|
|
2382
|
+
LEFT_ARROW_CALLOUT = "leftArrowCallout",
|
|
2383
|
+
LEFT_BRACE = "leftBrace",
|
|
2384
|
+
LEFT_BRACKET = "leftBracket",
|
|
2385
|
+
LEFT_CIRCULAR_ARROW = "leftCircularArrow",
|
|
2386
|
+
LEFT_RIGHT_ARROW = "leftRightArrow",
|
|
2387
|
+
LEFT_RIGHT_ARROW_CALLOUT = "leftRightArrowCallout",
|
|
2388
|
+
LEFT_RIGHT_CIRCULAR_ARROW = "leftRightCircularArrow",
|
|
2389
|
+
LEFT_RIGHT_RIBBON = "leftRightRibbon",
|
|
2390
|
+
LEFT_RIGHT_UP_ARROW = "leftRightUpArrow",
|
|
2391
|
+
LEFT_UP_ARROW = "leftUpArrow",
|
|
2392
|
+
LIGHTNING_BOLT = "lightningBolt",
|
|
2393
|
+
LINE_CALLOUT_1 = "borderCallout1",
|
|
2394
|
+
LINE_CALLOUT_1_ACCENT_BAR = "accentCallout1",
|
|
2395
|
+
LINE_CALLOUT_1_BORDER_AND_ACCENT_BAR = "accentBorderCallout1",
|
|
2396
|
+
LINE_CALLOUT_1_NO_BORDER = "callout1",
|
|
2397
|
+
LINE_CALLOUT_2 = "borderCallout2",
|
|
2398
|
+
LINE_CALLOUT_2_ACCENT_BAR = "accentCallout2",
|
|
2399
|
+
LINE_CALLOUT_2_BORDER_AND_ACCENT_BAR = "accentBorderCallout2",
|
|
2400
|
+
LINE_CALLOUT_2_NO_BORDER = "callout2",
|
|
2401
|
+
LINE_CALLOUT_3 = "borderCallout3",
|
|
2402
|
+
LINE_CALLOUT_3_ACCENT_BAR = "accentCallout3",
|
|
2403
|
+
LINE_CALLOUT_3_BORDER_AND_ACCENT_BAR = "accentBorderCallout3",
|
|
2404
|
+
LINE_CALLOUT_3_NO_BORDER = "callout3",
|
|
2405
|
+
LINE_CALLOUT_4 = "borderCallout4",
|
|
2406
|
+
LINE_CALLOUT_4_ACCENT_BAR = "accentCallout3=4",
|
|
2407
|
+
LINE_CALLOUT_4_BORDER_AND_ACCENT_BAR = "accentBorderCallout4",
|
|
2408
|
+
LINE_CALLOUT_4_NO_BORDER = "callout4",
|
|
2409
|
+
LINE = "line",
|
|
2410
|
+
LINE_INVERSE = "lineInv",
|
|
2411
|
+
MATH_DIVIDE = "mathDivide",
|
|
2412
|
+
MATH_EQUAL = "mathEqual",
|
|
2413
|
+
MATH_MINUS = "mathMinus",
|
|
2414
|
+
MATH_MULTIPLY = "mathMultiply",
|
|
2415
|
+
MATH_NOT_EQUAL = "mathNotEqual",
|
|
2416
|
+
MATH_PLUS = "mathPlus",
|
|
2417
|
+
MOON = "moon",
|
|
2418
|
+
NON_ISOSCELES_TRAPEZOID = "nonIsoscelesTrapezoid",
|
|
2419
|
+
NOTCHED_RIGHT_ARROW = "notchedRightArrow",
|
|
2420
|
+
NO_SYMBOL = "noSmoking",
|
|
2421
|
+
OCTAGON = "octagon",
|
|
2422
|
+
OVAL = "ellipse",
|
|
2423
|
+
OVAL_CALLOUT = "wedgeEllipseCallout",
|
|
2424
|
+
PARALLELOGRAM = "parallelogram",
|
|
2425
|
+
PENTAGON = "homePlate",
|
|
2426
|
+
PIE = "pie",
|
|
2427
|
+
PIE_WEDGE = "pieWedge",
|
|
2428
|
+
PLAQUE = "plaque",
|
|
2429
|
+
PLAQUE_TABS = "plaqueTabs",
|
|
2430
|
+
QUAD_ARROW = "quadArrow",
|
|
2431
|
+
QUAD_ARROW_CALLOUT = "quadArrowCallout",
|
|
2432
|
+
RECTANGLE = "rect",
|
|
2433
|
+
RECTANGULAR_CALLOUT = "wedgeRectCallout",
|
|
2434
|
+
REGULAR_PENTAGON = "pentagon",
|
|
2435
|
+
RIGHT_ARROW = "rightArrow",
|
|
2436
|
+
RIGHT_ARROW_CALLOUT = "rightArrowCallout",
|
|
2437
|
+
RIGHT_BRACE = "rightBrace",
|
|
2438
|
+
RIGHT_BRACKET = "rightBracket",
|
|
2439
|
+
RIGHT_TRIANGLE = "rtTriangle",
|
|
2440
|
+
ROUNDED_RECTANGLE = "roundRect",
|
|
2441
|
+
ROUNDED_RECTANGULAR_CALLOUT = "wedgeRoundRectCallout",
|
|
2442
|
+
ROUND_1_RECTANGLE = "round1Rect",
|
|
2443
|
+
ROUND_2_DIAG_RECTANGLE = "round2DiagRect",
|
|
2444
|
+
ROUND_2_SAME_RECTANGLE = "round2SameRect",
|
|
2445
|
+
SMILEY_FACE = "smileyFace",
|
|
2446
|
+
SNIP_1_RECTANGLE = "snip1Rect",
|
|
2447
|
+
SNIP_2_DIAG_RECTANGLE = "snip2DiagRect",
|
|
2448
|
+
SNIP_2_SAME_RECTANGLE = "snip2SameRect",
|
|
2449
|
+
SNIP_ROUND_RECTANGLE = "snipRoundRect",
|
|
2450
|
+
SQUARE_TABS = "squareTabs",
|
|
2451
|
+
STAR_10_POINT = "star10",
|
|
2452
|
+
STAR_12_POINT = "star12",
|
|
2453
|
+
STAR_16_POINT = "star16",
|
|
2454
|
+
STAR_24_POINT = "star24",
|
|
2455
|
+
STAR_32_POINT = "star32",
|
|
2456
|
+
STAR_4_POINT = "star4",
|
|
2457
|
+
STAR_5_POINT = "star5",
|
|
2458
|
+
STAR_6_POINT = "star6",
|
|
2459
|
+
STAR_7_POINT = "star7",
|
|
2460
|
+
STAR_8_POINT = "star8",
|
|
2461
|
+
STRIPED_RIGHT_ARROW = "stripedRightArrow",
|
|
2462
|
+
SUN = "sun",
|
|
2463
|
+
SWOOSH_ARROW = "swooshArrow",
|
|
2464
|
+
TEAR = "teardrop",
|
|
2465
|
+
TRAPEZOID = "trapezoid",
|
|
2466
|
+
UP_ARROW = "upArrow",
|
|
2467
|
+
UP_ARROW_CALLOUT = "upArrowCallout",
|
|
2468
|
+
UP_DOWN_ARROW = "upDownArrow",
|
|
2469
|
+
UP_DOWN_ARROW_CALLOUT = "upDownArrowCallout",
|
|
2470
|
+
UP_RIBBON = "ribbon2",
|
|
2471
|
+
U_TURN_ARROW = "uturnArrow",
|
|
2472
|
+
VERTICAL_SCROLL = "verticalScroll",
|
|
2473
|
+
WAVE = "wave"
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2476
|
+
declare interface ShapeAnimationConfig extends BaseAnimationConfig {
|
|
2477
|
+
type: 'shape' | 'shapeexit';
|
|
2478
|
+
shape?: ShapeMaskType;
|
|
2479
|
+
direction?: ShapeDirection;
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
declare type ShapeDirection = 'in' | 'out';
|
|
2483
|
+
|
|
2484
|
+
declare interface ShapeFillProps {
|
|
2485
|
+
/**
|
|
2486
|
+
* Fill color
|
|
2487
|
+
* - `HexColor` or `ThemeColor`
|
|
2488
|
+
* - for `type:'pattern'`, used as the foreground color when `pattern.color` is omitted
|
|
2489
|
+
* @example 'FF0000' // hex color (red)
|
|
2490
|
+
* @example pptx.SchemeColor.text1 // Theme color (Text1)
|
|
2491
|
+
*/
|
|
2492
|
+
color?: Color;
|
|
2493
|
+
/**
|
|
2494
|
+
* Transparency (percent)
|
|
2495
|
+
* - MS-PPT > Format Shape > Fill & Line > Fill > Transparency
|
|
2496
|
+
* - range: 0-100
|
|
2497
|
+
* @default 0
|
|
2498
|
+
*/
|
|
2499
|
+
transparency?: number;
|
|
2500
|
+
/**
|
|
2501
|
+
* Fill type
|
|
2502
|
+
* @default 'solid'
|
|
2503
|
+
* - `'gradient'` — nested definition via `gradient` (linear + radial)
|
|
2504
|
+
* - `'linearGradient'` — flat sambauers/gradients API (`stops`/`angle`/… on this object)
|
|
2505
|
+
* - `'pattern'` — pattern fill via `pattern`
|
|
2506
|
+
*/
|
|
2507
|
+
type?: 'none' | 'solid' | 'gradient' | 'linearGradient' | 'pattern';
|
|
2508
|
+
/**
|
|
2509
|
+
* Gradient fill definition
|
|
2510
|
+
* - required when `type` is `'gradient'` (ignored otherwise)
|
|
2511
|
+
* @example { type:'gradient', gradient:{ angle:90, stops:[{pos:0,color:'FF0000'},{pos:100,color:'0000FF'}] } }
|
|
2512
|
+
*/
|
|
2513
|
+
gradient?: ShapeGradientProps;
|
|
2514
|
+
/**
|
|
2515
|
+
* Pattern fill definition (from hakrueger/pattern)
|
|
2516
|
+
* - used when `type` is `'pattern'`
|
|
2517
|
+
* @example { type:'pattern', pattern:{ prst:'ltHorz', color:'000000', bgColor:'FFFFFF' } }
|
|
2518
|
+
*/
|
|
2519
|
+
pattern?: ShapePatternProps;
|
|
2520
|
+
/**
|
|
2521
|
+
* Flat linear-gradient stops (`type: 'linearGradient'`, sambauers/gradients)
|
|
2522
|
+
* @example { type:'linearGradient', angle:45, stops:[{position:0,color:'000000'},{position:100,color:'333333'}] }
|
|
2523
|
+
*/
|
|
2524
|
+
stops?: ShapeGradientStopProps[];
|
|
2525
|
+
/** Linear gradient angle in degrees (`type: 'linearGradient'`) */
|
|
2526
|
+
angle?: number;
|
|
2527
|
+
/** Whether the gradient angle scales with the fill region (`type: 'linearGradient'`) */
|
|
2528
|
+
scaled?: boolean;
|
|
2529
|
+
/**
|
|
2530
|
+
* Whether the gradient rotates with its shape (`type: 'linearGradient'`)
|
|
2531
|
+
* @default true
|
|
2532
|
+
*/
|
|
2533
|
+
rotWithShape?: boolean;
|
|
2534
|
+
/** Gradient flip (`type: 'linearGradient'` / nested `gradient.flip`) */
|
|
2535
|
+
flip?: ShapeGradientFlip;
|
|
2536
|
+
/** Tile rectangle percents 0-100 (`type: 'linearGradient'` / nested `gradient.tileRect`) */
|
|
2537
|
+
tileRect?: ShapeGradientTileRect;
|
|
2538
|
+
/**
|
|
2539
|
+
* Transparency (percent)
|
|
2540
|
+
* @deprecated v3.3.0 - use `transparency`
|
|
2541
|
+
*/
|
|
2542
|
+
alpha?: number;
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
declare type ShapeGradientFlip = 'none' | 'x' | 'xy' | 'y';
|
|
2546
|
+
|
|
2547
|
+
declare interface ShapeGradientProps {
|
|
2548
|
+
/**
|
|
2549
|
+
* Gradient geometry
|
|
2550
|
+
* @default 'linear'
|
|
2551
|
+
*/
|
|
2552
|
+
type?: 'linear' | 'radial';
|
|
2553
|
+
/**
|
|
2554
|
+
* Gradient angle (degrees, clockwise)
|
|
2555
|
+
* - 0 = left-to-right, 90 = top-to-bottom
|
|
2556
|
+
* - normalized into the range 0-359
|
|
2557
|
+
* @default 0
|
|
2558
|
+
*/
|
|
2559
|
+
angle?: number;
|
|
2560
|
+
/**
|
|
2561
|
+
* Whether the gradient angle scales with the fill region
|
|
2562
|
+
* @default false
|
|
2563
|
+
*/
|
|
2564
|
+
scaled?: boolean;
|
|
2565
|
+
/**
|
|
2566
|
+
* Whether the gradient rotates with its shape
|
|
2567
|
+
* @default true
|
|
2568
|
+
*/
|
|
2569
|
+
rotateWithShape?: boolean;
|
|
2570
|
+
/**
|
|
2571
|
+
* Alias of `rotateWithShape` (sambauers/gradients API)
|
|
2572
|
+
* @default true
|
|
2573
|
+
*/
|
|
2574
|
+
rotWithShape?: boolean;
|
|
2575
|
+
/**
|
|
2576
|
+
* Gradient flip direction (DrawingML `a:gradFill@flip`)
|
|
2577
|
+
* @default 'none'
|
|
2578
|
+
*/
|
|
2579
|
+
flip?: ShapeGradientFlip;
|
|
2580
|
+
/**
|
|
2581
|
+
* Tile rectangle insets (percent 0-100) — DrawingML `a:tileRect`
|
|
2582
|
+
*/
|
|
2583
|
+
tileRect?: ShapeGradientTileRect;
|
|
2584
|
+
/**
|
|
2585
|
+
* Gradient color stops
|
|
2586
|
+
* - MS-PPT requires **at least 2 stops**; fewer degrades to a solid fill
|
|
2587
|
+
* - stops are sorted by `pos`/`position` before being written
|
|
2588
|
+
*/
|
|
2589
|
+
stops: ShapeGradientStopProps[];
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
declare interface ShapeGradientStopProps {
|
|
2593
|
+
/**
|
|
2594
|
+
* Stop color
|
|
2595
|
+
* - `HexColor`, `ThemeColor`, or `ModifiedThemeColor` (DrawingML color transforms on `EG_ColorChoice`)
|
|
2596
|
+
*/
|
|
2597
|
+
color: Color;
|
|
2598
|
+
/**
|
|
2599
|
+
* Stop position along the gradient (percent)
|
|
2600
|
+
* - range: 0-100 (values outside the range are clamped)
|
|
2601
|
+
*/
|
|
2602
|
+
pos?: number;
|
|
2603
|
+
/**
|
|
2604
|
+
* Alias of `pos` (sambauers/gradients API)
|
|
2605
|
+
* - range: 0-100
|
|
2606
|
+
*/
|
|
2607
|
+
position?: number;
|
|
2608
|
+
/**
|
|
2609
|
+
* Stop transparency (percent)
|
|
2610
|
+
* - range: 0-100
|
|
2611
|
+
* @default 0
|
|
2612
|
+
*/
|
|
2613
|
+
transparency?: number;
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
declare interface ShapeGradientTileRect {
|
|
2617
|
+
/** Top inset percent 0-100 */
|
|
2618
|
+
t?: number;
|
|
2619
|
+
/** Right inset percent 0-100 */
|
|
2620
|
+
r?: number;
|
|
2621
|
+
/** Bottom inset percent 0-100 */
|
|
2622
|
+
b?: number;
|
|
2623
|
+
/** Left inset percent 0-100 */
|
|
2624
|
+
l?: number;
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
declare interface ShapeLineProps extends ShapeFillProps {
|
|
2628
|
+
/**
|
|
2629
|
+
* Line width (pt)
|
|
2630
|
+
* @default 1
|
|
2631
|
+
*/
|
|
2632
|
+
width?: number;
|
|
2633
|
+
/**
|
|
2634
|
+
* Dash type
|
|
2635
|
+
* @default 'solid'
|
|
2636
|
+
*/
|
|
2637
|
+
dashType?: 'solid' | 'dash' | 'dashDot' | 'lgDash' | 'lgDashDot' | 'lgDashDotDot' | 'sysDash' | 'sysDot';
|
|
2638
|
+
/**
|
|
2639
|
+
* Line ending cap style. ECMA-376 §5.1.2.1.34 `<a:ln>@cap` / ST_LineCap: `flat` (default), `sq` (square, extends half width), `rnd` (round).
|
|
2640
|
+
* @since v4.1.0 (issue #782)
|
|
2641
|
+
* @default 'flat'
|
|
2642
|
+
*/
|
|
2643
|
+
cap?: 'flat' | 'sq' | 'rnd';
|
|
2644
|
+
/**
|
|
2645
|
+
* Begin arrow type
|
|
2646
|
+
* @since v3.3.0
|
|
2647
|
+
*/
|
|
2648
|
+
beginArrowType?: 'none' | 'arrow' | 'diamond' | 'oval' | 'stealth' | 'triangle';
|
|
2649
|
+
/**
|
|
2650
|
+
* End arrow type
|
|
2651
|
+
* @since v3.3.0
|
|
2652
|
+
*/
|
|
2653
|
+
endArrowType?: 'none' | 'arrow' | 'diamond' | 'oval' | 'stealth' | 'triangle';
|
|
2654
|
+
/**
|
|
2655
|
+
* Emit as a PowerPoint connector (`p:cxnSp`) attached to other shapes
|
|
2656
|
+
* - Auto-set when `sourceId` / `targetId` are provided
|
|
2657
|
+
* @see ZentoSoft/PptxGenJS connectors
|
|
2658
|
+
*/
|
|
2659
|
+
isConnector?: boolean;
|
|
2660
|
+
/**
|
|
2661
|
+
* Connected source shape id (`cNvPr` / `sId` of the start shape)
|
|
2662
|
+
*/
|
|
2663
|
+
sourceId?: number;
|
|
2664
|
+
/**
|
|
2665
|
+
* Connected target shape id (`cNvPr` / `sId` of the end shape)
|
|
2666
|
+
*/
|
|
2667
|
+
targetId?: number;
|
|
2668
|
+
/**
|
|
2669
|
+
* Source connection site index (see `pptx.anchor` for rect helpers)
|
|
2670
|
+
*/
|
|
2671
|
+
sourceAnchorPos?: number;
|
|
2672
|
+
/**
|
|
2673
|
+
* Target connection site index (see `pptx.anchor` for rect helpers)
|
|
2674
|
+
*/
|
|
2675
|
+
targetAnchorPos?: number;
|
|
2676
|
+
/**
|
|
2677
|
+
* Preset geometry adjustment values for bent/curved connectors
|
|
2678
|
+
* @example [50000] // mid bend for bentConnector3
|
|
2679
|
+
*/
|
|
2680
|
+
curveadjust?: number[];
|
|
2681
|
+
/**
|
|
2682
|
+
* Dash type
|
|
2683
|
+
* @deprecated v3.3.0 - use `dashType`
|
|
2684
|
+
*/
|
|
2685
|
+
lineDash?: 'solid' | 'dash' | 'dashDot' | 'lgDash' | 'lgDashDot' | 'lgDashDotDot' | 'sysDash' | 'sysDot';
|
|
2686
|
+
/**
|
|
2687
|
+
* @deprecated v3.3.0 - use `beginArrowType`
|
|
2688
|
+
*/
|
|
2689
|
+
lineHead?: 'none' | 'arrow' | 'diamond' | 'oval' | 'stealth' | 'triangle';
|
|
2690
|
+
/**
|
|
2691
|
+
* @deprecated v3.3.0 - use `endArrowType`
|
|
2692
|
+
*/
|
|
2693
|
+
lineTail?: 'none' | 'arrow' | 'diamond' | 'oval' | 'stealth' | 'triangle';
|
|
2694
|
+
/**
|
|
2695
|
+
* Line width (pt)
|
|
2696
|
+
* @deprecated v3.3.0 - use `width`
|
|
2697
|
+
*/
|
|
2698
|
+
pt?: number;
|
|
2699
|
+
/**
|
|
2700
|
+
* Line size (pt)
|
|
2701
|
+
* @deprecated v3.3.0 - use `width`
|
|
2702
|
+
*/
|
|
2703
|
+
size?: number;
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
declare type ShapeMaskType = 'circle' | 'box' | 'diamond' | 'plus';
|
|
2707
|
+
|
|
2708
|
+
declare interface ShapePatternProps {
|
|
2709
|
+
/**
|
|
2710
|
+
* Preset pattern
|
|
2711
|
+
* @default 'cross'
|
|
2712
|
+
*/
|
|
2713
|
+
prst?: PresetPatternValues;
|
|
2714
|
+
/**
|
|
2715
|
+
* Foreground (pattern) color
|
|
2716
|
+
* - falls back to top-level `ShapeFillProps.color` when omitted
|
|
2717
|
+
* @example '000000'
|
|
2718
|
+
*/
|
|
2719
|
+
color?: Color;
|
|
2720
|
+
/**
|
|
2721
|
+
* Background color
|
|
2722
|
+
* @default 'FFFFFF'
|
|
2723
|
+
* @example 'FFFFFF'
|
|
2724
|
+
*/
|
|
2725
|
+
bgColor?: Color;
|
|
2726
|
+
}
|
|
2727
|
+
|
|
2728
|
+
declare interface ShapeProps extends PositionProps, ObjectNameProps, AppearOnClickProps, NvPrExtensionProps {
|
|
2729
|
+
/**
|
|
2730
|
+
* Horizontal alignment
|
|
2731
|
+
* @default 'left'
|
|
2732
|
+
*/
|
|
2733
|
+
align?: HAlign;
|
|
2734
|
+
/**
|
|
2735
|
+
* Radius (only for pptx.shapes.PIE, pptx.shapes.ARC, pptx.shapes.BLOCK_ARC)
|
|
2736
|
+
* - In the case of pptx.shapes.BLOCK_ARC you have to setup the arcThicknessRatio
|
|
2737
|
+
* - values: [0-359, 0-359]
|
|
2738
|
+
* @since v3.4.0
|
|
2739
|
+
* @default [270, 0]
|
|
2740
|
+
*/
|
|
2741
|
+
angleRange?: [number, number];
|
|
2742
|
+
/**
|
|
2743
|
+
* Radius (only for pptx.shapes.BLOCK_ARC)
|
|
2744
|
+
* - You have to setup the angleRange values too
|
|
2745
|
+
* - values: 0.0-1.0
|
|
2746
|
+
* @since v3.4.0
|
|
2747
|
+
* @default 0.5
|
|
2748
|
+
*/
|
|
2749
|
+
arcThicknessRatio?: number;
|
|
2750
|
+
/**
|
|
2751
|
+
* Shape fill color properties
|
|
2752
|
+
* @example { color:'FF0000' } // hex color (red)
|
|
2753
|
+
* @example { color:'0088CC', transparency:50 } // hex color, 50% transparent
|
|
2754
|
+
* @example { color:pptx.SchemeColor.accent1 } // Theme color Accent1
|
|
2755
|
+
*/
|
|
2756
|
+
fill?: ShapeFillProps;
|
|
2757
|
+
/**
|
|
2758
|
+
* Flip shape horizontally?
|
|
2759
|
+
* @default false
|
|
2760
|
+
*/
|
|
2761
|
+
flipH?: boolean;
|
|
2762
|
+
/**
|
|
2763
|
+
* Flip shape vertical?
|
|
2764
|
+
* @default false
|
|
2765
|
+
*/
|
|
2766
|
+
flipV?: boolean;
|
|
2767
|
+
/**
|
|
2768
|
+
* Add hyperlink to shape
|
|
2769
|
+
* @example hyperlink: { url: "https://github.com/gitbrent/pptxgenjs", tooltip: "Visit Homepage" },
|
|
2770
|
+
*/
|
|
2771
|
+
hyperlink?: HyperlinkProps;
|
|
2772
|
+
/**
|
|
2773
|
+
* Line options
|
|
2774
|
+
*/
|
|
2775
|
+
line?: ShapeLineProps;
|
|
2776
|
+
/**
|
|
2777
|
+
* Points (only for pptx.shapes.CUSTOM_GEOMETRY)
|
|
2778
|
+
* - type: 'arc'
|
|
2779
|
+
* - `hR` Shape Arc Height Radius
|
|
2780
|
+
* - `wR` Shape Arc Width Radius
|
|
2781
|
+
* - `stAng` Shape Arc Start Angle
|
|
2782
|
+
* - `swAng` Shape Arc Swing Angle
|
|
2783
|
+
* @see http://www.datypic.com/sc/ooxml/e-a_arcTo-1.html
|
|
2784
|
+
* @example [{ x: 0, y: 0 }, { x: 10, y: 10 }] // draw a line between those two points
|
|
2785
|
+
*/
|
|
2786
|
+
points?: Array<{
|
|
2787
|
+
x: Coord;
|
|
2788
|
+
y: Coord;
|
|
2789
|
+
moveTo?: boolean;
|
|
2790
|
+
} | {
|
|
2791
|
+
x: Coord;
|
|
2792
|
+
y: Coord;
|
|
2793
|
+
curve: {
|
|
2794
|
+
type: 'arc';
|
|
2795
|
+
hR: Coord;
|
|
2796
|
+
wR: Coord;
|
|
2797
|
+
stAng: number;
|
|
2798
|
+
swAng: number;
|
|
2799
|
+
};
|
|
2800
|
+
} | {
|
|
2801
|
+
x: Coord;
|
|
2802
|
+
y: Coord;
|
|
2803
|
+
curve: {
|
|
2804
|
+
type: 'cubic';
|
|
2805
|
+
x1: Coord;
|
|
2806
|
+
y1: Coord;
|
|
2807
|
+
x2: Coord;
|
|
2808
|
+
y2: Coord;
|
|
2809
|
+
};
|
|
2810
|
+
} | {
|
|
2811
|
+
x: Coord;
|
|
2812
|
+
y: Coord;
|
|
2813
|
+
curve: {
|
|
2814
|
+
type: 'quadratic';
|
|
2815
|
+
x1: Coord;
|
|
2816
|
+
y1: Coord;
|
|
2817
|
+
};
|
|
2818
|
+
} | {
|
|
2819
|
+
close: true;
|
|
2820
|
+
}>;
|
|
2821
|
+
/**
|
|
2822
|
+
* Rounded rectangle radius (only for pptx.shapes.ROUNDED_RECTANGLE)
|
|
2823
|
+
* - values: 0.0 to 1.0
|
|
2824
|
+
* @default 0
|
|
2825
|
+
*/
|
|
2826
|
+
rectRadius?: number;
|
|
2827
|
+
/**
|
|
2828
|
+
* Rotation (degrees)
|
|
2829
|
+
* - range: -360 to 360
|
|
2830
|
+
* @default 0
|
|
2831
|
+
* @example 180 // rotate 180 degrees
|
|
2832
|
+
*/
|
|
2833
|
+
rotate?: number;
|
|
2834
|
+
/**
|
|
2835
|
+
* Shadow options
|
|
2836
|
+
* TODO: need new demo.js entry for shape shadow
|
|
2837
|
+
*/
|
|
2838
|
+
shadow?: ShadowProps;
|
|
2839
|
+
/**
|
|
2840
|
+
* Glow effect (`a:glow` in shape `effectLst`)
|
|
2841
|
+
*/
|
|
2842
|
+
glow?: TextGlowProps;
|
|
2843
|
+
/**
|
|
2844
|
+
* Soft-edge effect (`a:softEdge`)
|
|
2845
|
+
*/
|
|
2846
|
+
softEdge?: SoftEdgeProps;
|
|
2847
|
+
/**
|
|
2848
|
+
* Reflection effect (`a:reflection`)
|
|
2849
|
+
*/
|
|
2850
|
+
reflection?: ReflectionProps;
|
|
2851
|
+
/**
|
|
2852
|
+
* @deprecated v3.3.0
|
|
2853
|
+
*/
|
|
2854
|
+
lineSize?: number;
|
|
2855
|
+
/**
|
|
2856
|
+
* @deprecated v3.3.0
|
|
2857
|
+
*/
|
|
2858
|
+
lineDash?: 'dash' | 'dashDot' | 'lgDash' | 'lgDashDot' | 'lgDashDotDot' | 'solid' | 'sysDash' | 'sysDot';
|
|
2859
|
+
/**
|
|
2860
|
+
* @deprecated v3.3.0
|
|
2861
|
+
*/
|
|
2862
|
+
lineHead?: 'arrow' | 'diamond' | 'none' | 'oval' | 'stealth' | 'triangle';
|
|
2863
|
+
/**
|
|
2864
|
+
* @deprecated v3.3.0
|
|
2865
|
+
*/
|
|
2866
|
+
lineTail?: 'arrow' | 'diamond' | 'none' | 'oval' | 'stealth' | 'triangle';
|
|
2867
|
+
/**
|
|
2868
|
+
* Shape name (used instead of default "Shape N" name)
|
|
2869
|
+
* @deprecated v3.10.0 - use `objectName`
|
|
2870
|
+
*/
|
|
2871
|
+
shapeName?: string;
|
|
2872
|
+
/**
|
|
2873
|
+
* Animation configuration
|
|
2874
|
+
* - Can be a simple animation name or full configuration object
|
|
2875
|
+
* @example 'fadein'
|
|
2876
|
+
* @example { type: 'flyin', direction: 'left', duration: 1000 }
|
|
2877
|
+
*/
|
|
2878
|
+
animation?: string | AnimationConfig;
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
declare enum ShapeType {
|
|
2882
|
+
'accentBorderCallout1' = "accentBorderCallout1",
|
|
2883
|
+
'accentBorderCallout2' = "accentBorderCallout2",
|
|
2884
|
+
'accentBorderCallout3' = "accentBorderCallout3",
|
|
2885
|
+
'accentCallout1' = "accentCallout1",
|
|
2886
|
+
'accentCallout2' = "accentCallout2",
|
|
2887
|
+
'accentCallout3' = "accentCallout3",
|
|
2888
|
+
'actionButtonBackPrevious' = "actionButtonBackPrevious",
|
|
2889
|
+
'actionButtonBeginning' = "actionButtonBeginning",
|
|
2890
|
+
'actionButtonBlank' = "actionButtonBlank",
|
|
2891
|
+
'actionButtonDocument' = "actionButtonDocument",
|
|
2892
|
+
'actionButtonEnd' = "actionButtonEnd",
|
|
2893
|
+
'actionButtonForwardNext' = "actionButtonForwardNext",
|
|
2894
|
+
'actionButtonHelp' = "actionButtonHelp",
|
|
2895
|
+
'actionButtonHome' = "actionButtonHome",
|
|
2896
|
+
'actionButtonInformation' = "actionButtonInformation",
|
|
2897
|
+
'actionButtonMovie' = "actionButtonMovie",
|
|
2898
|
+
'actionButtonReturn' = "actionButtonReturn",
|
|
2899
|
+
'actionButtonSound' = "actionButtonSound",
|
|
2900
|
+
'arc' = "arc",
|
|
2901
|
+
'bentArrow' = "bentArrow",
|
|
2902
|
+
'bentUpArrow' = "bentUpArrow",
|
|
2903
|
+
'bevel' = "bevel",
|
|
2904
|
+
'blockArc' = "blockArc",
|
|
2905
|
+
'borderCallout1' = "borderCallout1",
|
|
2906
|
+
'borderCallout2' = "borderCallout2",
|
|
2907
|
+
'borderCallout3' = "borderCallout3",
|
|
2908
|
+
'bracePair' = "bracePair",
|
|
2909
|
+
'bracketPair' = "bracketPair",
|
|
2910
|
+
'callout1' = "callout1",
|
|
2911
|
+
'callout2' = "callout2",
|
|
2912
|
+
'callout3' = "callout3",
|
|
2913
|
+
'can' = "can",
|
|
2914
|
+
'chartPlus' = "chartPlus",
|
|
2915
|
+
'chartStar' = "chartStar",
|
|
2916
|
+
'chartX' = "chartX",
|
|
2917
|
+
'chevron' = "chevron",
|
|
2918
|
+
'chord' = "chord",
|
|
2919
|
+
'circularArrow' = "circularArrow",
|
|
2920
|
+
'cloud' = "cloud",
|
|
2921
|
+
'cloudCallout' = "cloudCallout",
|
|
2922
|
+
'corner' = "corner",
|
|
2923
|
+
'cornerTabs' = "cornerTabs",
|
|
2924
|
+
'cube' = "cube",
|
|
2925
|
+
'curvedDownArrow' = "curvedDownArrow",
|
|
2926
|
+
'curvedLeftArrow' = "curvedLeftArrow",
|
|
2927
|
+
'curvedRightArrow' = "curvedRightArrow",
|
|
2928
|
+
'curvedUpArrow' = "curvedUpArrow",
|
|
2929
|
+
'custGeom' = "custGeom",
|
|
2930
|
+
'decagon' = "decagon",
|
|
2931
|
+
'diagStripe' = "diagStripe",
|
|
2932
|
+
'diamond' = "diamond",
|
|
2933
|
+
'dodecagon' = "dodecagon",
|
|
2934
|
+
'donut' = "donut",
|
|
2935
|
+
'doubleWave' = "doubleWave",
|
|
2936
|
+
'downArrow' = "downArrow",
|
|
2937
|
+
'downArrowCallout' = "downArrowCallout",
|
|
2938
|
+
'ellipse' = "ellipse",
|
|
2939
|
+
'ellipseRibbon' = "ellipseRibbon",
|
|
2940
|
+
'ellipseRibbon2' = "ellipseRibbon2",
|
|
2941
|
+
'flowChartAlternateProcess' = "flowChartAlternateProcess",
|
|
2942
|
+
'flowChartCollate' = "flowChartCollate",
|
|
2943
|
+
'flowChartConnector' = "flowChartConnector",
|
|
2944
|
+
'flowChartDecision' = "flowChartDecision",
|
|
2945
|
+
'flowChartDelay' = "flowChartDelay",
|
|
2946
|
+
'flowChartDisplay' = "flowChartDisplay",
|
|
2947
|
+
'flowChartDocument' = "flowChartDocument",
|
|
2948
|
+
'flowChartExtract' = "flowChartExtract",
|
|
2949
|
+
'flowChartInputOutput' = "flowChartInputOutput",
|
|
2950
|
+
'flowChartInternalStorage' = "flowChartInternalStorage",
|
|
2951
|
+
'flowChartMagneticDisk' = "flowChartMagneticDisk",
|
|
2952
|
+
'flowChartMagneticDrum' = "flowChartMagneticDrum",
|
|
2953
|
+
'flowChartMagneticTape' = "flowChartMagneticTape",
|
|
2954
|
+
'flowChartManualInput' = "flowChartManualInput",
|
|
2955
|
+
'flowChartManualOperation' = "flowChartManualOperation",
|
|
2956
|
+
'flowChartMerge' = "flowChartMerge",
|
|
2957
|
+
'flowChartMultidocument' = "flowChartMultidocument",
|
|
2958
|
+
'flowChartOfflineStorage' = "flowChartOfflineStorage",
|
|
2959
|
+
'flowChartOffpageConnector' = "flowChartOffpageConnector",
|
|
2960
|
+
'flowChartOnlineStorage' = "flowChartOnlineStorage",
|
|
2961
|
+
'flowChartOr' = "flowChartOr",
|
|
2962
|
+
'flowChartPredefinedProcess' = "flowChartPredefinedProcess",
|
|
2963
|
+
'flowChartPreparation' = "flowChartPreparation",
|
|
2964
|
+
'flowChartProcess' = "flowChartProcess",
|
|
2965
|
+
'flowChartPunchedCard' = "flowChartPunchedCard",
|
|
2966
|
+
'flowChartPunchedTape' = "flowChartPunchedTape",
|
|
2967
|
+
'flowChartSort' = "flowChartSort",
|
|
2968
|
+
'flowChartSummingJunction' = "flowChartSummingJunction",
|
|
2969
|
+
'flowChartTerminator' = "flowChartTerminator",
|
|
2970
|
+
'folderCorner' = "folderCorner",
|
|
2971
|
+
'frame' = "frame",
|
|
2972
|
+
'funnel' = "funnel",
|
|
2973
|
+
'gear6' = "gear6",
|
|
2974
|
+
'gear9' = "gear9",
|
|
2975
|
+
'halfFrame' = "halfFrame",
|
|
2976
|
+
'heart' = "heart",
|
|
2977
|
+
'heptagon' = "heptagon",
|
|
2978
|
+
'hexagon' = "hexagon",
|
|
2979
|
+
'homePlate' = "homePlate",
|
|
2980
|
+
'horizontalScroll' = "horizontalScroll",
|
|
2981
|
+
'irregularSeal1' = "irregularSeal1",
|
|
2982
|
+
'irregularSeal2' = "irregularSeal2",
|
|
2983
|
+
'leftArrow' = "leftArrow",
|
|
2984
|
+
'leftArrowCallout' = "leftArrowCallout",
|
|
2985
|
+
'leftBrace' = "leftBrace",
|
|
2986
|
+
'leftBracket' = "leftBracket",
|
|
2987
|
+
'leftCircularArrow' = "leftCircularArrow",
|
|
2988
|
+
'leftRightArrow' = "leftRightArrow",
|
|
2989
|
+
'leftRightArrowCallout' = "leftRightArrowCallout",
|
|
2990
|
+
'leftRightCircularArrow' = "leftRightCircularArrow",
|
|
2991
|
+
'leftRightRibbon' = "leftRightRibbon",
|
|
2992
|
+
'leftRightUpArrow' = "leftRightUpArrow",
|
|
2993
|
+
'leftUpArrow' = "leftUpArrow",
|
|
2994
|
+
'lightningBolt' = "lightningBolt",
|
|
2995
|
+
'line' = "line",
|
|
2996
|
+
'lineInv' = "lineInv",
|
|
2997
|
+
'mathDivide' = "mathDivide",
|
|
2998
|
+
'mathEqual' = "mathEqual",
|
|
2999
|
+
'mathMinus' = "mathMinus",
|
|
3000
|
+
'mathMultiply' = "mathMultiply",
|
|
3001
|
+
'mathNotEqual' = "mathNotEqual",
|
|
3002
|
+
'mathPlus' = "mathPlus",
|
|
3003
|
+
'moon' = "moon",
|
|
3004
|
+
'noSmoking' = "noSmoking",
|
|
3005
|
+
'nonIsoscelesTrapezoid' = "nonIsoscelesTrapezoid",
|
|
3006
|
+
'notchedRightArrow' = "notchedRightArrow",
|
|
3007
|
+
'octagon' = "octagon",
|
|
3008
|
+
'parallelogram' = "parallelogram",
|
|
3009
|
+
'pentagon' = "pentagon",
|
|
3010
|
+
'pie' = "pie",
|
|
3011
|
+
'pieWedge' = "pieWedge",
|
|
3012
|
+
'plaque' = "plaque",
|
|
3013
|
+
'plaqueTabs' = "plaqueTabs",
|
|
3014
|
+
'plus' = "plus",
|
|
3015
|
+
'quadArrow' = "quadArrow",
|
|
3016
|
+
'quadArrowCallout' = "quadArrowCallout",
|
|
3017
|
+
'rect' = "rect",
|
|
3018
|
+
'ribbon' = "ribbon",
|
|
3019
|
+
'ribbon2' = "ribbon2",
|
|
3020
|
+
'rightArrow' = "rightArrow",
|
|
3021
|
+
'rightArrowCallout' = "rightArrowCallout",
|
|
3022
|
+
'rightBrace' = "rightBrace",
|
|
3023
|
+
'rightBracket' = "rightBracket",
|
|
3024
|
+
'round1Rect' = "round1Rect",
|
|
3025
|
+
'round2DiagRect' = "round2DiagRect",
|
|
3026
|
+
'round2SameRect' = "round2SameRect",
|
|
3027
|
+
'roundRect' = "roundRect",
|
|
3028
|
+
'rtTriangle' = "rtTriangle",
|
|
3029
|
+
'smileyFace' = "smileyFace",
|
|
3030
|
+
'snip1Rect' = "snip1Rect",
|
|
3031
|
+
'snip2DiagRect' = "snip2DiagRect",
|
|
3032
|
+
'snip2SameRect' = "snip2SameRect",
|
|
3033
|
+
'snipRoundRect' = "snipRoundRect",
|
|
3034
|
+
'squareTabs' = "squareTabs",
|
|
3035
|
+
'star10' = "star10",
|
|
3036
|
+
'star12' = "star12",
|
|
3037
|
+
'star16' = "star16",
|
|
3038
|
+
'star24' = "star24",
|
|
3039
|
+
'star32' = "star32",
|
|
3040
|
+
'star4' = "star4",
|
|
3041
|
+
'star5' = "star5",
|
|
3042
|
+
'star6' = "star6",
|
|
3043
|
+
'star7' = "star7",
|
|
3044
|
+
'star8' = "star8",
|
|
3045
|
+
'stripedRightArrow' = "stripedRightArrow",
|
|
3046
|
+
'sun' = "sun",
|
|
3047
|
+
'swooshArrow' = "swooshArrow",
|
|
3048
|
+
'teardrop' = "teardrop",
|
|
3049
|
+
'trapezoid' = "trapezoid",
|
|
3050
|
+
'triangle' = "triangle",
|
|
3051
|
+
'upArrow' = "upArrow",
|
|
3052
|
+
'upArrowCallout' = "upArrowCallout",
|
|
3053
|
+
'upDownArrow' = "upDownArrow",
|
|
3054
|
+
'upDownArrowCallout' = "upDownArrowCallout",
|
|
3055
|
+
'uturnArrow' = "uturnArrow",
|
|
3056
|
+
'verticalScroll' = "verticalScroll",
|
|
3057
|
+
'wave' = "wave",
|
|
3058
|
+
'wedgeEllipseCallout' = "wedgeEllipseCallout",
|
|
3059
|
+
'wedgeRectCallout' = "wedgeRectCallout",
|
|
3060
|
+
'wedgeRoundRectCallout' = "wedgeRoundRectCallout"
|
|
3061
|
+
}
|
|
3062
|
+
|
|
3063
|
+
declare enum SLIDE_OBJECT_TYPES {
|
|
3064
|
+
'chart' = "chart",
|
|
3065
|
+
'hyperlink' = "hyperlink",
|
|
3066
|
+
'image' = "image",
|
|
3067
|
+
'media' = "media",
|
|
3068
|
+
'online' = "online",
|
|
3069
|
+
'placeholder' = "placeholder",
|
|
3070
|
+
'table' = "table",
|
|
3071
|
+
'tablecell' = "tablecell",
|
|
3072
|
+
'text' = "text",
|
|
3073
|
+
'notes' = "notes",
|
|
3074
|
+
'zoom' = "zoom",
|
|
3075
|
+
'contentPart' = "contentPart",
|
|
3076
|
+
'officeApp' = "officeApp"
|
|
3077
|
+
}
|
|
3078
|
+
|
|
3079
|
+
declare interface SlideBaseProps {
|
|
3080
|
+
_allocChartId: () => number;
|
|
3081
|
+
_bkgdImgRid?: number;
|
|
3082
|
+
_margin?: Margin;
|
|
3083
|
+
_name?: string;
|
|
3084
|
+
_presLayout: PresLayout;
|
|
3085
|
+
_rels: ISlideRel[];
|
|
3086
|
+
_relsChart: ISlideRelChart[];
|
|
3087
|
+
_relsMedia: ISlideRelMedia[];
|
|
3088
|
+
_slideNum: number | null;
|
|
3089
|
+
_slideNumberProps?: SlideNumberProps;
|
|
3090
|
+
_slideObjects: ISlideObject[];
|
|
3091
|
+
background?: BackgroundProps;
|
|
3092
|
+
/**
|
|
3093
|
+
* @deprecated v3.3.0 - use `background`
|
|
3094
|
+
*/
|
|
3095
|
+
bkgd?: string | BackgroundProps;
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
declare interface SlideLayout extends SlideBaseProps {
|
|
3099
|
+
_slide?: {
|
|
3100
|
+
_bkgdImgRid?: number;
|
|
3101
|
+
back: string;
|
|
3102
|
+
color: string;
|
|
3103
|
+
hidden?: boolean;
|
|
3104
|
+
};
|
|
3105
|
+
}
|
|
3106
|
+
|
|
3107
|
+
declare interface SlideMasterProps {
|
|
3108
|
+
/**
|
|
3109
|
+
* Unique name for this master
|
|
3110
|
+
*/
|
|
3111
|
+
title: string;
|
|
3112
|
+
background?: BackgroundProps;
|
|
3113
|
+
margin?: Margin;
|
|
3114
|
+
slideNumber?: SlideNumberProps;
|
|
3115
|
+
objects?: Array<{
|
|
3116
|
+
chart: IChartOpts;
|
|
3117
|
+
} | {
|
|
3118
|
+
image: ImageProps;
|
|
3119
|
+
} | {
|
|
3120
|
+
line: ShapeProps;
|
|
3121
|
+
} | {
|
|
3122
|
+
rect: ShapeProps;
|
|
3123
|
+
} | {
|
|
3124
|
+
roundRect: ShapeProps;
|
|
3125
|
+
} | {
|
|
3126
|
+
text: TextProps;
|
|
3127
|
+
}
|
|
3128
|
+
/** any of the 180+ shape types (`line`/`rect` above are shorthands) */
|
|
3129
|
+
| {
|
|
3130
|
+
shape: {
|
|
3131
|
+
type: SHAPE_NAME;
|
|
3132
|
+
options?: ShapeProps;
|
|
3133
|
+
};
|
|
3134
|
+
} | {
|
|
3135
|
+
table: {
|
|
3136
|
+
rows: TableRow[];
|
|
3137
|
+
options?: TableProps;
|
|
3138
|
+
};
|
|
3139
|
+
} | {
|
|
3140
|
+
media: MediaProps;
|
|
3141
|
+
} | {
|
|
3142
|
+
placeholder: {
|
|
3143
|
+
options: PlaceholderProps;
|
|
3144
|
+
/**
|
|
3145
|
+
* Text to be shown in placeholder (shown until user focuses textbox or adds text)
|
|
3146
|
+
* - Leave blank to have powerpoint show default phrase (ex: "Click to add title")
|
|
3147
|
+
*/
|
|
3148
|
+
text?: string;
|
|
3149
|
+
};
|
|
3150
|
+
}>;
|
|
3151
|
+
/**
|
|
3152
|
+
* @deprecated v3.3.0 - use `background`
|
|
3153
|
+
*/
|
|
3154
|
+
bkgd?: string | BackgroundProps;
|
|
3155
|
+
}
|
|
3156
|
+
|
|
3157
|
+
declare interface SlideNumberProps extends PositionProps, TextBaseProps {
|
|
3158
|
+
/**
|
|
3159
|
+
* margin (points)
|
|
3160
|
+
*/
|
|
3161
|
+
margin?: Margin;
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
/**
|
|
3165
|
+
* A recorded slide-show event. MS-PPTX §2.3.3.28 `CT_ShowEventRecordList`.
|
|
3166
|
+
* `time` is milliseconds from the slide timeline; `objId` is the drawing element id.
|
|
3167
|
+
*/
|
|
3168
|
+
declare interface SlideShowEvent {
|
|
3169
|
+
type: 'trigger' | 'play' | 'stop' | 'pause' | 'resume' | 'seek' | 'null';
|
|
3170
|
+
time: number;
|
|
3171
|
+
objId: number;
|
|
3172
|
+
/** `triggerEvt` only. @default 'onClick' */
|
|
3173
|
+
trigger?: SlideShowTriggerType;
|
|
3174
|
+
/** `seekEvt` only. Seek offset in milliseconds. */
|
|
3175
|
+
seek?: number;
|
|
3176
|
+
}
|
|
3177
|
+
|
|
3178
|
+
/** ECMA-376 `ST_TLTriggerEvent` values used by `p14:triggerEvt`. */
|
|
3179
|
+
declare type SlideShowTriggerType = 'onBegin' | 'onEnd' | 'begin' | 'end' | 'onClick' | 'onDblClick' | 'onMouseOver' | 'onMouseOut' | 'onNext' | 'onPrev' | 'onStopAudio';
|
|
3180
|
+
|
|
3181
|
+
/**
|
|
3182
|
+
* Slide transition options. ECMA-376 §19.3.1.50 `CT_SlideTransition`.
|
|
3183
|
+
* Modern (MS-PPTX) transition types are emitted inside `<mc:AlternateContent>` with a base-type fallback.
|
|
3184
|
+
*/
|
|
3185
|
+
declare interface SlideTransitionProps {
|
|
3186
|
+
/**
|
|
3187
|
+
* Transition type.
|
|
3188
|
+
* ECMA-376 base: 'blinds'|'checker'|'circle'|'comb'|'cover'|'cut'|'diamond'|'dissolve'|'fade'|
|
|
3189
|
+
* 'newsflash'|'none'|'plus'|'pull'|'push'|'random'|'randomBar'|'split'|'strips'|'wedge'|'wheel'|'wipe'|'zoom'.
|
|
3190
|
+
* MS-PPTX 2010+ (emitted via AlternateContent): 'conveyor'|'doors'|'ferris'|'flash'|'flip'|'flythrough'|
|
|
3191
|
+
* 'gallery'|'glitter'|'honeycomb'|'morph'|'pan'|'prism'|'reveal'|'ripple'|'shred'|'switch'|'vortex'|'warp'|'wheelReverse'|'window'.
|
|
3192
|
+
*/
|
|
3193
|
+
type: TRANSITION_TYPE;
|
|
3194
|
+
/**
|
|
3195
|
+
* Transition direction. Meaning depends on type:
|
|
3196
|
+
* side (push/wipe/vortex/pan): 'l'|'r'|'u'|'d'; orientation (blinds/checker/comb/randomBar/doors): 'horz'|'vert';
|
|
3197
|
+
* eight-dir (cover/pull/ferris/gallery/conveyor/flip/switch): 'l'|'r'|'u'|'d'|'lu'|'ru'|'ld'|'rd';
|
|
3198
|
+
* corner (strips): 'lu'|'ru'|'ll'|'rl'; in/out (split/zoom/warp): 'in'|'out'.
|
|
3199
|
+
*/
|
|
3200
|
+
direction?: string;
|
|
3201
|
+
/**
|
|
3202
|
+
* Transition speed.
|
|
3203
|
+
* @default 'fast'
|
|
3204
|
+
*/
|
|
3205
|
+
speed?: 'slow' | 'med' | 'fast';
|
|
3206
|
+
/**
|
|
3207
|
+
* Duration in milliseconds (MS-PPTX `p14:dur` extension; overrides `speed`).
|
|
3208
|
+
*/
|
|
3209
|
+
duration?: number;
|
|
3210
|
+
/** Advance on mouse click. @default true */
|
|
3211
|
+
advClick?: boolean;
|
|
3212
|
+
/** Auto-advance after N milliseconds. */
|
|
3213
|
+
advTm?: number;
|
|
3214
|
+
/** `wheel` only: number of spokes. @default 4 */
|
|
3215
|
+
spokes?: number;
|
|
3216
|
+
/** `fade`/`cut` only: transition through black. @default false */
|
|
3217
|
+
thruBlk?: boolean;
|
|
3218
|
+
}
|
|
3219
|
+
|
|
3220
|
+
/**
|
|
3221
|
+
* Soft-edge effect (`a:softEdge`) — blur the shape outline.
|
|
3222
|
+
* - radius in points
|
|
3223
|
+
*/
|
|
3224
|
+
declare interface SoftEdgeProps {
|
|
3225
|
+
/**
|
|
3226
|
+
* Soft-edge radius (points)
|
|
3227
|
+
* @example 8
|
|
3228
|
+
*/
|
|
3229
|
+
radius: number;
|
|
3230
|
+
}
|
|
3231
|
+
|
|
3232
|
+
declare type SpinAmount = 'quarterSpin' | 'halfSpin' | 'fullSpin' | 'twoSpins';
|
|
3233
|
+
|
|
3234
|
+
declare interface SpinAnimationConfig extends BaseAnimationConfig {
|
|
3235
|
+
type: 'spin';
|
|
3236
|
+
direction?: SpinDirection;
|
|
3237
|
+
amount?: SpinAmount;
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
declare type SpinDirection = 'clockwise' | 'counterClockwise';
|
|
3241
|
+
|
|
3242
|
+
declare interface SplitAnimationConfig extends BaseAnimationConfig {
|
|
3243
|
+
type: 'split' | 'splitexit';
|
|
3244
|
+
direction?: SplitDirection;
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
declare type SplitDirection = 'horizontalIn' | 'horizontalOut' | 'verticalIn' | 'verticalOut';
|
|
3248
|
+
|
|
3249
|
+
/** A Summary Zoom navigation object. MS-PPTX §2.11 `CT_SummaryZoom`. */
|
|
3250
|
+
declare interface SummaryZoomProps extends ZoomBaseProps {
|
|
3251
|
+
/** Title of the target section (must match an `addSection({ title })`). */
|
|
3252
|
+
sectionTitle: string;
|
|
3253
|
+
/** Alt-text title on the zoom object. */
|
|
3254
|
+
title?: string;
|
|
3255
|
+
/** Alt-text description on the zoom object. */
|
|
3256
|
+
descr?: string;
|
|
3257
|
+
/** X offset from default layout (percent, 100000 = 100%). @default 0 */
|
|
3258
|
+
offsetFactorX?: number;
|
|
3259
|
+
/** Y offset from default layout (percent). @default 0 */
|
|
3260
|
+
offsetFactorY?: number;
|
|
3261
|
+
/** X scale from default layout (percent). @default 100000 */
|
|
3262
|
+
scaleFactorX?: number;
|
|
3263
|
+
/** Y scale from default layout (percent). @default 100000 */
|
|
3264
|
+
scaleFactorY?: number;
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
declare interface TableCell {
|
|
3268
|
+
/** @internal assigned by the table builder; consumers pass plain `{ text, options }` objects */
|
|
3269
|
+
_type?: SLIDE_OBJECT_TYPES.tablecell;
|
|
3270
|
+
/** lines in this cell (autoPage) */
|
|
3271
|
+
_lines?: TableCell[][];
|
|
3272
|
+
/** `text` prop but guaranteed to hold "TableCell[]" */
|
|
3273
|
+
_tableCells?: TableCell[];
|
|
3274
|
+
/** height in EMU */
|
|
3275
|
+
_lineHeight?: number;
|
|
3276
|
+
_hmerge?: boolean;
|
|
3277
|
+
_vmerge?: boolean;
|
|
3278
|
+
_rowContinue?: number;
|
|
3279
|
+
_optImp?: any;
|
|
3280
|
+
text?: string | TableCell[];
|
|
3281
|
+
options?: TableCellProps;
|
|
3282
|
+
}
|
|
3283
|
+
|
|
3284
|
+
declare interface TableCellProps extends TextBaseProps {
|
|
3285
|
+
/**
|
|
3286
|
+
* Auto-paging character weight
|
|
3287
|
+
* - adjusts how many characters are used before lines wrap
|
|
3288
|
+
* - range: -1.0 to 1.0
|
|
3289
|
+
* @see https://gitbrent.github.io/PptxGenJS/docs/api-tables.html
|
|
3290
|
+
* @default 0.0
|
|
3291
|
+
* @example 0.5 // lines are longer (increases the number of characters that can fit on a given line)
|
|
3292
|
+
*/
|
|
3293
|
+
autoPageCharWeight?: number;
|
|
3294
|
+
/**
|
|
3295
|
+
* Auto-paging line weight
|
|
3296
|
+
* - adjusts how many lines are used before slides wrap
|
|
3297
|
+
* - range: -1.0 to 1.0
|
|
3298
|
+
* @see https://gitbrent.github.io/PptxGenJS/docs/api-tables.html
|
|
3299
|
+
* @default 0.0
|
|
3300
|
+
* @example 0.5 // tables are taller (increases the number of lines that can fit on a given slide)
|
|
3301
|
+
*/
|
|
3302
|
+
autoPageLineWeight?: number;
|
|
3303
|
+
/**
|
|
3304
|
+
* Cell border
|
|
3305
|
+
*/
|
|
3306
|
+
border?: BorderProps | [BorderProps, BorderProps, BorderProps, BorderProps];
|
|
3307
|
+
/**
|
|
3308
|
+
* Cell colspan
|
|
3309
|
+
*/
|
|
3310
|
+
colspan?: number;
|
|
3311
|
+
/**
|
|
3312
|
+
* Fill color
|
|
3313
|
+
* @example { color:'FF0000' } // hex color (red)
|
|
3314
|
+
* @example { color:'0088CC', transparency:50 } // hex color, 50% transparent
|
|
3315
|
+
* @example { color:pptx.SchemeColor.accent1 } // theme color Accent1
|
|
3316
|
+
*/
|
|
3317
|
+
fill?: ShapeFillProps;
|
|
3318
|
+
hyperlink?: HyperlinkProps;
|
|
3319
|
+
/**
|
|
3320
|
+
* Cell margin (inches)
|
|
3321
|
+
* @default 0
|
|
3322
|
+
*/
|
|
3323
|
+
margin?: Margin;
|
|
3324
|
+
/**
|
|
3325
|
+
* Cell rowspan
|
|
3326
|
+
*/
|
|
3327
|
+
rowspan?: number;
|
|
3328
|
+
/**
|
|
3329
|
+
* Text direction (Martin-N alias of `textDirection`)
|
|
3330
|
+
* @deprecated use `textDirection`
|
|
3331
|
+
*/
|
|
3332
|
+
vert?: 'eaVert' | 'horz' | 'mongolianVert' | 'vert' | 'vert270' | 'wordArtVert' | 'wordArtVertRtl';
|
|
3333
|
+
}
|
|
3334
|
+
|
|
3335
|
+
declare interface TableProps extends PositionProps, TextBaseProps, ObjectNameProps, AppearOnClickProps, NvPrExtensionProps {
|
|
3336
|
+
_arrObjTabHeadRows?: TableRow[];
|
|
3337
|
+
/**
|
|
3338
|
+
* Whether to enable auto-paging
|
|
3339
|
+
* - auto-paging creates new slides as content overflows a slide
|
|
3340
|
+
* @default false
|
|
3341
|
+
*/
|
|
3342
|
+
autoPage?: boolean;
|
|
3343
|
+
/**
|
|
3344
|
+
* Auto-paging character weight
|
|
3345
|
+
* - adjusts how many characters are used before lines wrap
|
|
3346
|
+
* - range: -1.0 to 1.0
|
|
3347
|
+
* @see https://gitbrent.github.io/PptxGenJS/docs/api-tables.html
|
|
3348
|
+
* @default 0.0
|
|
3349
|
+
* @example 0.5 // lines are longer (increases the number of characters that can fit on a given line)
|
|
3350
|
+
*/
|
|
3351
|
+
autoPageCharWeight?: number;
|
|
3352
|
+
/**
|
|
3353
|
+
* Auto-paging line weight
|
|
3354
|
+
* - adjusts how many lines are used before slides wrap
|
|
3355
|
+
* - range: -1.0 to 1.0
|
|
3356
|
+
* @see https://gitbrent.github.io/PptxGenJS/docs/api-tables.html
|
|
3357
|
+
* @default 0.0
|
|
3358
|
+
* @example 0.5 // tables are taller (increases the number of lines that can fit on a given slide)
|
|
3359
|
+
*/
|
|
3360
|
+
autoPageLineWeight?: number;
|
|
3361
|
+
/**
|
|
3362
|
+
* Whether table header row(s) should be repeated on each new slide creating by autoPage.
|
|
3363
|
+
* Use `autoPageHeaderRows` to designate how many rows comprise the table header (1+).
|
|
3364
|
+
* @default false
|
|
3365
|
+
* @since v3.3.0
|
|
3366
|
+
*/
|
|
3367
|
+
autoPageRepeatHeader?: boolean;
|
|
3368
|
+
/**
|
|
3369
|
+
* Number of rows that comprise table headers
|
|
3370
|
+
* - required when `autoPageRepeatHeader` is set to true.
|
|
3371
|
+
* @example 2 - repeats the first two table rows on each new slide created
|
|
3372
|
+
* @default 1
|
|
3373
|
+
* @since v3.3.0
|
|
3374
|
+
*/
|
|
3375
|
+
autoPageHeaderRows?: number;
|
|
3376
|
+
/**
|
|
3377
|
+
* The `y` location to use on subsequent slides created by autopaging
|
|
3378
|
+
* @default (top margin of Slide)
|
|
3379
|
+
*/
|
|
3380
|
+
autoPageSlideStartY?: number;
|
|
3381
|
+
/**
|
|
3382
|
+
* Table border
|
|
3383
|
+
* - single value is applied to all 4 sides
|
|
3384
|
+
* - array of values in TRBL order for individual sides
|
|
3385
|
+
*/
|
|
3386
|
+
border?: BorderProps | [BorderProps, BorderProps, BorderProps, BorderProps];
|
|
3387
|
+
/**
|
|
3388
|
+
* Width of table columns (inches)
|
|
3389
|
+
* - single value is applied to every column equally based upon `w`
|
|
3390
|
+
* - array of values in applied to each column in order
|
|
3391
|
+
* @default columns of equal width based upon `w`
|
|
3392
|
+
*/
|
|
3393
|
+
colW?: number | number[];
|
|
3394
|
+
/**
|
|
3395
|
+
* Cell background color
|
|
3396
|
+
* @example { color:'FF0000' } // hex color (red)
|
|
3397
|
+
* @example { color:'0088CC', transparency:50 } // hex color, 50% transparent
|
|
3398
|
+
* @example { color:pptx.SchemeColor.accent1 } // theme color Accent1
|
|
3399
|
+
*/
|
|
3400
|
+
fill?: ShapeFillProps;
|
|
3401
|
+
/**
|
|
3402
|
+
* Cell margin (inches)
|
|
3403
|
+
* - affects all table cells, is superceded by cell options
|
|
3404
|
+
*/
|
|
3405
|
+
margin?: Margin;
|
|
3406
|
+
/**
|
|
3407
|
+
* Height of table rows (inches)
|
|
3408
|
+
* - single value is applied to every row equally based upon `h`
|
|
3409
|
+
* - array of values in applied to each row in order
|
|
3410
|
+
* @default rows of equal height based upon `h`
|
|
3411
|
+
*/
|
|
3412
|
+
rowH?: number | number[];
|
|
3413
|
+
/**
|
|
3414
|
+
* Apply special formatting to the first row (header emphasis)
|
|
3415
|
+
* - only renders when a table style is in effect (see `tableStyleId`)
|
|
3416
|
+
* @default false
|
|
3417
|
+
*/
|
|
3418
|
+
firstRow?: boolean;
|
|
3419
|
+
/**
|
|
3420
|
+
* Apply special formatting to the last row (totals emphasis)
|
|
3421
|
+
* @default false
|
|
3422
|
+
*/
|
|
3423
|
+
lastRow?: boolean;
|
|
3424
|
+
/**
|
|
3425
|
+
* Apply special formatting to the first column
|
|
3426
|
+
* @default false
|
|
3427
|
+
*/
|
|
3428
|
+
firstCol?: boolean;
|
|
3429
|
+
/**
|
|
3430
|
+
* Apply special formatting to the last column
|
|
3431
|
+
* @default false
|
|
3432
|
+
*/
|
|
3433
|
+
lastCol?: boolean;
|
|
3434
|
+
/**
|
|
3435
|
+
* Band (alternate the fill of) the rows
|
|
3436
|
+
* @default false
|
|
3437
|
+
*/
|
|
3438
|
+
bandRow?: boolean;
|
|
3439
|
+
/**
|
|
3440
|
+
* Band (alternate the fill of) the columns
|
|
3441
|
+
* @default false
|
|
3442
|
+
*/
|
|
3443
|
+
bandCol?: boolean;
|
|
3444
|
+
/**
|
|
3445
|
+
* Lay the table out right-to-left (column order reversed) - ECMA-376 §5.1.6.13 `a:tblPr@rtl`
|
|
3446
|
+
* @default false
|
|
3447
|
+
*/
|
|
3448
|
+
rtlMode?: boolean;
|
|
3449
|
+
/**
|
|
3450
|
+
* Table style id (GUID of a built-in PowerPoint table style)
|
|
3451
|
+
* - required for `bandRow`/`firstRow`/etc. to have a visible effect
|
|
3452
|
+
* @example '{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}' // "Medium Style 2 - Accent 1"
|
|
3453
|
+
*/
|
|
3454
|
+
tableStyleId?: string;
|
|
3455
|
+
/**
|
|
3456
|
+
* Placeholder name to bind this table to (from a slide master/layout `placeholder` object of `type:'tbl'`).
|
|
3457
|
+
* Emits `<p:ph type="tbl"/>` on the graphicFrame and inherits the placeholder geometry (ECMA-376 §4.4.1.33/§4.8.14, issue #856).
|
|
3458
|
+
*/
|
|
3459
|
+
placeholder?: string;
|
|
3460
|
+
/**
|
|
3461
|
+
* Animation configuration
|
|
3462
|
+
* - Can be a simple animation name or full configuration object
|
|
3463
|
+
* @example 'fadein'
|
|
3464
|
+
* @example { type: 'flyin', direction: 'left', duration: 1000 }
|
|
3465
|
+
*/
|
|
3466
|
+
animation?: string | AnimationConfig;
|
|
3467
|
+
/**
|
|
3468
|
+
* @deprecated v3.3.0 - use `autoPageSlideStartY`
|
|
3469
|
+
*/
|
|
3470
|
+
newSlideStartY?: number;
|
|
3471
|
+
}
|
|
3472
|
+
|
|
3473
|
+
declare type TableRow = TableCell[];
|
|
3474
|
+
|
|
3475
|
+
declare interface TableToSlidesProps extends TableProps {
|
|
3476
|
+
_arrObjTabHeadRows?: TableRow[];
|
|
3477
|
+
/**
|
|
3478
|
+
* Add an image to slide(s) created during autopaging
|
|
3479
|
+
* - `image` prop requires either `path` or `data`
|
|
3480
|
+
* - see `DataOrPathProps` for details on `image` props
|
|
3481
|
+
* - see `PositionProps` for details on `options` props
|
|
3482
|
+
*/
|
|
3483
|
+
addImage?: {
|
|
3484
|
+
image: DataOrPathProps;
|
|
3485
|
+
options: PositionProps;
|
|
3486
|
+
};
|
|
3487
|
+
/**
|
|
3488
|
+
* Add a shape to slide(s) created during autopaging
|
|
3489
|
+
*/
|
|
3490
|
+
addShape?: {
|
|
3491
|
+
shapeName: SHAPE_NAME;
|
|
3492
|
+
options: ShapeProps;
|
|
3493
|
+
};
|
|
3494
|
+
/**
|
|
3495
|
+
* Add a table to slide(s) created during autopaging
|
|
3496
|
+
*/
|
|
3497
|
+
addTable?: {
|
|
3498
|
+
rows: TableRow[];
|
|
3499
|
+
options: TableProps;
|
|
3500
|
+
};
|
|
3501
|
+
/**
|
|
3502
|
+
* Add a text object to slide(s) created during autopaging
|
|
3503
|
+
*/
|
|
3504
|
+
addText?: {
|
|
3505
|
+
text: TextProps[];
|
|
3506
|
+
options: TextPropsOptions;
|
|
3507
|
+
};
|
|
3508
|
+
/**
|
|
3509
|
+
* Whether to enable auto-paging
|
|
3510
|
+
* - auto-paging creates new slides as content overflows a slide
|
|
3511
|
+
* @default true
|
|
3512
|
+
*/
|
|
3513
|
+
autoPage?: boolean;
|
|
3514
|
+
/**
|
|
3515
|
+
* Auto-paging character weight
|
|
3516
|
+
* - adjusts how many characters are used before lines wrap
|
|
3517
|
+
* - range: -1.0 to 1.0
|
|
3518
|
+
* @see https://gitbrent.github.io/PptxGenJS/docs/api-tables.html
|
|
3519
|
+
* @default 0.0
|
|
3520
|
+
* @example 0.5 // lines are longer (increases the number of characters that can fit on a given line)
|
|
3521
|
+
*/
|
|
3522
|
+
autoPageCharWeight?: number;
|
|
3523
|
+
/**
|
|
3524
|
+
* Auto-paging line weight
|
|
3525
|
+
* - adjusts how many lines are used before slides wrap
|
|
3526
|
+
* - range: -1.0 to 1.0
|
|
3527
|
+
* @see https://gitbrent.github.io/PptxGenJS/docs/api-tables.html
|
|
3528
|
+
* @default 0.0
|
|
3529
|
+
* @example 0.5 // tables are taller (increases the number of lines that can fit on a given slide)
|
|
3530
|
+
*/
|
|
3531
|
+
autoPageLineWeight?: number;
|
|
3532
|
+
/**
|
|
3533
|
+
* Whether to repeat head row(s) on new tables created by autopaging
|
|
3534
|
+
* @since v3.3.0
|
|
3535
|
+
* @default false
|
|
3536
|
+
*/
|
|
3537
|
+
autoPageRepeatHeader?: boolean;
|
|
3538
|
+
/**
|
|
3539
|
+
* The `y` location to use on subsequent slides created by autopaging
|
|
3540
|
+
* @default (top margin of Slide)
|
|
3541
|
+
*/
|
|
3542
|
+
autoPageSlideStartY?: number;
|
|
3543
|
+
/**
|
|
3544
|
+
* Column widths (inches)
|
|
3545
|
+
*/
|
|
3546
|
+
colW?: number | number[];
|
|
3547
|
+
/**
|
|
3548
|
+
* Master slide name
|
|
3549
|
+
* - define a master slide to have your auto-paged slides have corporate design, etc.
|
|
3550
|
+
* @see https://gitbrent.github.io/PptxGenJS/docs/masters.html
|
|
3551
|
+
*/
|
|
3552
|
+
masterSlideName?: string;
|
|
3553
|
+
/**
|
|
3554
|
+
* Slide margin
|
|
3555
|
+
* - this margin will be across all slides created by auto-paging
|
|
3556
|
+
*/
|
|
3557
|
+
slideMargin?: Margin;
|
|
3558
|
+
/**
|
|
3559
|
+
* @deprecated v3.3.0 - use `autoPageRepeatHeader`
|
|
3560
|
+
*/
|
|
3561
|
+
addHeaderToEach?: boolean;
|
|
3562
|
+
/**
|
|
3563
|
+
* @deprecated v3.3.0 - use `autoPageSlideStartY`
|
|
3564
|
+
*/
|
|
3565
|
+
newSlideStartY?: number;
|
|
3566
|
+
}
|
|
3567
|
+
|
|
3568
|
+
declare enum TEXT_HALIGN {
|
|
3569
|
+
'left' = "left",
|
|
3570
|
+
'center' = "center",
|
|
3571
|
+
'right' = "right",
|
|
3572
|
+
'justify' = "justify"
|
|
3573
|
+
}
|
|
3574
|
+
|
|
3575
|
+
declare enum TEXT_VALIGN {
|
|
3576
|
+
'b' = "b",
|
|
3577
|
+
'ctr' = "ctr",
|
|
3578
|
+
't' = "t"
|
|
3579
|
+
}
|
|
3580
|
+
|
|
3581
|
+
declare interface TextBaseProps {
|
|
3582
|
+
/**
|
|
3583
|
+
* Horizontal alignment
|
|
3584
|
+
* @default 'left'
|
|
3585
|
+
*/
|
|
3586
|
+
align?: HAlign;
|
|
3587
|
+
/**
|
|
3588
|
+
* Bold style
|
|
3589
|
+
* @default false
|
|
3590
|
+
*/
|
|
3591
|
+
bold?: boolean;
|
|
3592
|
+
/**
|
|
3593
|
+
* Add a line-break
|
|
3594
|
+
* @default false
|
|
3595
|
+
*/
|
|
3596
|
+
breakLine?: boolean;
|
|
3597
|
+
/**
|
|
3598
|
+
* Add standard or custom bullet
|
|
3599
|
+
* - use `true` for standard bullet
|
|
3600
|
+
* - pass object options for custom bullet
|
|
3601
|
+
* @default false
|
|
3602
|
+
*/
|
|
3603
|
+
bullet?: boolean | {
|
|
3604
|
+
/**
|
|
3605
|
+
* Bullet type
|
|
3606
|
+
* @default bullet
|
|
3607
|
+
*/
|
|
3608
|
+
type?: 'bullet' | 'number';
|
|
3609
|
+
/**
|
|
3610
|
+
* Bullet character code (unicode)
|
|
3611
|
+
* @since v3.3.0
|
|
3612
|
+
* @example '25BA' // 'BLACK RIGHT-POINTING POINTER' (U+25BA)
|
|
3613
|
+
*/
|
|
3614
|
+
characterCode?: string;
|
|
3615
|
+
/**
|
|
3616
|
+
* Bullet color (`HexColor`, `ThemeColor`, or `ModifiedThemeColor`)
|
|
3617
|
+
* @example 'FF0000' // red
|
|
3618
|
+
* @example pptx.SchemeColor.accent1
|
|
3619
|
+
*/
|
|
3620
|
+
color?: Color;
|
|
3621
|
+
/**
|
|
3622
|
+
* Indentation (space between bullet and text) (points)
|
|
3623
|
+
* @since v3.3.0
|
|
3624
|
+
* @default 27 // DEF_BULLET_MARGIN
|
|
3625
|
+
* @example 10 // Indents text 10 points from bullet
|
|
3626
|
+
*/
|
|
3627
|
+
indent?: number;
|
|
3628
|
+
/**
|
|
3629
|
+
* Number type
|
|
3630
|
+
* @since v3.3.0
|
|
3631
|
+
* @example 'romanLcParenR' // roman numerals lower-case with paranthesis right
|
|
3632
|
+
*/
|
|
3633
|
+
numberType?: 'alphaLcParenBoth' | 'alphaLcParenR' | 'alphaLcPeriod' | 'alphaUcParenBoth' | 'alphaUcParenR' | 'alphaUcPeriod' | 'arabicParenBoth' | 'arabicParenR' | 'arabicPeriod' | 'arabicPlain' | 'romanLcParenBoth' | 'romanLcParenR' | 'romanLcPeriod' | 'romanUcParenBoth' | 'romanUcParenR' | 'romanUcPeriod';
|
|
3634
|
+
/**
|
|
3635
|
+
* Number bullets start at
|
|
3636
|
+
* @since v3.3.0
|
|
3637
|
+
* @default 1
|
|
3638
|
+
* @example 10 // numbered bullets start with 10
|
|
3639
|
+
*/
|
|
3640
|
+
numberStartAt?: number;
|
|
3641
|
+
/**
|
|
3642
|
+
* Bullet code (unicode)
|
|
3643
|
+
* @deprecated v3.3.0 - use `characterCode`
|
|
3644
|
+
*/
|
|
3645
|
+
code?: string;
|
|
3646
|
+
/**
|
|
3647
|
+
* Margin between bullet and text
|
|
3648
|
+
* @since v3.2.1
|
|
3649
|
+
* @deplrecated v3.3.0 - use `indent`
|
|
3650
|
+
*/
|
|
3651
|
+
marginPt?: number;
|
|
3652
|
+
/**
|
|
3653
|
+
* Number to start with (only applies to type:number)
|
|
3654
|
+
* @deprecated v3.3.0 - use `numberStartAt`
|
|
3655
|
+
*/
|
|
3656
|
+
startAt?: number;
|
|
3657
|
+
/**
|
|
3658
|
+
* Number type
|
|
3659
|
+
* @deprecated v3.3.0 - use `numberType`
|
|
3660
|
+
*/
|
|
3661
|
+
style?: string;
|
|
3662
|
+
};
|
|
3663
|
+
/**
|
|
3664
|
+
* Text color
|
|
3665
|
+
* - `HexColor` or `ThemeColor`
|
|
3666
|
+
* - MS-PPT > Format Shape > Text Options > Text Fill & Outline > Text Fill > Color
|
|
3667
|
+
* @example 'FF0000' // hex color (red)
|
|
3668
|
+
* @example pptx.SchemeColor.text1 // Theme color (Text1)
|
|
3669
|
+
*/
|
|
3670
|
+
color?: Color;
|
|
3671
|
+
/**
|
|
3672
|
+
* Font face name
|
|
3673
|
+
* @example 'Arial' // Arial font
|
|
3674
|
+
*/
|
|
3675
|
+
fontFace?: string;
|
|
3676
|
+
/**
|
|
3677
|
+
* Font size
|
|
3678
|
+
* @example 12 // Font size 12
|
|
3679
|
+
*/
|
|
3680
|
+
fontSize?: number;
|
|
3681
|
+
/**
|
|
3682
|
+
* Text highlight color (hex format)
|
|
3683
|
+
* @example 'FFFF00' // yellow
|
|
3684
|
+
*/
|
|
3685
|
+
highlight?: HexColor;
|
|
3686
|
+
/**
|
|
3687
|
+
* italic style
|
|
3688
|
+
* @default false
|
|
3689
|
+
*/
|
|
3690
|
+
italic?: boolean;
|
|
3691
|
+
/**
|
|
3692
|
+
* language
|
|
3693
|
+
* - ISO 639-1 standard language code
|
|
3694
|
+
* @default 'en-US' // english US
|
|
3695
|
+
* @example 'fr-CA' // french Canadian
|
|
3696
|
+
*/
|
|
3697
|
+
lang?: string;
|
|
3698
|
+
/**
|
|
3699
|
+
* Add a soft line-break (shift+enter) before line text content
|
|
3700
|
+
* @default false
|
|
3701
|
+
* @since v3.5.0
|
|
3702
|
+
*/
|
|
3703
|
+
softBreakBefore?: boolean;
|
|
3704
|
+
/**
|
|
3705
|
+
* tab stops
|
|
3706
|
+
* - PowerPoint: Paragraph > Tabs > Tab stop position
|
|
3707
|
+
* @example [{ position:1 }, { position:3 }] // Set first tab stop to 1 inch, set second tab stop to 3 inches
|
|
3708
|
+
*/
|
|
3709
|
+
tabStops?: Array<{
|
|
3710
|
+
position: number;
|
|
3711
|
+
alignment?: 'l' | 'r' | 'ctr' | 'dec';
|
|
3712
|
+
}>;
|
|
3713
|
+
/**
|
|
3714
|
+
* text direction
|
|
3715
|
+
* `horz` = horizontal
|
|
3716
|
+
* `vert` = rotate 90^
|
|
3717
|
+
* `vert270` = rotate 270^
|
|
3718
|
+
* `wordArtVert` = stacked
|
|
3719
|
+
* @default 'horz'
|
|
3720
|
+
*/
|
|
3721
|
+
textDirection?: 'eaVert' | 'horz' | 'mongolianVert' | 'vert' | 'vert270' | 'wordArtVert' | 'wordArtVertRtl';
|
|
3722
|
+
/**
|
|
3723
|
+
* Transparency (percent)
|
|
3724
|
+
* - MS-PPT > Format Shape > Text Options > Text Fill & Outline > Text Fill > Transparency
|
|
3725
|
+
* - range: 0-100
|
|
3726
|
+
* @default 0
|
|
3727
|
+
*/
|
|
3728
|
+
transparency?: number;
|
|
3729
|
+
/**
|
|
3730
|
+
* underline properties
|
|
3731
|
+
* - PowerPoint: Font > Color & Underline > Underline Style/Underline Color
|
|
3732
|
+
* @default (none)
|
|
3733
|
+
*/
|
|
3734
|
+
underline?: {
|
|
3735
|
+
style?: 'dash' | 'dashHeavy' | 'dashLong' | 'dashLongHeavy' | 'dbl' | 'dotDash' | 'dotDashHeave' | 'dotDotDash' | 'dotDotDashHeavy' | 'dotted' | 'dottedHeavy' | 'heavy' | 'none' | 'sng' | 'wavy' | 'wavyDbl' | 'wavyHeavy';
|
|
3736
|
+
color?: Color;
|
|
3737
|
+
};
|
|
3738
|
+
/**
|
|
3739
|
+
* vertical alignment
|
|
3740
|
+
* @default 'top'
|
|
3741
|
+
*/
|
|
3742
|
+
valign?: VAlign;
|
|
3743
|
+
}
|
|
3744
|
+
|
|
3745
|
+
declare interface TextGlowProps {
|
|
3746
|
+
/**
|
|
3747
|
+
* Border color (hex format)
|
|
3748
|
+
* @example 'FF3399'
|
|
3749
|
+
*/
|
|
3750
|
+
color?: HexColor;
|
|
3751
|
+
/**
|
|
3752
|
+
* opacity (0.0 - 1.0)
|
|
3753
|
+
* @example 0.5
|
|
3754
|
+
* 50% opaque
|
|
3755
|
+
*/
|
|
3756
|
+
opacity?: number;
|
|
3757
|
+
/**
|
|
3758
|
+
* size (points)
|
|
3759
|
+
*/
|
|
3760
|
+
size: number;
|
|
3761
|
+
}
|
|
3762
|
+
|
|
3763
|
+
declare interface TextProps {
|
|
3764
|
+
text?: string;
|
|
3765
|
+
options?: TextPropsOptions;
|
|
3766
|
+
}
|
|
3767
|
+
|
|
3768
|
+
declare interface TextPropsOptions extends PositionProps, DataOrPathProps, TextBaseProps, ObjectNameProps, AppearOnClickProps, NvPrExtensionProps {
|
|
3769
|
+
_bodyProp?: {
|
|
3770
|
+
autoFit?: boolean;
|
|
3771
|
+
align?: TEXT_HALIGN;
|
|
3772
|
+
anchor?: TEXT_VALIGN;
|
|
3773
|
+
lIns?: number;
|
|
3774
|
+
rIns?: number;
|
|
3775
|
+
tIns?: number;
|
|
3776
|
+
bIns?: number;
|
|
3777
|
+
numCol?: number;
|
|
3778
|
+
spcCol?: number;
|
|
3779
|
+
vert?: 'eaVert' | 'horz' | 'mongolianVert' | 'vert' | 'vert270' | 'wordArtVert' | 'wordArtVertRtl';
|
|
3780
|
+
wrap?: boolean;
|
|
3781
|
+
vertOverflow?: 'overflow' | 'ellipsis' | 'clip';
|
|
3782
|
+
horzOverflow?: 'overflow' | 'clip';
|
|
3783
|
+
};
|
|
3784
|
+
_lineIdx?: number;
|
|
3785
|
+
baseline?: number;
|
|
3786
|
+
/**
|
|
3787
|
+
* Number of text columns (>=2 flows text across columns). ECMA-376 §5.1.5.1.4 `@numCol` (issue #1320)
|
|
3788
|
+
* @default undefined (single column)
|
|
3789
|
+
*/
|
|
3790
|
+
columns?: number;
|
|
3791
|
+
/**
|
|
3792
|
+
* Gap between text columns in inches. ECMA-376 §5.1.5.1.4 `@spcCol` (issue #1320)
|
|
3793
|
+
* @default 0
|
|
3794
|
+
*/
|
|
3795
|
+
columnGap?: number;
|
|
3796
|
+
/**
|
|
3797
|
+
* Text capitalization applied at render time (does not change stored characters).
|
|
3798
|
+
* ECMA-376 §5.1.5.2.1 `CT_TextCharacterProperties@cap` / §5.1.12.64 `ST_TextCapsType`:
|
|
3799
|
+
* - `none` no capitalization, `small` small caps, `all` all caps
|
|
3800
|
+
* @default undefined (no cap attribute)
|
|
3801
|
+
*/
|
|
3802
|
+
caps?: 'none' | 'small' | 'all';
|
|
3803
|
+
/**
|
|
3804
|
+
* Character spacing
|
|
3805
|
+
*/
|
|
3806
|
+
charSpacing?: number;
|
|
3807
|
+
/**
|
|
3808
|
+
* Text fit options
|
|
3809
|
+
*
|
|
3810
|
+
* MS-PPT > Format Shape > Shape Options > Text Box > "[unlabeled group]": [3 options below]
|
|
3811
|
+
* - 'none' = Do not Autofit
|
|
3812
|
+
* - 'shrink' = Shrink text on overflow
|
|
3813
|
+
* - 'resize' = Resize shape to fit text
|
|
3814
|
+
*
|
|
3815
|
+
* **Note** 'shrink' and 'resize' only take effect after editing text/resize shape.
|
|
3816
|
+
* Both PowerPoint and Word dynamically calculate a scaling factor and apply it when edit/resize occurs.
|
|
3817
|
+
*
|
|
3818
|
+
* There is no way for this library to trigger that behavior, sorry.
|
|
3819
|
+
*
|
|
3820
|
+
* Pass an object `{ type:'shrink', fontScale?, lnSpcReduction? }` to write explicit
|
|
3821
|
+
* `<a:normAutofit>` scaling attributes (ECMA-376 §5.1.5.1.3): `fontScale` and `lnSpcReduction`
|
|
3822
|
+
* are percentages 0–100 (issue #1199).
|
|
3823
|
+
* @since v3.3.0
|
|
3824
|
+
* @default "none"
|
|
3825
|
+
*/
|
|
3826
|
+
fit?: 'none' | 'shrink' | 'resize' | {
|
|
3827
|
+
type: 'shrink';
|
|
3828
|
+
fontScale?: number;
|
|
3829
|
+
lnSpcReduction?: number;
|
|
3830
|
+
};
|
|
3831
|
+
/**
|
|
3832
|
+
* Shape fill
|
|
3833
|
+
* @example { color:'FF0000' } // hex color (red)
|
|
3834
|
+
* @example { color:'0088CC', transparency:50 } // hex color, 50% transparent
|
|
3835
|
+
* @example { color:pptx.SchemeColor.accent1 } // theme color Accent1
|
|
3836
|
+
*/
|
|
3837
|
+
fill?: ShapeFillProps;
|
|
3838
|
+
/**
|
|
3839
|
+
* Flip shape horizontally?
|
|
3840
|
+
* @default false
|
|
3841
|
+
*/
|
|
3842
|
+
flipH?: boolean;
|
|
3843
|
+
/**
|
|
3844
|
+
* Flip shape vertical?
|
|
3845
|
+
* @default false
|
|
3846
|
+
*/
|
|
3847
|
+
flipV?: boolean;
|
|
3848
|
+
glow?: TextGlowProps;
|
|
3849
|
+
hyperlink?: HyperlinkProps;
|
|
3850
|
+
indentLevel?: number;
|
|
3851
|
+
isTextBox?: boolean;
|
|
3852
|
+
line?: ShapeLineProps;
|
|
3853
|
+
/**
|
|
3854
|
+
* Line spacing (pt)
|
|
3855
|
+
* - PowerPoint: Paragraph > Indents and Spacing > Line Spacing: > "Exactly"
|
|
3856
|
+
* @example 28 // 28pt
|
|
3857
|
+
*/
|
|
3858
|
+
lineSpacing?: number;
|
|
3859
|
+
/**
|
|
3860
|
+
* line spacing multiple (percent)
|
|
3861
|
+
* - range: 0.0-9.99
|
|
3862
|
+
* - PowerPoint: Paragraph > Indents and Spacing > Line Spacing: > "Multiple"
|
|
3863
|
+
* @example 1.5 // 1.5X line spacing
|
|
3864
|
+
* @since v3.5.0
|
|
3865
|
+
*/
|
|
3866
|
+
lineSpacingMultiple?: number;
|
|
3867
|
+
/**
|
|
3868
|
+
* Text box margin — array is **TRBL** (top, right, bottom, left), same as table margins.
|
|
3869
|
+
* Maps to DrawingML `a:bodyPr` insets `tIns`/`rIns`/`bIns`/`lIns`
|
|
3870
|
+
* (ECMA-376 Part 1 §5.1.5.1.1 `CT_TextBodyProperties`, `ST_Coordinate32` EMUs).
|
|
3871
|
+
* Schema attribute order is lIns,tIns,rIns,bIns — that is XML order, not the API array.
|
|
3872
|
+
* - values `>= 1` are points; values `< 1` are inches (same dual-unit rule as table cells)
|
|
3873
|
+
* - PowerPoint: Format Shape > Shape Options > Size & Properties > Text Box > margins
|
|
3874
|
+
* @example 0 // no margin
|
|
3875
|
+
* @example 10 // 10pt on all sides
|
|
3876
|
+
* @example 0.1 // 0.1" on all sides
|
|
3877
|
+
* @example [10, 5, 10, 5] // T=10pt R=5pt B=10pt L=5pt
|
|
3878
|
+
* @example [0.05, 0.1, 0.05, 0.1] // inches (PowerPoint "Normal")
|
|
3879
|
+
*/
|
|
3880
|
+
margin?: Margin;
|
|
3881
|
+
outline?: {
|
|
3882
|
+
color: Color;
|
|
3883
|
+
size: number;
|
|
3884
|
+
};
|
|
3885
|
+
paraSpaceAfter?: number;
|
|
3886
|
+
paraSpaceBefore?: number;
|
|
3887
|
+
placeholder?: string;
|
|
3888
|
+
/**
|
|
3889
|
+
* Rounded rectangle radius (only for pptx.shapes.ROUNDED_RECTANGLE)
|
|
3890
|
+
* - values: 0.0 to 1.0
|
|
3891
|
+
* @default 0
|
|
3892
|
+
*/
|
|
3893
|
+
rectRadius?: number;
|
|
3894
|
+
/**
|
|
3895
|
+
* Rotation (degrees)
|
|
3896
|
+
* - range: -360 to 360
|
|
3897
|
+
* @default 0
|
|
3898
|
+
* @example 180 // rotate 180 degrees
|
|
3899
|
+
*/
|
|
3900
|
+
rotate?: number;
|
|
3901
|
+
/**
|
|
3902
|
+
* Whether to enable right-to-left mode
|
|
3903
|
+
* @default false
|
|
3904
|
+
*/
|
|
3905
|
+
rtlMode?: boolean;
|
|
3906
|
+
shadow?: ShadowProps;
|
|
3907
|
+
/**
|
|
3908
|
+
* Soft-edge effect (`a:softEdge` on the text shape)
|
|
3909
|
+
*/
|
|
3910
|
+
softEdge?: SoftEdgeProps;
|
|
3911
|
+
/**
|
|
3912
|
+
* Reflection effect (`a:reflection` on the text shape)
|
|
3913
|
+
*/
|
|
3914
|
+
reflection?: ReflectionProps;
|
|
3915
|
+
shape?: SHAPE_NAME;
|
|
3916
|
+
/**
|
|
3917
|
+
* Strikethrough style
|
|
3918
|
+
* - `boolean` form is deprecated (v4.1.0): `true` maps to `'sngStrike'` - pass the string value instead
|
|
3919
|
+
*/
|
|
3920
|
+
strike?: boolean | 'dblStrike' | 'sngStrike';
|
|
3921
|
+
subscript?: boolean;
|
|
3922
|
+
superscript?: boolean;
|
|
3923
|
+
/**
|
|
3924
|
+
* Vertical alignment
|
|
3925
|
+
* @default middle
|
|
3926
|
+
*/
|
|
3927
|
+
valign?: VAlign;
|
|
3928
|
+
vert?: 'eaVert' | 'horz' | 'mongolianVert' | 'vert' | 'vert270' | 'wordArtVert' | 'wordArtVertRtl';
|
|
3929
|
+
/**
|
|
3930
|
+
* Text wrap
|
|
3931
|
+
* @since v3.3.0
|
|
3932
|
+
* @default true
|
|
3933
|
+
*/
|
|
3934
|
+
wrap?: boolean;
|
|
3935
|
+
/**
|
|
3936
|
+
* Vertical overflow of text that does not fit the shape.
|
|
3937
|
+
* ECMA-376 §5.1.5.1.1 `CT_TextBodyProperties@vertOverflow`.
|
|
3938
|
+
* @default overflow
|
|
3939
|
+
* @since v4.1.17
|
|
3940
|
+
*/
|
|
3941
|
+
vertOverflow?: 'overflow' | 'ellipsis' | 'clip';
|
|
3942
|
+
/**
|
|
3943
|
+
* Horizontal overflow of text that does not fit the shape.
|
|
3944
|
+
* ECMA-376 §5.1.5.1.1 `CT_TextBodyProperties@horzOverflow`.
|
|
3945
|
+
* @default overflow
|
|
3946
|
+
* @since v4.1.17
|
|
3947
|
+
*/
|
|
3948
|
+
horzOverflow?: 'overflow' | 'clip';
|
|
3949
|
+
/**
|
|
3950
|
+
* Prebuilt Office Math (OMML) fragment for this text run.
|
|
3951
|
+
* Emitted as PowerPoint math: `<a14:m><m:oMath>…</m:oMath></a14:m>` interleaved
|
|
3952
|
+
* with surrounding `<a:r>` text runs. Bare `m:oMath` (without `a14:m`) is
|
|
3953
|
+
* silently stripped by PowerPoint on open — the library wraps it for you.
|
|
3954
|
+
* Callers convert LaTeX/MathML → OMML themselves (e.g. MathLive + mathml2omml).
|
|
3955
|
+
* Use `text: ''` for math-only runs; surrounding runs can still hold plain text.
|
|
3956
|
+
* @example { text: '', options: { omml: '<m:oMath xmlns:m="…">…</m:oMath>' } }
|
|
3957
|
+
* @since v4.1.0
|
|
3958
|
+
*/
|
|
3959
|
+
omml?: string;
|
|
3960
|
+
/**
|
|
3961
|
+
* Whether "Fit to Shape?" is enabled
|
|
3962
|
+
* @deprecated v3.3.0 - use `fit`
|
|
3963
|
+
*/
|
|
3964
|
+
autoFit?: boolean;
|
|
3965
|
+
/**
|
|
3966
|
+
* Whather "Shrink Text on Overflow?" is enabled
|
|
3967
|
+
* @deprecated v3.3.0 - use `fit`
|
|
3968
|
+
*/
|
|
3969
|
+
shrinkText?: boolean;
|
|
3970
|
+
/**
|
|
3971
|
+
* Inset
|
|
3972
|
+
* @deprecated v3.10.0 - use `margin`
|
|
3973
|
+
*/
|
|
3974
|
+
inset?: number;
|
|
3975
|
+
/**
|
|
3976
|
+
* Dash type
|
|
3977
|
+
* @deprecated v3.3.0 - use `line.dashType`
|
|
3978
|
+
*/
|
|
3979
|
+
lineDash?: 'solid' | 'dash' | 'dashDot' | 'lgDash' | 'lgDashDot' | 'lgDashDotDot' | 'sysDash' | 'sysDot';
|
|
3980
|
+
/**
|
|
3981
|
+
* @deprecated v3.3.0 - use `line.beginArrowType`
|
|
3982
|
+
*/
|
|
3983
|
+
lineHead?: 'none' | 'arrow' | 'diamond' | 'oval' | 'stealth' | 'triangle';
|
|
3984
|
+
/**
|
|
3985
|
+
* @deprecated v3.3.0 - use `line.width`
|
|
3986
|
+
*/
|
|
3987
|
+
lineSize?: number;
|
|
3988
|
+
/**
|
|
3989
|
+
* @deprecated v3.3.0 - use `line.endArrowType`
|
|
3990
|
+
*/
|
|
3991
|
+
lineTail?: 'none' | 'arrow' | 'diamond' | 'oval' | 'stealth' | 'triangle';
|
|
3992
|
+
/**
|
|
3993
|
+
* Animation configuration
|
|
3994
|
+
* - Can be a simple animation name or full configuration object
|
|
3995
|
+
* @example 'fadein'
|
|
3996
|
+
* @example { type: 'flyin', direction: 'left', duration: 1000 }
|
|
3997
|
+
*/
|
|
3998
|
+
animation?: string | AnimationConfig;
|
|
3999
|
+
}
|
|
4000
|
+
|
|
4001
|
+
declare type ThemeColor = 'tx1' | 'tx2' | 'bg1' | 'bg2' | 'accent1' | 'accent2' | 'accent3' | 'accent4' | 'accent5' | 'accent6';
|
|
4002
|
+
|
|
4003
|
+
declare interface ThemeProps {
|
|
4004
|
+
/**
|
|
4005
|
+
* Headings font face name
|
|
4006
|
+
* @example 'Arial Narrow'
|
|
4007
|
+
* @default 'Calibri Light'
|
|
4008
|
+
*/
|
|
4009
|
+
headFontFace?: string;
|
|
4010
|
+
/**
|
|
4011
|
+
* Body font face name
|
|
4012
|
+
* @example 'Arial'
|
|
4013
|
+
* @default 'Calibri'
|
|
4014
|
+
*/
|
|
4015
|
+
bodyFontFace?: string;
|
|
4016
|
+
/**
|
|
4017
|
+
* Custom theme color scheme — exactly 12 hex colors, in order:
|
|
4018
|
+
* dk1, lt1, dk2, lt2, accent1–6, hlink, folHlink
|
|
4019
|
+
* @example ['1B1B1B','FFFFFF','44546A','E7E6E6','0B5FFF','ED7D31','A5A5A5','FFC000','5B9BD5','70AD47','0563C1','954F72']
|
|
4020
|
+
*/
|
|
4021
|
+
themeColors?: HexColor[];
|
|
4022
|
+
}
|
|
4023
|
+
|
|
4024
|
+
declare type TRANSITION_TYPE = `${TransitionType}`;
|
|
4025
|
+
|
|
4026
|
+
/**
|
|
4027
|
+
* Slide transition type.
|
|
4028
|
+
* Base set is ECMA-376 §19.3.1.50; the rest are MS-PPTX §2.2.1 modern transitions (emitted via mc:AlternateContent).
|
|
4029
|
+
*/
|
|
4030
|
+
declare enum TransitionType {
|
|
4031
|
+
blinds = "blinds",
|
|
4032
|
+
checker = "checker",
|
|
4033
|
+
circle = "circle",
|
|
4034
|
+
comb = "comb",
|
|
4035
|
+
cover = "cover",
|
|
4036
|
+
cut = "cut",
|
|
4037
|
+
diamond = "diamond",
|
|
4038
|
+
dissolve = "dissolve",
|
|
4039
|
+
fade = "fade",
|
|
4040
|
+
newsflash = "newsflash",
|
|
4041
|
+
none = "none",
|
|
4042
|
+
plus = "plus",
|
|
4043
|
+
pull = "pull",
|
|
4044
|
+
push = "push",
|
|
4045
|
+
random = "random",
|
|
4046
|
+
randomBar = "randomBar",
|
|
4047
|
+
split = "split",
|
|
4048
|
+
strips = "strips",
|
|
4049
|
+
wedge = "wedge",
|
|
4050
|
+
wheel = "wheel",
|
|
4051
|
+
wipe = "wipe",
|
|
4052
|
+
zoom = "zoom",
|
|
4053
|
+
conveyor = "conveyor",
|
|
4054
|
+
doors = "doors",
|
|
4055
|
+
ferris = "ferris",
|
|
4056
|
+
flash = "flash",
|
|
4057
|
+
flip = "flip",
|
|
4058
|
+
flythrough = "flythrough",
|
|
4059
|
+
gallery = "gallery",
|
|
4060
|
+
glitter = "glitter",
|
|
4061
|
+
honeycomb = "honeycomb",
|
|
4062
|
+
morph = "morph",
|
|
4063
|
+
pan = "pan",
|
|
4064
|
+
prism = "prism",
|
|
4065
|
+
reveal = "reveal",
|
|
4066
|
+
ripple = "ripple",
|
|
4067
|
+
shred = "shred",
|
|
4068
|
+
switch = "switch",
|
|
4069
|
+
vortex = "vortex",
|
|
4070
|
+
warp = "warp",
|
|
4071
|
+
wheelReverse = "wheelReverse",
|
|
4072
|
+
window = "window"
|
|
4073
|
+
}
|
|
4074
|
+
|
|
4075
|
+
declare interface TransparencyAnimationConfig extends BaseAnimationConfig {
|
|
4076
|
+
type: 'transparency';
|
|
4077
|
+
level?: TransparencyLevel;
|
|
4078
|
+
}
|
|
4079
|
+
|
|
4080
|
+
declare type TransparencyLevel = '25%' | '50%' | '75%' | '100%' | number;
|
|
4081
|
+
|
|
4082
|
+
declare type VAlign = 'top' | 'middle' | 'bottom';
|
|
4083
|
+
|
|
4084
|
+
declare interface WheelAnimationConfig extends BaseAnimationConfig {
|
|
4085
|
+
type: 'wheel' | 'wheelexit';
|
|
4086
|
+
spokes?: 1 | 2 | 3 | 4 | 8;
|
|
4087
|
+
}
|
|
4088
|
+
|
|
4089
|
+
declare interface WipeAnimationConfig extends BaseAnimationConfig {
|
|
4090
|
+
type: 'wipe' | 'wipeexit';
|
|
4091
|
+
direction?: WipeDirection;
|
|
4092
|
+
}
|
|
4093
|
+
|
|
4094
|
+
/** Matches PowerPoint wipe presetSubtype directions used by gen-animations */
|
|
4095
|
+
declare type WipeDirection = 'bottom' | 'top' | 'left' | 'right';
|
|
4096
|
+
|
|
4097
|
+
declare type WRITE_OUTPUT_TYPE = JSZIP_OUTPUT_TYPE | 'STREAM';
|
|
4098
|
+
|
|
4099
|
+
declare interface WriteBaseProps {
|
|
4100
|
+
/**
|
|
4101
|
+
* Whether to compress export (can save substantial space, but takes a bit longer to export)
|
|
4102
|
+
* @default false
|
|
4103
|
+
* @since v3.5.0
|
|
4104
|
+
* @deprecated v4.1.0 - set `compression` on the presentation instead (`pptx.compression = 'best'`) - a
|
|
4105
|
+
* boolean per-write flag cannot express a level and compression is document config, not a per-call concern
|
|
4106
|
+
*/
|
|
4107
|
+
compression?: boolean;
|
|
4108
|
+
}
|
|
4109
|
+
|
|
4110
|
+
declare interface WriteFileProps extends WriteBaseProps {
|
|
4111
|
+
/**
|
|
4112
|
+
* Export file name
|
|
4113
|
+
* @default 'Presentation.pptx'
|
|
4114
|
+
*/
|
|
4115
|
+
fileName?: string;
|
|
4116
|
+
}
|
|
4117
|
+
|
|
4118
|
+
declare interface WriteProps extends WriteBaseProps {
|
|
4119
|
+
/**
|
|
4120
|
+
* Output type
|
|
4121
|
+
* - values: 'arraybuffer' | 'base64' | 'binarystring' | 'blob' | 'nodebuffer' | 'uint8array' | 'STREAM'
|
|
4122
|
+
* @default 'blob'
|
|
4123
|
+
*/
|
|
4124
|
+
outputType?: WRITE_OUTPUT_TYPE;
|
|
4125
|
+
}
|
|
4126
|
+
|
|
4127
|
+
declare interface ZoomAnimationConfig extends BaseAnimationConfig {
|
|
4128
|
+
type: 'zoom' | 'zoomexit';
|
|
4129
|
+
direction?: ZoomDirection;
|
|
4130
|
+
}
|
|
4131
|
+
|
|
4132
|
+
/** Base Zoom navigation options. MS-PPTX §2.8 `CT_ZoomObjectProperties`. */
|
|
4133
|
+
declare interface ZoomBaseProps extends PositionProps, ObjectNameProps {
|
|
4134
|
+
/** Cover/thumbnail image (base64 data URI or path). Defaults to a plain preview tile. */
|
|
4135
|
+
cover?: string;
|
|
4136
|
+
/** Return to the zoom-source slide after viewing the target. @default true */
|
|
4137
|
+
returnToParent?: boolean;
|
|
4138
|
+
/** Use the destination slide's background. @default true */
|
|
4139
|
+
showBg?: boolean;
|
|
4140
|
+
/** Zoom transition duration (ms). Omit to use the destination slide's own transition. */
|
|
4141
|
+
transitionDur?: number;
|
|
4142
|
+
/** Optional alt text. */
|
|
4143
|
+
altText?: string;
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4146
|
+
declare type ZoomDirection = 'slideCenter' | 'objectCenter';
|
|
4147
|
+
|
|
4148
|
+
/** A Slide Zoom navigation object. MS-PPTX §2.10 `CT_SlideZoom`. */
|
|
4149
|
+
declare interface ZoomProps extends ZoomBaseProps {
|
|
4150
|
+
/** 1-based slide number to zoom to. */
|
|
4151
|
+
slideNum: number;
|
|
4152
|
+
}
|
|
4153
|
+
|
|
4154
|
+
export { }
|
|
4155
|
+
|
|
4156
|
+
export { ANCHOR }
|
|
4157
|
+
export { AXIS_ID_CATEGORY_PRIMARY }
|
|
4158
|
+
export { AXIS_ID_CATEGORY_SECONDARY }
|
|
4159
|
+
export { AXIS_ID_SERIES_PRIMARY }
|
|
4160
|
+
export { AXIS_ID_VALUE_PRIMARY }
|
|
4161
|
+
export { AXIS_ID_VALUE_SECONDARY }
|
|
4162
|
+
export { AddFontOptions }
|
|
4163
|
+
export { AddSlideProps }
|
|
4164
|
+
export { AlignH }
|
|
4165
|
+
export { AlignV }
|
|
4166
|
+
export { AnimationConfig }
|
|
4167
|
+
export { AnimationPreset }
|
|
4168
|
+
export { AnimationTrigger }
|
|
4169
|
+
export { AnimationType }
|
|
4170
|
+
export { AppearOnClickProps }
|
|
4171
|
+
export { BARCHART_COLORS }
|
|
4172
|
+
export { BULLET_TYPES }
|
|
4173
|
+
export { BackgroundProps }
|
|
4174
|
+
export { BaseAnimationConfig }
|
|
4175
|
+
export { BorderProps }
|
|
4176
|
+
export { CHART_NAME }
|
|
4177
|
+
export { CHART_TYPE }
|
|
4178
|
+
export { CRLF }
|
|
4179
|
+
export { ChangesInfoProps }
|
|
4180
|
+
export { ChartAxisTickMark }
|
|
4181
|
+
export { ChartLineCap }
|
|
4182
|
+
export { ChartType }
|
|
4183
|
+
export { ClassificationOutcome }
|
|
4184
|
+
export { Color }
|
|
4185
|
+
export { ColorAnimationConfig }
|
|
4186
|
+
export { CommentAuthorProps }
|
|
4187
|
+
export { CommentAuthorRef }
|
|
4188
|
+
export { CommentChangeBit }
|
|
4189
|
+
export { CommentChangeProps }
|
|
4190
|
+
export { CommentProps }
|
|
4191
|
+
export { CommentReactionInstanceProps }
|
|
4192
|
+
export { CommentReactionProps }
|
|
4193
|
+
export { CommentReplyChangeBit }
|
|
4194
|
+
export { CommentReplyChangeProps }
|
|
4195
|
+
export { CommentReplyProps }
|
|
4196
|
+
export { CommentStatus }
|
|
4197
|
+
export { CommentTaskEventKind }
|
|
4198
|
+
export { CommentTaskEventProps }
|
|
4199
|
+
export { CommentTaskProps }
|
|
4200
|
+
export { CompressionLevel }
|
|
4201
|
+
export { ContentPartBwMode }
|
|
4202
|
+
export { ContentPartProps }
|
|
4203
|
+
export { Coord }
|
|
4204
|
+
export { DEF_BULLET_MARGIN }
|
|
4205
|
+
export { DEF_CELL_BORDER }
|
|
4206
|
+
export { DEF_CELL_MARGIN_IN }
|
|
4207
|
+
export { DEF_CELL_MARGIN_PT }
|
|
4208
|
+
export { DEF_CHART_BORDER }
|
|
4209
|
+
export { DEF_CHART_GRIDLINE }
|
|
4210
|
+
export { DEF_FONT_COLOR }
|
|
4211
|
+
export { DEF_FONT_SIZE }
|
|
4212
|
+
export { DEF_FONT_TITLE_SIZE }
|
|
4213
|
+
export { DEF_PRES_LAYOUT }
|
|
4214
|
+
export { DEF_PRES_LAYOUT_NAME }
|
|
4215
|
+
export { DEF_SHAPE_LINE_COLOR }
|
|
4216
|
+
export { DEF_SHAPE_SHADOW }
|
|
4217
|
+
export { DEF_SLIDE_BKGD }
|
|
4218
|
+
export { DEF_SLIDE_MARGIN_IN }
|
|
4219
|
+
export { DEF_TEXT_GLOW }
|
|
4220
|
+
export { DEF_TEXT_SHADOW }
|
|
4221
|
+
export { DataOrPathProps }
|
|
4222
|
+
export { DefineLayoutProps }
|
|
4223
|
+
export { DesignerProps }
|
|
4224
|
+
export { DesignerTag }
|
|
4225
|
+
export { EMU }
|
|
4226
|
+
export { EmbedFontType }
|
|
4227
|
+
export { EmphasisAnimation }
|
|
4228
|
+
export { EntranceAnimation }
|
|
4229
|
+
export { ExitAnimation }
|
|
4230
|
+
export { FloatAnimationConfig }
|
|
4231
|
+
export { FloatDirection }
|
|
4232
|
+
export { FlyAnimationConfig }
|
|
4233
|
+
export { FlyDirection }
|
|
4234
|
+
export { GrowShrinkAmount }
|
|
4235
|
+
export { GrowShrinkAnimationConfig }
|
|
4236
|
+
export { GrowShrinkDirection }
|
|
4237
|
+
export { GuideProps }
|
|
4238
|
+
export { HAlign }
|
|
4239
|
+
export { HexColor }
|
|
4240
|
+
export { HyperlinkProps }
|
|
4241
|
+
export { IChartAreaProps }
|
|
4242
|
+
export { IChartMulti }
|
|
4243
|
+
export { IChartOpts }
|
|
4244
|
+
export { IChartOptsLib }
|
|
4245
|
+
export { IChartPropsAxisCat }
|
|
4246
|
+
export { IChartPropsAxisSer }
|
|
4247
|
+
export { IChartPropsAxisVal }
|
|
4248
|
+
export { IChartPropsBase }
|
|
4249
|
+
export { IChartPropsChartBar }
|
|
4250
|
+
export { IChartPropsChartDoughnut }
|
|
4251
|
+
export { IChartPropsChartLine }
|
|
4252
|
+
export { IChartPropsChartPie }
|
|
4253
|
+
export { IChartPropsChartRadar }
|
|
4254
|
+
export { IChartPropsDataLabel }
|
|
4255
|
+
export { IChartPropsDataTable }
|
|
4256
|
+
export { IChartPropsFillLine }
|
|
4257
|
+
export { IChartPropsLegend }
|
|
4258
|
+
export { IChartPropsTitle }
|
|
4259
|
+
export { IMG_BROKEN }
|
|
4260
|
+
export { IMG_PLAYBTN }
|
|
4261
|
+
export { IOptsChartData }
|
|
4262
|
+
export { IPresentationProps }
|
|
4263
|
+
export { ISlideObject }
|
|
4264
|
+
export { ISlideRel }
|
|
4265
|
+
export { ISlideRelChart }
|
|
4266
|
+
export { ISlideRelMedia }
|
|
4267
|
+
export { ImageProps }
|
|
4268
|
+
export { InkProps }
|
|
4269
|
+
export { JSZIP_OUTPUT_TYPE }
|
|
4270
|
+
export { LAYOUT_IDX_SERIES_BASE }
|
|
4271
|
+
export { LETTERS }
|
|
4272
|
+
export { LINEH_MODIFIER }
|
|
4273
|
+
export { LaserTracePoint }
|
|
4274
|
+
export { MASTER_OBJECTS }
|
|
4275
|
+
export { Margin }
|
|
4276
|
+
export { MediaProps }
|
|
4277
|
+
export { MediaType }
|
|
4278
|
+
export { ModifiedThemeColor }
|
|
4279
|
+
export { NvPrExtensionProps }
|
|
4280
|
+
export { ONEPT }
|
|
4281
|
+
export { ObjectNameProps }
|
|
4282
|
+
export { ObjectOptions }
|
|
4283
|
+
export { OfficeAppProps }
|
|
4284
|
+
export { OfficeAppReference }
|
|
4285
|
+
export { OfficeAppStoreType }
|
|
4286
|
+
export { OptsChartData }
|
|
4287
|
+
export { OptsChartGridLine }
|
|
4288
|
+
export { OptsDataLabelPosition }
|
|
4289
|
+
export { OutputType }
|
|
4290
|
+
export { PIECHART_COLORS }
|
|
4291
|
+
export { PLACEHOLDER_TYPE }
|
|
4292
|
+
export { PLACEHOLDER_TYPES }
|
|
4293
|
+
export { PathAnimation }
|
|
4294
|
+
export { PlaceholderProps }
|
|
4295
|
+
export { PlaceholderTypeExt }
|
|
4296
|
+
export { PositionProps }
|
|
4297
|
+
export { PresLayout }
|
|
4298
|
+
export { PresSlide }
|
|
4299
|
+
export { PresentationProps }
|
|
4300
|
+
export { PresetPatternValues }
|
|
4301
|
+
export { REGEX_HEX_COLOR }
|
|
4302
|
+
export { RandomBarsAnimationConfig }
|
|
4303
|
+
export { ReflectionProps }
|
|
4304
|
+
export { RevisionClientProps }
|
|
4305
|
+
export { RevisionInfoProps }
|
|
4306
|
+
export { SCHEME_COLORS }
|
|
4307
|
+
export { SCHEME_COLOR_NAMES }
|
|
4308
|
+
export { SHAPE_NAME }
|
|
4309
|
+
export { SHAPE_TYPE }
|
|
4310
|
+
export { SLDNUMFLDID }
|
|
4311
|
+
export { SLIDE_OBJECT_TYPES }
|
|
4312
|
+
export { SchemeColor }
|
|
4313
|
+
export { SectionProps }
|
|
4314
|
+
export { SectionZoomProps }
|
|
4315
|
+
export { ShadowProps }
|
|
4316
|
+
export { ShapeAnimationConfig }
|
|
4317
|
+
export { ShapeDirection }
|
|
4318
|
+
export { ShapeFillProps }
|
|
4319
|
+
export { ShapeGradientFlip }
|
|
4320
|
+
export { ShapeGradientProps }
|
|
4321
|
+
export { ShapeGradientStopProps }
|
|
4322
|
+
export { ShapeGradientTileRect }
|
|
4323
|
+
export { ShapeLineProps }
|
|
4324
|
+
export { ShapeMaskType }
|
|
4325
|
+
export { ShapePatternProps }
|
|
4326
|
+
export { ShapeProps }
|
|
4327
|
+
export { ShapeType }
|
|
4328
|
+
export { SlideBaseProps }
|
|
4329
|
+
export { SlideLayout }
|
|
4330
|
+
export { SlideMasterProps }
|
|
4331
|
+
export { SlideNumberProps }
|
|
4332
|
+
export { SlideObjectAnimation }
|
|
4333
|
+
export { SlideShowEvent }
|
|
4334
|
+
export { SlideShowTriggerType }
|
|
4335
|
+
export { SlideTransitionProps }
|
|
4336
|
+
export { SoftEdgeProps }
|
|
4337
|
+
export { SpinAmount }
|
|
4338
|
+
export { SpinAnimationConfig }
|
|
4339
|
+
export { SpinDirection }
|
|
4340
|
+
export { SplitAnimationConfig }
|
|
4341
|
+
export { SplitDirection }
|
|
4342
|
+
export { SummaryZoomProps }
|
|
4343
|
+
export { TEXT_HALIGN }
|
|
4344
|
+
export { TEXT_VALIGN }
|
|
4345
|
+
export { TRANSITION_TYPE }
|
|
4346
|
+
export { TableCell }
|
|
4347
|
+
export { TableCellProps }
|
|
4348
|
+
export { TableProps }
|
|
4349
|
+
export { TableRow }
|
|
4350
|
+
export { TableRowSlide }
|
|
4351
|
+
export { TableToSlidesProps }
|
|
4352
|
+
export { TextBaseProps }
|
|
4353
|
+
export { TextGlowProps }
|
|
4354
|
+
export { TextProps }
|
|
4355
|
+
export { TextPropsOptions }
|
|
4356
|
+
export { ThemeColor }
|
|
4357
|
+
export { ThemeProps }
|
|
4358
|
+
export { TransitionType }
|
|
4359
|
+
export { TransparencyAnimationConfig }
|
|
4360
|
+
export { TransparencyLevel }
|
|
4361
|
+
export { VAlign }
|
|
4362
|
+
export { WRITE_OUTPUT_TYPE }
|
|
4363
|
+
export { WheelAnimationConfig }
|
|
4364
|
+
export { WipeAnimationConfig }
|
|
4365
|
+
export { WipeDirection }
|
|
4366
|
+
export { WriteBaseProps }
|
|
4367
|
+
export { WriteFileProps }
|
|
4368
|
+
export { WriteProps }
|
|
4369
|
+
export { ZoomAnimationConfig }
|
|
4370
|
+
export { ZoomDirection }
|
|
4371
|
+
export { ZoomProps }
|
|
4372
|
+
|
|
4373
|
+
export as namespace PptxGenJS
|
|
4374
|
+
|
|
4375
|
+
declare namespace PptxGenJS {
|
|
4376
|
+
export { ANCHOR }
|
|
4377
|
+
export { AXIS_ID_CATEGORY_PRIMARY }
|
|
4378
|
+
export { AXIS_ID_CATEGORY_SECONDARY }
|
|
4379
|
+
export { AXIS_ID_SERIES_PRIMARY }
|
|
4380
|
+
export { AXIS_ID_VALUE_PRIMARY }
|
|
4381
|
+
export { AXIS_ID_VALUE_SECONDARY }
|
|
4382
|
+
export { AddFontOptions }
|
|
4383
|
+
export { AddSlideProps }
|
|
4384
|
+
export { AlignH }
|
|
4385
|
+
export { AlignV }
|
|
4386
|
+
export { AnimationConfig }
|
|
4387
|
+
export { AnimationPreset }
|
|
4388
|
+
export { AnimationTrigger }
|
|
4389
|
+
export { AnimationType }
|
|
4390
|
+
export { AppearOnClickProps }
|
|
4391
|
+
export { BARCHART_COLORS }
|
|
4392
|
+
export { BULLET_TYPES }
|
|
4393
|
+
export { BackgroundProps }
|
|
4394
|
+
export { BaseAnimationConfig }
|
|
4395
|
+
export { BorderProps }
|
|
4396
|
+
export { CHART_NAME }
|
|
4397
|
+
export { CHART_TYPE }
|
|
4398
|
+
export { CRLF }
|
|
4399
|
+
export { ChangesInfoProps }
|
|
4400
|
+
export { ChartAxisTickMark }
|
|
4401
|
+
export { ChartLineCap }
|
|
4402
|
+
export { ChartType }
|
|
4403
|
+
export { ClassificationOutcome }
|
|
4404
|
+
export { Color }
|
|
4405
|
+
export { ColorAnimationConfig }
|
|
4406
|
+
export { CommentAuthorProps }
|
|
4407
|
+
export { CommentAuthorRef }
|
|
4408
|
+
export { CommentChangeBit }
|
|
4409
|
+
export { CommentChangeProps }
|
|
4410
|
+
export { CommentProps }
|
|
4411
|
+
export { CommentReactionInstanceProps }
|
|
4412
|
+
export { CommentReactionProps }
|
|
4413
|
+
export { CommentReplyChangeBit }
|
|
4414
|
+
export { CommentReplyChangeProps }
|
|
4415
|
+
export { CommentReplyProps }
|
|
4416
|
+
export { CommentStatus }
|
|
4417
|
+
export { CommentTaskEventKind }
|
|
4418
|
+
export { CommentTaskEventProps }
|
|
4419
|
+
export { CommentTaskProps }
|
|
4420
|
+
export { CompressionLevel }
|
|
4421
|
+
export { ContentPartBwMode }
|
|
4422
|
+
export { ContentPartProps }
|
|
4423
|
+
export { Coord }
|
|
4424
|
+
export { DEF_BULLET_MARGIN }
|
|
4425
|
+
export { DEF_CELL_BORDER }
|
|
4426
|
+
export { DEF_CELL_MARGIN_IN }
|
|
4427
|
+
export { DEF_CELL_MARGIN_PT }
|
|
4428
|
+
export { DEF_CHART_BORDER }
|
|
4429
|
+
export { DEF_CHART_GRIDLINE }
|
|
4430
|
+
export { DEF_FONT_COLOR }
|
|
4431
|
+
export { DEF_FONT_SIZE }
|
|
4432
|
+
export { DEF_FONT_TITLE_SIZE }
|
|
4433
|
+
export { DEF_PRES_LAYOUT }
|
|
4434
|
+
export { DEF_PRES_LAYOUT_NAME }
|
|
4435
|
+
export { DEF_SHAPE_LINE_COLOR }
|
|
4436
|
+
export { DEF_SHAPE_SHADOW }
|
|
4437
|
+
export { DEF_SLIDE_BKGD }
|
|
4438
|
+
export { DEF_SLIDE_MARGIN_IN }
|
|
4439
|
+
export { DEF_TEXT_GLOW }
|
|
4440
|
+
export { DEF_TEXT_SHADOW }
|
|
4441
|
+
export { DataOrPathProps }
|
|
4442
|
+
export { DefineLayoutProps }
|
|
4443
|
+
export { DesignerProps }
|
|
4444
|
+
export { DesignerTag }
|
|
4445
|
+
export { EMU }
|
|
4446
|
+
export { EmbedFontType }
|
|
4447
|
+
export { EmphasisAnimation }
|
|
4448
|
+
export { EntranceAnimation }
|
|
4449
|
+
export { ExitAnimation }
|
|
4450
|
+
export { FloatAnimationConfig }
|
|
4451
|
+
export { FloatDirection }
|
|
4452
|
+
export { FlyAnimationConfig }
|
|
4453
|
+
export { FlyDirection }
|
|
4454
|
+
export { GrowShrinkAmount }
|
|
4455
|
+
export { GrowShrinkAnimationConfig }
|
|
4456
|
+
export { GrowShrinkDirection }
|
|
4457
|
+
export { GuideProps }
|
|
4458
|
+
export { HAlign }
|
|
4459
|
+
export { HexColor }
|
|
4460
|
+
export { HyperlinkProps }
|
|
4461
|
+
export { IChartAreaProps }
|
|
4462
|
+
export { IChartMulti }
|
|
4463
|
+
export { IChartOpts }
|
|
4464
|
+
export { IChartOptsLib }
|
|
4465
|
+
export { IChartPropsAxisCat }
|
|
4466
|
+
export { IChartPropsAxisSer }
|
|
4467
|
+
export { IChartPropsAxisVal }
|
|
4468
|
+
export { IChartPropsBase }
|
|
4469
|
+
export { IChartPropsChartBar }
|
|
4470
|
+
export { IChartPropsChartDoughnut }
|
|
4471
|
+
export { IChartPropsChartLine }
|
|
4472
|
+
export { IChartPropsChartPie }
|
|
4473
|
+
export { IChartPropsChartRadar }
|
|
4474
|
+
export { IChartPropsDataLabel }
|
|
4475
|
+
export { IChartPropsDataTable }
|
|
4476
|
+
export { IChartPropsFillLine }
|
|
4477
|
+
export { IChartPropsLegend }
|
|
4478
|
+
export { IChartPropsTitle }
|
|
4479
|
+
export { IMG_BROKEN }
|
|
4480
|
+
export { IMG_PLAYBTN }
|
|
4481
|
+
export { IOptsChartData }
|
|
4482
|
+
export { IPresentationProps }
|
|
4483
|
+
export { ISlideObject }
|
|
4484
|
+
export { ISlideRel }
|
|
4485
|
+
export { ISlideRelChart }
|
|
4486
|
+
export { ISlideRelMedia }
|
|
4487
|
+
export { ImageProps }
|
|
4488
|
+
export { InkProps }
|
|
4489
|
+
export { JSZIP_OUTPUT_TYPE }
|
|
4490
|
+
export { LAYOUT_IDX_SERIES_BASE }
|
|
4491
|
+
export { LETTERS }
|
|
4492
|
+
export { LINEH_MODIFIER }
|
|
4493
|
+
export { LaserTracePoint }
|
|
4494
|
+
export { MASTER_OBJECTS }
|
|
4495
|
+
export { Margin }
|
|
4496
|
+
export { MediaProps }
|
|
4497
|
+
export { MediaType }
|
|
4498
|
+
export { ModifiedThemeColor }
|
|
4499
|
+
export { NvPrExtensionProps }
|
|
4500
|
+
export { ONEPT }
|
|
4501
|
+
export { ObjectNameProps }
|
|
4502
|
+
export { ObjectOptions }
|
|
4503
|
+
export { OfficeAppProps }
|
|
4504
|
+
export { OfficeAppReference }
|
|
4505
|
+
export { OfficeAppStoreType }
|
|
4506
|
+
export { OptsChartData }
|
|
4507
|
+
export { OptsChartGridLine }
|
|
4508
|
+
export { OptsDataLabelPosition }
|
|
4509
|
+
export { OutputType }
|
|
4510
|
+
export { PIECHART_COLORS }
|
|
4511
|
+
export { PLACEHOLDER_TYPE }
|
|
4512
|
+
export { PLACEHOLDER_TYPES }
|
|
4513
|
+
export { PathAnimation }
|
|
4514
|
+
export { PlaceholderProps }
|
|
4515
|
+
export { PlaceholderTypeExt }
|
|
4516
|
+
export { PositionProps }
|
|
4517
|
+
export { PresLayout }
|
|
4518
|
+
export { PresSlide }
|
|
4519
|
+
export { PresentationProps }
|
|
4520
|
+
export { PresetPatternValues }
|
|
4521
|
+
export { REGEX_HEX_COLOR }
|
|
4522
|
+
export { RandomBarsAnimationConfig }
|
|
4523
|
+
export { ReflectionProps }
|
|
4524
|
+
export { RevisionClientProps }
|
|
4525
|
+
export { RevisionInfoProps }
|
|
4526
|
+
export { SCHEME_COLORS }
|
|
4527
|
+
export { SCHEME_COLOR_NAMES }
|
|
4528
|
+
export { SHAPE_NAME }
|
|
4529
|
+
export { SHAPE_TYPE }
|
|
4530
|
+
export { SLDNUMFLDID }
|
|
4531
|
+
export { SLIDE_OBJECT_TYPES }
|
|
4532
|
+
export { SchemeColor }
|
|
4533
|
+
export { SectionProps }
|
|
4534
|
+
export { SectionZoomProps }
|
|
4535
|
+
export { ShadowProps }
|
|
4536
|
+
export { ShapeAnimationConfig }
|
|
4537
|
+
export { ShapeDirection }
|
|
4538
|
+
export { ShapeFillProps }
|
|
4539
|
+
export { ShapeGradientFlip }
|
|
4540
|
+
export { ShapeGradientProps }
|
|
4541
|
+
export { ShapeGradientStopProps }
|
|
4542
|
+
export { ShapeGradientTileRect }
|
|
4543
|
+
export { ShapeLineProps }
|
|
4544
|
+
export { ShapeMaskType }
|
|
4545
|
+
export { ShapePatternProps }
|
|
4546
|
+
export { ShapeProps }
|
|
4547
|
+
export { ShapeType }
|
|
4548
|
+
export { SlideBaseProps }
|
|
4549
|
+
export { SlideLayout }
|
|
4550
|
+
export { SlideMasterProps }
|
|
4551
|
+
export { SlideNumberProps }
|
|
4552
|
+
export { SlideObjectAnimation }
|
|
4553
|
+
export { SlideShowEvent }
|
|
4554
|
+
export { SlideShowTriggerType }
|
|
4555
|
+
export { SlideTransitionProps }
|
|
4556
|
+
export { SoftEdgeProps }
|
|
4557
|
+
export { SpinAmount }
|
|
4558
|
+
export { SpinAnimationConfig }
|
|
4559
|
+
export { SpinDirection }
|
|
4560
|
+
export { SplitAnimationConfig }
|
|
4561
|
+
export { SplitDirection }
|
|
4562
|
+
export { SummaryZoomProps }
|
|
4563
|
+
export { TEXT_HALIGN }
|
|
4564
|
+
export { TEXT_VALIGN }
|
|
4565
|
+
export { TRANSITION_TYPE }
|
|
4566
|
+
export { TableCell }
|
|
4567
|
+
export { TableCellProps }
|
|
4568
|
+
export { TableProps }
|
|
4569
|
+
export { TableRow }
|
|
4570
|
+
export { TableRowSlide }
|
|
4571
|
+
export { TableToSlidesProps }
|
|
4572
|
+
export { TextBaseProps }
|
|
4573
|
+
export { TextGlowProps }
|
|
4574
|
+
export { TextProps }
|
|
4575
|
+
export { TextPropsOptions }
|
|
4576
|
+
export { ThemeColor }
|
|
4577
|
+
export { ThemeProps }
|
|
4578
|
+
export { TransitionType }
|
|
4579
|
+
export { TransparencyAnimationConfig }
|
|
4580
|
+
export { TransparencyLevel }
|
|
4581
|
+
export { VAlign }
|
|
4582
|
+
export { WRITE_OUTPUT_TYPE }
|
|
4583
|
+
export { WheelAnimationConfig }
|
|
4584
|
+
export { WipeAnimationConfig }
|
|
4585
|
+
export { WipeDirection }
|
|
4586
|
+
export { WriteBaseProps }
|
|
4587
|
+
export { WriteFileProps }
|
|
4588
|
+
export { WriteProps }
|
|
4589
|
+
export { ZoomAnimationConfig }
|
|
4590
|
+
export { ZoomDirection }
|
|
4591
|
+
export { ZoomProps }
|
|
4592
|
+
}
|