@office-open/pptx 0.6.1 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -17
- package/dist/index.d.mts +216 -227
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +599 -3233
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as _$_office_open_core0 from "@office-open/core";
|
|
2
|
-
import { AppProperties, BaseXmlComponent, BuilderElement,
|
|
3
|
-
import { BevelOptions, BevelPresetType, BlipFillConfigOptions, BlipFillMediaData, ColorTransformOptions, CompoundLine, EffectListOptions, FillOptions, GradientFillOptions as CoreGradientFillOptions, GradientStopOptions, GroupTransform2DOptions,
|
|
4
|
-
import { ChartCollection,
|
|
5
|
-
import {
|
|
2
|
+
import { AppProperties, BaseXmlComponent, BuilderElement, Context, EmptyElement, IXmlableObject, ImportedXmlComponent, ParsedDocument, PrettifyType, RelationshipType, Relationships, XmlComponent, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertPixelsToEmu, convertPointsToEmu, hashedId, parseArchive, uniqueId, uniqueNumericIdCreator, uniqueUuid } from "@office-open/core";
|
|
3
|
+
import { BevelOptions, BevelPresetType, BlipFillConfigOptions, BlipFillMediaData, ColorTransformOptions, CompoundLine, EffectListOptions, FillOptions, GradientFillOptions as CoreGradientFillOptions, GradientStop, GradientStopOptions, GroupTransform2DOptions, LineCap, LineJoin, OutlineOptions as CoreOutlineOptions, PathShadeType, PenAlignment, PresetDash, PresetGeometry, PresetMaterialType, Scene3DOptions, Shape3DOptions, TileFlipMode, Transform2DOptions, buildFill, createBevel, createBottomBevel, createColorElement, createColorTransforms, createEffectList, createGradientFill, createGradientStop, createOutline, createScene3D, createScene3D as createScene3D$1, createShape3D, createShape3D as createShape3D$1, extractBlipFillMedia } from "@office-open/core/drawingml";
|
|
4
|
+
import { ChartCollection, ChartData, ChartSeriesData, ChartSpace, ChartSpaceOptions, ChartType } from "@office-open/core/chart";
|
|
5
|
+
import { SmartArtCollection, TreeNode } from "@office-open/core/smartart";
|
|
6
6
|
import { Element } from "@office-open/xml";
|
|
7
|
-
import {
|
|
8
|
-
import { Readable } from "stream";
|
|
7
|
+
import { DataType } from "undio";
|
|
9
8
|
export * from "@office-open/core/values";
|
|
10
9
|
|
|
11
10
|
//#region src/file/drawingml/effects.d.ts
|
|
@@ -20,7 +19,7 @@ declare const ReflectionAlignment: {
|
|
|
20
19
|
readonly BOTTOM: "b";
|
|
21
20
|
readonly BOTTOM_RIGHT: "br";
|
|
22
21
|
};
|
|
23
|
-
interface
|
|
22
|
+
interface ShadowOptions {
|
|
24
23
|
readonly blur?: number;
|
|
25
24
|
readonly distance?: number;
|
|
26
25
|
readonly direction?: number;
|
|
@@ -28,12 +27,12 @@ interface IShadowOptions {
|
|
|
28
27
|
readonly alpha?: number;
|
|
29
28
|
readonly rotateWithShape?: boolean;
|
|
30
29
|
}
|
|
31
|
-
interface
|
|
30
|
+
interface GlowOptions {
|
|
32
31
|
readonly radius?: number;
|
|
33
32
|
readonly color?: string;
|
|
34
33
|
readonly alpha?: number;
|
|
35
34
|
}
|
|
36
|
-
interface
|
|
35
|
+
interface ReflectionOptions {
|
|
37
36
|
readonly blurRadius?: number;
|
|
38
37
|
readonly distance?: number;
|
|
39
38
|
readonly direction?: number;
|
|
@@ -49,42 +48,42 @@ interface IReflectionOptions {
|
|
|
49
48
|
readonly alignment?: keyof typeof ReflectionAlignment;
|
|
50
49
|
readonly rotateWithShape?: boolean;
|
|
51
50
|
}
|
|
52
|
-
interface
|
|
51
|
+
interface SoftEdgeOptions {
|
|
53
52
|
readonly radius?: number;
|
|
54
53
|
}
|
|
55
|
-
interface
|
|
54
|
+
interface PPTXBevelOptions {
|
|
56
55
|
readonly width?: number;
|
|
57
56
|
readonly height?: number;
|
|
58
57
|
}
|
|
59
|
-
interface
|
|
58
|
+
interface Rotation3DOptions {
|
|
60
59
|
readonly x?: number;
|
|
61
60
|
readonly y?: number;
|
|
62
61
|
readonly z?: number;
|
|
63
62
|
readonly perspective?: number;
|
|
64
63
|
}
|
|
65
|
-
interface
|
|
66
|
-
readonly outerShadow?:
|
|
67
|
-
readonly innerShadow?:
|
|
68
|
-
readonly glow?:
|
|
69
|
-
readonly reflection?:
|
|
70
|
-
readonly softEdge?:
|
|
71
|
-
readonly rotation3D?:
|
|
72
|
-
readonly bevelTop?:
|
|
73
|
-
readonly bevelBottom?:
|
|
64
|
+
interface EffectsOptions {
|
|
65
|
+
readonly outerShadow?: ShadowOptions;
|
|
66
|
+
readonly innerShadow?: ShadowOptions;
|
|
67
|
+
readonly glow?: GlowOptions;
|
|
68
|
+
readonly reflection?: ReflectionOptions;
|
|
69
|
+
readonly softEdge?: SoftEdgeOptions;
|
|
70
|
+
readonly rotation3D?: Rotation3DOptions;
|
|
71
|
+
readonly bevelTop?: PPTXBevelOptions;
|
|
72
|
+
readonly bevelBottom?: PPTXBevelOptions;
|
|
74
73
|
readonly extrusionH?: number;
|
|
75
74
|
readonly material?: "plastic" | "metal" | "matte" | "warmMatte" | "softEdge" | "flat" | "powder";
|
|
76
75
|
readonly lighting?: "flat" | "legacyFlat1" | "legacyFlat2" | "legacyFlat3" | "legacyFlat4" | "legacyHarsh1" | "legacyHarsh2" | "legacyHarsh3" | "legacyHarsh4" | "legacyNormal1" | "legacyNormal2" | "legacyNormal3" | "legacyNormal4" | "threePt" | "balanced" | "soft" | "harsh" | "flood" | "contrasting" | "morning" | "sunrise" | "sunset" | "chilly" | "freezing" | "twoPt" | "brightRoom" | "gallery";
|
|
77
76
|
}
|
|
78
|
-
declare function createPptxEffectList(options:
|
|
77
|
+
declare function createPptxEffectList(options: EffectsOptions): _$_office_open_core0.XmlComponent | null;
|
|
79
78
|
//#endregion
|
|
80
79
|
//#region src/file/background/background.d.ts
|
|
81
|
-
interface
|
|
80
|
+
interface BackgroundOptions {
|
|
82
81
|
readonly fill?: FillOptions;
|
|
83
|
-
readonly effects?:
|
|
82
|
+
readonly effects?: EffectsOptions;
|
|
84
83
|
readonly shadeToTitle?: boolean;
|
|
85
84
|
}
|
|
86
85
|
declare class Background extends XmlComponent {
|
|
87
|
-
constructor(options?:
|
|
86
|
+
constructor(options?: BackgroundOptions);
|
|
88
87
|
}
|
|
89
88
|
//#endregion
|
|
90
89
|
//#region src/file/comment/comment-author-list.d.ts
|
|
@@ -129,11 +128,11 @@ declare class ContentTypes extends BaseXmlComponent {
|
|
|
129
128
|
addSlideLayout(index: number): void;
|
|
130
129
|
addSlideMaster(index: number): void;
|
|
131
130
|
addTheme(index: number): void;
|
|
132
|
-
prepForXml(_context:
|
|
131
|
+
prepForXml(_context: Context): IXmlableObject;
|
|
133
132
|
}
|
|
134
133
|
//#endregion
|
|
135
134
|
//#region src/file/core-properties/properties.d.ts
|
|
136
|
-
interface
|
|
135
|
+
interface CorePropertiesOptions {
|
|
137
136
|
readonly title?: string;
|
|
138
137
|
readonly subject?: string;
|
|
139
138
|
readonly creator?: string;
|
|
@@ -144,23 +143,23 @@ interface ICorePropertiesOptions {
|
|
|
144
143
|
}
|
|
145
144
|
declare class CoreProperties extends BaseXmlComponent {
|
|
146
145
|
private readonly options;
|
|
147
|
-
constructor(options:
|
|
148
|
-
prepForXml(_context:
|
|
146
|
+
constructor(options: CorePropertiesOptions);
|
|
147
|
+
prepForXml(_context: Context): IXmlableObject;
|
|
149
148
|
}
|
|
150
149
|
//#endregion
|
|
151
150
|
//#region src/file/header-footer/header-footer.d.ts
|
|
152
|
-
interface
|
|
151
|
+
interface SlideHeaderFooterOptions {
|
|
153
152
|
readonly slideNumber?: boolean;
|
|
154
153
|
readonly dateTime?: boolean;
|
|
155
154
|
readonly footer?: string | boolean;
|
|
156
155
|
readonly header?: boolean;
|
|
157
156
|
}
|
|
158
157
|
declare class HeaderFooter extends XmlComponent {
|
|
159
|
-
constructor(options?:
|
|
158
|
+
constructor(options?: SlideHeaderFooterOptions);
|
|
160
159
|
}
|
|
161
160
|
//#endregion
|
|
162
161
|
//#region src/file/hyperlink-collection.d.ts
|
|
163
|
-
interface
|
|
162
|
+
interface HyperlinkData {
|
|
164
163
|
readonly key: string;
|
|
165
164
|
readonly url: string;
|
|
166
165
|
readonly tooltip?: string;
|
|
@@ -168,11 +167,11 @@ interface IHyperlinkData {
|
|
|
168
167
|
declare class HyperlinkCollection {
|
|
169
168
|
private readonly map;
|
|
170
169
|
addHyperlink(key: string, url: string, tooltip?: string): void;
|
|
171
|
-
get Array(): readonly
|
|
170
|
+
get Array(): readonly HyperlinkData[];
|
|
172
171
|
}
|
|
173
172
|
//#endregion
|
|
174
173
|
//#region src/file/media/data.d.ts
|
|
175
|
-
interface
|
|
174
|
+
interface MediaDataTransformation {
|
|
176
175
|
readonly pixels: {
|
|
177
176
|
readonly x: number;
|
|
178
177
|
readonly y: number;
|
|
@@ -189,7 +188,7 @@ interface IMediaDataTransformation {
|
|
|
189
188
|
}
|
|
190
189
|
interface CoreMediaData {
|
|
191
190
|
readonly fileName: string;
|
|
192
|
-
readonly transformation:
|
|
191
|
+
readonly transformation: MediaDataTransformation;
|
|
193
192
|
readonly data: Uint8Array;
|
|
194
193
|
}
|
|
195
194
|
interface RegularMediaData {
|
|
@@ -208,7 +207,7 @@ interface AudioMediaData {
|
|
|
208
207
|
type IMediaData = (RegularMediaData | SvgMediaData | VideoMediaData | AudioMediaData) & CoreMediaData;
|
|
209
208
|
//#endregion
|
|
210
209
|
//#region src/file/media/media.d.ts
|
|
211
|
-
interface
|
|
210
|
+
interface MediaTransformation {
|
|
212
211
|
readonly offset?: {
|
|
213
212
|
readonly top?: number;
|
|
214
213
|
readonly left?: number;
|
|
@@ -221,7 +220,7 @@ interface IMediaTransformation {
|
|
|
221
220
|
};
|
|
222
221
|
readonly rotation?: number;
|
|
223
222
|
}
|
|
224
|
-
declare const createTransformation: (options:
|
|
223
|
+
declare const createTransformation: (options: MediaTransformation) => MediaDataTransformation;
|
|
225
224
|
declare class Media {
|
|
226
225
|
private readonly map;
|
|
227
226
|
constructor();
|
|
@@ -231,15 +230,15 @@ declare class Media {
|
|
|
231
230
|
}
|
|
232
231
|
//#endregion
|
|
233
232
|
//#region src/file/notes/notes-slide.d.ts
|
|
234
|
-
interface
|
|
233
|
+
interface NotesSlideOptions {
|
|
235
234
|
readonly text?: string;
|
|
236
235
|
}
|
|
237
236
|
declare class NotesSlide extends XmlComponent {
|
|
238
|
-
constructor(options?:
|
|
237
|
+
constructor(options?: NotesSlideOptions);
|
|
239
238
|
}
|
|
240
239
|
//#endregion
|
|
241
240
|
//#region src/file/presentation-properties.d.ts
|
|
242
|
-
interface
|
|
241
|
+
interface ShowOptions$1 {
|
|
243
242
|
readonly loop?: boolean;
|
|
244
243
|
readonly kiosk?: boolean;
|
|
245
244
|
readonly showNarration?: boolean;
|
|
@@ -247,13 +246,13 @@ interface IShowOptions$1 {
|
|
|
247
246
|
}
|
|
248
247
|
declare class PresentationProperties extends ImportedXmlComponent {
|
|
249
248
|
private static cache;
|
|
250
|
-
constructor(showOptions?:
|
|
249
|
+
constructor(showOptions?: ShowOptions$1);
|
|
251
250
|
prepForXml(): Readonly<Record<string, any>> | undefined;
|
|
252
251
|
private readonly showOptions?;
|
|
253
252
|
}
|
|
254
253
|
//#endregion
|
|
255
254
|
//#region src/file/presentation/presentation.d.ts
|
|
256
|
-
interface
|
|
255
|
+
interface PresentationOptions {
|
|
257
256
|
readonly slideWidth?: number;
|
|
258
257
|
readonly slideHeight?: number;
|
|
259
258
|
readonly slideIds: readonly number[];
|
|
@@ -261,20 +260,20 @@ interface IPresentationOptions$1 {
|
|
|
261
260
|
}
|
|
262
261
|
declare class Presentation extends XmlComponent {
|
|
263
262
|
private readonly options;
|
|
264
|
-
constructor(options:
|
|
265
|
-
prepForXml(_context:
|
|
266
|
-
toXml(_context:
|
|
263
|
+
constructor(options: PresentationOptions);
|
|
264
|
+
prepForXml(_context: Context): IXmlableObject | undefined;
|
|
265
|
+
toXml(_context: Context): string;
|
|
267
266
|
}
|
|
268
267
|
//#endregion
|
|
269
268
|
//#region src/file/presentation/presentation-wrapper.d.ts
|
|
270
|
-
interface
|
|
269
|
+
interface ViewWrapper {
|
|
271
270
|
readonly View: BaseXmlComponent;
|
|
272
271
|
readonly Relationships: Relationships;
|
|
273
272
|
}
|
|
274
|
-
declare class PresentationWrapper implements
|
|
273
|
+
declare class PresentationWrapper implements ViewWrapper {
|
|
275
274
|
private readonly presentation;
|
|
276
275
|
private readonly relationships;
|
|
277
|
-
constructor(options:
|
|
276
|
+
constructor(options: PresentationOptions);
|
|
278
277
|
get View(): Presentation;
|
|
279
278
|
get Relationships(): Relationships;
|
|
280
279
|
}
|
|
@@ -289,7 +288,7 @@ type PathAnimationType = "customPath" | "arc" | "bounce" | "circle" | "curve" |
|
|
|
289
288
|
type MediaAnimationType = "playAudio" | "playVideo";
|
|
290
289
|
type AnimationCalcMode = "discrete" | "lin" | "fmla";
|
|
291
290
|
type AnimationValueType = "str" | "num" | "clr";
|
|
292
|
-
interface
|
|
291
|
+
interface AnimationOptions {
|
|
293
292
|
readonly type?: AnimationType;
|
|
294
293
|
readonly duration?: number;
|
|
295
294
|
readonly delay?: number;
|
|
@@ -332,12 +331,12 @@ declare const createOutlineCompat: (options?: OutlineOptions, arrowheads?: {
|
|
|
332
331
|
}) => _$_office_open_core0.XmlComponent;
|
|
333
332
|
//#endregion
|
|
334
333
|
//#region src/file/drawingml/shape-properties.d.ts
|
|
335
|
-
interface
|
|
334
|
+
interface ConnectionSiteOptions {
|
|
336
335
|
readonly x: number;
|
|
337
336
|
readonly y: number;
|
|
338
337
|
readonly angle?: number;
|
|
339
338
|
}
|
|
340
|
-
interface
|
|
339
|
+
interface ShapePropertiesOptions {
|
|
341
340
|
readonly x?: number;
|
|
342
341
|
readonly y?: number;
|
|
343
342
|
readonly width?: number;
|
|
@@ -347,13 +346,13 @@ interface IShapePropertiesOptions {
|
|
|
347
346
|
readonly geometry?: string;
|
|
348
347
|
readonly fill?: FillOptions;
|
|
349
348
|
readonly outline?: OutlineOptions;
|
|
350
|
-
readonly effects?:
|
|
351
|
-
readonly connectionSites?: readonly
|
|
349
|
+
readonly effects?: EffectsOptions;
|
|
350
|
+
readonly connectionSites?: readonly ConnectionSiteOptions[];
|
|
352
351
|
}
|
|
353
352
|
declare class ShapeProperties extends BaseXmlComponent {
|
|
354
353
|
private readonly options;
|
|
355
|
-
constructor(options:
|
|
356
|
-
prepForXml(context:
|
|
354
|
+
constructor(options: ShapePropertiesOptions);
|
|
355
|
+
prepForXml(context: Context<File>): IXmlableObject | undefined;
|
|
357
356
|
}
|
|
358
357
|
//#endregion
|
|
359
358
|
//#region src/file/shape/paragraph/paragraph-properties.d.ts
|
|
@@ -380,13 +379,12 @@ type BulletNoneOption = {
|
|
|
380
379
|
readonly type: "none";
|
|
381
380
|
};
|
|
382
381
|
type BulletOptions = BulletCharOptions | BulletAutoNumOptions | BulletNoneOption;
|
|
383
|
-
interface
|
|
382
|
+
interface ParagraphPropertiesOptions {
|
|
384
383
|
readonly alignment?: keyof typeof TextAlignment;
|
|
385
384
|
readonly indentLevel?: number;
|
|
386
385
|
readonly marginBottom?: number;
|
|
387
386
|
readonly marginTop?: number;
|
|
388
387
|
readonly bullet?: BulletOptions;
|
|
389
|
-
readonly bulletNone?: boolean;
|
|
390
388
|
readonly lineSpacing?: number;
|
|
391
389
|
readonly lineSpacingPoints?: number;
|
|
392
390
|
readonly marginIndent?: number;
|
|
@@ -395,8 +393,8 @@ interface IParagraphPropertiesOptions {
|
|
|
395
393
|
}
|
|
396
394
|
declare class ParagraphProperties extends XmlComponent {
|
|
397
395
|
private readonly options;
|
|
398
|
-
constructor(options?:
|
|
399
|
-
prepForXml(_context:
|
|
396
|
+
constructor(options?: ParagraphPropertiesOptions);
|
|
397
|
+
prepForXml(_context: Context): IXmlableObject | undefined;
|
|
400
398
|
}
|
|
401
399
|
//#endregion
|
|
402
400
|
//#region src/file/shape/paragraph/run-properties.d.ts
|
|
@@ -415,11 +413,11 @@ declare const TextCapitalization: {
|
|
|
415
413
|
readonly ALL: "all";
|
|
416
414
|
readonly SMALL: "small";
|
|
417
415
|
};
|
|
418
|
-
interface
|
|
416
|
+
interface HyperlinkOptions {
|
|
419
417
|
readonly url: string;
|
|
420
418
|
readonly tooltip?: string;
|
|
421
419
|
}
|
|
422
|
-
interface
|
|
420
|
+
interface RunPropertiesOptions {
|
|
423
421
|
readonly fontSize?: number;
|
|
424
422
|
readonly bold?: boolean;
|
|
425
423
|
readonly italic?: boolean;
|
|
@@ -427,7 +425,7 @@ interface IRunPropertiesOptions {
|
|
|
427
425
|
readonly font?: string;
|
|
428
426
|
readonly lang?: string;
|
|
429
427
|
readonly fill?: FillOptions;
|
|
430
|
-
readonly hyperlink?:
|
|
428
|
+
readonly hyperlink?: HyperlinkOptions;
|
|
431
429
|
readonly strike?: keyof typeof StrikeStyle;
|
|
432
430
|
readonly baseline?: number;
|
|
433
431
|
readonly spacing?: number;
|
|
@@ -440,35 +438,35 @@ interface IRunPropertiesOptions {
|
|
|
440
438
|
}
|
|
441
439
|
declare class RunProperties extends XmlComponent {
|
|
442
440
|
private readonly options;
|
|
443
|
-
static hasProperties(options:
|
|
444
|
-
constructor(options?:
|
|
445
|
-
prepForXml(context:
|
|
441
|
+
static hasProperties(options: RunPropertiesOptions): boolean;
|
|
442
|
+
constructor(options?: RunPropertiesOptions);
|
|
443
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
446
444
|
}
|
|
447
445
|
//#endregion
|
|
448
446
|
//#region src/file/shape/paragraph/run.d.ts
|
|
449
|
-
interface
|
|
447
|
+
interface RunOptions extends RunPropertiesOptions {
|
|
450
448
|
readonly text?: string;
|
|
451
449
|
}
|
|
452
450
|
declare class TextRun extends XmlComponent {
|
|
453
451
|
private readonly options;
|
|
454
|
-
constructor(options?:
|
|
455
|
-
prepForXml(context:
|
|
452
|
+
constructor(options?: RunOptions | string);
|
|
453
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
456
454
|
}
|
|
457
455
|
//#endregion
|
|
458
456
|
//#region src/file/shape/paragraph/paragraph.d.ts
|
|
459
|
-
interface
|
|
457
|
+
interface ParagraphOptions {
|
|
460
458
|
readonly text?: string;
|
|
461
|
-
readonly properties?:
|
|
462
|
-
readonly children?: readonly (TextRun |
|
|
459
|
+
readonly properties?: ParagraphPropertiesOptions;
|
|
460
|
+
readonly children?: readonly (TextRun | RunOptions | XmlComponent)[];
|
|
463
461
|
}
|
|
464
462
|
declare class Paragraph extends XmlComponent {
|
|
465
463
|
private readonly options;
|
|
466
|
-
constructor(options?: string |
|
|
467
|
-
prepForXml(context:
|
|
464
|
+
constructor(options?: string | ParagraphOptions);
|
|
465
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
468
466
|
}
|
|
469
467
|
//#endregion
|
|
470
468
|
//#region src/file/table/table-cell-properties.d.ts
|
|
471
|
-
interface
|
|
469
|
+
interface CellBorderOptions {
|
|
472
470
|
readonly width?: number;
|
|
473
471
|
readonly color?: string;
|
|
474
472
|
readonly dashStyle?: "solid" | "dash" | "dashDot" | "lgDash" | "sysDot" | "sysDash";
|
|
@@ -478,14 +476,14 @@ declare class TableCellProperties extends BaseXmlComponent {
|
|
|
478
476
|
constructor(options?: {
|
|
479
477
|
readonly fill?: FillOptions;
|
|
480
478
|
readonly borders?: {
|
|
481
|
-
readonly top?:
|
|
482
|
-
readonly bottom?:
|
|
483
|
-
readonly left?:
|
|
484
|
-
readonly right?:
|
|
479
|
+
readonly top?: CellBorderOptions;
|
|
480
|
+
readonly bottom?: CellBorderOptions;
|
|
481
|
+
readonly left?: CellBorderOptions;
|
|
482
|
+
readonly right?: CellBorderOptions;
|
|
485
483
|
};
|
|
486
484
|
readonly verticalAlign?: "t" | "ctr" | "b";
|
|
487
485
|
});
|
|
488
|
-
prepForXml(context:
|
|
486
|
+
prepForXml(context: Context): IXmlableObject;
|
|
489
487
|
}
|
|
490
488
|
//#endregion
|
|
491
489
|
//#region src/file/table/table-cell.d.ts
|
|
@@ -494,15 +492,15 @@ declare const VerticalAlignment: {
|
|
|
494
492
|
readonly CENTER: "ctr";
|
|
495
493
|
readonly BOTTOM: "b";
|
|
496
494
|
};
|
|
497
|
-
interface
|
|
495
|
+
interface TableCellOptions {
|
|
498
496
|
readonly text?: string;
|
|
499
|
-
readonly children?: readonly (BaseXmlComponent |
|
|
497
|
+
readonly children?: readonly (BaseXmlComponent | ParagraphOptions | string)[];
|
|
500
498
|
readonly fill?: FillOptions;
|
|
501
499
|
readonly borders?: {
|
|
502
|
-
readonly top?:
|
|
503
|
-
readonly bottom?:
|
|
504
|
-
readonly left?:
|
|
505
|
-
readonly right?:
|
|
500
|
+
readonly top?: CellBorderOptions;
|
|
501
|
+
readonly bottom?: CellBorderOptions;
|
|
502
|
+
readonly left?: CellBorderOptions;
|
|
503
|
+
readonly right?: CellBorderOptions;
|
|
506
504
|
};
|
|
507
505
|
readonly columnSpan?: number;
|
|
508
506
|
readonly rowSpan?: number;
|
|
@@ -517,13 +515,13 @@ interface ITableCellOptions {
|
|
|
517
515
|
declare class TableCell extends BaseXmlComponent {
|
|
518
516
|
private readonly options;
|
|
519
517
|
private readonly paragraphs?;
|
|
520
|
-
constructor(options?:
|
|
521
|
-
prepForXml(context:
|
|
518
|
+
constructor(options?: TableCellOptions);
|
|
519
|
+
prepForXml(context: Context): IXmlableObject;
|
|
522
520
|
}
|
|
523
521
|
//#endregion
|
|
524
522
|
//#region src/file/shape/text-body.d.ts
|
|
525
|
-
interface
|
|
526
|
-
readonly paragraphs?: readonly (Paragraph |
|
|
523
|
+
interface TextBodyOptions {
|
|
524
|
+
readonly paragraphs?: readonly (Paragraph | ParagraphOptions | string)[];
|
|
527
525
|
readonly vertical?: "vert" | "vert270" | "horz" | "wordArtVert";
|
|
528
526
|
readonly anchor?: keyof typeof VerticalAlignment;
|
|
529
527
|
readonly autoFit?: "normal" | "shape" | "none";
|
|
@@ -539,12 +537,12 @@ interface ITextBodyOptions {
|
|
|
539
537
|
}
|
|
540
538
|
declare class TextBody extends XmlComponent {
|
|
541
539
|
private readonly options;
|
|
542
|
-
constructor(options?:
|
|
543
|
-
prepForXml(context:
|
|
540
|
+
constructor(options?: TextBodyOptions);
|
|
541
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
544
542
|
}
|
|
545
543
|
//#endregion
|
|
546
544
|
//#region src/file/shape/shape.d.ts
|
|
547
|
-
interface
|
|
545
|
+
interface ShapeOptions {
|
|
548
546
|
readonly id?: number;
|
|
549
547
|
readonly name?: string;
|
|
550
548
|
readonly x?: number;
|
|
@@ -552,21 +550,21 @@ interface IShapeOptions {
|
|
|
552
550
|
readonly width?: number;
|
|
553
551
|
readonly height?: number;
|
|
554
552
|
readonly geometry?: string;
|
|
555
|
-
readonly fill?:
|
|
553
|
+
readonly fill?: ShapePropertiesOptions["fill"];
|
|
556
554
|
readonly outline?: OutlineOptions;
|
|
557
|
-
readonly effects?:
|
|
555
|
+
readonly effects?: EffectsOptions;
|
|
558
556
|
readonly flipHorizontal?: boolean;
|
|
559
557
|
readonly rotation?: number;
|
|
560
558
|
readonly text?: string;
|
|
561
|
-
readonly paragraphs?:
|
|
562
|
-
readonly textVertical?:
|
|
563
|
-
readonly textAnchor?:
|
|
564
|
-
readonly textAutoFit?:
|
|
565
|
-
readonly textWrap?:
|
|
566
|
-
readonly textMargins?:
|
|
567
|
-
readonly textColumns?:
|
|
568
|
-
readonly textColumnSpacing?:
|
|
569
|
-
readonly animation?:
|
|
559
|
+
readonly paragraphs?: TextBodyOptions["paragraphs"];
|
|
560
|
+
readonly textVertical?: TextBodyOptions["vertical"];
|
|
561
|
+
readonly textAnchor?: TextBodyOptions["anchor"];
|
|
562
|
+
readonly textAutoFit?: TextBodyOptions["autoFit"];
|
|
563
|
+
readonly textWrap?: TextBodyOptions["wrap"];
|
|
564
|
+
readonly textMargins?: TextBodyOptions["margins"];
|
|
565
|
+
readonly textColumns?: TextBodyOptions["columns"];
|
|
566
|
+
readonly textColumnSpacing?: TextBodyOptions["columnSpacing"];
|
|
567
|
+
readonly animation?: AnimationOptions;
|
|
570
568
|
readonly placeholder?: "title" | "body" | "subTitle" | "sldNum" | "dt" | "ftr" | "hdr" | "obj";
|
|
571
569
|
readonly placeholderIndex?: number;
|
|
572
570
|
}
|
|
@@ -575,10 +573,10 @@ declare class Shape extends XmlComponent {
|
|
|
575
573
|
private readonly shapeId;
|
|
576
574
|
private readonly animationOptions?;
|
|
577
575
|
private readonly options;
|
|
578
|
-
constructor(options?:
|
|
576
|
+
constructor(options?: ShapeOptions);
|
|
579
577
|
get ShapeId(): number;
|
|
580
|
-
get Animation():
|
|
581
|
-
prepForXml(context:
|
|
578
|
+
get Animation(): AnimationOptions | undefined;
|
|
579
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
582
580
|
}
|
|
583
581
|
//#endregion
|
|
584
582
|
//#region src/file/slide-layout/slide-layout.d.ts
|
|
@@ -587,7 +585,7 @@ declare class SlideLayout extends ImportedXmlComponent {
|
|
|
587
585
|
private static cache;
|
|
588
586
|
readonly layoutType: SlideLayoutType;
|
|
589
587
|
private readonly cacheKey;
|
|
590
|
-
constructor(layoutType?: SlideLayoutType, slideWidth?: number, definition?:
|
|
588
|
+
constructor(layoutType?: SlideLayoutType, slideWidth?: number, definition?: LayoutDefinition);
|
|
591
589
|
prepForXml(): Readonly<Record<string, any>> | undefined;
|
|
592
590
|
}
|
|
593
591
|
declare class DefaultSlideLayout extends SlideLayout {
|
|
@@ -595,33 +593,33 @@ declare class DefaultSlideLayout extends SlideLayout {
|
|
|
595
593
|
}
|
|
596
594
|
//#endregion
|
|
597
595
|
//#region src/file/slide-master/slide-master.d.ts
|
|
598
|
-
interface
|
|
596
|
+
interface MasterPlaceholderPosition {
|
|
599
597
|
readonly x: number;
|
|
600
598
|
readonly y: number;
|
|
601
599
|
readonly width: number;
|
|
602
600
|
readonly height: number;
|
|
603
601
|
}
|
|
604
|
-
interface
|
|
605
|
-
readonly title?: boolean |
|
|
606
|
-
readonly body?: boolean |
|
|
607
|
-
readonly date?: boolean |
|
|
608
|
-
readonly footer?: boolean |
|
|
609
|
-
readonly slideNumber?: boolean |
|
|
602
|
+
interface MasterPlaceholderOptions {
|
|
603
|
+
readonly title?: boolean | MasterPlaceholderPosition;
|
|
604
|
+
readonly body?: boolean | MasterPlaceholderPosition;
|
|
605
|
+
readonly date?: boolean | MasterPlaceholderPosition;
|
|
606
|
+
readonly footer?: boolean | MasterPlaceholderPosition;
|
|
607
|
+
readonly slideNumber?: boolean | MasterPlaceholderPosition;
|
|
610
608
|
}
|
|
611
|
-
interface
|
|
612
|
-
readonly background?:
|
|
609
|
+
interface SlideMasterOptions {
|
|
610
|
+
readonly background?: BackgroundOptions;
|
|
613
611
|
readonly children?: readonly MasterChild[];
|
|
614
|
-
readonly placeholders?:
|
|
612
|
+
readonly placeholders?: MasterPlaceholderOptions;
|
|
615
613
|
}
|
|
616
614
|
declare class DefaultSlideMaster extends ImportedXmlComponent {
|
|
617
615
|
private static cache;
|
|
618
616
|
private readonly cacheKey;
|
|
619
|
-
constructor(layoutCount?: number, headerFooter?:
|
|
617
|
+
constructor(layoutCount?: number, headerFooter?: SlideHeaderFooterOptions, masterOptions?: SlideMasterOptions, slideWidth?: number, masterIndex?: number);
|
|
620
618
|
prepForXml(): Readonly<Record<string, any>> | undefined;
|
|
621
619
|
}
|
|
622
620
|
//#endregion
|
|
623
621
|
//#region src/file/chart/chart-frame.d.ts
|
|
624
|
-
interface
|
|
622
|
+
interface ChartFrameOptions extends ChartSpaceOptions {
|
|
625
623
|
readonly x?: number;
|
|
626
624
|
readonly y?: number;
|
|
627
625
|
readonly width?: number;
|
|
@@ -630,13 +628,13 @@ interface IChartFrameOptions extends IChartSpaceOptions {
|
|
|
630
628
|
declare class ChartFrame extends XmlComponent {
|
|
631
629
|
private readonly chartOptions;
|
|
632
630
|
private readonly chartKey;
|
|
633
|
-
constructor(options:
|
|
634
|
-
prepForXml(context:
|
|
631
|
+
constructor(options: ChartFrameOptions);
|
|
632
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
635
633
|
get ChartKey(): string;
|
|
636
634
|
}
|
|
637
635
|
//#endregion
|
|
638
636
|
//#region src/file/media/media-frame-base.d.ts
|
|
639
|
-
interface
|
|
637
|
+
interface MediaFrameBaseOptions {
|
|
640
638
|
readonly x?: number;
|
|
641
639
|
readonly y?: number;
|
|
642
640
|
readonly width?: number;
|
|
@@ -644,14 +642,14 @@ interface IMediaFrameBaseOptions {
|
|
|
644
642
|
readonly data: Uint8Array;
|
|
645
643
|
readonly type: IMediaData["type"];
|
|
646
644
|
readonly name?: string;
|
|
647
|
-
readonly animation?:
|
|
645
|
+
readonly animation?: AnimationOptions;
|
|
648
646
|
}
|
|
649
647
|
declare abstract class MediaFrameBase extends XmlComponent {
|
|
650
648
|
private readonly shapeId;
|
|
651
649
|
private readonly animationOptions?;
|
|
652
650
|
protected readonly mediaData: IMediaData;
|
|
653
651
|
protected readonly posterData?: IMediaData;
|
|
654
|
-
protected constructor(options:
|
|
652
|
+
protected constructor(options: MediaFrameBaseOptions, id: number, mediaFileName: string, params: {
|
|
655
653
|
readonly extUri: string;
|
|
656
654
|
readonly cNvPrPrefix: string;
|
|
657
655
|
readonly nvPrExtraChildren?: BuilderElement[];
|
|
@@ -660,35 +658,35 @@ declare abstract class MediaFrameBase extends XmlComponent {
|
|
|
660
658
|
readonly posterFileName?: string;
|
|
661
659
|
});
|
|
662
660
|
get ShapeId(): number;
|
|
663
|
-
get Animation():
|
|
664
|
-
prepForXml(context:
|
|
661
|
+
get Animation(): AnimationOptions | undefined;
|
|
662
|
+
prepForXml(context: Context): Readonly<Record<string, any>> | undefined;
|
|
665
663
|
}
|
|
666
664
|
//#endregion
|
|
667
665
|
//#region src/file/media/audio-frame.d.ts
|
|
668
666
|
type AudioType = "mp3" | "wav" | "wma" | "aac";
|
|
669
|
-
interface
|
|
667
|
+
interface AudioFrameOptions extends MediaFrameBaseOptions {
|
|
670
668
|
readonly type: AudioType;
|
|
671
669
|
}
|
|
672
670
|
declare class AudioFrame extends MediaFrameBase {
|
|
673
671
|
private static nextId;
|
|
674
|
-
constructor(options:
|
|
672
|
+
constructor(options: AudioFrameOptions);
|
|
675
673
|
}
|
|
676
674
|
//#endregion
|
|
677
675
|
//#region src/file/media/video-frame.d.ts
|
|
678
676
|
type VideoType = "mp4" | "mov" | "wmv" | "avi";
|
|
679
677
|
type PosterType = "png" | "jpg";
|
|
680
|
-
interface
|
|
678
|
+
interface VideoFrameOptions extends MediaFrameBaseOptions {
|
|
681
679
|
readonly type: VideoType;
|
|
682
680
|
readonly poster?: Uint8Array;
|
|
683
681
|
readonly posterType?: PosterType;
|
|
684
682
|
}
|
|
685
683
|
declare class VideoFrame extends MediaFrameBase {
|
|
686
684
|
private static nextId;
|
|
687
|
-
constructor(options:
|
|
685
|
+
constructor(options: VideoFrameOptions);
|
|
688
686
|
}
|
|
689
687
|
//#endregion
|
|
690
688
|
//#region src/file/picture/picture.d.ts
|
|
691
|
-
interface
|
|
689
|
+
interface PictureOptions {
|
|
692
690
|
readonly x?: number;
|
|
693
691
|
readonly y?: number;
|
|
694
692
|
readonly width?: number;
|
|
@@ -700,12 +698,12 @@ interface IPictureOptions {
|
|
|
700
698
|
declare class Picture extends XmlComponent {
|
|
701
699
|
private static nextId;
|
|
702
700
|
private readonly imageData;
|
|
703
|
-
constructor(options:
|
|
704
|
-
prepForXml(context:
|
|
701
|
+
constructor(options: PictureOptions);
|
|
702
|
+
prepForXml(context: Context): Readonly<Record<string, any>> | undefined;
|
|
705
703
|
}
|
|
706
704
|
//#endregion
|
|
707
705
|
//#region src/file/shape/group-shape.d.ts
|
|
708
|
-
interface
|
|
706
|
+
interface GroupShapeOptions {
|
|
709
707
|
readonly x?: number;
|
|
710
708
|
readonly y?: number;
|
|
711
709
|
readonly width?: number;
|
|
@@ -718,18 +716,18 @@ declare class GroupShape extends BaseXmlComponent {
|
|
|
718
716
|
private static nextId;
|
|
719
717
|
private readonly id;
|
|
720
718
|
private readonly options;
|
|
721
|
-
constructor(options:
|
|
722
|
-
prepForXml(context:
|
|
719
|
+
constructor(options: GroupShapeOptions);
|
|
720
|
+
prepForXml(context: Context): IXmlableObject;
|
|
723
721
|
}
|
|
724
722
|
//#endregion
|
|
725
723
|
//#region src/file/shape/line-shape.d.ts
|
|
726
724
|
declare class LineShape extends XmlComponent {
|
|
727
725
|
private static nextId;
|
|
728
726
|
private readonly shapeId;
|
|
729
|
-
constructor(options?:
|
|
727
|
+
constructor(options?: LineShapeOptions);
|
|
730
728
|
get ShapeId(): number;
|
|
731
729
|
}
|
|
732
|
-
interface
|
|
730
|
+
interface LineShapeOptions {
|
|
733
731
|
readonly id?: number;
|
|
734
732
|
readonly name?: string;
|
|
735
733
|
readonly x1?: number;
|
|
@@ -743,10 +741,10 @@ type ArrowheadType = "triangle" | "stealth" | "diamond" | "oval" | "open" | "non
|
|
|
743
741
|
declare class ConnectorShape extends XmlComponent {
|
|
744
742
|
private static nextId;
|
|
745
743
|
private readonly shapeId;
|
|
746
|
-
constructor(options?:
|
|
744
|
+
constructor(options?: ConnectorShapeOptions);
|
|
747
745
|
get ShapeId(): number;
|
|
748
746
|
}
|
|
749
|
-
interface
|
|
747
|
+
interface ConnectorShapeOptions {
|
|
750
748
|
readonly id?: number;
|
|
751
749
|
readonly name?: string;
|
|
752
750
|
readonly x1?: number;
|
|
@@ -762,12 +760,12 @@ interface IConnectorShapeOptions {
|
|
|
762
760
|
}
|
|
763
761
|
//#endregion
|
|
764
762
|
//#region src/file/smartart/smartart-frame.d.ts
|
|
765
|
-
interface
|
|
763
|
+
interface SmartArtFrameOptions {
|
|
766
764
|
readonly x?: number;
|
|
767
765
|
readonly y?: number;
|
|
768
766
|
readonly width?: number;
|
|
769
767
|
readonly height?: number;
|
|
770
|
-
readonly nodes: readonly
|
|
768
|
+
readonly nodes: readonly TreeNode[];
|
|
771
769
|
readonly name?: string;
|
|
772
770
|
readonly layout?: string;
|
|
773
771
|
readonly style?: string;
|
|
@@ -779,24 +777,24 @@ declare class SmartArtFrame extends XmlComponent {
|
|
|
779
777
|
private readonly layoutId;
|
|
780
778
|
private readonly styleId;
|
|
781
779
|
private readonly colorId;
|
|
782
|
-
constructor(options:
|
|
783
|
-
prepForXml(context:
|
|
780
|
+
constructor(options: SmartArtFrameOptions);
|
|
781
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
784
782
|
}
|
|
785
783
|
//#endregion
|
|
786
784
|
//#region src/file/table/table-row.d.ts
|
|
787
|
-
interface
|
|
785
|
+
interface TableRowOptions {
|
|
788
786
|
readonly height?: number;
|
|
789
|
-
readonly cells: readonly
|
|
787
|
+
readonly cells: readonly TableCellOptions[];
|
|
790
788
|
}
|
|
791
789
|
declare class TableRow extends BaseXmlComponent {
|
|
792
790
|
private readonly options;
|
|
793
|
-
constructor(options:
|
|
794
|
-
prepForXml(context:
|
|
791
|
+
constructor(options: TableRowOptions);
|
|
792
|
+
prepForXml(context: Context): IXmlableObject;
|
|
795
793
|
}
|
|
796
794
|
//#endregion
|
|
797
795
|
//#region src/file/table/table.d.ts
|
|
798
|
-
interface
|
|
799
|
-
readonly rows: readonly
|
|
796
|
+
interface TableOptions {
|
|
797
|
+
readonly rows: readonly TableRowOptions[];
|
|
800
798
|
readonly columnWidths?: readonly number[];
|
|
801
799
|
readonly firstRow?: boolean;
|
|
802
800
|
readonly lastRow?: boolean;
|
|
@@ -805,56 +803,56 @@ interface ITableOptions {
|
|
|
805
803
|
readonly lastCol?: boolean;
|
|
806
804
|
readonly bandCol?: boolean;
|
|
807
805
|
readonly borders?: {
|
|
808
|
-
readonly top?:
|
|
809
|
-
readonly bottom?:
|
|
810
|
-
readonly left?:
|
|
811
|
-
readonly right?:
|
|
806
|
+
readonly top?: CellBorderOptions;
|
|
807
|
+
readonly bottom?: CellBorderOptions;
|
|
808
|
+
readonly left?: CellBorderOptions;
|
|
809
|
+
readonly right?: CellBorderOptions;
|
|
812
810
|
};
|
|
813
811
|
}
|
|
814
812
|
declare class Table extends BaseXmlComponent {
|
|
815
813
|
private readonly options;
|
|
816
|
-
constructor(options:
|
|
817
|
-
prepForXml(context:
|
|
814
|
+
constructor(options: TableOptions);
|
|
815
|
+
prepForXml(context: Context): IXmlableObject;
|
|
818
816
|
}
|
|
819
817
|
//#endregion
|
|
820
818
|
//#region src/file/table/table-frame.d.ts
|
|
821
|
-
interface
|
|
819
|
+
interface TableFrameOptions extends TableOptions {
|
|
822
820
|
readonly x?: number;
|
|
823
821
|
readonly y?: number;
|
|
824
822
|
readonly width?: number;
|
|
825
823
|
readonly height?: number;
|
|
826
824
|
}
|
|
827
825
|
declare class TableFrame extends XmlComponent {
|
|
828
|
-
constructor(options:
|
|
826
|
+
constructor(options: TableFrameOptions);
|
|
829
827
|
}
|
|
830
828
|
//#endregion
|
|
831
829
|
//#region src/file/slide/slide-child.d.ts
|
|
832
830
|
type SlideChild = BaseXmlComponent | {
|
|
833
|
-
shape:
|
|
831
|
+
shape: ShapeOptions;
|
|
834
832
|
} | {
|
|
835
|
-
picture:
|
|
833
|
+
picture: PictureOptions;
|
|
836
834
|
} | {
|
|
837
|
-
table:
|
|
835
|
+
table: TableFrameOptions;
|
|
838
836
|
} | {
|
|
839
|
-
chart:
|
|
837
|
+
chart: ChartFrameOptions;
|
|
840
838
|
} | {
|
|
841
|
-
line:
|
|
839
|
+
line: LineShapeOptions;
|
|
842
840
|
} | {
|
|
843
|
-
connector:
|
|
841
|
+
connector: ConnectorShapeOptions;
|
|
844
842
|
} | {
|
|
845
|
-
video:
|
|
843
|
+
video: VideoFrameOptions;
|
|
846
844
|
} | {
|
|
847
|
-
audio:
|
|
845
|
+
audio: AudioFrameOptions;
|
|
848
846
|
} | {
|
|
849
|
-
group:
|
|
847
|
+
group: GroupShapeOptions;
|
|
850
848
|
} | {
|
|
851
|
-
smartart:
|
|
849
|
+
smartart: SmartArtFrameOptions;
|
|
852
850
|
};
|
|
853
851
|
//#endregion
|
|
854
852
|
//#region src/file/transition/transition.d.ts
|
|
855
853
|
type TransitionType = "fade" | "push" | "wipe" | "split" | "blinds" | "checker" | "comb" | "randomBar" | "cover" | "pull" | "strips" | "wheel" | "zoom" | "circle" | "dissolve" | "diamond" | "newsflash" | "plus" | "wedge" | "random" | "cut";
|
|
856
854
|
type TransitionDirection = "left" | "up" | "right" | "down" | "leftUp" | "rightUp" | "leftDown" | "rightDown" | "out" | "in";
|
|
857
|
-
interface
|
|
855
|
+
interface TransitionOptions {
|
|
858
856
|
readonly type?: TransitionType;
|
|
859
857
|
readonly speed?: "slow" | "med" | "fast";
|
|
860
858
|
readonly advanceOnClick?: boolean;
|
|
@@ -866,8 +864,8 @@ interface ITransitionOptions {
|
|
|
866
864
|
}
|
|
867
865
|
declare class Transition extends BaseXmlComponent {
|
|
868
866
|
private readonly options;
|
|
869
|
-
constructor(options?:
|
|
870
|
-
prepForXml(_context:
|
|
867
|
+
constructor(options?: TransitionOptions);
|
|
868
|
+
prepForXml(_context: Context): IXmlableObject;
|
|
871
869
|
}
|
|
872
870
|
//#endregion
|
|
873
871
|
//#region src/file/slide/slide.d.ts
|
|
@@ -875,9 +873,9 @@ declare class Slide extends XmlComponent {
|
|
|
875
873
|
private readonly children;
|
|
876
874
|
private readonly background?;
|
|
877
875
|
private readonly transition?;
|
|
878
|
-
readonly HeaderFooter?:
|
|
879
|
-
constructor(children: readonly SlideChild[], background?: Background, transition?:
|
|
880
|
-
prepForXml(context:
|
|
876
|
+
readonly HeaderFooter?: SlideHeaderFooterOptions;
|
|
877
|
+
constructor(children: readonly SlideChild[], background?: Background, transition?: TransitionOptions, headerFooter?: SlideHeaderFooterOptions);
|
|
878
|
+
prepForXml(context: Context): IXmlableObject;
|
|
881
879
|
}
|
|
882
880
|
//#endregion
|
|
883
881
|
//#region src/file/table-styles.d.ts
|
|
@@ -888,7 +886,7 @@ declare class TableStyles extends ImportedXmlComponent {
|
|
|
888
886
|
}
|
|
889
887
|
//#endregion
|
|
890
888
|
//#region src/file/theme/theme.d.ts
|
|
891
|
-
interface
|
|
889
|
+
interface ColorSchemeOptions {
|
|
892
890
|
dark1?: string;
|
|
893
891
|
light1?: string;
|
|
894
892
|
dark2?: string;
|
|
@@ -902,21 +900,21 @@ interface IColorSchemeOptions {
|
|
|
902
900
|
hyperlink?: string;
|
|
903
901
|
followedHyperlink?: string;
|
|
904
902
|
}
|
|
905
|
-
interface
|
|
903
|
+
interface FontSchemeOptions {
|
|
906
904
|
majorFont?: string;
|
|
907
905
|
minorFont?: string;
|
|
908
906
|
majorFontAsian?: string;
|
|
909
907
|
minorFontAsian?: string;
|
|
910
908
|
}
|
|
911
|
-
interface
|
|
909
|
+
interface ThemeOptions {
|
|
912
910
|
name?: string;
|
|
913
|
-
colors?:
|
|
914
|
-
fonts?:
|
|
911
|
+
colors?: ColorSchemeOptions;
|
|
912
|
+
fonts?: FontSchemeOptions;
|
|
915
913
|
}
|
|
916
914
|
declare class DefaultTheme extends ImportedXmlComponent {
|
|
917
915
|
private static cache;
|
|
918
916
|
private readonly cacheKey;
|
|
919
|
-
constructor(options?:
|
|
917
|
+
constructor(options?: ThemeOptions);
|
|
920
918
|
prepForXml(): Readonly<Record<string, any>> | undefined;
|
|
921
919
|
}
|
|
922
920
|
//#endregion
|
|
@@ -929,32 +927,32 @@ declare class ViewProperties extends ImportedXmlComponent {
|
|
|
929
927
|
//#endregion
|
|
930
928
|
//#region src/file/file.d.ts
|
|
931
929
|
type MasterChild = BaseXmlComponent | {
|
|
932
|
-
shape:
|
|
930
|
+
shape: ShapeOptions;
|
|
933
931
|
};
|
|
934
932
|
type SlideSize = "16:9" | "4:3" | {
|
|
935
933
|
readonly width: number;
|
|
936
934
|
readonly height: number;
|
|
937
935
|
};
|
|
938
|
-
interface
|
|
939
|
-
readonly title?:
|
|
940
|
-
readonly body?:
|
|
941
|
-
readonly subtitle?:
|
|
942
|
-
readonly date?:
|
|
943
|
-
readonly footer?:
|
|
944
|
-
readonly slideNumber?:
|
|
945
|
-
}
|
|
946
|
-
interface
|
|
936
|
+
interface LayoutPlaceholderOptions {
|
|
937
|
+
readonly title?: MasterPlaceholderPosition | false;
|
|
938
|
+
readonly body?: MasterPlaceholderPosition | false;
|
|
939
|
+
readonly subtitle?: MasterPlaceholderPosition | false;
|
|
940
|
+
readonly date?: MasterPlaceholderPosition | false;
|
|
941
|
+
readonly footer?: MasterPlaceholderPosition | false;
|
|
942
|
+
readonly slideNumber?: MasterPlaceholderPosition | false;
|
|
943
|
+
}
|
|
944
|
+
interface LayoutDefinition {
|
|
947
945
|
readonly type?: SlideLayoutType;
|
|
948
946
|
readonly name?: string;
|
|
949
|
-
readonly placeholders?:
|
|
947
|
+
readonly placeholders?: LayoutPlaceholderOptions;
|
|
950
948
|
readonly children?: readonly MasterChild[];
|
|
951
949
|
}
|
|
952
|
-
interface
|
|
950
|
+
interface MasterDefinition extends SlideMasterOptions {
|
|
953
951
|
readonly name?: string;
|
|
954
|
-
readonly theme?:
|
|
955
|
-
readonly layouts?: readonly
|
|
952
|
+
readonly theme?: ThemeOptions;
|
|
953
|
+
readonly layouts?: readonly LayoutDefinition[];
|
|
956
954
|
}
|
|
957
|
-
interface
|
|
955
|
+
interface SlideCommentOptions {
|
|
958
956
|
readonly author: string;
|
|
959
957
|
readonly text: string;
|
|
960
958
|
readonly x: number;
|
|
@@ -962,27 +960,27 @@ interface ICommentOptions {
|
|
|
962
960
|
readonly initials?: string;
|
|
963
961
|
readonly date?: string;
|
|
964
962
|
}
|
|
965
|
-
interface
|
|
963
|
+
interface SlideOptions {
|
|
966
964
|
readonly children?: readonly SlideChild[];
|
|
967
|
-
readonly background?:
|
|
965
|
+
readonly background?: BackgroundOptions;
|
|
968
966
|
readonly notes?: string;
|
|
969
|
-
readonly transition?:
|
|
970
|
-
readonly headerFooter?:
|
|
971
|
-
readonly comments?: readonly
|
|
967
|
+
readonly transition?: TransitionOptions;
|
|
968
|
+
readonly headerFooter?: SlideHeaderFooterOptions;
|
|
969
|
+
readonly comments?: readonly SlideCommentOptions[];
|
|
972
970
|
readonly layout?: SlideLayoutType | string;
|
|
973
971
|
readonly master?: string;
|
|
974
972
|
}
|
|
975
|
-
interface
|
|
973
|
+
interface ShowOptions {
|
|
976
974
|
readonly loop?: boolean;
|
|
977
975
|
readonly kiosk?: boolean;
|
|
978
976
|
readonly showNarration?: boolean;
|
|
979
977
|
readonly useTimings?: boolean;
|
|
980
978
|
}
|
|
981
|
-
interface
|
|
979
|
+
interface PresentationOptions$1 extends CorePropertiesOptions {
|
|
982
980
|
readonly size?: SlideSize;
|
|
983
|
-
readonly masters?: readonly
|
|
984
|
-
readonly slides?: readonly
|
|
985
|
-
readonly show?:
|
|
981
|
+
readonly masters?: readonly MasterDefinition[];
|
|
982
|
+
readonly slides?: readonly SlideOptions[];
|
|
983
|
+
readonly show?: ShowOptions;
|
|
986
984
|
}
|
|
987
985
|
interface LayoutInfo {
|
|
988
986
|
readonly key: string;
|
|
@@ -1018,7 +1016,7 @@ declare class File {
|
|
|
1018
1016
|
private commentAuthorList?;
|
|
1019
1017
|
private slideCommentLists?;
|
|
1020
1018
|
private fileRels?;
|
|
1021
|
-
constructor(options:
|
|
1019
|
+
constructor(options: PresentationOptions$1);
|
|
1022
1020
|
private getMasterMap;
|
|
1023
1021
|
private findLayoutForSlide;
|
|
1024
1022
|
get CoreProperties(): CoreProperties;
|
|
@@ -1052,7 +1050,7 @@ declare class File {
|
|
|
1052
1050
|
}
|
|
1053
1051
|
//#endregion
|
|
1054
1052
|
//#region src/file/shape/paragraph/text.d.ts
|
|
1055
|
-
declare class Text extends
|
|
1053
|
+
declare class Text extends XmlComponent {
|
|
1056
1054
|
constructor(value: string);
|
|
1057
1055
|
}
|
|
1058
1056
|
//#endregion
|
|
@@ -1062,7 +1060,7 @@ declare class EndParagraphRunProperties extends BuilderElement<{
|
|
|
1062
1060
|
}> {
|
|
1063
1061
|
private readonly lang;
|
|
1064
1062
|
constructor(lang?: string);
|
|
1065
|
-
prepForXml(_context:
|
|
1063
|
+
prepForXml(_context: Context): IXmlableObject | undefined;
|
|
1066
1064
|
}
|
|
1067
1065
|
//#endregion
|
|
1068
1066
|
//#region src/file/shape/paragraph/field.d.ts
|
|
@@ -1086,7 +1084,7 @@ type ITransform2DOptions = Transform2DOptions;
|
|
|
1086
1084
|
declare class Transform2D extends XmlComponent {
|
|
1087
1085
|
private readonly core;
|
|
1088
1086
|
constructor(options: ITransform2DOptions, prefix?: "a" | "p");
|
|
1089
|
-
prepForXml(context:
|
|
1087
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
1090
1088
|
}
|
|
1091
1089
|
//#endregion
|
|
1092
1090
|
//#region src/file/drawingml/non-visual-drawing-props.d.ts
|
|
@@ -1098,12 +1096,12 @@ declare class NonVisualDrawingProperties extends BuilderElement<{
|
|
|
1098
1096
|
}
|
|
1099
1097
|
//#endregion
|
|
1100
1098
|
//#region src/file/drawingml/non-visual-shape-props.d.ts
|
|
1101
|
-
declare class NonVisualShapeProperties extends
|
|
1099
|
+
declare class NonVisualShapeProperties extends EmptyElement {
|
|
1102
1100
|
constructor();
|
|
1103
1101
|
}
|
|
1104
1102
|
//#endregion
|
|
1105
1103
|
//#region src/file/drawingml/non-visual-picture-props.d.ts
|
|
1106
|
-
declare class NonVisualPictureProperties extends
|
|
1104
|
+
declare class NonVisualPictureProperties extends EmptyElement {
|
|
1107
1105
|
constructor();
|
|
1108
1106
|
}
|
|
1109
1107
|
//#endregion
|
|
@@ -1112,7 +1110,7 @@ type IGroupTransform2DOptions = GroupTransform2DOptions;
|
|
|
1112
1110
|
declare class GroupTransform2D extends XmlComponent {
|
|
1113
1111
|
private readonly core;
|
|
1114
1112
|
constructor(options: IGroupTransform2DOptions, prefix?: "a" | "p");
|
|
1115
|
-
prepForXml(context:
|
|
1113
|
+
prepForXml(context: Context): IXmlableObject | undefined;
|
|
1116
1114
|
}
|
|
1117
1115
|
//#endregion
|
|
1118
1116
|
//#region src/file/drawingml/group-shape-properties.d.ts
|
|
@@ -1146,20 +1144,11 @@ declare class TableProperties extends BaseXmlComponent {
|
|
|
1146
1144
|
readonly lastCol?: boolean;
|
|
1147
1145
|
readonly bandCol?: boolean;
|
|
1148
1146
|
});
|
|
1149
|
-
prepForXml(_context:
|
|
1147
|
+
prepForXml(_context: Context): IXmlableObject;
|
|
1150
1148
|
}
|
|
1151
1149
|
//#endregion
|
|
1152
1150
|
//#region src/export/packer/packer.d.ts
|
|
1153
|
-
declare
|
|
1154
|
-
static pack<T extends OutputType>(file: File, type: T, prettify?: boolean | (typeof PrettifyType$1)[keyof typeof PrettifyType$1], overrides?: readonly IXmlifyedFile[]): Promise<OutputByType[T]>;
|
|
1155
|
-
static toString(file: File, prettify?: boolean | (typeof PrettifyType$1)[keyof typeof PrettifyType$1], overrides?: readonly IXmlifyedFile[]): Promise<string>;
|
|
1156
|
-
static toArrayBuffer(file: File, prettify?: boolean | (typeof PrettifyType$1)[keyof typeof PrettifyType$1], overrides?: readonly IXmlifyedFile[]): Promise<ArrayBuffer>;
|
|
1157
|
-
static toBuffer(file: File, prettify?: boolean | (typeof PrettifyType$1)[keyof typeof PrettifyType$1], overrides?: readonly IXmlifyedFile[]): Promise<Buffer>;
|
|
1158
|
-
static toBlob(file: File, prettify?: boolean | (typeof PrettifyType$1)[keyof typeof PrettifyType$1], overrides?: readonly IXmlifyedFile[]): Promise<Blob>;
|
|
1159
|
-
static toBase64String(file: File, prettify?: boolean | (typeof PrettifyType$1)[keyof typeof PrettifyType$1], overrides?: readonly IXmlifyedFile[]): Promise<string>;
|
|
1160
|
-
static toStream(file: File, prettify?: boolean | (typeof PrettifyType$1)[keyof typeof PrettifyType$1], overrides?: readonly IXmlifyedFile[]): Readable;
|
|
1161
|
-
private static readonly compiler;
|
|
1162
|
-
}
|
|
1151
|
+
declare const Packer: _$_office_open_core0.Packer<File>;
|
|
1163
1152
|
//#endregion
|
|
1164
1153
|
//#region src/util/types.d.ts
|
|
1165
1154
|
declare const percentToTHousandths: (percent: number) => number;
|
|
@@ -1209,11 +1198,11 @@ interface PptxDocument {
|
|
|
1209
1198
|
coreProps?: string;
|
|
1210
1199
|
appProps?: string;
|
|
1211
1200
|
}
|
|
1212
|
-
declare function parsePptx(data:
|
|
1213
|
-
declare function parsePresentation(data:
|
|
1201
|
+
declare function parsePptx(data: DataType): PptxDocument;
|
|
1202
|
+
declare function parsePresentation(data: DataType): PresentationOptions$1;
|
|
1214
1203
|
declare namespace index_d_exports {
|
|
1215
|
-
export { AnimationCalcMode, AnimationClass, AnimationDirection, AnimationTrigger, AnimationType, AnimationValueType, AppProperties, AudioFrame, AudioType, Background, BevelOptions, BevelPresetType, BlipFill, BlipFillConfigOptions, BlipFillMediaData, ChartCollection, ChartFrame, ChartSpace, ChartType, ColorTransformOptions, CompoundLine, ConnectorShape, ContentTypes, CoreGradientFillOptions, CoreOutlineOptions, CoreProperties, DateTimeField, DefaultNotesMaster, DefaultSlideLayout, DefaultSlideMaster, DefaultTheme, EffectListOptions, EmphasisType, EndParagraphRunProperties, Field, File, FillOptions,
|
|
1204
|
+
export { AnimationCalcMode, AnimationClass, AnimationDirection, AnimationOptions, AnimationTrigger, AnimationType, AnimationValueType, AppProperties, AudioFrame, AudioFrameOptions, AudioType, Background, BackgroundOptions, BevelOptions, BevelPresetType, BlipFill, BlipFillConfigOptions, BlipFillMediaData, CellBorderOptions, ChartCollection, ChartData, ChartFrame, ChartFrameOptions, ChartSeriesData, ChartSpace, ChartSpaceOptions, ChartType, ColorSchemeOptions, ColorTransformOptions, CompoundLine, ConnectorShape, ConnectorShapeOptions, ContentTypes, CoreGradientFillOptions, CoreOutlineOptions, CoreProperties, CorePropertiesOptions, DateTimeField, DefaultNotesMaster, DefaultSlideLayout, DefaultSlideMaster, DefaultTheme, EffectListOptions, EffectsOptions, EmphasisType, EndParagraphRunProperties, Field, File, FillOptions, FontSchemeOptions, GlowOptions, GradientStop, GradientStopOptions, GroupShape, GroupShapeOptions, GroupShapeProperties, GroupTransform2D, HeaderFooter, HyperlinkOptions, IGroupTransform2DOptions, IMediaData, PresentationOptions as IPresentationXmlOptions, ITransform2DOptions, LayoutDefinition, LayoutPlaceholderOptions, LineCap, LineJoin, LineShape, LineShapeOptions, MasterChild, MasterDefinition, MasterPlaceholderOptions, MasterPlaceholderPosition, Media, MediaAnimationType, MediaDataTransformation, MediaTransformation, NonVisualDrawingProperties, NonVisualPictureProperties, NonVisualShapeProperties, NotesSlide, NotesSlideOptions, OutlineOptions, Packer, Paragraph, ParagraphOptions, ParagraphProperties, ParagraphPropertiesOptions, PathAnimationType, PathShadeType, PenAlignment, Picture, PictureOptions, PosterType, PptxDocument, PptxPartRefs, File as Presentation, PresentationOptions$1 as PresentationOptions, PresentationWrapper, PresetDash, PresetGeometry, PresetMaterialType, PrettifyType, ReflectionAlignment, ReflectionOptions, RelationshipType, Relationships, RunOptions, RunProperties, RunPropertiesOptions, Scene3DOptions, ShadowOptions, Shape, Shape3DOptions, ShapeOptions, ShapeProperties, ShapePropertiesOptions, ShapeTree, Slide, SlideChild, SlideCommentOptions, SlideHeaderFooterOptions, SlideLayout, SlideLayoutType, SlideMasterOptions, SlideNumberField, SlideOptions, SlideSize, SlideSizePreset, SmartArtFrame, SmartArtFrameOptions, SoftEdgeOptions, StrikeStyle, Table, TableCell, TableCellOptions, TableCellProperties, TableFrame, TableFrameOptions, TableOptions, TableProperties, TableRow, TableRowOptions, Text, TextAlignment, TextBody, TextBodyOptions, TextCapitalization, TextRun, ThemeOptions, TileFlipMode, Transform2D, Transition, TransitionDirection, TransitionOptions, TransitionType, TreeNode, UnderlineStyle, VerticalAlignment, VideoFrame, VideoFrameOptions, VideoType, ViewWrapper, buildFill, coerceChild, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertPixelsToEmu, convertPointsToEmu, createBevel, createBottomBevel, createColorElement, createColorTransforms, createEffectList, createGradientFill, createGradientStop, createOutline, createOutlineCompat, createPptxEffectList, createScene3D, createShape3D, createTransformation, extractBlipFillMedia, hashedId, parseArchive, parsePptx, parsePresentation, percentToTHousandths, uniqueId, uniqueNumericIdCreator, uniqueUuid };
|
|
1216
1205
|
}
|
|
1217
1206
|
//#endregion
|
|
1218
|
-
export { type AnimationCalcMode, type AnimationClass, type AnimationDirection, type AnimationTrigger, type AnimationType, type AnimationValueType, AppProperties, AudioFrame, type AudioType, Background, type BevelOptions, BevelPresetType, BlipFill, type BlipFillConfigOptions, type BlipFillMediaData, ChartCollection, ChartFrame, ChartSpace, type ChartType, type ColorTransformOptions, CompoundLine, ConnectorShape, ContentTypes, type CoreGradientFillOptions, type CoreOutlineOptions, CoreProperties, DateTimeField, DefaultNotesMaster, DefaultSlideLayout, DefaultSlideMaster, DefaultTheme, type EffectListOptions, type EmphasisType, EndParagraphRunProperties, Field, File, File as Presentation, type FillOptions, type
|
|
1207
|
+
export { type AnimationCalcMode, type AnimationClass, type AnimationDirection, type AnimationOptions, type AnimationTrigger, type AnimationType, type AnimationValueType, AppProperties, AudioFrame, type AudioFrameOptions, type AudioType, Background, type BackgroundOptions, type BevelOptions, BevelPresetType, BlipFill, type BlipFillConfigOptions, type BlipFillMediaData, type CellBorderOptions, ChartCollection, type ChartData, ChartFrame, type ChartFrameOptions, type ChartSeriesData, ChartSpace, type ChartSpaceOptions, type ChartType, type ColorSchemeOptions, type ColorTransformOptions, CompoundLine, ConnectorShape, type ConnectorShapeOptions, ContentTypes, type CoreGradientFillOptions, type CoreOutlineOptions, CoreProperties, type CorePropertiesOptions, DateTimeField, DefaultNotesMaster, DefaultSlideLayout, DefaultSlideMaster, DefaultTheme, type EffectListOptions, type EffectsOptions, type EmphasisType, EndParagraphRunProperties, Field, File, File as Presentation, type FillOptions, type FontSchemeOptions, type GlowOptions, type GradientStop, type GradientStopOptions, GroupShape, type GroupShapeOptions, GroupShapeProperties, GroupTransform2D, HeaderFooter, type HyperlinkOptions, type IGroupTransform2DOptions, type IMediaData, type PresentationOptions as IPresentationXmlOptions, type ITransform2DOptions, type LayoutDefinition, type LayoutPlaceholderOptions, LineCap, LineJoin, LineShape, type LineShapeOptions, type MasterChild, type MasterDefinition, type MasterPlaceholderOptions, type MasterPlaceholderPosition, Media, type MediaAnimationType, type MediaDataTransformation, type MediaTransformation, NonVisualDrawingProperties, NonVisualPictureProperties, NonVisualShapeProperties, NotesSlide, type NotesSlideOptions, type OutlineOptions, Packer, Paragraph, type ParagraphOptions, ParagraphProperties, type ParagraphPropertiesOptions, type PathAnimationType, PathShadeType, PenAlignment, Picture, type PictureOptions, type PosterType, PptxDocument, PptxPartRefs, type PresentationOptions$1 as PresentationOptions, PresentationWrapper, PresetDash, PresetGeometry, PresetMaterialType, PrettifyType, ReflectionAlignment, type ReflectionOptions, type RelationshipType, Relationships, type RunOptions, RunProperties, type RunPropertiesOptions, type Scene3DOptions, type ShadowOptions, Shape, type Shape3DOptions, type ShapeOptions, ShapeProperties, type ShapePropertiesOptions, ShapeTree, Slide, type SlideChild, type SlideCommentOptions, type SlideHeaderFooterOptions, SlideLayout, type SlideLayoutType, type SlideMasterOptions, SlideNumberField, type SlideOptions, type SlideSize, SlideSizePreset, SmartArtFrame, type SmartArtFrameOptions, type SoftEdgeOptions, StrikeStyle, Table, TableCell, type TableCellOptions, TableCellProperties, TableFrame, type TableFrameOptions, type TableOptions, TableProperties, TableRow, type TableRowOptions, Text, TextAlignment, TextBody, type TextBodyOptions, TextCapitalization, TextRun, type ThemeOptions, TileFlipMode, Transform2D, Transition, type TransitionDirection, type TransitionOptions, type TransitionType, type TreeNode, UnderlineStyle, VerticalAlignment, VideoFrame, type VideoFrameOptions, type VideoType, type ViewWrapper, buildFill, coerceChild, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertPixelsToEmu, convertPointsToEmu, createBevel, createBottomBevel, createColorElement, createColorTransforms, createEffectList, createGradientFill, createGradientStop, createOutline, createOutlineCompat, createPptxEffectList, createScene3D, createShape3D, createTransformation, extractBlipFillMedia, hashedId, parseArchive, parsePptx, parsePresentation, percentToTHousandths, uniqueId, uniqueNumericIdCreator, uniqueUuid };
|
|
1219
1208
|
//# sourceMappingURL=index.d.mts.map
|