@silurus/ooxml 0.78.1 → 0.79.1

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.
Files changed (46) hide show
  1. package/README.md +39 -1
  2. package/THIRD_PARTY_NOTICES.md +13 -0
  3. package/dist/{canvas-viewer-mechanics-B4K_t5X_.js → canvas-viewer-mechanics-DJ9yfiLN.js} +1 -1
  4. package/dist/chart-number-format-tjYUR9eS.js +435 -0
  5. package/dist/dash-CMzZIDz_.js +824 -0
  6. package/dist/{document-pull-client-5AakVD6e.js → document-pull-client-DYoybVCn.js} +2119 -2113
  7. package/dist/{docx-bjhRwb2u.js → docx-CSk_-kj_.js} +65 -56
  8. package/dist/docx.mjs +4 -4
  9. package/dist/docx_parser_bg.wasm +0 -0
  10. package/dist/index.mjs +3 -3
  11. package/dist/{line-distribute-BVFW1-Hs.js → line-distribute-CU7vu7XS.js} +1 -1
  12. package/dist/{line-metrics-DS0NS2Iq.js → line-metrics-A77J_KRx.js} +4229 -3233
  13. package/dist/math.mjs +1 -1
  14. package/dist/node.mjs +322 -322
  15. package/dist/{pptx-D1rCrHGR.js → pptx-CO1Ut97p.js} +192 -183
  16. package/dist/pptx.mjs +5 -5
  17. package/dist/pptx_parser_bg.wasm +0 -0
  18. package/dist/region-map.mjs +12708 -0
  19. package/dist/{render-DhlT5jxZ.js → render-C5m7Ddwx.js} +1 -1
  20. package/dist/render-worker-host-BhMT5U73.js +27 -0
  21. package/dist/render-worker-host-DNMxGh5s.js +27 -0
  22. package/dist/render-worker-host-DWyg7wio.js +27 -0
  23. package/dist/{resource-measurement-BA-4Q-II.js → resource-measurement-COxqtfGk.js} +1 -1
  24. package/dist/{session-C_HGxbRD.js → session-CJwZaquG.js} +10 -10
  25. package/dist/{slide-pull-client-BiC4sVGi.js → slide-pull-client-CFHNk0ek.js} +584 -583
  26. package/dist/three-d.mjs +2426 -0
  27. package/dist/types/docx.d.ts +251 -16
  28. package/dist/types/index.d.ts +266 -20
  29. package/dist/types/math.d.ts +1 -1
  30. package/dist/types/node.d.ts +225 -1
  31. package/dist/types/pptx.d.ts +253 -16
  32. package/dist/types/region-map.d.ts +586 -0
  33. package/dist/types/three-d.d.ts +586 -0
  34. package/dist/types/xlsx.d.ts +256 -16
  35. package/dist/{worksheet-pull-client-BnvgeqfG.js → worksheet-pull-client-CziyJf24.js} +13 -13
  36. package/dist/{xlsx-BG_WYSc0.js → xlsx-DHQmjAfh.js} +1246 -1073
  37. package/dist/xlsx.mjs +5 -5
  38. package/dist/xlsx_parser_bg.wasm +0 -0
  39. package/package.json +13 -1
  40. package/dist/render-worker-host-CtJo7hc9.js +0 -27
  41. package/dist/render-worker-host-D8vv-Asx.js +0 -27
  42. package/dist/render-worker-host-DAjG9nmw.js +0 -27
  43. /package/dist/{highlight-rect-CAkCWJ37.js → highlight-rect-cCvVU-MW.js} +0 -0
  44. /package/dist/{mathjax-CMjda8Ip.js → mathjax-Dqo857oC.js} +0 -0
  45. /package/dist/{transfer-DCu4c2BL.js → transfer-3QEJrsJa.js} +0 -0
  46. /package/dist/{visible-index-CgyJLAS_.js → visible-index-CKvgpUrf.js} +0 -0
@@ -1,4 +1,4 @@
1
- //#region dist/.types-work/hyperlink-DpimohAS.d.ts
1
+ //#region dist/.types-work/chart-BFzw-erU.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,47 @@ 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
+ labelFontItalic?: boolean | null;
409
+ labelFontColor?: string | null;
410
+ labelFontFace?: string | null;
411
+ labelBox?: ChartLabelBox | null;
412
+ labelTextAlign?: string | null;
400
413
  lineColor?: string | null;
