pptx-react-viewer 3.7.0 → 3.8.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 +13 -0
- package/dist/{AiChatPanel-L5QGWVZK.mjs → AiChatPanel-A5DCEHTO.mjs} +4 -4
- package/dist/AiChatPanel-A5DCEHTO.mjs.br +0 -0
- package/dist/AiChatPanel-A5DCEHTO.mjs.gz +0 -0
- package/dist/{AiChatPanel-M3AHKYPS.js → AiChatPanel-XLQM4BQJ.js} +25 -25
- package/dist/AiChatPanel-XLQM4BQJ.js.br +0 -0
- package/dist/AiChatPanel-XLQM4BQJ.js.gz +0 -0
- package/dist/{Area3DChartScene-AE2XYKDW.mjs → Area3DChartScene-5CMEMIBI.mjs} +1 -1
- package/dist/Area3DChartScene-5CMEMIBI.mjs.br +0 -0
- package/dist/Area3DChartScene-5CMEMIBI.mjs.gz +0 -0
- package/dist/{Area3DChartScene-ZQLQK6L4.js → Area3DChartScene-RZ3V3WOR.js} +2 -2
- package/dist/Area3DChartScene-RZ3V3WOR.js.br +0 -0
- package/dist/Area3DChartScene-RZ3V3WOR.js.gz +0 -0
- package/dist/{Bar3DChartScene-FQV62XOI.mjs → Bar3DChartScene-H3MYUJKV.mjs} +1 -1
- package/dist/Bar3DChartScene-H3MYUJKV.mjs.br +0 -0
- package/dist/Bar3DChartScene-H3MYUJKV.mjs.gz +0 -0
- package/dist/{Bar3DChartScene-TZ6ADFBS.js → Bar3DChartScene-KHCQ6TEC.js} +2 -2
- package/dist/Bar3DChartScene-KHCQ6TEC.js.br +0 -0
- package/dist/Bar3DChartScene-KHCQ6TEC.js.gz +0 -0
- package/dist/{Line3DChartScene-5CKPAX63.js → Line3DChartScene-QEACF3U3.js} +2 -2
- package/dist/Line3DChartScene-QEACF3U3.js.br +0 -0
- package/dist/Line3DChartScene-QEACF3U3.js.gz +0 -0
- package/dist/{Line3DChartScene-FEUY3PCE.mjs → Line3DChartScene-YFRPJHDX.mjs} +1 -1
- package/dist/Line3DChartScene-YFRPJHDX.mjs.br +0 -0
- package/dist/Line3DChartScene-YFRPJHDX.mjs.gz +0 -0
- package/dist/{Model3DScene-V3DHIISV.mjs → Model3DScene-O24KP723.mjs} +1 -1
- package/dist/Model3DScene-O24KP723.mjs.br +0 -0
- package/dist/Model3DScene-O24KP723.mjs.gz +0 -0
- package/dist/{Model3DScene-BLXEALM6.js → Model3DScene-QQWKGJ3T.js} +2 -2
- package/dist/{Model3DScene-BLXEALM6.js.br → Model3DScene-QQWKGJ3T.js.br} +0 -0
- package/dist/Model3DScene-QQWKGJ3T.js.gz +0 -0
- package/dist/{PieChart3DScene-VZI2VARG.mjs → PieChart3DScene-CI6CW22C.mjs} +1 -1
- package/dist/{PieChart3DScene-VZI2VARG.mjs.br → PieChart3DScene-CI6CW22C.mjs.br} +0 -0
- package/dist/PieChart3DScene-CI6CW22C.mjs.gz +0 -0
- package/dist/{PieChart3DScene-GHHT3PDV.js → PieChart3DScene-L3MHKQHW.js} +2 -2
- package/dist/{PieChart3DScene-GHHT3PDV.js.br → PieChart3DScene-L3MHKQHW.js.br} +0 -0
- package/dist/PieChart3DScene-L3MHKQHW.js.gz +0 -0
- package/dist/PowerPointViewer-Cl6jBPNw.d.ts.map +1 -1
- package/dist/{SurfaceChart3DScene-WWIMQ65D.js → SurfaceChart3DScene-5IER6VFW.js} +2 -2
- package/dist/{SurfaceChart3DScene-WWIMQ65D.js.br → SurfaceChart3DScene-5IER6VFW.js.br} +0 -0
- package/dist/SurfaceChart3DScene-5IER6VFW.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-T36E2HBA.mjs → SurfaceChart3DScene-JUXRC3K2.mjs} +1 -1
- package/dist/SurfaceChart3DScene-JUXRC3K2.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-JUXRC3K2.mjs.gz +0 -0
- package/dist/{audience-content-store-bR7Gs_1S.d.ts → audience-content-store-CB2WVM1K.d.ts} +12 -3
- package/dist/{audience-content-store-bR7Gs_1S.d.ts.map → audience-content-store-CB2WVM1K.d.ts.map} +1 -1
- package/dist/{chunk-TUSALM3A.js → chunk-4222CHFH.js} +1709 -1235
- package/dist/chunk-4222CHFH.js.br +0 -0
- package/dist/chunk-4222CHFH.js.gz +0 -0
- package/dist/{chunk-NV55GU5V.mjs → chunk-6IMB5DNJ.mjs} +4953 -3103
- package/dist/chunk-6IMB5DNJ.mjs.br +0 -0
- package/dist/chunk-6IMB5DNJ.mjs.gz +0 -0
- package/dist/{chunk-OBE4TB76.js → chunk-DE3S3UHX.js} +551 -574
- package/dist/chunk-DE3S3UHX.js.br +0 -0
- package/dist/chunk-DE3S3UHX.js.gz +0 -0
- package/dist/{chunk-3EJFZ7TE.js → chunk-F5NPGNMA.js} +9 -5
- package/dist/chunk-F5NPGNMA.js.br +0 -0
- package/dist/chunk-F5NPGNMA.js.gz +0 -0
- package/dist/{chunk-FGTMS7LR.mjs → chunk-FRZIBZTE.mjs} +55 -4
- package/dist/chunk-FRZIBZTE.mjs.br +0 -0
- package/dist/chunk-FRZIBZTE.mjs.gz +0 -0
- package/dist/{chunk-W24OJ7H5.js → chunk-L3ZIBQEB.js} +55 -4
- package/dist/chunk-L3ZIBQEB.js.br +0 -0
- package/dist/chunk-L3ZIBQEB.js.gz +0 -0
- package/dist/{chunk-TXY2E7VQ.mjs → chunk-PFPKBNNZ.mjs} +509 -35
- package/dist/chunk-PFPKBNNZ.mjs.br +0 -0
- package/dist/chunk-PFPKBNNZ.mjs.gz +0 -0
- package/dist/{chunk-VIFDZIVX.js → chunk-QWA5YEIZ.js} +187 -176
- package/dist/chunk-QWA5YEIZ.js.br +0 -0
- package/dist/chunk-QWA5YEIZ.js.gz +0 -0
- package/dist/{chunk-JANUSAEK.mjs → chunk-RHWQKZLB.mjs} +14 -3
- package/dist/chunk-RHWQKZLB.mjs.br +0 -0
- package/dist/chunk-RHWQKZLB.mjs.gz +0 -0
- package/dist/{chunk-WKODF5ZU.mjs → chunk-RNP5HP4L.mjs} +5 -2
- package/dist/chunk-RNP5HP4L.mjs.br +0 -0
- package/dist/chunk-RNP5HP4L.mjs.gz +0 -0
- package/dist/{chunk-DCNHUEWQ.js → chunk-SN5EUDIT.js} +4972 -3103
- package/dist/chunk-SN5EUDIT.js.br +0 -0
- package/dist/chunk-SN5EUDIT.js.gz +0 -0
- package/dist/{chunk-PC62KGU3.mjs → chunk-UPJW34YG.mjs} +124 -147
- package/dist/chunk-UPJW34YG.mjs.br +0 -0
- package/dist/chunk-UPJW34YG.mjs.gz +0 -0
- package/dist/i18n.js +4 -4
- package/dist/i18n.js.br +0 -0
- package/dist/i18n.js.gz +0 -0
- package/dist/i18n.mjs +1 -1
- package/dist/i18n.mjs.br +0 -0
- package/dist/i18n.mjs.gz +0 -0
- package/dist/index.d.ts +179 -23
- package/dist/index.js +47 -47
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +352 -171
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +79 -79
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +4 -4
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/types-Bzdkiakq.d.ts.map +1 -1
- package/dist/viewer/index.d.ts +150 -23
- package/dist/viewer/index.js +27 -27
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +6 -6
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +2 -2
- package/dist/AiChatPanel-L5QGWVZK.mjs.br +0 -0
- package/dist/AiChatPanel-L5QGWVZK.mjs.gz +0 -0
- package/dist/AiChatPanel-M3AHKYPS.js.br +0 -0
- package/dist/AiChatPanel-M3AHKYPS.js.gz +0 -0
- package/dist/Area3DChartScene-AE2XYKDW.mjs.br +0 -1
- package/dist/Area3DChartScene-AE2XYKDW.mjs.gz +0 -0
- package/dist/Area3DChartScene-ZQLQK6L4.js.br +0 -0
- package/dist/Area3DChartScene-ZQLQK6L4.js.gz +0 -0
- package/dist/Bar3DChartScene-FQV62XOI.mjs.br +0 -2
- package/dist/Bar3DChartScene-FQV62XOI.mjs.gz +0 -0
- package/dist/Bar3DChartScene-TZ6ADFBS.js.br +0 -0
- package/dist/Bar3DChartScene-TZ6ADFBS.js.gz +0 -0
- package/dist/Line3DChartScene-5CKPAX63.js.br +0 -0
- package/dist/Line3DChartScene-5CKPAX63.js.gz +0 -0
- package/dist/Line3DChartScene-FEUY3PCE.mjs.br +0 -1
- package/dist/Line3DChartScene-FEUY3PCE.mjs.gz +0 -0
- package/dist/Model3DScene-BLXEALM6.js.gz +0 -0
- package/dist/Model3DScene-V3DHIISV.mjs.br +0 -0
- package/dist/Model3DScene-V3DHIISV.mjs.gz +0 -0
- package/dist/PieChart3DScene-GHHT3PDV.js.gz +0 -0
- package/dist/PieChart3DScene-VZI2VARG.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-T36E2HBA.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-T36E2HBA.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-WWIMQ65D.js.gz +0 -0
- package/dist/chunk-3EJFZ7TE.js.br +0 -0
- package/dist/chunk-3EJFZ7TE.js.gz +0 -0
- package/dist/chunk-DCNHUEWQ.js.br +0 -0
- package/dist/chunk-DCNHUEWQ.js.gz +0 -0
- package/dist/chunk-FGTMS7LR.mjs.br +0 -0
- package/dist/chunk-FGTMS7LR.mjs.gz +0 -0
- package/dist/chunk-JANUSAEK.mjs.br +0 -0
- package/dist/chunk-JANUSAEK.mjs.gz +0 -0
- package/dist/chunk-NV55GU5V.mjs.br +0 -0
- package/dist/chunk-NV55GU5V.mjs.gz +0 -0
- package/dist/chunk-OBE4TB76.js.br +0 -0
- package/dist/chunk-OBE4TB76.js.gz +0 -0
- package/dist/chunk-PC62KGU3.mjs.br +0 -0
- package/dist/chunk-PC62KGU3.mjs.gz +0 -0
- package/dist/chunk-TUSALM3A.js.br +0 -0
- package/dist/chunk-TUSALM3A.js.gz +0 -0
- package/dist/chunk-TXY2E7VQ.mjs.br +0 -0
- package/dist/chunk-TXY2E7VQ.mjs.gz +0 -0
- package/dist/chunk-VIFDZIVX.js.br +0 -0
- package/dist/chunk-VIFDZIVX.js.gz +0 -0
- package/dist/chunk-W24OJ7H5.js.br +0 -0
- package/dist/chunk-W24OJ7H5.js.gz +0 -0
- package/dist/chunk-WKODF5ZU.mjs.br +0 -0
- package/dist/chunk-WKODF5ZU.mjs.gz +0 -0
package/dist/viewer/index.d.ts
CHANGED
|
@@ -2396,7 +2396,38 @@ interface PptxChartDataPointPicture {
|
|
|
2396
2396
|
//#region src/core/types/chart-pivot-format.d.ts
|
|
2397
2397
|
interface PptxChartPivotFormat {
|
|
2398
2398
|
index: number;
|
|
2399
|
+
/**
|
|
2400
|
+
* Typed projection of `spPr` (fill/stroke colour, stroke width, dash
|
|
2401
|
+
* style). When the parser is given a colour resolver (the normal case: the
|
|
2402
|
+
* runtime always supplies one), both a literal `a:srgbClr` and an
|
|
2403
|
+
* `a:schemeClr` theme reference (with its `lumMod`/`lumOff`/`tint`/`shade`
|
|
2404
|
+
* modifiers) resolve to a hex colour here, the same theme +
|
|
2405
|
+
* `c:clrMapOvr` chain the rest of chart parsing uses. Without a resolver
|
|
2406
|
+
* (e.g. a hand-built `PptxChartPivotFormat` with no theme to resolve
|
|
2407
|
+
* against), only the literal case resolves. Either way the authored node
|
|
2408
|
+
* is byte-preserved through {@link shapePropertiesXml} until this field is
|
|
2409
|
+
* set to something that no longer matches what re-parses off the current
|
|
2410
|
+
* XML; setting it then re-derives `shapePropertiesXml` on save (merged
|
|
2411
|
+
* onto whatever was already authored, keeping an unrelated schemeClr
|
|
2412
|
+
* reference alive when the colour itself is unchanged) unless
|
|
2413
|
+
* `shapePropertiesXml` is set explicitly, which wins.
|
|
2414
|
+
*/
|
|
2415
|
+
shapeProperties?: PptxChartShapeProps;
|
|
2416
|
+
/**
|
|
2417
|
+
* Typed projection of `txPr`'s `a:p/a:pPr/a:defRPr` (size/bold/italic/
|
|
2418
|
+
* colour/family), the same shape a legend entry or data-table's text
|
|
2419
|
+
* override models. Colour resolution mirrors {@link shapeProperties}
|
|
2420
|
+
* (theme-resolved `schemeClr` when a colour resolver is supplied, literal
|
|
2421
|
+
* `srgbClr` otherwise). See {@link txPrXml} for the raw fallback.
|
|
2422
|
+
*/
|
|
2423
|
+
textStyle?: PptxChartLegendTextStyle;
|
|
2424
|
+
/**
|
|
2425
|
+
* Typed projection of `marker` (symbol/size/spPr). See {@link markerXml}
|
|
2426
|
+
* for the raw fallback.
|
|
2427
|
+
*/
|
|
2428
|
+
marker?: PptxChartMarker;
|
|
2399
2429
|
shapePropertiesXml?: XmlObject | null;
|
|
2430
|
+
txPrXml?: XmlObject | null;
|
|
2400
2431
|
markerXml?: XmlObject | null;
|
|
2401
2432
|
dataLabelXml?: XmlObject | null;
|
|
2402
2433
|
extensionListXml?: XmlObject | null;
|
|
@@ -2589,20 +2620,6 @@ interface PptxChartTitleRun {
|
|
|
2589
2620
|
}
|
|
2590
2621
|
//#endregion
|
|
2591
2622
|
//#region src/core/types/chart-user-shapes.d.ts
|
|
2592
|
-
/**
|
|
2593
|
-
* Types for chart drawing-overlay shapes (`c:userShapes`).
|
|
2594
|
-
*
|
|
2595
|
-
* A chart's `c:userShapes` element carries an `r:id` that references a
|
|
2596
|
-
* separate drawing part (`ppt/drawings/drawingN.xml`) whose root is a
|
|
2597
|
-
* `c:userShapes` element populated with `cdr:relSizeAnchor` /
|
|
2598
|
-
* `cdr:absSizeAnchor` wrappers around `sp` / `pic` / `cxnSp` shapes drawn on
|
|
2599
|
-
* top of the chart plot. These interfaces describe the parsed, renderable
|
|
2600
|
-
* overlay model. The raw reference is preserved separately on
|
|
2601
|
-
* {@link PptxChartData.userShapesXml} for verbatim round-trip save; this model
|
|
2602
|
-
* is render-only.
|
|
2603
|
-
*
|
|
2604
|
-
* @module pptx-types/chart-user-shapes
|
|
2605
|
-
*/
|
|
2606
2623
|
/** A single paragraph of overlay-shape text with light formatting. */
|
|
2607
2624
|
interface PptxChartUserShapeParagraph {
|
|
2608
2625
|
/** Joined run text of the paragraph. */
|
|
@@ -2618,6 +2635,80 @@ interface PptxChartUserShapeParagraph {
|
|
|
2618
2635
|
/** Paragraph alignment (`a:pPr/@algn`): left / centre / right. */
|
|
2619
2636
|
align?: 'l' | 'ctr' | 'r';
|
|
2620
2637
|
}
|
|
2638
|
+
/**
|
|
2639
|
+
* The DrawingML 2D group transform (`a:xfrm` inside `cdr:grpSpPr`) that
|
|
2640
|
+
* anchors a `grpSp`'s own box ({@link off}/{@link ext}) and establishes the
|
|
2641
|
+
* coordinate space its children are expressed in ({@link chOff}/{@link
|
|
2642
|
+
* chExt}), all in EMU. A child's position within the group is mapped into
|
|
2643
|
+
* the group's own box via
|
|
2644
|
+
* `frac = (child.off - chOff) / chExt`, then applied to the enclosing
|
|
2645
|
+
* anchor's box; see `flattenChartUserShapes` in
|
|
2646
|
+
* `chart-user-shapes-parser.ts`.
|
|
2647
|
+
*/
|
|
2648
|
+
interface PptxChartUserShapeGroupTransform {
|
|
2649
|
+
/** The group's own position in its parent's coordinate space, in EMU. */
|
|
2650
|
+
off: {
|
|
2651
|
+
x: number;
|
|
2652
|
+
y: number;
|
|
2653
|
+
};
|
|
2654
|
+
/** The group's own size in its parent's coordinate space, in EMU. */
|
|
2655
|
+
ext: {
|
|
2656
|
+
cx: number;
|
|
2657
|
+
cy: number;
|
|
2658
|
+
};
|
|
2659
|
+
/** Origin of the child coordinate space (`a:chOff`), in EMU. */
|
|
2660
|
+
chOff: {
|
|
2661
|
+
x: number;
|
|
2662
|
+
y: number;
|
|
2663
|
+
};
|
|
2664
|
+
/** Size of the child coordinate space (`a:chExt`), in EMU. */
|
|
2665
|
+
chExt: {
|
|
2666
|
+
cx: number;
|
|
2667
|
+
cy: number;
|
|
2668
|
+
};
|
|
2669
|
+
}
|
|
2670
|
+
/**
|
|
2671
|
+
* One shape grouped inside a `cdr:grpSp` (or a nested `cdr:grpSp` itself).
|
|
2672
|
+
* Unlike a top-level {@link PptxChartUserShape}, a group child has no
|
|
2673
|
+
* drawing anchor of its own: its position is expressed in its parent
|
|
2674
|
+
* group's child coordinate space via {@link off}/{@link ext} (EMU, read
|
|
2675
|
+
* from the child's own `a:xfrm`), not as a chart-relative fraction.
|
|
2676
|
+
*/
|
|
2677
|
+
interface PptxChartUserShapeGroupChild {
|
|
2678
|
+
/** Shape kind, same vocabulary as {@link PptxChartUserShape.kind}. */
|
|
2679
|
+
kind: 'sp' | 'cxnSp' | 'pic' | 'grpSp' | 'graphicFrame';
|
|
2680
|
+
/** Position within the parent group's child coordinate space, in EMU. */
|
|
2681
|
+
off: {
|
|
2682
|
+
x: number;
|
|
2683
|
+
y: number;
|
|
2684
|
+
};
|
|
2685
|
+
/** Size within the parent group's child coordinate space, in EMU. */
|
|
2686
|
+
ext: {
|
|
2687
|
+
cx: number;
|
|
2688
|
+
cy: number;
|
|
2689
|
+
};
|
|
2690
|
+
/** Preset geometry name (`a:prstGeom/@prst`), defaulting to `"rect"`. */
|
|
2691
|
+
prst?: string;
|
|
2692
|
+
/** Resolved solid-fill hex colour, when present. */
|
|
2693
|
+
fill?: string;
|
|
2694
|
+
/** Resolved line/stroke hex colour, when present. */
|
|
2695
|
+
stroke?: string;
|
|
2696
|
+
/** Line width in points (`a:ln/@w` divided by 12700), when present. */
|
|
2697
|
+
strokeWidth?: number;
|
|
2698
|
+
/** Text paragraphs of the shape's `txBody`, when present. */
|
|
2699
|
+
paragraphs?: PptxChartUserShapeParagraph[];
|
|
2700
|
+
/**
|
|
2701
|
+
* Verbatim source XML of a `pic`/`graphicFrame` child, or of this node
|
|
2702
|
+
* itself when `kind === 'grpSp'` and the nested group is untouched since
|
|
2703
|
+
* parse. See {@link PptxChartUserShape.rawXml}'s doc for the same
|
|
2704
|
+
* contract one level up.
|
|
2705
|
+
*/
|
|
2706
|
+
rawXml?: XmlObject;
|
|
2707
|
+
/** Present when `kind === 'grpSp'`: this nested group's own transform. */
|
|
2708
|
+
transform?: PptxChartUserShapeGroupTransform;
|
|
2709
|
+
/** Present when `kind === 'grpSp'`: this nested group's own children. */
|
|
2710
|
+
children?: PptxChartUserShapeGroupChild[];
|
|
2711
|
+
}
|
|
2621
2712
|
/**
|
|
2622
2713
|
* A parsed chart-overlay shape positioned by a drawing anchor.
|
|
2623
2714
|
*
|
|
@@ -2628,12 +2719,13 @@ interface PptxChartUserShapeParagraph {
|
|
|
2628
2719
|
interface PptxChartUserShape {
|
|
2629
2720
|
/**
|
|
2630
2721
|
* Shape kind: text/preset shape, connector, picture, a group of the
|
|
2631
|
-
* above (`grpSp`,
|
|
2632
|
-
*
|
|
2633
|
-
*
|
|
2634
|
-
*
|
|
2635
|
-
*
|
|
2636
|
-
*
|
|
2722
|
+
* above (`grpSp`, with its own {@link transform} and {@link children},
|
|
2723
|
+
* nested arbitrarily; use `flattenChartUserShapes` from
|
|
2724
|
+
* `chart-user-shapes-parser.ts` to get a flat, render-ready leaf list
|
|
2725
|
+
* with the group transform already applied), or a bare placeholder for
|
|
2726
|
+
* a `graphicFrame` anchor child (deep content such as a nested chart or
|
|
2727
|
+
* table is out of scope; it only keeps the anchor's space accounted for
|
|
2728
|
+
* instead of the whole overlay disappearing).
|
|
2637
2729
|
*/
|
|
2638
2730
|
kind: 'sp' | 'cxnSp' | 'pic' | 'grpSp' | 'graphicFrame';
|
|
2639
2731
|
/** Anchor kind that positioned the shape. */
|
|
@@ -2663,6 +2755,26 @@ interface PptxChartUserShape {
|
|
|
2663
2755
|
strokeWidth?: number;
|
|
2664
2756
|
/** Text paragraphs of the shape's `txBody`, when present. */
|
|
2665
2757
|
paragraphs?: PptxChartUserShapeParagraph[];
|
|
2758
|
+
/**
|
|
2759
|
+
* Verbatim source XML of a `pic` or `graphicFrame` anchor child (the
|
|
2760
|
+
* `cdr:pic` / `cdr:graphicFrame` node itself, not the enclosing anchor),
|
|
2761
|
+
* or of the `cdr:grpSp` node itself when `kind === 'grpSp'` and the
|
|
2762
|
+
* group is untouched since parse (byte-identical passthrough). None of
|
|
2763
|
+
* these three kinds have a reconstructable typed representation that is
|
|
2764
|
+
* guaranteed lossless (a picture's blip reference, a nested chart/table's
|
|
2765
|
+
* graphic content, or a group's exact child ordering/ids), so the
|
|
2766
|
+
* serializer re-emits this verbatim when present instead of a lossy
|
|
2767
|
+
* rebuild. Editing a shape inside a group (via the SDK's path-based
|
|
2768
|
+
* overlay operations) clears the group's `rawXml` so the serializer
|
|
2769
|
+
* regenerates it from {@link transform}/{@link children} instead. Absent
|
|
2770
|
+
* for `sp`/`cxnSp`, which round-trip losslessly through their typed
|
|
2771
|
+
* fields above.
|
|
2772
|
+
*/
|
|
2773
|
+
rawXml?: XmlObject;
|
|
2774
|
+
/** Present when `kind === 'grpSp'`: the group's own transform. */
|
|
2775
|
+
transform?: PptxChartUserShapeGroupTransform;
|
|
2776
|
+
/** Present when `kind === 'grpSp'`: the grouped children, nested arbitrarily. */
|
|
2777
|
+
children?: PptxChartUserShapeGroupChild[];
|
|
2666
2778
|
}
|
|
2667
2779
|
//#endregion
|
|
2668
2780
|
//#region src/core/types/chart.d.ts
|
|
@@ -5815,6 +5927,21 @@ interface PptxAccessibilityProperties {
|
|
|
5815
5927
|
*/
|
|
5816
5928
|
isDecorative?: boolean;
|
|
5817
5929
|
}
|
|
5930
|
+
/**
|
|
5931
|
+
* Accessibility description/title from `p:cNvPr/@descr` / `@title` on a
|
|
5932
|
+
* plain shape, text box or connector (`p:sp` / `p:cxnSp`). The same pair of
|
|
5933
|
+
* attributes already round-trips for a graphic frame (see
|
|
5934
|
+
* {@link TablePptxElement.altText}) and, `descr` only, for a picture
|
|
5935
|
+
* ({@link PptxImageProperties.altText}); this mixin extends it to the three
|
|
5936
|
+
* element kinds whose PowerPoint Alt Text pane data was previously dropped
|
|
5937
|
+
* on load because neither field existed on the model.
|
|
5938
|
+
*/
|
|
5939
|
+
interface PptxNonVisualDescription {
|
|
5940
|
+
/** `p:cNvPr/@descr`. */
|
|
5941
|
+
altText?: string;
|
|
5942
|
+
/** `p:cNvPr/@title`. */
|
|
5943
|
+
title?: string;
|
|
5944
|
+
}
|
|
5818
5945
|
/**
|
|
5819
5946
|
* `a:cNvPicPr/@preferRelativeResize` (issue G13), a picture-only non-visual
|
|
5820
5947
|
* property distinct from `a:picLocks`.
|
|
@@ -5847,7 +5974,7 @@ interface PptxPictureNonVisualProperties {
|
|
|
5847
5974
|
* // => satisfies TextPptxElement
|
|
5848
5975
|
* ```
|
|
5849
5976
|
*/
|
|
5850
|
-
interface TextPptxElement extends PptxElementBase, PptxTextProperties, PptxShapeProperties {
|
|
5977
|
+
interface TextPptxElement extends PptxElementBase, PptxTextProperties, PptxShapeProperties, PptxNonVisualDescription {
|
|
5851
5978
|
type: 'text';
|
|
5852
5979
|
}
|
|
5853
5980
|
/**
|
|
@@ -5865,7 +5992,7 @@ interface TextPptxElement extends PptxElementBase, PptxTextProperties, PptxShape
|
|
|
5865
5992
|
* // => satisfies ShapePptxElement
|
|
5866
5993
|
* ```
|
|
5867
5994
|
*/
|
|
5868
|
-
interface ShapePptxElement extends PptxElementBase, PptxTextProperties, PptxShapeProperties, PptxCustomPathProperties, PptxAccessibilityProperties {
|
|
5995
|
+
interface ShapePptxElement extends PptxElementBase, PptxTextProperties, PptxShapeProperties, PptxCustomPathProperties, PptxAccessibilityProperties, PptxNonVisualDescription {
|
|
5869
5996
|
type: 'shape';
|
|
5870
5997
|
}
|
|
5871
5998
|
/**
|
|
@@ -5887,7 +6014,7 @@ interface ShapePptxElement extends PptxElementBase, PptxTextProperties, PptxShap
|
|
|
5887
6014
|
* // => satisfies ConnectorPptxElement
|
|
5888
6015
|
* ```
|
|
5889
6016
|
*/
|
|
5890
|
-
interface ConnectorPptxElement extends PptxElementBase, PptxTextProperties, PptxShapeProperties {
|
|
6017
|
+
interface ConnectorPptxElement extends PptxElementBase, PptxTextProperties, PptxShapeProperties, PptxNonVisualDescription {
|
|
5891
6018
|
type: 'connector';
|
|
5892
6019
|
}
|
|
5893
6020
|
/**
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
require('../chunk-
|
|
3
|
+
var chunk4222CHFH_js = require('../chunk-4222CHFH.js');
|
|
4
|
+
require('../chunk-F5NPGNMA.js');
|
|
5
|
+
var chunkDE3S3UHX_js = require('../chunk-DE3S3UHX.js');
|
|
6
|
+
var chunkQWA5YEIZ_js = require('../chunk-QWA5YEIZ.js');
|
|
7
|
+
var chunkSN5EUDIT_js = require('../chunk-SN5EUDIT.js');
|
|
8
|
+
require('../chunk-L3ZIBQEB.js');
|
|
9
9
|
require('../chunk-4VNS5WPM.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "CollaborationProvider", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk4222CHFH_js.CollaborationProvider; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "CollaborationStatusIndicator", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk4222CHFH_js.CollaborationStatusIndicator; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "PowerPointViewer", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk4222CHFH_js.PowerPointViewer; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "RemoteUserCursors", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk4222CHFH_js.RemoteUserCursors; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "UserAvatarBar", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk4222CHFH_js.UserAvatarBar; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "isAudienceTab", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkDE3S3UHX_js.isAudienceTab; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "parseAudienceNonce", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkDE3S3UHX_js.parseAudienceNonce; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "useCollaborativeHistory", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkDE3S3UHX_js.useCollaborativeHistory; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "useCollaborativeState", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkDE3S3UHX_js.useCollaborativeState; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "usePresenceTracking", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkDE3S3UHX_js.usePresenceTracking; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "useThemeSwitching", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkDE3S3UHX_js.useThemeSwitching; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "useYjsProvider", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkDE3S3UHX_js.useYjsProvider; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkQWA5YEIZ_js.getAnimationInitialStyle; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "clearAudienceContent", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkSN5EUDIT_js.clearAudienceContent; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "forgetSessionDeck", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkSN5EUDIT_js.forgetSessionDeck; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "getSessionTabId", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkSN5EUDIT_js.getSessionTabId; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "loadAudienceContent", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkSN5EUDIT_js.loadAudienceContent; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "loadSessionDeck", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkSN5EUDIT_js.loadSessionDeck; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "rememberSessionDeck", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkSN5EUDIT_js.rememberSessionDeck; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "restoreSessionDeck", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkSN5EUDIT_js.restoreSessionDeck; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "storeAudienceContent", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkSN5EUDIT_js.storeAudienceContent; }
|
|
96
96
|
});
|
package/dist/viewer/index.js.br
CHANGED
|
Binary file
|
package/dist/viewer/index.js.gz
CHANGED
|
Binary file
|
package/dist/viewer/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { CollaborationProvider, CollaborationStatusIndicator, PowerPointViewer, RemoteUserCursors, UserAvatarBar } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
export { isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-
|
|
4
|
-
export { getAnimationInitialStyle } from '../chunk-
|
|
5
|
-
export { clearAudienceContent, forgetSessionDeck, getSessionTabId, loadAudienceContent, loadSessionDeck, rememberSessionDeck, restoreSessionDeck, storeAudienceContent } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
1
|
+
export { CollaborationProvider, CollaborationStatusIndicator, PowerPointViewer, RemoteUserCursors, UserAvatarBar } from '../chunk-PFPKBNNZ.mjs';
|
|
2
|
+
import '../chunk-RNP5HP4L.mjs';
|
|
3
|
+
export { isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-UPJW34YG.mjs';
|
|
4
|
+
export { getAnimationInitialStyle } from '../chunk-RHWQKZLB.mjs';
|
|
5
|
+
export { clearAudienceContent, forgetSessionDeck, getSessionTabId, loadAudienceContent, loadSessionDeck, rememberSessionDeck, restoreSessionDeck, storeAudienceContent } from '../chunk-6IMB5DNJ.mjs';
|
|
6
|
+
import '../chunk-FRZIBZTE.mjs';
|
|
7
7
|
import '../chunk-XGB3TDIC.mjs';
|
package/dist/viewer/index.mjs.br
CHANGED
|
Binary file
|
package/dist/viewer/index.mjs.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptx-react-viewer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "React PowerPoint viewer and editor component: render, edit, and export PPTX slides in the browser.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"editor",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"clsx": "^2.1.1",
|
|
79
79
|
"dompurify": "^3.4.14",
|
|
80
80
|
"html2canvas-pro": "^2.3.2",
|
|
81
|
-
"pptx-viewer-mcp": "^2.
|
|
81
|
+
"pptx-viewer-mcp": "^2.3.0",
|
|
82
82
|
"tailwind-merge": "^3.6.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ "���_SM�A� ?~s�v��c�gt7c7B�%C2vmԖW�� �jT�%\�&RSy|yn?[����n>q4��C��9o,1�\Fx.e}��J���n����� ~Ĵ��h��r�w]��z7����E�}��:sr�����h�o�({���$���ǧ*���x��/"�D�z��K��8
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[ "���_SM�A� ?~s�v��c�gt7c7B�%C2vmԖW�� �jT�%\�&RSy|yn?[����n>q4��C��9o,1�\Fx.e}��J���n����� ~Ĵ��h��r�w]��z7����E�}��:sr�����h�o�({���$���ǧ*���x��/"�D�z��K��8
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|