@office-kit/pptx 0.18.5 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/README.md +43 -11
- package/dist/{api-C-0kjwO_.js → api-CifcS36d.js} +46 -30
- package/dist/api-CifcS36d.js.map +1 -0
- package/dist/{index-C7AWT-mg.d.ts → index-CfANfMvY.d.ts} +303 -230
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +2 -2
- package/package.json +1 -1
- package/dist/api-C-0kjwO_.js.map +0 -1
|
@@ -190,8 +190,17 @@ interface XmlDocument {
|
|
|
190
190
|
epilog: ReadonlyArray<XmlComment | XmlPI>;
|
|
191
191
|
}
|
|
192
192
|
//#endregion
|
|
193
|
+
//#region src/internal/enum-values.d.ts
|
|
194
|
+
declare const PLACEHOLDER_TYPES: readonly ["title", "body", "ctrTitle", "subTitle", "dt", "sldNum", "ftr", "hdr", "obj", "chart", "tbl", "clipArt", "dgm", "media", "sldImg", "pic"];
|
|
195
|
+
//#endregion
|
|
193
196
|
//#region src/internal/presentationml/slide-part.d.ts
|
|
194
197
|
type ShapeKind = 'shape' | 'picture' | 'group' | 'graphicFrame' | 'connector';
|
|
198
|
+
/**
|
|
199
|
+
* Placeholder token from `<p:ph type="...">` (ECMA-376 `ST_PlaceholderType`).
|
|
200
|
+
* Placeholder lookups take this closed set, while `SlideShape.placeholderType`
|
|
201
|
+
* stays `string | null`: a loaded deck can carry a value outside it.
|
|
202
|
+
*/
|
|
203
|
+
type PlaceholderType = (typeof PLACEHOLDER_TYPES)[number];
|
|
195
204
|
interface SlideShape {
|
|
196
205
|
readonly kind: ShapeKind;
|
|
197
206
|
/** OOXML internal numeric id, unique within the slide's shape tree. */
|
|
@@ -251,211 +260,35 @@ interface SlideLayoutPart {
|
|
|
251
260
|
*/
|
|
252
261
|
type PresetShape = 'rect' | 'roundRect' | 'ellipse' | 'triangle' | 'rtTriangle' | 'diamond' | 'parallelogram' | 'trapezoid' | 'pentagon' | 'hexagon' | 'heptagon' | 'octagon' | 'decagon' | 'star4' | 'star5' | 'star6' | 'star7' | 'star8' | 'star10' | 'star12' | 'star16' | 'star24' | 'star32' | 'rightArrow' | 'leftArrow' | 'upArrow' | 'downArrow' | 'leftRightArrow' | 'upDownArrow' | 'bentArrow' | 'curvedRightArrow' | 'curvedLeftArrow' | 'curvedUpArrow' | 'curvedDownArrow' | 'cloud' | 'heart' | 'lightningBolt' | 'sun' | 'moon' | 'bracketPair' | 'bracePair' | 'leftBracket' | 'rightBracket' | 'leftBrace' | 'rightBrace' | 'cube' | 'can' | 'donut' | 'noSmoking' | 'plus' | 'mathPlus' | 'mathMinus' | 'mathMultiply' | 'mathDivide' | 'mathEqual' | 'mathNotEqual';
|
|
253
262
|
//#endregion
|
|
254
|
-
//#region src/internal/
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
* versions emit; pass any other ECMA-376-permitted local name as a raw
|
|
259
|
-
* string for forward compatibility.
|
|
260
|
-
*/
|
|
261
|
-
type TransitionEffect = 'none' | 'fade' | 'push' | 'cover' | 'wipe' | 'split' | 'cut' | 'dissolve' | 'checker' | 'blinds' | 'randomBar' | 'zoom' | 'circle' | 'diamond' | 'plus' | 'wedge' | 'newsflash';
|
|
262
|
-
interface TransitionOptions {
|
|
263
|
-
effect: TransitionEffect | string;
|
|
264
|
-
/** Effect speed. Defaults to omitted (PowerPoint treats absence as `med`). */
|
|
265
|
-
speed?: 'slow' | 'med' | 'fast';
|
|
266
|
-
/**
|
|
267
|
-
* Direction, valid only for effects that carry a `dir` attribute and only
|
|
268
|
-
* within that effect's domain (validated on write):
|
|
269
|
-
* - `blinds`/`checker`/`comb`/`randomBar`: `horz` | `vert`
|
|
270
|
-
* - `push`/`wipe`: `l` | `r` | `u` | `d`
|
|
271
|
-
* - `cover`/`pull`: the above plus `lu` | `ru` | `ld` | `rd`
|
|
272
|
-
* - `strips`: `lu` | `ru` | `ld` | `rd`
|
|
273
|
-
* - `zoom`/`split`: `in` | `out`
|
|
274
|
-
* A mismatched effect/direction pair throws; on any other effect a stray
|
|
275
|
-
* `direction` is ignored.
|
|
276
|
-
*/
|
|
277
|
-
direction?: string;
|
|
278
|
-
/** For `split`: orientation token (`horz` / `vert`). */
|
|
279
|
-
orientation?: 'horz' | 'vert';
|
|
280
|
-
/** For `fade`: pass `true` to fade through black. */
|
|
281
|
-
thruBlack?: boolean;
|
|
282
|
-
/** Whether clicking advances; default `true` (PowerPoint's default). */
|
|
283
|
-
advanceOnClick?: boolean;
|
|
284
|
-
/**
|
|
285
|
-
* Milliseconds to auto-advance after this slide. Omit for click-only
|
|
286
|
-
* advance.
|
|
287
|
-
*/
|
|
288
|
-
advanceAfterMs?: number;
|
|
289
|
-
}
|
|
290
|
-
//#endregion
|
|
291
|
-
//#region src/internal/presentationml/animation-builder.d.ts
|
|
292
|
-
/** What kind of effect to apply. v1 covers the four most-used presets. */
|
|
293
|
-
type AnimationEffect = 'fadeIn' | 'fadeOut' | 'appear' | 'disappear';
|
|
294
|
-
interface AnimationOptions {
|
|
295
|
-
/** Which preset effect to apply. */
|
|
296
|
-
readonly effect: AnimationEffect;
|
|
297
|
-
/** Animation length in milliseconds. Defaults to 500ms. */
|
|
298
|
-
readonly durationMs?: number;
|
|
299
|
-
}
|
|
300
|
-
//#endregion
|
|
301
|
-
//#region src/internal/presentationml/comments-part.d.ts
|
|
302
|
-
interface CommentAuthor {
|
|
303
|
-
/** Unique within the author list (also referenced by `<p:cm authorId="…">`). */
|
|
304
|
-
readonly id: number;
|
|
305
|
-
readonly name: string;
|
|
306
|
-
readonly initials: string;
|
|
307
|
-
/** Highest `idx` value this author has used; bumped on every new comment. */
|
|
308
|
-
readonly lastIdx: number;
|
|
309
|
-
/** Optional color index into the package's theme; preserved verbatim. */
|
|
310
|
-
readonly clrIdx: number | null;
|
|
311
|
-
}
|
|
312
|
-
interface CommentPosition {
|
|
313
|
-
readonly x: number;
|
|
314
|
-
readonly y: number;
|
|
315
|
-
}
|
|
316
|
-
interface SlideComment {
|
|
317
|
-
/** Author id (matches `CommentAuthor.id`). */
|
|
318
|
-
readonly authorId: number;
|
|
319
|
-
/** Per-author monotonic index. */
|
|
320
|
-
readonly idx: number;
|
|
321
|
-
/** ISO-8601 timestamp string as it appeared on disk; may be `null`. */
|
|
322
|
-
readonly dt: string | null;
|
|
323
|
-
readonly text: string;
|
|
324
|
-
readonly position: CommentPosition | null;
|
|
325
|
-
}
|
|
326
|
-
//#endregion
|
|
327
|
-
//#region src/api/_internal-symbols.d.ts
|
|
328
|
-
declare const INTERNAL_PACKAGE: unique symbol;
|
|
329
|
-
declare const SLIDE_PART_NAME: unique symbol;
|
|
330
|
-
declare const SLIDE_DOCUMENT: unique symbol;
|
|
331
|
-
declare const SLIDE_PART: unique symbol;
|
|
332
|
-
declare const SLIDE_SHAPES: unique symbol;
|
|
333
|
-
declare const SHAPE_SLIDE: unique symbol;
|
|
334
|
-
declare const SHAPE_ELEMENT: unique symbol;
|
|
335
|
-
declare const SHAPE_SNAPSHOT: unique symbol;
|
|
336
|
-
declare const LAYOUT_PART_NAME: unique symbol;
|
|
337
|
-
declare const LAYOUT_PART: unique symbol;
|
|
338
|
-
declare const COMMENT_SLIDE: unique symbol;
|
|
339
|
-
declare const COMMENT_SNAPSHOT: unique symbol;
|
|
340
|
-
declare const CELL_TABLE: unique symbol;
|
|
341
|
-
declare const CELL_ELEMENT: unique symbol;
|
|
342
|
-
declare const CELL_ROW: unique symbol;
|
|
343
|
-
declare const CELL_COL: unique symbol;
|
|
344
|
-
/**
|
|
345
|
-
* Opaque handle to a loaded / created presentation. Constructed via
|
|
346
|
-
* `loadPresentation` / `createPresentation`; passed positionally to
|
|
347
|
-
* every fn-API helper.
|
|
348
|
-
*/
|
|
349
|
-
interface PresentationData {
|
|
350
|
-
readonly [INTERNAL_PACKAGE]: OpcPackage;
|
|
351
|
-
/** @internal — populated lazily by `getSlides`. */
|
|
352
|
-
_slidesCache: unknown[] | null;
|
|
353
|
-
}
|
|
354
|
-
/** Data shape backing every `Slide` value. */
|
|
355
|
-
interface SlideData {
|
|
356
|
-
readonly [INTERNAL_PACKAGE]: OpcPackage;
|
|
357
|
-
readonly [SLIDE_PART_NAME]: PartName;
|
|
358
|
-
[SLIDE_DOCUMENT]: XmlDocument;
|
|
359
|
-
[SLIDE_PART]: SlidePart;
|
|
360
|
-
[SLIDE_SHAPES]: SlideShapeData[];
|
|
361
|
-
}
|
|
362
|
-
/** Data shape backing every `SlideShape` value. */
|
|
363
|
-
interface SlideShapeData {
|
|
364
|
-
readonly [SHAPE_SLIDE]: SlideData;
|
|
365
|
-
[SHAPE_ELEMENT]: XmlElement;
|
|
366
|
-
[SHAPE_SNAPSHOT]: SlidePart['shapes'][number];
|
|
367
|
-
}
|
|
368
|
-
/** Data shape backing every `SlideLayout` value. */
|
|
369
|
-
interface SlideLayoutData {
|
|
370
|
-
readonly [LAYOUT_PART_NAME]: PartName;
|
|
371
|
-
readonly [LAYOUT_PART]: SlideLayoutPart;
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* Opaque handle for one comment on a slide. The `author` is resolved
|
|
375
|
-
* on read against the package-level `commentAuthors.xml`.
|
|
376
|
-
*/
|
|
377
|
-
interface SlideCommentData {
|
|
378
|
-
readonly [COMMENT_SLIDE]: SlideData;
|
|
379
|
-
readonly [COMMENT_SNAPSHOT]: SlideComment;
|
|
380
|
-
readonly author: CommentAuthor;
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* Opaque handle for one cell of a table graphic-frame shape. Carries
|
|
384
|
-
* its zero-based row/column position plus the parent table shape so
|
|
385
|
-
* mutations can commit back through the standard slide path.
|
|
386
|
-
*/
|
|
387
|
-
interface TableCellData {
|
|
388
|
-
readonly [CELL_TABLE]: SlideShapeData;
|
|
389
|
-
readonly [CELL_ELEMENT]: XmlElement;
|
|
390
|
-
readonly [CELL_ROW]: number;
|
|
391
|
-
readonly [CELL_COL]: number;
|
|
392
|
-
}
|
|
393
|
-
//#endregion
|
|
394
|
-
//#region src/api/fn/package-io.d.ts
|
|
395
|
-
/**
|
|
396
|
-
* Anything that can be turned into a `Uint8Array` of PPTX bytes:
|
|
397
|
-
*
|
|
398
|
-
* - `Uint8Array` — used as-is.
|
|
399
|
-
* - `ArrayBuffer` — wrapped without copying.
|
|
400
|
-
* - `Blob` or `File` — read via `arrayBuffer()`.
|
|
401
|
-
*/
|
|
402
|
-
type PresentationInput = Uint8Array | ArrayBuffer | Blob;
|
|
263
|
+
//#region src/internal/drawingml/color.d.ts
|
|
264
|
+
declare const SCHEME_COLOR_TOKENS: readonly ["bg1", "tx1", "bg2", "tx2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink", "phClr", "lt1", "dk1", "lt2", "dk2"];
|
|
265
|
+
/** A theme color slot (`<a:schemeClr val="..."/>`). */
|
|
266
|
+
type SchemeColorToken = (typeof SCHEME_COLOR_TOKENS)[number];
|
|
403
267
|
/**
|
|
404
|
-
*
|
|
405
|
-
*/
|
|
406
|
-
declare const loadPresentation: (input: PresentationInput) => Promise<PresentationData>;
|
|
407
|
-
/** Slide-canvas aspect ratio for {@link createPresentation}. */
|
|
408
|
-
type PresentationSize = '16:9' | '4:3';
|
|
409
|
-
/**
|
|
410
|
-
* Creates a fresh, immediately-authorable `PresentationData`.
|
|
411
|
-
*
|
|
412
|
-
* The returned deck carries a slide master, the Office theme, and three
|
|
413
|
-
* slide layouts — `'Blank'`, `'Title Slide'`, and `'Title and Content'` —
|
|
414
|
-
* but no slides yet. Add one with {@link addSlide} (or the
|
|
415
|
-
* `addBlankSlide` / `addTitleSlide` / `addContentSlide` helpers), then
|
|
416
|
-
* `savePresentation` to emit a `.pptx` that opens cleanly in PowerPoint,
|
|
417
|
-
* Keynote, Google Slides, and LibreOffice.
|
|
268
|
+
* An sRGB color, `#RRGGBB` or the 3-digit `#RGB` shorthand.
|
|
418
269
|
*
|
|
419
|
-
*
|
|
420
|
-
*
|
|
421
|
-
*
|
|
422
|
-
|
|
423
|
-
declare const createPresentation: (options?: {
|
|
424
|
-
size?: PresentationSize;
|
|
425
|
-
}) => PresentationData;
|
|
426
|
-
/**
|
|
427
|
-
* Serializes a presentation back to PPTX bytes.
|
|
270
|
+
* TypeScript cannot spell "six hex digits", so a malformed body such as
|
|
271
|
+
* `'#zzzzzz'` still type-checks and is rejected at run time. Requiring the
|
|
272
|
+
* `#` is what stops the union collapsing to `string` and taking every other
|
|
273
|
+
* color mistake down with it.
|
|
428
274
|
*/
|
|
429
|
-
|
|
430
|
-
//#endregion
|
|
431
|
-
//#region src/api/fn/sections.d.ts
|
|
432
|
-
/** One section in the deck. `slides` is a snapshot at read time. */
|
|
433
|
-
interface SlideSection {
|
|
434
|
-
readonly name: string;
|
|
435
|
-
readonly slides: ReadonlyArray<SlideData>;
|
|
436
|
-
}
|
|
275
|
+
type HexColor = `#${string}`;
|
|
437
276
|
/**
|
|
438
|
-
*
|
|
439
|
-
*
|
|
440
|
-
*
|
|
441
|
-
* are dropped silently; empty arrays are preserved.
|
|
442
|
-
*
|
|
443
|
-
* Returns an empty array when no sectionLst is present.
|
|
277
|
+
* Any color an authoring call accepts. Contexts that cannot resolve a theme
|
|
278
|
+
* slot — chart series fills, which must carry a concrete sRGB value — take
|
|
279
|
+
* `HexColor` instead.
|
|
444
280
|
*/
|
|
445
|
-
|
|
281
|
+
type Color = HexColor | SchemeColorToken | `scheme:${SchemeColorToken}`;
|
|
446
282
|
/**
|
|
447
|
-
*
|
|
448
|
-
*
|
|
449
|
-
* section; we synthesize a deterministic-ish one based on index +
|
|
450
|
-
* timestamp for v1).
|
|
283
|
+
* Narrows a color read back from a deck to one that can be written again,
|
|
284
|
+
* or `null` when it is not a color this library can emit.
|
|
451
285
|
*
|
|
452
|
-
*
|
|
453
|
-
*
|
|
286
|
+
* The readers surface `<a:schemeClr val>` verbatim, so a round-trip
|
|
287
|
+
* (`setX(getX(...))`) has to pass through a check somewhere; doing it here
|
|
288
|
+
* keeps that single `Color` assertion backed by the same parser that
|
|
289
|
+
* `buildColorElement` uses.
|
|
454
290
|
*/
|
|
455
|
-
declare const
|
|
456
|
-
name: string;
|
|
457
|
-
slides: ReadonlyArray<SlideData>;
|
|
458
|
-
}>) => void;
|
|
291
|
+
declare const asColor: (value: string) => Color | null;
|
|
459
292
|
//#endregion
|
|
460
293
|
//#region src/internal/drawingml/text-format.d.ts
|
|
461
294
|
interface TextFormat {
|
|
@@ -480,7 +313,7 @@ interface TextFormat {
|
|
|
480
313
|
* Color. Accepts `#RRGGBB`, `RRGGBB`, an ECMA-376 scheme color token
|
|
481
314
|
* (`tx1`, `accent1`, ...), or `null` to clear.
|
|
482
315
|
*/
|
|
483
|
-
color?:
|
|
316
|
+
color?: Color | null;
|
|
484
317
|
bold?: boolean;
|
|
485
318
|
italic?: boolean;
|
|
486
319
|
/**
|
|
@@ -521,8 +354,17 @@ interface TextFormat {
|
|
|
521
354
|
* Highlight color (cell-fill style background per run). Same color
|
|
522
355
|
* format as `color`. Mirrors `<a:rPr><a:highlight>…</a:highlight></a:rPr>`.
|
|
523
356
|
*/
|
|
524
|
-
highlight?:
|
|
357
|
+
highlight?: Color | null;
|
|
525
358
|
}
|
|
359
|
+
/**
|
|
360
|
+
* A run format read back from a deck. `color` and `highlight` widen to
|
|
361
|
+
* `string`: when no theme is supplied, or a token is not in the scheme, the
|
|
362
|
+
* readers surface the raw `<a:schemeClr val>` token as-is.
|
|
363
|
+
*/
|
|
364
|
+
type ReadTextFormat = Omit<TextFormat, 'color' | 'highlight'> & {
|
|
365
|
+
color?: string | null;
|
|
366
|
+
highlight?: string | null;
|
|
367
|
+
};
|
|
526
368
|
//#endregion
|
|
527
369
|
//#region src/internal/drawingml/text-body-mutation.d.ts
|
|
528
370
|
/**
|
|
@@ -581,8 +423,8 @@ interface ParagraphSpec {
|
|
|
581
423
|
interface GradientStop {
|
|
582
424
|
/** Position on the gradient axis, 0-1. */
|
|
583
425
|
readonly offset: number;
|
|
584
|
-
/** `#RRGGBB`,
|
|
585
|
-
readonly color:
|
|
426
|
+
/** `#RRGGBB`, the `#RGB` shorthand, or a theme color token. */
|
|
427
|
+
readonly color: Color;
|
|
586
428
|
}
|
|
587
429
|
interface GradientFillOptions {
|
|
588
430
|
/** Two or more color stops along the axis. */
|
|
@@ -613,6 +455,17 @@ interface GradientFillOptions {
|
|
|
613
455
|
readonly bottom: number;
|
|
614
456
|
};
|
|
615
457
|
}
|
|
458
|
+
/**
|
|
459
|
+
* A gradient read back from a deck. Stop colors widen to `string`: the
|
|
460
|
+
* readers surface a scheme token verbatim, including one outside the theme,
|
|
461
|
+
* rather than dropping it.
|
|
462
|
+
*/
|
|
463
|
+
type ReadGradientStop = Omit<GradientStop, 'color'> & {
|
|
464
|
+
readonly color: string;
|
|
465
|
+
};
|
|
466
|
+
type ReadGradientFill = Omit<GradientFillOptions, 'stops'> & {
|
|
467
|
+
readonly stops: ReadonlyArray<ReadGradientStop>;
|
|
468
|
+
};
|
|
616
469
|
/** Every `ST_PresetPatternVal` token (ECMA-376 dml-main.xsd). */
|
|
617
470
|
declare const PATTERN_PRESETS: readonly ["pct5", "pct10", "pct20", "pct25", "pct30", "pct40", "pct50", "pct60", "pct70", "pct75", "pct80", "pct90", "horz", "vert", "ltHorz", "ltVert", "dkHorz", "dkVert", "narHorz", "narVert", "dashHorz", "dashVert", "cross", "dnDiag", "upDiag", "ltDnDiag", "ltUpDiag", "dkDnDiag", "dkUpDiag", "wdDnDiag", "wdUpDiag", "dashDnDiag", "dashUpDiag", "diagCross", "smCheck", "lgCheck", "smGrid", "lgGrid", "dotGrid", "smConfetti", "lgConfetti", "horzBrick", "diagBrick", "solidDmnd", "openDmnd", "dotDmnd", "plaid", "sphere", "weave", "divot", "shingle", "wave", "trellis", "zigZag"];
|
|
618
471
|
/** One of ECMA-376's `ST_PresetPatternVal` tokens (`pct50`, `dkUpDiag`, ...). */
|
|
@@ -629,7 +482,7 @@ interface PatternFillOptions {
|
|
|
629
482
|
//#region src/internal/drawingml/effects.d.ts
|
|
630
483
|
interface ShadowOptions {
|
|
631
484
|
/** `#RRGGBB`, bare `RRGGBB`, or scheme token. Defaults to black. */
|
|
632
|
-
readonly color?:
|
|
485
|
+
readonly color?: Color;
|
|
633
486
|
/** Edge blur in EMU. Defaults to 50800 (4pt). */
|
|
634
487
|
readonly blurEmu?: number;
|
|
635
488
|
/** Offset distance in EMU. Defaults to 38100 (3pt). */
|
|
@@ -644,7 +497,7 @@ interface ShadowOptions {
|
|
|
644
497
|
}
|
|
645
498
|
interface GlowOptions {
|
|
646
499
|
/** `#RRGGBB`, bare `RRGGBB`, or scheme token. */
|
|
647
|
-
readonly color:
|
|
500
|
+
readonly color: Color;
|
|
648
501
|
/** Glow radius in EMU. Defaults to 63500 (5pt). */
|
|
649
502
|
readonly radiusEmu?: number;
|
|
650
503
|
}
|
|
@@ -732,6 +585,226 @@ interface Size {
|
|
|
732
585
|
readonly h: number;
|
|
733
586
|
}
|
|
734
587
|
//#endregion
|
|
588
|
+
//#region src/internal/presentationml/transition-builder.d.ts
|
|
589
|
+
/**
|
|
590
|
+
* Every transition effect element name in `CT_SlideTransition`'s choice
|
|
591
|
+
* (ECMA-376 pml.xsd). The token is emitted verbatim as `<p:{token}/>`, so this
|
|
592
|
+
* list is both the type's domain and the write-time validation domain —
|
|
593
|
+
* keeping them one declaration stops them drifting apart.
|
|
594
|
+
*/
|
|
595
|
+
declare const TRANSITION_EFFECTS: readonly ["blinds", "checker", "circle", "dissolve", "comb", "cover", "cut", "diamond", "fade", "newsflash", "plus", "pull", "push", "random", "randomBar", "split", "strips", "wedge", "wheel", "wipe", "zoom"];
|
|
596
|
+
/**
|
|
597
|
+
* Transition effect token. Maps to a `<p:{token}/>` child of
|
|
598
|
+
* `<p:transition>`, except `'none'`: that is the library-level sentinel for
|
|
599
|
+
* "no effect element", which the schema's choice has no member for.
|
|
600
|
+
*/
|
|
601
|
+
type TransitionEffect = 'none' | (typeof TRANSITION_EFFECTS)[number];
|
|
602
|
+
interface TransitionOptions {
|
|
603
|
+
effect: TransitionEffect;
|
|
604
|
+
/** Effect speed. Defaults to omitted (PowerPoint treats absence as `med`). */
|
|
605
|
+
speed?: 'slow' | 'med' | 'fast';
|
|
606
|
+
/**
|
|
607
|
+
* Direction, valid only for effects that carry a `dir` attribute and only
|
|
608
|
+
* within that effect's domain (validated on write):
|
|
609
|
+
* - `blinds`/`checker`/`comb`/`randomBar`: `horz` | `vert`
|
|
610
|
+
* - `push`/`wipe`: `l` | `r` | `u` | `d`
|
|
611
|
+
* - `cover`/`pull`: the above plus `lu` | `ru` | `ld` | `rd`
|
|
612
|
+
* - `strips`: `lu` | `ru` | `ld` | `rd`
|
|
613
|
+
* - `zoom`/`split`: `in` | `out`
|
|
614
|
+
* A mismatched effect/direction pair throws; on any other effect a stray
|
|
615
|
+
* `direction` is ignored.
|
|
616
|
+
*/
|
|
617
|
+
direction?: string;
|
|
618
|
+
/** For `split`: orientation token (`horz` / `vert`). */
|
|
619
|
+
orientation?: 'horz' | 'vert';
|
|
620
|
+
/** For `fade`: pass `true` to fade through black. */
|
|
621
|
+
thruBlack?: boolean;
|
|
622
|
+
/** Whether clicking advances; default `true` (PowerPoint's default). */
|
|
623
|
+
advanceOnClick?: boolean;
|
|
624
|
+
/**
|
|
625
|
+
* Milliseconds to auto-advance after this slide. Omit for click-only
|
|
626
|
+
* advance.
|
|
627
|
+
*/
|
|
628
|
+
advanceAfterMs?: number;
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* A transition read back from a deck. `effect` widens to `string` because a
|
|
632
|
+
* file authored elsewhere can carry an effect element this library does not
|
|
633
|
+
* model; writing one still requires a `TransitionEffect`.
|
|
634
|
+
*/
|
|
635
|
+
type SlideTransition = Omit<TransitionOptions, 'effect'> & {
|
|
636
|
+
effect: string;
|
|
637
|
+
};
|
|
638
|
+
//#endregion
|
|
639
|
+
//#region src/internal/presentationml/animation-builder.d.ts
|
|
640
|
+
/** What kind of effect to apply. v1 covers the four most-used presets. */
|
|
641
|
+
type AnimationEffect = 'fadeIn' | 'fadeOut' | 'appear' | 'disappear';
|
|
642
|
+
interface AnimationOptions {
|
|
643
|
+
/** Which preset effect to apply. */
|
|
644
|
+
readonly effect: AnimationEffect;
|
|
645
|
+
/** Animation length in milliseconds. Defaults to 500ms. */
|
|
646
|
+
readonly durationMs?: number;
|
|
647
|
+
}
|
|
648
|
+
//#endregion
|
|
649
|
+
//#region src/internal/presentationml/comments-part.d.ts
|
|
650
|
+
interface CommentAuthor {
|
|
651
|
+
/** Unique within the author list (also referenced by `<p:cm authorId="…">`). */
|
|
652
|
+
readonly id: number;
|
|
653
|
+
readonly name: string;
|
|
654
|
+
readonly initials: string;
|
|
655
|
+
/** Highest `idx` value this author has used; bumped on every new comment. */
|
|
656
|
+
readonly lastIdx: number;
|
|
657
|
+
/** Optional color index into the package's theme; preserved verbatim. */
|
|
658
|
+
readonly clrIdx: number | null;
|
|
659
|
+
}
|
|
660
|
+
interface CommentPosition {
|
|
661
|
+
readonly x: number;
|
|
662
|
+
readonly y: number;
|
|
663
|
+
}
|
|
664
|
+
interface SlideComment {
|
|
665
|
+
/** Author id (matches `CommentAuthor.id`). */
|
|
666
|
+
readonly authorId: number;
|
|
667
|
+
/** Per-author monotonic index. */
|
|
668
|
+
readonly idx: number;
|
|
669
|
+
/** ISO-8601 timestamp string as it appeared on disk; may be `null`. */
|
|
670
|
+
readonly dt: string | null;
|
|
671
|
+
readonly text: string;
|
|
672
|
+
readonly position: CommentPosition | null;
|
|
673
|
+
}
|
|
674
|
+
//#endregion
|
|
675
|
+
//#region src/api/_internal-symbols.d.ts
|
|
676
|
+
declare const INTERNAL_PACKAGE: unique symbol;
|
|
677
|
+
declare const SLIDE_PART_NAME: unique symbol;
|
|
678
|
+
declare const SLIDE_DOCUMENT: unique symbol;
|
|
679
|
+
declare const SLIDE_PART: unique symbol;
|
|
680
|
+
declare const SLIDE_SHAPES: unique symbol;
|
|
681
|
+
declare const SHAPE_SLIDE: unique symbol;
|
|
682
|
+
declare const SHAPE_ELEMENT: unique symbol;
|
|
683
|
+
declare const SHAPE_SNAPSHOT: unique symbol;
|
|
684
|
+
declare const LAYOUT_PART_NAME: unique symbol;
|
|
685
|
+
declare const LAYOUT_PART: unique symbol;
|
|
686
|
+
declare const COMMENT_SLIDE: unique symbol;
|
|
687
|
+
declare const COMMENT_SNAPSHOT: unique symbol;
|
|
688
|
+
declare const CELL_TABLE: unique symbol;
|
|
689
|
+
declare const CELL_ELEMENT: unique symbol;
|
|
690
|
+
declare const CELL_ROW: unique symbol;
|
|
691
|
+
declare const CELL_COL: unique symbol;
|
|
692
|
+
/**
|
|
693
|
+
* Opaque handle to a loaded / created presentation. Constructed via
|
|
694
|
+
* `loadPresentation` / `createPresentation`; passed positionally to
|
|
695
|
+
* every fn-API helper.
|
|
696
|
+
*/
|
|
697
|
+
interface PresentationData {
|
|
698
|
+
readonly [INTERNAL_PACKAGE]: OpcPackage;
|
|
699
|
+
/** @internal — populated lazily by `getSlides`. */
|
|
700
|
+
_slidesCache: unknown[] | null;
|
|
701
|
+
}
|
|
702
|
+
/** Data shape backing every `Slide` value. */
|
|
703
|
+
interface SlideData {
|
|
704
|
+
readonly [INTERNAL_PACKAGE]: OpcPackage;
|
|
705
|
+
readonly [SLIDE_PART_NAME]: PartName;
|
|
706
|
+
[SLIDE_DOCUMENT]: XmlDocument;
|
|
707
|
+
[SLIDE_PART]: SlidePart;
|
|
708
|
+
[SLIDE_SHAPES]: SlideShapeData[];
|
|
709
|
+
}
|
|
710
|
+
/** Data shape backing every `SlideShape` value. */
|
|
711
|
+
interface SlideShapeData {
|
|
712
|
+
readonly [SHAPE_SLIDE]: SlideData;
|
|
713
|
+
[SHAPE_ELEMENT]: XmlElement;
|
|
714
|
+
[SHAPE_SNAPSHOT]: SlidePart['shapes'][number];
|
|
715
|
+
}
|
|
716
|
+
/** Data shape backing every `SlideLayout` value. */
|
|
717
|
+
interface SlideLayoutData {
|
|
718
|
+
readonly [LAYOUT_PART_NAME]: PartName;
|
|
719
|
+
readonly [LAYOUT_PART]: SlideLayoutPart;
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* Opaque handle for one comment on a slide. The `author` is resolved
|
|
723
|
+
* on read against the package-level `commentAuthors.xml`.
|
|
724
|
+
*/
|
|
725
|
+
interface SlideCommentData {
|
|
726
|
+
readonly [COMMENT_SLIDE]: SlideData;
|
|
727
|
+
readonly [COMMENT_SNAPSHOT]: SlideComment;
|
|
728
|
+
readonly author: CommentAuthor;
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Opaque handle for one cell of a table graphic-frame shape. Carries
|
|
732
|
+
* its zero-based row/column position plus the parent table shape so
|
|
733
|
+
* mutations can commit back through the standard slide path.
|
|
734
|
+
*/
|
|
735
|
+
interface TableCellData {
|
|
736
|
+
readonly [CELL_TABLE]: SlideShapeData;
|
|
737
|
+
readonly [CELL_ELEMENT]: XmlElement;
|
|
738
|
+
readonly [CELL_ROW]: number;
|
|
739
|
+
readonly [CELL_COL]: number;
|
|
740
|
+
}
|
|
741
|
+
//#endregion
|
|
742
|
+
//#region src/api/fn/package-io.d.ts
|
|
743
|
+
/**
|
|
744
|
+
* Anything that can be turned into a `Uint8Array` of PPTX bytes:
|
|
745
|
+
*
|
|
746
|
+
* - `Uint8Array` — used as-is.
|
|
747
|
+
* - `ArrayBuffer` — wrapped without copying.
|
|
748
|
+
* - `Blob` or `File` — read via `arrayBuffer()`.
|
|
749
|
+
*/
|
|
750
|
+
type PresentationInput = Uint8Array | ArrayBuffer | Blob;
|
|
751
|
+
/**
|
|
752
|
+
* Loads an existing `.pptx` and returns a `PresentationData` value.
|
|
753
|
+
*/
|
|
754
|
+
declare const loadPresentation: (input: PresentationInput) => Promise<PresentationData>;
|
|
755
|
+
/** Slide-canvas aspect ratio for {@link createPresentation}. */
|
|
756
|
+
type PresentationSize = '16:9' | '4:3';
|
|
757
|
+
/**
|
|
758
|
+
* Creates a fresh, immediately-authorable `PresentationData`.
|
|
759
|
+
*
|
|
760
|
+
* The returned deck carries a slide master, the Office theme, and three
|
|
761
|
+
* slide layouts — `'Blank'`, `'Title Slide'`, and `'Title and Content'` —
|
|
762
|
+
* but no slides yet. Add one with {@link addSlide} (or the
|
|
763
|
+
* `addBlankSlide` / `addTitleSlide` / `addContentSlide` helpers), then
|
|
764
|
+
* `savePresentation` to emit a `.pptx` that opens cleanly in PowerPoint,
|
|
765
|
+
* Keynote, Google Slides, and LibreOffice.
|
|
766
|
+
*
|
|
767
|
+
* @param options.size Slide aspect ratio. `'16:9'` (12192000×6858000 EMU,
|
|
768
|
+
* PowerPoint's modern default) or `'4:3'` (9144000×6858000). Defaults to
|
|
769
|
+
* `'16:9'`.
|
|
770
|
+
*/
|
|
771
|
+
declare const createPresentation: (options?: {
|
|
772
|
+
size?: PresentationSize;
|
|
773
|
+
}) => PresentationData;
|
|
774
|
+
/**
|
|
775
|
+
* Serializes a presentation back to PPTX bytes.
|
|
776
|
+
*/
|
|
777
|
+
declare const savePresentation: (pres: PresentationData) => Promise<Uint8Array>;
|
|
778
|
+
//#endregion
|
|
779
|
+
//#region src/api/fn/sections.d.ts
|
|
780
|
+
/** One section in the deck. `slides` is a snapshot at read time. */
|
|
781
|
+
interface SlideSection {
|
|
782
|
+
readonly name: string;
|
|
783
|
+
readonly slides: ReadonlyArray<SlideData>;
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* Returns every section defined in `<p14:sectionLst>`, with each
|
|
787
|
+
* section's slides resolved to `SlideData` handles via the
|
|
788
|
+
* presentation's `<p:sldIdLst>`. Sections referencing missing slides
|
|
789
|
+
* are dropped silently; empty arrays are preserved.
|
|
790
|
+
*
|
|
791
|
+
* Returns an empty array when no sectionLst is present.
|
|
792
|
+
*/
|
|
793
|
+
declare const getSlideSections: (pres: PresentationData) => ReadonlyArray<SlideSection>;
|
|
794
|
+
/**
|
|
795
|
+
* Replaces the deck's section list with `sections`. Each section is
|
|
796
|
+
* given a fresh GUID `id` attribute (PowerPoint generates one per
|
|
797
|
+
* section; we synthesize a deterministic-ish one based on index +
|
|
798
|
+
* timestamp for v1).
|
|
799
|
+
*
|
|
800
|
+
* Pass `[]` to clear all sections — the helper drops the
|
|
801
|
+
* `<p14:sectionLst>` extension entirely when no sections remain.
|
|
802
|
+
*/
|
|
803
|
+
declare const setSlideSections: (pres: PresentationData, sections: ReadonlyArray<{
|
|
804
|
+
name: string;
|
|
805
|
+
slides: ReadonlyArray<SlideData>;
|
|
806
|
+
}>) => void;
|
|
807
|
+
//#endregion
|
|
735
808
|
//#region src/api/fn/shape-read-base.d.ts
|
|
736
809
|
declare const getShapeKind: (shape: SlideShapeData) => ShapeKind;
|
|
737
810
|
declare const getShapeId: (shape: SlideShapeData) => number;
|
|
@@ -1057,7 +1130,7 @@ declare const getSlideLayout: (slide: SlideData) => SlideLayoutData | null;
|
|
|
1057
1130
|
* if no match). Shapes whose `<p:ph>` omits an explicit type default to
|
|
1058
1131
|
* `'body'` per ECMA-376 §19.7.10.
|
|
1059
1132
|
*/
|
|
1060
|
-
declare const findSlidePlaceholder: (slide: SlideData, type:
|
|
1133
|
+
declare const findSlidePlaceholder: (slide: SlideData, type: PlaceholderType) => SlideShapeData | null;
|
|
1061
1134
|
/**
|
|
1062
1135
|
* Returns every placeholder shape on the slide whose text body is
|
|
1063
1136
|
* empty. Useful for "spot the slots that still need filling" UIs
|
|
@@ -1100,7 +1173,7 @@ declare const findSlidePlaceholderByIdx: (slide: SlideData, idx: number) => Slid
|
|
|
1100
1173
|
* Like `findSlidePlaceholder`, omitted `<p:ph type>` is treated as
|
|
1101
1174
|
* `body` per ECMA-376 §19.7.10.
|
|
1102
1175
|
*/
|
|
1103
|
-
declare const findSlidePlaceholders: (slide: SlideData, type:
|
|
1176
|
+
declare const findSlidePlaceholders: (slide: SlideData, type: PlaceholderType) => ReadonlyArray<SlideShapeData>;
|
|
1104
1177
|
/**
|
|
1105
1178
|
* First shape on the slide whose `cNvPr@name` matches `name`. Accepts
|
|
1106
1179
|
* either a literal string (exact-equality) or a `RegExp` for pattern
|
|
@@ -1333,7 +1406,7 @@ declare const getShapeFill: (shape: SlideShapeData) => ShapeFill;
|
|
|
1333
1406
|
* other fill kind, including `inherit` — the function does not walk the
|
|
1334
1407
|
* layout / master cascade. Use `getShapeGradientFillEffective` for that.
|
|
1335
1408
|
*/
|
|
1336
|
-
declare const getShapeGradientFill: (shape: SlideShapeData) =>
|
|
1409
|
+
declare const getShapeGradientFill: (shape: SlideShapeData) => ReadGradientFill | null;
|
|
1337
1410
|
/**
|
|
1338
1411
|
* Same as `getShapeGradientFill` but walks the layout → master
|
|
1339
1412
|
* placeholder cascade when the shape itself carries no `<a:gradFill>`.
|
|
@@ -1346,7 +1419,7 @@ declare const getShapeGradientFill: (shape: SlideShapeData) => GradientFillOptio
|
|
|
1346
1419
|
* not modelled by the core yet, so those still report `inherit` and
|
|
1347
1420
|
* fall through here.
|
|
1348
1421
|
*/
|
|
1349
|
-
declare const getShapeGradientFillEffective: (pres: PresentationData, shape: SlideShapeData) =>
|
|
1422
|
+
declare const getShapeGradientFillEffective: (pres: PresentationData, shape: SlideShapeData) => ReadGradientFill | null;
|
|
1350
1423
|
//#endregion
|
|
1351
1424
|
//#region src/api/fn/shape-fill-stroke.d.ts
|
|
1352
1425
|
/** Sets the shape's position in EMU. Companion to `setShapeSize`. */
|
|
@@ -1380,7 +1453,7 @@ declare const setShapeFlip: (shape: SlideShapeData, options: {
|
|
|
1380
1453
|
vertical?: boolean;
|
|
1381
1454
|
}) => void;
|
|
1382
1455
|
/** Sets a solid fill on the shape (color in `#RRGGBB` or scheme token). */
|
|
1383
|
-
declare const setShapeFill: (shape: SlideShapeData, color:
|
|
1456
|
+
declare const setShapeFill: (shape: SlideShapeData, color: Color) => void;
|
|
1384
1457
|
/**
|
|
1385
1458
|
* Sets a linear gradient fill on the shape. Stops must lie in `[0, 1]`;
|
|
1386
1459
|
* `angleDeg` defaults to `90` (top → bottom).
|
|
@@ -1438,7 +1511,7 @@ declare const setShapeNoFill: (shape: SlideShapeData) => void;
|
|
|
1438
1511
|
declare const clearShapeFill: (shape: SlideShapeData) => void;
|
|
1439
1512
|
/** Sets a solid-color outline on the shape. */
|
|
1440
1513
|
declare const setShapeStroke: (shape: SlideShapeData, options: {
|
|
1441
|
-
color?:
|
|
1514
|
+
color?: Color;
|
|
1442
1515
|
widthEmu?: number;
|
|
1443
1516
|
}) => void;
|
|
1444
1517
|
/** Sets an explicit "no outline" on the shape. */
|
|
@@ -1813,7 +1886,7 @@ declare const setShapeTextMargins: (shape: SlideShapeData, margins: {
|
|
|
1813
1886
|
bottom?: number;
|
|
1814
1887
|
}) => void;
|
|
1815
1888
|
/** Sets the bullet style on every paragraph in the shape's text body. */
|
|
1816
|
-
declare const
|
|
1889
|
+
declare const setShapeBulletStyle: (shape: SlideShapeData, style: BulletStyle) => void;
|
|
1817
1890
|
/** Sets the horizontal alignment of every paragraph in the shape's text. */
|
|
1818
1891
|
declare const setShapeAlignment: (shape: SlideShapeData, align: ParagraphAlignment) => void;
|
|
1819
1892
|
/**
|
|
@@ -3517,7 +3590,7 @@ interface TableCellParagraph {
|
|
|
3517
3590
|
* Literal format of the paragraph-end mark (`<a:endParaRPr>`), or `null`
|
|
3518
3591
|
* when absent — the only format a paragraph with no `elements` carries.
|
|
3519
3592
|
*/
|
|
3520
|
-
readonly endFormat:
|
|
3593
|
+
readonly endFormat: ReadTextFormat | null;
|
|
3521
3594
|
}
|
|
3522
3595
|
/**
|
|
3523
3596
|
* Reads a cell's text as structured paragraphs — each carrying its
|
|
@@ -3535,7 +3608,7 @@ interface TableCellParagraph {
|
|
|
3535
3608
|
*/
|
|
3536
3609
|
declare const getTableCellParagraphs: (cell: TableCellData) => ReadonlyArray<TableCellParagraph>;
|
|
3537
3610
|
/** Sets a solid background color on a cell (`<a:tcPr><a:solidFill>`). */
|
|
3538
|
-
declare const setTableCellFill: (cell: TableCellData, color:
|
|
3611
|
+
declare const setTableCellFill: (cell: TableCellData, color: Color) => void;
|
|
3539
3612
|
/** Removes any background fill from a cell. */
|
|
3540
3613
|
declare const clearTableCellFill: (cell: TableCellData) => void;
|
|
3541
3614
|
/**
|
|
@@ -4007,7 +4080,7 @@ declare const setSlideTitle: (slide: SlideData, title: string) => void;
|
|
|
4007
4080
|
* Useful for template-fill workflows where the caller has all the
|
|
4008
4081
|
* data in one struct.
|
|
4009
4082
|
*/
|
|
4010
|
-
declare const setSlidePlaceholders: (slide: SlideData, byType: Readonly<Record<
|
|
4083
|
+
declare const setSlidePlaceholders: (slide: SlideData, byType: Readonly<Partial<Record<PlaceholderType, string>>>) => void;
|
|
4011
4084
|
/**
|
|
4012
4085
|
* Writes `text` into the first body placeholder on the slide.
|
|
4013
4086
|
* Newlines start a new paragraph (each becomes its own bullet on
|
|
@@ -4041,15 +4114,15 @@ declare const getShapeParagraphCount: (shape: SlideShapeData) => number;
|
|
|
4041
4114
|
type ShapeParagraphElement = {
|
|
4042
4115
|
readonly kind: 'r';
|
|
4043
4116
|
readonly text: string;
|
|
4044
|
-
readonly format:
|
|
4117
|
+
readonly format: ReadTextFormat | null;
|
|
4045
4118
|
} | {
|
|
4046
4119
|
readonly kind: 'fld';
|
|
4047
4120
|
readonly text: string;
|
|
4048
|
-
readonly format:
|
|
4121
|
+
readonly format: ReadTextFormat | null;
|
|
4049
4122
|
readonly type: string | null;
|
|
4050
4123
|
} | {
|
|
4051
4124
|
readonly kind: 'br';
|
|
4052
|
-
readonly format:
|
|
4125
|
+
readonly format: ReadTextFormat | null;
|
|
4053
4126
|
};
|
|
4054
4127
|
/**
|
|
4055
4128
|
* Returns the inline children of a paragraph in document order — runs,
|
|
@@ -4063,7 +4136,7 @@ declare const getShapeParagraphElements: (shape: SlideShapeData, paragraphIndex:
|
|
|
4063
4136
|
* `null` when the paragraph carries none. It is the only format a paragraph
|
|
4064
4137
|
* with no runs carries. The write side is `setShapeParagraphs`' `endFormat`.
|
|
4065
4138
|
*/
|
|
4066
|
-
declare const getParagraphEndFormat: (shape: SlideShapeData, paragraphIndex: number) =>
|
|
4139
|
+
declare const getParagraphEndFormat: (shape: SlideShapeData, paragraphIndex: number) => ReadTextFormat | null;
|
|
4067
4140
|
/**
|
|
4068
4141
|
* Number of text runs in the given paragraph. Throws on out-of-range
|
|
4069
4142
|
* paragraph index or non-text shapes.
|
|
@@ -4131,7 +4204,7 @@ declare const setParagraphAlignment: (shape: SlideShapeData, paragraphIndex: num
|
|
|
4131
4204
|
* Used in tandem with bullets to author nested lists:
|
|
4132
4205
|
*
|
|
4133
4206
|
* setShapeText(shape, 'Item 1\nNested\nItem 2');
|
|
4134
|
-
*
|
|
4207
|
+
* setShapeBulletStyle(shape, 'bullet');
|
|
4135
4208
|
* setParagraphLevel(shape, 1, 1); // indent the second line
|
|
4136
4209
|
*/
|
|
4137
4210
|
declare const setParagraphLevel: (shape: SlideShapeData, paragraphIndex: number, level: number) => void;
|
|
@@ -4273,7 +4346,7 @@ declare const getParagraphBulletStyle: (pres: PresentationData, shape: SlideShap
|
|
|
4273
4346
|
};
|
|
4274
4347
|
/**
|
|
4275
4348
|
* Sets the bullet style on a single paragraph. Same `BulletStyle` shape
|
|
4276
|
-
* as `
|
|
4349
|
+
* as `setShapeBulletStyle` — pass `'bullet'` / `'number'` / `'none'` or an
|
|
4277
4350
|
* object like `{ char: '◆' }` / `{ autoNum: 'romanLcPeriod' }`.
|
|
4278
4351
|
*/
|
|
4279
4352
|
declare const setParagraphBullet: (shape: SlideShapeData, paragraphIndex: number, style: BulletStyle) => void;
|
|
@@ -4417,10 +4490,10 @@ declare const resolveDrawingColorOpacity: (colorEl: XmlElement) => number | null
|
|
|
4417
4490
|
* Use `getShapeRunFormatEffective` if you want the resolved format
|
|
4418
4491
|
* after walking the placeholder / lstStyle / master inheritance chain.
|
|
4419
4492
|
*/
|
|
4420
|
-
declare const getShapeRunFormat: (shape: SlideShapeData, paragraphIndex: number, runIndex: number) =>
|
|
4493
|
+
declare const getShapeRunFormat: (shape: SlideShapeData, paragraphIndex: number, runIndex: number) => ReadTextFormat | null;
|
|
4421
4494
|
//#endregion
|
|
4422
4495
|
//#region src/api/fn/shape-paragraph.d.ts
|
|
4423
|
-
declare const getShapeRunFormatEffective: (pres: PresentationData, shape: SlideShapeData, paragraphIndex: number, runIndex: number) =>
|
|
4496
|
+
declare const getShapeRunFormatEffective: (pres: PresentationData, shape: SlideShapeData, paragraphIndex: number, runIndex: number) => ReadTextFormat;
|
|
4424
4497
|
/** Effective paragraph properties returned by `getParagraphPropertiesEffective`. */
|
|
4425
4498
|
interface ParagraphProperties {
|
|
4426
4499
|
/** Horizontal alignment per `ParagraphAlignment`. */
|
|
@@ -4596,7 +4669,7 @@ declare const addSlideLine: (slide: SlideData, opts: {
|
|
|
4596
4669
|
x: Emu;
|
|
4597
4670
|
y: Emu;
|
|
4598
4671
|
};
|
|
4599
|
-
color?:
|
|
4672
|
+
color?: Color;
|
|
4600
4673
|
widthEmu?: number;
|
|
4601
4674
|
name?: string;
|
|
4602
4675
|
}) => SlideShapeData;
|
|
@@ -4716,7 +4789,7 @@ declare const findSlideLayout: (pres: PresentationData, name: string | RegExp) =
|
|
|
4716
4789
|
* `'ftr'`, etc.). Useful for "find every layout that can host a
|
|
4717
4790
|
* body" lookups before `addSlide`.
|
|
4718
4791
|
*/
|
|
4719
|
-
declare const findLayoutsWithPlaceholderType: (pres: PresentationData, type:
|
|
4792
|
+
declare const findLayoutsWithPlaceholderType: (pres: PresentationData, type: PlaceholderType) => ReadonlyArray<SlideLayoutData>;
|
|
4720
4793
|
/**
|
|
4721
4794
|
* Finds the first slide layout with the given `<p:sldLayout type="...">`
|
|
4722
4795
|
* token. Unlike `findSlideLayout` (which matches the user-visible
|
|
@@ -5510,7 +5583,7 @@ declare const getSlideMasterBackgroundPatternFill: (pres: PresentationData, layo
|
|
|
5510
5583
|
* `<p:bgPr><a:gradFill>`. Same shape as `getSlideBackgroundGradientFill`
|
|
5511
5584
|
* for slides.
|
|
5512
5585
|
*/
|
|
5513
|
-
declare const getSlideLayoutBackgroundGradientFill: (layout: SlideLayoutData) =>
|
|
5586
|
+
declare const getSlideLayoutBackgroundGradientFill: (layout: SlideLayoutData) => ReadGradientFill | null;
|
|
5514
5587
|
/**
|
|
5515
5588
|
* Reads the slide master's gradient background when present. Mirrors
|
|
5516
5589
|
* `getSlideLayoutBackgroundGradientFill`; returns `null` for any other
|
|
@@ -5518,7 +5591,7 @@ declare const getSlideLayoutBackgroundGradientFill: (layout: SlideLayoutData) =>
|
|
|
5518
5591
|
* report `'gradient'` inherit can now get the master's gradient
|
|
5519
5592
|
* projected via `gradientDef`.
|
|
5520
5593
|
*/
|
|
5521
|
-
declare const getSlideMasterBackgroundGradientFill: (pres: PresentationData, layout: SlideLayoutData) =>
|
|
5594
|
+
declare const getSlideMasterBackgroundGradientFill: (pres: PresentationData, layout: SlideLayoutData) => ReadGradientFill | null;
|
|
5522
5595
|
/**
|
|
5523
5596
|
* Reads the slide master's background. Same discriminated union as
|
|
5524
5597
|
* `getSlideBackground` / `getSlideLayoutBackground`. Walks one rel up
|
|
@@ -5537,7 +5610,7 @@ declare const getSlideLayoutBackground: (layout: SlideLayoutData) => SlideBackgr
|
|
|
5537
5610
|
* background kind. Shape identical to `getShapeGradientFill` so renderers
|
|
5538
5611
|
* can use the same projection logic for slide backgrounds.
|
|
5539
5612
|
*/
|
|
5540
|
-
declare const getSlideBackgroundGradientFill: (slide: SlideData) =>
|
|
5613
|
+
declare const getSlideBackgroundGradientFill: (slide: SlideData) => ReadGradientFill | null;
|
|
5541
5614
|
/**
|
|
5542
5615
|
* Returns the pattern preset + theme-resolved colors when the slide
|
|
5543
5616
|
* carries a `<p:bgPr><a:pattFill>` background. Returns `null` for any
|
|
@@ -5571,7 +5644,7 @@ declare const getSlideLayoutBackgroundImageBytes: (pres: PresentationData, layou
|
|
|
5571
5644
|
*/
|
|
5572
5645
|
declare const getSlideMasterBackgroundImageBytes: (pres: PresentationData, layout: SlideLayoutData) => Uint8Array | null;
|
|
5573
5646
|
/** Sets a solid fill on the slide's background. */
|
|
5574
|
-
declare const setSlideBackground: (slide: SlideData, color:
|
|
5647
|
+
declare const setSlideBackground: (slide: SlideData, color: Color) => void;
|
|
5575
5648
|
/**
|
|
5576
5649
|
* Sets a picture as the slide's background. Embeds `bytes` as a new
|
|
5577
5650
|
* media part, wires a slide → image rel, and replaces any prior
|
|
@@ -5617,7 +5690,7 @@ declare const resolveDeckBodyTextColor: (slide: SlideData) => string | null;
|
|
|
5617
5690
|
* `<p:transition>` is present). The returned shape mirrors what
|
|
5618
5691
|
* `setSlideTransition` accepts.
|
|
5619
5692
|
*/
|
|
5620
|
-
declare const getSlideTransition: (slide: SlideData) =>
|
|
5693
|
+
declare const getSlideTransition: (slide: SlideData) => SlideTransition | null;
|
|
5621
5694
|
/** Sets the slide's transition effect. */
|
|
5622
5695
|
declare const setSlideTransition: (slide: SlideData, options: TransitionOptions) => void;
|
|
5623
5696
|
/** Removes any existing transition on the slide. */
|
|
@@ -5939,5 +6012,5 @@ declare const SLIDE_SIZE_16_10: SlideSize;
|
|
|
5939
6012
|
//#region src/api/index.d.ts
|
|
5940
6013
|
declare const VERSION: string;
|
|
5941
6014
|
//#endregion
|
|
5942
|
-
export { SlideBackground as $, getShapeChartSeriesValues as $a, getShapeCustomGeometry as $c, TableCellBorders as $i, createPresentation as $l, addSlideLine as $n, appendShapeText as $o, setShapeRunText as $r, getShapeGradientFillEffective as $s, getPresentationShapeCountsBySlide as $t, getPresentationHyperlinkCountsBySlide as A, setTableCellAnchor as Aa, getShapeIndex as Ac, isShapeImageGrayscale as Ai, GeomPoint as Al, ExtendedProperties as An, clearSlideComments as Ao, getParagraphBullet as Ar, clearShapeFill as As, addSectionHeaderSlide as At, getSlidesWithNotes as B, setTableStyleFlags as Ba, ShapeBounds as Bc, getMediaParts as Bi, PatternFillOptions as Bl, findLayoutsWithPlaceholderType as Bn, getCommentPosition as Bo, getShapeParagraphElements as Br, setShapeNoFill as Bs, reverseSlides as Bt, getAllHyperlinks as C, insertTableRow as Ca, findShapesByName as Cc, getShapeImageFillBytes as Ci, setShapeBounds as Cl, setSlideHidden as Cn, ShapeClickAction as Co, PresentationTheme as Cr, clearShapeEffects as Cs, addSlideMedia as Ct, mm as Cu, getDistinctHyperlinkUrls as D, removeTableColumn as Da, findSlidePlaceholder as Dc, getShapeImagePartName as Di, CustomGeometry as Dl, removeThumbnail as Dn, setShapeImage as Do, setPresentationTheme as Dr, getShapeEffectsEffective as Ds, ungroupShapes as Dt, getAllTables as E, mergeTableCells as Ea, findShapesWithHyperlinks as Ec, getShapeImageOpacity as Ei, shapesOverlap as El, getThumbnail as En, ImageFit as Eo, setPresentationFonts as Er, getShapeEffects as Es, groupShapes as Et, getSlideNotesLength as F, setTableCellText as Fa, getSlideShapes as Fc, MediaPart as Fi, LineEndType as Fl, incrementRevision as Fn, findCommentsByText as Fo, getParagraphLevel as Fr, setShapeAdjustValues as Fs, duplicateSlideAt as Ft, removeSlideNotes as G, findChartsBySeriesName as Ga, getGroupTransform as Gc, listPackageParts as Gi, ParagraphSpec as Gl, getSlideLayoutPartName as Gn, getPresentationCommentCountsBySlide as Go, getShapeRunText as Gr, setShapeSize as Gs, SlideOutlineEntry as Gt, getSlidesWithTables as H, SlideChartData as Ha, findShapesAtPoint as Hc, getPackageSize as Hi, BulletStyle as Hl, findSlideLayoutByPartName as Hn, getCommentText as Ho, getShapeRunCount as Hr, setShapePatternFill as Hs, swapSlides as Ht, getSlidesWithCharts as I, setTableCellTextDirection as Ia, getSlidesWithEmptyPlaceholders as Ic, PackagePartInfo as Ii, GlowOptions as Il, setCoreProperties as In, findSlidesWithCommentsByAuthor as Io, getParagraphLineSpacing as Ir, setShapeFill as Is, importSlide as It, clearSlideTransition as J, getPresentationChartCountsBySlide as Ja, getShapeAdjustValues as Jc, slidesUsingMediaPart as Ji, SlideSection as Jl, getSlideLayoutUsageCounts as Jn, getSlideComments as Jo, setParagraphBullet as Jr, setShapeStrokeCap as Js, findSlideByTitle as Jt, replaceHyperlink as K, findChartsWithDataLabels as Ka, getMaxShapeId as Kc, readPackagePart as Ki, RunSpec as Kl, getSlideLayoutPlaceholders as Kn, getPresentationCommenters as Ko, isParagraphBulletPicture as Kr, setShapeStroke as Ks, findSlideByPartName as Kt, getSlidesWithComments as L, setTableCellTextFormat as La, replaceTokensInSlide as Lc, PresentationSummary as Li, ShadowOptions as Ll, setExtendedProperties as Ln, getCommentAuthor as Lo, getParagraphSpacing as Lr, setShapeFlip as Ls, mergePresentations as Lt, getPresentationNotesLengthsBySlide as M, setTableCellFill as Ma, getShapeXmlString as Mc, setShapeImageContrast as Mi, ArrowOptions as Ml, getExtendedProperties as Mn, findCommentsAfter as Mo, getParagraphBulletStyle as Mr, getShapePatternFill as Ms, addSlideAt as Mt, getPresentationNotesText as N, setTableCellMargins as Na, getShapesBounds as Nc, setShapeImageCrop as Ni, LineDash as Nl, getPresentationCreated as Nn, findCommentsBefore as No, getParagraphEndFormat as Nr, getShapeStrokeArrow as Ns, addTitleSlide as Nt, getEmptySlides as O, removeTableRow as Oa, findSlidePlaceholderByIdx as Oc, hasShapeImage as Oi, GeomCommand as Ol, setThumbnail as On, addSlideComment as Oo, ShapeParagraphElement as Or, setShapeGlow as Os, addBlankSlide as Ot, getSlideNotes as P, setTableCellParagraphs as Pa, getSlideLayout as Pc, setShapeImageOpacity as Pi, LineEndSize as Pl, getPresentationModified as Pn, findCommentsByAuthor as Po, getParagraphIndent as Pr, getShapeStrokeDash as Ps, duplicateSlide as Pt, resolveDeckBodyTextColor as Q, getShapeChartSeriesNames as Qa, getShapeCenter as Qc, TableCellBorder as Qi, PresentationSize as Ql, addSlideImage as Qn, TextWrap as Qo, setShapeRunHyperlink as Qr, getShapeGradientFill as Qs, getOutlineText as Qt, getSlidesWithHyperlinks as R, setTableColumnWidth as Ra, setSlideLayout as Rc, _internalPackageOf as Ri, GradientFillOptions as Rl, touchModified as Rn, getCommentAuthors as Ro, getShapeHyperlinkTooltip as Rr, setShapeGradientFill as Rs, moveSlide as Rt, getAllComments as S, insertTableColumn as Sa, findShapesByKind as Sc, getShapeImageDuotone as Si, setShapeAltTitle as Sl, searchSlides as Sn, ChartView3D as So, PresentationFontsInput as Sr, ShapeEffectAny as Ss, SlideMediaSource as St, inches as Su, getAllNotes as T, isTableShape as Ta, findShapesByText as Tc, getShapeImageLinkUrl as Ti, setShapeHidden as Tl, PresentationThumbnail as Tn, setShapeClickAction as To, getPresentationTheme as Tr, getShapeEffect as Ts, getShapeMedia as Tt, getVisibleSlides as U, addSlideChart as Ua, findShapesInRect as Uc, getPresentationSummary as Ui, ParagraphAlignment as Ul, findSlideLayoutByType as Un, getCommentsSortedByDate as Uo, getShapeRunHyperlink as Ur, setShapePosition as Us, AllShapesEntry as Ut, getSlidesWithOverlap as V, setTableStyleId as Va, centerShapeOnSlide as Vc, getOrphanMediaPartNames as Vi, PatternPreset as Vl, findSlideLayout as Vn, getCommentSlide as Vo, getShapeRunClickAction as Vr, setShapeNoStroke as Vs, sortSlides as Vt, hasSlideNotes as W, findChartByKind as Wa, getGroupChildren as Wc, getSlideMediaPartNames as Wi, ParagraphAlignmentToken as Wl, getSlideLayoutName as Wn, getPresentationCommentCountsByAuthor as Wo, getShapeRunHyperlinkTooltip as Wr, setShapeRotation as Ws, SlideInfo as Wt, setSlideTransition as X, getShapeChartCategories as Xa, getShapeBounds as Xc, IssueSeverity as Xi, setSlideSections as Xl, getSlideLayouts as Xn, TextAnchor as Xo, setParagraphLineSpacing as Xr, setShapeStrokeDash as Xs, findSlidesByText as Xt, getSlideTransition as Y, getPresentationChartKindCounts as Ya, getShapeAltTitle as Yc, validatePresentation as Yi, getSlideSections as Yl, getSlideLayoutUsageCountsByType as Yn, removeSlideComment as Yo, setParagraphLevel as Yr, setShapeStrokeCompound as Ys, findSlidesByNotes as Yt, getEffectiveColorMap as Z, getShapeChartKind as Za, getShapeBoundsResolved as Zc, ValidationIssue as Zi, PresentationInput as Zl, getUnusedSlideLayouts as Zn, TextAutoFit as Zo, setParagraphSpacing as Zr, setShapeStrokeJoin as Zs, getAllShapes as Zt, clearSlideHyperlinks as _, getTableDimensions as _a, findShapeById as _c, getShapeImageBiLevelThreshold as _i, isShapeHidden as _l, replaceTextInNotes as _n, ChartSpec as _o, setShapeRunFormat as _r, setShapeTextDirection as _s, getSlideMasterShapes as _t, VideoFormat as _u, SlideSize as a, getTableCellAlignment as aa, getShapeFillEffective as ac, clearSlideAnimations as ai, getShapePlaceholderIdx as al, getSlideCount as an, ChartDataLabels as ao, clearSlideShapes as ar, getShapeTextColumns as as, getSlideBackgroundPatternFill as at, SlideLayoutData as au, findSlidesWithChartTrendlines as b, getTableStyleFlags as ba, findShapeInPresentation as bc, getShapeImageContrast as bi, pointInShape as bl, replaceTextInSlideNotes as bn, ChartTrendline as bo, resolveDrawingColorOpacity as br, setShapeTextWrap as bs, ShapeMedia as bt, cm as bu, PresentationChartEntry as c, getTableCellFill as ca, getShapeStrokeCap as cc, setShapeAnimation as ci, getShapePreset as cl, getSlideLayoutCount as cn, ChartErrorBarAmount as co, removeShape as cr, getShapeTextWrap as cs, getSlideLayoutBackgroundGradientFill as ct, CommentAuthor as cu, PresentationImageEntry as d, getTableCellPosition as da, getShapeStrokeCompound as dc, findOverlappingShapePairs as di, getShapeText as dl, getSlideText as dn, ChartKind as do, setShapeZIndex as dr, setShapeParagraphs as ds, getSlideLayoutBackgroundShapes as dt, AnimationEffect as du, TableCellParagraph as ea, ShapeFill as ec, getSlideBody as ei, getShapeDescription as el, getPresentationText as en, getShapeChartSpec as eo, addSlideShape as er, getShapeBodyPrEffective as es, SlideLayoutBackgroundShape as et, loadPresentation as eu, PresentationNotesEntry as f, getTableCellSpan as fa, getShapeStrokeEffective as fc, findShapesOutsideCanvas as fi, getSlideMasterCount as fl, getSlideTextLength as fn, ChartManualLayout as fo, ParagraphProperties as fr, setShapeText as fs, getSlideLayoutShapes as ft, AnimationOptions as fu, clearAllSlideNotes as g, getTableColumnWidths as ga, findEmptyPlaceholders as gc, getPresentationImageCountsBySlide as gi, getUnusedSlideMasters as gl, isSlideHidden as gn, ChartSeriesAxis as go, setShapeHyperlink as gr, setShapeTextColumns as gs, getSlideMasterBackgroundPatternFill as gt, AudioFormat as gu, clearAllHyperlinks as h, getTableCells as ha, getShapeStrokeWidth as hc, findSlidesByLayoutType as hi, getSlideMasterUsageCounts as hl, getSlidesByLayout as hn, ChartSeries as ho, getShapeRunFormatEffective as hr, setShapeTextBodyRotationDeg as hs, getSlideMasterBackgroundImageBytes as ht, PresetShape as hu, SLIDE_SIZE_4_3 as i, getTableCell as ia, getShapeFillColorResolved as ic, setSlideTitle as ii, getShapeName as il, getSlideAt as in, ChartDataLabelPosition as io, bringShapeToFront as ir, getShapeTextBodyRotationDeg as is, getSlideBackgroundImageBytes as it, SlideData as iu, getPresentationNotesLength as j, setTableCellBorders as ja, getShapeSlide as jc, setShapeImageBrightness as ji, PathFillMode as jl, getCoreProperties as jn, findCommentAuthorByName as jo, getParagraphBulletImageBytes as jr, clearShapeStroke as js, addSlide as jt, getHiddenSlides as k, setTableCellAlignment as ka, findSlidePlaceholders as kc, hasShapeText as ki, GeomPath as kl, CoreProperties as kn, clearAllSlideComments as ko, getParagraphAlignment as kr, setShapeShadow as ks, addContentSlide as kt, PresentationCommentEntry as l, getTableCellMargins as la, getShapeStrokeColor as lc, ImageCrop as li, getShapeRotation as ll, getSlideOutline as ln, ChartErrorBars as lo, sendShapeBackward as lr, setShapeAlignment as ls, getSlideLayoutBackgroundImageBytes as lt, CommentPosition as lu, appendSlideNotes as m, getTableCellTextDirection as ma, getShapeStrokeOpacity as mc, findSlidesByLayoutPartName as mi, getSlideMasterPartNames as ml, getSlides as mn, ChartSecondaryValueAxis as mo, getShapeHyperlink as mr, setShapeTextAutoFit as ms, getSlideMasterBackgroundGradientFill as mt, TransitionOptions as mu, SLIDE_SIZE_16_10 as n, getPresentationTableCountsBySlide as na, getShapeFill as nc, setSlideBody as ni, getShapeId as nl, getPresentationTextLengthsBySlide as nn, setChartSpec as no, addSlideTextBox as nr, getShapeTextAutoFit as ns, getSlideBackground as nt, PresentationData as nu, getSlideSize as o, getTableCellAnchor as oa, getShapeFillOpacity as oc, findShapesWithAnimation as oi, getShapePlaceholderType as ol, getSlideIndex as on, ChartDataTable as oo, copyShape as or, getShapeTextDirection as os, getSlideColorMapOverride as ot, SlideShapeData as ou, PresentationTableEntry as p, getTableCellText as pa, getShapeStrokeJoin as pc, findSlidesByLayoutName as pi, getSlideMasterPartName as pl, getSlideXmlString as pn, ChartOfPie as po, getParagraphPropertiesEffective as pr, setShapeTextAnchor as ps, getSlideMasterBackground as pt, TransitionEffect as pu, setSlideNotes as q, findChartsWithTrendlines as qa, getMaxShapeIdInPresentation as qc, setMediaPartBytes as qi, TextFormat as ql, getSlideLayoutType as qn, getSlideCommentAuthors as qo, setParagraphAlignment as qr, setShapeStrokeArrow as qs, findSlideByText as qt, SLIDE_SIZE_16_9 as r, getSlideTables as ra, getShapeFillColor as rc, setSlidePlaceholders as ri, getShapeKind as rl, getShapeAt as rn, ChartAxisScaling as ro, bringShapeForward as rr, getShapeTextAutoFitParams as rs, getSlideBackgroundGradientFill as rt, SlideCommentData as ru, setSlideSize as s, getTableCellBorders as sa, getShapeStroke as sc, getShapeAnimation as si, getShapePosition as sl, getSlideInfo as sn, ChartDateAxis as so, getShapeZIndex as sr, getShapeTextMargins as ss, getSlideLayoutBackground as st, TableCellData as su, VERSION as t, clearTableCellFill as ta, ShapeStroke as tc, getSlideTitle as ti, getShapeFlip as tl, getPresentationTextLength as tn, getSlideCharts as to, addSlideTable as tr, getShapeTextAnchor as ts, clearSlideBackground as tt, savePresentation as tu, PresentationHyperlinkEntry as u, getTableCellParagraphs as ua, getShapeStrokeColorResolved as uc, findFlippedShapes as ui, getShapeSize as ul, getSlidePartName as un, ChartGrouping as uo, sendShapeToBack as ur, setShapeBullets as us, getSlideLayoutBackgroundPatternFill as ut, SlideComment as uu, findSlidesByHyperlink as v, getTableRowHeights as va, findShapeByName as vc, getShapeImageBrightness as vi, isShapePlaceholder as vl, replaceTextInPresentation as vn, ChartTextStyle as vo, getShapeRunFormat as vr, setShapeTextFormat as vs, setSlideBackground as vt, ImageFormat as vu, getAllImages as w, isChartShape as wa, findShapesByPreset as wc, getShapeImageFormat as wi, setShapeDescription as wl, slideHasAnimations as wn, getShapeClickAction as wo, getPresentationFonts as wr, findShapesByEffect as ws, findShapesWithMedia as wt, pt as wu, getAllCharts as x, getTableStyleId as xa, findShapesByHyperlink as xc, getShapeImageCrop as xi, renameShape as xl, replaceTokensInPresentation as xn, ChartUpDownBars as xo, PresentationFonts as xr, ShapeEffect as xs, SlideMediaOptions as xt, emu as xu, findSlidesWithChartKind as y, getTableSize as ya, findShapeByText as yc, getShapeImageBytes as yi, isShapeTextBox as yl, replaceTextInSlide as yn, ChartTimeUnit as yo, resolveDrawingColor as yr, setShapeTextMargins as ys, setSlideBackgroundImage as yt, Emu as yu, getSlidesWithImages as z, setTableRowHeight as za, translateShapes as zc, compactPackage as zi, GradientStop as zl, SlideLayoutPlaceholder as zn, getCommentDate as zo, getShapeParagraphCount as zr, setShapeImageFill as zs, removeSlide as zt };
|
|
5943
|
-
//# sourceMappingURL=index-
|
|
6015
|
+
export { SlideBackground as $, getShapeChartSeriesValues as $a, getShapeCustomGeometry as $c, TableCellBorders as $i, PathFillMode as $l, addSlideLine as $n, appendShapeText as $o, setShapeRunText as $r, getShapeGradientFillEffective as $s, getPresentationShapeCountsBySlide as $t, getPresentationHyperlinkCountsBySlide as A, setTableCellAnchor as Aa, getShapeIndex as Ac, isShapeImageGrayscale as Ai, PresentationInput as Al, ExtendedProperties as An, clearSlideComments as Ao, getParagraphBullet as Ar, clearShapeFill as As, addSectionHeaderSlide as At, emu as Au, getSlidesWithNotes as B, setTableStyleFlags as Ba, ShapeBounds as Bc, getMediaParts as Bi, TableCellData as Bl, findLayoutsWithPlaceholderType as Bn, getCommentPosition as Bo, getShapeParagraphElements as Br, setShapeNoFill as Bs, reverseSlides as Bt, getAllHyperlinks as C, insertTableRow as Ca, findShapesByName as Cc, getShapeImageFillBytes as Ci, setShapeBounds as Cl, setSlideHidden as Cn, ShapeClickAction as Co, PresentationTheme as Cr, clearShapeEffects as Cs, addSlideMedia as Ct, PresetShape as Cu, getDistinctHyperlinkUrls as D, removeTableColumn as Da, findSlidePlaceholder as Dc, getShapeImagePartName as Di, SlideSection as Dl, removeThumbnail as Dn, setShapeImage as Do, setPresentationTheme as Dr, getShapeEffectsEffective as Ds, ungroupShapes as Dt, ImageFormat as Du, getAllTables as E, mergeTableCells as Ea, findShapesWithHyperlinks as Ec, getShapeImageOpacity as Ei, shapesOverlap as El, getThumbnail as En, ImageFit as Eo, setPresentationFonts as Er, getShapeEffects as Es, groupShapes as Et, VideoFormat as Eu, getSlideNotesLength as F, setTableCellText as Fa, getSlideShapes as Fc, MediaPart as Fi, PresentationData as Fl, incrementRevision as Fn, findCommentsByText as Fo, getParagraphLevel as Fr, setShapeAdjustValues as Fs, duplicateSlideAt as Ft, removeSlideNotes as G, findChartsBySeriesName as Ga, getGroupTransform as Gc, listPackageParts as Gi, AnimationOptions as Gl, getSlideLayoutPartName as Gn, getPresentationCommentCountsBySlide as Go, getShapeRunText as Gr, setShapeSize as Gs, SlideOutlineEntry as Gt, getSlidesWithTables as H, SlideChartData as Ha, findShapesAtPoint as Hc, getPackageSize as Hi, CommentPosition as Hl, findSlideLayoutByPartName as Hn, getCommentText as Ho, getShapeRunCount as Hr, setShapePatternFill as Hs, swapSlides as Ht, getSlidesWithCharts as I, setTableCellTextDirection as Ia, getSlidesWithEmptyPlaceholders as Ic, PackagePartInfo as Ii, SlideCommentData as Il, setCoreProperties as In, findSlidesWithCommentsByAuthor as Io, getParagraphLineSpacing as Ir, setShapeFill as Is, importSlide as It, clearSlideTransition as J, getPresentationChartCountsBySlide as Ja, getShapeAdjustValues as Jc, slidesUsingMediaPart as Ji, TransitionOptions as Jl, getSlideLayoutUsageCounts as Jn, getSlideComments as Jo, setParagraphBullet as Jr, setShapeStrokeCap as Js, findSlideByTitle as Jt, replaceHyperlink as K, findChartsWithDataLabels as Ka, getMaxShapeId as Kc, readPackagePart as Ki, SlideTransition as Kl, getSlideLayoutPlaceholders as Kn, getPresentationCommenters as Ko, isParagraphBulletPicture as Kr, setShapeStroke as Ks, findSlideByPartName as Kt, getSlidesWithComments as L, setTableCellTextFormat as La, replaceTokensInSlide as Lc, PresentationSummary as Li, SlideData as Ll, setExtendedProperties as Ln, getCommentAuthor as Lo, getParagraphSpacing as Lr, setShapeFlip as Ls, mergePresentations as Lt, getPresentationNotesLengthsBySlide as M, setTableCellFill as Ma, getShapeXmlString as Mc, setShapeImageContrast as Mi, createPresentation as Ml, getExtendedProperties as Mn, findCommentsAfter as Mo, getParagraphBulletStyle as Mr, getShapePatternFill as Ms, addSlideAt as Mt, mm as Mu, getPresentationNotesText as N, setTableCellMargins as Na, getShapesBounds as Nc, setShapeImageCrop as Ni, loadPresentation as Nl, getPresentationCreated as Nn, findCommentsBefore as No, getParagraphEndFormat as Nr, getShapeStrokeArrow as Ns, addTitleSlide as Nt, pt as Nu, getEmptySlides as O, removeTableRow as Oa, findSlidePlaceholderByIdx as Oc, hasShapeImage as Oi, getSlideSections as Ol, setThumbnail as On, addSlideComment as Oo, ShapeParagraphElement as Or, setShapeGlow as Os, addBlankSlide as Ot, Emu as Ou, getSlideNotes as P, setTableCellParagraphs as Pa, getSlideLayout as Pc, setShapeImageOpacity as Pi, savePresentation as Pl, getPresentationModified as Pn, findCommentsByAuthor as Po, getParagraphIndent as Pr, getShapeStrokeDash as Ps, duplicateSlide as Pt, resolveDeckBodyTextColor as Q, getShapeChartSeriesNames as Qa, getShapeCenter as Qc, TableCellBorder as Qi, GeomPoint as Ql, addSlideImage as Qn, TextWrap as Qo, setShapeRunHyperlink as Qr, getShapeGradientFill as Qs, getOutlineText as Qt, getSlidesWithHyperlinks as R, setTableColumnWidth as Ra, setSlideLayout as Rc, _internalPackageOf as Ri, SlideLayoutData as Rl, touchModified as Rn, getCommentAuthors as Ro, getShapeHyperlinkTooltip as Rr, setShapeGradientFill as Rs, moveSlide as Rt, getAllComments as S, insertTableColumn as Sa, findShapesByKind as Sc, getShapeImageDuotone as Si, setShapeAltTitle as Sl, searchSlides as Sn, ChartView3D as So, PresentationFontsInput as Sr, ShapeEffectAny as Ss, SlideMediaSource as St, asColor as Su, getAllNotes as T, isTableShape as Ta, findShapesByText as Tc, getShapeImageLinkUrl as Ti, setShapeHidden as Tl, PresentationThumbnail as Tn, setShapeClickAction as To, getPresentationTheme as Tr, getShapeEffect as Ts, getShapeMedia as Tt, AudioFormat as Tu, getVisibleSlides as U, addSlideChart as Ua, findShapesInRect as Uc, getPresentationSummary as Ui, SlideComment as Ul, findSlideLayoutByType as Un, getCommentsSortedByDate as Uo, getShapeRunHyperlink as Ur, setShapePosition as Us, AllShapesEntry as Ut, getSlidesWithOverlap as V, setTableStyleId as Va, centerShapeOnSlide as Vc, getOrphanMediaPartNames as Vi, CommentAuthor as Vl, findSlideLayout as Vn, getCommentSlide as Vo, getShapeRunClickAction as Vr, setShapeNoStroke as Vs, sortSlides as Vt, hasSlideNotes as W, findChartByKind as Wa, getGroupChildren as Wc, getSlideMediaPartNames as Wi, AnimationEffect as Wl, getSlideLayoutName as Wn, getPresentationCommentCountsByAuthor as Wo, getShapeRunHyperlinkTooltip as Wr, setShapeRotation as Ws, SlideInfo as Wt, setSlideTransition as X, getShapeChartCategories as Xa, getShapeBounds as Xc, IssueSeverity as Xi, GeomCommand as Xl, getSlideLayouts as Xn, TextAnchor as Xo, setParagraphLineSpacing as Xr, setShapeStrokeDash as Xs, findSlidesByText as Xt, getSlideTransition as Y, getPresentationChartKindCounts as Ya, getShapeAltTitle as Yc, validatePresentation as Yi, CustomGeometry as Yl, getSlideLayoutUsageCountsByType as Yn, removeSlideComment as Yo, setParagraphLevel as Yr, setShapeStrokeCompound as Ys, findSlidesByNotes as Yt, getEffectiveColorMap as Z, getShapeChartKind as Za, getShapeBoundsResolved as Zc, ValidationIssue as Zi, GeomPath as Zl, getUnusedSlideLayouts as Zn, TextAutoFit as Zo, setParagraphSpacing as Zr, setShapeStrokeJoin as Zs, getAllShapes as Zt, clearSlideHyperlinks as _, getTableDimensions as _a, findShapeById as _c, getShapeImageBiLevelThreshold as _i, isShapeHidden as _l, replaceTextInNotes as _n, ChartSpec as _o, setShapeRunFormat as _r, setShapeTextDirection as _s, getSlideMasterShapes as _t, ReadTextFormat as _u, SlideSize as a, getTableCellAlignment as aa, getShapeFillEffective as ac, clearSlideAnimations as ai, getShapePlaceholderIdx as al, getSlideCount as an, ChartDataLabels as ao, clearSlideShapes as ar, getShapeTextColumns as as, getSlideBackgroundPatternFill as at, ShadowOptions as au, findSlidesWithChartTrendlines as b, getTableStyleFlags as ba, findShapeInPresentation as bc, getShapeImageContrast as bi, pointInShape as bl, replaceTextInSlideNotes as bn, ChartTrendline as bo, resolveDrawingColorOpacity as br, setShapeTextWrap as bs, ShapeMedia as bt, HexColor as bu, PresentationChartEntry as c, getTableCellFill as ca, getShapeStrokeCap as cc, setShapeAnimation as ci, getShapePreset as cl, getSlideLayoutCount as cn, ChartErrorBarAmount as co, removeShape as cr, getShapeTextWrap as cs, getSlideLayoutBackgroundGradientFill as ct, PatternFillOptions as cu, PresentationImageEntry as d, getTableCellPosition as da, getShapeStrokeCompound as dc, findOverlappingShapePairs as di, getShapeText as dl, getSlideText as dn, ChartKind as do, setShapeZIndex as dr, setShapeParagraphs as ds, getSlideLayoutBackgroundShapes as dt, ReadGradientStop as du, TableCellParagraph as ea, ShapeFill as ec, getSlideBody as ei, getShapeDescription as el, getPresentationText as en, getShapeChartSpec as eo, addSlideShape as er, getShapeBodyPrEffective as es, SlideLayoutBackgroundShape as et, ArrowOptions as eu, PresentationNotesEntry as f, getTableCellSpan as fa, getShapeStrokeEffective as fc, findShapesOutsideCanvas as fi, getSlideMasterCount as fl, getSlideTextLength as fn, ChartManualLayout as fo, ParagraphProperties as fr, setShapeText as fs, getSlideLayoutShapes as ft, BulletStyle as fu, clearAllSlideNotes as g, getTableColumnWidths as ga, findEmptyPlaceholders as gc, getPresentationImageCountsBySlide as gi, getUnusedSlideMasters as gl, isSlideHidden as gn, ChartSeriesAxis as go, setShapeHyperlink as gr, setShapeTextColumns as gs, getSlideMasterBackgroundPatternFill as gt, RunSpec as gu, clearAllHyperlinks as h, getTableCells as ha, getShapeStrokeWidth as hc, findSlidesByLayoutType as hi, getSlideMasterUsageCounts as hl, getSlidesByLayout as hn, ChartSeries as ho, getShapeRunFormatEffective as hr, setShapeTextBodyRotationDeg as hs, getSlideMasterBackgroundImageBytes as ht, ParagraphSpec as hu, SLIDE_SIZE_4_3 as i, getTableCell as ia, getShapeFillColorResolved as ic, setSlideTitle as ii, getShapeName as il, getSlideAt as in, ChartDataLabelPosition as io, bringShapeToFront as ir, getShapeTextBodyRotationDeg as is, getSlideBackgroundImageBytes as it, GlowOptions as iu, getPresentationNotesLength as j, setTableCellBorders as ja, getShapeSlide as jc, setShapeImageBrightness as ji, PresentationSize as jl, getCoreProperties as jn, findCommentAuthorByName as jo, getParagraphBulletImageBytes as jr, clearShapeStroke as js, addSlide as jt, inches as ju, getHiddenSlides as k, setTableCellAlignment as ka, findSlidePlaceholders as kc, hasShapeText as ki, setSlideSections as kl, CoreProperties as kn, clearAllSlideComments as ko, getParagraphAlignment as kr, setShapeShadow as ks, addContentSlide as kt, cm as ku, PresentationCommentEntry as l, getTableCellMargins as la, getShapeStrokeColor as lc, ImageCrop as li, getShapeRotation as ll, getSlideOutline as ln, ChartErrorBars as lo, sendShapeBackward as lr, setShapeAlignment as ls, getSlideLayoutBackgroundImageBytes as lt, PatternPreset as lu, appendSlideNotes as m, getTableCellTextDirection as ma, getShapeStrokeOpacity as mc, findSlidesByLayoutPartName as mi, getSlideMasterPartNames as ml, getSlides as mn, ChartSecondaryValueAxis as mo, getShapeHyperlink as mr, setShapeTextAutoFit as ms, getSlideMasterBackgroundGradientFill as mt, ParagraphAlignmentToken as mu, SLIDE_SIZE_16_10 as n, getPresentationTableCountsBySlide as na, getShapeFill as nc, setSlideBody as ni, getShapeId as nl, getPresentationTextLengthsBySlide as nn, setChartSpec as no, addSlideTextBox as nr, getShapeTextAutoFit as ns, getSlideBackground as nt, LineEndSize as nu, getSlideSize as o, getTableCellAnchor as oa, getShapeFillOpacity as oc, findShapesWithAnimation as oi, getShapePlaceholderType as ol, getSlideIndex as on, ChartDataTable as oo, copyShape as or, getShapeTextDirection as os, getSlideColorMapOverride as ot, GradientFillOptions as ou, PresentationTableEntry as p, getTableCellText as pa, getShapeStrokeJoin as pc, findSlidesByLayoutName as pi, getSlideMasterPartName as pl, getSlideXmlString as pn, ChartOfPie as po, getParagraphPropertiesEffective as pr, setShapeTextAnchor as ps, getSlideMasterBackground as pt, ParagraphAlignment as pu, setSlideNotes as q, findChartsWithTrendlines as qa, getMaxShapeIdInPresentation as qc, setMediaPartBytes as qi, TransitionEffect as ql, getSlideLayoutType as qn, getSlideCommentAuthors as qo, setParagraphAlignment as qr, setShapeStrokeArrow as qs, findSlideByText as qt, SLIDE_SIZE_16_9 as r, getSlideTables as ra, getShapeFillColor as rc, setSlidePlaceholders as ri, getShapeKind as rl, getShapeAt as rn, ChartAxisScaling as ro, bringShapeForward as rr, getShapeTextAutoFitParams as rs, getSlideBackgroundGradientFill as rt, LineEndType as ru, setSlideSize as s, getTableCellBorders as sa, getShapeStroke as sc, getShapeAnimation as si, getShapePosition as sl, getSlideInfo as sn, ChartDateAxis as so, getShapeZIndex as sr, getShapeTextMargins as ss, getSlideLayoutBackground as st, GradientStop as su, VERSION as t, clearTableCellFill as ta, ShapeStroke as tc, getSlideTitle as ti, getShapeFlip as tl, getPresentationTextLength as tn, getSlideCharts as to, addSlideTable as tr, getShapeTextAnchor as ts, clearSlideBackground as tt, LineDash as tu, PresentationHyperlinkEntry as u, getTableCellParagraphs as ua, getShapeStrokeColorResolved as uc, findFlippedShapes as ui, getShapeSize as ul, getSlidePartName as un, ChartGrouping as uo, sendShapeToBack as ur, setShapeBulletStyle as us, getSlideLayoutBackgroundPatternFill as ut, ReadGradientFill as uu, findSlidesByHyperlink as v, getTableRowHeights as va, findShapeByName as vc, getShapeImageBrightness as vi, isShapePlaceholder as vl, replaceTextInPresentation as vn, ChartTextStyle as vo, getShapeRunFormat as vr, setShapeTextFormat as vs, setSlideBackground as vt, TextFormat as vu, getAllImages as w, isChartShape as wa, findShapesByPreset as wc, getShapeImageFormat as wi, setShapeDescription as wl, slideHasAnimations as wn, getShapeClickAction as wo, getPresentationFonts as wr, findShapesByEffect as ws, findShapesWithMedia as wt, PlaceholderType as wu, getAllCharts as x, getTableStyleId as xa, findShapesByHyperlink as xc, getShapeImageCrop as xi, renameShape as xl, replaceTokensInPresentation as xn, ChartUpDownBars as xo, PresentationFonts as xr, ShapeEffect as xs, SlideMediaOptions as xt, SchemeColorToken as xu, findSlidesWithChartKind as y, getTableSize as ya, findShapeByText as yc, getShapeImageBytes as yi, isShapeTextBox as yl, replaceTextInSlide as yn, ChartTimeUnit as yo, resolveDrawingColor as yr, setShapeTextMargins as ys, setSlideBackgroundImage as yt, Color as yu, getSlidesWithImages as z, setTableRowHeight as za, translateShapes as zc, compactPackage as zi, SlideShapeData as zl, SlideLayoutPlaceholder as zn, getCommentDate as zo, getShapeParagraphCount as zr, setShapeImageFill as zs, removeSlide as zt };
|
|
6016
|
+
//# sourceMappingURL=index-CfANfMvY.d.ts.map
|