@silurus/ooxml 0.78.0 → 0.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -1
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/dist/{canvas-viewer-mechanics-ChxLdOJg.js → canvas-viewer-mechanics-D9tsuHnG.js} +1 -1
- package/dist/chart-number-format-tjYUR9eS.js +435 -0
- package/dist/dash-Cyc-sevN.js +786 -0
- package/dist/{document-pull-client-xsdVDuVD.js → document-pull-client-YiU8M4LO.js} +3283 -3156
- package/dist/{docx-CZC3j4s4.js → docx-a1UpmRf8.js} +65 -56
- package/dist/docx.mjs +4 -4
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-HuZyTARz.js → line-distribute-pDqovJpT.js} +1 -1
- package/dist/{line-metrics-z9AdgPaZ.js → line-metrics-DjKxiIUD.js} +4097 -3184
- package/dist/math.mjs +1 -1
- package/dist/node.mjs +322 -322
- package/dist/{pptx-c3UgGKIs.js → pptx-t5ABdzfd.js} +192 -183
- package/dist/pptx.mjs +5 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/region-map.mjs +12708 -0
- package/dist/{render-yhFUeiYl.js → render-BjIEuFIG.js} +1 -1
- package/dist/render-worker-host-BB320snY.js +27 -0
- package/dist/render-worker-host-BjEPZBwf.js +27 -0
- package/dist/render-worker-host-hZ0o4OD7.js +27 -0
- package/dist/{resource-measurement-5g27Av6n.js → resource-measurement-D8EiTm_E.js} +1 -1
- package/dist/{session-BOuXp10X.js → session-Bhe_eY-s.js} +10 -10
- package/dist/{slide-pull-client-DKckZrLx.js → slide-pull-client-BQ8gJPTq.js} +626 -563
- package/dist/three-d.mjs +2158 -0
- package/dist/types/docx.d.ts +189 -16
- package/dist/types/index.d.ts +205 -20
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +166 -1
- package/dist/types/pptx.d.ts +191 -16
- package/dist/types/region-map.d.ts +520 -0
- package/dist/types/three-d.d.ts +520 -0
- package/dist/types/xlsx.d.ts +195 -16
- package/dist/{worksheet-pull-client-CMDRPZ5E.js → worksheet-pull-client-T0EzdEEQ.js} +13 -13
- package/dist/{xlsx-BAScjxlC.js → xlsx-CsDDMJIK.js} +833 -770
- package/dist/xlsx.mjs +5 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +13 -1
- package/dist/render-worker-host-BzxTAscX.js +0 -27
- package/dist/render-worker-host-CBjWHxMb.js +0 -27
- package/dist/render-worker-host-Ivhx3KII.js +0 -27
- /package/dist/{highlight-rect-CAkCWJ37.js → highlight-rect-cCvVU-MW.js} +0 -0
- /package/dist/{mathjax-CMjda8Ip.js → mathjax-Dqo857oC.js} +0 -0
- /package/dist/{transfer-DCu4c2BL.js → transfer-3QEJrsJa.js} +0 -0
- /package/dist/{visible-index-CgyJLAS_.js → visible-index-CKvgpUrf.js} +0 -0
package/dist/types/pptx.d.ts
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/
|
|
2
|
-
interface MathSvg {
|
|
3
|
-
svg: string;
|
|
4
|
-
widthEm: number;
|
|
5
|
-
ascentEm: number;
|
|
6
|
-
descentEm: number;
|
|
7
|
-
}
|
|
8
|
-
interface MathRenderer {
|
|
9
|
-
loadMathJax(): Promise<void>;
|
|
10
|
-
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region dist/.types-work/hyperlink-R5D7g--F.d.ts
|
|
1
|
+
//#region dist/.types-work/chart-Cxft04Nl.d.ts
|
|
14
2
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
15
3
|
interface MathRun {
|
|
16
4
|
kind: 'run';
|
|
@@ -383,10 +371,13 @@ interface RenderOptions {
|
|
|
383
371
|
}
|
|
384
372
|
interface ChartSeries {
|
|
385
373
|
name: string;
|
|
374
|
+
chartexFormatIdx?: number | null;
|
|
386
375
|
color: string | null;
|
|
387
376
|
fillPattern?: PatternFill | null;
|
|
377
|
+
chartexStyle?: ChartExElementStyle | null;
|
|
388
378
|
lineColor?: string | null;
|
|
389
379
|
lineWidthEmu?: number | null;
|
|
380
|
+
threeDShape?: 'box' | 'cylinder' | 'cone' | 'coneToMax' | 'pyramid' | 'pyramidToMax' | string | null;
|
|
390
381
|
values: (number | null)[];
|
|
391
382
|
dataPointColors?: (string | null)[] | null;
|
|
392
383
|
dataLabelColors?: (string | null)[] | null;
|
|
@@ -402,6 +393,7 @@ interface ChartSeries {
|
|
|
402
393
|
markerSize?: number | null;
|
|
403
394
|
markerFill?: string | null;
|
|
404
395
|
markerLine?: string | null;
|
|
396
|
+
markerLineWidthEmu?: number | null;
|
|
405
397
|
dataPointOverrides?: ChartDataPointOverride[] | null;
|
|
406
398
|
dataLabelOverrides?: ChartDataLabelOverride[] | null;
|
|
407
399
|
seriesDataLabels?: ChartSeriesDataLabels | null;
|
|
@@ -420,25 +412,44 @@ interface ChartTrendline {
|
|
|
420
412
|
intercept?: number | null;
|
|
421
413
|
dispRSqr?: boolean | null;
|
|
422
414
|
dispEq?: boolean | null;
|
|
415
|
+
labelManualLayout?: ChartManualLayout | null;
|
|
416
|
+
labelText?: string | null;
|
|
417
|
+
labelFontSizeHpt?: number | null;
|
|
418
|
+
labelFontBold?: boolean | null;
|
|
419
|
+
labelFontColor?: string | null;
|
|
420
|
+
labelFontFace?: string | null;
|
|
421
|
+
labelTextAlign?: string | null;
|
|
423
422
|
lineColor?: string | null;
|
|
424
423
|
lineWidthEmu?: number | null;
|
|
424
|
+
lineDash?: string | null;
|
|
425
|
+
lineHidden?: boolean | null;
|
|
425
426
|
}
|
|
426
427
|
interface ChartDataPointOverride {
|
|
427
428
|
idx: number;
|
|
428
429
|
color?: string;
|
|
430
|
+
fillHidden?: boolean;
|
|
431
|
+
lineColor?: string;
|
|
432
|
+
lineWidthEmu?: number;
|
|
433
|
+
lineDash?: string;
|
|
434
|
+
lineHidden?: boolean;
|
|
429
435
|
markerSymbol?: string;
|
|
430
436
|
markerSize?: number;
|
|
431
437
|
markerFill?: string;
|
|
432
438
|
markerLine?: string;
|
|
439
|
+
markerLineWidthEmu?: number;
|
|
433
440
|
explosion?: number;
|
|
434
441
|
}
|
|
435
442
|
interface ChartDataLabelOverride {
|
|
436
443
|
idx: number;
|
|
437
444
|
text: string;
|
|
445
|
+
richRuns?: ChartTextRun[];
|
|
438
446
|
position?: string;
|
|
439
447
|
fontColor?: string;
|
|
440
448
|
fontSizeHpt?: number;
|
|
441
449
|
fontBold?: boolean;
|
|
450
|
+
formatCode?: string;
|
|
451
|
+
separator?: string;
|
|
452
|
+
manualLayout?: ChartManualLayout;
|
|
442
453
|
labelBox?: ChartLabelBox;
|
|
443
454
|
showVal?: boolean;
|
|
444
455
|
showCatName?: boolean;
|
|
@@ -482,9 +493,11 @@ interface ChartExElementStyle {
|
|
|
482
493
|
fillPaints?: Array<SolidFill | GradientFill | PatternFill | null> | null;
|
|
483
494
|
fillColors?: Array<string | null> | null;
|
|
484
495
|
fillHidden?: boolean | null;
|
|
496
|
+
fillNoStyle?: boolean | null;
|
|
485
497
|
lineColors?: Array<string | null> | null;
|
|
486
498
|
lineWidthEmu?: number | null;
|
|
487
499
|
lineHidden?: boolean | null;
|
|
500
|
+
lineNoStyle?: boolean | null;
|
|
488
501
|
lineDash?: string | null;
|
|
489
502
|
lineCap?: string | null;
|
|
490
503
|
lineJoin?: string | null;
|
|
@@ -536,13 +549,23 @@ interface ChartModel {
|
|
|
536
549
|
dataLabelFormatCode?: string | null;
|
|
537
550
|
titleFontBold?: boolean | null;
|
|
538
551
|
catAxisFontBold?: boolean | null;
|
|
552
|
+
catAxisFontItalic?: boolean | null;
|
|
539
553
|
valAxisFontBold?: boolean | null;
|
|
554
|
+
valAxisFontItalic?: boolean | null;
|
|
540
555
|
catAxisTitleFontSizeHpt?: number | null;
|
|
541
556
|
catAxisTitleFontBold?: boolean | null;
|
|
557
|
+
catAxisTitleFontItalic?: boolean | null;
|
|
542
558
|
catAxisTitleFontColor?: string | null;
|
|
559
|
+
catAxisTitleRotation?: number | null;
|
|
560
|
+
catAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
|
|
561
|
+
catAxisTitleManualLayout?: ChartManualLayout | null;
|
|
543
562
|
valAxisTitleFontSizeHpt?: number | null;
|
|
544
563
|
valAxisTitleFontBold?: boolean | null;
|
|
564
|
+
valAxisTitleFontItalic?: boolean | null;
|
|
545
565
|
valAxisTitleFontColor?: string | null;
|
|
566
|
+
valAxisTitleRotation?: number | null;
|
|
567
|
+
valAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
|
|
568
|
+
valAxisTitleManualLayout?: ChartManualLayout | null;
|
|
546
569
|
catAxisFontFace?: string | null;
|
|
547
570
|
valAxisFontFace?: string | null;
|
|
548
571
|
catAxisTitleFontFace?: string | null;
|
|
@@ -584,12 +607,24 @@ interface ChartModel {
|
|
|
584
607
|
catAxisMajorGridlines?: boolean | null;
|
|
585
608
|
valAxisGridlineColor?: string | null;
|
|
586
609
|
valAxisGridlineWidthEmu?: number | null;
|
|
610
|
+
valAxisGridlineDash?: string | null;
|
|
587
611
|
catAxisGridlineColor?: string | null;
|
|
588
612
|
catAxisGridlineWidthEmu?: number | null;
|
|
613
|
+
catAxisGridlineDash?: string | null;
|
|
589
614
|
valAxisMinorGridlines?: boolean | null;
|
|
615
|
+
valAxisMinorGridlineColor?: string | null;
|
|
616
|
+
valAxisMinorGridlineWidthEmu?: number | null;
|
|
617
|
+
valAxisMinorGridlineDash?: string | null;
|
|
618
|
+
catAxisMinorGridlines?: boolean | null;
|
|
619
|
+
catAxisMinorGridlineColor?: string | null;
|
|
620
|
+
catAxisMinorGridlineWidthEmu?: number | null;
|
|
621
|
+
catAxisMinorGridlineDash?: string | null;
|
|
590
622
|
valAxisMajorUnit?: number | null;
|
|
591
623
|
valAxisMinorUnit?: number | null;
|
|
624
|
+
catAxisMajorUnit?: number | null;
|
|
625
|
+
catAxisMinorUnit?: number | null;
|
|
592
626
|
valAxisLogBase?: number | null;
|
|
627
|
+
catAxisLogBase?: number | null;
|
|
593
628
|
valAxisOrientation?: 'minMax' | 'maxMin' | string | null;
|
|
594
629
|
catAxisOrientation?: 'minMax' | 'maxMin' | string | null;
|
|
595
630
|
catAxisTickLabelPos?: string | null;
|
|
@@ -600,15 +635,55 @@ interface ChartModel {
|
|
|
600
635
|
stockHiLowLines?: boolean | null;
|
|
601
636
|
stockHiLowLineColor?: string | null;
|
|
602
637
|
stockUpDownBars?: boolean | null;
|
|
638
|
+
stockUpDownBarStyle?: ChartStockUpDownBarStyle | null;
|
|
639
|
+
ofPie?: ChartOfPie | null;
|
|
640
|
+
threeD?: ChartThreeD | null;
|
|
603
641
|
chartexBox?: ChartexBoxWhisker | null;
|
|
604
642
|
chartexSunburst?: ChartexSunburst | null;
|
|
605
643
|
chartexTreemap?: ChartexTreemap | null;
|
|
644
|
+
chartexRegionMap?: ChartexRegionMap | null;
|
|
645
|
+
chartexHistogramBinning?: ChartexHistogramBinning | null;
|
|
606
646
|
chartexAccents?: string[] | null;
|
|
607
647
|
chartexColorPalette?: Array<string | null> | null;
|
|
608
648
|
chartexColorStyleMethod?: string | null;
|
|
609
649
|
chartexDataPointStyle?: ChartExElementStyle | null;
|
|
610
650
|
chartexDataPointLineStyle?: ChartExElementStyle | null;
|
|
651
|
+
chartexSeriesLineStyle?: ChartExElementStyle | null;
|
|
611
652
|
chartexDataPointMarkerStyle?: ChartExElementStyle | null;
|
|
653
|
+
chartexMarkerSizePt?: number | null;
|
|
654
|
+
chartexMarkerSymbol?: string | null;
|
|
655
|
+
chartexConnectorLines?: boolean | null;
|
|
656
|
+
}
|
|
657
|
+
interface ChartStockBarPaint {
|
|
658
|
+
fillColor?: string | null;
|
|
659
|
+
fillHidden?: boolean | null;
|
|
660
|
+
lineColor?: string | null;
|
|
661
|
+
lineWidthEmu?: number | null;
|
|
662
|
+
lineHidden?: boolean | null;
|
|
663
|
+
}
|
|
664
|
+
interface ChartStockUpDownBarStyle {
|
|
665
|
+
gapWidthPercent: number;
|
|
666
|
+
up: ChartStockBarPaint;
|
|
667
|
+
down: ChartStockBarPaint;
|
|
668
|
+
}
|
|
669
|
+
interface ChartOfPie {
|
|
670
|
+
type: 'pie' | 'bar';
|
|
671
|
+
splitType: 'auto' | 'cust' | 'percent' | 'pos' | 'val';
|
|
672
|
+
splitPos?: number | null;
|
|
673
|
+
customSplitIndices?: number[] | null;
|
|
674
|
+
secondPieSizePercent: number;
|
|
675
|
+
gapWidthPercent: number;
|
|
676
|
+
seriesLines: boolean;
|
|
677
|
+
}
|
|
678
|
+
interface ChartThreeD {
|
|
679
|
+
rotationX?: number | null;
|
|
680
|
+
rotationY?: number | null;
|
|
681
|
+
heightPercent?: number | null;
|
|
682
|
+
depthPercent?: number | null;
|
|
683
|
+
perspective?: number | null;
|
|
684
|
+
rightAngleAxes?: boolean | null;
|
|
685
|
+
gapDepthPercent?: number | null;
|
|
686
|
+
shape?: string | null;
|
|
612
687
|
}
|
|
613
688
|
interface ChartTextRun {
|
|
614
689
|
text: string;
|
|
@@ -629,12 +704,18 @@ interface ChartTextBox {
|
|
|
629
704
|
paragraphs: ChartTextParagraph[];
|
|
630
705
|
verticalAnchor?: 't' | 'ctr' | 'b' | 'just' | 'dist' | string | null;
|
|
631
706
|
wrap?: 'none' | 'square' | string | null;
|
|
707
|
+
lIns?: number;
|
|
708
|
+
tIns?: number;
|
|
709
|
+
rIns?: number;
|
|
710
|
+
bIns?: number;
|
|
632
711
|
}
|
|
633
712
|
interface ChartexBoxSeries {
|
|
634
713
|
name: string;
|
|
714
|
+
chartexFormatIdx?: number | null;
|
|
635
715
|
color?: string | null;
|
|
636
716
|
lineColor?: string | null;
|
|
637
717
|
lineWidthEmu?: number | null;
|
|
718
|
+
chartexStyle?: ChartExElementStyle | null;
|
|
638
719
|
valuesByCategory: number[][];
|
|
639
720
|
meanMarker: boolean;
|
|
640
721
|
meanLine: boolean;
|
|
@@ -643,6 +724,7 @@ interface ChartexBoxSeries {
|
|
|
643
724
|
quartileMethod: string;
|
|
644
725
|
}
|
|
645
726
|
interface ChartexBoxWhisker {
|
|
727
|
+
oneBoxPerSeries?: boolean;
|
|
646
728
|
categories: string[];
|
|
647
729
|
series: ChartexBoxSeries[];
|
|
648
730
|
}
|
|
@@ -657,6 +739,46 @@ interface ChartexTreemap {
|
|
|
657
739
|
rows: ChartexSunburstRow[];
|
|
658
740
|
parentLabelLayout?: string | null;
|
|
659
741
|
}
|
|
742
|
+
interface ChartexRegionMapRow {
|
|
743
|
+
label: string;
|
|
744
|
+
entityId?: string | null;
|
|
745
|
+
value?: number | null;
|
|
746
|
+
}
|
|
747
|
+
interface ChartexGeography {
|
|
748
|
+
projectionType?: 'mercator' | 'miller' | 'robinson' | 'albers' | string | null;
|
|
749
|
+
viewedRegionType?: string | null;
|
|
750
|
+
cultureLanguage?: string | null;
|
|
751
|
+
cultureRegion?: string | null;
|
|
752
|
+
attribution?: string | null;
|
|
753
|
+
cacheProvider?: string | null;
|
|
754
|
+
cachePresent: boolean;
|
|
755
|
+
}
|
|
756
|
+
interface ChartexValueColorStop {
|
|
757
|
+
kind: 'extremeValue' | 'number' | 'percent' | string;
|
|
758
|
+
value?: number | null;
|
|
759
|
+
}
|
|
760
|
+
interface ChartexRegionMapColors {
|
|
761
|
+
stopCount?: 2 | 3 | null;
|
|
762
|
+
minColor?: string | null;
|
|
763
|
+
midColor?: string | null;
|
|
764
|
+
maxColor?: string | null;
|
|
765
|
+
minPosition?: ChartexValueColorStop | null;
|
|
766
|
+
midPosition?: ChartexValueColorStop | null;
|
|
767
|
+
maxPosition?: ChartexValueColorStop | null;
|
|
768
|
+
}
|
|
769
|
+
interface ChartexRegionMap {
|
|
770
|
+
rows: ChartexRegionMapRow[];
|
|
771
|
+
regionLabelLayout?: 'none' | 'bestFitOnly' | 'showAll' | null;
|
|
772
|
+
geography?: ChartexGeography | null;
|
|
773
|
+
colors?: ChartexRegionMapColors | null;
|
|
774
|
+
}
|
|
775
|
+
interface ChartexHistogramBinning {
|
|
776
|
+
binSize?: number | null;
|
|
777
|
+
binCount?: number | null;
|
|
778
|
+
intervalClosed?: 'l' | 'r' | null;
|
|
779
|
+
underflow?: number | null;
|
|
780
|
+
overflow?: number | null;
|
|
781
|
+
}
|
|
660
782
|
interface SecondaryValueAxis {
|
|
661
783
|
min: number | null;
|
|
662
784
|
max: number | null;
|
|
@@ -665,14 +787,37 @@ interface SecondaryValueAxis {
|
|
|
665
787
|
formatCode?: string | null;
|
|
666
788
|
fontColor?: string | null;
|
|
667
789
|
fontSizeHpt?: number | null;
|
|
790
|
+
fontItalic?: boolean | null;
|
|
791
|
+
fontBold?: boolean | null;
|
|
792
|
+
fontFace?: string | null;
|
|
668
793
|
lineColor?: string | null;
|
|
669
794
|
lineWidthEmu?: number | null;
|
|
670
795
|
lineHidden: boolean;
|
|
671
796
|
majorTickMark: string;
|
|
797
|
+
minorTickMark?: string | null;
|
|
798
|
+
minorGridlines?: boolean;
|
|
799
|
+
minorGridlineColor?: string | null;
|
|
800
|
+
minorGridlineWidthEmu?: number | null;
|
|
801
|
+
minorGridlineDash?: string | null;
|
|
802
|
+
majorGridlines?: boolean;
|
|
803
|
+
majorGridlineColor?: string | null;
|
|
804
|
+
majorGridlineWidthEmu?: number | null;
|
|
805
|
+
majorGridlineDash?: string | null;
|
|
672
806
|
majorUnit?: number | null;
|
|
807
|
+
minorUnit?: number | null;
|
|
808
|
+
logBase?: number | null;
|
|
809
|
+
orientation?: 'minMax' | 'maxMin' | string | null;
|
|
810
|
+
tickLabelPos?: string | null;
|
|
811
|
+
crosses?: string | null;
|
|
812
|
+
crossesAt?: number | null;
|
|
673
813
|
titleFontSizeHpt?: number | null;
|
|
674
814
|
titleFontBold?: boolean | null;
|
|
815
|
+
titleFontItalic?: boolean | null;
|
|
675
816
|
titleFontColor?: string | null;
|
|
817
|
+
titleFontFace?: string | null;
|
|
818
|
+
titleRotation?: number | null;
|
|
819
|
+
titleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
|
|
820
|
+
titleManualLayout?: ChartManualLayout | null;
|
|
676
821
|
}
|
|
677
822
|
interface ChartManualLayout {
|
|
678
823
|
xMode?: string;
|
|
@@ -701,6 +846,30 @@ interface ChartRect {
|
|
|
701
846
|
w: number;
|
|
702
847
|
h: number;
|
|
703
848
|
}
|
|
849
|
+
//#endregion
|
|
850
|
+
//#region dist/.types-work/mathjax-rjjokY7u.d.ts
|
|
851
|
+
interface MathSvg {
|
|
852
|
+
svg: string;
|
|
853
|
+
widthEm: number;
|
|
854
|
+
ascentEm: number;
|
|
855
|
+
descentEm: number;
|
|
856
|
+
}
|
|
857
|
+
interface MathRenderer {
|
|
858
|
+
loadMathJax(): Promise<void>;
|
|
859
|
+
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
860
|
+
}
|
|
861
|
+
//#endregion
|
|
862
|
+
//#region dist/.types-work/three-d-contract-DdC3L2kZ.d.ts
|
|
863
|
+
interface ChartThreeDRenderer {
|
|
864
|
+
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
865
|
+
}
|
|
866
|
+
//#endregion
|
|
867
|
+
//#region dist/.types-work/region-map-contract-CLpE99AF.d.ts
|
|
868
|
+
interface ChartRegionMapRenderer {
|
|
869
|
+
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
870
|
+
}
|
|
871
|
+
//#endregion
|
|
872
|
+
//#region dist/.types-work/hyperlink-yiXkZo1W.d.ts
|
|
704
873
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
705
874
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
706
875
|
declare class OoxmlError extends Error {
|
|
@@ -783,6 +952,8 @@ interface LoadOptions$1 {
|
|
|
783
952
|
onResourceMetrics?: (metrics: OoxmlResourceMetrics) => void;
|
|
784
953
|
workerTimeoutMs?: number;
|
|
785
954
|
math?: MathRenderer;
|
|
955
|
+
threeD?: ChartThreeDRenderer;
|
|
956
|
+
regionMap?: ChartRegionMapRenderer;
|
|
786
957
|
}
|
|
787
958
|
type OoxmlDecodedImageLimitMetric = 'image-pixels' | 'active-decoded-bytes';
|
|
788
959
|
declare class OoxmlDecodedImageLimitError extends RangeError {
|
|
@@ -803,7 +974,7 @@ type HyperlinkTarget = {
|
|
|
803
974
|
};
|
|
804
975
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
805
976
|
//#endregion
|
|
806
|
-
//#region dist/.types-work/find-highlight-
|
|
977
|
+
//#region dist/.types-work/find-highlight-lh8Qagl7.d.ts
|
|
807
978
|
interface TextSelectionContextOptions {
|
|
808
979
|
readonly maxTextCharacters?: number;
|
|
809
980
|
readonly maxRunLocators?: number;
|
|
@@ -842,7 +1013,7 @@ interface FindHighlightColors {
|
|
|
842
1013
|
active?: string;
|
|
843
1014
|
}
|
|
844
1015
|
//#endregion
|
|
845
|
-
//#region dist/.types-work/pptx-
|
|
1016
|
+
//#region dist/.types-work/pptx-BkoKZ3Yu.d.ts
|
|
846
1017
|
interface BlipBullet {
|
|
847
1018
|
type: 'blip';
|
|
848
1019
|
imagePath: string;
|
|
@@ -1090,6 +1261,8 @@ interface PptxTextRunInfo {
|
|
|
1090
1261
|
type TextRunCallback = (run: PptxTextRunInfo) => void;
|
|
1091
1262
|
type SlideRenderOptions = RenderOptions & {
|
|
1092
1263
|
math?: MathRenderer;
|
|
1264
|
+
threeD?: ChartThreeDRenderer;
|
|
1265
|
+
regionMap?: ChartRegionMapRenderer;
|
|
1093
1266
|
dim?: DimOptions;
|
|
1094
1267
|
};
|
|
1095
1268
|
declare function renderSlide(canvas: HTMLCanvasElement | OffscreenCanvas, slide: Slide, slideWidth: number, slideHeight: number, opts?: SlideRenderOptions, onTextRun?: TextRunCallback): Promise<HTMLCanvasElement | OffscreenCanvas>;
|
|
@@ -1197,6 +1370,8 @@ declare class PptxPresentation {
|
|
|
1197
1370
|
private readonly _fetchImage;
|
|
1198
1371
|
private readonly _fetchMedia;
|
|
1199
1372
|
private _math;
|
|
1373
|
+
private _threeD;
|
|
1374
|
+
private _regionMap;
|
|
1200
1375
|
private constructor();
|
|
1201
1376
|
private _assertResourceHealthy;
|
|
1202
1377
|
private _rethrowWithResourceFailure;
|
|
@@ -1477,4 +1652,4 @@ interface PptxHighlightMatch {
|
|
|
1477
1652
|
type PptxHighlightColors = FindHighlightColors;
|
|
1478
1653
|
declare function buildPptxHighlightLayer(layer: HTMLDivElement, runs: PptxTextRunInfo[], matches: PptxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: PptxHighlightColors): void;
|
|
1479
1654
|
//#endregion
|
|
1480
|
-
export { type ArrowEnd, type AutoResizeOptions, type Bevel3d, type BlipBullet, type Bullet, type Camera3d, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartElement, type ChartErrBars, type ChartExElementStyle, type ChartLabelBox, type ChartManualLayout, type ChartModel, type ChartRect, type ChartSeries, type ChartSeriesDataLabels, type ChartTextBox, type ChartTextParagraph, type ChartTextRun, type ChartTrendline, type ChartType, type ChartexBoxSeries, type ChartexBoxWhisker, type ChartexSunburst, type ChartexSunburstRow, type ChartexTreemap, type DimOptions, type Duotone, type EquationRun, type Fill, type FillRect, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type Glow, type GradientFill, type GradientStop, type HiddenSlideMode, type HyperlinkTarget, type ImageFill, type LegendManualLayout, type LightRig, type LineBreak, type LoadOptions, type MatchRunSlice, type MathAccent, type MathArray, type MathBar, type MathBorderBox, type MathBox, type MathDelimiter, type MathFraction, type MathFunc, type MathGroup, type MathGroupChr, type MathLimit, type MathNary, type MathNode, type MathPhant, type MathRadical, type MathRenderer, type MathRun, type MathSPre, type MathScript, type MathStyle, type MathSvg, type MediaElement, type NoFill, OoxmlDecodedImageLimitError, type OoxmlDecodedImageLimitMetric, OoxmlError, type OoxmlErrorCode, type OoxmlErrorStage, type OoxmlFormat, type OoxmlResourceLimit, OoxmlResourceLimitError, type OoxmlResourceLimitErrorDetails, type OoxmlResourceLimits, type OoxmlResourceMetric, type OoxmlResourceMetrics, type OoxmlResourceMetricsCheckpoint, type OoxmlResourceName, type OoxmlResourcePolicySnapshot, type OoxmlResourceUsageSnapshot, type OoxmlResourceViolation, type Paragraph, type PathCmd, type PatternFill, type PictureElement, type PptxComment, type PptxElementContext, type PptxElementContextOptions, type PptxHighlightColors, type PptxHighlightMatch, type PptxMatchLocation, PptxPresentation, PptxScrollViewer, type PptxScrollViewerOptions, type PptxSelectionContext, type PptxSelectionContextOptions, type PptxSelectionRunLocator, type PptxSlidePoint, type PptxTextRunInfo, type PptxTextSelectionContext, PptxViewer, type PptxViewerOptions, type PresentSlideOptions, type Presentation, type PresentationHandle, type Reflection, type RenderOptions, type RenderSlideOptions, type RenderSlideToBitmapOptions, type Rot3d, type Scene3d, type SecondaryValueAxis, type Shadow, type ShapeElement, type Slide, type SlideElement, type SlideElementOrigin, type SlideElementSource, type SlideRenderOptions, type SoftEdge, type SolidFill, type Sp3d, type SpaceLine, type Stroke, type TabStop, type TableCell, type TableElement, type TableRow, type TextBody, type TextOutline, type TextRect, type TextRun, type TextRunCallback, type TextRunData, type TextSelectionContextOptions, type TileInfo, type ViewerContextMenuEvent, type ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
|
|
1655
|
+
export { type ArrowEnd, type AutoResizeOptions, type Bevel3d, type BlipBullet, type Bullet, type Camera3d, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartElement, type ChartErrBars, type ChartExElementStyle, type ChartLabelBox, type ChartManualLayout, type ChartModel, type ChartOfPie, type ChartRect, type ChartRegionMapRenderer, type ChartSeries, type ChartSeriesDataLabels, type ChartStockBarPaint, type ChartStockUpDownBarStyle, type ChartTextBox, type ChartTextParagraph, type ChartTextRun, type ChartThreeD, type ChartThreeDRenderer, type ChartTrendline, type ChartType, type ChartexBoxSeries, type ChartexBoxWhisker, type ChartexGeography, type ChartexHistogramBinning, type ChartexRegionMap, type ChartexRegionMapColors, type ChartexRegionMapRow, type ChartexSunburst, type ChartexSunburstRow, type ChartexTreemap, type ChartexValueColorStop, type DimOptions, type Duotone, type EquationRun, type Fill, type FillRect, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type Glow, type GradientFill, type GradientStop, type HiddenSlideMode, type HyperlinkTarget, type ImageFill, type LegendManualLayout, type LightRig, type LineBreak, type LoadOptions, type MatchRunSlice, type MathAccent, type MathArray, type MathBar, type MathBorderBox, type MathBox, type MathDelimiter, type MathFraction, type MathFunc, type MathGroup, type MathGroupChr, type MathLimit, type MathNary, type MathNode, type MathPhant, type MathRadical, type MathRenderer, type MathRun, type MathSPre, type MathScript, type MathStyle, type MathSvg, type MediaElement, type NoFill, OoxmlDecodedImageLimitError, type OoxmlDecodedImageLimitMetric, OoxmlError, type OoxmlErrorCode, type OoxmlErrorStage, type OoxmlFormat, type OoxmlResourceLimit, OoxmlResourceLimitError, type OoxmlResourceLimitErrorDetails, type OoxmlResourceLimits, type OoxmlResourceMetric, type OoxmlResourceMetrics, type OoxmlResourceMetricsCheckpoint, type OoxmlResourceName, type OoxmlResourcePolicySnapshot, type OoxmlResourceUsageSnapshot, type OoxmlResourceViolation, type Paragraph, type PathCmd, type PatternFill, type PictureElement, type PptxComment, type PptxElementContext, type PptxElementContextOptions, type PptxHighlightColors, type PptxHighlightMatch, type PptxMatchLocation, PptxPresentation, PptxScrollViewer, type PptxScrollViewerOptions, type PptxSelectionContext, type PptxSelectionContextOptions, type PptxSelectionRunLocator, type PptxSlidePoint, type PptxTextRunInfo, type PptxTextSelectionContext, PptxViewer, type PptxViewerOptions, type PresentSlideOptions, type Presentation, type PresentationHandle, type Reflection, type RenderOptions, type RenderSlideOptions, type RenderSlideToBitmapOptions, type Rot3d, type Scene3d, type SecondaryValueAxis, type Shadow, type ShapeElement, type Slide, type SlideElement, type SlideElementOrigin, type SlideElementSource, type SlideRenderOptions, type SoftEdge, type SolidFill, type Sp3d, type SpaceLine, type Stroke, type TabStop, type TableCell, type TableElement, type TableRow, type TextBody, type TextOutline, type TextRect, type TextRun, type TextRunCallback, type TextRunData, type TextSelectionContextOptions, type TileInfo, type ViewerContextMenuEvent, type ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
|