ooxml-core 1.25.1 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/{PptxHandler-AUK27AQD.mjs → PptxHandler-5QBRBXRX.mjs} +3 -3
- package/dist/{PptxHandler-QBGEZDCO.cjs → PptxHandler-CVYP5PAN.cjs} +3 -3
- package/dist/PptxHandler-TOAD6P7N.mjs +4 -0
- package/dist/{PresentationBuilder-RX7D75GZ.mjs → PresentationBuilder-EBVNYMLE.mjs} +2 -2
- package/dist/{PresentationBuilder-MEETJGEA.mjs → PresentationBuilder-M5UXW4AF.mjs} +3 -3
- package/dist/{PresentationBuilder-CI45KEHL.cjs → PresentationBuilder-RVQZCTIO.cjs} +5 -5
- package/dist/automation/index.cjs +273 -156
- package/dist/automation/index.mjs +273 -156
- package/dist/automation/xlsx-read.d.ts +2 -8
- package/dist/automation/xlsx-read.d.ts.map +1 -1
- package/dist/automation/xlsx.d.ts +2 -2
- package/dist/chart/index.cjs +89 -47
- package/dist/chart/index.mjs +89 -47
- package/dist/{chunk-6DHZZD5R.mjs → chunk-2XMK5SXU.mjs} +106 -48
- package/dist/{chunk-TX2QFS3J.mjs → chunk-4IIR2QEH.mjs} +608 -371
- package/dist/{chunk-635WPRNJ.mjs → chunk-DNYZX6YG.mjs} +19 -3
- package/dist/{chunk-VGDHSED6.mjs → chunk-EBJ724RB.mjs} +1 -1
- package/dist/{chunk-GMETZZ3V.cjs → chunk-EEHK52XB.cjs} +1677 -1440
- package/dist/{chunk-E2PYQQQV.mjs → chunk-JJ37PCNR.mjs} +89 -47
- package/dist/{chunk-5F7OB7PA.mjs → chunk-K6OFJ5GJ.mjs} +605 -368
- package/dist/{chunk-HVRFRYYS.mjs → chunk-KONCS53X.mjs} +5 -5
- package/dist/{chunk-S5TGOEQX.cjs → chunk-MU3XSASV.cjs} +106 -47
- package/dist/{chunk-E3PRAHL6.mjs → chunk-ZXPPM63Y.mjs} +1 -1
- package/dist/docx/embedded.cjs +89 -47
- package/dist/docx/embedded.mjs +89 -47
- package/dist/docx/index.cjs +89 -47
- package/dist/docx/index.mjs +89 -47
- package/dist/docx/layout/index.cjs +2 -2
- package/dist/docx/layout/index.mjs +2 -2
- package/dist/docx/layout/input.d.ts +6 -1
- package/dist/docx/layout/input.d.ts.map +1 -1
- package/dist/docx/layout/result.d.ts +1 -0
- package/dist/docx/layout/result.d.ts.map +1 -1
- package/dist/docx/load/index.cjs +89 -47
- package/dist/docx/load/index.mjs +89 -47
- package/dist/index.cjs +128 -53
- package/dist/index.mjs +128 -53
- package/dist/opc/index.cjs +90 -47
- package/dist/opc/index.mjs +90 -48
- package/dist/opc/zip-limits.d.ts +6 -0
- package/dist/opc/zip-limits.d.ts.map +1 -1
- package/dist/pptx/automation/index.cjs +766 -444
- package/dist/pptx/automation/index.d.ts +4 -4
- package/dist/pptx/automation/index.mjs +6 -6
- package/dist/pptx/chunks/{index-CgjEEpfK.d.ts → index-B94RKk84.d.ts} +276 -115
- package/dist/pptx/chunks/index-B94RKk84.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-CX0RM1fF.d.ts → index-BOpULlxB.d.ts} +3 -3
- package/dist/pptx/chunks/{index-CX0RM1fF.d.ts.map → index-BOpULlxB.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-DCbp5fOs.d.ts → index-D3gKRIAi.d.ts} +12 -5
- package/dist/pptx/chunks/{index-DCbp5fOs.d.ts.map → index-D3gKRIAi.d.ts.map} +1 -1
- package/dist/pptx/chunks/{text-operations-CjalmJIi.d.ts → text-operations-CNfUj45U.d.ts} +16 -2
- package/dist/pptx/chunks/{text-operations-CjalmJIi.d.ts.map → text-operations-CNfUj45U.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +766 -444
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +5 -5
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +3 -3
- package/dist/pptx/editor/render/editor-history.cjs +21 -0
- package/dist/pptx/editor/render/editor-history.d.ts +9 -0
- package/dist/pptx/editor/render/editor-history.d.ts.map +1 -1
- package/dist/pptx/editor/render/editor-history.mjs +21 -0
- package/dist/pptx/editor/render/find-replace.cjs +14 -14
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +1 -1
- package/dist/pptx/editor/render/slide-operations.cjs +8 -8
- package/dist/pptx/editor/render/slide-operations.mjs +2 -2
- package/dist/pptx/index.cjs +765 -442
- package/dist/pptx/index.d.ts +5 -5
- package/dist/pptx/index.mjs +6 -6
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/pptx/signature-node/index.cjs +89 -47
- package/dist/pptx/signature-node/index.mjs +2 -2
- package/dist/visio/index.cjs +266 -150
- package/dist/visio/index.mjs +266 -150
- package/dist/visio/ui/index.cjs +266 -150
- package/dist/visio/ui/index.mjs +266 -150
- package/dist/xlsx/index.cjs +518 -153
- package/dist/xlsx/index.mjs +518 -154
- package/dist/xlsx/load/index.cjs +266 -150
- package/dist/xlsx/load/index.mjs +266 -150
- package/dist/xlsx/numfmt/view.d.ts +13 -0
- package/dist/xlsx/numfmt/view.d.ts.map +1 -0
- package/dist/xlsx/read/index.d.ts +1 -0
- package/dist/xlsx/read/index.d.ts.map +1 -1
- package/dist/xlsx/read/limits.d.ts +5 -0
- package/dist/xlsx/read/limits.d.ts.map +1 -1
- package/dist/xlsx/read/package.d.ts +6 -0
- package/dist/xlsx/read/package.d.ts.map +1 -1
- package/dist/xlsx/read/rows-stream.d.ts +12 -0
- package/dist/xlsx/read/rows-stream.d.ts.map +1 -0
- package/dist/xlsx/read/rows.d.ts +37 -0
- package/dist/xlsx/read/rows.d.ts.map +1 -0
- package/dist/xlsx/read/shared-strings.d.ts +6 -1
- package/dist/xlsx/read/shared-strings.d.ts.map +1 -1
- package/dist/xlsx/read/sheet-data-source.d.ts +30 -3
- package/dist/xlsx/read/sheet-data-source.d.ts.map +1 -1
- package/dist/xlsx/read/sheet-data.d.ts +13 -2
- package/dist/xlsx/read/sheet-data.d.ts.map +1 -1
- package/dist/xlsx/read/worksheet.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +266 -150
- package/dist/xlsx/ui/index.mjs +266 -150
- package/dist/xml/index.cjs +38 -6
- package/dist/xml/index.mjs +37 -7
- package/dist/xml/lite.d.ts +15 -0
- package/dist/xml/lite.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/PptxHandler-5UO5DD5K.mjs +0 -4
- package/dist/pptx/chunks/index-CgjEEpfK.d.ts.map +0 -1
|
@@ -2,7 +2,7 @@ import { D as StrokeDashType, S as ConnectorArrowType, T as PptxShapeLocks, i as
|
|
|
2
2
|
import { t as PptxThemeColorRef } from "./color-ref-DT599vEx.js";
|
|
3
3
|
import { $ as ParsedTableStyleFill, $t as PptxChartSeries, Bt as PptxChartGradientFill, C as SmartArtPptxElement, Dt as PptxChartDataLabel, Et as PptxChartData, F as PlaceholderTextLevelStyle, H as PptxAction, Jt as PptxChartMarkerSymbol, Lt as PptxChartErrBars, O as ZoomPptxElement, Ot as PptxChartDataLabelOptions, P as PlaceholderDefaults, T as TablePptxElement, Tt as PptxChartChrome, U as MediaBookmark, Vt as PptxChartHistogramOptions, Y as ParsedTableBackground, Yt as PptxChartOfPieOptions, Z as ParsedTableStyleBorders, Zt as PptxChartRegionMapOptions, _ as PptxElementWithText, a as GroupPptxElement, ar as ResolvedStyleMatrix, at as ParsedTableStyleText, bt as PptxChartAxisFormatting, c as MediaPptxElement, cn as PptxChartView3D, ct as PptxTableCellParagraph, d as OlePptxElement, dn as PptxEmbeddedWorkbookData, dt as PptxTableData, en as PptxChartShapeProps, fn as PptxExternalData, i as ContentPartPptxElement, l as Model3DPptxElement, ln as PptxChartWaterfallOptions, lt as PptxTableCellStyle, m as PptxElement, n as ConnectorPptxElement, nn as PptxChartTreemapOptions, on as PptxChartType, or as ShapeStyle, pn as PptxChartUserShape, q as PptxMediaReferenceKind, qt as PptxChartMarker, rn as PptxChartTrendline, rr as PptxImageProperties, rt as ParsedTableStyleMap, s as InkPptxElement, t as ChartPptxElement, tn as PptxChartStyle, tr as PptxImageEffects, vn as ResolvedChartStyleDefinition, wt as PptxChartBoxWhiskerOptions, y as PptxImageLikeElement } from "./elements-DhW764aK.js";
|
|
4
4
|
import { B as PptxSmartArtTextRun, G as PptxSmartArtChrome, It as AdjustHandlePolar, Lt as AdjustHandleXY, P as PptxSmartArtQuickStyle, Rt as ConnectionSite, Ut as CustomGeometryTextRect, Vt as CustomGeometryRawData, Wt as GeometryAdjustmentHandle, f as PptxSmartArtColorTransform, j as PptxSmartArtNodeStyle, n as PptxSmartArtData, r as PptxSmartArtDrawingShape, t as PptxSmartArtConnection, zt as CustomGeometryPath } from "./smart-art-BEEl0l8X.js";
|
|
5
|
-
import { $ as PptxThemeOption, C as PptxSlide, Ct as
|
|
5
|
+
import { $ as PptxThemeOption, C as PptxSlide, Ct as PptxCoreProperties, D as PptxSmartTagsReference, Dt as PptxTagCollection, J as PptxNotesMaster, K as PptxLayoutPreview, P as PptxViewProperties, Q as PptxTextStyleLevels, Rt as PptxAnimationPreset, S as PptxSection, St as PptxCompatibilityWarning, T as PptxSlideSize, Tt as PptxModernCommentAuthor, V as PptxEmbeddedFontList, W as PptxHandoutMaster, Wt as PptxAnimationTrigger, X as PptxSlideLayout, Y as PptxPlaceholderFrame, Z as PptxSlideMaster, Zt as PptxNativeAnimation, _ as PptxLayoutOption, _t as PptxThemeVariant, a as MergeOptions, b as PptxPhotoAlbum, bt as PptxComment, c as PptxCustomShow, ct as PptxThemeColorScheme, d as PptxData, f as PptxEmbeddedFont, ft as PptxThemeFontScheme, g as PptxKinsoku, gt as PptxThemePartSchemes, h as PptxHeaderFooter, ht as PptxThemeObjectDefaults, l as PptxCustomXmlPart, lt as PptxThemeEffectStyle, m as PptxExportOptions, mn as PptxSlideTransition, mt as PptxThemeLineStyle, pt as PptxThemeFormatScheme, q as PptxMasterTextStyles, qt as PptxElementAnimation, s as PptxActiveXControl, st as PptxTheme, t as FindResult, u as PptxCustomerData, ut as PptxThemeFillStyle, v as PptxModernCommentPart, w as PptxSlideBackgroundPattern, wt as PptxCustomProperty, x as PptxPresentationProperties, xn as PptxTransitionType, xt as PptxCommentAuthor, y as PptxModifyVerifier, yt as PptxAppProperties } from "./text-operations-CNfUj45U.js";
|
|
6
6
|
import { XMLBuilder, XMLParser } from "fast-xml-parser";
|
|
7
7
|
import JSZip from "jszip";
|
|
8
8
|
//#region pptx/core/types/theme-presets.d.ts
|
|
@@ -2399,7 +2399,7 @@ declare class TemplateElementBaselineTracker {
|
|
|
2399
2399
|
* the constructor of the final concrete class
|
|
2400
2400
|
* ({@link PptxHandlerRuntimeImplementation}).
|
|
2401
2401
|
*/
|
|
2402
|
-
declare class PptxHandlerRuntime$
|
|
2402
|
+
declare class PptxHandlerRuntime$106 {
|
|
2403
2403
|
/** The in-memory ZIP archive representing the OPC (.pptx) package. */
|
|
2404
2404
|
protected zip: JSZip;
|
|
2405
2405
|
/** fast-xml-parser instance used to parse XML strings into JS objects. */
|
|
@@ -2812,7 +2812,7 @@ declare class PptxHandlerRuntime$104 {
|
|
|
2812
2812
|
}
|
|
2813
2813
|
//#endregion
|
|
2814
2814
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeTableStyles.d.ts
|
|
2815
|
-
declare class PptxHandlerRuntime$
|
|
2815
|
+
declare class PptxHandlerRuntime$105 extends PptxHandlerRuntime$106 {
|
|
2816
2816
|
/**
|
|
2817
2817
|
* Export slides to a vector or raster format, keyed by slide index.
|
|
2818
2818
|
*
|
|
@@ -2902,7 +2902,7 @@ declare class PptxHandlerRuntime$103 extends PptxHandlerRuntime$104 {
|
|
|
2902
2902
|
}
|
|
2903
2903
|
//#endregion
|
|
2904
2904
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeElementActions.d.ts
|
|
2905
|
-
declare class PptxHandlerRuntime$
|
|
2905
|
+
declare class PptxHandlerRuntime$104 extends PptxHandlerRuntime$105 {
|
|
2906
2906
|
/**
|
|
2907
2907
|
* Write or remove a single `a:hlinkClick` / `a:hlinkHover` node on
|
|
2908
2908
|
* a `p:cNvPr` parent.
|
|
@@ -2959,7 +2959,7 @@ declare class PptxHandlerRuntime$102 extends PptxHandlerRuntime$103 {
|
|
|
2959
2959
|
}
|
|
2960
2960
|
//#endregion
|
|
2961
2961
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeTableStylesAndActions.d.ts
|
|
2962
|
-
declare class PptxHandlerRuntime$
|
|
2962
|
+
declare class PptxHandlerRuntime$103 extends PptxHandlerRuntime$104 {
|
|
2963
2963
|
/**
|
|
2964
2964
|
* Parse a single `a:hlinkClick` or `a:hlinkHover` node into a `PptxAction`.
|
|
2965
2965
|
*/
|
|
@@ -3014,7 +3014,7 @@ interface MediaTimingData {
|
|
|
3014
3014
|
*/
|
|
3015
3015
|
mediaEmbedPath?: string;
|
|
3016
3016
|
}
|
|
3017
|
-
declare class PptxHandlerRuntime$
|
|
3017
|
+
declare class PptxHandlerRuntime$102 extends PptxHandlerRuntime$103 {
|
|
3018
3018
|
/**
|
|
3019
3019
|
* Extract image recolour/brightness/contrast/artistic effects from blip extensions.
|
|
3020
3020
|
*/
|
|
@@ -3054,7 +3054,7 @@ declare class PptxHandlerRuntime$100 extends PptxHandlerRuntime$101 {
|
|
|
3054
3054
|
}
|
|
3055
3055
|
//#endregion
|
|
3056
3056
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeMediaTimingParsing.d.ts
|
|
3057
|
-
declare class PptxHandlerRuntime$
|
|
3057
|
+
declare class PptxHandlerRuntime$101 extends PptxHandlerRuntime$102 {
|
|
3058
3058
|
/**
|
|
3059
3059
|
* Recursively walk the timing tree looking for `p:video` and `p:audio`
|
|
3060
3060
|
* nodes that contain `p:cMediaNode`.
|
|
@@ -3087,7 +3087,7 @@ declare class PptxHandlerRuntime$99 extends PptxHandlerRuntime$100 {
|
|
|
3087
3087
|
}
|
|
3088
3088
|
//#endregion
|
|
3089
3089
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeMediaData.d.ts
|
|
3090
|
-
declare class PptxHandlerRuntime$
|
|
3090
|
+
declare class PptxHandlerRuntime$100 extends PptxHandlerRuntime$101 {
|
|
3091
3091
|
/** Forward declaration implemented later in the runtime inheritance chain. */
|
|
3092
3092
|
protected resolveThemeColor(_schemeKey: string): string | undefined;
|
|
3093
3093
|
/**
|
|
@@ -3133,10 +3133,14 @@ declare class PptxHandlerRuntime$98 extends PptxHandlerRuntime$99 {
|
|
|
3133
3133
|
}
|
|
3134
3134
|
//#endregion
|
|
3135
3135
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeDocProperties.d.ts
|
|
3136
|
-
declare class PptxHandlerRuntime$
|
|
3136
|
+
declare class PptxHandlerRuntime$99 extends PptxHandlerRuntime$100 {
|
|
3137
3137
|
protected buildRelativeTargetPath(fromPartPath: string, toPartPath: string): string;
|
|
3138
|
-
|
|
3139
|
-
|
|
3138
|
+
/**
|
|
3139
|
+
* Point a slide master's theme relationship at `themePath`.
|
|
3140
|
+
*
|
|
3141
|
+
* @returns whether the master had a theme relationship to rewrite
|
|
3142
|
+
*/
|
|
3143
|
+
protected setMasterThemeRelationship(masterPath: string, themePath: string): Promise<boolean>;
|
|
3140
3144
|
/** The text of a package part, or `undefined` when the package has no such part. */
|
|
3141
3145
|
private readPartText;
|
|
3142
3146
|
/**
|
|
@@ -3188,7 +3192,7 @@ declare class PptxHandlerRuntime$97 extends PptxHandlerRuntime$98 {
|
|
|
3188
3192
|
}
|
|
3189
3193
|
//#endregion
|
|
3190
3194
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSlideMasters.d.ts
|
|
3191
|
-
declare class PptxHandlerRuntime$
|
|
3195
|
+
declare class PptxHandlerRuntime$98 extends PptxHandlerRuntime$99 {
|
|
3192
3196
|
/**
|
|
3193
3197
|
* Parse background colour from a `p:bg` node.
|
|
3194
3198
|
*/
|
|
@@ -3233,7 +3237,7 @@ declare class PptxHandlerRuntime$96 extends PptxHandlerRuntime$97 {
|
|
|
3233
3237
|
}
|
|
3234
3238
|
//#endregion
|
|
3235
3239
|
//#region pptx/core/core/runtime/PptxHandlerRuntimePresentationProps.d.ts
|
|
3236
|
-
declare class PptxHandlerRuntime$
|
|
3240
|
+
declare class PptxHandlerRuntime$97 extends PptxHandlerRuntime$98 {
|
|
3237
3241
|
/**
|
|
3238
3242
|
* Forward declaration - implemented in PptxHandlerRuntimeTextStyleUtils.
|
|
3239
3243
|
* Resolves `+mj-lt` / `+mn-lt` theme font tokens to the theme typeface.
|
|
@@ -3292,7 +3296,7 @@ interface EmbedTransitionSoundContext {
|
|
|
3292
3296
|
slideAudioRelationshipType: string;
|
|
3293
3297
|
slideId: string;
|
|
3294
3298
|
}
|
|
3295
|
-
declare class PptxHandlerRuntime$
|
|
3299
|
+
declare class PptxHandlerRuntime$96 extends PptxHandlerRuntime$97 {
|
|
3296
3300
|
protected createEmptySlideXml(): XmlObject;
|
|
3297
3301
|
protected deepCloneXml(value: XmlObject | undefined): XmlObject | undefined;
|
|
3298
3302
|
protected findSourceSlidePath(requestedSourcePath: string | undefined): string | undefined;
|
|
@@ -3342,18 +3346,18 @@ declare class PptxHandlerRuntime$94 extends PptxHandlerRuntime$95 {
|
|
|
3342
3346
|
}
|
|
3343
3347
|
//#endregion
|
|
3344
3348
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveRunProperties.d.ts
|
|
3345
|
-
declare class PptxHandlerRuntime$
|
|
3349
|
+
declare class PptxHandlerRuntime$95 extends PptxHandlerRuntime$96 {
|
|
3346
3350
|
protected createRunPropertiesFromTextStyle(style: TextStyle | undefined, resolveHyperlinkRelationshipId?: (target: string) => string | undefined): XmlObject | undefined;
|
|
3347
3351
|
private applyHyperlinkExtraAttrs;
|
|
3348
3352
|
}
|
|
3349
3353
|
//#endregion
|
|
3350
3354
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveParagraphs.d.ts
|
|
3351
|
-
declare class PptxHandlerRuntime$
|
|
3355
|
+
declare class PptxHandlerRuntime$94 extends PptxHandlerRuntime$95 {
|
|
3352
3356
|
protected createParagraphsFromTextContent(text: string | undefined, textStyle: TextStyle | undefined, textSegments: TextSegment[] | undefined, resolveHyperlinkRelationshipId?: (target: string) => string | undefined): XmlObject[];
|
|
3353
3357
|
}
|
|
3354
3358
|
//#endregion
|
|
3355
3359
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveElements.d.ts
|
|
3356
|
-
declare class PptxHandlerRuntime$
|
|
3360
|
+
declare class PptxHandlerRuntime$93 extends PptxHandlerRuntime$94 {
|
|
3357
3361
|
protected updateNotesXmlText(notesXmlObj: XmlObject, notesText: string | undefined, notesSegments?: TextSegment[]): boolean;
|
|
3358
3362
|
protected createPictureXml(el: PptxImageLikeElement, relationshipId: string): XmlObject;
|
|
3359
3363
|
protected createMediaGraphicFrameXml(el: MediaPptxElement, relationshipId: string): XmlObject;
|
|
@@ -3383,7 +3387,7 @@ interface GroupOwnEmuOverride {
|
|
|
3383
3387
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveShapeXml.d.ts
|
|
3384
3388
|
/** The save context a group child needs to serialise like a top-level shape. */
|
|
3385
3389
|
type GroupChildSaveContext = SaveSlideContext;
|
|
3386
|
-
declare class PptxHandlerRuntime$
|
|
3390
|
+
declare class PptxHandlerRuntime$92 extends PptxHandlerRuntime$93 {
|
|
3387
3391
|
/** See `save-shape-xml-frames.ts`'s `buildTableGraphicFrameXml`. */
|
|
3388
3392
|
protected createTableGraphicFrameXml(el: TablePptxElement): XmlObject;
|
|
3389
3393
|
/** See `save-shape-xml-frames.ts`'s `buildChartGraphicFrameXml`. */
|
|
@@ -3437,7 +3441,7 @@ declare class PptxHandlerRuntime$90 extends PptxHandlerRuntime$91 {
|
|
|
3437
3441
|
}
|
|
3438
3442
|
//#endregion
|
|
3439
3443
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveImageEffects.d.ts
|
|
3440
|
-
declare class PptxHandlerRuntime$
|
|
3444
|
+
declare class PptxHandlerRuntime$91 extends PptxHandlerRuntime$92 {
|
|
3441
3445
|
protected clampCropForSave(value: unknown): number;
|
|
3442
3446
|
/** See {@link buildSrcRectXml} (issue G2: signed crop insets). */
|
|
3443
3447
|
protected applyImageCropToBlipFill(blipFill: XmlObject | undefined, element: PptxImageLikeElement): void;
|
|
@@ -3462,7 +3466,7 @@ declare class PptxHandlerRuntime$89 extends PptxHandlerRuntime$90 {
|
|
|
3462
3466
|
}
|
|
3463
3467
|
//#endregion
|
|
3464
3468
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeTextStyleUtils.d.ts
|
|
3465
|
-
declare class PptxHandlerRuntime$
|
|
3469
|
+
declare class PptxHandlerRuntime$90 extends PptxHandlerRuntime$91 {
|
|
3466
3470
|
/**
|
|
3467
3471
|
* Resolve the automatic per-script fallback face for a run's text from the
|
|
3468
3472
|
* theme's `<a:font script="...">` overrides (#83). Body (minor) fonts win
|
|
@@ -3497,7 +3501,7 @@ declare class PptxHandlerRuntime$88 extends PptxHandlerRuntime$89 {
|
|
|
3497
3501
|
}
|
|
3498
3502
|
//#endregion
|
|
3499
3503
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeTextRunEffects.d.ts
|
|
3500
|
-
declare class PptxHandlerRuntime$
|
|
3504
|
+
declare class PptxHandlerRuntime$89 extends PptxHandlerRuntime$90 {
|
|
3501
3505
|
/**
|
|
3502
3506
|
* Parse hyperlink-related properties (a:hlinkClick, a:hlinkMouseOver) from
|
|
3503
3507
|
* run-level XML and apply them to the given TextStyle.
|
|
@@ -3526,7 +3530,7 @@ declare class PptxHandlerRuntime$87 extends PptxHandlerRuntime$88 {
|
|
|
3526
3530
|
}
|
|
3527
3531
|
//#endregion
|
|
3528
3532
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeTextRunStyleExtraction.d.ts
|
|
3529
|
-
declare class PptxHandlerRuntime$
|
|
3533
|
+
declare class PptxHandlerRuntime$88 extends PptxHandlerRuntime$89 {
|
|
3530
3534
|
protected extractTextRunStyle(runProperties: XmlObject | undefined, align: TextStyle['align'], relationshipMap?: Map<string, string>, includeDefaultAlignment?: boolean, slidePath?: string): TextStyle;
|
|
3531
3535
|
/**
|
|
3532
3536
|
* Copy `@panose` / `@pitchFamily` / `@charset` from a font child node
|
|
@@ -3537,7 +3541,7 @@ declare class PptxHandlerRuntime$86 extends PptxHandlerRuntime$87 {
|
|
|
3537
3541
|
}
|
|
3538
3542
|
//#endregion
|
|
3539
3543
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeTextEditing.d.ts
|
|
3540
|
-
declare class PptxHandlerRuntime$
|
|
3544
|
+
declare class PptxHandlerRuntime$87 extends PptxHandlerRuntime$88 {
|
|
3541
3545
|
protected extractTextSegmentsFromTxBodyForRewrite(txBody: XmlObject | undefined, baseStyle: TextStyle | undefined, relationshipMap?: Map<string, string>): TextSegment[];
|
|
3542
3546
|
protected remapEditedTextToExistingStyles(existingSegments: TextSegment[], nextText: string, fallbackStyle: TextStyle | undefined): TextSegment[];
|
|
3543
3547
|
}
|
|
@@ -3739,7 +3743,7 @@ interface LayoutPlaceholderSlot {
|
|
|
3739
3743
|
* reposition the matched ones, keep content the new layout has no slot for,
|
|
3740
3744
|
* and inject empty placeholders that exist only in the target layout.
|
|
3741
3745
|
*/
|
|
3742
|
-
declare class PptxHandlerRuntime$
|
|
3746
|
+
declare class PptxHandlerRuntime$86 extends PptxHandlerRuntime$87 {
|
|
3743
3747
|
/**
|
|
3744
3748
|
* Read placeholder info from a `p:nvPr` XML node.
|
|
3745
3749
|
*
|
|
@@ -3816,7 +3820,7 @@ declare class PptxHandlerRuntime$84 extends PptxHandlerRuntime$85 {
|
|
|
3816
3820
|
}
|
|
3817
3821
|
//#endregion
|
|
3818
3822
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveTableStyles.d.ts
|
|
3819
|
-
declare class PptxHandlerRuntime$
|
|
3823
|
+
declare class PptxHandlerRuntime$85 extends PptxHandlerRuntime$86 {
|
|
3820
3824
|
/**
|
|
3821
3825
|
* Write plain text into a table cell's txBody, preserving
|
|
3822
3826
|
* existing run properties where possible.
|
|
@@ -3831,7 +3835,7 @@ declare class PptxHandlerRuntime$83 extends PptxHandlerRuntime$84 {
|
|
|
3831
3835
|
}
|
|
3832
3836
|
//#endregion
|
|
3833
3837
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeChartUserShapes.d.ts
|
|
3834
|
-
declare class PptxHandlerRuntime$
|
|
3838
|
+
declare class PptxHandlerRuntime$84 extends PptxHandlerRuntime$85 {
|
|
3835
3839
|
/**
|
|
3836
3840
|
* Reconcile a chart's `c:userShapes` reference and drawing part against
|
|
3837
3841
|
* the current `chartData.userShapes` typed model, writing a new or
|
|
@@ -3867,7 +3871,7 @@ declare class PptxHandlerRuntime$82 extends PptxHandlerRuntime$83 {
|
|
|
3867
3871
|
}
|
|
3868
3872
|
//#endregion
|
|
3869
3873
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveDataSerialization.d.ts
|
|
3870
|
-
declare class PptxHandlerRuntime$
|
|
3874
|
+
declare class PptxHandlerRuntime$83 extends PptxHandlerRuntime$84 {
|
|
3871
3875
|
/**
|
|
3872
3876
|
* Serialise modified `PptxTableData` back into the graphic frame's
|
|
3873
3877
|
* raw XML so that the round-tripped file preserves edits.
|
|
@@ -3990,7 +3994,7 @@ declare class PptxHandlerRuntime$81 extends PptxHandlerRuntime$82 {
|
|
|
3990
3994
|
}
|
|
3991
3995
|
//#endregion
|
|
3992
3996
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveDocumentParts.d.ts
|
|
3993
|
-
declare class PptxHandlerRuntime$
|
|
3997
|
+
declare class PptxHandlerRuntime$82 extends PptxHandlerRuntime$83 {
|
|
3994
3998
|
/** Pending SmartArt data updates to process during save. */
|
|
3995
3999
|
protected pendingSmartArtUpdates?: Array<{
|
|
3996
4000
|
element: SmartArtPptxElement;
|
|
@@ -4113,7 +4117,7 @@ declare class PptxHandlerRuntime$80 extends PptxHandlerRuntime$81 {
|
|
|
4113
4117
|
}
|
|
4114
4118
|
//#endregion
|
|
4115
4119
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSavePresPropsAndSignatures.d.ts
|
|
4116
|
-
declare class PptxHandlerRuntime$
|
|
4120
|
+
declare class PptxHandlerRuntime$81 extends PptxHandlerRuntime$82 {
|
|
4117
4121
|
protected applyPresentationPropertiesPart(properties: PptxPresentationProperties | undefined): Promise<void>;
|
|
4118
4122
|
/**
|
|
4119
4123
|
* Strip digital signature parts from the ZIP if the document was signed.
|
|
@@ -4123,7 +4127,7 @@ declare class PptxHandlerRuntime$79 extends PptxHandlerRuntime$80 {
|
|
|
4123
4127
|
}
|
|
4124
4128
|
//#endregion
|
|
4125
4129
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveMediaTimingWrite.d.ts
|
|
4126
|
-
declare class PptxHandlerRuntime$
|
|
4130
|
+
declare class PptxHandlerRuntime$80 extends PptxHandlerRuntime$81 {
|
|
4127
4131
|
protected collectMediaElements(elements: PptxElement[], output: MediaPptxElement[]): void;
|
|
4128
4132
|
protected getShapeIdFromRawXml(rawXml: XmlObject | undefined): string | undefined;
|
|
4129
4133
|
protected applyMediaTimingToTimingTree(node: XmlObject, mediaByShapeId: Map<string, MediaPptxElement>): void;
|
|
@@ -4150,7 +4154,7 @@ declare class PptxHandlerRuntime$78 extends PptxHandlerRuntime$79 {
|
|
|
4150
4154
|
}
|
|
4151
4155
|
//#endregion
|
|
4152
4156
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveXmlHelpers.d.ts
|
|
4153
|
-
declare class PptxHandlerRuntime$
|
|
4157
|
+
declare class PptxHandlerRuntime$79 extends PptxHandlerRuntime$80 {
|
|
4154
4158
|
/**
|
|
4155
4159
|
* Recursively walk an XML object tree and deduplicate extension list entries
|
|
4156
4160
|
* by `@_uri`. When multiple `a:ext` or `p:ext` entries share the same URI,
|
|
@@ -4173,7 +4177,7 @@ declare class PptxHandlerRuntime$77 extends PptxHandlerRuntime$78 {
|
|
|
4173
4177
|
}
|
|
4174
4178
|
//#endregion
|
|
4175
4179
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveShapeStyleWriter.d.ts
|
|
4176
|
-
declare class PptxHandlerRuntime$
|
|
4180
|
+
declare class PptxHandlerRuntime$78 extends PptxHandlerRuntime$79 {
|
|
4177
4181
|
/**
|
|
4178
4182
|
* Serialize shape fill, stroke, dash, arrows, line join/cap/compound,
|
|
4179
4183
|
* and line-level effects to the given spPr XML object.
|
|
@@ -4212,7 +4216,7 @@ declare class PptxHandlerRuntime$76 extends PptxHandlerRuntime$77 {
|
|
|
4212
4216
|
}
|
|
4213
4217
|
//#endregion
|
|
4214
4218
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveEffectsWriter.d.ts
|
|
4215
|
-
declare class PptxHandlerRuntime$
|
|
4219
|
+
declare class PptxHandlerRuntime$77 extends PptxHandlerRuntime$78 {
|
|
4216
4220
|
/**
|
|
4217
4221
|
* Serialize visual effects (shadow, glow, reflection, blur, soft edge),
|
|
4218
4222
|
* effectDag, 3D scene, and 3D shape properties to the given spPr XML object.
|
|
@@ -4227,7 +4231,7 @@ declare class PptxHandlerRuntime$75 extends PptxHandlerRuntime$76 {
|
|
|
4227
4231
|
}
|
|
4228
4232
|
//#endregion
|
|
4229
4233
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveTextWriter.d.ts
|
|
4230
|
-
declare class PptxHandlerRuntime$
|
|
4234
|
+
declare class PptxHandlerRuntime$76 extends PptxHandlerRuntime$77 {
|
|
4231
4235
|
/**
|
|
4232
4236
|
* Build and write the text body (`p:txBody`) for shapes, text boxes,
|
|
4233
4237
|
* and connectors that carry text content.
|
|
@@ -4299,7 +4303,7 @@ interface SaveSlideContext {
|
|
|
4299
4303
|
*/
|
|
4300
4304
|
readonly preserveGroupChildSpace?: GroupChildSpaceOwner;
|
|
4301
4305
|
}
|
|
4302
|
-
declare class PptxHandlerRuntime$
|
|
4306
|
+
declare class PptxHandlerRuntime$75 extends PptxHandlerRuntime$76 {
|
|
4303
4307
|
/** Serialize table, chart, and SmartArt data when applicable. */
|
|
4304
4308
|
protected applyDataSerialization(shape: XmlObject, el: PptxElement, slideId: string): void;
|
|
4305
4309
|
/** Apply image crop, effects, and alt text for picture/image elements. */
|
|
@@ -4313,7 +4317,7 @@ declare class PptxHandlerRuntime$73 extends PptxHandlerRuntime$74 {
|
|
|
4313
4317
|
}
|
|
4314
4318
|
//#endregion
|
|
4315
4319
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveSmartArtFabrication.d.ts
|
|
4316
|
-
declare class PptxHandlerRuntime$
|
|
4320
|
+
declare class PptxHandlerRuntime$74 extends PptxHandlerRuntime$75 {
|
|
4317
4321
|
/** Content-type overrides queued for diagram parts fabricated this save. */
|
|
4318
4322
|
protected pendingDiagramContentTypes?: Array<{
|
|
4319
4323
|
partName: string;
|
|
@@ -4352,7 +4356,7 @@ interface PendingOleContentUpdate {
|
|
|
4352
4356
|
* fresh by `createOleElementWithPayload` (`PptxHandlerRuntimeSaveOleEmbedding.ts`),
|
|
4353
4357
|
* which already embeds whatever `oleEmbeddedData` holds at save time.
|
|
4354
4358
|
*/
|
|
4355
|
-
declare class PptxHandlerRuntime$
|
|
4359
|
+
declare class PptxHandlerRuntime$73 extends PptxHandlerRuntime$74 {
|
|
4356
4360
|
protected pendingOleContentUpdates?: PendingOleContentUpdate[];
|
|
4357
4361
|
private nextOlePreviewImageIndex?;
|
|
4358
4362
|
private nextOlePreviewImagePath;
|
|
@@ -4370,7 +4374,7 @@ declare class PptxHandlerRuntime$71 extends PptxHandlerRuntime$72 {
|
|
|
4370
4374
|
}
|
|
4371
4375
|
//#endregion
|
|
4372
4376
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveOleEmbedding.d.ts
|
|
4373
|
-
declare class PptxHandlerRuntime$
|
|
4377
|
+
declare class PptxHandlerRuntime$72 extends PptxHandlerRuntime$73 {
|
|
4374
4378
|
private pendingOleContentTypes?;
|
|
4375
4379
|
private nextOleEmbeddingPath;
|
|
4376
4380
|
/** Write an SDK-authored OLE payload and return its graphic-frame envelope. */
|
|
@@ -4380,7 +4384,7 @@ declare class PptxHandlerRuntime$70 extends PptxHandlerRuntime$71 {
|
|
|
4380
4384
|
}
|
|
4381
4385
|
//#endregion
|
|
4382
4386
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveZoom.d.ts
|
|
4383
|
-
declare class PptxHandlerRuntime$
|
|
4387
|
+
declare class PptxHandlerRuntime$71 extends PptxHandlerRuntime$72 {
|
|
4384
4388
|
protected readonly newZoomFallbackByXml: Map<XmlObject, XmlObject>;
|
|
4385
4389
|
/** Update an existing slide Zoom or build a new Office 2016 Zoom node. */
|
|
4386
4390
|
protected createOrUpdateSlideZoomXml(el: ZoomPptxElement, shape: XmlObject | undefined, ctx: SaveSlideContext): XmlObject | undefined;
|
|
@@ -4399,7 +4403,7 @@ declare class PptxHandlerRuntime$69 extends PptxHandlerRuntime$70 {
|
|
|
4399
4403
|
}
|
|
4400
4404
|
//#endregion
|
|
4401
4405
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveSectionZoom.d.ts
|
|
4402
|
-
declare class PptxHandlerRuntime$
|
|
4406
|
+
declare class PptxHandlerRuntime$70 extends PptxHandlerRuntime$71 {
|
|
4403
4407
|
/** Dispatch typed Zoom elements to their distinct slide/section envelopes. */
|
|
4404
4408
|
protected createOrUpdateZoomXml(el: ZoomPptxElement, shape: XmlObject | undefined, ctx: SaveSlideContext): XmlObject | undefined;
|
|
4405
4409
|
private createOrUpdateSectionZoomXml;
|
|
@@ -4407,7 +4411,7 @@ declare class PptxHandlerRuntime$68 extends PptxHandlerRuntime$69 {
|
|
|
4407
4411
|
}
|
|
4408
4412
|
//#endregion
|
|
4409
4413
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveSummaryZoom.d.ts
|
|
4410
|
-
declare class PptxHandlerRuntime$
|
|
4414
|
+
declare class PptxHandlerRuntime$69 extends PptxHandlerRuntime$70 {
|
|
4411
4415
|
/** Dispatch Summary Zoom containers without conflating them with Section Zoom tiles. */
|
|
4412
4416
|
protected createOrUpdateZoomXml(el: ZoomPptxElement, shape: XmlObject | undefined, ctx: SaveSlideContext): XmlObject | undefined;
|
|
4413
4417
|
private createOrUpdateSummaryZoomXml;
|
|
@@ -4421,7 +4425,7 @@ declare class PptxHandlerRuntime$67 extends PptxHandlerRuntime$68 {
|
|
|
4421
4425
|
}
|
|
4422
4426
|
//#endregion
|
|
4423
4427
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveModel3D.d.ts
|
|
4424
|
-
declare class PptxHandlerRuntime$
|
|
4428
|
+
declare class PptxHandlerRuntime$68 extends PptxHandlerRuntime$69 {
|
|
4425
4429
|
private readonly newModel3DFallbackByXml;
|
|
4426
4430
|
/** Create or update an embedded GLB model, its poster, and package relationships. */
|
|
4427
4431
|
protected createOrUpdateModel3DXml(el: Model3DPptxElement, shape: XmlObject | undefined, ctx: SaveSlideContext): XmlObject | undefined;
|
|
@@ -4436,7 +4440,7 @@ declare class PptxHandlerRuntime$66 extends PptxHandlerRuntime$67 {
|
|
|
4436
4440
|
}
|
|
4437
4441
|
//#endregion
|
|
4438
4442
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveContentPartInk.d.ts
|
|
4439
|
-
declare class PptxHandlerRuntime$
|
|
4443
|
+
declare class PptxHandlerRuntime$67 extends PptxHandlerRuntime$68 {
|
|
4440
4444
|
private readonly newContentPartFallbackByXml;
|
|
4441
4445
|
/**
|
|
4442
4446
|
* Convert a Draw-tab pen/highlighter element (no `rawXml`) into the
|
|
@@ -4480,7 +4484,7 @@ interface SlideShapeCollectors {
|
|
|
4480
4484
|
readonly contentParts: XmlObject[];
|
|
4481
4485
|
readonly zooms: XmlObject[];
|
|
4482
4486
|
}
|
|
4483
|
-
declare class PptxHandlerRuntime$
|
|
4487
|
+
declare class PptxHandlerRuntime$66 extends PptxHandlerRuntime$67 {
|
|
4484
4488
|
private static readonly CHART_COLOR_CONTENT_TYPE;
|
|
4485
4489
|
private static readonly CHART_COLOR_REL_TYPE;
|
|
4486
4490
|
private static readonly CHART_EX_CONTENT_TYPE;
|
|
@@ -4631,7 +4635,7 @@ declare class PptxHandlerRuntime$64 extends PptxHandlerRuntime$65 {
|
|
|
4631
4635
|
}
|
|
4632
4636
|
//#endregion
|
|
4633
4637
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveSlideWriter.d.ts
|
|
4634
|
-
declare class PptxHandlerRuntime$
|
|
4638
|
+
declare class PptxHandlerRuntime$65 extends PptxHandlerRuntime$66 {
|
|
4635
4639
|
protected resolveModernCommentAuthorId(comment: PptxComment): string;
|
|
4636
4640
|
protected nextModernCommentPartPath(): string;
|
|
4637
4641
|
private createModernCommentAuthorId;
|
|
@@ -4721,7 +4725,7 @@ declare class PptxHandlerRuntime$63 extends PptxHandlerRuntime$64 {
|
|
|
4721
4725
|
* save pipeline to regenerate the theme part instead of re-emitting the
|
|
4722
4726
|
* original XML.
|
|
4723
4727
|
*/
|
|
4724
|
-
declare class PptxHandlerRuntime$
|
|
4728
|
+
declare class PptxHandlerRuntime$64 extends PptxHandlerRuntime$65 {
|
|
4725
4729
|
/**
|
|
4726
4730
|
* Mark a theme path as dirty so the save pipeline will regenerate
|
|
4727
4731
|
* the theme XML from in-memory state. Optional — without this the
|
|
@@ -4793,7 +4797,7 @@ declare class PptxHandlerRuntime$62 extends PptxHandlerRuntime$63 {
|
|
|
4793
4797
|
}
|
|
4794
4798
|
//#endregion
|
|
4795
4799
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveSlideMaster.d.ts
|
|
4796
|
-
declare class PptxHandlerRuntime$
|
|
4800
|
+
declare class PptxHandlerRuntime$63 extends PptxHandlerRuntime$64 {
|
|
4797
4801
|
/**
|
|
4798
4802
|
* Apply typed mutations from the supplied {@link PptxSlideMaster} array
|
|
4799
4803
|
* to each master's cached XmlObject. Called by the save pipeline before
|
|
@@ -4804,7 +4808,7 @@ declare class PptxHandlerRuntime$61 extends PptxHandlerRuntime$62 {
|
|
|
4804
4808
|
}
|
|
4805
4809
|
//#endregion
|
|
4806
4810
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveSlideLayout.d.ts
|
|
4807
|
-
declare class PptxHandlerRuntime$
|
|
4811
|
+
declare class PptxHandlerRuntime$62 extends PptxHandlerRuntime$63 {
|
|
4808
4812
|
/**
|
|
4809
4813
|
* Apply typed mutations from the supplied {@link PptxSlideLayout} array
|
|
4810
4814
|
* to each layout's cached XmlObject. Called by the save pipeline before
|
|
@@ -4828,7 +4832,7 @@ declare class PptxHandlerRuntime$60 extends PptxHandlerRuntime$61 {
|
|
|
4828
4832
|
}
|
|
4829
4833
|
//#endregion
|
|
4830
4834
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveMasterElements.d.ts
|
|
4831
|
-
declare class PptxHandlerRuntime$
|
|
4835
|
+
declare class PptxHandlerRuntime$61 extends PptxHandlerRuntime$62 {
|
|
4832
4836
|
/**
|
|
4833
4837
|
* Persist Slide Master view edits to every master and layout the caller
|
|
4834
4838
|
* handed back, then let the pipeline's passthrough flush emit them.
|
|
@@ -4868,7 +4872,7 @@ declare class PptxHandlerRuntime$59 extends PptxHandlerRuntime$60 {
|
|
|
4868
4872
|
}
|
|
4869
4873
|
//#endregion
|
|
4870
4874
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveNotesMaster.d.ts
|
|
4871
|
-
declare class PptxHandlerRuntime$
|
|
4875
|
+
declare class PptxHandlerRuntime$60 extends PptxHandlerRuntime$61 {
|
|
4872
4876
|
/**
|
|
4873
4877
|
* Apply clrMap and headerFooter mutations to the notes master XML.
|
|
4874
4878
|
* Background-colour mutations are still handled by the pre-existing
|
|
@@ -4880,7 +4884,7 @@ declare class PptxHandlerRuntime$58 extends PptxHandlerRuntime$59 {
|
|
|
4880
4884
|
}
|
|
4881
4885
|
//#endregion
|
|
4882
4886
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveHandoutMaster.d.ts
|
|
4883
|
-
declare class PptxHandlerRuntime$
|
|
4887
|
+
declare class PptxHandlerRuntime$59 extends PptxHandlerRuntime$60 {
|
|
4884
4888
|
/**
|
|
4885
4889
|
* Apply clrMap and headerFooter mutations to the handout master XML.
|
|
4886
4890
|
*/
|
|
@@ -4888,7 +4892,7 @@ declare class PptxHandlerRuntime$57 extends PptxHandlerRuntime$58 {
|
|
|
4888
4892
|
}
|
|
4889
4893
|
//#endregion
|
|
4890
4894
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveViewProperties.d.ts
|
|
4891
|
-
declare class PptxHandlerRuntime$
|
|
4895
|
+
declare class PptxHandlerRuntime$58 extends PptxHandlerRuntime$59 {
|
|
4892
4896
|
/**
|
|
4893
4897
|
* Re-emit `ppt/viewProps.xml` from the typed view properties. Walks
|
|
4894
4898
|
* `presentation.xml.rels` to find the viewProps target so non-default
|
|
@@ -4918,7 +4922,7 @@ declare class PptxHandlerRuntime$56 extends PptxHandlerRuntime$57 {
|
|
|
4918
4922
|
}
|
|
4919
4923
|
//#endregion
|
|
4920
4924
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveNotesInfrastructure.d.ts
|
|
4921
|
-
declare class PptxHandlerRuntime$
|
|
4925
|
+
declare class PptxHandlerRuntime$57 extends PptxHandlerRuntime$58 {
|
|
4922
4926
|
/** Ensure authored notes have the global notes-master OPC infrastructure. */
|
|
4923
4927
|
protected ensureNotesMasterForAuthoredNotes(slides: readonly PptxSlide[], constants: PptxSaveConstants): Promise<void>;
|
|
4924
4928
|
private buildDefaultNotesMaster;
|
|
@@ -4926,7 +4930,7 @@ declare class PptxHandlerRuntime$55 extends PptxHandlerRuntime$56 {
|
|
|
4926
4930
|
}
|
|
4927
4931
|
//#endregion
|
|
4928
4932
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSaveHandoutInfrastructure.d.ts
|
|
4929
|
-
declare class PptxHandlerRuntime$
|
|
4933
|
+
declare class PptxHandlerRuntime$56 extends PptxHandlerRuntime$57 {
|
|
4930
4934
|
/** Ensure an authored handout master has complete OPC package infrastructure. */
|
|
4931
4935
|
protected ensureHandoutMasterInfrastructure(handoutMaster: PptxHandoutMaster | undefined, constants: PptxSaveConstants): Promise<void>;
|
|
4932
4936
|
private ensureHandoutThemeRelationship;
|
|
@@ -4951,7 +4955,7 @@ type LegacyPptxSerializer = () => Promise<Uint8Array>;
|
|
|
4951
4955
|
* to resolve `media`-`audio` elements loaded from a real `.pptx` (see
|
|
4952
4956
|
* `resolveAudioMediaBytes`'s doc).
|
|
4953
4957
|
*/
|
|
4954
|
-
declare class PptxHandlerRuntime$
|
|
4958
|
+
declare class PptxHandlerRuntime$55 extends PptxHandlerRuntime$56 {
|
|
4955
4959
|
/**
|
|
4956
4960
|
* A `media`-`audio` element loaded from a real `.pptx` carries only
|
|
4957
4961
|
* `mediaPath` (a lazy reference into `this.zip`), never `mediaData`
|
|
@@ -5011,7 +5015,7 @@ declare class PptxHandlerRuntime$53 extends PptxHandlerRuntime$54 {
|
|
|
5011
5015
|
* back out with it on every save. See `save-structural-id-gate.ts` for the
|
|
5012
5016
|
* decision helpers.
|
|
5013
5017
|
*/
|
|
5014
|
-
declare class PptxHandlerRuntime$
|
|
5018
|
+
declare class PptxHandlerRuntime$54 extends PptxHandlerRuntime$55 {
|
|
5015
5019
|
protected repairStructuralIdsBeforeExport(slides: PptxSlide[]): Promise<void>;
|
|
5016
5020
|
/** The loader's cached parse of a part, which the live model's `rawXml` nodes belong to. */
|
|
5017
5021
|
private cachedStructuralPart;
|
|
@@ -5020,7 +5024,7 @@ declare class PptxHandlerRuntime$52 extends PptxHandlerRuntime$53 {
|
|
|
5020
5024
|
}
|
|
5021
5025
|
//#endregion
|
|
5022
5026
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSavePipeline.d.ts
|
|
5023
|
-
declare class PptxHandlerRuntime$
|
|
5027
|
+
declare class PptxHandlerRuntime$53 extends PptxHandlerRuntime$54 {
|
|
5024
5028
|
/**
|
|
5025
5029
|
* Resolve the effective conformance class for this save operation.
|
|
5026
5030
|
*
|
|
@@ -5028,7 +5032,19 @@ declare class PptxHandlerRuntime$51 extends PptxHandlerRuntime$52 {
|
|
|
5028
5032
|
* - `'strict'` / `'transitional'`: force that conformance class
|
|
5029
5033
|
*/
|
|
5030
5034
|
private resolveEffectiveConformance;
|
|
5035
|
+
/** The save running now, or the last one: see {@link save}. */
|
|
5036
|
+
private saveQueue;
|
|
5037
|
+
/**
|
|
5038
|
+
* Saves run one at a time. A save rewrites `this.zip` in place across many awaits and moves
|
|
5039
|
+
* per-part baselines (slide fingerprints, chart data, pending chart updates) while it runs, so
|
|
5040
|
+
* a second save that starts mid-way (a viewer's autosave snapshot firing during the user's own
|
|
5041
|
+
* save) read half-written state: it skipped the slide as unchanged and wrote the chart part's
|
|
5042
|
+
* original XML back over the edit, in both outputs. Each save now waits for the one before it;
|
|
5043
|
+
* one that fails does not hold up the next.
|
|
5044
|
+
*/
|
|
5031
5045
|
save(slides: PptxSlide[], options?: PptxHandlerSaveOptions): Promise<Uint8Array>;
|
|
5046
|
+
/** One save, with the package to itself; callers go through {@link save}. */
|
|
5047
|
+
private saveNow;
|
|
5032
5048
|
/**
|
|
5033
5049
|
* Apply the Header & Footer dialog's state to every slide master.
|
|
5034
5050
|
*
|
|
@@ -5053,7 +5069,7 @@ declare class PptxHandlerRuntime$51 extends PptxHandlerRuntime$52 {
|
|
|
5053
5069
|
}
|
|
5054
5070
|
//#endregion
|
|
5055
5071
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeElementParsing.d.ts
|
|
5056
|
-
declare class PptxHandlerRuntime$
|
|
5072
|
+
declare class PptxHandlerRuntime$52 extends PptxHandlerRuntime$53 {
|
|
5057
5073
|
/**
|
|
5058
5074
|
* Parse media data (video/audio path and MIME type) from graphic frame data.
|
|
5059
5075
|
*/
|
|
@@ -5114,7 +5130,7 @@ declare class PptxHandlerRuntime$50 extends PptxHandlerRuntime$51 {
|
|
|
5114
5130
|
}
|
|
5115
5131
|
//#endregion
|
|
5116
5132
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeZoomParsing.d.ts
|
|
5117
|
-
declare class PptxHandlerRuntime$
|
|
5133
|
+
declare class PptxHandlerRuntime$51 extends PptxHandlerRuntime$52 {
|
|
5118
5134
|
/** Parse an Office 2016 `pslz:sldZm` slide Zoom object. */
|
|
5119
5135
|
protected parseSlideZoomElement(zoom: XmlObject, id: string, slidePath: string): Promise<PptxElement | null>;
|
|
5120
5136
|
protected findSlideIndexByNumericId(value: unknown): number;
|
|
@@ -5129,13 +5145,13 @@ declare class PptxHandlerRuntime$49 extends PptxHandlerRuntime$50 {
|
|
|
5129
5145
|
}
|
|
5130
5146
|
//#endregion
|
|
5131
5147
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSectionZoomParsing.d.ts
|
|
5132
|
-
declare class PptxHandlerRuntime$
|
|
5148
|
+
declare class PptxHandlerRuntime$50 extends PptxHandlerRuntime$51 {
|
|
5133
5149
|
/** Parse an Office 2016 `psezm:sectionZm` section Zoom object. */
|
|
5134
5150
|
protected parseSectionZoomElement(zoom: XmlObject, id: string, slidePath: string): Promise<PptxElement | null>;
|
|
5135
5151
|
}
|
|
5136
5152
|
//#endregion
|
|
5137
5153
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSummaryZoomParsing.d.ts
|
|
5138
|
-
declare class PptxHandlerRuntime$
|
|
5154
|
+
declare class PptxHandlerRuntime$49 extends PptxHandlerRuntime$50 {
|
|
5139
5155
|
/** Parse an Office 2016 Summary Zoom container and all section tiles. */
|
|
5140
5156
|
protected parseSummaryZoomElement(zoom: XmlObject, id: string, slidePath: string): Promise<PptxElement | null>;
|
|
5141
5157
|
private parseSummaryZoomPreview;
|
|
@@ -5152,7 +5168,7 @@ interface PlaceholderNodeContext extends PlaceholderLookupContext {
|
|
|
5152
5168
|
/** The inherited graphic frame XML object from the layout/master, if any. */
|
|
5153
5169
|
graphicFrame?: XmlObject;
|
|
5154
5170
|
}
|
|
5155
|
-
declare class PptxHandlerRuntime$
|
|
5171
|
+
declare class PptxHandlerRuntime$48 extends PptxHandlerRuntime$49 {
|
|
5156
5172
|
protected findPlaceholderInShapeTree(spTree: XmlObject | undefined, expected: PlaceholderInfo | null): PlaceholderNodeContext | undefined;
|
|
5157
5173
|
private scanPlaceholderBuckets;
|
|
5158
5174
|
/**
|
|
@@ -5208,7 +5224,7 @@ declare class PptxHandlerRuntime$46 extends PptxHandlerRuntime$47 {
|
|
|
5208
5224
|
}
|
|
5209
5225
|
//#endregion
|
|
5210
5226
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeGeometryParsing.d.ts
|
|
5211
|
-
declare class PptxHandlerRuntime$
|
|
5227
|
+
declare class PptxHandlerRuntime$47 extends PptxHandlerRuntime$48 {
|
|
5212
5228
|
protected parseGeometryAdjustments(prstGeom: XmlObject | undefined): Record<string, number> | undefined;
|
|
5213
5229
|
/**
|
|
5214
5230
|
* Parse adjustment handles from `a:ahLst` in a geometry definition.
|
|
@@ -5285,7 +5301,7 @@ declare class PptxHandlerRuntime$45 extends PptxHandlerRuntime$46 {
|
|
|
5285
5301
|
}
|
|
5286
5302
|
//#endregion
|
|
5287
5303
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeShapeImageFill.d.ts
|
|
5288
|
-
declare class PptxHandlerRuntime$
|
|
5304
|
+
declare class PptxHandlerRuntime$46 extends PptxHandlerRuntime$47 {
|
|
5289
5305
|
/**
|
|
5290
5306
|
* Parse a shape that has an image fill (a:blipFill inside spPr)
|
|
5291
5307
|
* This handles shapes like rectangles filled with images (e.g., wood texture backgrounds)
|
|
@@ -5304,7 +5320,7 @@ declare class PptxHandlerRuntime$44 extends PptxHandlerRuntime$45 {
|
|
|
5304
5320
|
}
|
|
5305
5321
|
//#endregion
|
|
5306
5322
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeTextDefaults.d.ts
|
|
5307
|
-
declare class PptxHandlerRuntime$
|
|
5323
|
+
declare class PptxHandlerRuntime$45 extends PptxHandlerRuntime$46 {
|
|
5308
5324
|
/**
|
|
5309
5325
|
* Apply {@link PlaceholderDefaults} body-level properties to a
|
|
5310
5326
|
* {@link TextStyle} as fallback values (only sets fields that are
|
|
@@ -5341,7 +5357,7 @@ declare class PptxHandlerRuntime$43 extends PptxHandlerRuntime$44 {
|
|
|
5341
5357
|
//#endregion
|
|
5342
5358
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeBulletParsing.d.ts
|
|
5343
5359
|
type LevelStyleMap = Record<number, PlaceholderTextLevelStyle>;
|
|
5344
|
-
declare class PptxHandlerRuntime$
|
|
5360
|
+
declare class PptxHandlerRuntime$44 extends PptxHandlerRuntime$45 {
|
|
5345
5361
|
protected resolveParagraphBulletInfo(paragraph: XmlObject | undefined, paragraphIndex: number, txBody: XmlObject | undefined, inheritedTxBody: XmlObject | undefined, isBodyPlaceholder?: boolean, slidePath?: string, effectiveLevelStyles?: LevelStyleMap): BulletInfo | null;
|
|
5346
5362
|
protected createBulletInfoFromLevelStyle(levelStyle: PlaceholderTextLevelStyle | undefined, paragraphIndex: number): BulletInfo | null;
|
|
5347
5363
|
/**
|
|
@@ -5364,7 +5380,7 @@ declare class PptxHandlerRuntime$42 extends PptxHandlerRuntime$43 {
|
|
|
5364
5380
|
}
|
|
5365
5381
|
//#endregion
|
|
5366
5382
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeShapeBodyParsing.d.ts
|
|
5367
|
-
declare class PptxHandlerRuntime$
|
|
5383
|
+
declare class PptxHandlerRuntime$43 extends PptxHandlerRuntime$44 {
|
|
5368
5384
|
/**
|
|
5369
5385
|
* Parse `a:spLocks` attributes into a structured {@link PptxShapeLocks} object.
|
|
5370
5386
|
* Returns `undefined` when the node is absent or contains no lock attributes.
|
|
@@ -5391,7 +5407,7 @@ declare class PptxHandlerRuntime$41 extends PptxHandlerRuntime$42 {
|
|
|
5391
5407
|
}
|
|
5392
5408
|
//#endregion
|
|
5393
5409
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeShapeTextParsing.d.ts
|
|
5394
|
-
declare class PptxHandlerRuntime$
|
|
5410
|
+
declare class PptxHandlerRuntime$42 extends PptxHandlerRuntime$43 {
|
|
5395
5411
|
/**
|
|
5396
5412
|
* A copy of an `a:lstStyle` level entry without its `a:defRPr`: run
|
|
5397
5413
|
* defaults follow their own precedence chain, so only the paragraph-level
|
|
@@ -5430,7 +5446,7 @@ declare class PptxHandlerRuntime$40 extends PptxHandlerRuntime$41 {
|
|
|
5430
5446
|
}
|
|
5431
5447
|
//#endregion
|
|
5432
5448
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeShapeParagraphContentParsing.d.ts
|
|
5433
|
-
declare class PptxHandlerRuntime$
|
|
5449
|
+
declare class PptxHandlerRuntime$41 extends PptxHandlerRuntime$42 {
|
|
5434
5450
|
/**
|
|
5435
5451
|
* Collect text content (runs, fields, equations, bullets) for a single
|
|
5436
5452
|
* paragraph and return text parts + segments. The returned `seedStyle`
|
|
@@ -5449,17 +5465,17 @@ declare class PptxHandlerRuntime$39 extends PptxHandlerRuntime$40 {
|
|
|
5449
5465
|
}
|
|
5450
5466
|
//#endregion
|
|
5451
5467
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeShapeParsing.d.ts
|
|
5452
|
-
declare class PptxHandlerRuntime$
|
|
5468
|
+
declare class PptxHandlerRuntime$40 extends PptxHandlerRuntime$41 {
|
|
5453
5469
|
protected parseShape(shape: XmlObject, id: string, slidePath?: string, layoutPath?: string): PptxElement | null;
|
|
5454
5470
|
}
|
|
5455
5471
|
//#endregion
|
|
5456
5472
|
//#region pptx/core/core/runtime/PptxHandlerRuntimePictureParsing.d.ts
|
|
5457
|
-
declare class PptxHandlerRuntime$
|
|
5473
|
+
declare class PptxHandlerRuntime$39 extends PptxHandlerRuntime$40 {
|
|
5458
5474
|
protected parsePicture(pic: XmlObject, id: string, slidePath: string): Promise<PptxElement | null>;
|
|
5459
5475
|
}
|
|
5460
5476
|
//#endregion
|
|
5461
5477
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSpTreeParsing.d.ts
|
|
5462
|
-
declare class PptxHandlerRuntime$
|
|
5478
|
+
declare class PptxHandlerRuntime$38 extends PptxHandlerRuntime$39 {
|
|
5463
5479
|
/**
|
|
5464
5480
|
* Known element tag names that appear as direct children of `p:spTree`
|
|
5465
5481
|
* (or `p:grpSp`) and represent renderable shapes/objects.
|
|
@@ -5537,7 +5553,7 @@ declare class PptxHandlerRuntime$36 extends PptxHandlerRuntime$37 {
|
|
|
5537
5553
|
}
|
|
5538
5554
|
//#endregion
|
|
5539
5555
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeGroupParsing.d.ts
|
|
5540
|
-
declare class PptxHandlerRuntime$
|
|
5556
|
+
declare class PptxHandlerRuntime$37 extends PptxHandlerRuntime$38 {
|
|
5541
5557
|
/**
|
|
5542
5558
|
* Parse the children of a `<p:grpSp>` into the group's own pixel space.
|
|
5543
5559
|
*
|
|
@@ -5562,7 +5578,7 @@ declare class PptxHandlerRuntime$35 extends PptxHandlerRuntime$36 {
|
|
|
5562
5578
|
}
|
|
5563
5579
|
//#endregion
|
|
5564
5580
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSlideParsing.d.ts
|
|
5565
|
-
declare class PptxHandlerRuntime$
|
|
5581
|
+
declare class PptxHandlerRuntime$36 extends PptxHandlerRuntime$37 {
|
|
5566
5582
|
/**
|
|
5567
5583
|
* Parse text body from a connector shape (p:cxnSp > p:txBody).
|
|
5568
5584
|
* Uses the same text run extraction logic as regular shapes but
|
|
@@ -5573,7 +5589,7 @@ declare class PptxHandlerRuntime$34 extends PptxHandlerRuntime$35 {
|
|
|
5573
5589
|
}
|
|
5574
5590
|
//#endregion
|
|
5575
5591
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeColorAndEffects.d.ts
|
|
5576
|
-
declare class PptxHandlerRuntime$
|
|
5592
|
+
declare class PptxHandlerRuntime$35 extends PptxHandlerRuntime$36 {
|
|
5577
5593
|
/**
|
|
5578
5594
|
* Forward declaration – implemented in PptxHandlerRuntimeThemeProcessing.
|
|
5579
5595
|
* Re-resolves gradient stops by substituting `phClr` with the given colour.
|
|
@@ -5609,7 +5625,7 @@ declare class PptxHandlerRuntime$33 extends PptxHandlerRuntime$34 {
|
|
|
5609
5625
|
}
|
|
5610
5626
|
//#endregion
|
|
5611
5627
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeBackgroundParsing.d.ts
|
|
5612
|
-
declare class PptxHandlerRuntime$
|
|
5628
|
+
declare class PptxHandlerRuntime$34 extends PptxHandlerRuntime$35 {
|
|
5613
5629
|
/**
|
|
5614
5630
|
* Preserve the visual properties authored on a background `a:blipFill`.
|
|
5615
5631
|
*
|
|
@@ -5620,6 +5636,14 @@ declare class PptxHandlerRuntime$32 extends PptxHandlerRuntime$33 {
|
|
|
5620
5636
|
protected extractBackgroundImageProperties(slideXml: XmlObject, rootElement?: string): PptxImageProperties | undefined;
|
|
5621
5637
|
protected extractBackgroundImage(slideXml: XmlObject, slidePath: string, rootElement?: string): Promise<string | undefined>;
|
|
5622
5638
|
protected extractBackgroundColor(slideXml: XmlObject, rootElement?: string): string | undefined;
|
|
5639
|
+
/**
|
|
5640
|
+
* The colour a slide master or layout paints from its own `p:bg`, resolved exactly as a
|
|
5641
|
+
* slide's background is: through the active master's colour map and format scheme, with
|
|
5642
|
+
* `clrMapOverride` (a layout's `p:clrMapOvr`, or `null`) taking precedence. The caller makes
|
|
5643
|
+
* the part's master active first; a master's `bgRef` on `bg1` means `dk1` under a dark
|
|
5644
|
+
* `p:clrMap`, which no other state can tell.
|
|
5645
|
+
*/
|
|
5646
|
+
protected extractTemplateBackgroundColor(partXml: XmlObject | undefined, rootTag: 'p:sldMaster' | 'p:sldLayout', clrMapOverride: Record<string, string> | null): string | undefined;
|
|
5623
5647
|
/**
|
|
5624
5648
|
* Composite a resolved background colour with its `a:alpha` (or
|
|
5625
5649
|
* `a:alphaMod`/`a:alphaOff`) opacity onto opaque white.
|
|
@@ -5729,7 +5753,7 @@ declare class PptxHandlerRuntime$32 extends PptxHandlerRuntime$33 {
|
|
|
5729
5753
|
}
|
|
5730
5754
|
//#endregion
|
|
5731
5755
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeSlideUtils.d.ts
|
|
5732
|
-
declare class PptxHandlerRuntime$
|
|
5756
|
+
declare class PptxHandlerRuntime$33 extends PptxHandlerRuntime$34 {
|
|
5733
5757
|
/**
|
|
5734
5758
|
* Retrieve the background gradient from a layout, falling back to master.
|
|
5735
5759
|
*/
|
|
@@ -5767,6 +5791,12 @@ declare class PptxHandlerRuntime$31 extends PptxHandlerRuntime$32 {
|
|
|
5767
5791
|
* whichever slide happened to be parsed last.
|
|
5768
5792
|
*/
|
|
5769
5793
|
protected applyMasterThemeState(masterPath: string | undefined): void;
|
|
5794
|
+
/**
|
|
5795
|
+
* Run `work` with one master's theme state active and no slide colour-map override, then
|
|
5796
|
+
* put back whatever state was active before, so a part parsed on request (a layout preview)
|
|
5797
|
+
* resolves through its own master without disturbing the caller's.
|
|
5798
|
+
*/
|
|
5799
|
+
protected withMasterThemeState<T>(masterPath: string | undefined, work: () => Promise<T>): Promise<T>;
|
|
5770
5800
|
/**
|
|
5771
5801
|
* Extract the `p:bg/@showAnimation` flag from a slide's XML.
|
|
5772
5802
|
* Returns `true` when the background should animate, `false` when
|
|
@@ -5804,7 +5834,7 @@ declare class PptxHandlerRuntime$31 extends PptxHandlerRuntime$32 {
|
|
|
5804
5834
|
}
|
|
5805
5835
|
//#endregion
|
|
5806
5836
|
//#region pptx/core/core/runtime/PptxHandlerRuntimePlaceholderStyles.d.ts
|
|
5807
|
-
declare class PptxHandlerRuntime$
|
|
5837
|
+
declare class PptxHandlerRuntime$32 extends PptxHandlerRuntime$33 {
|
|
5808
5838
|
/**
|
|
5809
5839
|
* Parse a single `a:lvlXpPr` node into a structured
|
|
5810
5840
|
* {@link PlaceholderTextLevelStyle}.
|
|
@@ -5823,7 +5853,7 @@ declare class PptxHandlerRuntime$30 extends PptxHandlerRuntime$31 {
|
|
|
5823
5853
|
}
|
|
5824
5854
|
//#endregion
|
|
5825
5855
|
//#region pptx/core/core/runtime/PptxHandlerRuntimePlaceholderDefaults.d.ts
|
|
5826
|
-
declare class PptxHandlerRuntime$
|
|
5856
|
+
declare class PptxHandlerRuntime$31 extends PptxHandlerRuntime$32 {
|
|
5827
5857
|
/**
|
|
5828
5858
|
* Extract structured {@link PlaceholderDefaults} from a layout or master
|
|
5829
5859
|
* shape that carries a `p:ph` element.
|
|
@@ -5832,7 +5862,7 @@ declare class PptxHandlerRuntime$29 extends PptxHandlerRuntime$30 {
|
|
|
5832
5862
|
}
|
|
5833
5863
|
//#endregion
|
|
5834
5864
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeMasterElements.d.ts
|
|
5835
|
-
declare class PptxHandlerRuntime$
|
|
5865
|
+
declare class PptxHandlerRuntime$30 extends PptxHandlerRuntime$31 {
|
|
5836
5866
|
/**
|
|
5837
5867
|
* Parse a `CT_TextListStyle` node (`a:defPPr` + `a:lvl1pPr` … `a:lvl9pPr`)
|
|
5838
5868
|
* into a level-keyed style map. Used for `<p:txStyles>` children
|
|
@@ -5868,20 +5898,22 @@ interface MasterPartElementHost {
|
|
|
5868
5898
|
backgroundImage?: string;
|
|
5869
5899
|
backgroundImageProperties?: PptxImageProperties;
|
|
5870
5900
|
/**
|
|
5871
|
-
* Already resolved
|
|
5872
|
-
*
|
|
5901
|
+
* Already resolved (for a slide master or layout, by
|
|
5902
|
+
* {@link PptxHandlerRuntime.enrichSlideMasterElements}). Read here only so
|
|
5903
|
+
* the save side can tell a chosen colour from a flattened `p:bgRef`.
|
|
5873
5904
|
*/
|
|
5874
5905
|
backgroundColor?: string;
|
|
5875
5906
|
}
|
|
5876
|
-
declare class PptxHandlerRuntime$
|
|
5907
|
+
declare class PptxHandlerRuntime$29 extends PptxHandlerRuntime$30 {
|
|
5877
5908
|
/** Parse every editable element in a master or layout shape tree. */
|
|
5878
5909
|
protected enrichMasterPartElements(part: MasterPartElementHost | undefined, rootTag: MasterPartRootTag): Promise<void>;
|
|
5879
5910
|
/**
|
|
5880
|
-
*
|
|
5911
|
+
* Resolve the background of every slide master and of each of its layouts,
|
|
5912
|
+
* and populate their `elements`.
|
|
5881
5913
|
*
|
|
5882
|
-
* Scheme colours on a master
|
|
5883
|
-
* master's colour map and theme, so the active master state is
|
|
5884
|
-
* per part and reset to the deck-wide snapshot afterwards.
|
|
5914
|
+
* Scheme colours on a master, its own `p:bgRef` included, must resolve
|
|
5915
|
+
* through that master's colour map and theme, so the active master state is
|
|
5916
|
+
* switched per part and reset to the deck-wide snapshot afterwards.
|
|
5885
5917
|
*/
|
|
5886
5918
|
protected enrichSlideMasterElements(masters: PptxSlideMaster[]): Promise<void>;
|
|
5887
5919
|
/** Parse every editable element in a notes or handout master shape tree. */
|
|
@@ -5890,7 +5922,7 @@ declare class PptxHandlerRuntime$27 extends PptxHandlerRuntime$28 {
|
|
|
5890
5922
|
}
|
|
5891
5923
|
//#endregion
|
|
5892
5924
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeLayoutElements.d.ts
|
|
5893
|
-
declare class PptxHandlerRuntime$
|
|
5925
|
+
declare class PptxHandlerRuntime$28 extends PptxHandlerRuntime$29 {
|
|
5894
5926
|
/**
|
|
5895
5927
|
* Parse the layout artwork inherited by a slide.
|
|
5896
5928
|
*
|
|
@@ -5919,7 +5951,7 @@ declare class PptxHandlerRuntime$26 extends PptxHandlerRuntime$27 {
|
|
|
5919
5951
|
* masters, and the majority of sessions never open the gallery at all. The
|
|
5920
5952
|
* results are memoised, so opening the gallery a second time is free.
|
|
5921
5953
|
*/
|
|
5922
|
-
declare class PptxHandlerRuntime$
|
|
5954
|
+
declare class PptxHandlerRuntime$27 extends PptxHandlerRuntime$28 {
|
|
5923
5955
|
private layoutPreviewCache;
|
|
5924
5956
|
/**
|
|
5925
5957
|
* Build (or return the memoised) preview for one layout.
|
|
@@ -5942,7 +5974,9 @@ declare class PptxHandlerRuntime$25 extends PptxHandlerRuntime$26 {
|
|
|
5942
5974
|
protected invalidateLayoutPreviews(layoutPath?: string): void;
|
|
5943
5975
|
/**
|
|
5944
5976
|
* Resolve the background a layout thumbnail should paint, falling back to
|
|
5945
|
-
* the layout's master when the layout itself declares none.
|
|
5977
|
+
* the layout's master when the layout itself declares none. Runs with the
|
|
5978
|
+
* master active; the layout's own colour map override applies to an
|
|
5979
|
+
* inherited background too, as a slide's does.
|
|
5946
5980
|
*/
|
|
5947
5981
|
private resolveLayoutPreviewBackground;
|
|
5948
5982
|
}
|
|
@@ -5956,7 +5990,7 @@ declare class PptxHandlerRuntime$25 extends PptxHandlerRuntime$26 {
|
|
|
5956
5990
|
*/
|
|
5957
5991
|
declare const FILL_LIST_CHILD_TAGS: readonly ['a:solidFill', 'a:gradFill', 'a:pattFill', 'a:noFill', 'a:grpFill'];
|
|
5958
5992
|
type FillListChildTag = (typeof FILL_LIST_CHILD_TAGS)[number];
|
|
5959
|
-
declare class PptxHandlerRuntime$
|
|
5993
|
+
declare class PptxHandlerRuntime$26 extends PptxHandlerRuntime$27 {
|
|
5960
5994
|
/**
|
|
5961
5995
|
* Build a fill-style entry for one child node based on its tag.
|
|
5962
5996
|
*/
|
|
@@ -5998,7 +6032,7 @@ declare class PptxHandlerRuntime$24 extends PptxHandlerRuntime$25 {
|
|
|
5998
6032
|
}
|
|
5999
6033
|
//#endregion
|
|
6000
6034
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeThemeOverrides.d.ts
|
|
6001
|
-
declare class PptxHandlerRuntime$
|
|
6035
|
+
declare class PptxHandlerRuntime$25 extends PptxHandlerRuntime$26 {
|
|
6002
6036
|
/**
|
|
6003
6037
|
* Parse the `a:fmtScheme` element from the theme into a structured
|
|
6004
6038
|
* {@link PptxThemeFormatScheme}. Each sub-list (fillStyleLst, lnStyleLst,
|
|
@@ -6066,7 +6100,7 @@ declare class PptxHandlerRuntime$23 extends PptxHandlerRuntime$24 {
|
|
|
6066
6100
|
}
|
|
6067
6101
|
//#endregion
|
|
6068
6102
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeThemeRefResolution.d.ts
|
|
6069
|
-
declare class PptxHandlerRuntime$
|
|
6103
|
+
declare class PptxHandlerRuntime$24 extends PptxHandlerRuntime$25 {
|
|
6070
6104
|
/**
|
|
6071
6105
|
* Resolve a `a:effectRef` element into concrete effect properties
|
|
6072
6106
|
* by looking up `@_idx` in the theme format scheme's effect style list.
|
|
@@ -6103,8 +6137,64 @@ declare class PptxHandlerRuntime$22 extends PptxHandlerRuntime$23 {
|
|
|
6103
6137
|
protected resolveThemeFillRef(refNode: XmlObject, style: ShapeStyle): void;
|
|
6104
6138
|
}
|
|
6105
6139
|
//#endregion
|
|
6140
|
+
//#region pptx/core/core/runtime/theme-part-model.d.ts
|
|
6141
|
+
/** One theme part, parsed. */
|
|
6142
|
+
interface ThemePartModel {
|
|
6143
|
+
/** `a:theme @name`, `a:clrScheme @name` and `a:fontScheme @name`, when present. */
|
|
6144
|
+
name: string | undefined;
|
|
6145
|
+
colorSchemeName: string | undefined;
|
|
6146
|
+
fontSchemeName: string | undefined;
|
|
6147
|
+
/**
|
|
6148
|
+
* The twelve scheme slots over the schema defaults. The `tx1`/`bg1`/`tx2`/`bg2` aliases are not
|
|
6149
|
+
* baked in: they resolve through each master's own `p:clrMap` at lookup time.
|
|
6150
|
+
*/
|
|
6151
|
+
colorMap: Record<string, string>;
|
|
6152
|
+
/** `mj-lt`/`mj-ea`/`mj-cs` and `mn-lt`/`mn-ea`/`mn-cs`. */
|
|
6153
|
+
fontMap: Record<string, string>;
|
|
6154
|
+
/** Per-script faces (`<a:font script="..."/>`) of the major and minor fonts. */
|
|
6155
|
+
majorFontScripts: Record<string, string>;
|
|
6156
|
+
minorFontScripts: Record<string, string>;
|
|
6157
|
+
/** Raw subtrees the save re-emits verbatim; `undefined` when the part has none. */
|
|
6158
|
+
objectDefaults: PptxThemeObjectDefaults | undefined;
|
|
6159
|
+
extraClrSchemeLst: unknown;
|
|
6160
|
+
custClrLst: unknown;
|
|
6161
|
+
extLst: unknown;
|
|
6162
|
+
formatScheme: PptxThemeFormatScheme | undefined;
|
|
6163
|
+
}
|
|
6164
|
+
//#endregion
|
|
6165
|
+
//#region pptx/core/core/runtime/PptxHandlerRuntimeThemePartModel.d.ts
|
|
6166
|
+
/**
|
|
6167
|
+
* Reading one theme part (`ppt/theme/themeN.xml`).
|
|
6168
|
+
*
|
|
6169
|
+
* {@link parseThemePartXml} turns a part's XML into a {@link ThemePartModel} and changes nothing;
|
|
6170
|
+
* {@link cacheThemePartModel} records what the save pipeline and font resolution need of it, keyed
|
|
6171
|
+
* by the part's path. The load pipeline does both for every part a master uses
|
|
6172
|
+
* (`parseThemePart`); {@link getThemePartSchemes} only reads.
|
|
6173
|
+
*/
|
|
6174
|
+
declare class PptxHandlerRuntime$23 extends PptxHandlerRuntime$24 {
|
|
6175
|
+
/** Parse one theme part's XML. Side-effect free. */
|
|
6176
|
+
protected parseThemePartXml(themeXml: string): ThemePartModel;
|
|
6177
|
+
/**
|
|
6178
|
+
* Record a parsed part under its path: its original XML (byte-stable passthrough on save,
|
|
6179
|
+
* C-H3), its names, per-script fonts and the raw subtrees the save re-emits.
|
|
6180
|
+
*/
|
|
6181
|
+
protected cacheThemePartModel(themePath: string, themeXml: string, model: ThemePartModel): void;
|
|
6182
|
+
/**
|
|
6183
|
+
* Parse `<a:font script="..." typeface="..."/>` children of a major or minor font node into a
|
|
6184
|
+
* `script -> typeface` dictionary. fast-xml-parser collapses repeated tags into arrays, so the
|
|
6185
|
+
* array form is walked regardless of how many siblings are present. Phase 4 Stream A / M4.
|
|
6186
|
+
*/
|
|
6187
|
+
protected collectFontScriptOverrides(fontNode: XmlObject | undefined): Record<string, string>;
|
|
6188
|
+
/**
|
|
6189
|
+
* The colour, font and format schemes and name of one theme part in the package, as the part holds
|
|
6190
|
+
* them now (a scheme edit already written to it included). Reads only: the loaded theme, the
|
|
6191
|
+
* masters and what a save writes are unchanged. `undefined` when the package has no such part.
|
|
6192
|
+
*/
|
|
6193
|
+
getThemePartSchemes(themePath: string): Promise<PptxThemePartSchemes | undefined>;
|
|
6194
|
+
}
|
|
6195
|
+
//#endregion
|
|
6106
6196
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeThemeLoading.d.ts
|
|
6107
|
-
declare class PptxHandlerRuntime$
|
|
6197
|
+
declare class PptxHandlerRuntime$22 extends PptxHandlerRuntime$23 {
|
|
6108
6198
|
protected resolvePrimaryThemePath(): Promise<string | undefined>;
|
|
6109
6199
|
protected parseThemeOptions(): Promise<PptxThemeOption[]>;
|
|
6110
6200
|
/**
|
|
@@ -6146,15 +6236,6 @@ declare class PptxHandlerRuntime$21 extends PptxHandlerRuntime$22 {
|
|
|
6146
6236
|
fontMap: Record<string, string>;
|
|
6147
6237
|
formatScheme: PptxThemeFormatScheme | undefined;
|
|
6148
6238
|
} | null>;
|
|
6149
|
-
/**
|
|
6150
|
-
* Parse `<a:font script="…" typeface="…"/>` children of a major or
|
|
6151
|
-
* minor font node into a `script -> typeface` dictionary.
|
|
6152
|
-
*
|
|
6153
|
-
* fast-xml-parser collapses repeated tags into arrays, so iterate
|
|
6154
|
-
* over the array form regardless of how many siblings are present.
|
|
6155
|
-
*
|
|
6156
|
-
* Phase 4 Stream A / M4.
|
|
6157
|
-
*/
|
|
6158
6239
|
/**
|
|
6159
6240
|
* Flatten a per-theme-path script-override map (`themePath -> {script ->
|
|
6160
6241
|
* typeface}`) into a single `{script -> typeface}` lookup for
|
|
@@ -6162,7 +6243,6 @@ declare class PptxHandlerRuntime$21 extends PptxHandlerRuntime$22 {
|
|
|
6162
6243
|
* the primary-theme-first parse order. Phase 4 Stream A / M4 (#83).
|
|
6163
6244
|
*/
|
|
6164
6245
|
protected aggregateFontScriptOverrides(perPathMap: Map<string, Record<string, string>>): Record<string, string>;
|
|
6165
|
-
protected collectFontScriptOverrides(fontNode: XmlObject | undefined): Record<string, string>;
|
|
6166
6246
|
/**
|
|
6167
6247
|
* Resolve the theme file path referenced by a given master's `.rels`.
|
|
6168
6248
|
* Returns `undefined` when the master has no theme relationship.
|
|
@@ -6188,7 +6268,7 @@ declare class PptxHandlerRuntime$21 extends PptxHandlerRuntime$22 {
|
|
|
6188
6268
|
* the per-master maps, the deck-wide snapshots, and the currently active
|
|
6189
6269
|
* `themeColorMap` / `themeFontMap`.
|
|
6190
6270
|
*/
|
|
6191
|
-
declare class PptxHandlerRuntime$
|
|
6271
|
+
declare class PptxHandlerRuntime$21 extends PptxHandlerRuntime$22 {
|
|
6192
6272
|
/**
|
|
6193
6273
|
* The theme parts an edit should touch, primary theme first.
|
|
6194
6274
|
*
|
|
@@ -6200,12 +6280,13 @@ declare class PptxHandlerRuntime$20 extends PptxHandlerRuntime$21 {
|
|
|
6200
6280
|
protected resolveThemeEditTargets(themePaths?: readonly string[]): Promise<string[]>;
|
|
6201
6281
|
private readThemePart;
|
|
6202
6282
|
/**
|
|
6203
|
-
* Parse, edit, and write back every target theme part
|
|
6204
|
-
* cannot apply to (no `a:themeElements`)
|
|
6283
|
+
* Parse, edit, and write back every target theme part (`edit` gets the
|
|
6284
|
+
* part's path too). Parts the edit cannot apply to (no `a:themeElements`)
|
|
6285
|
+
* are left untouched.
|
|
6205
6286
|
*
|
|
6206
6287
|
* @returns the paths that were rewritten
|
|
6207
6288
|
*/
|
|
6208
|
-
protected rewriteThemeParts(themePaths: readonly string[] | undefined, edit: (data: XmlObject) => boolean): Promise<string[]>;
|
|
6289
|
+
protected rewriteThemeParts(themePaths: readonly string[] | undefined, edit: (data: XmlObject, themePath: string) => boolean): Promise<string[]>;
|
|
6209
6290
|
/** Masters whose theme part is among the rewritten paths. */
|
|
6210
6291
|
protected mastersUsingThemes(themePaths: readonly string[]): string[];
|
|
6211
6292
|
/**
|
|
@@ -6244,6 +6325,33 @@ declare class PptxHandlerRuntime$20 extends PptxHandlerRuntime$21 {
|
|
|
6244
6325
|
applyTheme(colorScheme: PptxThemeColorScheme, fontScheme: PptxThemeFontScheme, themeName?: string): Promise<void>;
|
|
6245
6326
|
}
|
|
6246
6327
|
//#endregion
|
|
6328
|
+
//#region pptx/core/core/runtime/PptxHandlerRuntimeThemeSwitching.d.ts
|
|
6329
|
+
/**
|
|
6330
|
+
* Pointing slide masters at another theme part already in the package (Presentation properties >
|
|
6331
|
+
* Theme).
|
|
6332
|
+
*
|
|
6333
|
+
* Rewriting a master's theme relationship is not enough on its own: the runtime's theme state
|
|
6334
|
+
* (`masterThemePaths`, the per-master colour, font and format maps, and for the first master the
|
|
6335
|
+
* active maps and the deck-wide snapshots) still described the old part, so a scheme edit
|
|
6336
|
+
* (`resolveThemeEditTargets`) and a save (`persistThemeParts`) made after the switch went to the
|
|
6337
|
+
* part the masters no longer use. Every re-targeted master adopts the new part's state too.
|
|
6338
|
+
*/
|
|
6339
|
+
declare class PptxHandlerRuntime$20 extends PptxHandlerRuntime$21 {
|
|
6340
|
+
/**
|
|
6341
|
+
* Point the first slide master, or every one, at a theme part already in the package. Does
|
|
6342
|
+
* nothing when the package has no such part.
|
|
6343
|
+
*/
|
|
6344
|
+
setPresentationTheme(themePath: string, applyToAllMasters?: boolean): Promise<void>;
|
|
6345
|
+
/**
|
|
6346
|
+
* Point one slide master at a theme part already in the package (Undo of a theme switch puts
|
|
6347
|
+
* each master back on its own part). Does nothing when the package has no such master or part.
|
|
6348
|
+
*/
|
|
6349
|
+
setSlideMasterTheme(masterPath: string, themePath: string): Promise<void>;
|
|
6350
|
+
private retargetMasterTheme;
|
|
6351
|
+
/** Point the runtime's theme state for `masterPath` at the part it now uses. */
|
|
6352
|
+
private adoptMasterTheme;
|
|
6353
|
+
}
|
|
6354
|
+
//#endregion
|
|
6247
6355
|
//#region pptx/core/core/runtime/PptxHandlerRuntimeComments.d.ts
|
|
6248
6356
|
declare class PptxHandlerRuntime$19 extends PptxHandlerRuntime$20 {
|
|
6249
6357
|
/**
|
|
@@ -6892,6 +7000,8 @@ interface StyleReferenceReResolution {
|
|
|
6892
7000
|
*/
|
|
6893
7001
|
declare class PptxHandlerRuntime$4 extends PptxHandlerRuntime$5 {
|
|
6894
7002
|
private readonly effectSchemeCache;
|
|
7003
|
+
/** Every `a:fmtScheme` written into a theme part or over one ({@link restoreThemeFormatScheme}). */
|
|
7004
|
+
private readonly heldFormatSchemes;
|
|
6895
7005
|
/**
|
|
6896
7006
|
* Resolve a `<p:style>` node as the base class does, against built-in effect scheme
|
|
6897
7007
|
* `effectSchemeId` instead of the deck's own (the Effects gallery draws each tile this way).
|
|
@@ -6911,6 +7021,24 @@ declare class PptxHandlerRuntime$4 extends PptxHandlerRuntime$5 {
|
|
|
6911
7021
|
* into every theme part a master references; a real theme variant brings its own.
|
|
6912
7022
|
*/
|
|
6913
7023
|
applyThemeFormatSchemeXml(fmtSchemeXml: string): Promise<PptxThemeFormatScheme | undefined>;
|
|
7024
|
+
/**
|
|
7025
|
+
* Put back a format scheme the deck held before (Undo and Redo of an Effects pick), as the parts
|
|
7026
|
+
* held it: each theme part a master references gets back what it held the last time the deck's
|
|
7027
|
+
* scheme was `scheme` over those same parts, so a part with a scheme of its own gets its own back
|
|
7028
|
+
* (with no such time, `scheme`'s own element goes into every one). With `themePaths`, `scheme`'s
|
|
7029
|
+
* own element goes into those parts only.
|
|
7030
|
+
*
|
|
7031
|
+
* @returns the deck's format scheme now, or `undefined` (nothing written) for a scheme no part
|
|
7032
|
+
* held while this handler wrote into it
|
|
7033
|
+
*/
|
|
7034
|
+
restoreThemeFormatScheme(scheme: PptxThemeFormatScheme, themePaths?: readonly string[]): Promise<PptxThemeFormatScheme | undefined>;
|
|
7035
|
+
/**
|
|
7036
|
+
* Write `elementFor(part)` into every theme part a master references (or only `themePaths`),
|
|
7037
|
+
* skipping a part it gives none, holding what each part held and now holds, and refresh the
|
|
7038
|
+
* in-memory format schemes of the masters on those parts and, when the deck's part is among
|
|
7039
|
+
* them, the deck's.
|
|
7040
|
+
*/
|
|
7041
|
+
private writeFormatScheme;
|
|
6914
7042
|
/** The real theme variants the loaded package carries, or none. */
|
|
6915
7043
|
getThemeVariants(): PptxThemeVariant[];
|
|
6916
7044
|
/** The format scheme the deck's primary theme carries now. */
|
|
@@ -7192,15 +7320,20 @@ interface IPptxHandlerRuntime {
|
|
|
7192
7320
|
Builder(data: PptxData): PptxXmlBuilder;
|
|
7193
7321
|
setTemplateBackground(path: string, backgroundColor: string | undefined): void;
|
|
7194
7322
|
setPresentationTheme(themePath: string, applyToAllMasters?: boolean): Promise<void>;
|
|
7323
|
+
setSlideMasterTheme(masterPath: string, themePath: string): Promise<void>;
|
|
7324
|
+
getThemePartSchemes(themePath: string): Promise<PptxThemePartSchemes | undefined>;
|
|
7195
7325
|
getTemplateBackgroundColor(path: string): string | undefined;
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7326
|
+
/** Scheme edits write every part a slide master uses, or only `themePaths`. */
|
|
7327
|
+
updateThemeColorScheme(colorScheme: PptxThemeColorScheme, themePaths?: readonly string[]): Promise<void>;
|
|
7328
|
+
updateThemeFontScheme(fontScheme: PptxThemeFontScheme, themePaths?: readonly string[]): Promise<void>;
|
|
7329
|
+
updateThemeName(name: string, themePaths?: readonly string[]): Promise<void>;
|
|
7199
7330
|
/** Resolve a `<p:style>` node against the loaded theme (see PptxHandlerRuntimeStyleMatrixResolve). */
|
|
7200
7331
|
resolveStyleMatrixReferences(styleXml: XmlObject, effectSchemeId?: string): ResolvedStyleMatrix;
|
|
7201
7332
|
/** Write a built-in effect scheme (`a:fmtScheme`) into the theme parts. */
|
|
7202
7333
|
applyThemeEffectScheme(id: string): Promise<PptxThemeFormatScheme | undefined>;
|
|
7203
7334
|
applyThemeFormatSchemeXml(fmtSchemeXml: string): Promise<PptxThemeFormatScheme | undefined>;
|
|
7335
|
+
/** Put back a format scheme a theme part held before (Undo of an Effects pick). */
|
|
7336
|
+
restoreThemeFormatScheme(scheme: PptxThemeFormatScheme, themePaths?: readonly string[]): Promise<PptxThemeFormatScheme | undefined>;
|
|
7204
7337
|
getThemeFormatScheme(): PptxThemeFormatScheme | undefined;
|
|
7205
7338
|
getThemeVariants(): PptxThemeVariant[];
|
|
7206
7339
|
reResolveThemeStyleReferences(slides: readonly PptxSlide[], templateElementsBySlideId: Readonly<Record<string, PptxElement[]>>, effectSchemeId?: string): StyleReferenceReResolution;
|
|
@@ -7497,10 +7630,28 @@ declare class PptxHandlerCore {
|
|
|
7497
7630
|
* ```
|
|
7498
7631
|
*/
|
|
7499
7632
|
setPresentationTheme(themePath: string, applyToAllMasters?: boolean): Promise<void>;
|
|
7633
|
+
/**
|
|
7634
|
+
* Point one slide master at a theme part already in the package; scheme edits and saves follow
|
|
7635
|
+
* it. Does nothing when the package has no such master or part.
|
|
7636
|
+
*
|
|
7637
|
+
* @param masterPath - The master's part path (e.g. `ppt/slideMasters/slideMaster2.xml`).
|
|
7638
|
+
* @param themePath - The theme part's path (e.g. `ppt/theme/theme1.xml`).
|
|
7639
|
+
*/
|
|
7640
|
+
setSlideMasterTheme(masterPath: string, themePath: string): Promise<void>;
|
|
7641
|
+
/**
|
|
7642
|
+
* Read one theme part's colour, font and format schemes and its name without changing the
|
|
7643
|
+
* loaded theme, for example to show what switching to it would apply.
|
|
7644
|
+
*
|
|
7645
|
+
* @param themePath - The theme part's path (e.g. `ppt/theme/theme2.xml`).
|
|
7646
|
+
* @returns The part's schemes, or `undefined` when the package has no such part.
|
|
7647
|
+
*/
|
|
7648
|
+
getThemePartSchemes(themePath: string): Promise<PptxThemePartSchemes | undefined>;
|
|
7500
7649
|
/**
|
|
7501
7650
|
* Modify the theme’s colour scheme (accent colours, background, text, etc.).
|
|
7502
7651
|
*
|
|
7503
7652
|
* @param colorScheme - A {@link PptxThemeColorScheme} with hex colour values.
|
|
7653
|
+
* @param themePaths - Only these theme parts (e.g. `ppt/theme/theme2.xml`); every part a slide
|
|
7654
|
+
* master uses when omitted.
|
|
7504
7655
|
*
|
|
7505
7656
|
* @example
|
|
7506
7657
|
* ```ts
|
|
@@ -7513,11 +7664,13 @@ declare class PptxHandlerCore {
|
|
|
7513
7664
|
* // => void — colour scheme updated in the in-memory theme XML
|
|
7514
7665
|
* ```
|
|
7515
7666
|
*/
|
|
7516
|
-
updateThemeColorScheme(colorScheme: PptxThemeColorScheme): Promise<void>;
|
|
7667
|
+
updateThemeColorScheme(colorScheme: PptxThemeColorScheme, themePaths?: readonly string[]): Promise<void>;
|
|
7517
7668
|
/**
|
|
7518
7669
|
* Update the theme’s font scheme (heading + body typefaces).
|
|
7519
7670
|
*
|
|
7520
7671
|
* @param fontScheme - A {@link PptxThemeFontScheme} with font family names.
|
|
7672
|
+
* @param themePaths - Only these theme parts (e.g. `ppt/theme/theme2.xml`); every part a slide
|
|
7673
|
+
* master uses when omitted.
|
|
7521
7674
|
*
|
|
7522
7675
|
* @example
|
|
7523
7676
|
* ```ts
|
|
@@ -7528,13 +7681,15 @@ declare class PptxHandlerCore {
|
|
|
7528
7681
|
* // => void — font scheme updated in the in-memory theme XML
|
|
7529
7682
|
* ```
|
|
7530
7683
|
*/
|
|
7531
|
-
updateThemeFontScheme(fontScheme: PptxThemeFontScheme): Promise<void>;
|
|
7684
|
+
updateThemeFontScheme(fontScheme: PptxThemeFontScheme, themePaths?: readonly string[]): Promise<void>;
|
|
7532
7685
|
/**
|
|
7533
7686
|
* Rename the presentation theme.
|
|
7534
7687
|
*
|
|
7535
7688
|
* @param name - New display name for the theme.
|
|
7689
|
+
* @param themePaths - Only these theme parts (e.g. `ppt/theme/theme2.xml`); every part a slide
|
|
7690
|
+
* master uses when omitted.
|
|
7536
7691
|
*/
|
|
7537
|
-
updateThemeName(name: string): Promise<void>;
|
|
7692
|
+
updateThemeName(name: string, themePaths?: readonly string[]): Promise<void>;
|
|
7538
7693
|
/**
|
|
7539
7694
|
* Resolve a `<p:style>` block (`a:lnRef` / `a:fillRef` / `a:effectRef` /
|
|
7540
7695
|
* `a:fontRef`) against the loaded theme, exactly as the load path would for
|
|
@@ -7550,6 +7705,12 @@ declare class PptxHandlerCore {
|
|
|
7550
7705
|
applyThemeEffectScheme(id: string): Promise<PptxThemeFormatScheme | undefined>;
|
|
7551
7706
|
/** Write an `a:fmtScheme` element (a real theme variant's) into the theme parts. */
|
|
7552
7707
|
applyThemeFormatSchemeXml(fmtSchemeXml: string): Promise<PptxThemeFormatScheme | undefined>;
|
|
7708
|
+
/**
|
|
7709
|
+
* Put a format scheme a theme part held before back into the theme parts (or only `themePaths`),
|
|
7710
|
+
* as the part held it: Undo and Redo of an Effects pick. Only a scheme this handler wrote into a
|
|
7711
|
+
* part or over one can come back; for any other it writes nothing and returns `undefined`.
|
|
7712
|
+
*/
|
|
7713
|
+
restoreThemeFormatScheme(scheme: PptxThemeFormatScheme, themePaths?: readonly string[]): Promise<PptxThemeFormatScheme | undefined>;
|
|
7553
7714
|
/** The real theme variants the loaded package carries (`themeVariants/` parts), or none. */
|
|
7554
7715
|
getThemeVariants(): PptxThemeVariant[];
|
|
7555
7716
|
/** The format scheme the deck's primary theme carries now. */
|
|
@@ -9561,4 +9722,4 @@ declare function renameSlideMaster(handler: PptxHandler, data: PptxData, masterI
|
|
|
9561
9722
|
declare function insertSlideMaster(handler: PptxHandler, data: PptxData): Promise<DuplicateMasterResult>;
|
|
9562
9723
|
//#endregion
|
|
9563
9724
|
export { PresentationThemeInput as $, DiagramRelationshipIds as $i, PptxCommentXmlFactoryProvider as $n, SignatureReference as $r, IPptxHandlerRuntime as $t, PresentationDiff as A, PptxNativeAnimationService as Ai, PptxMediaDataParserContext as An, PptxSaveConstantsFactory as Ar, setChartDataPointLabel as At, AnimationInput as B, PptxSlideLoaderParams as Bi, IPptxSlideBackgroundBuilder as Bn, isStrictNamespaceUri as Br, setChartType as Bt, generateLayoutXml as C, ooxmlToPresetName as Ci, PptxBuilderFactoryContext as Cn, PptxPresentationSaveBuilder as Cr, setChartAxisGridlineStyle as Ct, mailMerge as D, PptxSlideTransitionService as Di, PptxGraphicFrameParserContext as Dn, PptxContentTypesCommentBuildInput as Dr, setChartDataLabels as Dt, findPlaceholders as E, IPptxSlideTransitionService as Ei, PptxGraphicFrameParser as En, PptxContentTypesBuilder as Er, setChartCategories as Et, PptxHandler as F, PptxXmlLookupService as Fi, PptxShapeStyleExtractor as Fn, parsePresentationSmartTags as Fr, setChartSeriesColor as Ft, ConnectorOptions as G, PptxTemplateBackgroundState as Gi, PptxSlideNotesPartUpdaterInput as Gn, AlternateContentBlock as Gr, ChartGradientInput as Gt, ChartInput as H, PptxSlideNotesResult as Hi, PptxSlideBackgroundBuilderInput as Hn, normalizeNamespaceUri as Hr, updateChartSeriesValues as Ht, PresentationBuilder as I, PptxSlideLoaderService as Ii, PptxShapeStyleExtractorContext as In, OoxmlConformanceClass as Ir, setChartSeriesErrorBars as It, GroupOptions as J, IPptxCompatibilityService as Ji, IPptxElementTransformUpdater as Jn, selectAlternateContentBranch as Jr, PptxHandlerRuntime as Jt, ElementPosition as K, PptxDocumentPropertiesUpdater as Ki, IPptxSlideMediaRelationshipBuilder as Kn, SHAPE_TREE_ELEMENT_TAGS as Kr, ChartGradientStopInput as Kt, PresentationBuilderResult as L, IPptxSlideLoaderService as Li, IPptxColorStyleCodec as Ln, containsConvertibleStrictNamespaceAttribute as Lr, setChartSeriesMarker as Lt, SlideDiff as M, PptxEditorAnimationService as Mi, PptxTableDataParser as Mn, IFactory as Mr, setChartGrouping as Mt, diffPresentations as N, PptxEditorAnimationServiceOptions as Ni, PptxTableDataParserContext as Nn, ResolveChartColor as Nr, setChartLegend as Nt, TemplateData as O, PptxSlideTransitionServiceOptions as Oi, IPptxMediaDataParser as On, PptxContentTypesSlideMediaBuildInput as Or, setChartDataPointExplosion as Ot, diffSlides as P, IPptxXmlLookupService as Pi, IPptxShapeStyleExtractor as Pn, loadThemeVariants as Pr, setChartSeriesChartType as Pt, PresentationOptions as Q, PptxConnectorParserContext as Qi, PptxSlideCommentPartWriterInput as Qn, SignatureDetectionResult as Qr, DEFAULT_MAX_UNCOMPRESSED_BYTES as Qt, buildBlankPresentationArchive as R, PptxMediaTimingEntry as Ri, PptxColorStyleCodec as Rn, convertXmlToStrict as Rr, setChartSeriesTrendline as Rt, findLayoutByType as S, PRESET_TO_OOXML as Si, PictureXmlFactoryInit as Sn, PptxPresentationSaveBuildInput as Sr, setChartAxis as St, applyTemplate as T, OoxmlPresetMapping as Ti, IPptxGraphicFrameParser as Tn, IPptxContentTypesBuilder as Tr, setChartAxisTitleStyle as Tt, ChartOptions as U, IPptxTemplateBackgroundService as Ui, IPptxSlideNotesPartUpdater as Un, normalizeStrictXml as Ur, ChartAreaFormatInput as Ut, BackgroundInput as V, PptxSlideLoaderThemeOverride as Vi, PptxSlideBackgroundBuilder as Vn, isTransitionalNamespaceUri as Vr, updateChartDataPoint as Vt, ChartSeriesInput as W, PptxTemplateBackgroundService as Wi, PptxSlideNotesPartUpdater as Wn, toStrictNamespaceUri as Wr, ChartGroupOptionsInput as Wt, MediaOptions as X, IPptxConnectorParser as Xi, IPptxSlideCommentPartWriter as Xn, ParsedSignature as Xr, PptxHandlerRuntimeFactory as Xt, ImageOptions as Y, PptxCompatibilityService as Yi, PptxElementTransformUpdater as Yn, unwrapAlternateContent as Yr, IPptxHandlerRuntimeFactory as Yt, PlaceholderOptions as Z, PptxConnectorParser as Zi, PptxSlideCommentPartWriter as Zn, SignatureCertificateInfo as Zr, createDefaultPptxHandlerRuntime as Zt, LayoutDefinition as _, PptxRuntimeDependencyFactoryInput as _i, IPictureXmlFactory as _n, PptxCommentAuthorDescriptor as _r, PptxChartLegendPosition as _t, insertSlideMaster as a, PptxSlideNotesBuilder as aa, EncryptionAlgorithm as ai, ZipBombError as an, IPptxSlideCommentsXmlFactory as ar, TableOptions as at, createLayouts as b, OOXML_TO_PRESET_ENTR as bi, IXmlElementFactory as bn, PptxSaveStateBuilder as br, removeChartCategory as bt, DuplicateLayoutSuccess as c, THEME_PRESETS as ca, EncryptionScheme as ci, StyleReferenceReResolution as cn, IPptxSlideRelationshipRegistry as cr, TextPlaceholderType as ct, insertLayout as d, applyCustomShows as di, nextAutoNumber as dn, PptxSlideRelationshipRegistryOptions as dr, TransitionInput as dt, applyDiagramRelationshipIds as ea, SignatureStatus as ei, MAX_ZIP_ENTRY_COUNT as en, PptxCommentAuthorsXmlFactory as er, ShadowInput as et, renameLayout as f, applySections as fi, PptxElementXmlBuilder as fn, SlideReferenceRemapInput as fr, ChartAxisEdit as ft, LayoutCreationResult as g, PptxRuntimeDependencyFactory as gi, IMediaGraphicFrameXmlFactory as gn, PptxPresentationSlidesReconcilerInput as gr, PptxChartAxisType as gt, MasterLayoutCrudSuccess as h, PptxRuntimeDependencyBundle as hi, IConnectorXmlFactory as hn, PptxPresentationSlidesReconciler as hr, ChartGridlineStyleEdit as ht, duplicateSlideMaster as i, PptxSlideElementsBuilder as ia, verifySignatureDigests as ii, PptxSvgRasterizer as in, IPptxCommentXmlFactoryProvider as ir, TableInput as it, PropertyChange as j, IPptxEditorAnimationService as ji, IPptxTableDataParser as jn, createPptxSaveConstants as jr, setChartDataPointMarker as jt, ElementDiff as k, IPptxNativeAnimationService as ki, PptxMediaDataParser as kn, PptxSaveConstants as kr, setChartDataPointFill as kt, deleteLayout as l, StandardEncryptionInfo as li, breakAutoNumberRun as ln, PptxSlideCommentRelationshipInfo as lr, TextSegmentInput as lt, MasterLayoutCrudResult as m, IPptxRuntimeDependencyFactory as mi, ConnectorXmlFactoryInit as mn, IPptxPresentationSlidesReconciler as mr, ChartDataPointLabelEdit as mt, DuplicateMasterSuccess as n, IPptxXmlBuilder as na, getSignaturePathsToStrip as ni, PptxHandlerSaveOptions as nn, ICoreXmlElementFactory as nr, StrokeInput as nt, renameSlideMaster as o, PptxXmlBuilder as oa, EncryptionInfo as oi, BackgroundStyleApplication as on, PptxCommentAuthorsXmlFactoryInit as or, TableRowInput as ot, MasterLayoutCrudFailure as p, parseCustomShows as pi, PptxElementXmlBuilderOptions as pn, buildSlideReferenceRemap as pr, ChartAxisTitleStyleEdit as pt, FillInput as q, CompatibilityWarningInput as qi, PptxSlideMediaRelationshipBuilder as qn, reapplyAlternateContentToTree as qr, toChartGradientFill as qt, deleteSlideMaster as r, PptxSlideBuilder as ra, parseSignatureXml as ri, PptxSaveFormat as rn, IPptxCommentAuthorsXmlFactory as rr, TableCellInput as rt, DuplicateLayoutResult as s, PptxThemePreset as sa, EncryptionOptions as si, BackgroundStyleScope as sn, PptxSlideCommentsXmlFactoryInit as sr, TextOptions as st, DuplicateMasterResult as t, parseDiagramRelationshipIds as ta, detectDigitalSignatures as ti, PptxHandlerLoadOptions as tn, PptxSlideCommentsXmlFactory as tr, ShapeOptions as tt, duplicateLayout as u, PptxSlideReferenceRemap as ui, createAutoNumberSequence as un, PptxSlideRelationshipRegistry as ur, TextStyleInput as ut, PlaceholderDefinition as v, IPptxAnimationWriteService as vi, IPptxXmlFactoryProvider as vn, PptxSaveMediaKind as vr, addChartCategory as vt, Presentation as w, resolveOoxmlPresetMapping as wi, TextShapeXmlFactoryInit as wn, PptxPresentationSaveBuilderOptions as wr, setChartAxisLogScale as wt, findLayoutByName as x, OOXML_TO_PRESET_EXIT as xi, MediaGraphicFrameXmlFactoryInit as xn, IPptxPresentationSaveBuilder as xr, removeChartSeries as xt, createLayout as y, OOXML_TO_PRESET_EMPH as yi, ITextShapeXmlFactory as yn, PptxSaveState as yr, addChartSeries as yt, SlideBuilder as z, PptxMediaTimingMap as zi, PptxColorStyleCodecContext as zn, detectStrictConformance as zr, setChartTitle as zt };
|
|
9564
|
-
//# sourceMappingURL=index-
|
|
9725
|
+
//# sourceMappingURL=index-B94RKk84.d.ts.map
|