pptx-react-viewer 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1099 -384
- package/dist/index.mjs +1099 -385
- package/dist/pptx-viewer.css +1 -1
- package/dist/viewer/index.js +1117 -390
- package/dist/viewer/index.mjs +1117 -391
- package/node_modules/emf-converter/dist/index.d.mts +2 -2
- package/node_modules/emf-converter/dist/index.d.ts +2 -2
- package/node_modules/emf-converter/dist/index.js +91 -33
- package/node_modules/emf-converter/dist/index.mjs +91 -33
- package/node_modules/emf-converter/package.json +2 -2
- package/node_modules/mtx-decompressor/dist/index.js +39 -9
- package/node_modules/mtx-decompressor/dist/index.mjs +39 -9
- package/node_modules/mtx-decompressor/package.json +2 -2
- package/node_modules/pptx-viewer-core/dist/{SvgExporter-BMjoxMDV.d.ts → SvgExporter-0TxiiorD.d.ts} +1 -1
- package/node_modules/pptx-viewer-core/dist/{SvgExporter-z6AbXRQg.d.mts → SvgExporter-BQ4KbRO9.d.mts} +1 -1
- package/node_modules/pptx-viewer-core/dist/cli/index.d.mts +2 -2
- package/node_modules/pptx-viewer-core/dist/cli/index.d.ts +2 -2
- package/node_modules/pptx-viewer-core/dist/cli/index.js +0 -0
- package/node_modules/pptx-viewer-core/dist/cli/index.mjs +0 -0
- package/node_modules/pptx-viewer-core/dist/converter/index.d.mts +3 -3
- package/node_modules/pptx-viewer-core/dist/converter/index.d.ts +3 -3
- package/node_modules/pptx-viewer-core/dist/converter/index.js +0 -0
- package/node_modules/pptx-viewer-core/dist/converter/index.mjs +0 -0
- package/node_modules/pptx-viewer-core/dist/index.d.mts +786 -54
- package/node_modules/pptx-viewer-core/dist/index.d.ts +786 -54
- package/node_modules/pptx-viewer-core/dist/index.js +3589 -630
- package/node_modules/pptx-viewer-core/dist/index.mjs +3575 -630
- package/node_modules/pptx-viewer-core/dist/{presentation-CchuDGfU.d.mts → presentation-ArhfImJ5.d.mts} +225 -8
- package/node_modules/pptx-viewer-core/dist/{presentation-CchuDGfU.d.ts → presentation-ArhfImJ5.d.ts} +225 -8
- package/node_modules/pptx-viewer-core/dist/{signature-inspection-status-BcJSdOvb.d.mts → signature-inspection-status-BCUpfCQh.d.mts} +13 -2
- package/node_modules/pptx-viewer-core/dist/{signature-inspection-status-BcJSdOvb.d.ts → signature-inspection-status-BCUpfCQh.d.ts} +13 -2
- package/node_modules/pptx-viewer-core/dist/signature-node/index.d.mts +2 -2
- package/node_modules/pptx-viewer-core/dist/signature-node/index.d.ts +2 -2
- package/node_modules/pptx-viewer-core/dist/signature-node/index.js +17 -3
- package/node_modules/pptx-viewer-core/dist/signature-node/index.mjs +16 -4
- package/node_modules/pptx-viewer-core/dist/{text-operations-CeukUztU.d.mts → text-operations-CLj-sJyk.d.mts} +1 -1
- package/node_modules/pptx-viewer-core/dist/{text-operations-e7JxgI5l.d.ts → text-operations-rhJV-A_W.d.ts} +1 -1
- package/node_modules/pptx-viewer-core/package.json +5 -5
- package/package.json +22 -20
|
@@ -426,6 +426,13 @@ interface TextStyle {
|
|
|
426
426
|
/** Whether the hyperlink target is an internal slide jump (targetSlideIndex style). */
|
|
427
427
|
hyperlinkTargetSlideIndex?: number;
|
|
428
428
|
color?: string;
|
|
429
|
+
/**
|
|
430
|
+
* Raw XML colour-choice node preserved from `a:rPr/a:solidFill` for
|
|
431
|
+
* round-trip serialisation. Captures `a:schemeClr` / `a:sysClr` /
|
|
432
|
+
* `a:prstClr` / `a:srgbClr` plus colour transforms. On save we re-emit
|
|
433
|
+
* verbatim when the resolved {@link color} still matches this node.
|
|
434
|
+
*/
|
|
435
|
+
colorXml?: XmlObject;
|
|
429
436
|
align?: 'left' | 'center' | 'right' | 'justify' | 'justLow' | 'dist' | 'thaiDist';
|
|
430
437
|
vAlign?: 'top' | 'middle' | 'bottom';
|
|
431
438
|
/** Right-to-left paragraph/run direction (`a:pPr/@rtl`, `a:rPr/@rtl`). */
|
|
@@ -524,6 +531,36 @@ interface TextStyle {
|
|
|
524
531
|
smartTagClean?: boolean;
|
|
525
532
|
/** Bookmark link target (`a:rPr/@bmk`). */
|
|
526
533
|
bookmark?: string;
|
|
534
|
+
/** Alternative language for the run (`a:rPr/@altLang`). Populated for runs
|
|
535
|
+
* authored in mixed-script documents (e.g. Asian/Latin combined). */
|
|
536
|
+
altLanguage?: string;
|
|
537
|
+
/** SmartTag (Office grammar tag) GUID id (`a:rPr/@smtId`). Round-tripped
|
|
538
|
+
* verbatim — the engine doesn't interpret it. */
|
|
539
|
+
smartTagId?: number;
|
|
540
|
+
/** Latin font PANOSE classification string from `a:rPr > a:latin/@panose`. */
|
|
541
|
+
latinFontPanose?: string;
|
|
542
|
+
/** Latin font pitch + family flag from `a:rPr > a:latin/@pitchFamily`. */
|
|
543
|
+
latinFontPitchFamily?: number;
|
|
544
|
+
/** Latin font character set id from `a:rPr > a:latin/@charset`. */
|
|
545
|
+
latinFontCharset?: number;
|
|
546
|
+
/** East-Asian font PANOSE from `a:rPr > a:ea/@panose`. */
|
|
547
|
+
eastAsiaFontPanose?: string;
|
|
548
|
+
/** East-Asian font pitch + family flag from `a:rPr > a:ea/@pitchFamily`. */
|
|
549
|
+
eastAsiaFontPitchFamily?: number;
|
|
550
|
+
/** East-Asian font character set id from `a:rPr > a:ea/@charset`. */
|
|
551
|
+
eastAsiaFontCharset?: number;
|
|
552
|
+
/** Complex-script font PANOSE from `a:rPr > a:cs/@panose`. */
|
|
553
|
+
complexScriptFontPanose?: string;
|
|
554
|
+
/** Complex-script font pitch + family flag from `a:rPr > a:cs/@pitchFamily`. */
|
|
555
|
+
complexScriptFontPitchFamily?: number;
|
|
556
|
+
/** Complex-script font character set id from `a:rPr > a:cs/@charset`. */
|
|
557
|
+
complexScriptFontCharset?: number;
|
|
558
|
+
/** Symbol-font PANOSE from `a:rPr > a:sym/@panose`. */
|
|
559
|
+
symbolFontPanose?: string;
|
|
560
|
+
/** Symbol-font pitch + family flag from `a:rPr > a:sym/@pitchFamily`. */
|
|
561
|
+
symbolFontPitchFamily?: number;
|
|
562
|
+
/** Symbol-font character set id from `a:rPr > a:sym/@charset`. */
|
|
563
|
+
symbolFontCharset?: number;
|
|
527
564
|
/** Paragraph list type for toggling bullet / numbered lists via the toolbar.
|
|
528
565
|
* - `'bullet'` — character bullet (default "•")
|
|
529
566
|
* - `'numbered'` — auto-numbered list (arabicPeriod)
|
|
@@ -671,6 +708,15 @@ interface BulletInfo {
|
|
|
671
708
|
imageRelId?: string;
|
|
672
709
|
/** Picture bullet: data URL of the embedded image. */
|
|
673
710
|
imageDataUrl?: string;
|
|
711
|
+
/** When true, `<a:buFontTx/>` was specified — inherit the bullet font from
|
|
712
|
+
* the run text, not from a buFont declaration. */
|
|
713
|
+
fontInherit?: boolean;
|
|
714
|
+
/** When true, `<a:buClrTx/>` was specified — inherit the bullet colour from
|
|
715
|
+
* the run text. */
|
|
716
|
+
colorInherit?: boolean;
|
|
717
|
+
/** When true, `<a:buSzTx/>` was specified — inherit the bullet size from
|
|
718
|
+
* the run text font size. */
|
|
719
|
+
sizeInherit?: boolean;
|
|
674
720
|
}
|
|
675
721
|
/**
|
|
676
722
|
* A single text run within a paragraph.
|
|
@@ -708,6 +754,22 @@ interface TextSegment {
|
|
|
708
754
|
isParagraphBreak?: boolean;
|
|
709
755
|
/** Structured bullet info for the first segment of a paragraph. */
|
|
710
756
|
bulletInfo?: BulletInfo;
|
|
757
|
+
/**
|
|
758
|
+
* Outline level for the paragraph this segment starts (`a:p/@lvl`).
|
|
759
|
+
*
|
|
760
|
+
* Only meaningful on the first segment of a paragraph (matching the
|
|
761
|
+
* convention used for {@link bulletInfo}). Stored as the raw OOXML
|
|
762
|
+
* value (0 = top level, 1-8 = nested) and serialised back when non-zero.
|
|
763
|
+
*/
|
|
764
|
+
paragraphLevel?: number;
|
|
765
|
+
/**
|
|
766
|
+
* Raw `a:endParaRPr` XML node for the paragraph this segment starts.
|
|
767
|
+
*
|
|
768
|
+
* Captured verbatim on parse so attributes and child colours/fonts that
|
|
769
|
+
* the typed model doesn't represent survive a round-trip. Only meaningful
|
|
770
|
+
* on the first segment of a paragraph.
|
|
771
|
+
*/
|
|
772
|
+
endParaRunProperties?: Record<string, unknown>;
|
|
711
773
|
/**
|
|
712
774
|
* Phonetic annotation text from `a:ruby > a:rt` (e.g. furigana, pinyin).
|
|
713
775
|
* When present, the renderer should wrap the base text with an HTML `<ruby>` tag.
|
|
@@ -787,6 +849,15 @@ interface TextSegment {
|
|
|
787
849
|
*/
|
|
788
850
|
interface ShapeStyle {
|
|
789
851
|
fillColor?: string;
|
|
852
|
+
/**
|
|
853
|
+
* Raw XML colour-choice node preserved from `a:solidFill` for round-trip
|
|
854
|
+
* serialisation. Captures `a:schemeClr` / `a:sysClr` / `a:prstClr` /
|
|
855
|
+
* `a:srgbClr` plus colour transforms (`lumMod`, `lumOff`, `tint`,
|
|
856
|
+
* `shade`, `satMod`, `alpha`, …). On save we re-emit verbatim when the
|
|
857
|
+
* resolved {@link fillColor} still matches this node, otherwise we fall
|
|
858
|
+
* back to canonical `<a:srgbClr>`.
|
|
859
|
+
*/
|
|
860
|
+
fillColorXml?: XmlObject;
|
|
790
861
|
fillGradient?: string;
|
|
791
862
|
fillMode?: 'solid' | 'gradient' | 'pattern' | 'none' | 'image' | 'theme' | 'group';
|
|
792
863
|
fillPatternPreset?: string;
|
|
@@ -825,13 +896,30 @@ interface ShapeStyle {
|
|
|
825
896
|
r: number;
|
|
826
897
|
b: number;
|
|
827
898
|
};
|
|
899
|
+
/** Gradient tile flip mode (`a:gradFill/@flip`).
|
|
900
|
+
* `none` = no tiling flip (default), `x|y|xy` = mirror in the named axis. */
|
|
901
|
+
fillGradientFlip?: 'none' | 'x' | 'y' | 'xy';
|
|
902
|
+
/** Whether the gradient rotates with the shape (`a:gradFill/@rotWithShape`).
|
|
903
|
+
* Defaults to true per the schema; preserved for round-trip when the source
|
|
904
|
+
* authored the attribute explicitly. */
|
|
905
|
+
fillGradientRotWithShape?: boolean;
|
|
906
|
+
/** Whether the linear gradient is scaled to the shape (`a:lin/@scaled`).
|
|
907
|
+
* Defaults to true per the schema; preserved for round-trip. */
|
|
908
|
+
fillGradientScaled?: boolean;
|
|
828
909
|
fillOpacity?: number;
|
|
829
910
|
strokeColor?: string;
|
|
911
|
+
/**
|
|
912
|
+
* Raw XML colour-choice node preserved from `a:ln/a:solidFill` for
|
|
913
|
+
* round-trip serialisation. See {@link fillColorXml} for the rationale.
|
|
914
|
+
*/
|
|
915
|
+
strokeColorXml?: XmlObject;
|
|
830
916
|
strokeWidth?: number;
|
|
831
917
|
strokeOpacity?: number;
|
|
832
918
|
strokeDash?: StrokeDashType;
|
|
833
919
|
/** Line join style (`a:ln/@join`): round, bevel, or miter. */
|
|
834
920
|
lineJoin?: 'round' | 'bevel' | 'miter';
|
|
921
|
+
/** Miter limit (`a:miter/@lim`) in EMU-percent units (default 800000 = 8.0). Only meaningful when lineJoin is 'miter'. */
|
|
922
|
+
miterLimit?: number;
|
|
835
923
|
/** Line cap style (`a:ln/@cap`): flat, rnd, or sq. */
|
|
836
924
|
lineCap?: 'flat' | 'rnd' | 'sq';
|
|
837
925
|
/** Compound line type (`a:ln/@cmpd`). */
|
|
@@ -849,6 +937,34 @@ interface ShapeStyle {
|
|
|
849
937
|
shadowDistance?: number;
|
|
850
938
|
/** Whether shadow rotates with shape. Parsed from `@_rotWithShape`. */
|
|
851
939
|
shadowRotateWithShape?: boolean;
|
|
940
|
+
/** Outer-shadow horizontal scaling (`a:outerShdw/@sx`) in 1000ths of a percent (default 100000 = 100%). */
|
|
941
|
+
shadowScaleX?: number;
|
|
942
|
+
/** Outer-shadow vertical scaling (`a:outerShdw/@sy`). */
|
|
943
|
+
shadowScaleY?: number;
|
|
944
|
+
/** Outer-shadow horizontal skew (`a:outerShdw/@kx`) in 60000ths of a degree. */
|
|
945
|
+
shadowSkewX?: number;
|
|
946
|
+
/** Outer-shadow vertical skew (`a:outerShdw/@ky`). */
|
|
947
|
+
shadowSkewY?: number;
|
|
948
|
+
/** Outer-shadow alignment (`a:outerShdw/@algn`). */
|
|
949
|
+
shadowAlignment?: 'tl' | 't' | 'tr' | 'l' | 'ctr' | 'r' | 'bl' | 'b' | 'br';
|
|
950
|
+
/** Inner-shadow rotateWithShape (`a:innerShdw/@rotWithShape`). */
|
|
951
|
+
innerShadowRotateWithShape?: boolean;
|
|
952
|
+
/** Reflection fade direction (`a:reflection/@fadeDir`) in 60000ths of a degree. */
|
|
953
|
+
reflectionFadeDirection?: number;
|
|
954
|
+
/** Reflection horizontal scaling (`a:reflection/@sx`). */
|
|
955
|
+
reflectionScaleX?: number;
|
|
956
|
+
/** Reflection vertical scaling (`a:reflection/@sy`). */
|
|
957
|
+
reflectionScaleY?: number;
|
|
958
|
+
/** Reflection horizontal skew (`a:reflection/@kx`). */
|
|
959
|
+
reflectionSkewX?: number;
|
|
960
|
+
/** Reflection vertical skew (`a:reflection/@ky`). */
|
|
961
|
+
reflectionSkewY?: number;
|
|
962
|
+
/** Reflection alignment (`a:reflection/@algn`). */
|
|
963
|
+
reflectionAlignment?: 'tl' | 't' | 'tr' | 'l' | 'ctr' | 'r' | 'bl' | 'b' | 'br';
|
|
964
|
+
/** Reflection rotateWithShape (`a:reflection/@rotWithShape`). */
|
|
965
|
+
reflectionRotateWithShape?: boolean;
|
|
966
|
+
/** Reflection start position (`a:reflection/@stPos`) as 0-1 fraction. */
|
|
967
|
+
reflectionStartPosition?: number;
|
|
852
968
|
/** Multiple shadow layers (for advanced effects). */
|
|
853
969
|
shadows?: ShadowEffect[];
|
|
854
970
|
glowColor?: string;
|
|
@@ -951,6 +1067,22 @@ interface ShapeStyle {
|
|
|
951
1067
|
};
|
|
952
1068
|
/** Fill overlay blend mode from effectDag `a:fillOverlay/@blend`. */
|
|
953
1069
|
dagFillOverlayBlend?: 'over' | 'mult' | 'screen' | 'darken' | 'lighten';
|
|
1070
|
+
/** `<a:lnRef @idx>` — 1-based index into the theme's lnStyleLst. */
|
|
1071
|
+
lnRefIdx?: number;
|
|
1072
|
+
/** Raw XML colour child of `<a:lnRef>` (e.g. `<a:schemeClr>` with transforms). */
|
|
1073
|
+
lnRefColorXml?: XmlObject;
|
|
1074
|
+
/** `<a:fillRef @idx>` — 1-based index into fillStyleLst (1-3) or bgFillStyleLst (1001-1003). */
|
|
1075
|
+
fillRefIdx?: number;
|
|
1076
|
+
/** Raw XML colour child of `<a:fillRef>`. */
|
|
1077
|
+
fillRefColorXml?: XmlObject;
|
|
1078
|
+
/** `<a:effectRef @idx>` — 1-based index into the theme's effectStyleLst. */
|
|
1079
|
+
effectRefIdx?: number;
|
|
1080
|
+
/** Raw XML colour child of `<a:effectRef>`. */
|
|
1081
|
+
effectRefColorXml?: XmlObject;
|
|
1082
|
+
/** `<a:fontRef @idx>` — typically `major`, `minor`, or `none`. */
|
|
1083
|
+
fontRefIdx?: string;
|
|
1084
|
+
/** Raw XML colour child of `<a:fontRef>`. */
|
|
1085
|
+
fontRefColorXml?: XmlObject;
|
|
954
1086
|
}
|
|
955
1087
|
|
|
956
1088
|
/**
|
|
@@ -1187,6 +1319,27 @@ interface CustomGeometryPath {
|
|
|
1187
1319
|
height: number;
|
|
1188
1320
|
/** Ordered list of drawing segments. */
|
|
1189
1321
|
segments: CustomGeometrySegment[];
|
|
1322
|
+
/** Path fill mode (`a:path/@fill`): norm, lighten, lightenLess, darken, darkenLess, none. */
|
|
1323
|
+
fillMode?: 'norm' | 'lighten' | 'lightenLess' | 'darken' | 'darkenLess' | 'none';
|
|
1324
|
+
/** Whether the path is stroked (`a:path/@stroke`). */
|
|
1325
|
+
stroke?: boolean;
|
|
1326
|
+
/** 3D extrusion compatibility (`a:path/@extrusionOk`). */
|
|
1327
|
+
extrusionOk?: boolean;
|
|
1328
|
+
}
|
|
1329
|
+
/**
|
|
1330
|
+
* Auxiliary raw XML preserved from `a:custGeom` for round-trip serialization.
|
|
1331
|
+
* These are stored opaquely so adjustment guides, handles, connection sites,
|
|
1332
|
+
* and the text rectangle are not lost when a custGeom is edited and saved.
|
|
1333
|
+
*/
|
|
1334
|
+
interface CustomGeometryRawData {
|
|
1335
|
+
/** Raw `a:gdLst` XML content (guide list). */
|
|
1336
|
+
gdLstXml?: unknown;
|
|
1337
|
+
/** Raw `a:ahLst` XML content (adjustment handles). */
|
|
1338
|
+
ahLstXml?: unknown;
|
|
1339
|
+
/** Raw `a:cxnLst` XML content (connection sites). */
|
|
1340
|
+
cxnLstXml?: unknown;
|
|
1341
|
+
/** Raw `a:rect` XML content (text rectangle). */
|
|
1342
|
+
rectXml?: unknown;
|
|
1190
1343
|
}
|
|
1191
1344
|
/**
|
|
1192
1345
|
* Custom (non-preset) geometry path — only on shapes and pictures.
|
|
@@ -1213,6 +1366,8 @@ interface PptxCustomPathProperties {
|
|
|
1213
1366
|
pathHeight?: number;
|
|
1214
1367
|
/** Structured custom geometry paths for editing (maps to a:custGeom/a:pathLst). */
|
|
1215
1368
|
customGeometryPaths?: CustomGeometryPath[];
|
|
1369
|
+
/** Raw a:gdLst/a:ahLst/a:cxnLst/a:rect XML preserved for round-trip serialization. */
|
|
1370
|
+
customGeometryRawData?: CustomGeometryRawData;
|
|
1216
1371
|
}
|
|
1217
1372
|
|
|
1218
1373
|
/**
|
|
@@ -1416,6 +1571,12 @@ interface PptxChartAxisFormatting {
|
|
|
1416
1571
|
logScale?: boolean;
|
|
1417
1572
|
/** Logarithmic base value (c:scaling/c:logBase/@val), typically 10 or e. */
|
|
1418
1573
|
logBase?: number;
|
|
1574
|
+
/** Major-unit interval between primary tick marks (c:majorUnit/@val). */
|
|
1575
|
+
majorUnit?: number;
|
|
1576
|
+
/** Minor-unit interval between secondary tick marks (c:minorUnit/@val). */
|
|
1577
|
+
minorUnit?: number;
|
|
1578
|
+
/** Tick-label position (c:tickLblPos/@val): 'high', 'low', 'nextTo', or 'none'. */
|
|
1579
|
+
tickLblPos?: 'high' | 'low' | 'nextTo' | 'none';
|
|
1419
1580
|
}
|
|
1420
1581
|
/** 3D wall or floor element formatting. */
|
|
1421
1582
|
interface PptxChart3DSurface {
|
|
@@ -1878,7 +2039,20 @@ interface PptxTableCellStyle {
|
|
|
1878
2039
|
italic?: boolean;
|
|
1879
2040
|
underline?: boolean;
|
|
1880
2041
|
color?: string;
|
|
2042
|
+
/**
|
|
2043
|
+
* Raw XML colour-choice node preserved from `a:tc/a:txBody/.../a:rPr/a:solidFill`
|
|
2044
|
+
* for round-trip serialisation. Currently unused by the cell-level writer
|
|
2045
|
+
* (cell text colour falls through `writeCellTextFormatting`), reserved for
|
|
2046
|
+
* future expansion alongside the run-properties round-trip path.
|
|
2047
|
+
*/
|
|
2048
|
+
colorXml?: XmlObject;
|
|
1881
2049
|
backgroundColor?: string;
|
|
2050
|
+
/**
|
|
2051
|
+
* Raw XML colour-choice node preserved from cell `a:tcPr/a:solidFill` for
|
|
2052
|
+
* round-trip serialisation. Re-emitted verbatim when the resolved
|
|
2053
|
+
* {@link backgroundColor} still matches the original colour.
|
|
2054
|
+
*/
|
|
2055
|
+
backgroundColorXml?: XmlObject;
|
|
1882
2056
|
borderColor?: string;
|
|
1883
2057
|
/** Top border width in px. */
|
|
1884
2058
|
borderTopWidth?: number;
|
|
@@ -3559,6 +3733,14 @@ interface PptxThemeFontGroup {
|
|
|
3559
3733
|
latin?: string;
|
|
3560
3734
|
eastAsia?: string;
|
|
3561
3735
|
complexScript?: string;
|
|
3736
|
+
/**
|
|
3737
|
+
* Per-script typeface overrides (`<a:font script="Hans|Hant|Arab|Hebr|
|
|
3738
|
+
* Thai|Beng|Gujr|Khmr|Knda|…"/>` per ECMA-376 §20.1.4.1.16). Keyed by
|
|
3739
|
+
* the four-letter ISO 15924 script tag from the `script` attribute.
|
|
3740
|
+
*
|
|
3741
|
+
* Phase 4 Stream A / M4.
|
|
3742
|
+
*/
|
|
3743
|
+
byScript?: Record<string, string>;
|
|
3562
3744
|
}
|
|
3563
3745
|
/**
|
|
3564
3746
|
* Theme font scheme — major (headings) and minor (body) font families.
|
|
@@ -3758,6 +3940,22 @@ interface PptxTheme {
|
|
|
3758
3940
|
/** Format scheme — fill, line, effect and background fill style matrices. */
|
|
3759
3941
|
formatScheme?: PptxThemeFormatScheme;
|
|
3760
3942
|
}
|
|
3943
|
+
/**
|
|
3944
|
+
* Snapshot of `<a:objectDefaults>` (ECMA-376 §20.1.6.7). Each child
|
|
3945
|
+
* (`spDef`, `lnDef`, `txDef`) carries `<a:spPr>`, `<a:bodyPr>`,
|
|
3946
|
+
* `<a:lstStyle>`, `<a:style>`. We capture them as raw parser objects so
|
|
3947
|
+
* round-trip is byte-stable regardless of schema-walking depth.
|
|
3948
|
+
*
|
|
3949
|
+
* Phase 4 Stream A / M5.
|
|
3950
|
+
*/
|
|
3951
|
+
interface PptxThemeObjectDefaults {
|
|
3952
|
+
/** Raw `<a:spDef>` parser object, or `undefined` if absent. */
|
|
3953
|
+
spDef?: unknown;
|
|
3954
|
+
/** Raw `<a:lnDef>` parser object, or `undefined` if absent. */
|
|
3955
|
+
lnDef?: unknown;
|
|
3956
|
+
/** Raw `<a:txDef>` parser object, or `undefined` if absent. */
|
|
3957
|
+
txDef?: unknown;
|
|
3958
|
+
}
|
|
3761
3959
|
|
|
3762
3960
|
/**
|
|
3763
3961
|
* Master and layout types: notes master, handout master, slide master,
|
|
@@ -3793,6 +3991,8 @@ interface PptxNotesMaster {
|
|
|
3793
3991
|
}>;
|
|
3794
3992
|
/** Editable elements on the notes master (header, footer, date, page number, slide image, notes body). */
|
|
3795
3993
|
elements?: PptxElement[];
|
|
3994
|
+
/** Header/footer flags from `<p:hf>` on the notes master (P-H3). */
|
|
3995
|
+
headerFooter?: PptxHeaderFooterFlags;
|
|
3796
3996
|
}
|
|
3797
3997
|
/**
|
|
3798
3998
|
* Parsed handout master from `ppt/handoutMasters/handoutMaster1.xml`.
|
|
@@ -3822,6 +4022,8 @@ interface PptxHandoutMaster {
|
|
|
3822
4022
|
elements?: PptxElement[];
|
|
3823
4023
|
/** Number of slides per page for handout print layout (1, 2, 3, 4, 6, or 9). */
|
|
3824
4024
|
slidesPerPage?: number;
|
|
4025
|
+
/** Header/footer flags from `<p:hf>` on the handout master (P-H3). */
|
|
4026
|
+
headerFooter?: PptxHeaderFooterFlags;
|
|
3825
4027
|
}
|
|
3826
4028
|
/**
|
|
3827
4029
|
* Active tab within the master view sidebar.
|
|
@@ -3871,6 +4073,8 @@ interface PptxSlideMaster {
|
|
|
3871
4073
|
layouts?: PptxSlideLayout[];
|
|
3872
4074
|
/** Text styles from `p:txStyles` — title, body, and other text defaults. */
|
|
3873
4075
|
txStyles?: PptxMasterTextStyles;
|
|
4076
|
+
/** Header/footer flags from `<p:hf>` on this master (P-H3). */
|
|
4077
|
+
headerFooter?: PptxHeaderFooterFlags;
|
|
3874
4078
|
}
|
|
3875
4079
|
/**
|
|
3876
4080
|
* Per-level paragraph properties for a text style category.
|
|
@@ -3889,6 +4093,22 @@ interface PptxMasterTextStyles {
|
|
|
3889
4093
|
/** Other text style (`p:otherStyle`). */
|
|
3890
4094
|
otherStyle?: PptxTextStyleLevels;
|
|
3891
4095
|
}
|
|
4096
|
+
/**
|
|
4097
|
+
* Per-part header/footer flags from `<p:hf>` (CT_HeaderFooter, ECMA-376
|
|
4098
|
+
* §19.3.1.21). Defaults are "all true" — fields are only set on the typed
|
|
4099
|
+
* model when they were explicitly read, so callers can distinguish "unset"
|
|
4100
|
+
* (preserve original XML) from "false" (override).
|
|
4101
|
+
*/
|
|
4102
|
+
interface PptxHeaderFooterFlags {
|
|
4103
|
+
/** `@hdr` — show header placeholder. Spec default: `true`. */
|
|
4104
|
+
hasHeader?: boolean;
|
|
4105
|
+
/** `@ftr` — show footer placeholder. Spec default: `true`. */
|
|
4106
|
+
hasFooter?: boolean;
|
|
4107
|
+
/** `@dt` — show date/time placeholder. Spec default: `true`. */
|
|
4108
|
+
hasDateTime?: boolean;
|
|
4109
|
+
/** `@sldNum` — show slide-number placeholder. Spec default: `true`. */
|
|
4110
|
+
hasSlideNumber?: boolean;
|
|
4111
|
+
}
|
|
3892
4112
|
/**
|
|
3893
4113
|
* A slide layout associated with a slide master.
|
|
3894
4114
|
*
|
|
@@ -3927,6 +4147,8 @@ interface PptxSlideLayout {
|
|
|
3927
4147
|
userDrawn?: boolean;
|
|
3928
4148
|
/** Colour map override from `p:clrMapOvr`. */
|
|
3929
4149
|
clrMapOverride?: Record<string, string>;
|
|
4150
|
+
/** Header/footer flags from `<p:hf>` on this layout (P-H3). */
|
|
4151
|
+
headerFooter?: PptxHeaderFooterFlags;
|
|
3930
4152
|
}
|
|
3931
4153
|
/**
|
|
3932
4154
|
* A theme part available in the presentation package.
|
|
@@ -4044,13 +4266,6 @@ interface PptxViewProperties {
|
|
|
4044
4266
|
rawXml?: Record<string, unknown>;
|
|
4045
4267
|
}
|
|
4046
4268
|
|
|
4047
|
-
/**
|
|
4048
|
-
* Top-level presentation types: slides, canvas dimensions, export options,
|
|
4049
|
-
* and the root {@link PptxData} structure returned by `PptxHandlerCore.load()`.
|
|
4050
|
-
*
|
|
4051
|
-
* @module pptx-types/presentation
|
|
4052
|
-
*/
|
|
4053
|
-
|
|
4054
4269
|
/**
|
|
4055
4270
|
* A customer data reference from `p:custDataLst / p:custData`.
|
|
4056
4271
|
*
|
|
@@ -4145,6 +4360,8 @@ interface PptxSlide {
|
|
|
4145
4360
|
customerData?: PptxCustomerData[];
|
|
4146
4361
|
/** ActiveX control references from `p:controls` on this slide. */
|
|
4147
4362
|
activeXControls?: PptxActiveXControl[];
|
|
4363
|
+
/** Per-slide header/footer flags from `<p:hf>` (P-H3). */
|
|
4364
|
+
headerFooterFlags?: PptxHeaderFooterFlags;
|
|
4148
4365
|
}
|
|
4149
4366
|
/**
|
|
4150
4367
|
* A slide layout available in the loaded presentation.
|
|
@@ -4577,4 +4794,4 @@ interface PptxEmbeddedFont {
|
|
|
4577
4794
|
originalPartBytes?: Uint8Array;
|
|
4578
4795
|
}
|
|
4579
4796
|
|
|
4580
|
-
export { type OleObjectType as $, type PptxTagCollection as A, type PptxPhotoAlbum as B, type ConnectorPptxElement as C, type PptxKinsoku as D, type PptxModifyVerifier as E, type PptxViewProperties as F, type PptxEmbeddedFont as G, type PptxExportOptions as H, type InkPptxElement as I, type PptxThemeFormatScheme as J, type TextSegment as K, type PptxComment as L, type PptxSlideTransition as M, type PptxElementAnimation as N, type PptxNativeAnimation as O, type PptxElement as P, type PptxCustomerData as Q, type PptxActiveXControl as R, type ShapePptxElement as S, type TextPptxElement as T, type AnimationCondition as U, type ShapeStyle as V, type TextStyle as W, type XmlObject as X, type ElementAction as Y, type ZoomPptxElement as Z, type PptxAction as _, type PptxElementWithShapeStyle as a, type
|
|
4797
|
+
export { type OleObjectType as $, type PptxTagCollection as A, type PptxPhotoAlbum as B, type ConnectorPptxElement as C, type PptxKinsoku as D, type PptxModifyVerifier as E, type PptxViewProperties as F, type PptxEmbeddedFont as G, type PptxExportOptions as H, type InkPptxElement as I, type PptxThemeFormatScheme as J, type TextSegment as K, type PptxComment as L, type PptxSlideTransition as M, type PptxElementAnimation as N, type PptxNativeAnimation as O, type PptxElement as P, type PptxCustomerData as Q, type PptxActiveXControl as R, type ShapePptxElement as S, type TextPptxElement as T, type AnimationCondition as U, type ShapeStyle as V, type TextStyle as W, type XmlObject as X, type ElementAction as Y, type ZoomPptxElement as Z, type PptxAction as _, type PptxElementWithShapeStyle as a, type MaterialPresetType as a$, type PptxSmartArtNode as a0, type SmartArtLayoutType as a1, type PptxSmartArtDrawingShape as a2, type PptxChartDataTable as a3, type PptxChartLineStyle as a4, type PptxChartErrBars as a5, type PptxChartTrendline as a6, type PptxChartMarker as a7, type PptxChartDataLabel as a8, type PptxChartDataPoint as a9, type PptxChartSeries as aA, type SmartArtPptxElement as aB, type GeometryAdjustmentHandle as aC, type CustomGeometryRawData as aD, type CustomGeometryPath as aE, type BulletInfo as aF, type PptxShapeLocks as aG, type PptxTextStyleLevels as aH, type PptxThemeFillStyle as aI, type PptxThemeLineStyle as aJ, type PptxThemeEffectStyle as aK, type PptxSmartArtChrome as aL, type PptxSmartArtColorTransform as aM, type PptxSmartArtQuickStyle as aN, type PptxExternalData as aO, type CustomGeometryPoint as aP, type ChartPptxElement as aQ, type ImagePptxElement as aR, type ActionButtonPreset as aS, type AnimationConditionEvent as aT, type BevelPresetType as aU, type ConnectorConnectionPoint as aV, type ContentPartInkStroke as aW, type ContentPartPptxElement as aX, type CustomGeometrySegment as aY, type ElementActionType as aZ, type MasterViewTab as a_, type PptxChartShapeProps as aa, type PptxChart3DSurface as ab, type PptxChartAxisFormatting as ac, type PptxEmbeddedWorkbookData as ad, type PptxDrawingGuide as ae, type PptxTableCellStyle as af, type PptxCustomXmlPart as ag, type PptxCommentAuthor as ah, type MediaPptxElement as ai, type PptxTableData as aj, type PptxTheme as ak, type ParsedTableStyleMap as al, type PptxSlideMaster as am, type PptxThemeOption as an, type PlaceholderDefaults as ao, type PptxMasterTextStyles as ap, type PptxThemeObjectDefaults as aq, type ParsedTableStyleFill as ar, type ParsedTableStyleText as as, type PptxImageEffects as at, type MediaBookmark as au, type PptxChartStyle as av, type TablePptxElement as aw, type OlePptxElement as ax, type GroupPptxElement as ay, type PlaceholderTextLevelStyle as az, type PptxElementWithText as b, type MediaCaptionTrack as b0, type MediaMetadata as b1, type Model3DPptxElement as b2, type ParsedTableStyleEntry as b3, type PicturePptxElement as b4, type Pptx3DScene as b5, type Pptx3DShape as b6, type PptxAfterAnimationAction as b7, type PptxAnimationDirection as b8, type PptxAnimationIterate as b9, type PptxStripDirection as bA, type PptxTableCell as bB, type PptxTableRow as bC, type PptxTag as bD, type PptxTextAnimationTarget as bE, type PptxTextBuildType as bF, type PptxTextProperties as bG, type PptxTextWarpPreset as bH, type PptxThemeFontGroup as bI, type PptxTransitionDirection4 as bJ, type PptxTransitionDirection8 as bK, type PptxViewOrigin as bL, type PptxViewScale as bM, type ShadowEffect as bN, type SmartArtColorScheme as bO, type SmartArtLayout as bP, type SmartArtStyle as bQ, THEME_COLOR_SCHEME_KEYS as bR, TRANSITION_VALID_DIRECTIONS as bS, type Text3DStyle as bT, type UnderlineStyle as bU, type UnknownPptxElement as bV, type PptxAnimationRepeatMode as ba, type PptxAnimationSequence as bb, type PptxAnimationTimingCurve as bc, type PptxChartAxisNumFmt as bd, type PptxChartErrBarDir as be, type PptxChartErrBarType as bf, type PptxChartErrValType as bg, type PptxChartMarkerSymbol as bh, type PptxChartTrendlineType as bi, type PptxColorAnimation as bj, type PptxCommonSlideViewProperties as bk, type PptxCropShape as bl, type PptxCustomPathProperties as bm, type PptxElementBase as bn, type PptxElementType as bo, type PptxExportFormat as bp, type PptxHeaderFooterFlags as bq, type PptxImageProperties as br, type PptxMediaType as bs, type PptxNormalViewProperties as bt, type PptxRestoredRegion as bu, type PptxShapeProperties as bv, type PptxSlideLayout as bw, type PptxSmartArtConnection as bx, type PptxSplitDirection as by, type PptxSplitOrientation as bz, type PptxImageLikeElement as c, type PptxThemeColorScheme as d, type PptxThemeFontScheme as e, type PptxAnimationPreset as f, type PptxAnimationTrigger as g, type StrokeDashType as h, type ConnectorArrowType as i, type PptxTransitionType as j, type PptxChartType as k, type PptxSlide as l, type PptxData as m, type PptxCompatibilityWarning as n, type PptxLayoutOption as o, type PptxChartData as p, type PptxSmartArtData as q, type PptxHeaderFooter as r, type PptxPresentationProperties as s, type PptxCustomShow as t, type PptxSection as u, type PptxCoreProperties as v, type PptxAppProperties as w, type PptxCustomProperty as x, type PptxNotesMaster as y, type PptxHandoutMaster as z };
|