@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/node.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/
|
|
1
|
+
//#region dist/.types-work/chart-Cxft04Nl.d.ts
|
|
2
2
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
3
3
|
interface MathRun {
|
|
4
4
|
kind: 'run';
|
|
@@ -360,10 +360,13 @@ interface LineBreak {
|
|
|
360
360
|
}
|
|
361
361
|
interface ChartSeries {
|
|
362
362
|
name: string;
|
|
363
|
+
chartexFormatIdx?: number | null;
|
|
363
364
|
color: string | null;
|
|
364
365
|
fillPattern?: PatternFill | null;
|
|
366
|
+
chartexStyle?: ChartExElementStyle | null;
|
|
365
367
|
lineColor?: string | null;
|
|
366
368
|
lineWidthEmu?: number | null;
|
|
369
|
+
threeDShape?: 'box' | 'cylinder' | 'cone' | 'coneToMax' | 'pyramid' | 'pyramidToMax' | string | null;
|
|
367
370
|
values: (number | null)[];
|
|
368
371
|
dataPointColors?: (string | null)[] | null;
|
|
369
372
|
dataLabelColors?: (string | null)[] | null;
|
|
@@ -379,6 +382,7 @@ interface ChartSeries {
|
|
|
379
382
|
markerSize?: number | null;
|
|
380
383
|
markerFill?: string | null;
|
|
381
384
|
markerLine?: string | null;
|
|
385
|
+
markerLineWidthEmu?: number | null;
|
|
382
386
|
dataPointOverrides?: ChartDataPointOverride[] | null;
|
|
383
387
|
dataLabelOverrides?: ChartDataLabelOverride[] | null;
|
|
384
388
|
seriesDataLabels?: ChartSeriesDataLabels | null;
|
|
@@ -397,25 +401,44 @@ interface ChartTrendline {
|
|
|
397
401
|
intercept?: number | null;
|
|
398
402
|
dispRSqr?: boolean | null;
|
|
399
403
|
dispEq?: boolean | null;
|
|
404
|
+
labelManualLayout?: ChartManualLayout | null;
|
|
405
|
+
labelText?: string | null;
|
|
406
|
+
labelFontSizeHpt?: number | null;
|
|
407
|
+
labelFontBold?: boolean | null;
|
|
408
|
+
labelFontColor?: string | null;
|
|
409
|
+
labelFontFace?: string | null;
|
|
410
|
+
labelTextAlign?: string | null;
|
|
400
411
|
lineColor?: string | null;
|
|
401
412
|
lineWidthEmu?: number | null;
|
|
413
|
+
lineDash?: string | null;
|
|
414
|
+
lineHidden?: boolean | null;
|
|
402
415
|
}
|
|
403
416
|
interface ChartDataPointOverride {
|
|
404
417
|
idx: number;
|
|
405
418
|
color?: string;
|
|
419
|
+
fillHidden?: boolean;
|
|
420
|
+
lineColor?: string;
|
|
421
|
+
lineWidthEmu?: number;
|
|
422
|
+
lineDash?: string;
|
|
423
|
+
lineHidden?: boolean;
|
|
406
424
|
markerSymbol?: string;
|
|
407
425
|
markerSize?: number;
|
|
408
426
|
markerFill?: string;
|
|
409
427
|
markerLine?: string;
|
|
428
|
+
markerLineWidthEmu?: number;
|
|
410
429
|
explosion?: number;
|
|
411
430
|
}
|
|
412
431
|
interface ChartDataLabelOverride {
|
|
413
432
|
idx: number;
|
|
414
433
|
text: string;
|
|
434
|
+
richRuns?: ChartTextRun[];
|
|
415
435
|
position?: string;
|
|
416
436
|
fontColor?: string;
|
|
417
437
|
fontSizeHpt?: number;
|
|
418
438
|
fontBold?: boolean;
|
|
439
|
+
formatCode?: string;
|
|
440
|
+
separator?: string;
|
|
441
|
+
manualLayout?: ChartManualLayout;
|
|
419
442
|
labelBox?: ChartLabelBox;
|
|
420
443
|
showVal?: boolean;
|
|
421
444
|
showCatName?: boolean;
|
|
@@ -459,9 +482,11 @@ interface ChartExElementStyle {
|
|
|
459
482
|
fillPaints?: Array<SolidFill | GradientFill | PatternFill | null> | null;
|
|
460
483
|
fillColors?: Array<string | null> | null;
|
|
461
484
|
fillHidden?: boolean | null;
|
|
485
|
+
fillNoStyle?: boolean | null;
|
|
462
486
|
lineColors?: Array<string | null> | null;
|
|
463
487
|
lineWidthEmu?: number | null;
|
|
464
488
|
lineHidden?: boolean | null;
|
|
489
|
+
lineNoStyle?: boolean | null;
|
|
465
490
|
lineDash?: string | null;
|
|
466
491
|
lineCap?: string | null;
|
|
467
492
|
lineJoin?: string | null;
|
|
@@ -513,13 +538,23 @@ interface ChartModel {
|
|
|
513
538
|
dataLabelFormatCode?: string | null;
|
|
514
539
|
titleFontBold?: boolean | null;
|
|
515
540
|
catAxisFontBold?: boolean | null;
|
|
541
|
+
catAxisFontItalic?: boolean | null;
|
|
516
542
|
valAxisFontBold?: boolean | null;
|
|
543
|
+
valAxisFontItalic?: boolean | null;
|
|
517
544
|
catAxisTitleFontSizeHpt?: number | null;
|
|
518
545
|
catAxisTitleFontBold?: boolean | null;
|
|
546
|
+
catAxisTitleFontItalic?: boolean | null;
|
|
519
547
|
catAxisTitleFontColor?: string | null;
|
|
548
|
+
catAxisTitleRotation?: number | null;
|
|
549
|
+
catAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
|
|
550
|
+
catAxisTitleManualLayout?: ChartManualLayout | null;
|
|
520
551
|
valAxisTitleFontSizeHpt?: number | null;
|
|
521
552
|
valAxisTitleFontBold?: boolean | null;
|
|
553
|
+
valAxisTitleFontItalic?: boolean | null;
|
|
522
554
|
valAxisTitleFontColor?: string | null;
|
|
555
|
+
valAxisTitleRotation?: number | null;
|
|
556
|
+
valAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
|
|
557
|
+
valAxisTitleManualLayout?: ChartManualLayout | null;
|
|
523
558
|
catAxisFontFace?: string | null;
|
|
524
559
|
valAxisFontFace?: string | null;
|
|
525
560
|
catAxisTitleFontFace?: string | null;
|
|
@@ -561,12 +596,24 @@ interface ChartModel {
|
|
|
561
596
|
catAxisMajorGridlines?: boolean | null;
|
|
562
597
|
valAxisGridlineColor?: string | null;
|
|
563
598
|
valAxisGridlineWidthEmu?: number | null;
|
|
599
|
+
valAxisGridlineDash?: string | null;
|
|
564
600
|
catAxisGridlineColor?: string | null;
|
|
565
601
|
catAxisGridlineWidthEmu?: number | null;
|
|
602
|
+
catAxisGridlineDash?: string | null;
|
|
566
603
|
valAxisMinorGridlines?: boolean | null;
|
|
604
|
+
valAxisMinorGridlineColor?: string | null;
|
|
605
|
+
valAxisMinorGridlineWidthEmu?: number | null;
|
|
606
|
+
valAxisMinorGridlineDash?: string | null;
|
|
607
|
+
catAxisMinorGridlines?: boolean | null;
|
|
608
|
+
catAxisMinorGridlineColor?: string | null;
|
|
609
|
+
catAxisMinorGridlineWidthEmu?: number | null;
|
|
610
|
+
catAxisMinorGridlineDash?: string | null;
|
|
567
611
|
valAxisMajorUnit?: number | null;
|
|
568
612
|
valAxisMinorUnit?: number | null;
|
|
613
|
+
catAxisMajorUnit?: number | null;
|
|
614
|
+
catAxisMinorUnit?: number | null;
|
|
569
615
|
valAxisLogBase?: number | null;
|
|
616
|
+
catAxisLogBase?: number | null;
|
|
570
617
|
valAxisOrientation?: 'minMax' | 'maxMin' | string | null;
|
|
571
618
|
catAxisOrientation?: 'minMax' | 'maxMin' | string | null;
|
|
572
619
|
catAxisTickLabelPos?: string | null;
|
|
@@ -577,15 +624,55 @@ interface ChartModel {
|
|
|
577
624
|
stockHiLowLines?: boolean | null;
|
|
578
625
|
stockHiLowLineColor?: string | null;
|
|
579
626
|
stockUpDownBars?: boolean | null;
|
|
627
|
+
stockUpDownBarStyle?: ChartStockUpDownBarStyle | null;
|
|
628
|
+
ofPie?: ChartOfPie | null;
|
|
629
|
+
threeD?: ChartThreeD | null;
|
|
580
630
|
chartexBox?: ChartexBoxWhisker | null;
|
|
581
631
|
chartexSunburst?: ChartexSunburst | null;
|
|
582
632
|
chartexTreemap?: ChartexTreemap | null;
|
|
633
|
+
chartexRegionMap?: ChartexRegionMap | null;
|
|
634
|
+
chartexHistogramBinning?: ChartexHistogramBinning | null;
|
|
583
635
|
chartexAccents?: string[] | null;
|
|
584
636
|
chartexColorPalette?: Array<string | null> | null;
|
|
585
637
|
chartexColorStyleMethod?: string | null;
|
|
586
638
|
chartexDataPointStyle?: ChartExElementStyle | null;
|
|
587
639
|
chartexDataPointLineStyle?: ChartExElementStyle | null;
|
|
640
|
+
chartexSeriesLineStyle?: ChartExElementStyle | null;
|
|
588
641
|
chartexDataPointMarkerStyle?: ChartExElementStyle | null;
|
|
642
|
+
chartexMarkerSizePt?: number | null;
|
|
643
|
+
chartexMarkerSymbol?: string | null;
|
|
644
|
+
chartexConnectorLines?: boolean | null;
|
|
645
|
+
}
|
|
646
|
+
interface ChartStockBarPaint {
|
|
647
|
+
fillColor?: string | null;
|
|
648
|
+
fillHidden?: boolean | null;
|
|
649
|
+
lineColor?: string | null;
|
|
650
|
+
lineWidthEmu?: number | null;
|
|
651
|
+
lineHidden?: boolean | null;
|
|
652
|
+
}
|
|
653
|
+
interface ChartStockUpDownBarStyle {
|
|
654
|
+
gapWidthPercent: number;
|
|
655
|
+
up: ChartStockBarPaint;
|
|
656
|
+
down: ChartStockBarPaint;
|
|
657
|
+
}
|
|
658
|
+
interface ChartOfPie {
|
|
659
|
+
type: 'pie' | 'bar';
|
|
660
|
+
splitType: 'auto' | 'cust' | 'percent' | 'pos' | 'val';
|
|
661
|
+
splitPos?: number | null;
|
|
662
|
+
customSplitIndices?: number[] | null;
|
|
663
|
+
secondPieSizePercent: number;
|
|
664
|
+
gapWidthPercent: number;
|
|
665
|
+
seriesLines: boolean;
|
|
666
|
+
}
|
|
667
|
+
interface ChartThreeD {
|
|
668
|
+
rotationX?: number | null;
|
|
669
|
+
rotationY?: number | null;
|
|
670
|
+
heightPercent?: number | null;
|
|
671
|
+
depthPercent?: number | null;
|
|
672
|
+
perspective?: number | null;
|
|
673
|
+
rightAngleAxes?: boolean | null;
|
|
674
|
+
gapDepthPercent?: number | null;
|
|
675
|
+
shape?: string | null;
|
|
589
676
|
}
|
|
590
677
|
interface ChartTextRun {
|
|
591
678
|
text: string;
|
|
@@ -606,12 +693,18 @@ interface ChartTextBox {
|
|
|
606
693
|
paragraphs: ChartTextParagraph[];
|
|
607
694
|
verticalAnchor?: 't' | 'ctr' | 'b' | 'just' | 'dist' | string | null;
|
|
608
695
|
wrap?: 'none' | 'square' | string | null;
|
|
696
|
+
lIns?: number;
|
|
697
|
+
tIns?: number;
|
|
698
|
+
rIns?: number;
|
|
699
|
+
bIns?: number;
|
|
609
700
|
}
|
|
610
701
|
interface ChartexBoxSeries {
|
|
611
702
|
name: string;
|
|
703
|
+
chartexFormatIdx?: number | null;
|
|
612
704
|
color?: string | null;
|
|
613
705
|
lineColor?: string | null;
|
|
614
706
|
lineWidthEmu?: number | null;
|
|
707
|
+
chartexStyle?: ChartExElementStyle | null;
|
|
615
708
|
valuesByCategory: number[][];
|
|
616
709
|
meanMarker: boolean;
|
|
617
710
|
meanLine: boolean;
|
|
@@ -620,6 +713,7 @@ interface ChartexBoxSeries {
|
|
|
620
713
|
quartileMethod: string;
|
|
621
714
|
}
|
|
622
715
|
interface ChartexBoxWhisker {
|
|
716
|
+
oneBoxPerSeries?: boolean;
|
|
623
717
|
categories: string[];
|
|
624
718
|
series: ChartexBoxSeries[];
|
|
625
719
|
}
|
|
@@ -634,6 +728,46 @@ interface ChartexTreemap {
|
|
|
634
728
|
rows: ChartexSunburstRow[];
|
|
635
729
|
parentLabelLayout?: string | null;
|
|
636
730
|
}
|
|
731
|
+
interface ChartexRegionMapRow {
|
|
732
|
+
label: string;
|
|
733
|
+
entityId?: string | null;
|
|
734
|
+
value?: number | null;
|
|
735
|
+
}
|
|
736
|
+
interface ChartexGeography {
|
|
737
|
+
projectionType?: 'mercator' | 'miller' | 'robinson' | 'albers' | string | null;
|
|
738
|
+
viewedRegionType?: string | null;
|
|
739
|
+
cultureLanguage?: string | null;
|
|
740
|
+
cultureRegion?: string | null;
|
|
741
|
+
attribution?: string | null;
|
|
742
|
+
cacheProvider?: string | null;
|
|
743
|
+
cachePresent: boolean;
|
|
744
|
+
}
|
|
745
|
+
interface ChartexValueColorStop {
|
|
746
|
+
kind: 'extremeValue' | 'number' | 'percent' | string;
|
|
747
|
+
value?: number | null;
|
|
748
|
+
}
|
|
749
|
+
interface ChartexRegionMapColors {
|
|
750
|
+
stopCount?: 2 | 3 | null;
|
|
751
|
+
minColor?: string | null;
|
|
752
|
+
midColor?: string | null;
|
|
753
|
+
maxColor?: string | null;
|
|
754
|
+
minPosition?: ChartexValueColorStop | null;
|
|
755
|
+
midPosition?: ChartexValueColorStop | null;
|
|
756
|
+
maxPosition?: ChartexValueColorStop | null;
|
|
757
|
+
}
|
|
758
|
+
interface ChartexRegionMap {
|
|
759
|
+
rows: ChartexRegionMapRow[];
|
|
760
|
+
regionLabelLayout?: 'none' | 'bestFitOnly' | 'showAll' | null;
|
|
761
|
+
geography?: ChartexGeography | null;
|
|
762
|
+
colors?: ChartexRegionMapColors | null;
|
|
763
|
+
}
|
|
764
|
+
interface ChartexHistogramBinning {
|
|
765
|
+
binSize?: number | null;
|
|
766
|
+
binCount?: number | null;
|
|
767
|
+
intervalClosed?: 'l' | 'r' | null;
|
|
768
|
+
underflow?: number | null;
|
|
769
|
+
overflow?: number | null;
|
|
770
|
+
}
|
|
637
771
|
interface SecondaryValueAxis {
|
|
638
772
|
min: number | null;
|
|
639
773
|
max: number | null;
|
|
@@ -642,14 +776,37 @@ interface SecondaryValueAxis {
|
|
|
642
776
|
formatCode?: string | null;
|
|
643
777
|
fontColor?: string | null;
|
|
644
778
|
fontSizeHpt?: number | null;
|
|
779
|
+
fontItalic?: boolean | null;
|
|
780
|
+
fontBold?: boolean | null;
|
|
781
|
+
fontFace?: string | null;
|
|
645
782
|
lineColor?: string | null;
|
|
646
783
|
lineWidthEmu?: number | null;
|
|
647
784
|
lineHidden: boolean;
|
|
648
785
|
majorTickMark: string;
|
|
786
|
+
minorTickMark?: string | null;
|
|
787
|
+
minorGridlines?: boolean;
|
|
788
|
+
minorGridlineColor?: string | null;
|
|
789
|
+
minorGridlineWidthEmu?: number | null;
|
|
790
|
+
minorGridlineDash?: string | null;
|
|
791
|
+
majorGridlines?: boolean;
|
|
792
|
+
majorGridlineColor?: string | null;
|
|
793
|
+
majorGridlineWidthEmu?: number | null;
|
|
794
|
+
majorGridlineDash?: string | null;
|
|
649
795
|
majorUnit?: number | null;
|
|
796
|
+
minorUnit?: number | null;
|
|
797
|
+
logBase?: number | null;
|
|
798
|
+
orientation?: 'minMax' | 'maxMin' | string | null;
|
|
799
|
+
tickLabelPos?: string | null;
|
|
800
|
+
crosses?: string | null;
|
|
801
|
+
crossesAt?: number | null;
|
|
650
802
|
titleFontSizeHpt?: number | null;
|
|
651
803
|
titleFontBold?: boolean | null;
|
|
804
|
+
titleFontItalic?: boolean | null;
|
|
652
805
|
titleFontColor?: string | null;
|
|
806
|
+
titleFontFace?: string | null;
|
|
807
|
+
titleRotation?: number | null;
|
|
808
|
+
titleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
|
|
809
|
+
titleManualLayout?: ChartManualLayout | null;
|
|
653
810
|
}
|
|
654
811
|
interface ChartManualLayout {
|
|
655
812
|
xMode?: string;
|
|
@@ -672,6 +829,8 @@ interface LegendManualLayout {
|
|
|
672
829
|
w: number;
|
|
673
830
|
h: number;
|
|
674
831
|
}
|
|
832
|
+
//#endregion
|
|
833
|
+
//#region dist/.types-work/hyperlink-yiXkZo1W.d.ts
|
|
675
834
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
676
835
|
type OoxmlFormat = 'docx' | 'xlsx' | 'pptx';
|
|
677
836
|
interface OoxmlResourceUsageSnapshot {
|
|
@@ -1792,8 +1951,14 @@ interface MergeCell {
|
|
|
1792
1951
|
}
|
|
1793
1952
|
interface Worksheet {
|
|
1794
1953
|
name: string;
|
|
1954
|
+
isChartSheet?: boolean;
|
|
1795
1955
|
rows: Row[];
|
|
1796
1956
|
colWidths: Record<number, number>;
|
|
1957
|
+
colWidthRanges?: Array<{
|
|
1958
|
+
min: number;
|
|
1959
|
+
max: number;
|
|
1960
|
+
width: number;
|
|
1961
|
+
}>;
|
|
1797
1962
|
rowHeights: Record<number, number>;
|
|
1798
1963
|
colOutlineLevels?: Record<number, number>;
|
|
1799
1964
|
colCollapsed?: Record<number, boolean>;
|