ooxml-core 1.24.0 → 1.24.1
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 +2 -2
- package/dist/{PptxHandler-FSKKPZZC.mjs → PptxHandler-5TWAQWPK.mjs} +2 -2
- package/dist/{PptxHandler-H7MEWJJJ.mjs → PptxHandler-KBJ4TN3T.mjs} +1 -1
- package/dist/{PptxHandler-DNSXWTQV.cjs → PptxHandler-KFEE7O7W.cjs} +2 -2
- package/dist/{PresentationBuilder-7TSENZTX.mjs → PresentationBuilder-SCT5AQBP.mjs} +1 -1
- package/dist/{PresentationBuilder-RIJWQSEU.mjs → PresentationBuilder-SVHIKT4C.mjs} +2 -2
- package/dist/{PresentationBuilder-A5NI35VN.cjs → PresentationBuilder-SXLRXYDI.cjs} +4 -4
- package/dist/{chunk-4QPOJCJG.mjs → chunk-7N7C5BNM.mjs} +1 -1
- package/dist/{chunk-DLFMCZZT.mjs → chunk-CWCDFPKN.mjs} +1 -1
- package/dist/{chunk-LF5E5ZOH.mjs → chunk-GVP262WE.mjs} +25 -62
- package/dist/{chunk-VQF6HQEE.mjs → chunk-KVKTHGIY.mjs} +1 -1
- package/dist/{chunk-BA7Z6ATM.mjs → chunk-NE7626A4.mjs} +4 -4
- package/dist/{chunk-Q5PKBQXH.mjs → chunk-ON7XVRHQ.mjs} +26 -63
- package/dist/{chunk-HL3FBJ6X.cjs → chunk-XK55DEUD.cjs} +25 -62
- package/dist/pptx/automation/index.cjs +25 -67
- package/dist/pptx/automation/index.d.ts +3 -2
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/chunks/{index-Q5mM8kIR.d.ts → index-4FmgJajb.d.ts} +3 -2
- package/dist/pptx/chunks/index-4FmgJajb.d.ts.map +1 -0
- package/dist/pptx/chunks/index-C3xhAMSa.d.ts +837 -0
- package/dist/pptx/chunks/index-C3xhAMSa.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-CPhsd7Df.d.ts → index-nKQ4s7FA.d.ts} +24 -834
- package/dist/pptx/chunks/index-nKQ4s7FA.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +25 -67
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/find-replace.d.ts +1 -1
- package/dist/pptx/editor/render/slide-operations.cjs +1 -1
- package/dist/pptx/editor/render/slide-operations.mjs +1 -1
- package/dist/pptx/index.cjs +25 -67
- package/dist/pptx/index.d.ts +4 -3
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.cjs +40 -0
- package/dist/pptx/node/index.d.ts +13 -0
- package/dist/pptx/node/index.d.ts.map +1 -0
- package/dist/pptx/node/index.mjs +40 -0
- package/package.json +6 -1
- package/dist/pptx/chunks/index-CPhsd7Df.d.ts.map +0 -1
- package/dist/pptx/chunks/index-Q5mM8kIR.d.ts.map +0 -1
|
@@ -4977,7 +4977,8 @@ declare class PptxHandlerRuntime$53 extends PptxHandlerRuntime$54 {
|
|
|
4977
4977
|
* Serialise `slides` to a legacy binary PowerPoint 97-2003 (`.ppt`) file.
|
|
4978
4978
|
*
|
|
4979
4979
|
* @param slides - The (possibly mutated) live slide array.
|
|
4980
|
-
* @param options -
|
|
4980
|
+
* @param options - `pptPassword` and `rasterizeSvg` (the `.ppt`-only
|
|
4981
|
+
* options), `customShows` and `slideMasters`; every OOXML-specific
|
|
4981
4982
|
* option (conformance, embedded fonts, table styles, ...) has no binary
|
|
4982
4983
|
* `.ppt` counterpart and is ignored.
|
|
4983
4984
|
* @param saveAsPptx - Serialises the same slides as a Transitional `.pptx`
|
|
@@ -7002,6 +7003,17 @@ declare class ZipBombError extends Error {
|
|
|
7002
7003
|
}
|
|
7003
7004
|
/** Output format for the save pipeline. */
|
|
7004
7005
|
type PptxSaveFormat = 'pptx' | 'ppsx' | 'pptm' | 'ppt';
|
|
7006
|
+
/**
|
|
7007
|
+
* Rasterises SVG bytes to PNG for a `.ppt` save (the binary format has no SVG
|
|
7008
|
+
* picture). `sizeFor` maps the SVG's intrinsic size in pixels (0 when it
|
|
7009
|
+
* declares none) to the raster size the writer wants. Resolve `undefined`
|
|
7010
|
+
* when the SVG cannot be rasterised; the writer then writes a placeholder
|
|
7011
|
+
* with a warning. `ooxml-core/pptx/node` exports one for Node.js.
|
|
7012
|
+
*/
|
|
7013
|
+
type PptxSvgRasterizer = (svg: Uint8Array, sizeFor: (intrinsicWidth: number, intrinsicHeight: number) => {
|
|
7014
|
+
width: number;
|
|
7015
|
+
height: number;
|
|
7016
|
+
}) => Promise<Uint8Array | undefined>;
|
|
7005
7017
|
interface PptxHandlerSaveOptions {
|
|
7006
7018
|
headerFooter?: PptxHeaderFooter;
|
|
7007
7019
|
presentationProperties?: PptxPresentationProperties;
|
|
@@ -7114,6 +7126,15 @@ interface PptxHandlerSaveOptions {
|
|
|
7114
7126
|
* already-produced package.
|
|
7115
7127
|
*/
|
|
7116
7128
|
pptPassword?: string;
|
|
7129
|
+
/**
|
|
7130
|
+
* Rasteriser for SVG pictures with no raster fallback in a `'ppt'`-format
|
|
7131
|
+
* save; ignored for every other {@link outputFormat}. When omitted the
|
|
7132
|
+
* writer uses the DOM's own SVG renderer, and in a runtime without one
|
|
7133
|
+
* (Node.js) writes a placeholder with a `ppt-image-format-unsupported`
|
|
7134
|
+
* warning. In Node.js pass `rasterizeSvgInNode` from
|
|
7135
|
+
* `ooxml-core/pptx/node` (it needs the optional Node canvas peer).
|
|
7136
|
+
*/
|
|
7137
|
+
rasterizeSvg?: PptxSvgRasterizer;
|
|
7117
7138
|
/**
|
|
7118
7139
|
* Embedded fonts to write back (or add) to the saved PPTX.
|
|
7119
7140
|
*
|
|
@@ -9530,836 +9551,5 @@ declare function renameSlideMaster(handler: PptxHandler, data: PptxData, masterI
|
|
|
9530
9551
|
*/
|
|
9531
9552
|
declare function insertSlideMaster(handler: PptxHandler, data: PptxData): Promise<DuplicateMasterResult>;
|
|
9532
9553
|
//#endregion
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
* Platform adapter for file system operations.
|
|
9536
|
-
*
|
|
9537
|
-
* Consumers must provide an implementation of this interface
|
|
9538
|
-
* when using the converter with file output (writing markdown
|
|
9539
|
-
* and extracting media to disk).
|
|
9540
|
-
*
|
|
9541
|
-
* For in-memory-only conversion (just getting the markdown string),
|
|
9542
|
-
* no adapter is required.
|
|
9543
|
-
*/
|
|
9544
|
-
interface FileSystemAdapter {
|
|
9545
|
-
/**
|
|
9546
|
-
* Writes a UTF-8 text file at the given path, creating or overwriting as needed.
|
|
9547
|
-
* @param path - Absolute or relative path for the output file.
|
|
9548
|
-
* @param content - Text content to write.
|
|
9549
|
-
*/
|
|
9550
|
-
writeFile(path: string, content: string): Promise<void>;
|
|
9551
|
-
/**
|
|
9552
|
-
* Writes a binary file (e.g. an extracted image) at the given path.
|
|
9553
|
-
* @param path - Absolute or relative path for the output file.
|
|
9554
|
-
* @param data - Raw binary content as a typed array.
|
|
9555
|
-
*/
|
|
9556
|
-
writeBinaryFile(path: string, data: Uint8Array): Promise<void>;
|
|
9557
|
-
/**
|
|
9558
|
-
* Creates a directory (and any missing parents) at the given path.
|
|
9559
|
-
* Should be a no-op if the directory already exists.
|
|
9560
|
-
* @param path - Absolute or relative path for the directory.
|
|
9561
|
-
*/
|
|
9562
|
-
createFolder(path: string): Promise<void>;
|
|
9563
|
-
}
|
|
9564
|
-
/**
|
|
9565
|
-
* Options shared by all document converters, controlling output paths,
|
|
9566
|
-
* media extraction folder names, and metadata inclusion.
|
|
9567
|
-
*/
|
|
9568
|
-
interface ConversionOptions {
|
|
9569
|
-
/** Optional file path to write the generated markdown. When omitted, only the string is returned. */
|
|
9570
|
-
outputPath?: string;
|
|
9571
|
-
/** Name of the sub-folder (relative to outputDir) where extracted media will be stored. */
|
|
9572
|
-
mediaFolderName: string;
|
|
9573
|
-
/** When true, a YAML front-matter block with document metadata is prepended to the output. */
|
|
9574
|
-
includeMetadata: boolean;
|
|
9575
|
-
}
|
|
9576
|
-
/**
|
|
9577
|
-
* Summary of a completed conversion, including statistics about
|
|
9578
|
-
* the generated output and extracted media.
|
|
9579
|
-
*/
|
|
9580
|
-
interface ConversionResult {
|
|
9581
|
-
/** Whether the conversion completed without errors. */
|
|
9582
|
-
success: boolean;
|
|
9583
|
-
/** Path where the markdown output was written. */
|
|
9584
|
-
outputPath: string;
|
|
9585
|
-
/** Character length of the generated markdown string. */
|
|
9586
|
-
markdownLength: number;
|
|
9587
|
-
/** Number of images extracted and saved to the media folder. */
|
|
9588
|
-
imagesExtracted: number;
|
|
9589
|
-
/** Absolute path to the media folder, or null if no images were extracted. */
|
|
9590
|
-
mediaFolder: string | null;
|
|
9591
|
-
/** Allows additional converter-specific metadata fields. */
|
|
9592
|
-
[key: string]: unknown;
|
|
9593
|
-
}
|
|
9594
|
-
//#endregion
|
|
9595
|
-
//#region pptx/converter/media-context.d.ts
|
|
9596
|
-
/**
|
|
9597
|
-
* Parses a Base64-encoded `data:` URL and returns the decoded binary
|
|
9598
|
-
* content along with a suitable file extension.
|
|
9599
|
-
*
|
|
9600
|
-
* @param dataUrl - A complete `data:` URL in the form `data:<mime>;base64,<payload>`.
|
|
9601
|
-
* @returns An object with `bytes` (the decoded binary data) and `ext` (the file extension).
|
|
9602
|
-
* @throws Error if the data URL does not match the expected `data:<mime>;base64,<payload>` format.
|
|
9603
|
-
*
|
|
9604
|
-
* @example
|
|
9605
|
-
* ```ts
|
|
9606
|
-
* const { bytes, ext } = dataUrlToMediaBytes('data:image/png;base64,iVBOR...');
|
|
9607
|
-
* // bytes: Uint8Array of PNG data
|
|
9608
|
-
* // ext: 'png'
|
|
9609
|
-
* ```
|
|
9610
|
-
*/
|
|
9611
|
-
declare function dataUrlToMediaBytes(dataUrl: string): {
|
|
9612
|
-
bytes: Uint8Array;
|
|
9613
|
-
ext: string;
|
|
9614
|
-
};
|
|
9615
|
-
/**
|
|
9616
|
-
* Generates a deterministic, zero-padded filename for an extracted image.
|
|
9617
|
-
*
|
|
9618
|
-
* @param index - The 1-based ordinal of the image within the conversion session.
|
|
9619
|
-
* @param ext - File extension (with or without leading dot).
|
|
9620
|
-
* @returns A filename like `"image-001.png"`.
|
|
9621
|
-
*
|
|
9622
|
-
* @example
|
|
9623
|
-
* ```ts
|
|
9624
|
-
* generateMediaFilename(7, 'jpg'); // "image-007.jpg"
|
|
9625
|
-
* ```
|
|
9626
|
-
*/
|
|
9627
|
-
declare function generateMediaFilename(index: number, ext: string): string;
|
|
9628
|
-
/**
|
|
9629
|
-
* Manages the extraction and persistence of media files (images) during
|
|
9630
|
-
* a PPTX-to-Markdown conversion session.
|
|
9631
|
-
*
|
|
9632
|
-
* Each `MediaContext` tracks a running count of saved images and ensures
|
|
9633
|
-
* the target media directory is lazily created on first write. When no
|
|
9634
|
-
* {@link FileSystemAdapter} is provided, filenames are still generated
|
|
9635
|
-
* (for in-memory usage) but nothing is written to disk.
|
|
9636
|
-
*/
|
|
9637
|
-
declare class MediaContext {
|
|
9638
|
-
private readonly folderName;
|
|
9639
|
-
private readonly fs?;
|
|
9640
|
-
/** Running counter used to assign unique sequential filenames. */
|
|
9641
|
-
private imageIndex;
|
|
9642
|
-
/** Whether the media output directory has been created yet. */
|
|
9643
|
-
private initialized;
|
|
9644
|
-
/** Fully resolved path to the media output directory. */
|
|
9645
|
-
private readonly resolvedMediaDir;
|
|
9646
|
-
/**
|
|
9647
|
-
* @param outputDir - Root output directory for the conversion.
|
|
9648
|
-
* @param folderName - Sub-folder name for media files (e.g. `"media"`).
|
|
9649
|
-
* @param fs - Optional file system adapter; omit for in-memory-only conversion.
|
|
9650
|
-
*/
|
|
9651
|
-
constructor(outputDir: string, folderName: string, fs?: FileSystemAdapter | undefined);
|
|
9652
|
-
/** Returns the total number of images saved so far in this session. */
|
|
9653
|
-
get totalImages(): number;
|
|
9654
|
-
/** Returns the absolute path to the media output directory. */
|
|
9655
|
-
get mediaDir(): string;
|
|
9656
|
-
/**
|
|
9657
|
-
* Decodes a Base64 `data:` URL, saves the image to disk (if a FS adapter
|
|
9658
|
-
* is available), and returns a relative path suitable for embedding in markdown.
|
|
9659
|
-
*
|
|
9660
|
-
* @param dataUrl - The Base64-encoded data URL of the image.
|
|
9661
|
-
* @param prefix - Optional filename prefix (e.g. `"slide3"`) for disambiguation.
|
|
9662
|
-
* @returns A relative path like `"./media/slide3-image-001.png"`.
|
|
9663
|
-
* @throws Error if the data URL is malformed.
|
|
9664
|
-
*/
|
|
9665
|
-
saveImage(dataUrl: string, prefix?: string): Promise<string>;
|
|
9666
|
-
/**
|
|
9667
|
-
* Saves raw image bytes to disk and returns a relative path for markdown embedding.
|
|
9668
|
-
*
|
|
9669
|
-
* @param bytes - Raw binary content of the image.
|
|
9670
|
-
* @param ext - File extension (e.g. `"png"`, `"jpg"`).
|
|
9671
|
-
* @param prefix - Optional filename prefix for disambiguation.
|
|
9672
|
-
* @returns A relative path like `"./media/image-001.png"`.
|
|
9673
|
-
*/
|
|
9674
|
-
saveImageBytes(bytes: Uint8Array, ext: string, prefix?: string): Promise<string>;
|
|
9675
|
-
/**
|
|
9676
|
-
* Lazily creates the media output directory on the first call.
|
|
9677
|
-
* Subsequent calls are no-ops.
|
|
9678
|
-
*/
|
|
9679
|
-
private ensureInitialized;
|
|
9680
|
-
}
|
|
9681
|
-
//#endregion
|
|
9682
|
-
//#region pptx/converter/base.d.ts
|
|
9683
|
-
/**
|
|
9684
|
-
* Normalises a file path by trimming whitespace and converting
|
|
9685
|
-
* backslashes to forward slashes for cross-platform consistency.
|
|
9686
|
-
*
|
|
9687
|
-
* @param pathValue - The raw file path string.
|
|
9688
|
-
* @returns The normalised path with forward slashes.
|
|
9689
|
-
*
|
|
9690
|
-
* @example
|
|
9691
|
-
* ```ts
|
|
9692
|
-
* normalizePath(' C:\\Users\\docs\\file.md ');
|
|
9693
|
-
* // "C:/Users/docs/file.md"
|
|
9694
|
-
* ```
|
|
9695
|
-
*/
|
|
9696
|
-
declare function normalizePath(pathValue: string): string;
|
|
9697
|
-
/**
|
|
9698
|
-
* Extracts the directory portion of a file path (everything before the
|
|
9699
|
-
* last `/` separator).
|
|
9700
|
-
*
|
|
9701
|
-
* @param filePath - A file path (backslashes are normalised automatically).
|
|
9702
|
-
* @returns The parent directory, `"."` if there is no separator, or `"/"` for root paths.
|
|
9703
|
-
*
|
|
9704
|
-
* @example
|
|
9705
|
-
* ```ts
|
|
9706
|
-
* getDirectory('/home/user/doc.md'); // "/home/user"
|
|
9707
|
-
* getDirectory('file.txt'); // "."
|
|
9708
|
-
* ```
|
|
9709
|
-
*/
|
|
9710
|
-
declare function getDirectory(filePath: string): string;
|
|
9711
|
-
/**
|
|
9712
|
-
* Derives a `.md` output path from a source file path when no explicit
|
|
9713
|
-
* output path has been provided. Simply replaces the source extension
|
|
9714
|
-
* with `.md`.
|
|
9715
|
-
*
|
|
9716
|
-
* @param sourcePath - Original source file path (e.g. `"presentation.pptx"`).
|
|
9717
|
-
* @param explicitPath - An explicit output path; if provided, it is returned as-is.
|
|
9718
|
-
* @returns The derived markdown path, the explicit path, or `undefined` if both inputs are absent.
|
|
9719
|
-
*
|
|
9720
|
-
* @example
|
|
9721
|
-
* ```ts
|
|
9722
|
-
* deriveOutputPath('slides.pptx', undefined); // "slides.md"
|
|
9723
|
-
* deriveOutputPath('slides.pptx', '/tmp/out.md'); // "/tmp/out.md"
|
|
9724
|
-
* ```
|
|
9725
|
-
*/
|
|
9726
|
-
declare function deriveOutputPath(sourcePath: string | undefined, explicitPath: string | undefined): string | undefined;
|
|
9727
|
-
/**
|
|
9728
|
-
* Abstract base class for document-to-Markdown converters.
|
|
9729
|
-
*
|
|
9730
|
-
* Provides shared infrastructure for media extraction ({@link MediaContext}),
|
|
9731
|
-
* YAML front-matter generation, and file output. Concrete subclasses implement
|
|
9732
|
-
* the {@link convert} method to handle a specific document type.
|
|
9733
|
-
*
|
|
9734
|
-
* @typeParam TSource - The parsed document data structure that this converter consumes.
|
|
9735
|
-
*/
|
|
9736
|
-
declare abstract class DocumentConverter<TSource> {
|
|
9737
|
-
protected readonly outputDir: string;
|
|
9738
|
-
protected readonly options: ConversionOptions;
|
|
9739
|
-
protected readonly fs?: FileSystemAdapter | undefined;
|
|
9740
|
-
/** Shared context for extracting and saving media (images) during conversion. */
|
|
9741
|
-
protected readonly mediaContext: MediaContext;
|
|
9742
|
-
/**
|
|
9743
|
-
* @param outputDir - Root directory for all output files (markdown + media).
|
|
9744
|
-
* @param options - Conversion options (output path, media folder name, metadata flag).
|
|
9745
|
-
* @param fs - Optional file system adapter for writing files to disk.
|
|
9746
|
-
*/
|
|
9747
|
-
protected constructor(outputDir: string, options: ConversionOptions, fs?: FileSystemAdapter | undefined);
|
|
9748
|
-
/**
|
|
9749
|
-
* Converts the given source document into a Markdown string.
|
|
9750
|
-
*
|
|
9751
|
-
* @param source - The parsed document data to convert.
|
|
9752
|
-
* @returns The generated Markdown content.
|
|
9753
|
-
*/
|
|
9754
|
-
abstract convert(source: TSource): Promise<string>;
|
|
9755
|
-
/**
|
|
9756
|
-
* Builds a YAML front-matter block from a key-value metadata dictionary.
|
|
9757
|
-
* String values are quoted; numeric values are emitted bare.
|
|
9758
|
-
*
|
|
9759
|
-
* @param metadata - Key-value pairs to include in the front matter.
|
|
9760
|
-
* @returns A complete front-matter string (including `---` delimiters and trailing blank lines).
|
|
9761
|
-
*/
|
|
9762
|
-
protected buildFrontMatter(metadata: Record<string, string | number>): string;
|
|
9763
|
-
/**
|
|
9764
|
-
* Writes the generated markdown content to an output file using the
|
|
9765
|
-
* configured {@link FileSystemAdapter}.
|
|
9766
|
-
*
|
|
9767
|
-
* @param content - The markdown string to write.
|
|
9768
|
-
* @param outputPath - Destination file path.
|
|
9769
|
-
* @throws Error if no `FileSystemAdapter` was provided at construction time.
|
|
9770
|
-
*/
|
|
9771
|
-
protected writeOutput(content: string, outputPath: string): Promise<void>;
|
|
9772
|
-
}
|
|
9773
|
-
//#endregion
|
|
9774
|
-
//#region pptx/converter/PptxMarkdownConverter.d.ts
|
|
9775
|
-
/**
|
|
9776
|
-
* Options specific to PPTX-to-Markdown conversion, extending the base
|
|
9777
|
-
* {@link ConversionOptions} with presentation-aware settings.
|
|
9778
|
-
*/
|
|
9779
|
-
interface PptxConverterOptions extends ConversionOptions {
|
|
9780
|
-
/** Human-readable name of the source file, used in front-matter metadata. */
|
|
9781
|
-
sourceName: string;
|
|
9782
|
-
/** Whether to append speaker notes (as blockquotes) below each slide. */
|
|
9783
|
-
includeSpeakerNotes: boolean;
|
|
9784
|
-
/**
|
|
9785
|
-
* Optional 1-based slide range to limit conversion to a subset of the deck.
|
|
9786
|
-
* Omit or leave fields undefined to convert all slides.
|
|
9787
|
-
*/
|
|
9788
|
-
slideRange?: {
|
|
9789
|
-
/** First slide to include (1-based, default 1). */
|
|
9790
|
-
start?: number;
|
|
9791
|
-
/** Last slide to include (1-based, default = last slide). */
|
|
9792
|
-
end?: number;
|
|
9793
|
-
};
|
|
9794
|
-
/**
|
|
9795
|
-
* When true, emit clean semantic markdown instead of CSS-positioned HTML.
|
|
9796
|
-
* Default is false (positioned HTML layout for slide fidelity).
|
|
9797
|
-
*/
|
|
9798
|
-
semanticMode?: boolean;
|
|
9799
|
-
}
|
|
9800
|
-
/**
|
|
9801
|
-
* Converts a parsed {@link PptxData} presentation into a Markdown document.
|
|
9802
|
-
*
|
|
9803
|
-
* This is the primary entry point for PPTX-to-Markdown conversion. It
|
|
9804
|
-
* orchestrates slide processing, media extraction, metadata generation,
|
|
9805
|
-
* and output assembly. Each slide element type is handled by a dedicated
|
|
9806
|
-
* {@link ElementProcessor} registered in the internal registry.
|
|
9807
|
-
*
|
|
9808
|
-
* @example
|
|
9809
|
-
* ```ts
|
|
9810
|
-
* const converter = new PptxMarkdownConverter('/output', {
|
|
9811
|
-
* sourceName: 'deck.pptx',
|
|
9812
|
-
* includeSpeakerNotes: true,
|
|
9813
|
-
* mediaFolderName: 'media',
|
|
9814
|
-
* includeMetadata: true,
|
|
9815
|
-
* });
|
|
9816
|
-
* const markdown = await converter.convert(pptxData);
|
|
9817
|
-
* ```
|
|
9818
|
-
*/
|
|
9819
|
-
declare class PptxMarkdownConverter extends DocumentConverter<PptxData> {
|
|
9820
|
-
/** Renderer for rich-text segments (bold, italic, hyperlinks, etc.). */
|
|
9821
|
-
private readonly textRenderer;
|
|
9822
|
-
/** Registry mapping element types to their dedicated processors. */
|
|
9823
|
-
private readonly registry;
|
|
9824
|
-
/** Delegate responsible for converting individual slides. */
|
|
9825
|
-
private readonly slideProcessor;
|
|
9826
|
-
/** Number of slides actually converted (after applying the slide range filter). */
|
|
9827
|
-
private convertedSlides;
|
|
9828
|
-
/** Total number of slides in the source presentation. */
|
|
9829
|
-
private totalSlides;
|
|
9830
|
-
/**
|
|
9831
|
-
* @param outputDir - Root directory for output files.
|
|
9832
|
-
* @param options - PPTX-specific conversion options.
|
|
9833
|
-
* @param fs - Optional file system adapter for writing media to disk.
|
|
9834
|
-
*/
|
|
9835
|
-
constructor(outputDir: string, options: PptxConverterOptions, fs?: FileSystemAdapter);
|
|
9836
|
-
/** Returns the number of images extracted and saved during conversion. */
|
|
9837
|
-
get imagesExtracted(): number;
|
|
9838
|
-
/** Returns the media directory path, or `null` if no images were extracted. */
|
|
9839
|
-
get mediaDir(): string | null;
|
|
9840
|
-
/** Returns the number of slides that were actually converted. */
|
|
9841
|
-
get slidesConverted(): number;
|
|
9842
|
-
/** Returns the total number of slides in the source presentation. */
|
|
9843
|
-
get presentationSlides(): number;
|
|
9844
|
-
/**
|
|
9845
|
-
* Converts the full PPTX presentation (or a slide subset) into Markdown.
|
|
9846
|
-
*
|
|
9847
|
-
* The conversion pipeline:
|
|
9848
|
-
* 1. Resolves the slide range and selects the target slides.
|
|
9849
|
-
* 2. Processes each slide through {@link SlideProcessor}, producing markdown sections.
|
|
9850
|
-
* 3. Inserts section headings when slides belong to named sections.
|
|
9851
|
-
* 4. Optionally prepends YAML front-matter with document metadata.
|
|
9852
|
-
* 5. Appends header/footer information if present.
|
|
9853
|
-
* 6. Writes the output file if an `outputPath` was configured.
|
|
9854
|
-
*
|
|
9855
|
-
* @param source - The parsed PPTX data structure.
|
|
9856
|
-
* @returns The complete Markdown string.
|
|
9857
|
-
*/
|
|
9858
|
-
convert(source: PptxData): Promise<string>;
|
|
9859
|
-
/**
|
|
9860
|
-
* Registers all element-type processors into the internal registry.
|
|
9861
|
-
* Each processor handles one or more {@link PptxElement} types
|
|
9862
|
-
* (text, image, table, chart, etc.).
|
|
9863
|
-
*/
|
|
9864
|
-
private registerProcessors;
|
|
9865
|
-
/**
|
|
9866
|
-
* Assembles a YAML front-matter block containing presentation metadata
|
|
9867
|
-
* such as title, author, slide count, theme, dimensions, and more.
|
|
9868
|
-
*
|
|
9869
|
-
* @param source - The parsed PPTX data.
|
|
9870
|
-
* @returns A YAML front-matter string (including `---` delimiters).
|
|
9871
|
-
*/
|
|
9872
|
-
private buildPptxFrontMatter;
|
|
9873
|
-
/**
|
|
9874
|
-
* Populates metadata entries from OPC core properties (title, author, subject, etc.).
|
|
9875
|
-
*
|
|
9876
|
-
* @param meta - The metadata dictionary to populate.
|
|
9877
|
-
* @param props - Core document properties from the PPTX file.
|
|
9878
|
-
*/
|
|
9879
|
-
private addCoreProperties;
|
|
9880
|
-
/**
|
|
9881
|
-
* Populates metadata entries from application-level properties
|
|
9882
|
-
* (application name, editing time, word/paragraph counts).
|
|
9883
|
-
*
|
|
9884
|
-
* @param meta - The metadata dictionary to populate.
|
|
9885
|
-
* @param props - Application properties from the PPTX file.
|
|
9886
|
-
*/
|
|
9887
|
-
private addAppProperties;
|
|
9888
|
-
/**
|
|
9889
|
-
* Adds presentation-level metadata (custom properties, show type, theme,
|
|
9890
|
-
* security warnings, embedded fonts, custom shows) to the front-matter dictionary.
|
|
9891
|
-
*
|
|
9892
|
-
* @param meta - The metadata dictionary to populate.
|
|
9893
|
-
* @param source - The full parsed PPTX data.
|
|
9894
|
-
*/
|
|
9895
|
-
private addPresentationMeta;
|
|
9896
|
-
/**
|
|
9897
|
-
* Renders the presentation-level header/footer settings (header text,
|
|
9898
|
-
* footer text, date/time, slide numbers) into a pipe-delimited markdown string.
|
|
9899
|
-
*
|
|
9900
|
-
* @param hf - Header/footer configuration from the presentation.
|
|
9901
|
-
* @returns A formatted string, or an empty string if no header/footer data is present.
|
|
9902
|
-
*/
|
|
9903
|
-
private renderHeaderFooter;
|
|
9904
|
-
/**
|
|
9905
|
-
* Resolves and clamps the user-specified slide range to valid bounds.
|
|
9906
|
-
* Defaults to the full deck if no range is configured.
|
|
9907
|
-
*
|
|
9908
|
-
* @param totalSlides - Total number of slides in the presentation.
|
|
9909
|
-
* @returns A 1-based `{ start, end }` range guaranteed to be within bounds.
|
|
9910
|
-
*/
|
|
9911
|
-
private resolveRange;
|
|
9912
|
-
/** Casts the base `options` to the PPTX-specific options type. */
|
|
9913
|
-
private getOptions;
|
|
9914
|
-
}
|
|
9915
|
-
//#endregion
|
|
9916
|
-
//#region pptx/converter/elements/ElementProcessor.d.ts
|
|
9917
|
-
interface ElementProcessorContext {
|
|
9918
|
-
mediaContext: MediaContext;
|
|
9919
|
-
slideNumber: number;
|
|
9920
|
-
/** Slide canvas width in CSS pixels (for layout positioning). */
|
|
9921
|
-
slideWidth: number;
|
|
9922
|
-
/** Slide canvas height in CSS pixels (for layout positioning). */
|
|
9923
|
-
slideHeight: number;
|
|
9924
|
-
/** Scale factor applied to the layout container (for font/image sizing). */
|
|
9925
|
-
layoutScale?: number;
|
|
9926
|
-
/**
|
|
9927
|
-
* When true, processors should emit clean markdown instead of HTML.
|
|
9928
|
-
* Tables become markdown tables, images use `` syntax,
|
|
9929
|
-
* and text uses markdown formatting (not `<strong>`, `<em>`, etc.).
|
|
9930
|
-
*/
|
|
9931
|
-
semanticMode?: boolean;
|
|
9932
|
-
processElements: (elements: PptxElement[]) => Promise<string[]>;
|
|
9933
|
-
}
|
|
9934
|
-
interface ElementProcessor {
|
|
9935
|
-
readonly supportedTypes: ReadonlyArray<PptxElement['type']>;
|
|
9936
|
-
process(element: PptxElement, ctx: ElementProcessorContext): Promise<string | null>;
|
|
9937
|
-
}
|
|
9938
|
-
declare class ElementProcessorRegistry {
|
|
9939
|
-
private readonly processors;
|
|
9940
|
-
register(processor: ElementProcessor): void;
|
|
9941
|
-
getProcessor(type: PptxElement['type']): ElementProcessor | null;
|
|
9942
|
-
processElement(element: PptxElement, ctx: ElementProcessorContext): Promise<string | null>;
|
|
9943
|
-
private buildActionAnnotation;
|
|
9944
|
-
}
|
|
9945
|
-
//#endregion
|
|
9946
|
-
//#region pptx/converter/TextSegmentRenderer.d.ts
|
|
9947
|
-
/**
|
|
9948
|
-
* Options controlling how text segments are rendered.
|
|
9949
|
-
*/
|
|
9950
|
-
interface TextSegmentRenderOptions {
|
|
9951
|
-
paragraphIndents?: Array<{
|
|
9952
|
-
marginLeft?: number;
|
|
9953
|
-
indent?: number;
|
|
9954
|
-
}>;
|
|
9955
|
-
slideNumber?: number;
|
|
9956
|
-
dateTimeText?: string;
|
|
9957
|
-
inlineMode?: boolean;
|
|
9958
|
-
disableLists?: boolean;
|
|
9959
|
-
disableAlignment?: boolean;
|
|
9960
|
-
/**
|
|
9961
|
-
* When true, emit HTML formatting tags instead of Markdown syntax.
|
|
9962
|
-
*/
|
|
9963
|
-
htmlFormatting?: boolean;
|
|
9964
|
-
}
|
|
9965
|
-
declare class TextSegmentRenderer {
|
|
9966
|
-
private readonly ommlConverter;
|
|
9967
|
-
render(segments: TextSegment[], options?: TextSegmentRenderOptions): string;
|
|
9968
|
-
renderInline(segments: TextSegment[], options?: TextSegmentRenderOptions): string;
|
|
9969
|
-
plainText(segments: TextSegment[], options?: TextSegmentRenderOptions): string;
|
|
9970
|
-
private groupParagraphs;
|
|
9971
|
-
private renderParagraph;
|
|
9972
|
-
private renderSegment;
|
|
9973
|
-
private resolvePlainSegmentText;
|
|
9974
|
-
private resolveFieldSegment;
|
|
9975
|
-
private wrapCode;
|
|
9976
|
-
private renderLinkDestination;
|
|
9977
|
-
private escapeLinkTitle;
|
|
9978
|
-
private escapeMarkdown;
|
|
9979
|
-
private escapeHtml;
|
|
9980
|
-
}
|
|
9981
|
-
//#endregion
|
|
9982
|
-
//#region pptx/converter/SlideProcessor.d.ts
|
|
9983
|
-
/**
|
|
9984
|
-
* Options controlling how a single slide is processed into Markdown.
|
|
9985
|
-
*/
|
|
9986
|
-
interface SlideProcessorOptions {
|
|
9987
|
-
/** Whether to include speaker notes below the slide content. */
|
|
9988
|
-
includeSpeakerNotes: boolean;
|
|
9989
|
-
/** Slide canvas width in CSS pixels (used for layout positioning). */
|
|
9990
|
-
slideWidth: number;
|
|
9991
|
-
/** Slide canvas height in CSS pixels (used for layout positioning). */
|
|
9992
|
-
slideHeight: number;
|
|
9993
|
-
/** When true, emit clean semantic markdown instead of positioned HTML. */
|
|
9994
|
-
semanticMode?: boolean;
|
|
9995
|
-
}
|
|
9996
|
-
/**
|
|
9997
|
-
* Converts a single {@link PptxSlide} into a Markdown section.
|
|
9998
|
-
*/
|
|
9999
|
-
declare class SlideProcessor {
|
|
10000
|
-
private readonly registry;
|
|
10001
|
-
private readonly mediaContext;
|
|
10002
|
-
private readonly textRenderer;
|
|
10003
|
-
/** Delegate for rendering slide-level metadata sections. */
|
|
10004
|
-
private readonly metadataRenderer;
|
|
10005
|
-
/**
|
|
10006
|
-
* @param registry - Registry of element-type processors.
|
|
10007
|
-
* @param mediaContext - Shared media extraction context.
|
|
10008
|
-
* @param textRenderer - Renderer for rich-text segments.
|
|
10009
|
-
*/
|
|
10010
|
-
constructor(registry: ElementProcessorRegistry, mediaContext: MediaContext, textRenderer: TextSegmentRenderer);
|
|
10011
|
-
/** Processes a slide into a complete Markdown section. */
|
|
10012
|
-
processSlide(slide: PptxSlide, options: SlideProcessorOptions): Promise<string>;
|
|
10013
|
-
/**
|
|
10014
|
-
* Builds the Markdown heading line for a slide, including its number,
|
|
10015
|
-
* detected title text, and flags (hidden, layout name).
|
|
10016
|
-
*/
|
|
10017
|
-
private buildHeading;
|
|
10018
|
-
/**
|
|
10019
|
-
* Returns an HTML `<img>` for the slide background that can be
|
|
10020
|
-
* placed as the bottom-most layer inside the positioned container.
|
|
10021
|
-
*/
|
|
10022
|
-
private renderBackgroundHtml;
|
|
10023
|
-
/** Detects the slide's title from placeholder or first text element. */
|
|
10024
|
-
private detectTitle;
|
|
10025
|
-
/**
|
|
10026
|
-
* Extracts the placeholder type from an element, if present.
|
|
10027
|
-
*/
|
|
10028
|
-
private getPlaceholderType;
|
|
10029
|
-
/** Processes elements as clean semantic markdown. */
|
|
10030
|
-
private processElementsSemantic;
|
|
10031
|
-
/** Processes elements using CSS absolute positioning. */
|
|
10032
|
-
private processElementsWithLayout;
|
|
10033
|
-
/** Sorts elements into natural reading order (top-to-bottom, left-to-right). */
|
|
10034
|
-
private sortElementsByReadingOrder;
|
|
10035
|
-
}
|
|
10036
|
-
//#endregion
|
|
10037
|
-
//#region pptx/converter/SlideMetadataRenderer.d.ts
|
|
10038
|
-
/**
|
|
10039
|
-
* Renders slide-level metadata sections (transition, animations,
|
|
10040
|
-
* warnings, comments, speaker notes) into Markdown strings.
|
|
10041
|
-
*/
|
|
10042
|
-
declare class SlideMetadataRenderer {
|
|
10043
|
-
private readonly textRenderer;
|
|
10044
|
-
constructor(textRenderer: TextSegmentRenderer);
|
|
10045
|
-
/**
|
|
10046
|
-
* Renders the slide transition effect as a short metadata line.
|
|
10047
|
-
*/
|
|
10048
|
-
renderTransition(slide: PptxSlide): string;
|
|
10049
|
-
/**
|
|
10050
|
-
* Renders the slide's animation effects grouped by click sequence.
|
|
10051
|
-
*/
|
|
10052
|
-
renderAnimations(slide: PptxSlide): string;
|
|
10053
|
-
/**
|
|
10054
|
-
* Renders any compatibility warnings for the slide.
|
|
10055
|
-
*/
|
|
10056
|
-
renderWarnings(slide: PptxSlide): string;
|
|
10057
|
-
/**
|
|
10058
|
-
* Renders any review comments attached to the slide.
|
|
10059
|
-
*/
|
|
10060
|
-
renderComments(slide: PptxSlide): string;
|
|
10061
|
-
/**
|
|
10062
|
-
* Renders the slide's speaker notes as a Markdown blockquote.
|
|
10063
|
-
*/
|
|
10064
|
-
renderNotes(slide: PptxSlide): string;
|
|
10065
|
-
/**
|
|
10066
|
-
* Groups animations by click sequence. Each `onClick` trigger starts
|
|
10067
|
-
* a new group; `withPrevious` and `afterPrevious` are appended to the
|
|
10068
|
-
* current group.
|
|
10069
|
-
*/
|
|
10070
|
-
private groupByClickSequence;
|
|
10071
|
-
/**
|
|
10072
|
-
* Converts legacy animation data into the NativeAnimationLike shape.
|
|
10073
|
-
*/
|
|
10074
|
-
private mapLegacyAnimations;
|
|
10075
|
-
/**
|
|
10076
|
-
* Produces a human-readable summary of a single animation effect.
|
|
10077
|
-
*/
|
|
10078
|
-
private summariseAnimation;
|
|
10079
|
-
}
|
|
10080
|
-
//#endregion
|
|
10081
|
-
//#region pptx/converter/svg-text-lines.d.ts
|
|
10082
|
-
type SvgTextMeasurer = (text: string, font: {
|
|
10083
|
-
family: string;
|
|
10084
|
-
size: number;
|
|
10085
|
-
bold: boolean;
|
|
10086
|
-
italic: boolean;
|
|
10087
|
-
}) => number;
|
|
10088
|
-
//#endregion
|
|
10089
|
-
//#region pptx/converter/SvgExporter.d.ts
|
|
10090
|
-
/**
|
|
10091
|
-
* Options controlling SVG export behaviour.
|
|
10092
|
-
*/
|
|
10093
|
-
interface SvgExportOptions {
|
|
10094
|
-
/** Include hidden slides when exporting all. Default `false`. */
|
|
10095
|
-
includeHidden?: boolean;
|
|
10096
|
-
/** Slide indices to export (0-based). If omitted, all slides are exported. */
|
|
10097
|
-
slideIndices?: number[];
|
|
10098
|
-
/** Default font family when the element does not specify one. */
|
|
10099
|
-
defaultFontFamily?: string;
|
|
10100
|
-
/** Default font size in points when the element does not specify one. */
|
|
10101
|
-
defaultFontSize?: number;
|
|
10102
|
-
/** Optional host font metrics. Headless exports fall back to measured font tables. */
|
|
10103
|
-
measureText?: SvgTextMeasurer;
|
|
10104
|
-
}
|
|
10105
|
-
/**
|
|
10106
|
-
* Pure-TypeScript SVG exporter for parsed PPTX data.
|
|
10107
|
-
*
|
|
10108
|
-
* Generates well-formed SVG XML strings without any DOM dependency.
|
|
10109
|
-
*
|
|
10110
|
-
* @example
|
|
10111
|
-
* ```ts
|
|
10112
|
-
* const svgs = SvgExporter.exportAll(pptxData);
|
|
10113
|
-
* for (const [i, svg] of svgs.entries()) {
|
|
10114
|
-
* fs.writeFileSync(`slide_${i + 1}.svg`, svg);
|
|
10115
|
-
* }
|
|
10116
|
-
* ```
|
|
10117
|
-
*/
|
|
10118
|
-
declare class SvgExporter {
|
|
10119
|
-
/**
|
|
10120
|
-
* Export a single slide to an SVG XML string.
|
|
10121
|
-
*
|
|
10122
|
-
* @param slide - The parsed slide.
|
|
10123
|
-
* @param width - SVG viewport width (pixels).
|
|
10124
|
-
* @param height - SVG viewport height (pixels).
|
|
10125
|
-
* @param options - Optional export settings.
|
|
10126
|
-
* @returns A complete SVG document as a string.
|
|
10127
|
-
*/
|
|
10128
|
-
static exportSlide(slide: PptxSlide, width: number, height: number, options?: SvgExportOptions): string;
|
|
10129
|
-
/**
|
|
10130
|
-
* Export all (or selected) slides to SVG XML strings.
|
|
10131
|
-
*
|
|
10132
|
-
* @param data - The fully parsed PPTX data.
|
|
10133
|
-
* @param options - Optional export settings.
|
|
10134
|
-
* @returns An array of SVG strings (one per exported slide).
|
|
10135
|
-
*/
|
|
10136
|
-
static exportAll(data: PptxData, options?: SvgExportOptions): string[];
|
|
10137
|
-
}
|
|
10138
|
-
//#endregion
|
|
10139
|
-
//#region pptx/converter/json/json-document.d.ts
|
|
10140
|
-
/**
|
|
10141
|
-
* The `pptx-viewer-json` document format: a portable, versioned,
|
|
10142
|
-
* self-contained JSON representation of a parsed presentation
|
|
10143
|
-
* ({@link PptxData}). Binary payloads are embedded (base64), so a document
|
|
10144
|
-
* round-trips standalone without the original `.pptx` archive.
|
|
10145
|
-
*
|
|
10146
|
-
* Top-level shape (version 1):
|
|
10147
|
-
*
|
|
10148
|
-
* ```json
|
|
10149
|
-
* {
|
|
10150
|
-
* "format": "pptx-viewer-json",
|
|
10151
|
-
* "version": 1,
|
|
10152
|
-
* "generator": "pptx-viewer-core",
|
|
10153
|
-
* "createdAt": "2026-01-01T00:00:00.000Z",
|
|
10154
|
-
* "slideCount": 3,
|
|
10155
|
-
* "assets": { "count": 2, "totalBytes": 51234 },
|
|
10156
|
-
* "presentation": { "width": 960, "height": 540, ... },
|
|
10157
|
-
* "slides": [ { "id": "...", "elements": [ ... ] }, ... ]
|
|
10158
|
-
* }
|
|
10159
|
-
* ```
|
|
10160
|
-
*
|
|
10161
|
-
* Field coverage mirrors the canonical inventories
|
|
10162
|
-
* (`SLIDE_FIELD_KIND` / `ELEMENT_FIELD_KIND`) plus a TypeScript-enforced
|
|
10163
|
-
* presentation-level key list, so no model field is silently dropped.
|
|
10164
|
-
*/
|
|
10165
|
-
/** Discriminating marker stored in the top-level `format` field. */
|
|
10166
|
-
declare const PPTX_JSON_FORMAT = "pptx-viewer-json";
|
|
10167
|
-
/** Current (and only) supported document version. */
|
|
10168
|
-
declare const PPTX_JSON_VERSION = 1;
|
|
10169
|
-
/** Suggested file extension for exported documents. */
|
|
10170
|
-
declare const PPTX_JSON_FILE_EXTENSION = ".json";
|
|
10171
|
-
/** MIME type used when downloading an exported document. */
|
|
10172
|
-
declare const PPTX_JSON_MIME_TYPE = "application/json";
|
|
10173
|
-
/** Size accounting for binary assets embedded in the document. */
|
|
10174
|
-
interface PptxJsonAssetStats {
|
|
10175
|
-
/** Number of embedded binary assets (base64 data URLs + raw byte fields). */
|
|
10176
|
-
count: number;
|
|
10177
|
-
/** Total decoded byte size of all embedded binary assets. */
|
|
10178
|
-
totalBytes: number;
|
|
10179
|
-
}
|
|
10180
|
-
/** A parsed and shape-validated `pptx-viewer-json` document. */
|
|
10181
|
-
interface PptxJsonDocument {
|
|
10182
|
-
format: typeof PPTX_JSON_FORMAT;
|
|
10183
|
-
version: typeof PPTX_JSON_VERSION;
|
|
10184
|
-
/** Producer identifier (informational, ignored on import). */
|
|
10185
|
-
generator?: string;
|
|
10186
|
-
/** ISO-8601 export timestamp (informational, ignored on import). */
|
|
10187
|
-
createdAt?: string;
|
|
10188
|
-
/** Convenience copy of `slides.length`; validated on import. */
|
|
10189
|
-
slideCount: number;
|
|
10190
|
-
/** Embedded-asset size accounting computed at export time. */
|
|
10191
|
-
assets: PptxJsonAssetStats;
|
|
10192
|
-
/** Presentation-level fields of `PptxData` (everything except `slides`). */
|
|
10193
|
-
presentation: Record<string, unknown>;
|
|
10194
|
-
/** JSON-encoded slides (see `SLIDE_FIELD_KIND` / `ELEMENT_FIELD_KIND`). */
|
|
10195
|
-
slides: Array<Record<string, unknown>>;
|
|
10196
|
-
}
|
|
10197
|
-
/**
|
|
10198
|
-
* Cheap text-level sniff: the text is a JSON object (leading `{` after
|
|
10199
|
-
* optional whitespace) and carries the `pptx-viewer-json` format marker.
|
|
10200
|
-
* Full validation happens in `parsePptxJsonDocument`.
|
|
10201
|
-
*/
|
|
10202
|
-
declare function isPptxJsonText(text: string): boolean;
|
|
10203
|
-
/**
|
|
10204
|
-
* Byte-level sniff + decode: returns the decoded text when the buffer looks
|
|
10205
|
-
* like a `pptx-viewer-json` document, or `null` for anything else (e.g. a
|
|
10206
|
-
* ZIP/OLE2 `.pptx`). Safe to call on arbitrary binary input.
|
|
10207
|
-
*/
|
|
10208
|
-
declare function decodePptxJsonText(data: ArrayBuffer | Uint8Array): string | null;
|
|
10209
|
-
//#endregion
|
|
10210
|
-
//#region pptx/converter/json/json-binary-codec.d.ts
|
|
10211
|
-
/**
|
|
10212
|
-
* Deep value codec for the `pptx-viewer-json` format.
|
|
10213
|
-
*
|
|
10214
|
-
* `PptxData` is almost entirely JSON-native, but a handful of fields carry
|
|
10215
|
-
* raw bytes (`Uint8Array`: presentation thumbnails, embedded font binaries,
|
|
10216
|
-
* embedded chart workbooks). This codec walks a value tree and:
|
|
10217
|
-
*
|
|
10218
|
-
* - encodes every `Uint8Array` as a tagged object `{ "$bytes": "<base64>" }`
|
|
10219
|
-
* so the document stays valid, self-contained JSON,
|
|
10220
|
-
* - escapes original object keys starting with `$` (prefixing one extra `$`)
|
|
10221
|
-
* so a coincidental `{ $bytes: ... }` in source data can never be
|
|
10222
|
-
* mis-decoded, and
|
|
10223
|
-
* - accounts embedded binary assets (tagged byte fields plus base64
|
|
10224
|
-
* `data:` URLs already stored as strings, e.g. `imageData`/`mediaData`).
|
|
10225
|
-
*/
|
|
10226
|
-
/** Mutable accumulator for embedded-asset size accounting. */
|
|
10227
|
-
interface JsonAssetAccumulator {
|
|
10228
|
-
count: number;
|
|
10229
|
-
totalBytes: number;
|
|
10230
|
-
}
|
|
10231
|
-
/** Encode raw bytes to base64 (Node `Buffer` when available, else `btoa`). */
|
|
10232
|
-
declare function bytesToBase64(bytes: Uint8Array): string;
|
|
10233
|
-
/** Decode base64 text to raw bytes (Node `Buffer` when available, else `atob`). */
|
|
10234
|
-
declare function base64ToBytes(base64: string): Uint8Array;
|
|
10235
|
-
/**
|
|
10236
|
-
* Recursively encode a model value into a JSON-safe value.
|
|
10237
|
-
* `undefined` entries inside objects are dropped (matching `JSON.stringify`).
|
|
10238
|
-
*/
|
|
10239
|
-
declare function encodeJsonValue(value: unknown, stats?: JsonAssetAccumulator): unknown;
|
|
10240
|
-
/** Recursively decode a JSON value produced by {@link encodeJsonValue}. */
|
|
10241
|
-
declare function decodeJsonValue(value: unknown): unknown;
|
|
10242
|
-
//#endregion
|
|
10243
|
-
//#region pptx/converter/json/presentation-field-keys.d.ts
|
|
10244
|
-
/**
|
|
10245
|
-
* Canonical inventory of the presentation-level fields of {@link PptxData}
|
|
10246
|
-
* (everything except `slides`, which the JSON document stores as its own
|
|
10247
|
-
* top-level array).
|
|
10248
|
-
*
|
|
10249
|
-
* Mirrors the pattern of `ELEMENT_FIELD_KIND` / `SLIDE_FIELD_KIND`
|
|
10250
|
-
* (`core/types/collaboration-field-schema.ts`): typed as
|
|
10251
|
-
* `Record<keyof Omit<PptxData, 'slides'>, true>` so TypeScript forces this
|
|
10252
|
-
* list to be updated whenever `PptxData` gains or loses a field, turning
|
|
10253
|
-
* "forgot to serialize a new presentation field" into a compile error
|
|
10254
|
-
* instead of silent JSON data loss.
|
|
10255
|
-
*/
|
|
10256
|
-
declare const PRESENTATION_FIELD_KEYS: Record<keyof Omit<PptxData, 'slides'>, true>;
|
|
10257
|
-
/** Ordered list of the presentation-level field names. */
|
|
10258
|
-
declare const PRESENTATION_FIELD_NAMES: ReadonlyArray<string>;
|
|
10259
|
-
//#endregion
|
|
10260
|
-
//#region pptx/converter/json/json-serializer.d.ts
|
|
10261
|
-
/** Options for {@link buildPptxJsonDocument}. */
|
|
10262
|
-
interface PptxJsonSerializeOptions {
|
|
10263
|
-
/** Producer identifier written into the `generator` field. */
|
|
10264
|
-
generator?: string;
|
|
10265
|
-
/**
|
|
10266
|
-
* Whether to stamp `createdAt` with the current time. Defaults to `true`;
|
|
10267
|
-
* disable for byte-stable output (e.g. snapshot tests).
|
|
10268
|
-
*/
|
|
10269
|
-
includeTimestamp?: boolean;
|
|
10270
|
-
}
|
|
10271
|
-
/**
|
|
10272
|
-
* Serialize a parsed presentation into a versioned, self-contained
|
|
10273
|
-
* `pptx-viewer-json` document. Binary payloads (thumbnails, embedded fonts,
|
|
10274
|
-
* chart workbooks) are embedded as tagged base64; images and media already
|
|
10275
|
-
* live in the model as base64 data URLs and are carried verbatim. Field
|
|
10276
|
-
* coverage is driven by the canonical inventories (`SLIDE_FIELD_KIND`,
|
|
10277
|
-
* `ELEMENT_FIELD_KIND`, `PRESENTATION_FIELD_KEYS`) so no model field is
|
|
10278
|
-
* silently dropped.
|
|
10279
|
-
*/
|
|
10280
|
-
declare function buildPptxJsonDocument(data: PptxData, options?: PptxJsonSerializeOptions): PptxJsonDocument;
|
|
10281
|
-
/** Serialize a presentation straight to JSON text. */
|
|
10282
|
-
declare function serializePptxToJson(data: PptxData, options?: PptxJsonSerializeOptions & {
|
|
10283
|
-
pretty?: boolean;
|
|
10284
|
-
}): string;
|
|
10285
|
-
//#endregion
|
|
10286
|
-
//#region pptx/converter/json/json-deserializer.d.ts
|
|
10287
|
-
/** Error thrown when a candidate document fails `pptx-viewer-json` validation. */
|
|
10288
|
-
declare class PptxJsonFormatError extends Error {
|
|
10289
|
-
constructor(message: string);
|
|
10290
|
-
}
|
|
10291
|
-
/**
|
|
10292
|
-
* Validate an arbitrary parsed JSON value as a `pptx-viewer-json` document.
|
|
10293
|
-
* Performs structural narrowing only (no `any`, no blind casts on the
|
|
10294
|
-
* envelope): the format marker, version, slide array, per-slide element
|
|
10295
|
-
* arrays, and per-element `type` discriminants are all checked.
|
|
10296
|
-
*/
|
|
10297
|
-
declare function parsePptxJsonDocument(value: unknown): PptxJsonDocument;
|
|
10298
|
-
/** Parse and validate JSON text as a `pptx-viewer-json` document. */
|
|
10299
|
-
declare function parsePptxJson(text: string): PptxJsonDocument;
|
|
10300
|
-
/**
|
|
10301
|
-
* Rebuild a {@link PptxData} model from a validated document. Field coverage
|
|
10302
|
-
* mirrors serialization: only fields present in the canonical inventories are
|
|
10303
|
-
* accepted, and tagged binary payloads are decoded back to `Uint8Array`.
|
|
10304
|
-
*/
|
|
10305
|
-
declare function pptxDataFromJsonDocument(document: PptxJsonDocument): PptxData;
|
|
10306
|
-
/** Convenience: parse, validate, and rebuild in one step. */
|
|
10307
|
-
declare function deserializePptxFromJson(text: string): PptxData;
|
|
10308
|
-
//#endregion
|
|
10309
|
-
//#region pptx/converter/json/PptxJsonConverter.d.ts
|
|
10310
|
-
/** Options for a {@link PptxJsonConverter} instance. */
|
|
10311
|
-
interface PptxJsonConverterOptions extends PptxJsonSerializeOptions {
|
|
10312
|
-
/** Pretty-print JSON output with 2-space indentation. */
|
|
10313
|
-
pretty?: boolean;
|
|
10314
|
-
}
|
|
10315
|
-
/**
|
|
10316
|
-
* Converts a parsed {@link PptxData} presentation to and from the portable
|
|
10317
|
-
* `pptx-viewer-json` document format.
|
|
10318
|
-
*
|
|
10319
|
-
* Sibling of {@link PptxMarkdownConverter}: where the markdown converter
|
|
10320
|
-
* produces a lossy human-readable rendition, this converter produces a
|
|
10321
|
-
* lossless (model-level), versioned, self-contained JSON document that can
|
|
10322
|
-
* be re-imported without the original `.pptx` archive.
|
|
10323
|
-
*
|
|
10324
|
-
* @example
|
|
10325
|
-
* ```ts
|
|
10326
|
-
* const converter = new PptxJsonConverter({ generator: 'my-app' });
|
|
10327
|
-
* const json = converter.toJson(pptxData);
|
|
10328
|
-
* const roundTripped = converter.fromJson(json);
|
|
10329
|
-
* ```
|
|
10330
|
-
*/
|
|
10331
|
-
declare class PptxJsonConverter {
|
|
10332
|
-
private readonly options;
|
|
10333
|
-
constructor(options?: PptxJsonConverterOptions);
|
|
10334
|
-
/** Serialize a presentation into a structured JSON document. */
|
|
10335
|
-
toDocument(data: PptxData): PptxJsonDocument;
|
|
10336
|
-
/** Serialize a presentation straight to JSON text. */
|
|
10337
|
-
toJson(data: PptxData): string;
|
|
10338
|
-
/** Validate an arbitrary parsed JSON value as a document. */
|
|
10339
|
-
parseDocument(value: unknown): PptxJsonDocument;
|
|
10340
|
-
/** Rebuild the presentation model from JSON text (parse + validate). */
|
|
10341
|
-
fromJson(text: string): PptxData;
|
|
10342
|
-
/** Rebuild the presentation model from a validated document. */
|
|
10343
|
-
fromDocument(document: PptxJsonDocument): PptxData;
|
|
10344
|
-
/** Static counterpart of {@link fromJson}. */
|
|
10345
|
-
static fromJson(text: string): PptxData;
|
|
10346
|
-
/** Static counterpart of {@link toJson}. */
|
|
10347
|
-
static toJson(data: PptxData, options?: PptxJsonConverterOptions): string;
|
|
10348
|
-
/** Parse and validate JSON text as a document without rebuilding the model. */
|
|
10349
|
-
static parse(text: string): PptxJsonDocument;
|
|
10350
|
-
/** Cheap text-level sniff for the format marker. */
|
|
10351
|
-
static isPptxJsonText(text: string): boolean;
|
|
10352
|
-
/** Byte-level sniff + decode; `null` for non-JSON (e.g. ZIP) input. */
|
|
10353
|
-
static decodeText(data: ArrayBuffer | Uint8Array): string | null;
|
|
10354
|
-
}
|
|
10355
|
-
/**
|
|
10356
|
-
* Overlay an imported presentation onto a freshly loaded base presentation
|
|
10357
|
-
* (typically a blank one generated for JSON import): every presentation-level
|
|
10358
|
-
* field defined on `imported` wins, fields it lacks keep the base value (so a
|
|
10359
|
-
* blank deck's theme scaffolding survives when the document carries none),
|
|
10360
|
-
* and the slide array is replaced wholesale. Mutates and returns `base`.
|
|
10361
|
-
*/
|
|
10362
|
-
declare function applyImportedPptxData(base: PptxData, imported: PptxData): PptxData;
|
|
10363
|
-
//#endregion
|
|
10364
|
-
export { duplicateLayout as $, applyCustomShows as $i, nextAutoNumber as $n, PptxSlideRelationshipRegistryOptions as $r, TextStyleInput as $t, SlideProcessor as A, PptxSlideNotesResult as Aa, normalizeNamespaceUri as Ai, updateChartDataPoint as An, PptxSlideBackgroundBuilderInput as Ar, BackgroundInput as At, generateMediaFilename as B, PptxConnectorParserContext as Ba, SignatureDetectionResult as Bi, createDefaultPptxHandlerRuntime as Bn, PptxSlideCommentPartWriterInput as Br, PlaceholderOptions as Bt, PptxJsonAssetStats as C, PptxXmlLookupService as Ca, parsePresentationSmartTags as Ci, setChartSeriesChartType as Cn, PptxShapeStyleExtractor as Cr, diffSlides as Ct, SvgExportOptions as D, PptxMediaTimingMap as Da, detectStrictConformance as Di, setChartSeriesTrendline as Dn, PptxColorStyleCodecContext as Dr, buildBlankPresentationArchive as Dt, isPptxJsonText as E, PptxMediaTimingEntry as Ea, convertXmlToStrict as Ei, setChartSeriesMarker as En, PptxColorStyleCodec as Er, PresentationBuilderResult as Et, deriveOutputPath as F, CompatibilityWarningInput as Fa, reapplyAlternateContentToTree as Fi, ChartGradientStopInput as Fn, PptxSlideMediaRelationshipBuilder as Fr, ElementPosition as Ft, DuplicateMasterSuccess as G, PptxSlideBuilder as Ga, parseSignatureXml as Gi, PptxHandlerSaveOptions as Gn, IPptxCommentAuthorsXmlFactory as Gr, StrokeInput as Gt, ConversionResult as H, applyDiagramRelationshipIds as Ha, SignatureStatus as Hi, IPptxHandlerRuntime as Hn, PptxCommentAuthorsXmlFactory as Hr, PresentationThemeInput as Ht, getDirectory as I, IPptxCompatibilityService as Ia, selectAlternateContentBranch as Ii, toChartGradientFill as In, IPptxElementTransformUpdater as Ir, FillInput as It, insertSlideMaster as J, PptxXmlBuilder as Ja, EncryptionInfo as Ji, BackgroundStyleApplication as Jn, PptxCommentAuthorsXmlFactoryInit as Jr, TableOptions as Jt, deleteSlideMaster as K, PptxSlideElementsBuilder as Ka, verifySignatureDigests as Ki, PptxSaveFormat as Kn, IPptxCommentXmlFactoryProvider as Kr, TableCellInput as Kt, normalizePath as L, PptxCompatibilityService as La, unwrapAlternateContent as Li, PptxHandlerRuntime as Ln, PptxElementTransformUpdater as Lr, GroupOptions as Lt, PptxConverterOptions as M, PptxTemplateBackgroundService as Ma, toStrictNamespaceUri as Mi, ChartAreaFormatInput as Mn, PptxSlideNotesPartUpdater as Mr, ChartOptions as Mt, PptxMarkdownConverter as N, PptxTemplateBackgroundState as Na, AlternateContentBlock as Ni, ChartGroupOptionsInput as Nn, PptxSlideNotesPartUpdaterInput as Nr, ChartSeriesInput as Nt, SvgExporter as O, PptxSlideLoaderParams as Oa, isStrictNamespaceUri as Oi, setChartTitle as On, IPptxSlideBackgroundBuilder as Or, SlideBuilder as Ot, DocumentConverter as P, PptxDocumentPropertiesUpdater as Pa, SHAPE_TREE_ELEMENT_TAGS as Pi, ChartGradientInput as Pn, IPptxSlideMediaRelationshipBuilder as Pr, ConnectorOptions as Pt, deleteLayout as Q, PptxSlideReferenceRemap as Qi, createAutoNumberSequence as Qn, PptxSlideRelationshipRegistry as Qr, TextSegmentInput as Qt, MediaContext as R, IPptxConnectorParser as Ra, ParsedSignature as Ri, IPptxHandlerRuntimeFactory as Rn, IPptxSlideCommentPartWriter as Rr, ImageOptions as Rt, PPTX_JSON_VERSION as S, IPptxXmlLookupService as Sa, loadThemeVariants as Si, setChartLegend as Sn, IPptxShapeStyleExtractor as Sr, diffPresentations as St, decodePptxJsonText as T, IPptxSlideLoaderService as Ta, containsConvertibleStrictNamespaceAttribute as Ti, setChartSeriesErrorBars as Tn, IPptxColorStyleCodec as Tr, PresentationBuilder as Tt, FileSystemAdapter as U, parseDiagramRelationshipIds as Ua, detectDigitalSignatures as Ui, MAX_ZIP_ENTRY_COUNT as Un, PptxSlideCommentsXmlFactory as Ur, ShadowInput as Ut, ConversionOptions as V, DiagramRelationshipIds as Va, SignatureReference as Vi, DEFAULT_MAX_UNCOMPRESSED_BYTES as Vn, PptxCommentXmlFactoryProvider as Vr, PresentationOptions as Vt, DuplicateMasterResult as W, IPptxXmlBuilder as Wa, getSignaturePathsToStrip as Wi, PptxHandlerLoadOptions as Wn, ICoreXmlElementFactory as Wr, ShapeOptions as Wt, DuplicateLayoutResult as X, THEME_PRESETS as Xa, EncryptionScheme as Xi, StyleReferenceReResolution as Xn, IPptxSlideRelationshipRegistry as Xr, TextOptions as Xt, renameSlideMaster as Y, PptxThemePreset as Ya, EncryptionOptions as Yi, BackgroundStyleScope as Yn, PptxSlideCommentsXmlFactoryInit as Yr, TableRowInput as Yt, DuplicateLayoutSuccess as Z, StandardEncryptionInfo as Zi, breakAutoNumberRun as Zn, PptxSlideCommentRelationshipInfo as Zr, TextPlaceholderType as Zt, decodeJsonValue as _, IPptxNativeAnimationService as _a, PptxSaveConstants as _i, setChartDataPointExplosion as _n, PptxMediaDataParser as _r, TemplateData as _t, deserializePptxFromJson as a, PptxRuntimeDependencyFactoryInput as aa, PptxCommentAuthorDescriptor as ai, PptxChartAxisType as an, IPictureXmlFactory as ar, LayoutCreationResult as at, PPTX_JSON_FORMAT as b, PptxEditorAnimationService as ba, IFactory as bi, setChartDataPointMarker as bn, PptxTableDataParser as br, PropertyChange as bt, pptxDataFromJsonDocument as c, OOXML_TO_PRESET_ENTR as ca, PptxSaveStateBuilder as ci, addChartSeries as cn, IXmlElementFactory as cr, createLayout as ct, serializePptxToJson as d, ooxmlToPresetName as da, PptxPresentationSaveBuilder as di, setChartAxis as dn, PptxBuilderFactoryContext as dr, findLayoutByType as dt, applySections as ea, SlideReferenceRemapInput as ei, TransitionInput as en, PptxElementXmlBuilder as er, insertLayout as et, PRESENTATION_FIELD_KEYS as f, resolveOoxmlPresetMapping as fa, PptxPresentationSaveBuilderOptions as fi, setChartAxisGridlineStyle as fn, TextShapeXmlFactoryInit as fr, generateLayoutXml as ft, bytesToBase64 as g, PptxSlideTransitionServiceOptions as ga, PptxContentTypesSlideMediaBuildInput as gi, setChartDataLabels as gn, IPptxMediaDataParser as gr, mailMerge as gt, base64ToBytes as h, PptxSlideTransitionService as ha, PptxContentTypesCommentBuildInput as hi, setChartCategories as hn, PptxGraphicFrameParserContext as hr, findPlaceholders as ht, PptxJsonFormatError as i, PptxRuntimeDependencyFactory as ia, PptxPresentationSlidesReconcilerInput as ii, ChartGridlineStyleEdit as in, IMediaGraphicFrameXmlFactory as ir, MasterLayoutCrudSuccess as it, SlideProcessorOptions as j, IPptxTemplateBackgroundService as ja, normalizeStrictXml as ji, updateChartSeriesValues as jn, IPptxSlideNotesPartUpdater as jr, ChartInput as jt, SlideMetadataRenderer as k, PptxSlideLoaderThemeOverride as ka, isTransitionalNamespaceUri as ki, setChartType as kn, PptxSlideBackgroundBuilder as kr, AnimationInput as kt, PptxJsonSerializeOptions as l, OOXML_TO_PRESET_EXIT as la, IPptxPresentationSaveBuilder as li, removeChartCategory as ln, MediaGraphicFrameXmlFactoryInit as lr, createLayouts as lt, JsonAssetAccumulator as m, IPptxSlideTransitionService as ma, PptxContentTypesBuilder as mi, setChartAxisTitleStyle as mn, PptxGraphicFrameParser as mr, applyTemplate as mt, PptxJsonConverterOptions as n, IPptxRuntimeDependencyFactory as na, IPptxPresentationSlidesReconciler as ni, ChartAxisTitleStyleEdit as nn, ConnectorXmlFactoryInit as nr, MasterLayoutCrudFailure as nt, parsePptxJson as o, IPptxAnimationWriteService as oa, PptxSaveMediaKind as oi, PptxChartLegendPosition as on, IPptxXmlFactoryProvider as or, LayoutDefinition as ot, PRESENTATION_FIELD_NAMES as p, OoxmlPresetMapping as pa, IPptxContentTypesBuilder as pi, setChartAxisLogScale as pn, IPptxGraphicFrameParser as pr, Presentation as pt, duplicateSlideMaster as q, PptxSlideNotesBuilder as qa, EncryptionAlgorithm as qi, ZipBombError as qn, IPptxSlideCommentsXmlFactory as qr, TableInput as qt, applyImportedPptxData as r, PptxRuntimeDependencyBundle as ra, PptxPresentationSlidesReconciler as ri, ChartDataPointLabelEdit as rn, IConnectorXmlFactory as rr, MasterLayoutCrudResult as rt, parsePptxJsonDocument as s, OOXML_TO_PRESET_EMPH as sa, PptxSaveState as si, addChartCategory as sn, ITextShapeXmlFactory as sr, PlaceholderDefinition as st, PptxJsonConverter as t, parseCustomShows as ta, buildSlideReferenceRemap as ti, ChartAxisEdit as tn, PptxElementXmlBuilderOptions as tr, renameLayout as tt, buildPptxJsonDocument as u, PRESET_TO_OOXML as ua, PptxPresentationSaveBuildInput as ui, removeChartSeries as un, PictureXmlFactoryInit as ur, findLayoutByName as ut, encodeJsonValue as v, PptxNativeAnimationService as va, PptxSaveConstantsFactory as vi, setChartDataPointFill as vn, PptxMediaDataParserContext as vr, ElementDiff as vt, PptxJsonDocument as w, PptxSlideLoaderService as wa, OoxmlConformanceClass as wi, setChartSeriesColor as wn, PptxShapeStyleExtractorContext as wr, PptxHandler as wt, PPTX_JSON_MIME_TYPE as x, PptxEditorAnimationServiceOptions as xa, ResolveChartColor as xi, setChartGrouping as xn, PptxTableDataParserContext as xr, SlideDiff as xt, PPTX_JSON_FILE_EXTENSION as y, IPptxEditorAnimationService as ya, createPptxSaveConstants as yi, setChartDataPointLabel as yn, IPptxTableDataParser as yr, PresentationDiff as yt, dataUrlToMediaBytes as z, PptxConnectorParser as za, SignatureCertificateInfo as zi, PptxHandlerRuntimeFactory as zn, PptxSlideCommentPartWriter as zr, MediaOptions as zt };
|
|
10365
|
-
//# sourceMappingURL=index-CPhsd7Df.d.ts.map
|
|
9554
|
+
export { PresentationThemeInput as $, DiagramRelationshipIds as $i, PptxCommentXmlFactoryProvider as $n, SignatureReference as $r, IPptxHandlerRuntime as $t, PresentationDiff as A, PptxNativeAnimationService as Ai, PptxMediaDataParserContext as An, PptxSaveConstantsFactory as Ar, setChartDataPointLabel as At, AnimationInput as B, PptxSlideLoaderParams as Bi, IPptxSlideBackgroundBuilder as Bn, isStrictNamespaceUri as Br, setChartType as Bt, generateLayoutXml as C, ooxmlToPresetName as Ci, PptxBuilderFactoryContext as Cn, PptxPresentationSaveBuilder as Cr, setChartAxisGridlineStyle as Ct, mailMerge as D, PptxSlideTransitionService as Di, PptxGraphicFrameParserContext as Dn, PptxContentTypesCommentBuildInput as Dr, setChartDataLabels as Dt, findPlaceholders as E, IPptxSlideTransitionService as Ei, PptxGraphicFrameParser as En, PptxContentTypesBuilder as Er, setChartCategories as Et, PptxHandler as F, PptxXmlLookupService as Fi, PptxShapeStyleExtractor as Fn, parsePresentationSmartTags as Fr, setChartSeriesColor as Ft, ConnectorOptions as G, PptxTemplateBackgroundState as Gi, PptxSlideNotesPartUpdaterInput as Gn, AlternateContentBlock as Gr, ChartGradientInput as Gt, ChartInput as H, PptxSlideNotesResult as Hi, PptxSlideBackgroundBuilderInput as Hn, normalizeNamespaceUri as Hr, updateChartSeriesValues as Ht, PresentationBuilder as I, PptxSlideLoaderService as Ii, PptxShapeStyleExtractorContext as In, OoxmlConformanceClass as Ir, setChartSeriesErrorBars as It, GroupOptions as J, IPptxCompatibilityService as Ji, IPptxElementTransformUpdater as Jn, selectAlternateContentBranch as Jr, PptxHandlerRuntime as Jt, ElementPosition as K, PptxDocumentPropertiesUpdater as Ki, IPptxSlideMediaRelationshipBuilder as Kn, SHAPE_TREE_ELEMENT_TAGS as Kr, ChartGradientStopInput as Kt, PresentationBuilderResult as L, IPptxSlideLoaderService as Li, IPptxColorStyleCodec as Ln, containsConvertibleStrictNamespaceAttribute as Lr, setChartSeriesMarker as Lt, SlideDiff as M, PptxEditorAnimationService as Mi, PptxTableDataParser as Mn, IFactory as Mr, setChartGrouping as Mt, diffPresentations as N, PptxEditorAnimationServiceOptions as Ni, PptxTableDataParserContext as Nn, ResolveChartColor as Nr, setChartLegend as Nt, TemplateData as O, PptxSlideTransitionServiceOptions as Oi, IPptxMediaDataParser as On, PptxContentTypesSlideMediaBuildInput as Or, setChartDataPointExplosion as Ot, diffSlides as P, IPptxXmlLookupService as Pi, IPptxShapeStyleExtractor as Pn, loadThemeVariants as Pr, setChartSeriesChartType as Pt, PresentationOptions as Q, PptxConnectorParserContext as Qi, PptxSlideCommentPartWriterInput as Qn, SignatureDetectionResult as Qr, DEFAULT_MAX_UNCOMPRESSED_BYTES as Qt, buildBlankPresentationArchive as R, PptxMediaTimingEntry as Ri, PptxColorStyleCodec as Rn, convertXmlToStrict as Rr, setChartSeriesTrendline as Rt, findLayoutByType as S, PRESET_TO_OOXML as Si, PictureXmlFactoryInit as Sn, PptxPresentationSaveBuildInput as Sr, setChartAxis as St, applyTemplate as T, OoxmlPresetMapping as Ti, IPptxGraphicFrameParser as Tn, IPptxContentTypesBuilder as Tr, setChartAxisTitleStyle as Tt, ChartOptions as U, IPptxTemplateBackgroundService as Ui, IPptxSlideNotesPartUpdater as Un, normalizeStrictXml as Ur, ChartAreaFormatInput as Ut, BackgroundInput as V, PptxSlideLoaderThemeOverride as Vi, PptxSlideBackgroundBuilder as Vn, isTransitionalNamespaceUri as Vr, updateChartDataPoint as Vt, ChartSeriesInput as W, PptxTemplateBackgroundService as Wi, PptxSlideNotesPartUpdater as Wn, toStrictNamespaceUri as Wr, ChartGroupOptionsInput as Wt, MediaOptions as X, IPptxConnectorParser as Xi, IPptxSlideCommentPartWriter as Xn, ParsedSignature as Xr, PptxHandlerRuntimeFactory as Xt, ImageOptions as Y, PptxCompatibilityService as Yi, PptxElementTransformUpdater as Yn, unwrapAlternateContent as Yr, IPptxHandlerRuntimeFactory as Yt, PlaceholderOptions as Z, PptxConnectorParser as Zi, PptxSlideCommentPartWriter as Zn, SignatureCertificateInfo as Zr, createDefaultPptxHandlerRuntime as Zt, LayoutDefinition as _, PptxRuntimeDependencyFactoryInput as _i, IPictureXmlFactory as _n, PptxCommentAuthorDescriptor as _r, PptxChartLegendPosition as _t, insertSlideMaster as a, PptxSlideNotesBuilder as aa, EncryptionAlgorithm as ai, ZipBombError as an, IPptxSlideCommentsXmlFactory as ar, TableOptions as at, createLayouts as b, OOXML_TO_PRESET_ENTR as bi, IXmlElementFactory as bn, PptxSaveStateBuilder as br, removeChartCategory as bt, DuplicateLayoutSuccess as c, THEME_PRESETS as ca, EncryptionScheme as ci, StyleReferenceReResolution as cn, IPptxSlideRelationshipRegistry as cr, TextPlaceholderType as ct, insertLayout as d, applyCustomShows as di, nextAutoNumber as dn, PptxSlideRelationshipRegistryOptions as dr, TransitionInput as dt, applyDiagramRelationshipIds as ea, SignatureStatus as ei, MAX_ZIP_ENTRY_COUNT as en, PptxCommentAuthorsXmlFactory as er, ShadowInput as et, renameLayout as f, applySections as fi, PptxElementXmlBuilder as fn, SlideReferenceRemapInput as fr, ChartAxisEdit as ft, LayoutCreationResult as g, PptxRuntimeDependencyFactory as gi, IMediaGraphicFrameXmlFactory as gn, PptxPresentationSlidesReconcilerInput as gr, PptxChartAxisType as gt, MasterLayoutCrudSuccess as h, PptxRuntimeDependencyBundle as hi, IConnectorXmlFactory as hn, PptxPresentationSlidesReconciler as hr, ChartGridlineStyleEdit as ht, duplicateSlideMaster as i, PptxSlideElementsBuilder as ia, verifySignatureDigests as ii, PptxSvgRasterizer as in, IPptxCommentXmlFactoryProvider as ir, TableInput as it, PropertyChange as j, IPptxEditorAnimationService as ji, IPptxTableDataParser as jn, createPptxSaveConstants as jr, setChartDataPointMarker as jt, ElementDiff as k, IPptxNativeAnimationService as ki, PptxMediaDataParser as kn, PptxSaveConstants as kr, setChartDataPointFill as kt, deleteLayout as l, StandardEncryptionInfo as li, breakAutoNumberRun as ln, PptxSlideCommentRelationshipInfo as lr, TextSegmentInput as lt, MasterLayoutCrudResult as m, IPptxRuntimeDependencyFactory as mi, ConnectorXmlFactoryInit as mn, IPptxPresentationSlidesReconciler as mr, ChartDataPointLabelEdit as mt, DuplicateMasterSuccess as n, IPptxXmlBuilder as na, getSignaturePathsToStrip as ni, PptxHandlerSaveOptions as nn, ICoreXmlElementFactory as nr, StrokeInput as nt, renameSlideMaster as o, PptxXmlBuilder as oa, EncryptionInfo as oi, BackgroundStyleApplication as on, PptxCommentAuthorsXmlFactoryInit as or, TableRowInput as ot, MasterLayoutCrudFailure as p, parseCustomShows as pi, PptxElementXmlBuilderOptions as pn, buildSlideReferenceRemap as pr, ChartAxisTitleStyleEdit as pt, FillInput as q, CompatibilityWarningInput as qi, PptxSlideMediaRelationshipBuilder as qn, reapplyAlternateContentToTree as qr, toChartGradientFill as qt, deleteSlideMaster as r, PptxSlideBuilder as ra, parseSignatureXml as ri, PptxSaveFormat as rn, IPptxCommentAuthorsXmlFactory as rr, TableCellInput as rt, DuplicateLayoutResult as s, PptxThemePreset as sa, EncryptionOptions as si, BackgroundStyleScope as sn, PptxSlideCommentsXmlFactoryInit as sr, TextOptions as st, DuplicateMasterResult as t, parseDiagramRelationshipIds as ta, detectDigitalSignatures as ti, PptxHandlerLoadOptions as tn, PptxSlideCommentsXmlFactory as tr, ShapeOptions as tt, duplicateLayout as u, PptxSlideReferenceRemap as ui, createAutoNumberSequence as un, PptxSlideRelationshipRegistry as ur, TextStyleInput as ut, PlaceholderDefinition as v, IPptxAnimationWriteService as vi, IPptxXmlFactoryProvider as vn, PptxSaveMediaKind as vr, addChartCategory as vt, Presentation as w, resolveOoxmlPresetMapping as wi, TextShapeXmlFactoryInit as wn, PptxPresentationSaveBuilderOptions as wr, setChartAxisLogScale as wt, findLayoutByName as x, OOXML_TO_PRESET_EXIT as xi, MediaGraphicFrameXmlFactoryInit as xn, IPptxPresentationSaveBuilder as xr, removeChartSeries as xt, createLayout as y, OOXML_TO_PRESET_EMPH as yi, ITextShapeXmlFactory as yn, PptxSaveState as yr, addChartSeries as yt, SlideBuilder as z, PptxMediaTimingMap as zi, PptxColorStyleCodecContext as zn, detectStrictConformance as zr, setChartTitle as zt };
|
|
9555
|
+
//# sourceMappingURL=index-nKQ4s7FA.d.ts.map
|