401
414
  lineWidthEmu?: number | null;
415
+ lineDash?: string | null;
416
+ lineHidden?: boolean | null;
402
417
  }
403
418
  interface ChartDataPointOverride {
404
419
  idx: number;
405
420
  color?: string;
421
+ fillHidden?: boolean;
422
+ lineColor?: string;
423
+ lineWidthEmu?: number;
424
+ lineDash?: string;
425
+ lineHidden?: boolean;
406
426
  markerSymbol?: string;
407
427
  markerSize?: number;
408
428
  markerFill?: string;
409
429
  markerLine?: string;
430
+ markerLineWidthEmu?: number;
410
431
  explosion?: number;
411
432
  }
412
433
  interface ChartDataLabelOverride {
413
434
  idx: number;
414
435
  text: string;
436
+ richRuns?: ChartTextRun[];
415
437
  position?: string;
416
438
  fontColor?: string;
417
439
  fontSizeHpt?: number;
440
+ fontFace?: string;
418
441
  fontBold?: boolean;
442
+ formatCode?: string;
443
+ separator?: string;
444
+ manualLayout?: ChartManualLayout;
419
445
  labelBox?: ChartLabelBox;
420
446
  showVal?: boolean;
421
447
  showCatName?: boolean;
@@ -439,6 +465,7 @@ interface ChartSeriesDataLabels {
439
465
  separator?: string;
440
466
  fontBold?: boolean;
441
467
  fontSizeHpt?: number;
468
+ fontFace?: string;
442
469
  labelBox?: ChartLabelBox;
443
470
  showLeaderLines?: boolean;
444
471
  leaderLineColor?: string;
@@ -459,9 +486,11 @@ interface ChartExElementStyle {
459
486
  fillPaints?: Array<SolidFill | GradientFill | PatternFill | null> | null;
460
487
  fillColors?: Array<string | null> | null;
461
488
  fillHidden?: boolean | null;
489
+ fillNoStyle?: boolean | null;
462
490
  lineColors?: Array<string | null> | null;
463
491
  lineWidthEmu?: number | null;
464
492
  lineHidden?: boolean | null;
493
+ lineNoStyle?: boolean | null;
465
494
  lineDash?: string | null;
466
495
  lineCap?: string | null;
467
496
  lineJoin?: string | null;
@@ -506,6 +535,8 @@ interface ChartModel {
506
535
  subtotalIndices: number[];
507
536
  legendManualLayout?: LegendManualLayout | null;
508
537
  valAxisFormatCode?: string | null;
538
+ valAxisDisplayUnits?: ChartDisplayUnits | null;
539
+ catAxisDisplayUnits?: ChartDisplayUnits | null;
509
540
  barGapWidth?: number | null;
510
541
  barOverlap?: number | null;
511
542
  dataLabelPosition?: string | null;
@@ -513,13 +544,23 @@ interface ChartModel {
513
544
  dataLabelFormatCode?: string | null;
514
545
  titleFontBold?: boolean | null;
515
546
  catAxisFontBold?: boolean | null;
547
+ catAxisFontItalic?: boolean | null;
516
548
  valAxisFontBold?: boolean | null;
549
+ valAxisFontItalic?: boolean | null;
517
550
  catAxisTitleFontSizeHpt?: number | null;
518
551
  catAxisTitleFontBold?: boolean | null;
552
+ catAxisTitleFontItalic?: boolean | null;
519
553
  catAxisTitleFontColor?: string | null;
554
+ catAxisTitleRotation?: number | null;
555
+ catAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
556
+ catAxisTitleManualLayout?: ChartManualLayout | null;
520
557
  valAxisTitleFontSizeHpt?: number | null;
521
558
  valAxisTitleFontBold?: boolean | null;
559
+ valAxisTitleFontItalic?: boolean | null;
522
560
  valAxisTitleFontColor?: string | null;
561
+ valAxisTitleRotation?: number | null;
562
+ valAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
563
+ valAxisTitleManualLayout?: ChartManualLayout | null;
523
564
  catAxisFontFace?: string | null;
524
565
  valAxisFontFace?: string | null;
525
566
  catAxisTitleFontFace?: string | null;
@@ -529,6 +570,9 @@ interface ChartModel {
529
570
  legendFontColor?: string | null;
530
571
  legendFontSizeHpt?: number | null;
531
572
  legendFontBold?: boolean | null;
573
+ legendFillColor?: string | null;
574
+ legendLineColor?: string | null;
575
+ legendLineWidthEmu?: number | null;
532
576
  themeMajorFontLatin?: string | null;
533
577
  themeMinorFontLatin?: string | null;
534
578
  chartBorderColor?: string | null;
@@ -561,12 +605,24 @@ interface ChartModel {
561
605
  catAxisMajorGridlines?: boolean | null;
562
606
  valAxisGridlineColor?: string | null;
563
607
  valAxisGridlineWidthEmu?: number | null;
608
+ valAxisGridlineDash?: string | null;
564
609
  catAxisGridlineColor?: string | null;
565
610
  catAxisGridlineWidthEmu?: number | null;
611
+ catAxisGridlineDash?: string | null;
566
612
  valAxisMinorGridlines?: boolean | null;
613
+ valAxisMinorGridlineColor?: string | null;
614
+ valAxisMinorGridlineWidthEmu?: number | null;
615
+ valAxisMinorGridlineDash?: string | null;
616
+ catAxisMinorGridlines?: boolean | null;
617
+ catAxisMinorGridlineColor?: string | null;
618
+ catAxisMinorGridlineWidthEmu?: number | null;
619
+ catAxisMinorGridlineDash?: string | null;
567
620
  valAxisMajorUnit?: number | null;
568
621
  valAxisMinorUnit?: number | null;
622
+ catAxisMajorUnit?: number | null;
623
+ catAxisMinorUnit?: number | null;
569
624
  valAxisLogBase?: number | null;
625
+ catAxisLogBase?: number | null;
570
626
  valAxisOrientation?: 'minMax' | 'maxMin' | string | null;
571
627
  catAxisOrientation?: 'minMax' | 'maxMin' | string | null;
572
628
  catAxisTickLabelPos?: string | null;
@@ -577,15 +633,93 @@ interface ChartModel {
577
633
  stockHiLowLines?: boolean | null;
578
634
  stockHiLowLineColor?: string | null;
579
635
  stockUpDownBars?: boolean | null;
636
+ stockUpDownBarStyle?: ChartStockUpDownBarStyle | null;
637
+ ofPie?: ChartOfPie | null;
638
+ threeD?: ChartThreeD | null;
580
639
  chartexBox?: ChartexBoxWhisker | null;
581
640
  chartexSunburst?: ChartexSunburst | null;
582
641
  chartexTreemap?: ChartexTreemap | null;
642
+ chartexRegionMap?: ChartexRegionMap | null;
643
+ chartexHistogramBinning?: ChartexHistogramBinning | null;
583
644
  chartexAccents?: string[] | null;
584
645
  chartexColorPalette?: Array<string | null> | null;
585
646
  chartexColorStyleMethod?: string | null;
586
647
  chartexDataPointStyle?: ChartExElementStyle | null;
587
648
  chartexDataPointLineStyle?: ChartExElementStyle | null;
649
+ chartexSeriesLineStyle?: ChartExElementStyle | null;
588
650
  chartexDataPointMarkerStyle?: ChartExElementStyle | null;
651
+ chartexMarkerSizePt?: number | null;
652
+ chartexMarkerSymbol?: string | null;
653
+ chartexConnectorLines?: boolean | null;
654
+ }
655
+ interface ChartStockBarPaint {
656
+ fillColor?: string | null;
657
+ fillHidden?: boolean | null;
658
+ lineColor?: string | null;
659
+ lineWidthEmu?: number | null;
660
+ lineHidden?: boolean | null;
661
+ }
662
+ interface ChartStockUpDownBarStyle {
663
+ gapWidthPercent: number;
664
+ up: ChartStockBarPaint;
665
+ down: ChartStockBarPaint;
666
+ }
667
+ interface ChartOfPie {
668
+ type: 'pie' | 'bar';
669
+ splitType: 'auto' | 'cust' | 'percent' | 'pos' | 'val';
670
+ splitPos?: number | null;
671
+ customSplitIndices?: number[] | null;
672
+ secondPieSizePercent: number;
673
+ gapWidthPercent: number;
674
+ seriesLines: boolean;
675
+ }
676
+ interface ChartThreeDSurface {
677
+ fillColor?: string | null;
678
+ fillHidden?: boolean | null;
679
+ lineColor?: string | null;
680
+ lineWidthEmu?: number | null;
681
+ lineDash?: string | null;
682
+ lineHidden?: boolean | null;
683
+ }
684
+ interface ChartThreeD {
685
+ rotationX?: number | null;
686
+ rotationY?: number | null;
687
+ heightPercent?: number | null;
688
+ depthPercent?: number | null;
689
+ perspective?: number | null;
690
+ rightAngleAxes?: boolean | null;
691
+ gapDepthPercent?: number | null;
692
+ shape?: string | null;
693
+ barGrouping?: 'standard' | 'clustered' | 'stacked' | 'percentStacked' | string | null;
694
+ seriesAxis?: ChartThreeDSeriesAxis | null;
695
+ floor?: ChartThreeDSurface | null;
696
+ sideWall?: ChartThreeDSurface | null;
697
+ backWall?: ChartThreeDSurface | null;
698
+ }
699
+ interface ChartThreeDSeriesAxis {
700
+ title?: string | null;
701
+ hidden: boolean;
702
+ orientation?: 'minMax' | 'maxMin' | string | null;
703
+ tickLabelPos?: string | null;
704
+ tickLabelSkip?: number | null;
705
+ tickMarkSkip?: number | null;
706
+ majorTickMark: string;
707
+ fontColor?: string | null;
708
+ fontSizeHpt?: number | null;
709
+ fontBold?: boolean | null;
710
+ fontItalic?: boolean | null;
711
+ fontFace?: string | null;
712
+ lineColor?: string | null;
713
+ lineWidthEmu?: number | null;
714
+ lineHidden: boolean;
715
+ titleFontSizeHpt?: number | null;
716
+ titleFontBold?: boolean | null;
717
+ titleFontItalic?: boolean | null;
718
+ titleFontColor?: string | null;
719
+ titleFontFace?: string | null;
720
+ titleRotation?: number | null;
721
+ titleVerticalMode?: ChartModel['catAxisTitleVerticalMode'];
722
+ titleManualLayout?: ChartManualLayout | null;
589
723
  }
590
724
  interface ChartTextRun {
591
725
  text: string;
@@ -613,9 +747,11 @@ interface ChartTextBox {
613
747
  }
614
748
  interface ChartexBoxSeries {
615
749
  name: string;
750
+ chartexFormatIdx?: number | null;
616
751
  color?: string | null;
617
752
  lineColor?: string | null;
618
753
  lineWidthEmu?: number | null;
754
+ chartexStyle?: ChartExElementStyle | null;
619
755
  valuesByCategory: number[][];
620
756
  meanMarker: boolean;
621
757
  meanLine: boolean;
@@ -624,6 +760,7 @@ interface ChartexBoxSeries {
624
760
  quartileMethod: string;
625
761
  }
626
762
  interface ChartexBoxWhisker {
763
+ oneBoxPerSeries?: boolean;
627
764
  categories: string[];
628
765
  series: ChartexBoxSeries[];
629
766
  }
@@ -638,22 +775,104 @@ interface ChartexTreemap {
638
775
  rows: ChartexSunburstRow[];
639
776
  parentLabelLayout?: string | null;
640
777
  }
778
+ interface ChartexRegionMapRow {
779
+ label: string;
780
+ entityId?: string | null;
781
+ value?: number | null;
782
+ }
783
+ interface ChartexGeography {
784
+ projectionType?: 'mercator' | 'miller' | 'robinson' | 'albers' | string | null;
785
+ viewedRegionType?: string | null;
786
+ cultureLanguage?: string | null;
787
+ cultureRegion?: string | null;
788
+ attribution?: string | null;
789
+ cacheProvider?: string | null;
790
+ cachePresent: boolean;
791
+ }
792
+ interface ChartexValueColorStop {
793
+ kind: 'extremeValue' | 'number' | 'percent' | string;
794
+ value?: number | null;
795
+ }
796
+ interface ChartexRegionMapColors {
797
+ stopCount?: 2 | 3 | null;
798
+ minColor?: string | null;
799
+ midColor?: string | null;
800
+ maxColor?: string | null;
801
+ minPosition?: ChartexValueColorStop | null;
802
+ midPosition?: ChartexValueColorStop | null;
803
+ maxPosition?: ChartexValueColorStop | null;
804
+ }
805
+ interface ChartexRegionMap {
806
+ rows: ChartexRegionMapRow[];
807
+ regionLabelLayout?: 'none' | 'bestFitOnly' | 'showAll' | null;
808
+ geography?: ChartexGeography | null;
809
+ colors?: ChartexRegionMapColors | null;
810
+ }
811
+ interface ChartexHistogramBinning {
812
+ binSize?: number | null;
813
+ binCount?: number | null;
814
+ intervalClosed?: 'l' | 'r' | null;
815
+ underflow?: number | null;
816
+ overflow?: number | null;
817
+ }
641
818
  interface SecondaryValueAxis {
642
819
  min: number | null;
643
820
  max: number | null;
644
821
  title: string | null;
645
822
  hidden: boolean;
646
823
  formatCode?: string | null;
824
+ displayUnits?: ChartDisplayUnits | null;
647
825
  fontColor?: string | null;
648
826
  fontSizeHpt?: number | null;
827
+ fontItalic?: boolean | null;
828
+ fontBold?: boolean | null;
829
+ fontFace?: string | null;
649
830
  lineColor?: string | null;
650
831
  lineWidthEmu?: number | null;
651
832
  lineHidden: boolean;
652
833
  majorTickMark: string;
834
+ minorTickMark?: string | null;
835
+ minorGridlines?: boolean;
836
+ minorGridlineColor?: string | null;
837
+ minorGridlineWidthEmu?: number | null;
838
+ minorGridlineDash?: string | null;
839
+ majorGridlines?: boolean;
840
+ majorGridlineColor?: string | null;
841
+ majorGridlineWidthEmu?: number | null;
842
+ majorGridlineDash?: string | null;
653
843
  majorUnit?: number | null;
844
+ minorUnit?: number | null;
845
+ logBase?: number | null;
846
+ orientation?: 'minMax' | 'maxMin' | string | null;
847
+ tickLabelPos?: string | null;
848
+ tickLabelSkip?: number | null;
849
+ tickMarkSkip?: number | null;
850
+ crosses?: string | null;
851
+ crossesAt?: number | null;
654
852
  titleFontSizeHpt?: number | null;
655
853
  titleFontBold?: boolean | null;
854
+ titleFontItalic?: boolean | null;
656
855
  titleFontColor?: string | null;
856
+ titleFontFace?: string | null;
857
+ titleRotation?: number | null;
858
+ titleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
859
+ titleManualLayout?: ChartManualLayout | null;
860
+ }
861
+ interface ChartDisplayUnits {
862
+ divisor: number;
863
+ builtInUnit?: string | null;
864
+ label?: ChartDisplayUnitsLabel | null;
865
+ }
866
+ interface ChartDisplayUnitsLabel {
867
+ text?: string | null;
868
+ manualLayout?: ChartManualLayout | null;
869
+ fontSizeHpt?: number | null;
870
+ fontBold?: boolean | null;
871
+ fontItalic?: boolean | null;
872
+ fontColor?: string | null;
873
+ fontFace?: string | null;
874
+ rotation?: number | null;
875
+ boxStyle?: ChartLabelBox | null;
657
876
  }
658
877
  interface ChartManualLayout {
659
878
  xMode?: string;
@@ -676,6 +895,8 @@ interface LegendManualLayout {
676
895
  w: number;
677
896
  h: number;
678
897
  }
898
+ //#endregion
899
+ //#region dist/.types-work/hyperlink-qwS_UhA7.d.ts
679
900
  type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
680
901
  type OoxmlFormat = 'docx' | 'xlsx' | 'pptx';
681
902
  interface OoxmlResourceUsageSnapshot {
@@ -1796,6 +2017,7 @@ interface MergeCell {
1796
2017
  }
1797
2018
  interface Worksheet {
1798
2019
  name: string;
2020
+ isChartSheet?: boolean;
1799
2021
  rows: Row[];
1800
2022
  colWidths: Record<number, number>;
1801
2023
  colWidthRanges?: Array<{
@@ -1809,6 +2031,7 @@ interface Worksheet {
1809
2031
  colHidden?: Record<number, boolean>;
1810
2032
  defaultColWidth: number;
1811
2033
  defaultRowHeight: number;
2034
+ defaultRowHeightCustom?: boolean;
1812
2035
  mergeCells: MergeCell[];
1813
2036
  freezeRows: number;
1814
2037
  freezeCols: number;
@@ -2307,6 +2530,7 @@ interface CfValue {
2307
2530
  interface Row {
2308
2531
  index: number;
2309
2532
  height: number | null;
2533
+ customHeight?: boolean;
2310
2534
  cells: Cell[];
2311
2535
  outlineLevel?: number;
2312
2536
  collapsed?: boolean;