pptx-react-viewer 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +587 -288
- package/dist/index.mjs +587 -288
- package/dist/pptx-viewer.css +1 -1
- package/dist/viewer/index.js +587 -288
- package/dist/viewer/index.mjs +587 -288
- package/node_modules/emf-converter/package.json +2 -2
- package/node_modules/mtx-decompressor/package.json +2 -2
- package/node_modules/pptx-viewer-core/dist/{SvgExporter-BMjoxMDV.d.ts → SvgExporter-0TxiiorD.d.ts} +1 -1
- package/node_modules/pptx-viewer-core/dist/{SvgExporter-z6AbXRQg.d.mts → SvgExporter-BQ4KbRO9.d.mts} +1 -1
- package/node_modules/pptx-viewer-core/dist/cli/index.d.mts +2 -2
- package/node_modules/pptx-viewer-core/dist/cli/index.d.ts +2 -2
- package/node_modules/pptx-viewer-core/dist/cli/index.js +2711 -304
- package/node_modules/pptx-viewer-core/dist/cli/index.mjs +2711 -304
- package/node_modules/pptx-viewer-core/dist/converter/index.d.mts +3 -3
- package/node_modules/pptx-viewer-core/dist/converter/index.d.ts +3 -3
- package/node_modules/pptx-viewer-core/dist/index.d.mts +692 -44
- package/node_modules/pptx-viewer-core/dist/index.d.ts +692 -44
- package/node_modules/pptx-viewer-core/dist/index.js +2794 -373
- package/node_modules/pptx-viewer-core/dist/index.mjs +2785 -373
- package/node_modules/pptx-viewer-core/dist/{presentation-CchuDGfU.d.mts → presentation-ArhfImJ5.d.mts} +225 -8
- package/node_modules/pptx-viewer-core/dist/{presentation-CchuDGfU.d.ts → presentation-ArhfImJ5.d.ts} +225 -8
- package/node_modules/pptx-viewer-core/dist/{text-operations-CeukUztU.d.mts → text-operations-CLj-sJyk.d.mts} +1 -1
- package/node_modules/pptx-viewer-core/dist/{text-operations-e7JxgI5l.d.ts → text-operations-rhJV-A_W.d.ts} +1 -1
- package/node_modules/pptx-viewer-core/package.json +5 -5
- package/package.json +20 -20
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { P as PptxElement, a as PptxElementWithShapeStyle, b as PptxElementWithText, C as ConnectorPptxElement, c as PptxImageLikeElement, I as InkPptxElement, S as ShapePptxElement, T as TextPptxElement, Z as ZoomPptxElement, d as PptxThemeColorScheme, e as PptxThemeFontScheme, f as PptxAnimationPreset, g as PptxAnimationTrigger, h as StrokeDashType, i as ConnectorArrowType, j as PptxTransitionType, k as PptxChartType, l as PptxSlide, m as PptxData, n as PptxCompatibilityWarning, o as PptxLayoutOption, X as XmlObject, p as PptxChartData, q as PptxSmartArtData, r as PptxHeaderFooter, s as PptxPresentationProperties, t as PptxCustomShow, u as PptxSection, v as PptxCoreProperties, w as PptxAppProperties, x as PptxCustomProperty, y as PptxNotesMaster, z as PptxHandoutMaster, A as PptxTagCollection, B as PptxPhotoAlbum, D as PptxKinsoku, E as PptxModifyVerifier, F as PptxViewProperties, G as PptxEmbeddedFont, H as PptxExportOptions, J as PptxThemeFormatScheme, K as TextSegment, L as PptxComment, M as PptxSlideTransition, N as PptxElementAnimation, O as PptxNativeAnimation, Q as PptxCustomerData, R as PptxActiveXControl, U as AnimationCondition, V as ShapeStyle, W as TextStyle, Y as ElementAction, _ as PptxAction, $ as OleObjectType, a0 as PptxSmartArtNode, a1 as SmartArtLayoutType, a2 as PptxSmartArtDrawingShape, a3 as PptxChartDataTable, a4 as PptxChartLineStyle, a5 as PptxChartErrBars, a6 as PptxChartTrendline, a7 as PptxChartMarker, a8 as PptxChartDataLabel, a9 as PptxChartDataPoint, aa as PptxChartShapeProps, ab as PptxChart3DSurface, ac as PptxChartAxisFormatting, ad as PptxEmbeddedWorkbookData, ae as PptxDrawingGuide, af as PptxTableCellStyle, ag as PptxCustomXmlPart, ah as PptxCommentAuthor, ai as MediaPptxElement, aj as PptxTableData, ak as PptxTheme, al as ParsedTableStyleMap, am as PptxSlideMaster, an as PptxThemeOption, ao as PlaceholderDefaults, ap as
|
|
2
|
-
export {
|
|
3
|
-
import { F as FindResult, M as MergeOptions } from './text-operations-
|
|
4
|
-
export { f as findText, m as mergePresentation, r as replaceText, a as replaceTextInSlide } from './text-operations-
|
|
1
|
+
import { P as PptxElement, a as PptxElementWithShapeStyle, b as PptxElementWithText, C as ConnectorPptxElement, c as PptxImageLikeElement, I as InkPptxElement, S as ShapePptxElement, T as TextPptxElement, Z as ZoomPptxElement, d as PptxThemeColorScheme, e as PptxThemeFontScheme, f as PptxAnimationPreset, g as PptxAnimationTrigger, h as StrokeDashType, i as ConnectorArrowType, j as PptxTransitionType, k as PptxChartType, l as PptxSlide, m as PptxData, n as PptxCompatibilityWarning, o as PptxLayoutOption, X as XmlObject, p as PptxChartData, q as PptxSmartArtData, r as PptxHeaderFooter, s as PptxPresentationProperties, t as PptxCustomShow, u as PptxSection, v as PptxCoreProperties, w as PptxAppProperties, x as PptxCustomProperty, y as PptxNotesMaster, z as PptxHandoutMaster, A as PptxTagCollection, B as PptxPhotoAlbum, D as PptxKinsoku, E as PptxModifyVerifier, F as PptxViewProperties, G as PptxEmbeddedFont, H as PptxExportOptions, J as PptxThemeFormatScheme, K as TextSegment, L as PptxComment, M as PptxSlideTransition, N as PptxElementAnimation, O as PptxNativeAnimation, Q as PptxCustomerData, R as PptxActiveXControl, U as AnimationCondition, V as ShapeStyle, W as TextStyle, Y as ElementAction, _ as PptxAction, $ as OleObjectType, a0 as PptxSmartArtNode, a1 as SmartArtLayoutType, a2 as PptxSmartArtDrawingShape, a3 as PptxChartDataTable, a4 as PptxChartLineStyle, a5 as PptxChartErrBars, a6 as PptxChartTrendline, a7 as PptxChartMarker, a8 as PptxChartDataLabel, a9 as PptxChartDataPoint, aa as PptxChartShapeProps, ab as PptxChart3DSurface, ac as PptxChartAxisFormatting, ad as PptxEmbeddedWorkbookData, ae as PptxDrawingGuide, af as PptxTableCellStyle, ag as PptxCustomXmlPart, ah as PptxCommentAuthor, ai as MediaPptxElement, aj as PptxTableData, ak as PptxTheme, al as ParsedTableStyleMap, am as PptxSlideMaster, an as PptxThemeOption, ao as PlaceholderDefaults, ap as PptxMasterTextStyles, aq as PptxThemeObjectDefaults, ar as ParsedTableStyleFill, as as ParsedTableStyleText, at as PptxImageEffects, au as MediaBookmark, av as PptxChartStyle, aw as TablePptxElement, ax as OlePptxElement, ay as GroupPptxElement, az as PlaceholderTextLevelStyle, aA as PptxChartSeries, aB as SmartArtPptxElement, aC as GeometryAdjustmentHandle, aD as CustomGeometryRawData, aE as CustomGeometryPath, aF as BulletInfo, aG as PptxShapeLocks, aH as PptxTextStyleLevels, aI as PptxThemeFillStyle, aJ as PptxThemeLineStyle, aK as PptxThemeEffectStyle, aL as PptxSmartArtChrome, aM as PptxSmartArtColorTransform, aN as PptxSmartArtQuickStyle, aO as PptxExternalData, aP as CustomGeometryPoint, aQ as ChartPptxElement, aR as ImagePptxElement } from './presentation-ArhfImJ5.mjs';
|
|
2
|
+
export { aS as ActionButtonPreset, aT as AnimationConditionEvent, aU as BevelPresetType, aV as ConnectorConnectionPoint, aW as ContentPartInkStroke, aX as ContentPartPptxElement, aY as CustomGeometrySegment, aZ as ElementActionType, a_ as MasterViewTab, a$ as MaterialPresetType, b0 as MediaCaptionTrack, b1 as MediaMetadata, b2 as Model3DPptxElement, b3 as ParsedTableStyleEntry, b4 as PicturePptxElement, b5 as Pptx3DScene, b6 as Pptx3DShape, b7 as PptxAfterAnimationAction, b8 as PptxAnimationDirection, b9 as PptxAnimationIterate, ba as PptxAnimationRepeatMode, bb as PptxAnimationSequence, bc as PptxAnimationTimingCurve, bd as PptxChartAxisNumFmt, be as PptxChartErrBarDir, bf as PptxChartErrBarType, bg as PptxChartErrValType, bh as PptxChartMarkerSymbol, bi as PptxChartTrendlineType, bj as PptxColorAnimation, bk as PptxCommonSlideViewProperties, bl as PptxCropShape, bm as PptxCustomPathProperties, bn as PptxElementBase, bo as PptxElementType, bp as PptxExportFormat, bq as PptxHeaderFooterFlags, br as PptxImageProperties, bs as PptxMediaType, bt as PptxNormalViewProperties, bu as PptxRestoredRegion, bv as PptxShapeProperties, bw as PptxSlideLayout, bx as PptxSmartArtConnection, by as PptxSplitDirection, bz as PptxSplitOrientation, bA as PptxStripDirection, bB as PptxTableCell, bC as PptxTableRow, bD as PptxTag, bE as PptxTextAnimationTarget, bF as PptxTextBuildType, bG as PptxTextProperties, bH as PptxTextWarpPreset, bI as PptxThemeFontGroup, bJ as PptxTransitionDirection4, bK as PptxTransitionDirection8, bL as PptxViewOrigin, bM as PptxViewScale, bN as ShadowEffect, bO as SmartArtColorScheme, bP as SmartArtLayout, bQ as SmartArtStyle, bR as THEME_COLOR_SCHEME_KEYS, bS as TRANSITION_VALID_DIRECTIONS, bT as Text3DStyle, bU as UnderlineStyle, bV as UnknownPptxElement } from './presentation-ArhfImJ5.mjs';
|
|
3
|
+
import { F as FindResult, M as MergeOptions } from './text-operations-CLj-sJyk.mjs';
|
|
4
|
+
export { f as findText, m as mergePresentation, r as replaceText, a as replaceTextInSlide } from './text-operations-CLj-sJyk.mjs';
|
|
5
5
|
import { XMLParser, XMLBuilder } from 'fast-xml-parser';
|
|
6
6
|
import JSZip from 'jszip';
|
|
7
7
|
export { C as CertificateRevocationStatus, D as DIGEST_ALGORITHM_TO_HASH, a as DIGEST_ALGORITHM_TO_WEB_CRYPTO, b as DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, c as DIGITAL_SIGNATURE_REL_TYPE, d as DigitalSignatureReport, e as DigitalSignatureVerificationStatus, E as ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, f as ENTERPRISE_REQUIRE_REVOCATION_ENV, g as ENTERPRISE_REQUIRE_TIMESTAMP_ENV, h as ENTERPRISE_TRUST_ROOTS_FILE_ENV, i as ENTERPRISE_TRUST_ROOTS_PEM_ENV, L as LoadedSigningMaterial, O as OPC_RELATIONSHIP_TRANSFORM, j as OfficeSignatureReference, P as PPTX_VIEWER_MANIFEST_NS, k as ParsedReferenceTransform, R as ReferenceTransformResult, S as SUPPORTED_XML_CANON_TRANSFORMS, l as SignOptions, m as SignResult, n as SignatureDetail, o as SignatureDetailStatus, p as SignatureNodeCertificateInfo, q as SignatureReferenceCheck, r as SignatureValidationPolicy, T as TimestampAuthorityStatus, X as XMLDSIG_NS, s as XML_TRANSFORM_ENVELOPED_SIGNATURE, t as computeDetailStatus, u as computeDigestBase64WebCrypto, v as computeVerificationStatus, w as escapeXmlAttr, x as extractAllTagText, y as extractFirstTagText, z as extractTagAttribute, A as normalizePartPath, B as resolveReferenceUriToPart } from './signature-inspection-status-BcJSdOvb.mjs';
|
|
8
8
|
export { convertEmfToDataUrl, convertWmfToDataUrl } from 'emf-converter';
|
|
9
|
-
export { C as ConversionOptions, a as ConversionResult, D as DocumentConverter, F as FileSystemAdapter, M as MediaContext, P as PptxConverterOptions, b as PptxMarkdownConverter, S as SlideProcessor, c as SlideProcessorOptions, d as SvgExportOptions, e as SvgExporter, f as dataUrlToMediaBytes, g as deriveOutputPath, h as generateMediaFilename, i as getDirectory, n as normalizePath } from './SvgExporter-
|
|
9
|
+
export { C as ConversionOptions, a as ConversionResult, D as DocumentConverter, F as FileSystemAdapter, M as MediaContext, P as PptxConverterOptions, b as PptxMarkdownConverter, S as SlideProcessor, c as SlideProcessorOptions, d as SvgExportOptions, e as SvgExporter, f as dataUrlToMediaBytes, g as deriveOutputPath, h as generateMediaFilename, i as getDirectory, n as normalizePath } from './SvgExporter-BQ4KbRO9.mjs';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Runtime type guards for narrowing the {@link PptxElement} union.
|
|
@@ -1040,6 +1040,19 @@ declare class PptxDocumentPropertiesUpdater {
|
|
|
1040
1040
|
private applyCorePropertiesOverrides;
|
|
1041
1041
|
private applyAppPropertiesOverrides;
|
|
1042
1042
|
private updateCustomProperties;
|
|
1043
|
+
/**
|
|
1044
|
+
* Ensure `[Content_Types].xml` has an `Override` for `docProps/custom.xml`
|
|
1045
|
+
* and the root `_rels/.rels` references it (ECMA-376 §15.2.12.2 +
|
|
1046
|
+
* Part 2 §10.1.2.5). Without these, the package fails OPC validation
|
|
1047
|
+
* and Office strips the custom properties on next save.
|
|
1048
|
+
*/
|
|
1049
|
+
private ensureCustomPropertiesPackagingArtifacts;
|
|
1050
|
+
/**
|
|
1051
|
+
* Remove the Override + root rel for `docProps/custom.xml` when the
|
|
1052
|
+
* caller has emptied custom properties so the package doesn't keep an
|
|
1053
|
+
* orphan content-type entry referencing a deleted part.
|
|
1054
|
+
*/
|
|
1055
|
+
private removeCustomPropertiesPackagingArtifacts;
|
|
1043
1056
|
private normalizeCustomPropertyType;
|
|
1044
1057
|
private extractXmlNodeText;
|
|
1045
1058
|
private toW3cDate;
|
|
@@ -1136,6 +1149,13 @@ interface PptxSlideLoaderParams {
|
|
|
1136
1149
|
parseSlideClrMapOverride: (slideXml: XmlObject) => Record<string, string> | null;
|
|
1137
1150
|
/** Set the active color map override for the current slide being parsed. */
|
|
1138
1151
|
setCurrentSlideClrMapOverride: (override: Record<string, string> | null) => void;
|
|
1152
|
+
/**
|
|
1153
|
+
* Set the master-level state (clrMap + theme color/font/format scheme)
|
|
1154
|
+
* for the slide currently being parsed. Implementations resolve the
|
|
1155
|
+
* slide → layout → master chain and switch the active per-master
|
|
1156
|
+
* theme state. Called once per slide load. Phase 2 Stream B / C-H4.
|
|
1157
|
+
*/
|
|
1158
|
+
setActiveMasterForSlide?: (slidePath: string) => void | Promise<void>;
|
|
1139
1159
|
/** Resolve the layout file path associated with a given slide path. */
|
|
1140
1160
|
findLayoutPathForSlide: (slidePath: string) => string | undefined;
|
|
1141
1161
|
/** Load theme override data from a layout or slide part. */
|
|
@@ -1823,6 +1843,68 @@ declare function readFileAsDataUrl(file: File): Promise<string>;
|
|
|
1823
1843
|
declare function createTemplateShapeRawXml(element: PptxElementWithText): XmlObject;
|
|
1824
1844
|
declare function createTemplateConnectorRawXml(element: ConnectorPptxElement): XmlObject;
|
|
1825
1845
|
|
|
1846
|
+
/**
|
|
1847
|
+
* Color XML round-trip preservation helpers.
|
|
1848
|
+
*
|
|
1849
|
+
* Save layer historically flattens every solidFill colour to
|
|
1850
|
+
* `<a:srgbClr val="…"/>`, throwing away `<a:schemeClr>`, `<a:sysClr>`,
|
|
1851
|
+
* `<a:prstClr>`, and colour transforms (`lumMod`, `lumOff`, `tint`,
|
|
1852
|
+
* `shade`, `satMod`, `alpha`, …). This breaks PowerPoint's *Recolor* /
|
|
1853
|
+
* *Reset to Theme* / Quick Styles for any shape this library has touched.
|
|
1854
|
+
*
|
|
1855
|
+
* Mirroring what {@link PptxGradientStyleCodec} already does for gradient
|
|
1856
|
+
* stops, parsers stash the original colour-choice XML on the parsed style.
|
|
1857
|
+
* On save, when the original is present and the resolved hex still matches
|
|
1858
|
+
* the original, we re-emit the original verbatim. When the user edited the
|
|
1859
|
+
* colour in memory, we fall back to canonical srgb (the pre-existing
|
|
1860
|
+
* behaviour).
|
|
1861
|
+
*
|
|
1862
|
+
* @module color-xml-preservation
|
|
1863
|
+
*/
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
* Extract the inner colour-choice node from a parent that wraps one (e.g.
|
|
1867
|
+
* `<a:solidFill>`, `<a:fgClr>`, `<a:bgClr>`, gradient stop). Returns the
|
|
1868
|
+
* single-key wrapper object suitable for re-emitting verbatim.
|
|
1869
|
+
*/
|
|
1870
|
+
declare function extractColorChoiceXml(parent: XmlObject | undefined): XmlObject | undefined;
|
|
1871
|
+
/**
|
|
1872
|
+
* Compare two resolved colour values using normalised hex form.
|
|
1873
|
+
* Used to decide whether the original XML still represents the current
|
|
1874
|
+
* in-memory colour or whether the user edited it.
|
|
1875
|
+
*/
|
|
1876
|
+
declare function colorsEqual(left: string | undefined, right: string | undefined): boolean;
|
|
1877
|
+
/**
|
|
1878
|
+
* Build a `<a:solidFill>`-shaped child object for a given hex colour, with
|
|
1879
|
+
* an optional `<a:alpha>` transform.
|
|
1880
|
+
*/
|
|
1881
|
+
declare function buildSrgbColorChoice(hex: string, opacity?: number): XmlObject;
|
|
1882
|
+
interface SerializeColorOptions {
|
|
1883
|
+
/**
|
|
1884
|
+
* When true and an `originalColorXml` is being re-emitted, the optional
|
|
1885
|
+
* `opacity` override is *ignored* — we trust the original XML's transforms
|
|
1886
|
+
* (which may already contain `a:alpha`). When false, opacity is not
|
|
1887
|
+
* applied either way (only the canonical fallback path uses opacity).
|
|
1888
|
+
*/
|
|
1889
|
+
readonly preserveAlphaFromOriginal?: boolean;
|
|
1890
|
+
}
|
|
1891
|
+
/**
|
|
1892
|
+
* Decide whether to re-emit the preserved original colour-choice XML or to
|
|
1893
|
+
* synthesise a fresh `<a:srgbClr>`.
|
|
1894
|
+
*
|
|
1895
|
+
* Behaviour:
|
|
1896
|
+
* - If `originalColorXml` is present *and* `currentResolvedHex` matches
|
|
1897
|
+
* `fallbackHex`, return the original (verbatim — preserves scheme/sys/prst
|
|
1898
|
+
* identity and all colour transforms).
|
|
1899
|
+
* - Otherwise return a fresh `<a:srgbClr val="…"/>` with optional `<a:alpha>`.
|
|
1900
|
+
*
|
|
1901
|
+
* Comparison uses a resolved-hex check (case-insensitive, `#` agnostic).
|
|
1902
|
+
* Callers are responsible for resolving `originalColorXml` through the
|
|
1903
|
+
* theme codec to produce `currentResolvedHex` — deep-object equality on
|
|
1904
|
+
* the XML would not survive theme switches.
|
|
1905
|
+
*/
|
|
1906
|
+
declare function serializeColorChoice(originalColorXml: XmlObject | undefined, currentResolvedHex: string | undefined, fallbackHex: string, opacity?: number, options?: SerializeColorOptions): XmlObject;
|
|
1907
|
+
|
|
1826
1908
|
/**
|
|
1827
1909
|
* Action conversion helpers for element click/hover actions.
|
|
1828
1910
|
*
|
|
@@ -3205,6 +3287,30 @@ declare function selectAlternateContentBranch(ac: XmlObject): XmlObject | undefi
|
|
|
3205
3287
|
* Element tag names that represent renderable shapes/objects in a shape tree.
|
|
3206
3288
|
*/
|
|
3207
3289
|
declare const SHAPE_TREE_ELEMENT_TAGS: Set<string>;
|
|
3290
|
+
/**
|
|
3291
|
+
* Record of a single `mc:AlternateContent` block resolved during parse.
|
|
3292
|
+
*
|
|
3293
|
+
* Captured by {@link unwrapAlternateContent} so the runtime can reproduce
|
|
3294
|
+
* the original `<mc:Choice>` / `<mc:Fallback>` envelope on dirty save.
|
|
3295
|
+
*
|
|
3296
|
+
* `rawAc` is the parsed AC envelope object exactly as fast-xml-parser
|
|
3297
|
+
* produced it (containing one or more `mc:Choice` children plus an
|
|
3298
|
+
* optional `mc:Fallback`). `selectedBranch` indicates which branch was
|
|
3299
|
+
* merged into the spTree at parse time. `choiceIndex` (when branch is
|
|
3300
|
+
* `choice`) identifies which `mc:Choice` was selected — needed for
|
|
3301
|
+
* AC blocks containing multiple Choices. `childRefs` holds the actual
|
|
3302
|
+
* XmlObject references that were appended to the parent container —
|
|
3303
|
+
* used by the save layer to associate parsed elements with this block.
|
|
3304
|
+
*/
|
|
3305
|
+
interface AlternateContentBlock {
|
|
3306
|
+
rawAc: XmlObject;
|
|
3307
|
+
selectedBranch: 'choice' | 'fallback';
|
|
3308
|
+
choiceIndex?: number;
|
|
3309
|
+
childRefs: Array<{
|
|
3310
|
+
tag: string;
|
|
3311
|
+
node: XmlObject;
|
|
3312
|
+
}>;
|
|
3313
|
+
}
|
|
3208
3314
|
/**
|
|
3209
3315
|
* Unwrap mc:AlternateContent elements within a shape tree (or group)
|
|
3210
3316
|
* container, merging the selected branch's children into the parent
|
|
@@ -3213,8 +3319,14 @@ declare const SHAPE_TREE_ELEMENT_TAGS: Set<string>;
|
|
|
3213
3319
|
* This mutates the container in-place: mc:AlternateContent entries are
|
|
3214
3320
|
* consumed, and their resolved element children (p:sp, p:pic, etc.) are
|
|
3215
3321
|
* appended to the corresponding arrays on the container.
|
|
3322
|
+
*
|
|
3323
|
+
* Returns a list of `AlternateContentBlock` records — one per consumed AC
|
|
3324
|
+
* envelope — so callers can preserve the original Choice/Fallback shape
|
|
3325
|
+
* on save (CC-4). The returned `childRefs` reference the same XmlObject
|
|
3326
|
+
* instances that were merged into the container, so callers can identify
|
|
3327
|
+
* them later via reference equality.
|
|
3216
3328
|
*/
|
|
3217
|
-
declare function unwrapAlternateContent(container: Record<string, unknown>):
|
|
3329
|
+
declare function unwrapAlternateContent(container: Record<string, unknown>): AlternateContentBlock[];
|
|
3218
3330
|
/**
|
|
3219
3331
|
* Check whether a namespace prefix is in the supported set.
|
|
3220
3332
|
*/
|
|
@@ -4116,6 +4228,34 @@ declare function getPresetsByCategory(category: AnimationCategory): AnimationPre
|
|
|
4116
4228
|
*/
|
|
4117
4229
|
declare function relayoutSmartArt(smartArtData: PptxSmartArtData, containerWidth: number, containerHeight: number): PptxSmartArtDrawingShape[];
|
|
4118
4230
|
|
|
4231
|
+
/**
|
|
4232
|
+
* Schema-order utilities for OpenXML serialization.
|
|
4233
|
+
*
|
|
4234
|
+
* fast-xml-parser preserves *insertion* order of object keys, so the save
|
|
4235
|
+
* layer must produce keys in the order required by the relevant ECMA-376
|
|
4236
|
+
* content-type definition. `reorderObjectKeys` returns a new object whose
|
|
4237
|
+
* keys appear first in `schemaOrder` (in that order), then any remaining
|
|
4238
|
+
* keys in their original insertion order. Keys whose values are
|
|
4239
|
+
* `undefined` are skipped.
|
|
4240
|
+
*/
|
|
4241
|
+
declare function reorderObjectKeys(obj: Record<string, unknown>, schemaOrder: readonly string[]): Record<string, unknown>;
|
|
4242
|
+
/** Child order for `a:effectLst` (CT_EffectList §20.1.8.20) — alphabetical. */
|
|
4243
|
+
declare const EFFECT_LST_ORDER: readonly string[];
|
|
4244
|
+
/**
|
|
4245
|
+
* Child order for `a:spPr` (CT_ShapeProperties §20.1.2.2.35).
|
|
4246
|
+
* Geometry choice (custGeom XOR prstGeom) and fill choice
|
|
4247
|
+
* (noFill XOR solidFill XOR gradFill XOR blipFill XOR pattFill XOR grpFill)
|
|
4248
|
+
* are flattened — at most one of each appears in any valid document.
|
|
4249
|
+
*/
|
|
4250
|
+
declare const SP_PR_ORDER: readonly string[];
|
|
4251
|
+
/**
|
|
4252
|
+
* Child order for `a:tcPr` (CT_TableCellProperties §21.1.4.2).
|
|
4253
|
+
* Fill choice is flattened.
|
|
4254
|
+
*/
|
|
4255
|
+
declare const TC_PR_BORDERS_ORDER: readonly string[];
|
|
4256
|
+
/** Child order for `a:blipFill` (CT_BlipFillProperties). */
|
|
4257
|
+
declare const BLIP_FILL_ORDER: readonly string[];
|
|
4258
|
+
|
|
4119
4259
|
interface IFactory<TResult, TInit = void> {
|
|
4120
4260
|
create(init: TInit): TResult;
|
|
4121
4261
|
}
|
|
@@ -4543,6 +4683,7 @@ interface IPptxColorStyleCodec {
|
|
|
4543
4683
|
extractEffectDagStyle(shapeProps: XmlObject): Partial<ShapeStyle>;
|
|
4544
4684
|
buildGradientFillXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
4545
4685
|
buildOuterShadowXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
4686
|
+
buildPresetShadowXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
4546
4687
|
buildInnerShadowXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
4547
4688
|
buildGlowXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
4548
4689
|
buildSoftEdgeXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
@@ -4553,6 +4694,9 @@ interface IPptxColorStyleCodec {
|
|
|
4553
4694
|
extractGradientPathType(gradFill: XmlObject): ShapeStyle['fillGradientPathType'];
|
|
4554
4695
|
extractGradientFocalPoint(gradFill: XmlObject): ShapeStyle['fillGradientFocalPoint'];
|
|
4555
4696
|
extractGradientFillToRect(gradFill: XmlObject): ShapeStyle['fillGradientFillToRect'];
|
|
4697
|
+
extractGradientFlip(gradFill: XmlObject): ShapeStyle['fillGradientFlip'];
|
|
4698
|
+
extractGradientRotWithShape(gradFill: XmlObject): boolean | undefined;
|
|
4699
|
+
extractGradientScaled(gradFill: XmlObject): boolean | undefined;
|
|
4556
4700
|
}
|
|
4557
4701
|
declare class PptxColorStyleCodec implements IPptxColorStyleCodec {
|
|
4558
4702
|
private readonly colorTransformCodec;
|
|
@@ -4588,6 +4732,7 @@ declare class PptxColorStyleCodec implements IPptxColorStyleCodec {
|
|
|
4588
4732
|
extractEffectDagStyle(shapeProps: XmlObject): Partial<ShapeStyle>;
|
|
4589
4733
|
buildGradientFillXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
4590
4734
|
buildOuterShadowXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
4735
|
+
buildPresetShadowXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
4591
4736
|
buildInnerShadowXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
4592
4737
|
buildGlowXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
4593
4738
|
buildSoftEdgeXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
@@ -4595,6 +4740,9 @@ declare class PptxColorStyleCodec implements IPptxColorStyleCodec {
|
|
|
4595
4740
|
buildBlurXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
4596
4741
|
buildLineEffectListXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
4597
4742
|
extractGradientFillColor(gradFill: XmlObject): string | undefined;
|
|
4743
|
+
extractGradientFlip(gradFill: XmlObject): ShapeStyle['fillGradientFlip'];
|
|
4744
|
+
extractGradientRotWithShape(gradFill: XmlObject): boolean | undefined;
|
|
4745
|
+
extractGradientScaled(gradFill: XmlObject): boolean | undefined;
|
|
4598
4746
|
extractGradientPathType(gradFill: XmlObject): ShapeStyle['fillGradientPathType'];
|
|
4599
4747
|
extractGradientFocalPoint(gradFill: XmlObject): ShapeStyle['fillGradientFocalPoint'];
|
|
4600
4748
|
extractGradientFillToRect(gradFill: XmlObject): ShapeStyle['fillGradientFillToRect'];
|
|
@@ -4613,6 +4761,9 @@ interface PptxShapeStyleExtractorContext {
|
|
|
4613
4761
|
extractGradientPathType: (gradFill: XmlObject) => ShapeStyle['fillGradientPathType'];
|
|
4614
4762
|
extractGradientFocalPoint: (gradFill: XmlObject) => ShapeStyle['fillGradientFocalPoint'];
|
|
4615
4763
|
extractGradientFillToRect: (gradFill: XmlObject) => ShapeStyle['fillGradientFillToRect'];
|
|
4764
|
+
extractGradientFlip: (gradFill: XmlObject) => ShapeStyle['fillGradientFlip'];
|
|
4765
|
+
extractGradientRotWithShape: (gradFill: XmlObject) => boolean | undefined;
|
|
4766
|
+
extractGradientScaled: (gradFill: XmlObject) => boolean | undefined;
|
|
4616
4767
|
normalizeStrokeDashType: (value: unknown) => StrokeDashType | undefined;
|
|
4617
4768
|
normalizeConnectorArrowType: (value: unknown) => ConnectorArrowType | undefined;
|
|
4618
4769
|
ensureArray: (value: unknown) => unknown[];
|
|
@@ -4634,6 +4785,11 @@ declare class PptxShapeStyleExtractor implements IPptxShapeStyleExtractor {
|
|
|
4634
4785
|
private readonly context;
|
|
4635
4786
|
constructor(context: PptxShapeStyleExtractorContext);
|
|
4636
4787
|
extractShapeStyle(spPr: XmlObject | undefined, styleNode?: XmlObject): ShapeStyle;
|
|
4788
|
+
/**
|
|
4789
|
+
* Pull the verbatim colour-choice child out of an `a:fontRef` element,
|
|
4790
|
+
* preserving any contained colour transforms for round-trip.
|
|
4791
|
+
*/
|
|
4792
|
+
private extractFontRefColorXml;
|
|
4637
4793
|
/**
|
|
4638
4794
|
* Extract p14:hiddenFill from the shape properties extension list.
|
|
4639
4795
|
* URI: {AF507438-7753-43E0-B8FC-AC1667EBCBE1}
|
|
@@ -4683,6 +4839,16 @@ declare class PptxTableDataParser implements IPptxTableDataParser {
|
|
|
4683
4839
|
private readonly context;
|
|
4684
4840
|
constructor(context: PptxTableDataParserContext);
|
|
4685
4841
|
parseTableData(graphicData: XmlObject): PptxTableData | undefined;
|
|
4842
|
+
/**
|
|
4843
|
+
* Read the table style ID from `a:tblPr`.
|
|
4844
|
+
*
|
|
4845
|
+
* ECMA-376 §21.1.3.13 defines `<a:tableStyleId>{GUID}</a:tableStyleId>` as
|
|
4846
|
+
* a child element of `a:tblPr` carrying the GUID as element text. Older
|
|
4847
|
+
* inputs (and earlier versions of this library) used the legacy
|
|
4848
|
+
* `<a:tblStyle val="{GUID}"/>` child element or a `@_tblStyle` attribute.
|
|
4849
|
+
* Accept all three; the spec form takes precedence.
|
|
4850
|
+
*/
|
|
4851
|
+
private extractTableStyleId;
|
|
4686
4852
|
private extractTableCellText;
|
|
4687
4853
|
private extractTableCellStyleFromXml;
|
|
4688
4854
|
}
|
|
@@ -4969,7 +5135,7 @@ declare class PptxElementXmlBuilder {
|
|
|
4969
5135
|
* the constructor of the final concrete class
|
|
4970
5136
|
* ({@link PptxHandlerRuntimeImplementation}).
|
|
4971
5137
|
*/
|
|
4972
|
-
declare class PptxHandlerRuntime$
|
|
5138
|
+
declare class PptxHandlerRuntime$1b {
|
|
4973
5139
|
/** The in-memory ZIP archive representing the OPC (.pptx) package. */
|
|
4974
5140
|
protected zip: JSZip;
|
|
4975
5141
|
/** fast-xml-parser instance used to parse XML strings into JS objects. */
|
|
@@ -5030,6 +5196,140 @@ declare class PptxHandlerRuntime$1a {
|
|
|
5030
5196
|
* `p:clrMapOvr / a:overrideClrMapping`.
|
|
5031
5197
|
*/
|
|
5032
5198
|
protected currentSlideClrMapOverride: Record<string, string> | null;
|
|
5199
|
+
/**
|
|
5200
|
+
* Per-master colour map alias dictionaries parsed from each master's
|
|
5201
|
+
* `<p:clrMap>` element (e.g. `bg1 → lt1`, `tx1 → dk1`, `accent1 → accent1`).
|
|
5202
|
+
*
|
|
5203
|
+
* `clrMap` is the *aliasing* layer between logical colour names used in
|
|
5204
|
+
* DrawingML and the raw theme scheme slots. Per ECMA-376 §19.3.1.7 it
|
|
5205
|
+
* lives on each `p:sldMaster`, and slide layouts/slides may further
|
|
5206
|
+
* override it via `p:clrMapOvr`. Resolution must happen at colour-lookup
|
|
5207
|
+
* time, *not* by baking it into {@link themeColorMap}.
|
|
5208
|
+
*
|
|
5209
|
+
* Phase 2 Stream B / C-H4.
|
|
5210
|
+
*/
|
|
5211
|
+
protected masterClrMaps: Map<string, Record<string, string>>;
|
|
5212
|
+
/**
|
|
5213
|
+
* Per-master theme color maps. Each master may reference its own theme
|
|
5214
|
+
* file via `_rels/slideMasterN.xml.rels`. For multi-master decks, slides
|
|
5215
|
+
* must resolve scheme colours against their *own* master's theme.
|
|
5216
|
+
*
|
|
5217
|
+
* Falls back to {@link themeColorMap} when a master entry is missing.
|
|
5218
|
+
*
|
|
5219
|
+
* Phase 2 Stream B / C-H4.
|
|
5220
|
+
*/
|
|
5221
|
+
protected masterThemeColorMaps: Map<string, Record<string, string>>;
|
|
5222
|
+
/**
|
|
5223
|
+
* Per-master theme font maps. Same rationale as
|
|
5224
|
+
* {@link masterThemeColorMaps}: multi-master decks may have one font
|
|
5225
|
+
* scheme per theme.
|
|
5226
|
+
*/
|
|
5227
|
+
protected masterThemeFontMaps: Map<string, Record<string, string>>;
|
|
5228
|
+
/**
|
|
5229
|
+
* Per-master format schemes (fmtScheme). For multi-master decks each
|
|
5230
|
+
* master's slides should resolve fill/line/effect refs against the
|
|
5231
|
+
* matrix from that master's theme.
|
|
5232
|
+
*/
|
|
5233
|
+
protected masterThemeFormatSchemes: Map<string, PptxThemeFormatScheme>;
|
|
5234
|
+
/**
|
|
5235
|
+
* Per-master mapping from slide-master path to the theme path it
|
|
5236
|
+
* references via `_rels/slideMasterN.xml.rels`. Populated by
|
|
5237
|
+
* {@link loadPerMasterThemes} during load. Used by the save-side
|
|
5238
|
+
* theme writer to know which themeN.xml to (re)emit for each master.
|
|
5239
|
+
*
|
|
5240
|
+
* Phase 4 Stream A / C-H3.
|
|
5241
|
+
*/
|
|
5242
|
+
protected masterThemePaths: Map<string, string>;
|
|
5243
|
+
/**
|
|
5244
|
+
* Per-script font tables for major and minor fonts. Captured per master
|
|
5245
|
+
* theme. Keys are master paths; values map `mj`/`mn` -> script tag (e.g.
|
|
5246
|
+
* `Hans`, `Hant`, `Arab`, `Hebr`, `Thai`, `Beng`, …) -> typeface name.
|
|
5247
|
+
*
|
|
5248
|
+
* Phase 4 Stream A / M4.
|
|
5249
|
+
*/
|
|
5250
|
+
protected masterThemeMajorFontScripts: Map<string, Record<string, string>>;
|
|
5251
|
+
protected masterThemeMinorFontScripts: Map<string, Record<string, string>>;
|
|
5252
|
+
/**
|
|
5253
|
+
* Theme name attribute (`<a:theme @name>`) per master theme path.
|
|
5254
|
+
* Captured for byte-stable round-trip.
|
|
5255
|
+
*/
|
|
5256
|
+
protected masterThemeNames: Map<string, string>;
|
|
5257
|
+
/**
|
|
5258
|
+
* `<a:fontScheme @name>` per master theme path.
|
|
5259
|
+
*/
|
|
5260
|
+
protected masterThemeFontSchemeNames: Map<string, string>;
|
|
5261
|
+
/**
|
|
5262
|
+
* `<a:clrScheme @name>` per master theme path.
|
|
5263
|
+
*/
|
|
5264
|
+
protected masterThemeColorSchemeNames: Map<string, string>;
|
|
5265
|
+
/**
|
|
5266
|
+
* Raw original theme XML keyed by theme path. Captured at load-time.
|
|
5267
|
+
* Used by the save pipeline to passthrough the full theme XML when no
|
|
5268
|
+
* in-memory mutation has occurred — preserving fillStyleLst /
|
|
5269
|
+
* lnStyleLst / effectStyleLst / bgFillStyleLst /
|
|
5270
|
+
* extraClrSchemeLst / objectDefaults / extLst exactly as written.
|
|
5271
|
+
*
|
|
5272
|
+
* Phase 4 Stream A / C-H3.
|
|
5273
|
+
*/
|
|
5274
|
+
protected originalThemeXmlByPath: Map<string, string>;
|
|
5275
|
+
/**
|
|
5276
|
+
* Set of theme paths whose in-memory state has been mutated since
|
|
5277
|
+
* load. Saving a theme path that's NOT dirty is a no-op (the original
|
|
5278
|
+
* file already exists in the ZIP). Saving a dirty theme path
|
|
5279
|
+
* regenerates the part from in-memory state.
|
|
5280
|
+
*
|
|
5281
|
+
* Phase 4 Stream A / C-H3.
|
|
5282
|
+
*/
|
|
5283
|
+
protected dirtyThemePaths: Set<string>;
|
|
5284
|
+
/**
|
|
5285
|
+
* Per-master parsed `<p:txStyles>` (titleStyle/bodyStyle/otherStyle).
|
|
5286
|
+
* Populated by {@link enrichSlideMastersWithTxStyles} during load so the
|
|
5287
|
+
* inheritance chain can find the master text-style cascade without
|
|
5288
|
+
* re-parsing master XML on every lookup. Phase 4 Stream B / P-H1.
|
|
5289
|
+
*/
|
|
5290
|
+
protected masterTxStylesCache: Map<string, PptxMasterTextStyles>;
|
|
5291
|
+
/**
|
|
5292
|
+
* Captured `<a:objectDefaults>` snapshot per master theme path. The
|
|
5293
|
+
* full ECMA-376 inheritance chain (master / layout / placeholder /
|
|
5294
|
+
* objectDefaults) is non-trivial; we store the raw spDef/lnDef/txDef
|
|
5295
|
+
* subtrees and re-emit them verbatim for round-trip.
|
|
5296
|
+
*
|
|
5297
|
+
* Phase 4 Stream A / M5.
|
|
5298
|
+
*/
|
|
5299
|
+
protected masterThemeObjectDefaults: Map<string, PptxThemeObjectDefaults>;
|
|
5300
|
+
/**
|
|
5301
|
+
* Captured `<a:extraClrSchemeLst>` raw subtree per master theme path
|
|
5302
|
+
* for verbatim round-trip.
|
|
5303
|
+
*
|
|
5304
|
+
* Phase 4 Stream A.
|
|
5305
|
+
*/
|
|
5306
|
+
protected masterThemeExtraClrSchemeLst: Map<string, unknown>;
|
|
5307
|
+
/**
|
|
5308
|
+
* Captured `<a:custClrLst>` raw subtree per master theme path
|
|
5309
|
+
* for verbatim round-trip.
|
|
5310
|
+
*
|
|
5311
|
+
* Phase 4 Stream A.
|
|
5312
|
+
*/
|
|
5313
|
+
protected masterThemeCustClrLst: Map<string, unknown>;
|
|
5314
|
+
/**
|
|
5315
|
+
* Captured theme-level `<a:extLst>` raw subtree per master theme path.
|
|
5316
|
+
*/
|
|
5317
|
+
protected masterThemeExtLst: Map<string, unknown>;
|
|
5318
|
+
/**
|
|
5319
|
+
* Active master's clrMap for the slide currently being parsed. Walked
|
|
5320
|
+
* after `currentSlideClrMapOverride` (slide and layout overrides take
|
|
5321
|
+
* precedence). `null` means "fall through to themeColorMap directly".
|
|
5322
|
+
*/
|
|
5323
|
+
protected currentMasterClrMap: Record<string, string> | null;
|
|
5324
|
+
/**
|
|
5325
|
+
* Snapshot of the global theme state taken right after
|
|
5326
|
+
* {@link loadThemeData} completes. Used as the fallback when a slide's
|
|
5327
|
+
* master has no per-master theme entry, so per-slide multi-master
|
|
5328
|
+
* switching does not leak the previous slide's master state.
|
|
5329
|
+
*/
|
|
5330
|
+
protected globalThemeColorMapSnapshot: Record<string, string>;
|
|
5331
|
+
protected globalThemeFontMapSnapshot: Record<string, string>;
|
|
5332
|
+
protected globalThemeFormatSchemeSnapshot: PptxThemeFormatScheme | undefined;
|
|
5033
5333
|
/** Thumbnail image data from `docProps/thumbnail.jpeg` preserved for round-trip. */
|
|
5034
5334
|
protected thumbnailData: Uint8Array | null;
|
|
5035
5335
|
/** Raw VBA project binary preserved for macro-enabled (.pptm) round-trip. */
|
|
@@ -5040,6 +5340,19 @@ declare class PptxHandlerRuntime$1a {
|
|
|
5040
5340
|
protected signatureDetection: SignatureDetectionResult | null;
|
|
5041
5341
|
/** Custom XML data parts parsed from `customXml/` in the OPC package. */
|
|
5042
5342
|
protected customXmlParts: PptxCustomXmlPart[];
|
|
5343
|
+
/**
|
|
5344
|
+
* Maps an element's `rawXml` reference to the `mc:AlternateContent`
|
|
5345
|
+
* envelope that originally wrapped it (CC-4). Populated during slide
|
|
5346
|
+
* (and `p:grpSp`) parsing; consulted at save time to re-emit the
|
|
5347
|
+
* original `<mc:Choice>` / `<mc:Fallback>` shape so legacy renderers
|
|
5348
|
+
* keep their fallback content.
|
|
5349
|
+
*
|
|
5350
|
+
* Multiple sibling elements may share the same `AlternateContentBlock`
|
|
5351
|
+
* value (a single AC envelope often wraps several child shapes — e.g.
|
|
5352
|
+
* `p14:media` + its `p:pic` fallback nest one each). WeakMap so AC
|
|
5353
|
+
* envelopes are GC'd if the parsed XmlObject is dropped.
|
|
5354
|
+
*/
|
|
5355
|
+
protected alternateContentBlockByRawXml: WeakMap<XmlObject, AlternateContentBlock>;
|
|
5043
5356
|
/** Embedded fonts extracted during load, preserved for automatic re-embedding on save. */
|
|
5044
5357
|
protected loadedEmbeddedFonts: PptxEmbeddedFont[];
|
|
5045
5358
|
/** Map of comment author IDs to display names (from `ppt/commentAuthors.xml`). */
|
|
@@ -5140,7 +5453,7 @@ declare class PptxHandlerRuntime$1a {
|
|
|
5140
5453
|
protected restoreOriginalParser(): void;
|
|
5141
5454
|
}
|
|
5142
5455
|
|
|
5143
|
-
declare class PptxHandlerRuntime$
|
|
5456
|
+
declare class PptxHandlerRuntime$1a extends PptxHandlerRuntime$1b {
|
|
5144
5457
|
/**
|
|
5145
5458
|
* Export slides to a raster/vector format.
|
|
5146
5459
|
*
|
|
@@ -5178,7 +5491,7 @@ declare class PptxHandlerRuntime$19 extends PptxHandlerRuntime$1a {
|
|
|
5178
5491
|
protected parseTableStyles(): Promise<ParsedTableStyleMap | undefined>;
|
|
5179
5492
|
}
|
|
5180
5493
|
|
|
5181
|
-
declare class PptxHandlerRuntime$
|
|
5494
|
+
declare class PptxHandlerRuntime$19 extends PptxHandlerRuntime$1a {
|
|
5182
5495
|
/**
|
|
5183
5496
|
* Write or remove a single `a:hlinkClick` / `a:hlinkHover` node on
|
|
5184
5497
|
* a `p:cNvPr` parent.
|
|
@@ -5201,7 +5514,7 @@ declare class PptxHandlerRuntime$18 extends PptxHandlerRuntime$19 {
|
|
|
5201
5514
|
protected serializeShapeLocks(shape: XmlObject, el: PptxElement): void;
|
|
5202
5515
|
}
|
|
5203
5516
|
|
|
5204
|
-
declare class PptxHandlerRuntime$
|
|
5517
|
+
declare class PptxHandlerRuntime$18 extends PptxHandlerRuntime$19 {
|
|
5205
5518
|
/**
|
|
5206
5519
|
* Parse a single `a:hlinkClick` or `a:hlinkHover` node into a `PptxAction`.
|
|
5207
5520
|
*/
|
|
@@ -5240,7 +5553,7 @@ interface MediaTimingData {
|
|
|
5240
5553
|
/** Playback speed multiplier (1 = normal). From p14:media/@spd (percentage * 1000). */
|
|
5241
5554
|
playbackSpeed?: number;
|
|
5242
5555
|
}
|
|
5243
|
-
declare class PptxHandlerRuntime$
|
|
5556
|
+
declare class PptxHandlerRuntime$17 extends PptxHandlerRuntime$18 {
|
|
5244
5557
|
/**
|
|
5245
5558
|
* Extract image recolour/brightness/contrast/artistic effects from blip extensions.
|
|
5246
5559
|
*/
|
|
@@ -5261,7 +5574,7 @@ declare class PptxHandlerRuntime$16 extends PptxHandlerRuntime$17 {
|
|
|
5261
5574
|
protected resolveRelationshipTarget(sourcePath: string, rId: string): string | undefined;
|
|
5262
5575
|
}
|
|
5263
5576
|
|
|
5264
|
-
declare class PptxHandlerRuntime$
|
|
5577
|
+
declare class PptxHandlerRuntime$16 extends PptxHandlerRuntime$17 {
|
|
5265
5578
|
/**
|
|
5266
5579
|
* Recursively walk the timing tree looking for `p:video` and `p:audio`
|
|
5267
5580
|
* nodes that contain `p:cMediaNode`.
|
|
@@ -5289,7 +5602,7 @@ declare class PptxHandlerRuntime$15 extends PptxHandlerRuntime$16 {
|
|
|
5289
5602
|
getMediaArrayBuffer(mediaPath: string): Promise<ArrayBuffer | undefined>;
|
|
5290
5603
|
}
|
|
5291
5604
|
|
|
5292
|
-
declare class PptxHandlerRuntime$
|
|
5605
|
+
declare class PptxHandlerRuntime$15 extends PptxHandlerRuntime$16 {
|
|
5293
5606
|
/**
|
|
5294
5607
|
* Convert raw image bytes to a URL suitable for <img src>.
|
|
5295
5608
|
* Uses Blob URLs in browsers (avoids 33% base64 overhead),
|
|
@@ -5309,7 +5622,7 @@ declare class PptxHandlerRuntime$14 extends PptxHandlerRuntime$15 {
|
|
|
5309
5622
|
protected parseNativeAnimations(slideXml: XmlObject): PptxNativeAnimation[] | undefined;
|
|
5310
5623
|
}
|
|
5311
5624
|
|
|
5312
|
-
declare class PptxHandlerRuntime$
|
|
5625
|
+
declare class PptxHandlerRuntime$14 extends PptxHandlerRuntime$15 {
|
|
5313
5626
|
protected buildRelativeTargetPath(fromPartPath: string, toPartPath: string): string;
|
|
5314
5627
|
protected setMasterThemeRelationship(masterPath: string, themePath: string): Promise<void>;
|
|
5315
5628
|
setPresentationTheme(themePath: string, applyToAllMasters?: boolean): Promise<void>;
|
|
@@ -5365,7 +5678,7 @@ declare class PptxHandlerRuntime$13 extends PptxHandlerRuntime$14 {
|
|
|
5365
5678
|
protected parseTags(): Promise<PptxTagCollection[]>;
|
|
5366
5679
|
}
|
|
5367
5680
|
|
|
5368
|
-
declare class PptxHandlerRuntime$
|
|
5681
|
+
declare class PptxHandlerRuntime$13 extends PptxHandlerRuntime$14 {
|
|
5369
5682
|
/**
|
|
5370
5683
|
* Parse background colour from a `p:bg` node.
|
|
5371
5684
|
*/
|
|
@@ -5401,7 +5714,7 @@ declare class PptxHandlerRuntime$12 extends PptxHandlerRuntime$13 {
|
|
|
5401
5714
|
protected parseCustomShows(): PptxCustomShow[] | undefined;
|
|
5402
5715
|
}
|
|
5403
5716
|
|
|
5404
|
-
declare class PptxHandlerRuntime$
|
|
5717
|
+
declare class PptxHandlerRuntime$12 extends PptxHandlerRuntime$13 {
|
|
5405
5718
|
/**
|
|
5406
5719
|
* Parse presentation properties from `presentationPr.xml`.
|
|
5407
5720
|
* Extracts show type, loop, narration, animation, and print settings.
|
|
@@ -5420,7 +5733,7 @@ declare class PptxHandlerRuntime$11 extends PptxHandlerRuntime$12 {
|
|
|
5420
5733
|
protected toSlideRelsPath(slidePath: string): string;
|
|
5421
5734
|
}
|
|
5422
5735
|
|
|
5423
|
-
declare class PptxHandlerRuntime$
|
|
5736
|
+
declare class PptxHandlerRuntime$11 extends PptxHandlerRuntime$12 {
|
|
5424
5737
|
protected createEmptySlideXml(): XmlObject;
|
|
5425
5738
|
protected deepCloneXml(value: XmlObject | undefined): XmlObject | undefined;
|
|
5426
5739
|
protected findSourceSlidePath(requestedSourcePath: string | undefined): string | undefined;
|
|
@@ -5454,16 +5767,16 @@ declare class PptxHandlerRuntime$10 extends PptxHandlerRuntime$11 {
|
|
|
5454
5767
|
protected createLineSpacingXmlFromMultiplier(lineSpacing: number | undefined): XmlObject | undefined;
|
|
5455
5768
|
}
|
|
5456
5769
|
|
|
5457
|
-
declare class PptxHandlerRuntime
|
|
5770
|
+
declare class PptxHandlerRuntime$10 extends PptxHandlerRuntime$11 {
|
|
5458
5771
|
protected createRunPropertiesFromTextStyle(style: TextStyle | undefined, resolveHyperlinkRelationshipId?: (target: string) => string | undefined): XmlObject;
|
|
5459
5772
|
private applyHyperlinkExtraAttrs;
|
|
5460
5773
|
}
|
|
5461
5774
|
|
|
5462
|
-
declare class PptxHandlerRuntime
|
|
5775
|
+
declare class PptxHandlerRuntime$$ extends PptxHandlerRuntime$10 {
|
|
5463
5776
|
protected createParagraphsFromTextContent(text: string | undefined, textStyle: TextStyle | undefined, textSegments: TextSegment[] | undefined, resolveHyperlinkRelationshipId?: (target: string) => string | undefined): XmlObject[];
|
|
5464
5777
|
}
|
|
5465
5778
|
|
|
5466
|
-
declare class PptxHandlerRuntime$
|
|
5779
|
+
declare class PptxHandlerRuntime$_ extends PptxHandlerRuntime$$ {
|
|
5467
5780
|
protected updateNotesXmlText(notesXmlObj: XmlObject, notesText: string | undefined, notesSegments?: TextSegment[]): boolean;
|
|
5468
5781
|
protected createPictureXml(el: PptxImageLikeElement, relationshipId: string): XmlObject;
|
|
5469
5782
|
protected createMediaGraphicFrameXml(el: MediaPptxElement, relationshipId: string): XmlObject;
|
|
@@ -5475,7 +5788,7 @@ declare class PptxHandlerRuntime$Z extends PptxHandlerRuntime$_ {
|
|
|
5475
5788
|
protected createConnectorXml(el: ConnectorPptxElement): XmlObject;
|
|
5476
5789
|
}
|
|
5477
5790
|
|
|
5478
|
-
declare class PptxHandlerRuntime$
|
|
5791
|
+
declare class PptxHandlerRuntime$Z extends PptxHandlerRuntime$_ {
|
|
5479
5792
|
/**
|
|
5480
5793
|
* Build a `p:graphicFrame` XML skeleton for an SDK-created table.
|
|
5481
5794
|
*
|
|
@@ -5490,6 +5803,38 @@ declare class PptxHandlerRuntime$Y extends PptxHandlerRuntime$Z {
|
|
|
5490
5803
|
* `rebuildTableXmlFromData` and fills in `a:tblGrid` / `a:tr` children.
|
|
5491
5804
|
*/
|
|
5492
5805
|
protected createTableGraphicFrameXml(el: TablePptxElement): XmlObject;
|
|
5806
|
+
/**
|
|
5807
|
+
* Build a `p:graphicFrame` XML skeleton for an OLE object element.
|
|
5808
|
+
*
|
|
5809
|
+
* Used both for SDK-created OLE elements (no `rawXml`) and to refresh
|
|
5810
|
+
* a few key attributes on a loaded element when the typed fields have
|
|
5811
|
+
* been mutated. The output is the canonical
|
|
5812
|
+
* `p:graphicFrame > a:graphic > a:graphicData uri="…/ole" > p:oleObj`
|
|
5813
|
+
* shape per ECMA-376 §19.3.1.34 / §13.3.4.
|
|
5814
|
+
*
|
|
5815
|
+
* The caller (`processSlideElement`) is responsible for ensuring the
|
|
5816
|
+
* embed / preview-image relationships referenced from `r:id` / `r:embed`
|
|
5817
|
+
* exist in the slide's rels file. This method does not register them
|
|
5818
|
+
* itself because the typed model does not currently carry the binary
|
|
5819
|
+
* payload — the binary part must already be in the package (loaded from
|
|
5820
|
+
* the original file). A fully-fabricated SDK OLE element therefore
|
|
5821
|
+
* still requires the consumer to attach the binary out-of-band; this
|
|
5822
|
+
* method simply emits a schema-valid envelope referencing the
|
|
5823
|
+
* specified relationship ID.
|
|
5824
|
+
*/
|
|
5825
|
+
protected createOleGraphicFrameXml(el: OlePptxElement, embedRelationshipId: string): XmlObject;
|
|
5826
|
+
/**
|
|
5827
|
+
* Refresh editable typed-field attributes on a loaded OLE graphicFrame's
|
|
5828
|
+
* raw XML. Only attributes that round-trip through the typed model
|
|
5829
|
+
* (`progId`, `name`, `classid`) are touched so unknown extension data
|
|
5830
|
+
* passes through verbatim.
|
|
5831
|
+
*/
|
|
5832
|
+
protected applyOleTypedFieldUpdates(shape: XmlObject, el: OlePptxElement): void;
|
|
5833
|
+
/** Look up the existing OLE binary relationship ID for this slide, if any. */
|
|
5834
|
+
protected resolveOleEmbedRelationshipId(slideRelationships: XmlObject[], oleTarget: string | undefined): string | undefined;
|
|
5835
|
+
/** Constants are exposed so the element-writer mixin can reuse them. */
|
|
5836
|
+
protected static readonly OLE_OBJECT_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject";
|
|
5837
|
+
protected static readonly OLE_IMAGE_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";
|
|
5493
5838
|
/**
|
|
5494
5839
|
* Build a p:sp XML object for an ink annotation element.
|
|
5495
5840
|
* Each ink path becomes a separate a:path within a:pathLst,
|
|
@@ -5503,7 +5848,7 @@ declare class PptxHandlerRuntime$Y extends PptxHandlerRuntime$Z {
|
|
|
5503
5848
|
protected buildGroupShapeXml(group: GroupPptxElement): XmlObject | null;
|
|
5504
5849
|
}
|
|
5505
5850
|
|
|
5506
|
-
declare class PptxHandlerRuntime$
|
|
5851
|
+
declare class PptxHandlerRuntime$Y extends PptxHandlerRuntime$Z {
|
|
5507
5852
|
protected clampCropForSave(value: unknown): number;
|
|
5508
5853
|
protected applyImageCropToBlipFill(blipFill: XmlObject | undefined, element: PptxImageLikeElement): void;
|
|
5509
5854
|
protected applyImageEffectsToBlip(blipFill: XmlObject | undefined, effects: PptxImageEffects | undefined): void;
|
|
@@ -5511,6 +5856,7 @@ declare class PptxHandlerRuntime$X extends PptxHandlerRuntime$Y {
|
|
|
5511
5856
|
protected buildGradientFillXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
5512
5857
|
protected clampUnitInterval(value: number): number;
|
|
5513
5858
|
protected buildOuterShadowXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
5859
|
+
protected buildPresetShadowXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
5514
5860
|
protected buildInnerShadowXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
5515
5861
|
protected buildGlowXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
5516
5862
|
protected buildSoftEdgeXml(shapeStyle: ShapeStyle): XmlObject | undefined;
|
|
@@ -5524,7 +5870,7 @@ declare class PptxHandlerRuntime$X extends PptxHandlerRuntime$Y {
|
|
|
5524
5870
|
protected getTextValueForSave(text: string | undefined, textSegments: TextSegment[] | undefined): string;
|
|
5525
5871
|
}
|
|
5526
5872
|
|
|
5527
|
-
declare class PptxHandlerRuntime$
|
|
5873
|
+
declare class PptxHandlerRuntime$X extends PptxHandlerRuntime$Y {
|
|
5528
5874
|
protected textStylesEqual(left: TextStyle | undefined, right: TextStyle | undefined): boolean;
|
|
5529
5875
|
protected hasMixedTextStyles(textSegments: TextSegment[]): boolean;
|
|
5530
5876
|
protected areTextSegmentsUniform(textSegments: TextSegment[] | undefined): boolean;
|
|
@@ -5536,7 +5882,7 @@ declare class PptxHandlerRuntime$W extends PptxHandlerRuntime$X {
|
|
|
5536
5882
|
protected compactTextSegments(textSegments: TextSegment[], fallbackStyle: TextStyle | undefined): TextSegment[];
|
|
5537
5883
|
}
|
|
5538
5884
|
|
|
5539
|
-
declare class PptxHandlerRuntime$
|
|
5885
|
+
declare class PptxHandlerRuntime$W extends PptxHandlerRuntime$X {
|
|
5540
5886
|
/**
|
|
5541
5887
|
* Parse hyperlink-related properties (a:hlinkClick, a:hlinkMouseOver) from
|
|
5542
5888
|
* run-level XML and apply them to the given TextStyle.
|
|
@@ -5549,11 +5895,17 @@ declare class PptxHandlerRuntime$V extends PptxHandlerRuntime$W {
|
|
|
5549
5895
|
protected applyTextRunEffects(style: TextStyle, runEffectList: XmlObject): void;
|
|
5550
5896
|
}
|
|
5551
5897
|
|
|
5552
|
-
declare class PptxHandlerRuntime$
|
|
5898
|
+
declare class PptxHandlerRuntime$V extends PptxHandlerRuntime$W {
|
|
5553
5899
|
protected extractTextRunStyle(runProperties: XmlObject | undefined, align: TextStyle['align'], relationshipMap?: Map<string, string>): TextStyle;
|
|
5900
|
+
/**
|
|
5901
|
+
* Copy `@panose` / `@pitchFamily` / `@charset` from a font child node
|
|
5902
|
+
* (`a:latin`, `a:ea`, `a:cs`, `a:sym`) onto the matching `*Font*`
|
|
5903
|
+
* fields of `style`.
|
|
5904
|
+
*/
|
|
5905
|
+
private applyTextFontMetadata;
|
|
5554
5906
|
}
|
|
5555
5907
|
|
|
5556
|
-
declare class PptxHandlerRuntime$
|
|
5908
|
+
declare class PptxHandlerRuntime$U extends PptxHandlerRuntime$V {
|
|
5557
5909
|
protected extractTextSegmentsFromTxBodyForRewrite(txBody: XmlObject | undefined, baseStyle: TextStyle | undefined, relationshipMap?: Map<string, string>): TextSegment[];
|
|
5558
5910
|
protected remapEditedTextToExistingStyles(existingSegments: TextSegment[], nextText: string, fallbackStyle: TextStyle | undefined): TextSegment[];
|
|
5559
5911
|
}
|
|
@@ -5670,7 +6022,7 @@ interface BodyPropertiesResult {
|
|
|
5670
6022
|
* by type, reposition matched placeholders, remove unmatched ones, and
|
|
5671
6023
|
* inject empty placeholders that exist only in the target layout.
|
|
5672
6024
|
*/
|
|
5673
|
-
declare class PptxHandlerRuntime$
|
|
6025
|
+
declare class PptxHandlerRuntime$T extends PptxHandlerRuntime$U {
|
|
5674
6026
|
/**
|
|
5675
6027
|
* Read placeholder info from a `p:nvPr` XML node.
|
|
5676
6028
|
*
|
|
@@ -5730,7 +6082,7 @@ declare class PptxHandlerRuntime$S extends PptxHandlerRuntime$T {
|
|
|
5730
6082
|
protected createEmptyPlaceholderElement(phInfo: PlaceholderInfo, xEmu: number, yEmu: number, cxEmu: number, cyEmu: number, _layoutPath: string): PptxElement | null;
|
|
5731
6083
|
}
|
|
5732
6084
|
|
|
5733
|
-
declare class PptxHandlerRuntime$
|
|
6085
|
+
declare class PptxHandlerRuntime$S extends PptxHandlerRuntime$T {
|
|
5734
6086
|
/**
|
|
5735
6087
|
* Write plain text into a table cell's txBody, preserving
|
|
5736
6088
|
* existing run properties where possible.
|
|
@@ -5742,7 +6094,7 @@ declare class PptxHandlerRuntime$R extends PptxHandlerRuntime$S {
|
|
|
5742
6094
|
protected writeTableCellStyle(xmlCell: XmlObject, style: PptxTableCellStyle): void;
|
|
5743
6095
|
}
|
|
5744
6096
|
|
|
5745
|
-
declare class PptxHandlerRuntime$
|
|
6097
|
+
declare class PptxHandlerRuntime$R extends PptxHandlerRuntime$S {
|
|
5746
6098
|
/**
|
|
5747
6099
|
* Serialise modified `PptxTableData` back into the graphic frame's
|
|
5748
6100
|
* raw XML so that the round-tripped file preserves edits.
|
|
@@ -5766,6 +6118,11 @@ declare class PptxHandlerRuntime$Q extends PptxHandlerRuntime$R {
|
|
|
5766
6118
|
* Process all pending chart data updates (called from the async save method).
|
|
5767
6119
|
*/
|
|
5768
6120
|
protected processPendingChartUpdates(): Promise<void>;
|
|
6121
|
+
/**
|
|
6122
|
+
* Upsert a `c:<localName>` child with `@_val` on an axis or scaling node.
|
|
6123
|
+
* When `value` is undefined, removes any existing child of that local name.
|
|
6124
|
+
*/
|
|
6125
|
+
protected upsertChartAxisChild(parent: XmlObject, localName: string, value: string | undefined): void;
|
|
5769
6126
|
/**
|
|
5770
6127
|
* Update the cached point values in a chart reference node
|
|
5771
6128
|
* (numRef/strRef or numLit/strLit).
|
|
@@ -5791,7 +6148,7 @@ declare class PptxHandlerRuntime$Q extends PptxHandlerRuntime$R {
|
|
|
5791
6148
|
protected buildNewSeriesXml(seriesIndex: number, seriesData: PptxChartSeries, categories: string[], templateSeries?: XmlObject): XmlObject;
|
|
5792
6149
|
}
|
|
5793
6150
|
|
|
5794
|
-
declare class PptxHandlerRuntime$
|
|
6151
|
+
declare class PptxHandlerRuntime$Q extends PptxHandlerRuntime$R {
|
|
5795
6152
|
/** Pending SmartArt data updates to process during save. */
|
|
5796
6153
|
protected pendingSmartArtUpdates?: Array<{
|
|
5797
6154
|
element: SmartArtPptxElement;
|
|
@@ -5883,7 +6240,7 @@ declare class PptxHandlerRuntime$P extends PptxHandlerRuntime$Q {
|
|
|
5883
6240
|
protected convertZipToStrictConformance(): Promise<void>;
|
|
5884
6241
|
}
|
|
5885
6242
|
|
|
5886
|
-
declare class PptxHandlerRuntime$
|
|
6243
|
+
declare class PptxHandlerRuntime$P extends PptxHandlerRuntime$Q {
|
|
5887
6244
|
protected applyPresentationPropertiesPart(properties: PptxPresentationProperties | undefined): Promise<void>;
|
|
5888
6245
|
/**
|
|
5889
6246
|
* Strip digital signature parts from the ZIP if the document was signed.
|
|
@@ -5892,14 +6249,14 @@ declare class PptxHandlerRuntime$O extends PptxHandlerRuntime$P {
|
|
|
5892
6249
|
protected stripDigitalSignatures(): Promise<void>;
|
|
5893
6250
|
}
|
|
5894
6251
|
|
|
5895
|
-
declare class PptxHandlerRuntime$
|
|
6252
|
+
declare class PptxHandlerRuntime$O extends PptxHandlerRuntime$P {
|
|
5896
6253
|
protected collectMediaElements(elements: PptxElement[], output: MediaPptxElement[]): void;
|
|
5897
6254
|
protected getShapeIdFromRawXml(rawXml: XmlObject | undefined): string | undefined;
|
|
5898
6255
|
protected applyMediaTimingToTimingTree(node: XmlObject, mediaByShapeId: Map<string, MediaPptxElement>): void;
|
|
5899
6256
|
protected applyMediaTimingToRawTiming(rawTiming: XmlObject, elements: PptxElement[]): void;
|
|
5900
6257
|
}
|
|
5901
6258
|
|
|
5902
|
-
declare class PptxHandlerRuntime$
|
|
6259
|
+
declare class PptxHandlerRuntime$N extends PptxHandlerRuntime$O {
|
|
5903
6260
|
/**
|
|
5904
6261
|
* Recursively walk an XML object tree and deduplicate extension list entries
|
|
5905
6262
|
* by `@_uri`. When multiple `a:ext` or `p:ext` entries share the same URI,
|
|
@@ -5921,15 +6278,35 @@ declare class PptxHandlerRuntime$M extends PptxHandlerRuntime$N {
|
|
|
5921
6278
|
protected ensureTemplateShapeAttached(spTree: XmlObject, elementType: PptxElement['type'], shape: XmlObject): XmlObject;
|
|
5922
6279
|
}
|
|
5923
6280
|
|
|
5924
|
-
declare class PptxHandlerRuntime$
|
|
6281
|
+
declare class PptxHandlerRuntime$M extends PptxHandlerRuntime$N {
|
|
5925
6282
|
/**
|
|
5926
6283
|
* Serialize shape fill, stroke, dash, arrows, line join/cap/compound,
|
|
5927
6284
|
* and line-level effects to the given spPr XML object.
|
|
5928
6285
|
*/
|
|
5929
6286
|
protected applyFillAndStroke(spPr: XmlObject, shapeStyle: ShapeStyle): void;
|
|
6287
|
+
/**
|
|
6288
|
+
* Serialize the shape's `<p:style>` block (CT_ShapeStyle §20.1.2.2.36)
|
|
6289
|
+
* from the persisted ref indices/colour XML. Emits children in spec
|
|
6290
|
+
* order: `lnRef → fillRef → effectRef → fontRef`.
|
|
6291
|
+
*
|
|
6292
|
+
* When the original shape XML already contained a `<p:style>` we mutate
|
|
6293
|
+
* that node in place so any unmodelled attributes/children are preserved.
|
|
6294
|
+
* When it didn't, we create one. When the shape no longer has any ref
|
|
6295
|
+
* data we leave the existing `<p:style>` (if any) untouched — silently
|
|
6296
|
+
* dropping it would break round-tripping.
|
|
6297
|
+
*
|
|
6298
|
+
* Phase 2 Stream B / C-H2.
|
|
6299
|
+
*/
|
|
6300
|
+
protected applyShapeStyleRefs(shape: XmlObject, shapeStyle: ShapeStyle): void;
|
|
6301
|
+
/**
|
|
6302
|
+
* Replace any existing colour-choice child on a style-matrix-reference
|
|
6303
|
+
* element with the given preserved XML, or strip all colour children
|
|
6304
|
+
* when the override is undefined.
|
|
6305
|
+
*/
|
|
6306
|
+
private replaceRefColorChoice;
|
|
5930
6307
|
}
|
|
5931
6308
|
|
|
5932
|
-
declare class PptxHandlerRuntime$
|
|
6309
|
+
declare class PptxHandlerRuntime$L extends PptxHandlerRuntime$M {
|
|
5933
6310
|
/**
|
|
5934
6311
|
* Serialize visual effects (shadow, glow, reflection, blur, soft edge),
|
|
5935
6312
|
* effectDag, 3D scene, and 3D shape properties to the given spPr XML object.
|
|
@@ -5937,7 +6314,7 @@ declare class PptxHandlerRuntime$K extends PptxHandlerRuntime$L {
|
|
|
5937
6314
|
protected applyEffectsAndThreeD(spPr: XmlObject, shapeStyle: ShapeStyle): void;
|
|
5938
6315
|
}
|
|
5939
6316
|
|
|
5940
|
-
declare class PptxHandlerRuntime$
|
|
6317
|
+
declare class PptxHandlerRuntime$K extends PptxHandlerRuntime$L {
|
|
5941
6318
|
/**
|
|
5942
6319
|
* Build and write the text body (`p:txBody`) for shapes, text boxes,
|
|
5943
6320
|
* and connectors that carry text content.
|
|
@@ -5973,7 +6350,7 @@ interface SaveSlideContext {
|
|
|
5973
6350
|
readonly slideVideoRelationshipType: string;
|
|
5974
6351
|
readonly slideAudioRelationshipType: string;
|
|
5975
6352
|
}
|
|
5976
|
-
declare class PptxHandlerRuntime$
|
|
6353
|
+
declare class PptxHandlerRuntime$J extends PptxHandlerRuntime$K {
|
|
5977
6354
|
/** Serialize table, chart, and SmartArt data when applicable. */
|
|
5978
6355
|
protected applyDataSerialization(shape: XmlObject, el: PptxElement, slideId: string): void;
|
|
5979
6356
|
/** Apply image crop, effects, and alt text for picture/image elements. */
|
|
@@ -5994,10 +6371,24 @@ interface SlideShapeCollectors {
|
|
|
5994
6371
|
readonly graphicFrames: XmlObject[];
|
|
5995
6372
|
readonly groups: XmlObject[];
|
|
5996
6373
|
readonly model3ds: XmlObject[];
|
|
6374
|
+
readonly contentParts: XmlObject[];
|
|
5997
6375
|
}
|
|
5998
|
-
declare class PptxHandlerRuntime$
|
|
6376
|
+
declare class PptxHandlerRuntime$I extends PptxHandlerRuntime$J {
|
|
5999
6377
|
/** Whether a shape XML represents a graphic frame. */
|
|
6000
6378
|
protected isGraphicFrameShape(shape: XmlObject): boolean;
|
|
6379
|
+
/**
|
|
6380
|
+
* Reorder children of `p:spPr` to match CT_ShapeProperties (§20.1.2.2.35).
|
|
6381
|
+
* Also reorders any nested `a:blipFill` per CT_BlipFillProperties.
|
|
6382
|
+
* fast-xml-parser preserves insertion order; PowerPoint validates against
|
|
6383
|
+
* the schema's required order, so save-side mutations must be re-sorted.
|
|
6384
|
+
*/
|
|
6385
|
+
protected finalizeSpPrSchemaOrder(shape: XmlObject): void;
|
|
6386
|
+
/**
|
|
6387
|
+
* Reorder children of the picture-level `p:blipFill` (CT_BlipFillProperties).
|
|
6388
|
+
* Picture elements carry their blip data on the `p:pic` root, not under spPr.
|
|
6389
|
+
*/
|
|
6390
|
+
protected finalizePictureBlipFillOrder(shape: XmlObject): void;
|
|
6391
|
+
private reorderInPlace;
|
|
6001
6392
|
/** Whether an element ID indicates a template (layout/master) element. */
|
|
6002
6393
|
protected isTemplateElementId(elementId: string): boolean;
|
|
6003
6394
|
/**
|
|
@@ -6007,12 +6398,136 @@ declare class PptxHandlerRuntime$H extends PptxHandlerRuntime$I {
|
|
|
6007
6398
|
protected processSlideElement(el: PptxElement, collectors: SlideShapeCollectors, ctx: SaveSlideContext): void;
|
|
6008
6399
|
}
|
|
6009
6400
|
|
|
6010
|
-
declare class PptxHandlerRuntime$
|
|
6401
|
+
declare class PptxHandlerRuntime$H extends PptxHandlerRuntime$I {
|
|
6011
6402
|
/**
|
|
6012
6403
|
* Process a single slide during save: update slide XML, process elements,
|
|
6013
6404
|
* rebuild shape tree, and persist relationships.
|
|
6014
6405
|
*/
|
|
6015
6406
|
protected processSlideForSave(slide: PptxSlide, saveSession: PptxSaveState, constants: PptxSaveConstants): Promise<void>;
|
|
6407
|
+
/**
|
|
6408
|
+
* Re-wrap selected children with their original `<mc:AlternateContent>`
|
|
6409
|
+
* envelope (CC-4).
|
|
6410
|
+
*
|
|
6411
|
+
* Parsing merged the selected branch (Choice when supported, otherwise
|
|
6412
|
+
* Fallback) into the spTree's tag arrays. Without re-wrapping, dirty
|
|
6413
|
+
* save would emit flat `<p:sp>`/`<p:pic>` etc. and drop the
|
|
6414
|
+
* `<mc:Fallback>` branch — losing legacy rendering for files originally
|
|
6415
|
+
* authored with newer-namespace features.
|
|
6416
|
+
*
|
|
6417
|
+
* Strategy: for each XmlObject in `collectors.*` that traces back to a
|
|
6418
|
+
* known AC block, group by block and:
|
|
6419
|
+
* 1. Remove the node from its flat collector / spTree array.
|
|
6420
|
+
* 2. Clone the original AC envelope.
|
|
6421
|
+
* 3. Replace the selected branch's `<{tag}>` children with the
|
|
6422
|
+
* live (possibly edited) nodes from the collectors.
|
|
6423
|
+
* 4. Leave the unselected branch verbatim.
|
|
6424
|
+
*
|
|
6425
|
+
* Final envelopes are appended to `spTree['mc:AlternateContent']`.
|
|
6426
|
+
*/
|
|
6427
|
+
protected reapplyAlternateContentEnvelopes(spTree: XmlObject, collectors: SlideShapeCollectors): void;
|
|
6428
|
+
}
|
|
6429
|
+
|
|
6430
|
+
/**
|
|
6431
|
+
* @fileoverview Save-side theme.xml writer.
|
|
6432
|
+
*
|
|
6433
|
+
* Phase 4 Stream A / C-H3.
|
|
6434
|
+
*
|
|
6435
|
+
* Round-trip strategy:
|
|
6436
|
+
*
|
|
6437
|
+
* 1. On parse, the original `theme*.xml` body is captured into
|
|
6438
|
+
* {@link PptxHandlerRuntime#originalThemeXmlByPath}. The full set of
|
|
6439
|
+
* fields a PPTX theme can carry — `bgFillStyleLst`, `fillStyleLst`,
|
|
6440
|
+
* `lnStyleLst`, `effectStyleLst`, `objectDefaults`, `extLst`,
|
|
6441
|
+
* `extraClrSchemeLst`, `custClrLst`, … — is large; the in-memory
|
|
6442
|
+
* model (`themeColorMap`, `themeFontMap`, `themeFormatScheme`) only
|
|
6443
|
+
* captures a subset.
|
|
6444
|
+
*
|
|
6445
|
+
* 2. On save, if the theme has been marked dirty
|
|
6446
|
+
* ({@link PptxHandlerRuntime#dirtyThemePaths}) — the codec will
|
|
6447
|
+
* regenerate the theme from in-memory state, preserving the
|
|
6448
|
+
* captured raw subtrees for the parts the model doesn't own
|
|
6449
|
+
* (objectDefaults, extraClrSchemeLst, fmtScheme details, …).
|
|
6450
|
+
* Otherwise the original XML is re-emitted verbatim, which guarantees
|
|
6451
|
+
* byte-stable round-trip in the common (no-mutation) case.
|
|
6452
|
+
*
|
|
6453
|
+
* The writer hooks into `PptxHandlerRuntimeSavePipeline.save` between
|
|
6454
|
+
* the master / layout persistence and the presentation persistence.
|
|
6455
|
+
*/
|
|
6456
|
+
|
|
6457
|
+
/**
|
|
6458
|
+
* Public mutation API for theme state. Marking a theme dirty causes the
|
|
6459
|
+
* save pipeline to regenerate the theme part instead of re-emitting the
|
|
6460
|
+
* original XML.
|
|
6461
|
+
*/
|
|
6462
|
+
declare class PptxHandlerRuntime$G extends PptxHandlerRuntime$H {
|
|
6463
|
+
/**
|
|
6464
|
+
* Mark a theme path as dirty so the save pipeline will regenerate
|
|
6465
|
+
* the theme XML from in-memory state. Optional — without this the
|
|
6466
|
+
* original XML is preserved verbatim on save (C-H3).
|
|
6467
|
+
*/
|
|
6468
|
+
markThemeDirty(themePath: string): void;
|
|
6469
|
+
/**
|
|
6470
|
+
* Mark all known theme paths dirty in one call.
|
|
6471
|
+
*/
|
|
6472
|
+
markAllThemesDirty(): void;
|
|
6473
|
+
/**
|
|
6474
|
+
* Persist all theme parts during save. Called from the save pipeline
|
|
6475
|
+
* after master / layout XML have been flushed and before
|
|
6476
|
+
* presentation.xml is serialized.
|
|
6477
|
+
*
|
|
6478
|
+
* Order of operations per theme path:
|
|
6479
|
+
*
|
|
6480
|
+
* 1. If the path is *not* in {@link dirtyThemePaths}, the existing
|
|
6481
|
+
* ZIP entry is already correct — no-op. (Original XML was placed
|
|
6482
|
+
* into the ZIP at load time.)
|
|
6483
|
+
* 2. If the path is dirty, build a fresh `<a:theme>` document from
|
|
6484
|
+
* in-memory state and the captured raw subtrees, then overwrite
|
|
6485
|
+
* the ZIP entry.
|
|
6486
|
+
*/
|
|
6487
|
+
protected persistThemeParts(): Promise<void>;
|
|
6488
|
+
/**
|
|
6489
|
+
* Build a complete `<a:theme>` XML document from in-memory state.
|
|
6490
|
+
* Returns the serialized XML string (with XML prolog), or `undefined`
|
|
6491
|
+
* if there is no source data to emit.
|
|
6492
|
+
*
|
|
6493
|
+
* - Color scheme: built from per-master color map (or global fallback).
|
|
6494
|
+
* - Font scheme: built from per-master font map + per-script entries.
|
|
6495
|
+
* - Format scheme: re-emit the original XML subtree if available; else
|
|
6496
|
+
* build a minimal scheme from {@link themeFormatScheme}.
|
|
6497
|
+
* - objectDefaults / extraClrSchemeLst / custClrLst / extLst: re-emit
|
|
6498
|
+
* captured raw subtrees.
|
|
6499
|
+
*/
|
|
6500
|
+
protected buildThemeXml(themePath: string, masterPath: string | undefined): string | undefined;
|
|
6501
|
+
/**
|
|
6502
|
+
* Build the `a:clrScheme` XmlObject from a colour map. Each slot
|
|
6503
|
+
* value is interpreted as either a `#RRGGBB` srgb hex or a known
|
|
6504
|
+
* sysClr token (currently always emitted as srgbClr — the in-memory
|
|
6505
|
+
* map is hex-typed; sysClr round-trip belongs to the broader C-H3
|
|
6506
|
+
* fix to preserve original color XML and is out of scope here).
|
|
6507
|
+
*/
|
|
6508
|
+
protected buildClrSchemeObject(schemeName: string, colorMap: Record<string, string>): XmlObject;
|
|
6509
|
+
/**
|
|
6510
|
+
* Build the `a:fontScheme` XmlObject from a font map plus per-script
|
|
6511
|
+
* font tables.
|
|
6512
|
+
*
|
|
6513
|
+
* Phase 4 Stream A / M4.
|
|
6514
|
+
*/
|
|
6515
|
+
protected buildFontSchemeObject(schemeName: string, fontMap: Record<string, string>, majorScripts: Record<string, string>, minorScripts: Record<string, string>): XmlObject;
|
|
6516
|
+
/**
|
|
6517
|
+
* Re-parse the original theme XML and pluck out a subtree by path,
|
|
6518
|
+
* returning the raw parser object. Returns `undefined` when the
|
|
6519
|
+
* original is missing or the path doesn't exist.
|
|
6520
|
+
*
|
|
6521
|
+
* Used to preserve `a:fmtScheme` byte-for-byte through a regenerate
|
|
6522
|
+
* round-trip, since the in-memory PptxThemeFormatScheme is lossy.
|
|
6523
|
+
*/
|
|
6524
|
+
protected extractRawSubtreeFromOriginal(themePath: string, path: string[]): unknown | undefined;
|
|
6525
|
+
/**
|
|
6526
|
+
* Last-resort minimal `<a:fmtScheme>` body. Mirrors the SDK new-deck
|
|
6527
|
+
* builder's output for new presentations, scaled down to the smallest
|
|
6528
|
+
* schema-valid form.
|
|
6529
|
+
*/
|
|
6530
|
+
protected buildMinimalFmtScheme(name: string): XmlObject;
|
|
6016
6531
|
}
|
|
6017
6532
|
|
|
6018
6533
|
declare class PptxHandlerRuntime$F extends PptxHandlerRuntime$G {
|
|
@@ -6086,6 +6601,21 @@ declare class PptxHandlerRuntime$C extends PptxHandlerRuntime$D {
|
|
|
6086
6601
|
* Supports both `a:ahXY` (XY position handles) and `a:ahPolar` (polar handles).
|
|
6087
6602
|
*/
|
|
6088
6603
|
protected parseAdjustmentHandles(geomNode: XmlObject | undefined, shapeWidth: number, shapeHeight: number, adjustments?: Record<string, number>): GeometryAdjustmentHandle[] | undefined;
|
|
6604
|
+
/**
|
|
6605
|
+
* Extract `a:gdLst`/`a:ahLst`/`a:cxnLst`/`a:rect` raw XML from a `a:custGeom`
|
|
6606
|
+
* node so they can be re-emitted on save when the geometry is edited.
|
|
6607
|
+
* Returns `undefined` when none of these auxiliary children carry data.
|
|
6608
|
+
*/
|
|
6609
|
+
protected extractCustomGeometryRawData(custGeom: XmlObject | undefined): CustomGeometryRawData | undefined;
|
|
6610
|
+
/**
|
|
6611
|
+
* Build structured `CustomGeometryPath[]` from a parsed `a:custGeom` node,
|
|
6612
|
+
* including per-path `@fill`/`@stroke`/`@extrusionOk` attributes so they
|
|
6613
|
+
* survive a round-trip when the path list is later regenerated.
|
|
6614
|
+
*
|
|
6615
|
+
* Falls back to SVG → structured-path conversion when no structured path
|
|
6616
|
+
* info is otherwise available.
|
|
6617
|
+
*/
|
|
6618
|
+
protected buildStructuredCustomGeometryPaths(custGeom: XmlObject | undefined, pathData: string, pathWidth: number, pathHeight: number): CustomGeometryPath[] | undefined;
|
|
6089
6619
|
protected parseCustomGeometry(custGeom: XmlObject | undefined, shapeWidth?: number, shapeHeight?: number): {
|
|
6090
6620
|
pathData: string;
|
|
6091
6621
|
pathWidth: number;
|
|
@@ -6262,6 +6792,10 @@ declare class PptxHandlerRuntime$t extends PptxHandlerRuntime$u {
|
|
|
6262
6792
|
* Unwrap mc:AlternateContent elements within a shape tree (or group),
|
|
6263
6793
|
* merging selected branch children into the parent element arrays.
|
|
6264
6794
|
* Delegates to the standalone alternate-content utility.
|
|
6795
|
+
*
|
|
6796
|
+
* Records each consumed AC envelope in {@link alternateContentBlockByRawXml}
|
|
6797
|
+
* so the save layer can re-emit the original `<mc:Choice>` /
|
|
6798
|
+
* `<mc:Fallback>` shape on dirty save (CC-4).
|
|
6265
6799
|
*/
|
|
6266
6800
|
protected unwrapAlternateContent(container: Record<string, unknown>): void;
|
|
6267
6801
|
/**
|
|
@@ -6354,6 +6888,21 @@ declare class PptxHandlerRuntime$o extends PptxHandlerRuntime$p {
|
|
|
6354
6888
|
* Find the layout file path referenced by a slide via its relationships.
|
|
6355
6889
|
*/
|
|
6356
6890
|
protected findLayoutPathForSlide(slidePath: string): string | undefined;
|
|
6891
|
+
/**
|
|
6892
|
+
* Find the master file path referenced by a layout via its relationships.
|
|
6893
|
+
*/
|
|
6894
|
+
protected findMasterPathForLayoutBase(layoutPath: string): string | undefined;
|
|
6895
|
+
/**
|
|
6896
|
+
* Switch the active master state (clrMap + theme color/font/format
|
|
6897
|
+
* scheme) so that scheme-colour resolution for the slide currently
|
|
6898
|
+
* being parsed walks through the correct master.
|
|
6899
|
+
*
|
|
6900
|
+
* Multi-master decks must resolve scheme colours against each slide's
|
|
6901
|
+
* own master rather than always against `masterFiles[0]`.
|
|
6902
|
+
*
|
|
6903
|
+
* Phase 2 Stream B / C-H4.
|
|
6904
|
+
*/
|
|
6905
|
+
protected setActiveMasterForSlide(slidePath: string): Promise<void>;
|
|
6357
6906
|
/**
|
|
6358
6907
|
* Extract the `p:bg/@showAnimation` flag from a slide's XML.
|
|
6359
6908
|
* Returns `true` when the background should animate, `false` when
|
|
@@ -6393,6 +6942,29 @@ declare class PptxHandlerRuntime$m extends PptxHandlerRuntime$n {
|
|
|
6393
6942
|
}
|
|
6394
6943
|
|
|
6395
6944
|
declare class PptxHandlerRuntime$l extends PptxHandlerRuntime$m {
|
|
6945
|
+
/**
|
|
6946
|
+
* Parse a `CT_TextListStyle` node (`a:defPPr` + `a:lvl1pPr` … `a:lvl9pPr`)
|
|
6947
|
+
* into a level-keyed style map. Used for `<p:txStyles>` children
|
|
6948
|
+
* (`p:titleStyle`, `p:bodyStyle`, `p:otherStyle`) — see ECMA-376 §19.3.1.52.
|
|
6949
|
+
*/
|
|
6950
|
+
protected parseTextListStyle(node: XmlObject | undefined): PptxTextStyleLevels | undefined;
|
|
6951
|
+
/**
|
|
6952
|
+
* Parse `<p:txStyles>` from a slide-master XML object into a structured
|
|
6953
|
+
* {@link PptxMasterTextStyles}. Used to populate `PptxSlideMaster.txStyles`
|
|
6954
|
+
* so the title/body/other text-style cascade (P-H1) is visible on the
|
|
6955
|
+
* typed model.
|
|
6956
|
+
*/
|
|
6957
|
+
protected parseMasterTxStyles(masterXml: XmlObject | undefined): PptxMasterTextStyles | undefined;
|
|
6958
|
+
/**
|
|
6959
|
+
* Enrich an array of {@link PptxSlideMaster} entries (already produced by
|
|
6960
|
+
* `parseSlideMasters`) with parsed `<p:txStyles>`. Loads each master's XML
|
|
6961
|
+
* once, parses, and caches it in `masterXmlMap` for downstream consumers.
|
|
6962
|
+
*
|
|
6963
|
+
* Also stores the parsed result on the per-master cache so that the
|
|
6964
|
+
* inheritance chain in `applyMasterTextStyleCascade` can find it without
|
|
6965
|
+
* re-parsing.
|
|
6966
|
+
*/
|
|
6967
|
+
protected enrichSlideMastersWithTxStyles(slideMasters: PptxSlideMaster[]): Promise<void>;
|
|
6396
6968
|
protected parsePresentationDefaultTextStyle(): void;
|
|
6397
6969
|
protected getMasterElements(layoutPath: string): Promise<PptxElement[]>;
|
|
6398
6970
|
}
|
|
@@ -6480,6 +7052,13 @@ declare class PptxHandlerRuntime$i extends PptxHandlerRuntime$j {
|
|
|
6480
7052
|
}
|
|
6481
7053
|
|
|
6482
7054
|
declare class PptxHandlerRuntime$h extends PptxHandlerRuntime$i {
|
|
7055
|
+
/**
|
|
7056
|
+
* Pull the verbatim colour-choice child out of a style-matrix-reference
|
|
7057
|
+
* element (`a:lnRef`/`a:fillRef`/`a:effectRef`/`a:fontRef`). Returns the
|
|
7058
|
+
* full child object so it can be round-tripped at save time, preserving
|
|
7059
|
+
* any contained colour transforms (`a:lumMod`, `a:tint`, etc.).
|
|
7060
|
+
*/
|
|
7061
|
+
protected extractRefColorXml(refNode: XmlObject | undefined): XmlObject | undefined;
|
|
6483
7062
|
/**
|
|
6484
7063
|
* Resolve a `a:effectRef` element into concrete effect properties
|
|
6485
7064
|
* by looking up `@_idx` in the theme format scheme's effect style list.
|
|
@@ -6529,7 +7108,55 @@ declare class PptxHandlerRuntime$g extends PptxHandlerRuntime$h {
|
|
|
6529
7108
|
* themeColorMap and themeFontMap for consumption by renderers / UI.
|
|
6530
7109
|
*/
|
|
6531
7110
|
protected buildThemeObject(): PptxTheme | undefined;
|
|
6532
|
-
|
|
7111
|
+
/**
|
|
7112
|
+
* Parse every slide master's `<p:clrMap>` element and store the alias
|
|
7113
|
+
* dictionaries on {@link masterClrMaps}. Do *not* mutate
|
|
7114
|
+
* {@link themeColorMap} — alias resolution happens at colour-lookup
|
|
7115
|
+
* time so that:
|
|
7116
|
+
*
|
|
7117
|
+
* 1. The raw theme scheme stays the source of truth (clrMap is a
|
|
7118
|
+
* routing layer, not a colour table).
|
|
7119
|
+
* 2. Multi-master decks resolve each slide against its own master's
|
|
7120
|
+
* clrMap rather than always against `masterFiles[0]`.
|
|
7121
|
+
* 3. Layout `clrMapOvr` semantics work correctly when a slide's master
|
|
7122
|
+
* differs from the deck's first master.
|
|
7123
|
+
*
|
|
7124
|
+
* Phase 2 Stream B / C-H4.
|
|
7125
|
+
*/
|
|
7126
|
+
protected applySlideMasterColorMap(_defaultMap: Record<string, string>): Promise<void>;
|
|
7127
|
+
/**
|
|
7128
|
+
* Parse a single theme part into structured colour, font, and format
|
|
7129
|
+
* scheme dictionaries. Used both for the global default theme and for
|
|
7130
|
+
* each master's per-master theme (multi-master support).
|
|
7131
|
+
*
|
|
7132
|
+
* Phase 2 Stream B / C-H4.
|
|
7133
|
+
*/
|
|
7134
|
+
protected parseThemePart(themePath: string): Promise<{
|
|
7135
|
+
colorMap: Record<string, string>;
|
|
7136
|
+
fontMap: Record<string, string>;
|
|
7137
|
+
formatScheme: PptxThemeFormatScheme | undefined;
|
|
7138
|
+
} | null>;
|
|
7139
|
+
/**
|
|
7140
|
+
* Parse `<a:font script="…" typeface="…"/>` children of a major or
|
|
7141
|
+
* minor font node into a `script -> typeface` dictionary.
|
|
7142
|
+
*
|
|
7143
|
+
* fast-xml-parser collapses repeated tags into arrays, so iterate
|
|
7144
|
+
* over the array form regardless of how many siblings are present.
|
|
7145
|
+
*
|
|
7146
|
+
* Phase 4 Stream A / M4.
|
|
7147
|
+
*/
|
|
7148
|
+
protected collectFontScriptOverrides(fontNode: XmlObject | undefined): Record<string, string>;
|
|
7149
|
+
/**
|
|
7150
|
+
* Resolve the theme file path referenced by a given master's `.rels`.
|
|
7151
|
+
* Returns `undefined` when the master has no theme relationship.
|
|
7152
|
+
*/
|
|
7153
|
+
protected resolveThemePathForMaster(masterPath: string): Promise<string | undefined>;
|
|
7154
|
+
/**
|
|
7155
|
+
* Populate {@link masterThemeColorMaps}, {@link masterThemeFontMaps},
|
|
7156
|
+
* and {@link masterThemeFormatSchemes} for every slide master in the
|
|
7157
|
+
* deck. Multi-master support — Phase 2 Stream B / C-H4.
|
|
7158
|
+
*/
|
|
7159
|
+
protected loadPerMasterThemes(): Promise<void>;
|
|
6533
7160
|
protected loadThemeData(): Promise<void>;
|
|
6534
7161
|
}
|
|
6535
7162
|
|
|
@@ -6613,12 +7240,33 @@ declare class PptxHandlerRuntime$c extends PptxHandlerRuntime$d {
|
|
|
6613
7240
|
* Parse pre-computed shapes from `ppt/diagrams/drawing*.xml`.
|
|
6614
7241
|
*/
|
|
6615
7242
|
protected parseSmartArtDrawingShapes(slidePath: string, drawingRelId: string): Promise<PptxSmartArtDrawingShape[]>;
|
|
6616
|
-
|
|
7243
|
+
protected parseDrawingShape(sp: XmlObject, index: number, emuPerPx: number): PptxSmartArtDrawingShape | null;
|
|
6617
7244
|
private extractDrawingShapeTextStyle;
|
|
6618
7245
|
}
|
|
6619
7246
|
|
|
6620
7247
|
declare class PptxHandlerRuntime$b extends PptxHandlerRuntime$c {
|
|
6621
7248
|
getSmartArtDataForGraphicFrame(slidePath: string, graphicFrame: XmlObject | undefined): Promise<PptxSmartArtData | undefined>;
|
|
7249
|
+
/**
|
|
7250
|
+
* Resolve the SmartArt drawing-shapes part path + relationship id.
|
|
7251
|
+
*
|
|
7252
|
+
* Strategy:
|
|
7253
|
+
* 1. Locate the data-model part's rels file
|
|
7254
|
+
* (`ppt/diagrams/_rels/data*.xml.rels`) via `slideRelsMap`.
|
|
7255
|
+
* 2. Find a relationship whose `Type` matches the `…/diagramDrawing`
|
|
7256
|
+
* URI. PowerPoint emits this for any deck that has had its
|
|
7257
|
+
* SmartArt rendered to drawing shapes.
|
|
7258
|
+
* 3. Return the matched part path (so the caller can load it
|
|
7259
|
+
* directly) and the relationship id (for round-trip preservation).
|
|
7260
|
+
*/
|
|
7261
|
+
private resolveSmartArtDrawingPart;
|
|
7262
|
+
/**
|
|
7263
|
+
* Parse SmartArt drawing shapes given an absolute part path.
|
|
7264
|
+
*
|
|
7265
|
+
* Wraps `parseSmartArtDrawingShapes` (which expects a slide-relative
|
|
7266
|
+
* relationship id) with a path-based lookup so the resolution layer
|
|
7267
|
+
* can pull the part from anywhere in the package.
|
|
7268
|
+
*/
|
|
7269
|
+
private parseSmartArtDrawingShapesFromPath;
|
|
6622
7270
|
private parseSmartArtConnections;
|
|
6623
7271
|
}
|
|
6624
7272
|
|
|
@@ -6939,11 +7587,11 @@ declare class PptxHandlerRuntime$2 extends PptxHandlerRuntime$3 {
|
|
|
6939
7587
|
* Find the master path that a given layout belongs to by scanning
|
|
6940
7588
|
* the layout's own `.rels` file for a `slideMaster` relationship.
|
|
6941
7589
|
*/
|
|
6942
|
-
|
|
7590
|
+
protected findMasterPathForLayout(layoutPath: string): string | undefined;
|
|
6943
7591
|
/**
|
|
6944
7592
|
* Find the master path for a slide by walking: slide -> layout -> master.
|
|
6945
7593
|
*/
|
|
6946
|
-
|
|
7594
|
+
protected findMasterPathForSlide(slidePath: string): string | undefined;
|
|
6947
7595
|
/**
|
|
6948
7596
|
* Get layouts available for a specific slide, scoped to that slide's
|
|
6949
7597
|
* master. If the slide's master cannot be determined, returns all
|
|
@@ -11102,4 +11750,4 @@ type ThemePresetName = keyof typeof ThemePresets;
|
|
|
11102
11750
|
/** Get a theme preset by name string. */
|
|
11103
11751
|
declare function getThemePreset(name: ThemePresetName): ThemePreset;
|
|
11104
11752
|
|
|
11105
|
-
export { ALL_ANIMATION_PRESETS, type AccessibilityCheckOptions, type AccessibilityIssue, type AccessibilityIssueSeverity, type AccessibilityIssueType, type AnimationCategory, AnimationCondition, type AnimationInput, type AnimationPresetInfo, type BackgroundInput, BulletInfo, COLOR_MAP_ALIAS_KEYS, CONNECTOR_ARROW_OPTIONS, CONNECTOR_GEOMETRY_OPTIONS, type CalloutLeaderLineGeometry, type CalloutPoint, ChartBuilder, type ChartInput, type ChartOptions, ChartPptxElement, type ChartSeriesInput, type ColorMapAliasKey, type CompatibilityWarningInput, ConnectorArrowType, ConnectorBuilder, type ConnectorGeometryType, type ConnectorOptions, type ConnectorPathGeometry, ConnectorPptxElement, ConnectorXmlFactory, type ConnectorXmlFactoryInit, type ContainerBounds, CustomGeometryPath, CustomGeometryPoint, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_COLOR_MAP, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY, DEFAULT_SCHEME_COLOR_MAP, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, DataIntegrityError, EMPHASIS_PRESETS, EMU_PER_INCH, EMU_PER_PIXEL, EMU_PER_POINT, EMU_PER_PX, ENTRANCE_PRESETS, EXIT_PRESETS, ElementAction, type ElementDiff, type ElementPosition, EncryptedFileError, type EncryptionAlgorithm, type EncryptionInfo, type EncryptionOptions, FONT_SUBSTITUTION_MAP, type FileFormatDetection, type FillInput, FindResult, FreeformPathBuilder, GeometryAdjustmentHandle, type GeometryContext, type GeometryGuide, GroupBuilder, type GroupOptions, GroupPptxElement, type HslColor, type IConnectorXmlFactory, type ICoreXmlElementFactory, type IFactory, type IMediaGraphicFrameXmlFactory, type IPictureXmlFactory, type IPptxAnimationWriteService, type IPptxColorStyleCodec, type IPptxCommentAuthorsXmlFactory, type IPptxCommentXmlFactoryProvider, type IPptxCompatibilityService, type IPptxConnectorParser, type IPptxContentTypesBuilder, type IPptxEditorAnimationService, type IPptxElementTransformUpdater, type IPptxGraphicFrameParser, type IPptxHandlerRuntime, type IPptxHandlerRuntimeFactory, type IPptxMediaDataParser, type IPptxNativeAnimationService, type IPptxPresentationSaveBuilder, type IPptxPresentationSlidesReconciler, type IPptxRuntimeDependencyFactory, type IPptxShapeIdValidator, type IPptxShapeStyleExtractor, type IPptxSlideBackgroundBuilder, type IPptxSlideCommentPartWriter, type IPptxSlideCommentsXmlFactory, type IPptxSlideLoaderService, type IPptxSlideMediaRelationshipBuilder, type IPptxSlideNotesPartUpdater, type IPptxSlideRelationshipRegistry, type IPptxSlideTransitionService, type IPptxTableDataParser, type IPptxTemplateBackgroundService, type IPptxXmlBuilder, type IPptxXmlFactoryProvider, type IPptxXmlLookupService, type ITextShapeXmlFactory, type IXmlElementFactory, ImageBuilder, type ImageMaskStyle, type ImageOptions, ImagePptxElement, IncorrectPasswordError, InkPptxElement, type LayoutAlgorithmType, type LayoutConstraints, type LayoutCreationResult, type LayoutDefinition, type LayoutEngineShape, type LayoutRule, type LinkedTextBoxChain, type LinkedTextBoxChainMember, type LinkedTextBoxSegmentMap, MIN_ELEMENT_SIZE, MOTION_PATH_PRESETS, MediaBookmark, MediaBuilder, MediaGraphicFrameXmlFactory, type MediaGraphicFrameXmlFactoryInit, type MediaOptions, MediaPptxElement, MergeOptions, type MergeShapeOperation, type Model3DTransform, type Ole2DirectoryEntry, type Ole2File, Ole2ParseError, OleObjectType, type OoxmlConformanceClass, P14_GUIDE_URI, P15_GUIDE_URI, PANOSE_FAMILY_MAP, PANOSE_MONOSPACE_PROPORTION, PANOSE_SANS_SERIF_STYLES, PANOSE_WEIGHT_MAP, POWERPOINT_PRESENCE_KEY, PRESET_COLOR_MAP, PRESET_SHAPE_CATEGORY_LABELS, PRESET_SHAPE_CLIP_PATHS, PRESET_SHAPE_DEFINITIONS, PRESET_TO_OOXML, type ParsedLayoutDef, type ParsedSignature, type ParsedTableStyle, ParsedTableStyleFill, ParsedTableStyleMap, type ParsedTableStylePart, ParsedTableStyleText, PictureXmlFactory, type PictureXmlFactoryInit, PlaceholderDefaults, type PlaceholderDefinition, PlaceholderTextLevelStyle, PptxAction, PptxActiveXControl, PptxAnimationPreset, PptxAnimationTrigger, PptxAnimationWriteService, PptxAppProperties, type PptxBuilderFactoryContext, PptxChart3DSurface, PptxChartAxisFormatting, PptxChartData, PptxChartDataLabel, PptxChartDataPoint, PptxChartDataTable, PptxChartErrBars, PptxChartLineStyle, PptxChartMarker, PptxChartSeries, PptxChartShapeProps, PptxChartStyle, PptxChartTrendline, PptxChartType, PptxColorStyleCodec, type PptxColorStyleCodecContext, PptxComment, PptxCommentAuthor, type PptxCommentAuthorDescriptor, PptxCommentAuthorsXmlFactory, type PptxCommentAuthorsXmlFactoryInit, PptxCommentXmlFactoryProvider, PptxCompatibilityService, PptxCompatibilityWarning, PptxConnectorParser, type PptxConnectorParserContext, PptxContentTypesBuilder, type PptxContentTypesCommentBuildInput, type PptxContentTypesSlideMediaBuildInput, PptxCoreProperties, PptxCustomProperty, PptxCustomShow, PptxCustomXmlPart, PptxCustomerData, PptxData, PptxDocumentPropertiesUpdater, PptxDrawingGuide, PptxEditorAnimationService, type PptxEditorAnimationServiceOptions, PptxElement, PptxElementAnimation, PptxElementTransformUpdater, PptxElementWithShapeStyle, PptxElementWithText, PptxElementXmlBuilder, type PptxElementXmlBuilderOptions, PptxEmbeddedFont, PptxEmbeddedWorkbookData, PptxExportOptions, PptxExternalData, PptxGraphicFrameParser, type PptxGraphicFrameParserContext, PptxHandler, type PptxHandlerLoadOptions, PptxHandlerRuntime, PptxHandlerRuntimeFactory, type PptxHandlerSaveOptions, PptxHandoutMaster, PptxHeaderFooter, PptxImageEffects, PptxImageLikeElement, PptxKinsoku, PptxLayoutOption, PptxLoadDataBuilder, PptxMediaDataParser, type PptxMediaDataParserContext, type PptxMediaTimingEntry, type PptxMediaTimingMap, PptxModifyVerifier, PptxNativeAnimation, PptxNativeAnimationService, PptxNotesMaster, PptxPhotoAlbum, PptxPresentationProperties, type PptxPresentationSaveBuildInput, PptxPresentationSaveBuilder, type PptxPresentationSaveBuilderOptions, PptxPresentationSlidesReconciler, type PptxPresentationSlidesReconcilerInput, type PptxRuntimeDependencyBundle, PptxRuntimeDependencyFactory, type PptxRuntimeDependencyFactoryInput, type PptxSaveConstants, PptxSaveConstantsFactory, type PptxSaveFormat, type PptxSaveMediaKind, PptxSaveState as PptxSaveSession, PptxSaveStateBuilder as PptxSaveSessionBuilder, PptxSaveState, PptxSaveStateBuilder, PptxSection, PptxShapeIdValidator, PptxShapeLocks, PptxShapeStyleExtractor, type PptxShapeStyleExtractorContext, PptxSlide, PptxSlideBackgroundBuilder, type PptxSlideBackgroundBuilderInput, PptxSlideBuilder, PptxSlideCommentPartWriter, type PptxSlideCommentPartWriterInput, type PptxSlideCommentRelationshipInfo, PptxSlideCommentsXmlFactory, type PptxSlideCommentsXmlFactoryInit, PptxSlideElementsBuilder, type PptxSlideLoaderParams, PptxSlideLoaderService, type PptxSlideLoaderThemeOverride, PptxSlideMaster, PptxSlideMediaRelationshipBuilder, PptxSlideNotesBuilder, PptxSlideNotesPartUpdater, type PptxSlideNotesPartUpdaterInput, type PptxSlideNotesResult, PptxSlideRelationshipRegistry, type PptxSlideRelationshipRegistryOptions, PptxSlideTransition, PptxSlideTransitionService, type PptxSlideTransitionServiceOptions, PptxSmartArtChrome, PptxSmartArtColorTransform, PptxSmartArtData, PptxSmartArtDrawingShape, PptxSmartArtNode, PptxSmartArtQuickStyle, PptxTableCellStyle, PptxTableData, PptxTableDataParser, type PptxTableDataParserContext, PptxTagCollection, PptxTemplateBackgroundService, type PptxTemplateBackgroundState, PptxTheme, PptxThemeColorScheme, PptxThemeEffectStyle, PptxThemeFillStyle, PptxThemeFontScheme, PptxThemeFormatScheme, PptxThemeLineStyle, PptxThemeOption, type PptxThemePreset, PptxTransitionType, PptxViewProperties, PptxXmlBuilder, PptxXmlFactoryProvider, PptxXmlLookupService, Presentation, PresentationBuilder, type PresentationBuilderResult, type PresentationDiff, type PresentationOptions, type PresentationThemeInput, type PresetShapeCategory, type PresetShapeDefinition, type PropertyChange, type ReflowedNodePosition, type RepairResult, SHAPE_TREE_ELEMENT_TAGS, STROKE_DASH_OPTIONS, SWITCHABLE_LAYOUT_TYPES, SYSTEM_COLOR_MAP, type ShadowInput, ShapeBuilder, type ShapeOptions, ShapePptxElement, ShapeStyle, type SignatureCertificateInfo, type SignatureDetectionResult, type SignatureReference, type SignatureStatus, SlideBuilder, type SlideDiff, SlideSizes, SmartArtLayoutType, SmartArtPptxElement, type StandardEncryptionInfo, StrokeDashType, type StrokeInput, type SupportedShapeType, THEME_PRESETS, TableBuilder, type TableCellInput, type TableInput, type TableOptions, TablePptxElement, type TableRowInput, type TableStyleFlags, type TableStylePartBorder, type TableStylePartBorders, type TableStylePartFill, type TableStylePartText, type TemplateData, TextBuilder, type TextOptions, TextPptxElement, TextSegment, type TextSegmentInput, TextShapeXmlFactory, type TextShapeXmlFactoryInit, TextStyle, type TextStyleInput, type ThemePreset, type ThemePresetName, ThemePresets, type TransitionInput, VML_SHAPE_TAGS, type ValidationIssue, type ValidationResult, type Vec2, XmlObject, ZoomPptxElement, addChartCategory, addChartSeries, addSection, addSmartArtNode, addSmartArtNodeAsChild, applyDrawingColorTransforms, applyKinsokuToXml, applyTemplate, applyThemeToData, areNamespacesSupported, buildCalloutLeaderLineSvgPath, buildClrMapOverrideXml, buildFontFamilyString, buildGuideListExtension, buildLinkedTextBoxChains, buildOle2, buildSingleEffectNode, buildThemeColorMap, catmullRomToBezier, chartDataAddCategory, chartDataAddSeries, chartDataChangeType, chartDataRemoveCategory, chartDataRemoveSeries, chartDataUpdatePoint, checkBlankSlide, checkComplexTables, checkDuplicateTitles, checkLowContrast, checkMissingAltText, checkMissingSlideTitle, checkPresentation, clampUnitInterval, classifyPanose, cloneElement, cloneShapeStyle, cloneSlide, cloneTemplateElementsBySlideId, cloneTextStyle, cloneXmlObject, cm, cmToEmu, colorWithOpacity, combineShapes, computeContrastRatio, computeCycleLayout, computeHierarchyLayout, computeLinearLayout, computeMatrixLayout, computePyramidLayout, computeSmartArtLayout, computeSnakeLayout, convertXmlToStrict, createArrayBufferCopy, createBuiltinVariables, createChartElement, createConnectorElement, createDefaultPptxHandlerRuntime, createEditorId, createFreeformElement, createGroupElement, createImageElement, createLayout, createLayouts, createMediaElement, createModifyVerifier, createPptxSaveConstants, createShapeElement, createTableElement, createTemplateConnectorRawXml, createTemplateShapeRawXml, createTextElement, createUniformTextSegments, decomposeSmartArt, decryptPptx, demoteSmartArtNode, deobfuscateFont, detectDigitalSignatures, detectFileFormat, detectFontFormat, detectOleObjectType, detectStrictConformance, diffPresentations, diffSlides, distributeSegmentsAcrossChain, douglasPeucker, duplicateElement, duplicateSlide, elementActionToPptxAction, elementHasAction, emuToPixels, encryptPptx, ensureArrayValue, estimateTextBoxCapacity, evaluateGeometryPaths, evaluateGuides, extractGuidFromPartName, extractModel3DTransform, fetchUrlToBytes, findCustomShow, findLayoutByName, findLayoutByType, findPlaceholders, formatCommentTimestamp, fragmentShapes, generateFontGuid, generateLayoutXml, getAnimationPresetInfo, getCalloutLeaderLineGeometry, getCalloutTier, getCalloutViewBoxBounds, getCommentMarkerPosition, getConnectorAdjustment, getConnectorPathGeometry, getCssBorderDashStyle, getCustomShowNames, getCustomShowPositionLabel, getElementLabel, getElementTextContent, getElementTransform, getImageMaskStyle, getLinkedTextBoxSegments, getOleObjectTypeLabel, getPanoseWeight, getPresetShapeClipPath, getPresetsByCategory, getRoundRectRadiusPx, getSectionForSlide, getSectionSlideRange, getShapeClipPath, getShapeType, getSignaturePathsToStrip, getSubstituteFontFamily, getSubstituteFonts, getSupportedNamespaces, getSvgStrokeDasharray, getTextCompensationTransform, getThemePreset, getZoomElements, getZoomTargetSlideIndexes, guidToKey, guideEmuToPx, guidePxToEmu, hasDirectSubstitution, hasNonTrivialOverride, hasShapeProperties, hasTextProperties, hexToRgbChannels, hslToRgb, inches, inchesToEmu, inferOleExtensionFromTarget, interpolateShapeGeometry, intersectPolygons, intersectShapes, intersectSvgPaths, isCalloutShape, isConnectorElement, isEditableTextElement, isImageLikeElement, isInkElement, isNamespaceSupported, isShapeElement, isStrictNamespaceUri, isSummaryZoomSlide, isSwitchableLayoutType, isTemplateElement, isTextElement, isTransitionalNamespaceUri, isZoomElement$1 as isZoomElement, isZoomElement as isZoomElementUtil, layoutEngineShapesToDrawingShapes, mailMerge, mergeShapes, mergeStyleParts, mergeThemeColorOverride, mm, moveSlidesToSection, navigateCustomShow, normalizeHexColor, normalizeNamespaceUri, normalizeStrictXml, normalizeStrokeDashType, obfuscateFont, ooxmlArcToSvg, parseActiveXControlsFromSlide, parseAdjustmentValues, parseBodyPrBooleanAttrs, parseChart3DSurfaces, parseChartAxes, parseCondition, parseConditionList, parseCxChartSeries, parseDataTable, parseDataUrlToBytes, parseDrawingColor, parseDrawingColorChoice, parseDrawingColorOpacity, parseDrawingFraction, parseDrawingHueDegrees, parseDrawingPercent, parseEmbeddedXlsx, parseGuideDefinitions, parseHexColor, parseKinsoku, parseLayoutDefinition, parseLineStyle, parseMarker, parseOle2, parsePanoseBytes, parsePanoseString, parsePresentationDrawingGuides, parseSeriesDataLabels, parseSeriesDataPoints, parseSeriesErrBars, parseSeriesExplosion, parseSeriesTrendlines, parseShapeProps, parseSignatureXml, parseSlideDrawingGuides, parseSvgPath, parseVmlElement, parseVmlElements, pixelsToEmu, polygonsToSvgPath, pptxActionToElementAction, promoteSmartArtNode, pt, reResolveSlideColors, readFileAsDataUrl, reflowSmartArtLayout, relativeLuminance, relayoutSmartArt, removeChartCategory, removeChartSeries, removeSection, removeSmartArtNode, reorderSections, reorderSmartArtNode, reorderSmartArtNodeToIndex, repairPptx, replaceShapeGeometry, replaceWithCustomGeometry, resetCloneIdCounter, resetDecomposeCounter, resetIdCounter, resetSectionIdCounter, resetSmartArtEditCounter, resolveCoordinate, resolveCustomShowSlideIndices, resolveModel3DMimeType, resolveTableCellStyle, rgbToHsl, selectAlternateContentBranch, serializeCondition, serializeConditionList, serializeSvgPath, setChartCategories, setChartGrouping, setChartTitle, setChartType, shouldRenderFallbackLabel, shouldReturnToZoomSlide, subtractPolygons, subtractShapes, subtractSvgPaths, svgPathToPolygons, switchSmartArtLayout, toHex, toStrictNamespaceUri, unionPolygons, unionShapes, unionSvgPaths, unwrapAlternateContent, updateChartDataPoint, updateChartSeriesValues, updateSmartArtNodeText, validatePptx, verifyModifyPassword, verifyPassword, verifySignatureDigests, writeBodyPrBooleanAttrs };
|
|
11753
|
+
export { ALL_ANIMATION_PRESETS, type AccessibilityCheckOptions, type AccessibilityIssue, type AccessibilityIssueSeverity, type AccessibilityIssueType, type AlternateContentBlock, type AnimationCategory, AnimationCondition, type AnimationInput, type AnimationPresetInfo, BLIP_FILL_ORDER, type BackgroundInput, BulletInfo, COLOR_MAP_ALIAS_KEYS, CONNECTOR_ARROW_OPTIONS, CONNECTOR_GEOMETRY_OPTIONS, type CalloutLeaderLineGeometry, type CalloutPoint, ChartBuilder, type ChartInput, type ChartOptions, ChartPptxElement, type ChartSeriesInput, type ColorMapAliasKey, type CompatibilityWarningInput, ConnectorArrowType, ConnectorBuilder, type ConnectorGeometryType, type ConnectorOptions, type ConnectorPathGeometry, ConnectorPptxElement, ConnectorXmlFactory, type ConnectorXmlFactoryInit, type ContainerBounds, CustomGeometryPath, CustomGeometryPoint, CustomGeometryRawData, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_COLOR_MAP, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY, DEFAULT_SCHEME_COLOR_MAP, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, DataIntegrityError, EFFECT_LST_ORDER, EMPHASIS_PRESETS, EMU_PER_INCH, EMU_PER_PIXEL, EMU_PER_POINT, EMU_PER_PX, ENTRANCE_PRESETS, EXIT_PRESETS, ElementAction, type ElementDiff, type ElementPosition, EncryptedFileError, type EncryptionAlgorithm, type EncryptionInfo, type EncryptionOptions, FONT_SUBSTITUTION_MAP, type FileFormatDetection, type FillInput, FindResult, FreeformPathBuilder, GeometryAdjustmentHandle, type GeometryContext, type GeometryGuide, GroupBuilder, type GroupOptions, GroupPptxElement, type HslColor, type IConnectorXmlFactory, type ICoreXmlElementFactory, type IFactory, type IMediaGraphicFrameXmlFactory, type IPictureXmlFactory, type IPptxAnimationWriteService, type IPptxColorStyleCodec, type IPptxCommentAuthorsXmlFactory, type IPptxCommentXmlFactoryProvider, type IPptxCompatibilityService, type IPptxConnectorParser, type IPptxContentTypesBuilder, type IPptxEditorAnimationService, type IPptxElementTransformUpdater, type IPptxGraphicFrameParser, type IPptxHandlerRuntime, type IPptxHandlerRuntimeFactory, type IPptxMediaDataParser, type IPptxNativeAnimationService, type IPptxPresentationSaveBuilder, type IPptxPresentationSlidesReconciler, type IPptxRuntimeDependencyFactory, type IPptxShapeIdValidator, type IPptxShapeStyleExtractor, type IPptxSlideBackgroundBuilder, type IPptxSlideCommentPartWriter, type IPptxSlideCommentsXmlFactory, type IPptxSlideLoaderService, type IPptxSlideMediaRelationshipBuilder, type IPptxSlideNotesPartUpdater, type IPptxSlideRelationshipRegistry, type IPptxSlideTransitionService, type IPptxTableDataParser, type IPptxTemplateBackgroundService, type IPptxXmlBuilder, type IPptxXmlFactoryProvider, type IPptxXmlLookupService, type ITextShapeXmlFactory, type IXmlElementFactory, ImageBuilder, type ImageMaskStyle, type ImageOptions, ImagePptxElement, IncorrectPasswordError, InkPptxElement, type LayoutAlgorithmType, type LayoutConstraints, type LayoutCreationResult, type LayoutDefinition, type LayoutEngineShape, type LayoutRule, type LinkedTextBoxChain, type LinkedTextBoxChainMember, type LinkedTextBoxSegmentMap, MIN_ELEMENT_SIZE, MOTION_PATH_PRESETS, MediaBookmark, MediaBuilder, MediaGraphicFrameXmlFactory, type MediaGraphicFrameXmlFactoryInit, type MediaOptions, MediaPptxElement, MergeOptions, type MergeShapeOperation, type Model3DTransform, type Ole2DirectoryEntry, type Ole2File, Ole2ParseError, OleObjectType, OlePptxElement, type OoxmlConformanceClass, P14_GUIDE_URI, P15_GUIDE_URI, PANOSE_FAMILY_MAP, PANOSE_MONOSPACE_PROPORTION, PANOSE_SANS_SERIF_STYLES, PANOSE_WEIGHT_MAP, POWERPOINT_PRESENCE_KEY, PRESET_COLOR_MAP, PRESET_SHAPE_CATEGORY_LABELS, PRESET_SHAPE_CLIP_PATHS, PRESET_SHAPE_DEFINITIONS, PRESET_TO_OOXML, type ParsedLayoutDef, type ParsedSignature, type ParsedTableStyle, ParsedTableStyleFill, ParsedTableStyleMap, type ParsedTableStylePart, ParsedTableStyleText, PictureXmlFactory, type PictureXmlFactoryInit, PlaceholderDefaults, type PlaceholderDefinition, PlaceholderTextLevelStyle, PptxAction, PptxActiveXControl, PptxAnimationPreset, PptxAnimationTrigger, PptxAnimationWriteService, PptxAppProperties, type PptxBuilderFactoryContext, PptxChart3DSurface, PptxChartAxisFormatting, PptxChartData, PptxChartDataLabel, PptxChartDataPoint, PptxChartDataTable, PptxChartErrBars, PptxChartLineStyle, PptxChartMarker, PptxChartSeries, PptxChartShapeProps, PptxChartStyle, PptxChartTrendline, PptxChartType, PptxColorStyleCodec, type PptxColorStyleCodecContext, PptxComment, PptxCommentAuthor, type PptxCommentAuthorDescriptor, PptxCommentAuthorsXmlFactory, type PptxCommentAuthorsXmlFactoryInit, PptxCommentXmlFactoryProvider, PptxCompatibilityService, PptxCompatibilityWarning, PptxConnectorParser, type PptxConnectorParserContext, PptxContentTypesBuilder, type PptxContentTypesCommentBuildInput, type PptxContentTypesSlideMediaBuildInput, PptxCoreProperties, PptxCustomProperty, PptxCustomShow, PptxCustomXmlPart, PptxCustomerData, PptxData, PptxDocumentPropertiesUpdater, PptxDrawingGuide, PptxEditorAnimationService, type PptxEditorAnimationServiceOptions, PptxElement, PptxElementAnimation, PptxElementTransformUpdater, PptxElementWithShapeStyle, PptxElementWithText, PptxElementXmlBuilder, type PptxElementXmlBuilderOptions, PptxEmbeddedFont, PptxEmbeddedWorkbookData, PptxExportOptions, PptxExternalData, PptxGraphicFrameParser, type PptxGraphicFrameParserContext, PptxHandler, type PptxHandlerLoadOptions, PptxHandlerRuntime, PptxHandlerRuntimeFactory, type PptxHandlerSaveOptions, PptxHandoutMaster, PptxHeaderFooter, PptxImageEffects, PptxImageLikeElement, PptxKinsoku, PptxLayoutOption, PptxLoadDataBuilder, PptxMasterTextStyles, PptxMediaDataParser, type PptxMediaDataParserContext, type PptxMediaTimingEntry, type PptxMediaTimingMap, PptxModifyVerifier, PptxNativeAnimation, PptxNativeAnimationService, PptxNotesMaster, PptxPhotoAlbum, PptxPresentationProperties, type PptxPresentationSaveBuildInput, PptxPresentationSaveBuilder, type PptxPresentationSaveBuilderOptions, PptxPresentationSlidesReconciler, type PptxPresentationSlidesReconcilerInput, type PptxRuntimeDependencyBundle, PptxRuntimeDependencyFactory, type PptxRuntimeDependencyFactoryInput, type PptxSaveConstants, PptxSaveConstantsFactory, type PptxSaveFormat, type PptxSaveMediaKind, PptxSaveState as PptxSaveSession, PptxSaveStateBuilder as PptxSaveSessionBuilder, PptxSaveState, PptxSaveStateBuilder, PptxSection, PptxShapeIdValidator, PptxShapeLocks, PptxShapeStyleExtractor, type PptxShapeStyleExtractorContext, PptxSlide, PptxSlideBackgroundBuilder, type PptxSlideBackgroundBuilderInput, PptxSlideBuilder, PptxSlideCommentPartWriter, type PptxSlideCommentPartWriterInput, type PptxSlideCommentRelationshipInfo, PptxSlideCommentsXmlFactory, type PptxSlideCommentsXmlFactoryInit, PptxSlideElementsBuilder, type PptxSlideLoaderParams, PptxSlideLoaderService, type PptxSlideLoaderThemeOverride, PptxSlideMaster, PptxSlideMediaRelationshipBuilder, PptxSlideNotesBuilder, PptxSlideNotesPartUpdater, type PptxSlideNotesPartUpdaterInput, type PptxSlideNotesResult, PptxSlideRelationshipRegistry, type PptxSlideRelationshipRegistryOptions, PptxSlideTransition, PptxSlideTransitionService, type PptxSlideTransitionServiceOptions, PptxSmartArtChrome, PptxSmartArtColorTransform, PptxSmartArtData, PptxSmartArtDrawingShape, PptxSmartArtNode, PptxSmartArtQuickStyle, PptxTableCellStyle, PptxTableData, PptxTableDataParser, type PptxTableDataParserContext, PptxTagCollection, PptxTemplateBackgroundService, type PptxTemplateBackgroundState, PptxTextStyleLevels, PptxTheme, PptxThemeColorScheme, PptxThemeEffectStyle, PptxThemeFillStyle, PptxThemeFontScheme, PptxThemeFormatScheme, PptxThemeLineStyle, PptxThemeObjectDefaults, PptxThemeOption, type PptxThemePreset, PptxTransitionType, PptxViewProperties, PptxXmlBuilder, PptxXmlFactoryProvider, PptxXmlLookupService, Presentation, PresentationBuilder, type PresentationBuilderResult, type PresentationDiff, type PresentationOptions, type PresentationThemeInput, type PresetShapeCategory, type PresetShapeDefinition, type PropertyChange, type ReflowedNodePosition, type RepairResult, SHAPE_TREE_ELEMENT_TAGS, SP_PR_ORDER, STROKE_DASH_OPTIONS, SWITCHABLE_LAYOUT_TYPES, SYSTEM_COLOR_MAP, type ShadowInput, ShapeBuilder, type ShapeOptions, ShapePptxElement, ShapeStyle, type SignatureCertificateInfo, type SignatureDetectionResult, type SignatureReference, type SignatureStatus, SlideBuilder, type SlideDiff, SlideSizes, SmartArtLayoutType, SmartArtPptxElement, type StandardEncryptionInfo, StrokeDashType, type StrokeInput, type SupportedShapeType, TC_PR_BORDERS_ORDER, THEME_PRESETS, TableBuilder, type TableCellInput, type TableInput, type TableOptions, TablePptxElement, type TableRowInput, type TableStyleFlags, type TableStylePartBorder, type TableStylePartBorders, type TableStylePartFill, type TableStylePartText, type TemplateData, TextBuilder, type TextOptions, TextPptxElement, TextSegment, type TextSegmentInput, TextShapeXmlFactory, type TextShapeXmlFactoryInit, TextStyle, type TextStyleInput, type ThemePreset, type ThemePresetName, ThemePresets, type TransitionInput, VML_SHAPE_TAGS, type ValidationIssue, type ValidationResult, type Vec2, XmlObject, ZoomPptxElement, addChartCategory, addChartSeries, addSection, addSmartArtNode, addSmartArtNodeAsChild, applyDrawingColorTransforms, applyKinsokuToXml, applyTemplate, applyThemeToData, areNamespacesSupported, buildCalloutLeaderLineSvgPath, buildClrMapOverrideXml, buildFontFamilyString, buildGuideListExtension, buildLinkedTextBoxChains, buildOle2, buildSingleEffectNode, buildSrgbColorChoice, buildThemeColorMap, catmullRomToBezier, chartDataAddCategory, chartDataAddSeries, chartDataChangeType, chartDataRemoveCategory, chartDataRemoveSeries, chartDataUpdatePoint, checkBlankSlide, checkComplexTables, checkDuplicateTitles, checkLowContrast, checkMissingAltText, checkMissingSlideTitle, checkPresentation, clampUnitInterval, classifyPanose, cloneElement, cloneShapeStyle, cloneSlide, cloneTemplateElementsBySlideId, cloneTextStyle, cloneXmlObject, cm, cmToEmu, colorWithOpacity, colorsEqual, combineShapes, computeContrastRatio, computeCycleLayout, computeHierarchyLayout, computeLinearLayout, computeMatrixLayout, computePyramidLayout, computeSmartArtLayout, computeSnakeLayout, convertXmlToStrict, createArrayBufferCopy, createBuiltinVariables, createChartElement, createConnectorElement, createDefaultPptxHandlerRuntime, createEditorId, createFreeformElement, createGroupElement, createImageElement, createLayout, createLayouts, createMediaElement, createModifyVerifier, createPptxSaveConstants, createShapeElement, createTableElement, createTemplateConnectorRawXml, createTemplateShapeRawXml, createTextElement, createUniformTextSegments, decomposeSmartArt, decryptPptx, demoteSmartArtNode, deobfuscateFont, detectDigitalSignatures, detectFileFormat, detectFontFormat, detectOleObjectType, detectStrictConformance, diffPresentations, diffSlides, distributeSegmentsAcrossChain, douglasPeucker, duplicateElement, duplicateSlide, elementActionToPptxAction, elementHasAction, emuToPixels, encryptPptx, ensureArrayValue, estimateTextBoxCapacity, evaluateGeometryPaths, evaluateGuides, extractColorChoiceXml, extractGuidFromPartName, extractModel3DTransform, fetchUrlToBytes, findCustomShow, findLayoutByName, findLayoutByType, findPlaceholders, formatCommentTimestamp, fragmentShapes, generateFontGuid, generateLayoutXml, getAnimationPresetInfo, getCalloutLeaderLineGeometry, getCalloutTier, getCalloutViewBoxBounds, getCommentMarkerPosition, getConnectorAdjustment, getConnectorPathGeometry, getCssBorderDashStyle, getCustomShowNames, getCustomShowPositionLabel, getElementLabel, getElementTextContent, getElementTransform, getImageMaskStyle, getLinkedTextBoxSegments, getOleObjectTypeLabel, getPanoseWeight, getPresetShapeClipPath, getPresetsByCategory, getRoundRectRadiusPx, getSectionForSlide, getSectionSlideRange, getShapeClipPath, getShapeType, getSignaturePathsToStrip, getSubstituteFontFamily, getSubstituteFonts, getSupportedNamespaces, getSvgStrokeDasharray, getTextCompensationTransform, getThemePreset, getZoomElements, getZoomTargetSlideIndexes, guidToKey, guideEmuToPx, guidePxToEmu, hasDirectSubstitution, hasNonTrivialOverride, hasShapeProperties, hasTextProperties, hexToRgbChannels, hslToRgb, inches, inchesToEmu, inferOleExtensionFromTarget, interpolateShapeGeometry, intersectPolygons, intersectShapes, intersectSvgPaths, isCalloutShape, isConnectorElement, isEditableTextElement, isImageLikeElement, isInkElement, isNamespaceSupported, isShapeElement, isStrictNamespaceUri, isSummaryZoomSlide, isSwitchableLayoutType, isTemplateElement, isTextElement, isTransitionalNamespaceUri, isZoomElement$1 as isZoomElement, isZoomElement as isZoomElementUtil, layoutEngineShapesToDrawingShapes, mailMerge, mergeShapes, mergeStyleParts, mergeThemeColorOverride, mm, moveSlidesToSection, navigateCustomShow, normalizeHexColor, normalizeNamespaceUri, normalizeStrictXml, normalizeStrokeDashType, obfuscateFont, ooxmlArcToSvg, parseActiveXControlsFromSlide, parseAdjustmentValues, parseBodyPrBooleanAttrs, parseChart3DSurfaces, parseChartAxes, parseCondition, parseConditionList, parseCxChartSeries, parseDataTable, parseDataUrlToBytes, parseDrawingColor, parseDrawingColorChoice, parseDrawingColorOpacity, parseDrawingFraction, parseDrawingHueDegrees, parseDrawingPercent, parseEmbeddedXlsx, parseGuideDefinitions, parseHexColor, parseKinsoku, parseLayoutDefinition, parseLineStyle, parseMarker, parseOle2, parsePanoseBytes, parsePanoseString, parsePresentationDrawingGuides, parseSeriesDataLabels, parseSeriesDataPoints, parseSeriesErrBars, parseSeriesExplosion, parseSeriesTrendlines, parseShapeProps, parseSignatureXml, parseSlideDrawingGuides, parseSvgPath, parseVmlElement, parseVmlElements, pixelsToEmu, polygonsToSvgPath, pptxActionToElementAction, promoteSmartArtNode, pt, reResolveSlideColors, readFileAsDataUrl, reflowSmartArtLayout, relativeLuminance, relayoutSmartArt, removeChartCategory, removeChartSeries, removeSection, removeSmartArtNode, reorderObjectKeys, reorderSections, reorderSmartArtNode, reorderSmartArtNodeToIndex, repairPptx, replaceShapeGeometry, replaceWithCustomGeometry, resetCloneIdCounter, resetDecomposeCounter, resetIdCounter, resetSectionIdCounter, resetSmartArtEditCounter, resolveCoordinate, resolveCustomShowSlideIndices, resolveModel3DMimeType, resolveTableCellStyle, rgbToHsl, selectAlternateContentBranch, serializeColorChoice, serializeCondition, serializeConditionList, serializeSvgPath, setChartCategories, setChartGrouping, setChartTitle, setChartType, shouldRenderFallbackLabel, shouldReturnToZoomSlide, subtractPolygons, subtractShapes, subtractSvgPaths, svgPathToPolygons, switchSmartArtLayout, toHex, toStrictNamespaceUri, unionPolygons, unionShapes, unionSvgPaths, unwrapAlternateContent, updateChartDataPoint, updateChartSeriesValues, updateSmartArtNodeText, validatePptx, verifyModifyPassword, verifyPassword, verifySignatureDigests, writeBodyPrBooleanAttrs };
|