pptx-vanilla-viewer 3.24.2 → 3.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -0
- package/README.md +7 -7
- package/dist/{UTIF-6Q76OFH6.cjs → UTIF-5QV6J4EO.cjs} +1 -1
- package/dist/{UTIF-DZ4XTCDZ.js → UTIF-GZSKTRT6.js} +1 -1
- package/dist/{ai-panel-ZTEBLX3N.js → ai-panel-DDUION4P.js} +1 -1
- package/dist/{ai-panel-M4DG2TGH.cjs → ai-panel-LXTLJNO3.cjs} +1 -1
- package/dist/{chunk-X2INVWGU.js → chunk-3AUE6LVL.js} +495 -499
- package/dist/{chunk-V672QGTA.js → chunk-4X3RQDZK.js} +3 -3
- package/dist/{chunk-DLOOUD5D.cjs → chunk-A7J5UORL.cjs} +3 -3
- package/dist/{chunk-XPGQWYDN.js → chunk-DMNHV7UN.js} +27 -27
- package/dist/{chunk-6CTU6ACU.cjs → chunk-NN4SKHOD.cjs} +495 -499
- package/dist/{chunk-XJ7QLQ4N.cjs → chunk-S5WTFNOE.cjs} +27 -27
- package/dist/index.cjs +10 -10
- package/dist/index.d.ts +28 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -10
- package/dist/internals.cjs +1 -1
- package/dist/internals.d.ts +1 -1
- package/dist/internals.js +1 -1
- package/dist/{transition-overlay-vh9kzll-.d.ts → transition-overlay-D7asQvRY.d.ts} +217 -136
- package/dist/transition-overlay-D7asQvRY.d.ts.map +1 -0
- package/package.json +8 -7
- package/dist/transition-overlay-vh9kzll-.d.ts.map +0 -1
|
@@ -3,8 +3,47 @@ import "jszip";
|
|
|
3
3
|
import { Doc } from "yjs";
|
|
4
4
|
import "opentype.js";
|
|
5
5
|
import "ooxml-ui/controls";
|
|
6
|
-
//#region
|
|
7
|
-
//#region
|
|
6
|
+
//#region ../../../../src/core/dist/pptx/chunks/color-ref-DT599vEx.d.ts
|
|
7
|
+
//#region pptx/core/types/color-ref.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Theme colour references: the typed counterpart of `<a:schemeClr>`.
|
|
10
|
+
*
|
|
11
|
+
* A colour picked from the theme palette is remembered as a scheme slot plus
|
|
12
|
+
* PowerPoint's luminance variants rather than as the sRGB it currently
|
|
13
|
+
* resolves to, so a later theme change re-colours the shape (and a saved file
|
|
14
|
+
* keeps `<a:schemeClr>` instead of a canonical `<a:srgbClr>`).
|
|
15
|
+
*
|
|
16
|
+
* @module types/color-ref
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* The scheme slot names `a:schemeClr/@val` accepts (ECMA-376 `ST_SchemeColorIndex`).
|
|
20
|
+
* `bg1`/`tx1`/`bg2`/`tx2` are the colour-map aliases a slide resolves through
|
|
21
|
+
* `p:clrMap`; `phClr` is the placeholder colour used inside a theme's style
|
|
22
|
+
* matrix and is never chosen from a picker.
|
|
23
|
+
*/
|
|
24
|
+
type PptxThemeColorSchemeName = 'dk1' | 'lt1' | 'dk2' | 'lt2' | 'accent1' | 'accent2' | 'accent3' | 'accent4' | 'accent5' | 'accent6' | 'hlink' | 'folHlink' | 'bg1' | 'tx1' | 'bg2' | 'tx2' | 'phClr';
|
|
25
|
+
/**
|
|
26
|
+
* A theme colour choice. Every transform is a 0..1 fraction of the OOXML
|
|
27
|
+
* percentage (`lumMod val="20000"` is `lumMod: 0.2`), matching how the parser
|
|
28
|
+
* reads them, and is applied in the order `a:schemeClr` children are written:
|
|
29
|
+
* `tint`, `shade`, `lumMod`, `lumOff`, `alpha`.
|
|
30
|
+
*/
|
|
31
|
+
interface PptxThemeColorRef {
|
|
32
|
+
scheme: PptxThemeColorSchemeName;
|
|
33
|
+
/** `a:lumMod`: multiply HSL luminance (PowerPoint's "Lighter/Darker" rows). */
|
|
34
|
+
lumMod?: number;
|
|
35
|
+
/** `a:lumOff`: add to HSL luminance after `lumMod` ("Lighter N%" rows). */
|
|
36
|
+
lumOff?: number;
|
|
37
|
+
/** `a:tint`: blend towards white. */
|
|
38
|
+
tint?: number;
|
|
39
|
+
/** `a:shade`: blend towards black. */
|
|
40
|
+
shade?: number;
|
|
41
|
+
/** `a:alpha`: opacity fraction (1 = opaque). */
|
|
42
|
+
alpha?: number;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region ../../../../src/core/dist/pptx/chunks/text-operations-CR3pUJi-.d.ts
|
|
46
|
+
//#region pptx/core/types/common.d.ts
|
|
8
47
|
/**
|
|
9
48
|
* Shared value types used across the entire PPTX editor type system.
|
|
10
49
|
*
|
|
@@ -222,45 +261,7 @@ interface PptxDrawingGuide {
|
|
|
222
261
|
color?: string;
|
|
223
262
|
}
|
|
224
263
|
//#endregion
|
|
225
|
-
//#region
|
|
226
|
-
/**
|
|
227
|
-
* Theme colour references: the typed counterpart of `<a:schemeClr>`.
|
|
228
|
-
*
|
|
229
|
-
* A colour picked from the theme palette is remembered as a scheme slot plus
|
|
230
|
-
* PowerPoint's luminance variants rather than as the sRGB it currently
|
|
231
|
-
* resolves to, so a later theme change re-colours the shape (and a saved file
|
|
232
|
-
* keeps `<a:schemeClr>` instead of a canonical `<a:srgbClr>`).
|
|
233
|
-
*
|
|
234
|
-
* @module types/color-ref
|
|
235
|
-
*/
|
|
236
|
-
/**
|
|
237
|
-
* The scheme slot names `a:schemeClr/@val` accepts (ECMA-376 `ST_SchemeColorIndex`).
|
|
238
|
-
* `bg1`/`tx1`/`bg2`/`tx2` are the colour-map aliases a slide resolves through
|
|
239
|
-
* `p:clrMap`; `phClr` is the placeholder colour used inside a theme's style
|
|
240
|
-
* matrix and is never chosen from a picker.
|
|
241
|
-
*/
|
|
242
|
-
type PptxThemeColorSchemeName = 'dk1' | 'lt1' | 'dk2' | 'lt2' | 'accent1' | 'accent2' | 'accent3' | 'accent4' | 'accent5' | 'accent6' | 'hlink' | 'folHlink' | 'bg1' | 'tx1' | 'bg2' | 'tx2' | 'phClr';
|
|
243
|
-
/**
|
|
244
|
-
* A theme colour choice. Every transform is a 0..1 fraction of the OOXML
|
|
245
|
-
* percentage (`lumMod val="20000"` is `lumMod: 0.2`), matching how the parser
|
|
246
|
-
* reads them, and is applied in the order `a:schemeClr` children are written:
|
|
247
|
-
* `tint`, `shade`, `lumMod`, `lumOff`, `alpha`.
|
|
248
|
-
*/
|
|
249
|
-
interface PptxThemeColorRef {
|
|
250
|
-
scheme: PptxThemeColorSchemeName;
|
|
251
|
-
/** `a:lumMod`: multiply HSL luminance (PowerPoint's "Lighter/Darker" rows). */
|
|
252
|
-
lumMod?: number;
|
|
253
|
-
/** `a:lumOff`: add to HSL luminance after `lumMod` ("Lighter N%" rows). */
|
|
254
|
-
lumOff?: number;
|
|
255
|
-
/** `a:tint`: blend towards white. */
|
|
256
|
-
tint?: number;
|
|
257
|
-
/** `a:shade`: blend towards black. */
|
|
258
|
-
shade?: number;
|
|
259
|
-
/** `a:alpha`: opacity fraction (1 = opaque). */
|
|
260
|
-
alpha?: number;
|
|
261
|
-
}
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region src/pptx/core/types/three-d.d.ts
|
|
264
|
+
//#region pptx/core/types/three-d.d.ts
|
|
264
265
|
/**
|
|
265
266
|
* 3-D effect properties, text warp (WordArt) presets, and scene/shape bevel
|
|
266
267
|
* definitions parsed from OOXML `a:sp3d`, `a:scene3d`, and `a:bodyPr/a:prstTxWarp`.
|
|
@@ -439,7 +440,7 @@ interface Pptx3DShape {
|
|
|
439
440
|
*/
|
|
440
441
|
type PptxTextWarpPreset = 'textNoShape' | 'textPlain' | 'textStop' | 'textTriangle' | 'textTriangleInverted' | 'textChevron' | 'textChevronInverted' | 'textRingInside' | 'textRingOutside' | 'textArchUp' | 'textArchDown' | 'textCircle' | 'textButton' | 'textArchUpPour' | 'textArchDownPour' | 'textCirclePour' | 'textButtonPour' | 'textCurveUp' | 'textCurveDown' | 'textCanUp' | 'textCanDown' | 'textWave1' | 'textWave2' | 'textWave4' | 'textDoubleWave1' | 'textInflate' | 'textDeflate' | 'textInflateBottom' | 'textDeflateBottom' | 'textInflateTop' | 'textDeflateTop' | 'textFadeRight' | 'textFadeLeft' | 'textFadeUp' | 'textFadeDown' | 'textSlantUp' | 'textSlantDown' | 'textCascadeUp' | 'textCascadeDown' | 'textDeflateInflate' | 'textDeflateInflateDeflate' | string;
|
|
441
442
|
//#endregion
|
|
442
|
-
//#region
|
|
443
|
+
//#region pptx/core/types/effect-dag.d.ts
|
|
443
444
|
type EffectDagBlendMode = 'darken' | 'lighten' | 'mult' | 'over' | 'screen';
|
|
444
445
|
type EffectDagContainerType = 'sib' | 'tree';
|
|
445
446
|
type EffectDagNode = EffectDagContainer | EffectDagBlend | EffectDagXfrm | EffectDagRelOff | EffectDagBlur | EffectDagAlphaOutset | EffectDagPresetShadow | EffectDagRawLeaf;
|
|
@@ -495,7 +496,7 @@ interface EffectDagRawLeaf {
|
|
|
495
496
|
xml: Record<string, unknown>;
|
|
496
497
|
}
|
|
497
498
|
//#endregion
|
|
498
|
-
//#region
|
|
499
|
+
//#region pptx/core/types/text.d.ts
|
|
499
500
|
/**
|
|
500
501
|
* Rich text style properties for a text run or paragraph.
|
|
501
502
|
*
|
|
@@ -1510,7 +1511,7 @@ interface TextSegment {
|
|
|
1510
1511
|
};
|
|
1511
1512
|
}
|
|
1512
1513
|
//#endregion
|
|
1513
|
-
//#region
|
|
1514
|
+
//#region pptx/core/types/shape-style.d.ts
|
|
1514
1515
|
interface PptxCustomDashSegment {
|
|
1515
1516
|
/** Dash length as a non-negative percentage in thousandths of one percent. */
|
|
1516
1517
|
dash: number;
|
|
@@ -1984,7 +1985,7 @@ interface ResolvedStyleMatrix {
|
|
|
1984
1985
|
fontColor?: string;
|
|
1985
1986
|
}
|
|
1986
1987
|
//#endregion
|
|
1987
|
-
//#region
|
|
1988
|
+
//#region pptx/core/types/image.d.ts
|
|
1988
1989
|
/**
|
|
1989
1990
|
* Image recolour/adjustment properties parsed from blip extensions.
|
|
1990
1991
|
*
|
|
@@ -2411,7 +2412,7 @@ interface PptxImageProperties {
|
|
|
2411
2412
|
cropShape?: PptxCropShape;
|
|
2412
2413
|
}
|
|
2413
2414
|
//#endregion
|
|
2414
|
-
//#region
|
|
2415
|
+
//#region pptx/core/types/geometry.d.ts
|
|
2415
2416
|
/**
|
|
2416
2417
|
* Geometry types: adjustment handles, custom geometry points, segments,
|
|
2417
2418
|
* paths, and custom path properties.
|
|
@@ -2713,7 +2714,7 @@ interface PptxCustomPathProperties {
|
|
|
2713
2714
|
customGeometryTextRect?: CustomGeometryTextRect;
|
|
2714
2715
|
}
|
|
2715
2716
|
//#endregion
|
|
2716
|
-
//#region
|
|
2717
|
+
//#region pptx/core/types/chart-axis.d.ts
|
|
2717
2718
|
/** Tick-mark placement from ChartML `ST_TickMark`. */
|
|
2718
2719
|
type PptxChartTickMark = 'cross' | 'in' | 'none' | 'out';
|
|
2719
2720
|
/** Typed axis tick and category/date label controls. */
|
|
@@ -2737,7 +2738,7 @@ interface PptxChartAxisLabelFormatting {
|
|
|
2737
2738
|
noMultiLevelLabels?: boolean;
|
|
2738
2739
|
}
|
|
2739
2740
|
//#endregion
|
|
2740
|
-
//#region
|
|
2741
|
+
//#region pptx/core/types/chart-ex.d.ts
|
|
2741
2742
|
/**
|
|
2742
2743
|
* Chart-formatting types that don't fit an existing, owned type module for
|
|
2743
2744
|
* this wave (`types/chart.ts` is owned elsewhere; see its own module doc).
|
|
@@ -2794,7 +2795,7 @@ interface PptxChartDataPointPicture {
|
|
|
2794
2795
|
opacity?: number;
|
|
2795
2796
|
}
|
|
2796
2797
|
//#endregion
|
|
2797
|
-
//#region
|
|
2798
|
+
//#region pptx/core/types/chart-pivot-format.d.ts
|
|
2798
2799
|
interface PptxChartPivotFormat {
|
|
2799
2800
|
index: number;
|
|
2800
2801
|
/**
|
|
@@ -2840,7 +2841,7 @@ interface PptxChartPivotFormats {
|
|
|
2840
2841
|
rawXml?: XmlObject;
|
|
2841
2842
|
}
|
|
2842
2843
|
//#endregion
|
|
2843
|
-
//#region
|
|
2844
|
+
//#region pptx/core/types/chart-pivot-source.d.ts
|
|
2844
2845
|
/** Editable classic ChartML `c:pivotSource` metadata. */
|
|
2845
2846
|
interface PptxChartPivotSource {
|
|
2846
2847
|
/** Pivot table reference stored as `c:name` text. */
|
|
@@ -2851,7 +2852,7 @@ interface PptxChartPivotSource {
|
|
|
2851
2852
|
rawXml?: XmlObject;
|
|
2852
2853
|
}
|
|
2853
2854
|
//#endregion
|
|
2854
|
-
//#region
|
|
2855
|
+
//#region pptx/core/types/chart-print-settings.d.ts
|
|
2855
2856
|
/** Headers and footers used when a classic ChartML chart is printed. */
|
|
2856
2857
|
interface PptxChartPrintHeaderFooter {
|
|
2857
2858
|
oddHeader?: string;
|
|
@@ -2911,7 +2912,7 @@ interface PptxChartPrintSettings {
|
|
|
2911
2912
|
rawXml?: unknown;
|
|
2912
2913
|
}
|
|
2913
2914
|
//#endregion
|
|
2914
|
-
//#region
|
|
2915
|
+
//#region pptx/core/types/chart-protection.d.ts
|
|
2915
2916
|
/** Editable classic ChartML `c:protection` settings. */
|
|
2916
2917
|
interface PptxChartProtection {
|
|
2917
2918
|
/** Prevent editing the chart object. */
|
|
@@ -2928,7 +2929,7 @@ interface PptxChartProtection {
|
|
|
2928
2929
|
rawXml?: XmlObject;
|
|
2929
2930
|
}
|
|
2930
2931
|
//#endregion
|
|
2931
|
-
//#region
|
|
2932
|
+
//#region pptx/core/types/chart-style-definition.d.ts
|
|
2932
2933
|
/**
|
|
2933
2934
|
* Typed subset of an Office 2013+ chart-style part (`ppt/charts/style#.xml`,
|
|
2934
2935
|
* root element `cs:chartStyle`, relationship type
|
|
@@ -2987,7 +2988,7 @@ interface PptxChartStyleDefinition {
|
|
|
2987
2988
|
plotArea?: PptxChartStylePartEntry;
|
|
2988
2989
|
}
|
|
2989
2990
|
//#endregion
|
|
2990
|
-
//#region
|
|
2991
|
+
//#region pptx/core/types/chart-title.d.ts
|
|
2991
2992
|
/**
|
|
2992
2993
|
* Chart title rich-text run type, split out of `types/chart.ts` (already at
|
|
2993
2994
|
* the repo's file-size limit) to keep that module from growing further.
|
|
@@ -3020,7 +3021,7 @@ interface PptxChartTitleRun {
|
|
|
3020
3021
|
color?: string;
|
|
3021
3022
|
}
|
|
3022
3023
|
//#endregion
|
|
3023
|
-
//#region
|
|
3024
|
+
//#region pptx/core/types/chart-user-shapes.d.ts
|
|
3024
3025
|
/** A single paragraph of overlay-shape text with light formatting. */
|
|
3025
3026
|
interface PptxChartUserShapeParagraph {
|
|
3026
3027
|
/** Joined run text of the paragraph. */
|
|
@@ -3233,7 +3234,7 @@ interface PptxChartUserShape {
|
|
|
3233
3234
|
children?: PptxChartUserShapeGroupChild[];
|
|
3234
3235
|
}
|
|
3235
3236
|
//#endregion
|
|
3236
|
-
//#region
|
|
3237
|
+
//#region pptx/core/types/chart.d.ts
|
|
3237
3238
|
/**
|
|
3238
3239
|
* Supported chart type discriminators.
|
|
3239
3240
|
*
|
|
@@ -3616,7 +3617,10 @@ interface PptxChartAxisFormatting extends PptxChartAxisLabelFormatting {
|
|
|
3616
3617
|
max?: number;
|
|
3617
3618
|
/** Axis value direction (`c:scaling/c:orientation/@val`). */
|
|
3618
3619
|
orientation?: 'minMax' | 'maxMin';
|
|
3619
|
-
/**
|
|
3620
|
+
/**
|
|
3621
|
+
* Whether the axis is deleted/hidden (c:delete/@val). Written for generated
|
|
3622
|
+
* charts (absent means shown) and reconciled on save for loaded ones.
|
|
3623
|
+
*/
|
|
3620
3624
|
deleted?: boolean;
|
|
3621
3625
|
/**
|
|
3622
3626
|
* Display units for value axis (c:dispUnits/c:builtInUnit/@val).
|
|
@@ -3818,6 +3822,17 @@ interface PptxChartSeries {
|
|
|
3818
3822
|
* changing the scatter style.
|
|
3819
3823
|
*/
|
|
3820
3824
|
lineNoFill?: boolean;
|
|
3825
|
+
/**
|
|
3826
|
+
* Series line width in points (`c:ser/c:spPr/a:ln/@w`, EMU / 12700).
|
|
3827
|
+
* `undefined` when the series authors none; the renderer then keeps its
|
|
3828
|
+
* own default width.
|
|
3829
|
+
*/
|
|
3830
|
+
lineWidth?: number;
|
|
3831
|
+
/**
|
|
3832
|
+
* Series line preset dash (`c:ser/c:spPr/a:ln/a:prstDash/@val`, e.g.
|
|
3833
|
+
* `sysDot`, `dash`). `undefined` (or `solid`) draws a solid line.
|
|
3834
|
+
*/
|
|
3835
|
+
lineDashStyle?: string;
|
|
3821
3836
|
/**
|
|
3822
3837
|
* Blank-value mask aligned index-for-index with {@link values}: `true` marks
|
|
3823
3838
|
* a category whose numeric cache point (`c:numCache/c:pt`) was absent or
|
|
@@ -4061,8 +4076,20 @@ interface PptxChartStyle {
|
|
|
4061
4076
|
styleId?: number;
|
|
4062
4077
|
/** Whether the chart has a visible legend. */
|
|
4063
4078
|
hasLegend?: boolean;
|
|
4064
|
-
/**
|
|
4079
|
+
/**
|
|
4080
|
+
* Legend position (t, b, l, r, tr), exactly as written. Absent when the
|
|
4081
|
+
* legend declares none, which PowerPoint draws on the right; the default is
|
|
4082
|
+
* left to the renderer so a save never adds a `c:legendPos` the source lacked.
|
|
4083
|
+
*/
|
|
4065
4084
|
legendPosition?: string;
|
|
4085
|
+
/**
|
|
4086
|
+
* Whether the legend floats over the plot instead of reserving space beside
|
|
4087
|
+
* it. Classic charts read `c:legend/c:overlay`, and PowerPoint treats a
|
|
4088
|
+
* missing element as an overlay for every position (measured with
|
|
4089
|
+
* PowerPoint 16: `IncludeInLayout` is false). ChartEx charts read
|
|
4090
|
+
* `cx:legend/@overlay` only when present. Absent when unknown.
|
|
4091
|
+
*/
|
|
4092
|
+
legendOverlay?: boolean;
|
|
4066
4093
|
/** Per-series visibility and text-style overrides. */
|
|
4067
4094
|
legendEntries?: PptxChartLegendEntry[];
|
|
4068
4095
|
/**
|
|
@@ -4091,6 +4118,15 @@ interface PptxChartStyle {
|
|
|
4091
4118
|
chartAreaGradient?: PptxChartGradientFill;
|
|
4092
4119
|
/** Plot-area gradient (`c:plotArea/c:spPr/a:gradFill`); wins over {@link plotAreaFill}. */
|
|
4093
4120
|
plotAreaGradient?: PptxChartGradientFill;
|
|
4121
|
+
/**
|
|
4122
|
+
* Chart-area border from `c:chartSpace/c:spPr/a:ln`: a resolved colour, or
|
|
4123
|
+
* `'none'` for `a:ln/a:noFill`. Absent when the chart says nothing.
|
|
4124
|
+
* Written for generated charts and reconciled on save for loaded ones,
|
|
4125
|
+
* together with {@link chartAreaFill} and {@link chartAreaGradient}.
|
|
4126
|
+
*/
|
|
4127
|
+
chartAreaBorder?: string;
|
|
4128
|
+
/** Plot-area border from `c:plotArea/c:spPr/a:ln`. See {@link chartAreaBorder}. */
|
|
4129
|
+
plotAreaBorder?: string;
|
|
4094
4130
|
/** Whether data labels are shown. */
|
|
4095
4131
|
hasDataLabels?: boolean;
|
|
4096
4132
|
/** Chart-level data-label content/position options (when `hasDataLabels`). */
|
|
@@ -4347,12 +4383,16 @@ interface PptxChartData {
|
|
|
4347
4383
|
varyColors?: boolean;
|
|
4348
4384
|
/**
|
|
4349
4385
|
* Pie/doughnut start angle in degrees clockwise from 12 o'clock
|
|
4350
|
-
* (`c:firstSliceAng/@val`, 0 through 360). Absent uses
|
|
4386
|
+
* (`c:firstSliceAng/@val`, `ST_FirstSliceAng`, 0 through 360). Absent uses
|
|
4387
|
+
* the default 0. Written for generated pie and doughnut charts and
|
|
4388
|
+
* reconciled on save for loaded ones (see `utils/chart-group-options.ts`).
|
|
4351
4389
|
*/
|
|
4352
4390
|
firstSliceAngle?: number;
|
|
4353
4391
|
/**
|
|
4354
4392
|
* Doughnut hole diameter as a percentage of the outer diameter
|
|
4355
|
-
* (`c:holeSize/@val`,
|
|
4393
|
+
* (`c:holeSize/@val`, `ST_HoleSize`, 1 through 90). Absent uses the
|
|
4394
|
+
* renderer default; a generated doughnut writes 50. Reconciled on save for
|
|
4395
|
+
* loaded charts.
|
|
4356
4396
|
*/
|
|
4357
4397
|
doughnutHoleSize?: number;
|
|
4358
4398
|
/**
|
|
@@ -4408,12 +4448,16 @@ interface PptxChartData {
|
|
|
4408
4448
|
scatterStyle?: PptxChartScatterStyle;
|
|
4409
4449
|
/**
|
|
4410
4450
|
* Bar/column gap between category clusters as a percentage of bar width
|
|
4411
|
-
* (`c:gapWidth/@val`, 0 through 500). Absent uses the
|
|
4451
|
+
* (`c:gapWidth/@val`, `ST_GapAmount`, 0 through 500). Absent uses the
|
|
4452
|
+
* renderer default; a generated bar chart writes 150. Reconciled on save
|
|
4453
|
+
* for loaded charts.
|
|
4412
4454
|
*/
|
|
4413
4455
|
barGapWidth?: number;
|
|
4414
4456
|
/**
|
|
4415
4457
|
* Clustered bar/column overlap between series within a category as a
|
|
4416
|
-
* percentage (`c:overlap/@val`, -100 through 100). Absent
|
|
4458
|
+
* percentage (`c:overlap/@val`, `ST_Overlap`, -100 through 100). Absent
|
|
4459
|
+
* uses 0. `c:bar3DChart` has no overlap. Written for generated charts and
|
|
4460
|
+
* reconciled on save for loaded ones.
|
|
4417
4461
|
*/
|
|
4418
4462
|
barOverlap?: number;
|
|
4419
4463
|
/** Internal: path to the chart XML part in the PPTX archive (for round-trip save). */
|
|
@@ -4558,16 +4602,18 @@ interface PptxChartData {
|
|
|
4558
4602
|
date1904?: boolean;
|
|
4559
4603
|
/**
|
|
4560
4604
|
* PowerPoint's "Rounded corners" chart-area option
|
|
4561
|
-
* (`c:chartSpace/c:roundedCorners/@val
|
|
4562
|
-
*
|
|
4605
|
+
* (`c:chartSpace/c:roundedCorners/@val`). Absent when the source XML omits
|
|
4606
|
+
* the element; PowerPoint then draws rounded corners, so square corners
|
|
4607
|
+
* need an explicit `false`. Written for generated charts when set, and
|
|
4608
|
+
* reconciled on save for loaded ones.
|
|
4563
4609
|
*/
|
|
4564
4610
|
roundedCorners?: boolean;
|
|
4565
4611
|
/**
|
|
4566
4612
|
* 3-D chart depth/spacing along the series axis, as a percentage
|
|
4567
4613
|
* (`c:gapDepth/@val`, `ST_GapAmount`, 0 through 500). Legal on
|
|
4568
4614
|
* `bar3D`/`area3D`/`line3D`/`surface` chart-type containers only. Read-only
|
|
4569
|
-
* for rendering
|
|
4570
|
-
*
|
|
4615
|
+
* for rendering: save round-trips it via the preserved chart XML rather
|
|
4616
|
+
* than a typed edit path.
|
|
4571
4617
|
*/
|
|
4572
4618
|
gapDepth?: number;
|
|
4573
4619
|
/**
|
|
@@ -4581,7 +4627,7 @@ interface PptxChartData {
|
|
|
4581
4627
|
chartStyleDefinition?: PptxChartStyleDefinition;
|
|
4582
4628
|
}
|
|
4583
4629
|
//#endregion
|
|
4584
|
-
//#region
|
|
4630
|
+
//#region diagram/types.d.ts
|
|
4585
4631
|
/** Resolved SmartArt layout family. */
|
|
4586
4632
|
type DiagramLayoutType = 'list' | 'process' | 'cycle' | 'hierarchy' | 'relationship' | 'matrix' | 'pyramid' | 'funnel' | 'gear' | 'target' | 'timeline' | 'venn' | 'chevron' | 'bending' | 'unknown';
|
|
4587
4633
|
/** SmartArt colour scheme presets. */
|
|
@@ -4626,7 +4672,7 @@ interface DiagramNodeCustomLayout {
|
|
|
4626
4672
|
hasCustomTransform?: boolean;
|
|
4627
4673
|
}
|
|
4628
4674
|
//#endregion
|
|
4629
|
-
//#region
|
|
4675
|
+
//#region pptx/core/types/smart-art-chrome.d.ts
|
|
4630
4676
|
/**
|
|
4631
4677
|
* Background / outline extracted from `dgm:bg` and `dgm:whole`.
|
|
4632
4678
|
*
|
|
@@ -4672,7 +4718,7 @@ interface PptxSmartArtRawBackgroundFill {
|
|
|
4672
4718
|
xml: XmlObject;
|
|
4673
4719
|
}
|
|
4674
4720
|
//#endregion
|
|
4675
|
-
//#region
|
|
4721
|
+
//#region pptx/core/types/smart-art-constraint-rules.d.ts
|
|
4676
4722
|
type PptxSmartArtConstraintRelationship = 'self' | 'ch' | 'des';
|
|
4677
4723
|
type PptxSmartArtConstraintOperator = 'none' | 'equ' | 'gte' | 'lte';
|
|
4678
4724
|
type PptxSmartArtConstraintPointType = 'all' | 'doc' | 'node' | 'norm' | 'nonNorm' | 'asst' | 'nonAsst' | 'parTrans' | 'pres' | 'sibTrans';
|
|
@@ -4704,7 +4750,7 @@ interface PptxSmartArtNumericRule extends PptxSmartArtConstraintTarget {
|
|
|
4704
4750
|
rawXml?: XmlObject;
|
|
4705
4751
|
}
|
|
4706
4752
|
//#endregion
|
|
4707
|
-
//#region
|
|
4753
|
+
//#region pptx/core/types/smart-art-layout-primitives.d.ts
|
|
4708
4754
|
interface PptxSmartArtLocalizedText {
|
|
4709
4755
|
value: string;
|
|
4710
4756
|
language?: string;
|
|
@@ -4780,7 +4826,7 @@ interface PptxSmartArtLayoutNodeShape {
|
|
|
4780
4826
|
lkTxEntry?: boolean;
|
|
4781
4827
|
}
|
|
4782
4828
|
//#endregion
|
|
4783
|
-
//#region
|
|
4829
|
+
//#region pptx/core/types/smart-art-layout-definition.d.ts
|
|
4784
4830
|
/** Identity and ordering metadata from DiagramML CT_LayoutNode. */
|
|
4785
4831
|
interface PptxSmartArtLayoutNode {
|
|
4786
4832
|
name?: string;
|
|
@@ -5054,7 +5100,7 @@ interface PptxSmartArtLayoutDefinition {
|
|
|
5054
5100
|
rawXmlText?: string;
|
|
5055
5101
|
}
|
|
5056
5102
|
//#endregion
|
|
5057
|
-
//#region
|
|
5103
|
+
//#region pptx/core/types/smart-art-node.d.ts
|
|
5058
5104
|
/**
|
|
5059
5105
|
* A single run of text inside a SmartArt node, capturing the run text and the
|
|
5060
5106
|
* raw `a:rPr` run-properties object verbatim so per-run formatting (bold,
|
|
@@ -5262,7 +5308,7 @@ interface PptxSmartArtNode {
|
|
|
5262
5308
|
customLayout?: SmartArtNodeCustomLayout;
|
|
5263
5309
|
}
|
|
5264
5310
|
//#endregion
|
|
5265
|
-
//#region
|
|
5311
|
+
//#region pptx/core/types/smart-art-style-definition.d.ts
|
|
5266
5312
|
interface PptxSmartArtDefinitionText {
|
|
5267
5313
|
value: string;
|
|
5268
5314
|
language?: string;
|
|
@@ -5393,7 +5439,7 @@ interface PptxSmartArtQuickStyle extends PptxSmartArtDefinitionMetadata {
|
|
|
5393
5439
|
scene3d?: Pptx3DScene;
|
|
5394
5440
|
}
|
|
5395
5441
|
//#endregion
|
|
5396
|
-
//#region
|
|
5442
|
+
//#region pptx/core/types/smart-art.d.ts
|
|
5397
5443
|
/**
|
|
5398
5444
|
* Resolved SmartArt layout category.
|
|
5399
5445
|
*
|
|
@@ -5711,7 +5757,7 @@ interface PptxSmartArtData {
|
|
|
5711
5757
|
drawingDirty?: boolean;
|
|
5712
5758
|
}
|
|
5713
5759
|
//#endregion
|
|
5714
|
-
//#region
|
|
5760
|
+
//#region pptx/core/types/table-style-edit.d.ts
|
|
5715
5761
|
/**
|
|
5716
5762
|
* A `a:fillRef`/`a:lnRef`/`a:effectRef`-style style-matrix reference: an
|
|
5717
5763
|
* index into the theme's format scheme (`a:fmtScheme/a:fillStyleLst`, 1-based
|
|
@@ -5759,7 +5805,7 @@ interface ParsedTableStyleEffect {
|
|
|
5759
5805
|
xml: XmlObject;
|
|
5760
5806
|
}
|
|
5761
5807
|
//#endregion
|
|
5762
|
-
//#region
|
|
5808
|
+
//#region pptx/core/types/table.d.ts
|
|
5763
5809
|
/**
|
|
5764
5810
|
* Per-cell visual style for a table cell.
|
|
5765
5811
|
*
|
|
@@ -6015,6 +6061,11 @@ interface PptxTableCellTextRun {
|
|
|
6015
6061
|
fontSize?: number;
|
|
6016
6062
|
/** Run font family from `a:rPr/a:latin@typeface` (or `a:ea` / `a:cs`). */
|
|
6017
6063
|
fontFamily?: string;
|
|
6064
|
+
/**
|
|
6065
|
+
* Run baseline shift from `a:rPr/@baseline`, in thousandths of a percent
|
|
6066
|
+
* (`-25000` is a 25% subscript). Positive raises the run, negative lowers it.
|
|
6067
|
+
*/
|
|
6068
|
+
baseline?: number;
|
|
6018
6069
|
}
|
|
6019
6070
|
/**
|
|
6020
6071
|
* A single table cell with text content, optional style, and merge info.
|
|
@@ -6448,7 +6499,7 @@ interface ParsedTableStyleEntry {
|
|
|
6448
6499
|
*/
|
|
6449
6500
|
type ParsedTableStyleMap = Record<string, ParsedTableStyleEntry>;
|
|
6450
6501
|
//#endregion
|
|
6451
|
-
//#region
|
|
6502
|
+
//#region pptx/core/types/transition.d.ts
|
|
6452
6503
|
/**
|
|
6453
6504
|
* Available slide transition effects.
|
|
6454
6505
|
*
|
|
@@ -6549,7 +6600,7 @@ interface PptxSlideTransition {
|
|
|
6549
6600
|
rawTransition?: XmlObject;
|
|
6550
6601
|
}
|
|
6551
6602
|
//#endregion
|
|
6552
|
-
//#region
|
|
6603
|
+
//#region pptx/core/types/animation-behavior.d.ts
|
|
6553
6604
|
/** Timing of one behaviour, from its own `p:cBhvr/p:cTn`. */
|
|
6554
6605
|
interface PptxAnimationBehaviorTiming {
|
|
6555
6606
|
/** `p:cTn/@dur` in ms; absent when `indefinite` or unset. */
|
|
@@ -6627,7 +6678,7 @@ interface PptxAnimMotionBehavior extends BehaviorBase {
|
|
|
6627
6678
|
/** One behaviour child of an effect, tagged by its OOXML element. */
|
|
6628
6679
|
type PptxAnimationBehavior = PptxSetBehavior | PptxAnimBehavior | PptxAnimEffectBehavior | PptxAnimScaleBehavior | PptxAnimRotBehavior | PptxAnimMotionBehavior;
|
|
6629
6680
|
//#endregion
|
|
6630
|
-
//#region
|
|
6681
|
+
//#region pptx/core/types/animation.d.ts
|
|
6631
6682
|
/**
|
|
6632
6683
|
* Built-in animation preset names used for entrance, exit, and emphasis effects.
|
|
6633
6684
|
*
|
|
@@ -7627,7 +7678,7 @@ interface PptxAnimationTimelineAnchor {
|
|
|
7627
7678
|
presetClasses: Array<'entr' | 'exit' | 'emph' | 'path'>;
|
|
7628
7679
|
}
|
|
7629
7680
|
//#endregion
|
|
7630
|
-
//#region
|
|
7681
|
+
//#region pptx/core/types/media.d.ts
|
|
7631
7682
|
/**
|
|
7632
7683
|
* Discriminator for embedded media element types.
|
|
7633
7684
|
*
|
|
@@ -7721,7 +7772,7 @@ interface MediaCaptionTrack {
|
|
|
7721
7772
|
isDefault?: boolean;
|
|
7722
7773
|
}
|
|
7723
7774
|
//#endregion
|
|
7724
|
-
//#region
|
|
7775
|
+
//#region pptx/core/types/actions.d.ts
|
|
7725
7776
|
/**
|
|
7726
7777
|
* Action types: hyperlinks, slide jumps, macros, and action buttons.
|
|
7727
7778
|
*
|
|
@@ -7836,7 +7887,7 @@ interface ElementAction {
|
|
|
7836
7887
|
oleVerb?: number;
|
|
7837
7888
|
}
|
|
7838
7889
|
//#endregion
|
|
7839
|
-
//#region
|
|
7890
|
+
//#region pptx/core/types/comment-mentions.d.ts
|
|
7840
7891
|
/**
|
|
7841
7892
|
* A single `@`-mention inside a modern comment body.
|
|
7842
7893
|
*
|
|
@@ -7884,7 +7935,7 @@ interface PptxCommentMention {
|
|
|
7884
7935
|
rawXml?: XmlObject;
|
|
7885
7936
|
}
|
|
7886
7937
|
//#endregion
|
|
7887
|
-
//#region
|
|
7938
|
+
//#region pptx/core/types/metadata.d.ts
|
|
7888
7939
|
/**
|
|
7889
7940
|
* A slide comment — may be a legacy positional comment or a modern
|
|
7890
7941
|
* threaded comment with replies.
|
|
@@ -8163,7 +8214,7 @@ interface PptxAppProperties {
|
|
|
8163
8214
|
hyperlinksChanged?: boolean;
|
|
8164
8215
|
}
|
|
8165
8216
|
//#endregion
|
|
8166
|
-
//#region
|
|
8217
|
+
//#region pptx/core/types/element-base.d.ts
|
|
8167
8218
|
/**
|
|
8168
8219
|
* Properties shared by **every** element on a slide.
|
|
8169
8220
|
*
|
|
@@ -8473,7 +8524,7 @@ interface PlaceholderTextLevelStyle {
|
|
|
8473
8524
|
hangingPunctuation?: boolean;
|
|
8474
8525
|
}
|
|
8475
8526
|
//#endregion
|
|
8476
|
-
//#region
|
|
8527
|
+
//#region pptx/core/types/model3d-scene.d.ts
|
|
8477
8528
|
/**
|
|
8478
8529
|
* Authored scene data of a PowerPoint 3D model (`am3d:model3d`, namespace
|
|
8479
8530
|
* `http://schemas.microsoft.com/office/drawing/2017/model3d`).
|
|
@@ -8531,7 +8582,7 @@ interface Model3DSceneData {
|
|
|
8531
8582
|
viewportSizeEmu?: number;
|
|
8532
8583
|
}
|
|
8533
8584
|
//#endregion
|
|
8534
|
-
//#region
|
|
8585
|
+
//#region pptx/core/types/elements.d.ts
|
|
8535
8586
|
/**
|
|
8536
8587
|
* Accessibility metadata from `p:cNvPr/a:extLst`'s "Mark as decorative"
|
|
8537
8588
|
* vendor extension (issue G16). PowerPoint's Alt Text pane writes
|
|
@@ -9515,7 +9566,7 @@ interface PptxTheme {
|
|
|
9515
9566
|
formatScheme?: PptxThemeFormatScheme;
|
|
9516
9567
|
}
|
|
9517
9568
|
//#endregion
|
|
9518
|
-
//#region
|
|
9569
|
+
//#region pptx/core/types/masters.d.ts
|
|
9519
9570
|
/**
|
|
9520
9571
|
* A placeholder slot declared on a master or layout.
|
|
9521
9572
|
*
|
|
@@ -9811,7 +9862,7 @@ interface PptxThemeOption {
|
|
|
9811
9862
|
name?: string;
|
|
9812
9863
|
}
|
|
9813
9864
|
//#endregion
|
|
9814
|
-
//#region
|
|
9865
|
+
//#region pptx/core/types/embedded-font.d.ts
|
|
9815
9866
|
interface PptxEmbeddedFontDataId {
|
|
9816
9867
|
/** Required relationship identifier from `r:id`. */
|
|
9817
9868
|
relationshipId?: string | null;
|
|
@@ -9839,7 +9890,7 @@ interface PptxEmbeddedFontList {
|
|
|
9839
9890
|
rawXml?: XmlObject;
|
|
9840
9891
|
}
|
|
9841
9892
|
//#endregion
|
|
9842
|
-
//#region
|
|
9893
|
+
//#region pptx/core/types/presentation-print-properties.d.ts
|
|
9843
9894
|
type PptxPrintOutput = 'slides' | 'handouts1' | 'handouts2' | 'handouts3' | 'handouts4' | 'handouts6' | 'handouts9' | 'notes' | 'outline';
|
|
9844
9895
|
type PptxPrintColorMode = 'bw' | 'gray' | 'clr';
|
|
9845
9896
|
/** PresentationML `CT_PrintProperties` (`p:prnPr`). */
|
|
@@ -9853,7 +9904,7 @@ interface PptxPresentationPrintProperties {
|
|
|
9853
9904
|
rawXml?: XmlObject;
|
|
9854
9905
|
}
|
|
9855
9906
|
//#endregion
|
|
9856
|
-
//#region
|
|
9907
|
+
//#region pptx/core/types/view-properties.d.ts
|
|
9857
9908
|
/**
|
|
9858
9909
|
* View properties types parsed from `ppt/viewProps.xml`.
|
|
9859
9910
|
*
|
|
@@ -9972,7 +10023,7 @@ interface PptxViewProperties {
|
|
|
9972
10023
|
rawXml?: Record<string, unknown>;
|
|
9973
10024
|
}
|
|
9974
10025
|
//#endregion
|
|
9975
|
-
//#region
|
|
10026
|
+
//#region pptx/core/types/presentation.d.ts
|
|
9976
10027
|
/**
|
|
9977
10028
|
* A customer data reference from `p:custDataLst / p:custData`.
|
|
9978
10029
|
*
|
|
@@ -10780,8 +10831,8 @@ interface PptxEmbeddedFont {
|
|
|
10780
10831
|
originalPartBytes?: Uint8Array;
|
|
10781
10832
|
}
|
|
10782
10833
|
//#endregion
|
|
10783
|
-
//#region
|
|
10784
|
-
//#region
|
|
10834
|
+
//#region ../../../../src/core/dist/pptx/chunks/index-ucqKcqvI.d.ts
|
|
10835
|
+
//#region pptx/core/types/theme-presets.d.ts
|
|
10785
10836
|
/**
|
|
10786
10837
|
* A complete theme preset that can be applied to a presentation.
|
|
10787
10838
|
*
|
|
@@ -10804,7 +10855,7 @@ interface PptxThemePreset {
|
|
|
10804
10855
|
fontScheme: PptxThemeFontScheme;
|
|
10805
10856
|
}
|
|
10806
10857
|
//#endregion
|
|
10807
|
-
//#region
|
|
10858
|
+
//#region pptx/core/builders/sdk/chart-gradient-input.d.ts
|
|
10808
10859
|
/** One gradient stop. */
|
|
10809
10860
|
interface ChartGradientStopInput {
|
|
10810
10861
|
/** Hex colour, `#RRGGBB` or `RRGGBB`. */
|
|
@@ -10856,8 +10907,51 @@ type ChartGradientInput = {
|
|
|
10856
10907
|
};
|
|
10857
10908
|
stops: ChartGradientStopInput[];
|
|
10858
10909
|
};
|
|
10910
|
+
/**
|
|
10911
|
+
* Chart-area or plot-area format. `fill` is a hex colour, `'none'` or a
|
|
10912
|
+
* gradient; `border` is a hex colour or `'none'`; `null` clears either.
|
|
10913
|
+
* `roundedCorners` applies to the chart area only (PowerPoint draws rounded
|
|
10914
|
+
* corners when it is unset, so pass `false` for square ones).
|
|
10915
|
+
*/
|
|
10916
|
+
interface ChartAreaFormatInput {
|
|
10917
|
+
fill?: string | ChartGradientInput | null;
|
|
10918
|
+
border?: string | null;
|
|
10919
|
+
roundedCorners?: boolean | null;
|
|
10920
|
+
}
|
|
10921
|
+
/** Axis kinds that can be addressed by {@link setChartAxis}. */
|
|
10922
|
+
type PptxChartAxisType = PptxChartAxisFormatting['axisType'];
|
|
10923
|
+
/**
|
|
10924
|
+
* Editable axis-formatting properties. Each field is optional:
|
|
10925
|
+
* - omit a field to leave it unchanged,
|
|
10926
|
+
* - pass a value to set it,
|
|
10927
|
+
* - pass `null` (for the numeric fields) or `''` (for `numberFormat`) to
|
|
10928
|
+
* clear it so the axis falls back to its automatic behaviour.
|
|
10929
|
+
*/
|
|
10930
|
+
interface ChartAxisEdit {
|
|
10931
|
+
min?: number | null;
|
|
10932
|
+
max?: number | null;
|
|
10933
|
+
majorUnit?: number | null;
|
|
10934
|
+
minorUnit?: number | null;
|
|
10935
|
+
orientation?: PptxChartAxisFormatting['orientation'] | null;
|
|
10936
|
+
numberFormat?: string;
|
|
10937
|
+
tickLabelPosition?: 'high' | 'low' | 'nextTo' | 'none';
|
|
10938
|
+
/** Axis title text. Pass `null` or `''` to remove the title. */
|
|
10939
|
+
title?: string | null;
|
|
10940
|
+
/** Toggle major gridlines. */
|
|
10941
|
+
majorGridlines?: boolean;
|
|
10942
|
+
/** Toggle minor gridlines. */
|
|
10943
|
+
minorGridlines?: boolean;
|
|
10944
|
+
/** Value-axis display units (built-in scale name or `'custom'`); `null` clears. */
|
|
10945
|
+
displayUnits?: PptxChartAxisFormatting['displayUnits'] | null;
|
|
10946
|
+
/** Custom display-unit divisor (used when `displayUnits` is `'custom'`). */
|
|
10947
|
+
displayUnitsValue?: number | null;
|
|
10948
|
+
/** Display-unit label text/layout/shape options. `null` removes the label. */
|
|
10949
|
+
displayUnitsLabel?: PptxChartAxisFormatting['displayUnitsLabel'];
|
|
10950
|
+
/** Show or hide (`c:delete`) the axis. */
|
|
10951
|
+
visible?: boolean;
|
|
10952
|
+
}
|
|
10859
10953
|
//#endregion
|
|
10860
|
-
//#region
|
|
10954
|
+
//#region pptx/core/builders/sdk/types.d.ts
|
|
10861
10955
|
/** Position and size in pixels. Converted to EMU internally when needed. */
|
|
10862
10956
|
interface ElementPosition {
|
|
10863
10957
|
x: number;
|
|
@@ -11027,6 +11121,20 @@ interface ChartInput {
|
|
|
11027
11121
|
grouping?: 'clustered' | 'stacked' | 'percentStacked';
|
|
11028
11122
|
/** Bar series direction (`c:barDir`): vertical columns (default) or horizontal bars. */
|
|
11029
11123
|
barDirection?: 'col' | 'bar';
|
|
11124
|
+
/** Bar cluster gap, % of bar width (`c:gapWidth`, 0..500; default 150). Bar, bar3D, ofPie. */
|
|
11125
|
+
gapWidth?: number;
|
|
11126
|
+
/** Bar overlap within a cluster, % (`c:overlap`, -100..100). 2-D bar only. */
|
|
11127
|
+
overlap?: number;
|
|
11128
|
+
/** First slice angle in degrees (`c:firstSliceAng`, 0..360). Pie, doughnut. */
|
|
11129
|
+
firstSliceAngle?: number;
|
|
11130
|
+
/** Doughnut hole size, % (`c:holeSize`, 1..90; default 50). Doughnut only. */
|
|
11131
|
+
holeSize?: number;
|
|
11132
|
+
/** Chart-area fill, border and rounded corners (`c:chartSpace/c:spPr`, `c:roundedCorners`). */
|
|
11133
|
+
chartArea?: ChartAreaFormatInput;
|
|
11134
|
+
/** Plot-area fill and border (`c:plotArea/c:spPr`). */
|
|
11135
|
+
plotArea?: ChartAreaFormatInput;
|
|
11136
|
+
/** Axis edits by axis type, as `setChartAxis` takes them (e.g. `{ valAx: { visible: false } }`). */
|
|
11137
|
+
axes?: Partial<Record<PptxChartAxisType, ChartAxisEdit>>;
|
|
11030
11138
|
}
|
|
11031
11139
|
interface ChartOptions extends Partial<ElementPosition> {}
|
|
11032
11140
|
interface ConnectorOptions extends Partial<ElementPosition> {
|
|
@@ -11123,7 +11231,7 @@ interface PresentationThemeInput {
|
|
|
11123
11231
|
};
|
|
11124
11232
|
}
|
|
11125
11233
|
//#endregion
|
|
11126
|
-
//#region
|
|
11234
|
+
//#region pptx/core/builders/sdk/SlideBuilder.d.ts
|
|
11127
11235
|
/**
|
|
11128
11236
|
* Fluent builder for a single slide.
|
|
11129
11237
|
*
|
|
@@ -11298,7 +11406,7 @@ declare class SlideBuilder {
|
|
|
11298
11406
|
build(): PptxSlide;
|
|
11299
11407
|
}
|
|
11300
11408
|
//#endregion
|
|
11301
|
-
//#region
|
|
11409
|
+
//#region pptx/core/builders/sdk/PresentationBuilder.d.ts
|
|
11302
11410
|
/** Result returned by {@link PresentationBuilder.create}. */
|
|
11303
11411
|
interface PresentationBuilderResult {
|
|
11304
11412
|
/** Initialized handler ready for editing and saving. */
|
|
@@ -11309,7 +11417,7 @@ interface PresentationBuilderResult {
|
|
|
11309
11417
|
createSlide: (layoutName?: string) => SlideBuilder;
|
|
11310
11418
|
}
|
|
11311
11419
|
//#endregion
|
|
11312
|
-
//#region
|
|
11420
|
+
//#region pptx/core/builders/fluent/PptxXmlBuilder.d.ts
|
|
11313
11421
|
/**
|
|
11314
11422
|
* Fluent interface for navigating and mutating a {@link PptxData} structure.
|
|
11315
11423
|
* Provides method-chaining access to slides, elements, and notes.
|
|
@@ -11470,7 +11578,7 @@ declare class PptxSlideNotesBuilder {
|
|
|
11470
11578
|
private syncSegmentsFromNotes;
|
|
11471
11579
|
}
|
|
11472
11580
|
//#endregion
|
|
11473
|
-
//#region
|
|
11581
|
+
//#region pptx/core/core/types.d.ts
|
|
11474
11582
|
interface PptxHandlerLoadOptions {
|
|
11475
11583
|
eagerDecodeImages?: boolean;
|
|
11476
11584
|
password?: string;
|
|
@@ -11704,7 +11812,7 @@ interface IPptxHandlerRuntime {
|
|
|
11704
11812
|
applyLayoutToSlide(slideIndex: number, layoutPath: string, slides: PptxSlide[]): Promise<PptxSlide>;
|
|
11705
11813
|
}
|
|
11706
11814
|
//#endregion
|
|
11707
|
-
//#region
|
|
11815
|
+
//#region pptx/core/core/PptxHandlerRuntimeFactory.d.ts
|
|
11708
11816
|
/**
|
|
11709
11817
|
* Abstract factory contract for creating {@link IPptxHandlerRuntime}
|
|
11710
11818
|
* instances.
|
|
@@ -11717,11 +11825,11 @@ interface IPptxHandlerRuntimeFactory {
|
|
|
11717
11825
|
createRuntime(): IPptxHandlerRuntime;
|
|
11718
11826
|
}
|
|
11719
11827
|
//#endregion
|
|
11720
|
-
//#region
|
|
11828
|
+
//#region crypto/types.d.ts
|
|
11721
11829
|
/**
|
|
11722
11830
|
* Type definitions for OOXML package encryption and decryption.
|
|
11723
11831
|
*
|
|
11724
|
-
* Moved from `src/pptx/core/utils/ooxml-crypto-types.ts` (see PROVENANCE.md).
|
|
11832
|
+
* Moved from `src/core/pptx/core/utils/ooxml-crypto-types.ts` (see PROVENANCE.md).
|
|
11725
11833
|
*/
|
|
11726
11834
|
/** Supported encryption algorithms. */
|
|
11727
11835
|
type EncryptionAlgorithm = 'AES128' | 'AES256';
|
|
@@ -11746,7 +11854,7 @@ interface EncryptionOptions {
|
|
|
11746
11854
|
encryptionScheme?: EncryptionScheme;
|
|
11747
11855
|
}
|
|
11748
11856
|
//#endregion
|
|
11749
|
-
//#region
|
|
11857
|
+
//#region pptx/core/PptxHandlerCore.d.ts
|
|
11750
11858
|
/**
|
|
11751
11859
|
* Dependency injection options for {@link PptxHandlerCore}.
|
|
11752
11860
|
*
|
|
@@ -12235,7 +12343,7 @@ declare class PptxHandlerCore {
|
|
|
12235
12343
|
exportSlides(slides: PptxSlide[], options: PptxExportOptions): Promise<Map<number, Uint8Array>>;
|
|
12236
12344
|
}
|
|
12237
12345
|
//#endregion
|
|
12238
|
-
//#region
|
|
12346
|
+
//#region pptx/core/PptxHandler.d.ts
|
|
12239
12347
|
/**
|
|
12240
12348
|
* Public facade for the PPTX editor handler.
|
|
12241
12349
|
*
|
|
@@ -12323,7 +12431,7 @@ declare class PptxHandler extends PptxHandlerCore {
|
|
|
12323
12431
|
loadFromJson(text: string, options?: PptxHandlerLoadOptions): Promise<PptxData>;
|
|
12324
12432
|
}
|
|
12325
12433
|
//#endregion
|
|
12326
|
-
//#region
|
|
12434
|
+
//#region pptx/converter/SvgExporter.d.ts
|
|
12327
12435
|
/**
|
|
12328
12436
|
* Options controlling SVG export behaviour.
|
|
12329
12437
|
*/
|
|
@@ -12338,9 +12446,9 @@ interface SvgExportOptions {
|
|
|
12338
12446
|
defaultFontSize?: number;
|
|
12339
12447
|
}
|
|
12340
12448
|
//#endregion
|
|
12341
|
-
//#region
|
|
12449
|
+
//#region ../../../../src/core/dist/pptx/chunks/index-D2y7ehZ5.d.ts
|
|
12342
12450
|
//#endregion
|
|
12343
|
-
//#region
|
|
12451
|
+
//#region pptx/core/utils/accessibility-checker.d.ts
|
|
12344
12452
|
type AccessibilityIssueType = 'missingAltText' | 'missingSlideTitle' | 'lowContrast' | 'complexTable' | 'duplicateTitle' | 'blankSlide';
|
|
12345
12453
|
type AccessibilityIssueSeverity = 'error' | 'warning' | 'tip';
|
|
12346
12454
|
interface AccessibilityIssue {
|
|
@@ -13005,33 +13113,6 @@ interface ElementAnimationState {
|
|
|
13005
13113
|
textStyle?: TextStyleAnimationDescriptor;
|
|
13006
13114
|
}
|
|
13007
13115
|
//#endregion
|
|
13008
|
-
//#region src/render/element-align.d.ts
|
|
13009
|
-
/**
|
|
13010
|
-
* Pure geometry helpers for the align / distribute editor operations.
|
|
13011
|
-
*
|
|
13012
|
-
* These functions operate over a list of slide elements (anything carrying the
|
|
13013
|
-
* `{ id, x, y, width, height }` bounding-box fields of {@link PptxElement}) and
|
|
13014
|
-
* return a `Map` keyed by element `id` describing the *new* position(s) for the
|
|
13015
|
-
* elements that need to move. Elements that already sit on the target edge (or
|
|
13016
|
-
* the two outer-most elements during distribution) are still included with
|
|
13017
|
-
* their unchanged coordinate so callers can apply the whole map uniformly; the
|
|
13018
|
-
* map only ever contains the axis that the operation touches.
|
|
13019
|
-
*
|
|
13020
|
-
* The reference box the selection is aligned against is either the union of
|
|
13021
|
-
* the selected boxes (PowerPoint's "Align Selected Objects") or the slide
|
|
13022
|
-
* itself ("Align to Slide"). PowerPoint defaults to the slide whenever a
|
|
13023
|
-
* single object is selected, which is why a one-element selection is not a
|
|
13024
|
-
* no-op once a `slideSize` is supplied: Align Center on a lone title is one
|
|
13025
|
-
* of the commonest arrange gestures there is.
|
|
13026
|
-
*
|
|
13027
|
-
* The helpers are deliberately framework-agnostic: no DOM, no Vue reactivity,
|
|
13028
|
-
* no side effects. The host wires them into the editor by feeding the current
|
|
13029
|
-
* selection in and applying the returned `Map` via its element-transform
|
|
13030
|
-
* operation (one batched history entry per call).
|
|
13031
|
-
*/
|
|
13032
|
-
/** Edge / centre that {@link alignElements} can snap a selection to. */
|
|
13033
|
-
type AlignEdge = 'left' | 'centerH' | 'right' | 'top' | 'middle' | 'bottom';
|
|
13034
|
-
//#endregion
|
|
13035
13116
|
//#region src/render/element-locks.d.ts
|
|
13036
13117
|
/** A single on-canvas gesture a lock may forbid. */
|
|
13037
13118
|
type ElementInteraction = 'select' | 'move' | 'resize' | 'rotate' | 'textEdit' | 'group' | 'changeAspect' | 'adjustHandle' | 'editPoints' | 'changeArrowheads' | 'changeShapeType' | 'crop' | 'drilldown';
|
|
@@ -16328,5 +16409,5 @@ interface TransitionOverlayParams {
|
|
|
16328
16409
|
*/
|
|
16329
16410
|
declare function playTransitionOverlay(params: TransitionOverlayParams): () => void;
|
|
16330
16411
|
//#endregion
|
|
16331
|
-
export {
|
|
16332
|
-
//# sourceMappingURL=transition-overlay-
|
|
16412
|
+
export { InlineTextSelection as $, ViewerThemeColors as $n, PptxTableCellStyle as $r, StrokeToInkElementOpts as $t, DEFAULT_MORPH_DURATION_MS as A, forgetSessionDeck as An, PptxCommentMention as Ar, ResolvedDirection as At, ExternalCollaborationAwareness as B, parsePresentationSessionId as Bn, PptxHeaderFooter as Br, RunProgramNotice as Bt, CompatibilityWarningToast as C, ViewportFitPadding as Cn, PptxAnimationTimelineAnchor as Cr, PresentationSnapshot as Ct, CropElementUpdate as D, canInteractWithElement as Dn, PptxChartData as Dr, ReadOnlyRecommendation as Dt, ContextMenuCustomization as E, buildInlineTextCommitPatch as En, PptxAppProperties as Er, RIBBON_TAB_IDS as Et, EditorKeyActionName as F, isLegacyBinaryPresentation as Fn, PptxData as Fr, RibbonGalleryApplyResult as Ft, GradientState as G, resolveOrientation as Gn, PptxNotesMaster as Gr, SessionDeck as Gt, ExternalCollaborationSnapshot as H, rememberSessionDeck as Hn, PptxLayoutPreview as Hr, SLIDE_TRANSITION_KEYFRAMES_CSS as Ht, ElementAnimationState as I, isSupportedPresentationFile as In, PptxElement as Ir, RibbonGalleryContext as It, HostElementMenuContext as J, resolveWheelSpokeCount as Jn, PptxSlide as Jr, ShortcutChord as Jt, Guide as K, resolveSlideTransition as Kn, PptxPresentationProperties as Kr, ShapePresetType as Kt, ElementClipboardPayload as L, loadPresentationDeck as Ln, PptxElementAnimation as Lr, RibbonGroupId as Lt, EASE as M, getP14TransitionAnimations as Mn, PptxCoreProperties as Mr, RibbonContextualTabId as Mt, EDITOR_SHORTCUT_ACTION_IDS as N, getSessionTabId as Nn, PptxCustomProperty as Nr, RibbonControlId as Nt, CropSession as O, createImageElementFromFile as On, PptxComment as Or, RemoteCursor as Ot, ELEMENT_CONTEXT_MENU_COMMAND_IDS as P, getSlideTransitionAnimations as Pn, PptxCustomShow as Pr, RibbonCustomization as Pt, InlineTextEditSnapshot as Q, ViewerTheme as Qn, PptxSmartArtNodeStyle as Qr, SlideTransitionAnimations as Qt, ElementUpdate as R, loadSessionDeck as Rn, PptxEmbeddedFont as Rr, RibbonTransitionDraft as Rt, CollaborationTransport as S, ViewportFitOptions as Sn, PptxAnimationSequence as Sr, PresentationPointerTool as St, ContextMenuCommandId as T, ZoomNavigationTarget as Tn, PptxAnimationTrigger as Tr, RANDOM_ELIGIBLE_TYPES as Tt, FieldSubstitutionContext as U, resolveDirection as Un, PptxModernCommentAuthor as Ur, SanitizedPresence as Ut, ExternalCollaborationSession as V, presentationBaseName as Vn, PptxImageEffects as Vr, SLIDE_TRANSITION_KEYFRAMES as Vt, FreeformToolKind as W, resolveDirection8 as Wn, PptxModifyVerifier as Wr, SavedPresentationFormat as Wt, INSTANT as X, savedPresentationFileName as Xn, PptxSlideTransition as Xr, SlideSizeRescaleMode as Xt, HostMenuCommand as Y, restoreSessionDeck as Yn, PptxSlideMaster as Yr, SlideSizeEmu as Yt, InlineListReadResult as Z, ThemeCatalogEntry as Zn, PptxSmartArtData as Zr, SlideTemplateId as Zt, CollabLoadOrigin as _, PptxThemeColorRef as _i, ViewerMode as _n, ParsedTableStyleMap as _r, PPTX_OPEN_ACCEPT as _t, AutosaveRecord as a, PptxThemeFontScheme as ai, ToolbarTabId as an, vermilionLightTheme as ar, ModifyPasswordCheckResult as at, CollaborationRole as b, ViewerPanelId as bn, PptxAnimationPreset as br, PowerPointViewerAPI as bt, BackstageCardId as c, PptxViewProperties as ci, VIEWER_FEATURE_IDS as cn, PptxHandler as cr, OPTIONS_SETTING_IDS as ct, CANVAS_CONTEXT_MENU_COMMAND_IDS as d, SmartArtLayout as di, ViewerCustomizationApi as dn, SvgExportOptions as dr, OptionsSectionId as dt, PptxTableData as ei, TOOLBAR_BUTTON_IDS as en, defaultCssVars as er, InsertChartKind as et, CINEMATIC_TRANSITION_KEYFRAMES as f, SmartArtLayoutType as fi, ViewerCustomizationController as fn, ElementAction as fr, OptionsSettingId as ft, ChartPartRef as g, XmlObject as gi, ViewerFontSource as gn, OlePptxElement as gr, P14_TRANSITION_KEYFRAMES_ALL as gt, ChangeCaseMode as h, TextStyle as hi, ViewerFeatureId as hn, OleObjectType as hr, P14_TRANSITION_KEYFRAMES_2 as ht, AnimationGroup as i, PptxThemeColorScheme as ii, ToolbarButtonId as in, vermilionDarkTheme as ir, MobileSheetKey as it, DEFAULT_TRANSITION_DURATION_MS as j, getCinematicTransitionAnimations as jn, PptxCompatibilityWarning as jr, ResolvedDirection8 as jt, CssStyleMap as k, describeCollaborationShellState as kn, PptxCommentAuthor as kr, ResolvedCustomization as kt, BackstageCustomization as l, ShapeStyle as li, VIEWER_PANEL_IDS as ln, PptxHandlerSaveOptions as lr, OptionsCustomization as lt, CanvasSize as m, TextSegment as mi, ViewerExportFormatId as mn, MediaPptxElement as mr, P14_TRANSITION_KEYFRAMES as mt, playTransitionOverlay as n, PptxTextStyleLevels as ni, TextAdvancedChanges as nn, defaultThemeColors as nr, MasterViewCrudAction as nt, BACKSTAGE_CARD_IDS as o, PptxThemeOption as oi, VIEWER_DIALOG_IDS as on, AccessibilityIssue as or, OPTIONS_PAGE_IDS as ot, CanvasContextMenuCommandId as p, TablePptxElement as pi, ViewerDialogId as pn, MasterViewTab as pr, OptionsSettingValues as pt, HostCanvasMenuContext as q, resolveTransitionDurationMs as qn, PptxSection as qr, ShareDefaults as qt, AccountAuthConfig as r, PptxTheme as ri, ToolbarActionId as rn, themeToCssVars as rr, MasterViewCrudActionId as rt, BACKSTAGE_PAGE_IDS as s, PptxTransitionType as si, VIEWER_EXPORT_FORMAT_IDS as sn, MergeShapeOperation as sr, OPTIONS_SECTION_IDS as st, TransitionOverlayParams as t, PptxTagCollection as ti, TRANSITION_SPEED_DURATION_MS as tn, defaultRadius as tr, KeyboardCustomization as tt, BackstagePage as u, SmartArtColorScheme as ui, ViewerCustomization as un, PptxSaveFormat as ur, OptionsPageId as ut, CollaborationConfig as v, ViewerOptionPrimitive as vn, PptxAfterAnimationAction as vr, PRESENTATION_OPEN_EXTENSIONS as vt, ConnectionStatus as w, WHEEL_SPOKE_COUNTS as wn, PptxAnimationTimingCurve as wr, PrintSettings as wt, CollaborationShellState as x, ViewerQuickAccessOptions as xn, PptxAnimationRepeatMode as xr, PresentationBlackout as xt, CollaborationLivePatcher as y, ViewerOptionsStore as yn, PptxAnimationDirection as yr, PasteSpecialFormat as yt, ElementUpdateOptions as z, overlayInlineTextSnapshot as zn, PptxHandoutMaster as zr, RulerUnit as zt };
|
|
16413
|
+
//# sourceMappingURL=transition-overlay-D7asQvRY.d.ts.map
|