@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,16 +1,4 @@
1
- //#region dist/.types-work/mathjax-CKU2W8zq.d.ts
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-DpimohAS.d.ts
1
+ //#region dist/.types-work/chart-BFzw-erU.d.ts
14
2
  type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
15
3
  interface MathRun {
16
4
  kind: 'run';
@@ -186,10 +174,13 @@ type SpaceLine = {
186
174
  };
187
175
  interface ChartSeries {
188
176
  name: string;
177
+ chartexFormatIdx?: number | null;
189
178
  color: string | null;
190
179
  fillPattern?: PatternFill | null;
180
+ chartexStyle?: ChartExElementStyle | null;
191
181
  lineColor?: string | null;
192
182
  lineWidthEmu?: number | null;
183
+ threeDShape?: 'box' | 'cylinder' | 'cone' | 'coneToMax' | 'pyramid' | 'pyramidToMax' | string | null;
193
184
  values: (number | null)[];
194
185
  dataPointColors?: (string | null)[] | null;
195
186
  dataLabelColors?: (string | null)[] | null;
@@ -205,6 +196,7 @@ interface ChartSeries {
205
196
  markerSize?: number | null;
206
197
  markerFill?: string | null;
207
198
  markerLine?: string | null;
199
+ markerLineWidthEmu?: number | null;
208
200
  dataPointOverrides?: ChartDataPointOverride[] | null;
209
201
  dataLabelOverrides?: ChartDataLabelOverride[] | null;
210
202
  seriesDataLabels?: ChartSeriesDataLabels | null;
@@ -223,25 +215,47 @@ interface ChartTrendline {
223
215
  intercept?: number | null;
224
216
  dispRSqr?: boolean | null;
225
217
  dispEq?: boolean | null;
218
+ labelManualLayout?: ChartManualLayout | null;
219
+ labelText?: string | null;
220
+ labelFontSizeHpt?: number | null;
221
+ labelFontBold?: boolean | null;
222
+ labelFontItalic?: boolean | null;
223
+ labelFontColor?: string | null;
224
+ labelFontFace?: string | null;
225
+ labelBox?: ChartLabelBox | null;
226
+ labelTextAlign?: string | null;
226
227
  lineColor?: string | null;
227
228
  lineWidthEmu?: number | null;
229
+ lineDash?: string | null;
230
+ lineHidden?: boolean | null;
228
231
  }
229
232
  interface ChartDataPointOverride {
230
233
  idx: number;
231
234
  color?: string;
235
+ fillHidden?: boolean;
236
+ lineColor?: string;
237
+ lineWidthEmu?: number;
238
+ lineDash?: string;
239
+ lineHidden?: boolean;
232
240
  markerSymbol?: string;
233
241
  markerSize?: number;
234
242
  markerFill?: string;
235
243
  markerLine?: string;
244
+ markerLineWidthEmu?: number;
236
245
  explosion?: number;
237
246
  }
238
247
  interface ChartDataLabelOverride {
239
248
  idx: number;
240
249
  text: string;
250
+ richRuns?: ChartTextRun[];
241
251
  position?: string;
242
252
  fontColor?: string;
243
253
  fontSizeHpt?: number;
254
+ fontFace?: string;
244
255
  fontBold?: boolean;
256
+ formatCode?: string;
257
+ separator?: string;
258
+ manualLayout?: ChartManualLayout;
245
259
  labelBox?: ChartLabelBox;
246
260
  showVal?: boolean;
247
261
  showCatName?: boolean;
@@ -265,6 +279,7 @@ interface ChartSeriesDataLabels {
265
279
  separator?: string;
266
280
  fontBold?: boolean;
267
281
  fontSizeHpt?: number;
282
+ fontFace?: string;
268
283
  labelBox?: ChartLabelBox;
269
284
  showLeaderLines?: boolean;
270
285
  leaderLineColor?: string;
@@ -285,9 +300,11 @@ interface ChartExElementStyle {
285
300
  fillPaints?: Array<SolidFill | GradientFill | PatternFill | null> | null;
286
301
  fillColors?: Array<string | null> | null;
287
302
  fillHidden?: boolean | null;
303
+ fillNoStyle?: boolean | null;
288
304
  lineColors?: Array<string | null> | null;
289
305
  lineWidthEmu?: number | null;
290
306
  lineHidden?: boolean | null;
307
+ lineNoStyle?: boolean | null;
291
308
  lineDash?: string | null;
292
309
  lineCap?: string | null;
293
310
  lineJoin?: string | null;
@@ -332,6 +349,8 @@ interface ChartModel {
332
349
  subtotalIndices: number[];
333
350
  legendManualLayout?: LegendManualLayout | null;
334
351
  valAxisFormatCode?: string | null;
352
+ valAxisDisplayUnits?: ChartDisplayUnits | null;
353
+ catAxisDisplayUnits?: ChartDisplayUnits | null;
335
354
  barGapWidth?: number | null;
336
355
  barOverlap?: number | null;
337
356
  dataLabelPosition?: string | null;
@@ -339,13 +358,23 @@ interface ChartModel {
339
358
  dataLabelFormatCode?: string | null;
340
359
  titleFontBold?: boolean | null;
341
360
  catAxisFontBold?: boolean | null;
361
+ catAxisFontItalic?: boolean | null;
342
362
  valAxisFontBold?: boolean | null;
363
+ valAxisFontItalic?: boolean | null;
343
364
  catAxisTitleFontSizeHpt?: number | null;
344
365
  catAxisTitleFontBold?: boolean | null;
366
+ catAxisTitleFontItalic?: boolean | null;
345
367
  catAxisTitleFontColor?: string | null;
368
+ catAxisTitleRotation?: number | null;
369
+ catAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
370
+ catAxisTitleManualLayout?: ChartManualLayout | null;
346
371
  valAxisTitleFontSizeHpt?: number | null;
347
372
  valAxisTitleFontBold?: boolean | null;
373
+ valAxisTitleFontItalic?: boolean | null;
348
374
  valAxisTitleFontColor?: string | null;
375
+ valAxisTitleRotation?: number | null;
376
+ valAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
377
+ valAxisTitleManualLayout?: ChartManualLayout | null;
349
378
  catAxisFontFace?: string | null;
350
379
  valAxisFontFace?: string | null;
351
380
  catAxisTitleFontFace?: string | null;
@@ -355,6 +384,9 @@ interface ChartModel {
355
384
  legendFontColor?: string | null;
356
385
  legendFontSizeHpt?: number | null;
357
386
  legendFontBold?: boolean | null;
387
+ legendFillColor?: string | null;
388
+ legendLineColor?: string | null;
389
+ legendLineWidthEmu?: number | null;
358
390
  themeMajorFontLatin?: string | null;
359
391
  themeMinorFontLatin?: string | null;
360
392
  chartBorderColor?: string | null;
@@ -387,12 +419,24 @@ interface ChartModel {
387
419
  catAxisMajorGridlines?: boolean | null;
388
420
  valAxisGridlineColor?: string | null;
389
421
  valAxisGridlineWidthEmu?: number | null;
422
+ valAxisGridlineDash?: string | null;
390
423
  catAxisGridlineColor?: string | null;
391
424
  catAxisGridlineWidthEmu?: number | null;
425
+ catAxisGridlineDash?: string | null;
392
426
  valAxisMinorGridlines?: boolean | null;
427
+ valAxisMinorGridlineColor?: string | null;
428
+ valAxisMinorGridlineWidthEmu?: number | null;
429
+ valAxisMinorGridlineDash?: string | null;
430
+ catAxisMinorGridlines?: boolean | null;
431
+ catAxisMinorGridlineColor?: string | null;
432
+ catAxisMinorGridlineWidthEmu?: number | null;
433
+ catAxisMinorGridlineDash?: string | null;
393
434
  valAxisMajorUnit?: number | null;
394
435
  valAxisMinorUnit?: number | null;
436
+ catAxisMajorUnit?: number | null;
437
+ catAxisMinorUnit?: number | null;
395
438
  valAxisLogBase?: number | null;
439
+ catAxisLogBase?: number | null;
396
440
  valAxisOrientation?: 'minMax' | 'maxMin' | string | null;
397
441
  catAxisOrientation?: 'minMax' | 'maxMin' | string | null;
398
442
  catAxisTickLabelPos?: string | null;
@@ -403,15 +447,93 @@ interface ChartModel {
403
447
  stockHiLowLines?: boolean | null;
404
448
  stockHiLowLineColor?: string | null;
405
449
  stockUpDownBars?: boolean | null;
450
+ stockUpDownBarStyle?: ChartStockUpDownBarStyle | null;
451
+ ofPie?: ChartOfPie | null;
452
+ threeD?: ChartThreeD | null;
406
453
  chartexBox?: ChartexBoxWhisker | null;
407
454
  chartexSunburst?: ChartexSunburst | null;
408
455
  chartexTreemap?: ChartexTreemap | null;
456
+ chartexRegionMap?: ChartexRegionMap | null;
457
+ chartexHistogramBinning?: ChartexHistogramBinning | null;
409
458
  chartexAccents?: string[] | null;
410
459
  chartexColorPalette?: Array<string | null> | null;
411
460
  chartexColorStyleMethod?: string | null;
412
461
  chartexDataPointStyle?: ChartExElementStyle | null;
413
462
  chartexDataPointLineStyle?: ChartExElementStyle | null;
463
+ chartexSeriesLineStyle?: ChartExElementStyle | null;
414
464
  chartexDataPointMarkerStyle?: ChartExElementStyle | null;
465
+ chartexMarkerSizePt?: number | null;
466
+ chartexMarkerSymbol?: string | null;
467
+ chartexConnectorLines?: boolean | null;
468
+ }
469
+ interface ChartStockBarPaint {
470
+ fillColor?: string | null;
471
+ fillHidden?: boolean | null;
472
+ lineColor?: string | null;
473
+ lineWidthEmu?: number | null;
474
+ lineHidden?: boolean | null;
475
+ }
476
+ interface ChartStockUpDownBarStyle {
477
+ gapWidthPercent: number;
478
+ up: ChartStockBarPaint;
479
+ down: ChartStockBarPaint;
480
+ }
481
+ interface ChartOfPie {
482
+ type: 'pie' | 'bar';
483
+ splitType: 'auto' | 'cust' | 'percent' | 'pos' | 'val';
484
+ splitPos?: number | null;
485
+ customSplitIndices?: number[] | null;
486
+ secondPieSizePercent: number;
487
+ gapWidthPercent: number;
488
+ seriesLines: boolean;
489
+ }
490
+ interface ChartThreeDSurface {
491
+ fillColor?: string | null;
492
+ fillHidden?: boolean | null;
493
+ lineColor?: string | null;
494
+ lineWidthEmu?: number | null;
495
+ lineDash?: string | null;
496
+ lineHidden?: boolean | null;
497
+ }
498
+ interface ChartThreeD {
499
+ rotationX?: number | null;
500
+ rotationY?: number | null;
501
+ heightPercent?: number | null;
502
+ depthPercent?: number | null;
503
+ perspective?: number | null;
504
+ rightAngleAxes?: boolean | null;
505
+ gapDepthPercent?: number | null;
506
+ shape?: string | null;
507
+ barGrouping?: 'standard' | 'clustered' | 'stacked' | 'percentStacked' | string | null;
508
+ seriesAxis?: ChartThreeDSeriesAxis | null;
509
+ floor?: ChartThreeDSurface | null;
510
+ sideWall?: ChartThreeDSurface | null;
511
+ backWall?: ChartThreeDSurface | null;
512
+ }
513
+ interface ChartThreeDSeriesAxis {
514
+ title?: string | null;
515
+ hidden: boolean;
516
+ orientation?: 'minMax' | 'maxMin' | string | null;
517
+ tickLabelPos?: string | null;
518
+ tickLabelSkip?: number | null;
519
+ tickMarkSkip?: number | null;
520
+ majorTickMark: string;
521
+ fontColor?: string | null;
522
+ fontSizeHpt?: number | null;
523
+ fontBold?: boolean | null;
524
+ fontItalic?: boolean | null;
525
+ fontFace?: string | null;
526
+ lineColor?: string | null;
527
+ lineWidthEmu?: number | null;
528
+ lineHidden: boolean;
529
+ titleFontSizeHpt?: number | null;
530
+ titleFontBold?: boolean | null;
531
+ titleFontItalic?: boolean | null;
532
+ titleFontColor?: string | null;
533
+ titleFontFace?: string | null;
534
+ titleRotation?: number | null;
535
+ titleVerticalMode?: ChartModel['catAxisTitleVerticalMode'];
536
+ titleManualLayout?: ChartManualLayout | null;
415
537
  }
416
538
  interface ChartTextRun {
417
539
  text: string;
@@ -439,9 +561,11 @@ interface ChartTextBox {
439
561
  }
440
562
  interface ChartexBoxSeries {
441
563
  name: string;
564
+ chartexFormatIdx?: number | null;
442
565
  color?: string | null;
443
566
  lineColor?: string | null;
444
567
  lineWidthEmu?: number | null;
568
+ chartexStyle?: ChartExElementStyle | null;
445
569
  valuesByCategory: number[][];
446
570
  meanMarker: boolean;
447
571
  meanLine: boolean;
@@ -450,6 +574,7 @@ interface ChartexBoxSeries {
450
574
  quartileMethod: string;
451
575
  }
452
576
  interface ChartexBoxWhisker {
577
+ oneBoxPerSeries?: boolean;
453
578
  categories: string[];
454
579
  series: ChartexBoxSeries[];
455
580
  }
@@ -464,22 +589,104 @@ interface ChartexTreemap {
464
589
  rows: ChartexSunburstRow[];
465
590
  parentLabelLayout?: string | null;
466
591
  }
592
+ interface ChartexRegionMapRow {
593
+ label: string;
594
+ entityId?: string | null;
595
+ value?: number | null;
596
+ }
597
+ interface ChartexGeography {
598
+ projectionType?: 'mercator' | 'miller' | 'robinson' | 'albers' | string | null;
599
+ viewedRegionType?: string | null;
600
+ cultureLanguage?: string | null;
601
+ cultureRegion?: string | null;
602
+ attribution?: string | null;
603
+ cacheProvider?: string | null;
604
+ cachePresent: boolean;
605
+ }
606
+ interface ChartexValueColorStop {
607
+ kind: 'extremeValue' | 'number' | 'percent' | string;
608
+ value?: number | null;
609
+ }
610
+ interface ChartexRegionMapColors {
611
+ stopCount?: 2 | 3 | null;
612
+ minColor?: string | null;
613
+ midColor?: string | null;
614
+ maxColor?: string | null;
615
+ minPosition?: ChartexValueColorStop | null;
616
+ midPosition?: ChartexValueColorStop | null;
617
+ maxPosition?: ChartexValueColorStop | null;
618
+ }
619
+ interface ChartexRegionMap {
620
+ rows: ChartexRegionMapRow[];
621
+ regionLabelLayout?: 'none' | 'bestFitOnly' | 'showAll' | null;
622
+ geography?: ChartexGeography | null;
623
+ colors?: ChartexRegionMapColors | null;
624
+ }
625
+ interface ChartexHistogramBinning {
626
+ binSize?: number | null;
627
+ binCount?: number | null;
628
+ intervalClosed?: 'l' | 'r' | null;
629
+ underflow?: number | null;
630
+ overflow?: number | null;
631
+ }
467
632
  interface SecondaryValueAxis {
468
633
  min: number | null;
469
634
  max: number | null;
470
635
  title: string | null;
471
636
  hidden: boolean;
472
637
  formatCode?: string | null;
638
+ displayUnits?: ChartDisplayUnits | null;
473
639
  fontColor?: string | null;
474
640
  fontSizeHpt?: number | null;
641
+ fontItalic?: boolean | null;
642
+ fontBold?: boolean | null;
643
+ fontFace?: string | null;
475
644
  lineColor?: string | null;
476
645
  lineWidthEmu?: number | null;
477
646
  lineHidden: boolean;
478
647
  majorTickMark: string;
648
+ minorTickMark?: string | null;
649
+ minorGridlines?: boolean;
650
+ minorGridlineColor?: string | null;
651
+ minorGridlineWidthEmu?: number | null;
652
+ minorGridlineDash?: string | null;
653
+ majorGridlines?: boolean;
654
+ majorGridlineColor?: string | null;
655
+ majorGridlineWidthEmu?: number | null;
656
+ majorGridlineDash?: string | null;
479
657
  majorUnit?: number | null;
658
+ minorUnit?: number | null;
659
+ logBase?: number | null;
660
+ orientation?: 'minMax' | 'maxMin' | string | null;
661
+ tickLabelPos?: string | null;
662
+ tickLabelSkip?: number | null;
663
+ tickMarkSkip?: number | null;
664
+ crosses?: string | null;
665
+ crossesAt?: number | null;
480
666
  titleFontSizeHpt?: number | null;
481
667
  titleFontBold?: boolean | null;
668
+ titleFontItalic?: boolean | null;
482
669
  titleFontColor?: string | null;
670
+ titleFontFace?: string | null;
671
+ titleRotation?: number | null;
672
+ titleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
673
+ titleManualLayout?: ChartManualLayout | null;
674
+ }
675
+ interface ChartDisplayUnits {
676
+ divisor: number;
677
+ builtInUnit?: string | null;
678
+ label?: ChartDisplayUnitsLabel | null;
679
+ }
680
+ interface ChartDisplayUnitsLabel {
681
+ text?: string | null;
682
+ manualLayout?: ChartManualLayout | null;
683
+ fontSizeHpt?: number | null;
684
+ fontBold?: boolean | null;
685
+ fontItalic?: boolean | null;
686
+ fontColor?: string | null;
687
+ fontFace?: string | null;
688
+ rotation?: number | null;
689
+ boxStyle?: ChartLabelBox | null;
483
690
  }
484
691
  interface ChartManualLayout {
485
692
  xMode?: string;
@@ -508,6 +715,30 @@ interface ChartRect {
508
715
  w: number;
509
716
  h: number;
510
717
  }
718
+ //#endregion
719
+ //#region dist/.types-work/mathjax-rjjokY7u.d.ts
720
+ interface MathSvg {
721
+ svg: string;
722
+ widthEm: number;
723
+ ascentEm: number;
724
+ descentEm: number;
725
+ }
726
+ interface MathRenderer {
727
+ loadMathJax(): Promise<void>;
728
+ mathMLToSvg(mathml: string): Promise<MathSvg>;
729
+ }
730
+ //#endregion
731
+ //#region dist/.types-work/three-d-contract-EE62eNRv.d.ts
732
+ interface ChartThreeDRenderer {
733
+ render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
734
+ }
735
+ //#endregion
736
+ //#region dist/.types-work/region-map-contract-D3eTzib8.d.ts
737
+ interface ChartRegionMapRenderer {
738
+ render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
739
+ }
740
+ //#endregion
741
+ //#region dist/.types-work/hyperlink-qwS_UhA7.d.ts
511
742
  type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
512
743
  type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
513
744
  declare class OoxmlError extends Error {
@@ -590,6 +821,8 @@ interface LoadOptions$1 {
590
821
  onResourceMetrics?: (metrics: OoxmlResourceMetrics) => void;
591
822
  workerTimeoutMs?: number;
592
823
  math?: MathRenderer;
824
+ threeD?: ChartThreeDRenderer;
825
+ regionMap?: ChartRegionMapRenderer;
593
826
  }
594
827
  type OoxmlDecodedImageLimitMetric = 'image-pixels' | 'active-decoded-bytes';
595
828
  declare class OoxmlDecodedImageLimitError extends RangeError {
@@ -610,7 +843,7 @@ type HyperlinkTarget = {
610
843
  };
611
844
  declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
612
845
  //#endregion
613
- //#region dist/.types-work/find-highlight-DcNlrW8O.d.ts
846
+ //#region dist/.types-work/find-highlight-lh8Qagl7.d.ts
614
847
  interface ViewerContextMenuEvent<TContext> {
615
848
  readonly originalEvent: MouseEvent;
616
849
  getContext(): Promise<TContext | null>;
@@ -640,7 +873,7 @@ interface FindHighlightColors {
640
873
  active?: string;
641
874
  }
642
875
  //#endregion
643
- //#region dist/.types-work/xlsx-Cog67KEJ.d.ts
876
+ //#region dist/.types-work/xlsx-CUoAZmBw.d.ts
644
877
  type ShapeFill = Exclude<Fill, {
645
878
  fillType: 'image';
646
879
  } | {
@@ -667,6 +900,7 @@ interface MergeCell {
667
900
  }
668
901
  interface Worksheet {
669
902
  name: string;
903
+ isChartSheet?: boolean;
670
904
  rows: Row[];
671
905
  colWidths: Record<number, number>;
672
906
  colWidthRanges?: Array<{
@@ -680,6 +914,7 @@ interface Worksheet {
680
914
  colHidden?: Record<number, boolean>;
681
915
  defaultColWidth: number;
682
916
  defaultRowHeight: number;
917
+ defaultRowHeightCustom?: boolean;
683
918
  mergeCells: MergeCell[];
684
919
  freezeRows: number;
685
920
  freezeCols: number;
@@ -1178,6 +1413,7 @@ interface CfValue {
1178
1413
  interface Row {
1179
1414
  index: number;
1180
1415
  height: number | null;
1416
+ customHeight?: boolean;
1181
1417
  cells: Cell[];
1182
1418
  outlineLevel?: number;
1183
1419
  collapsed?: boolean;
@@ -1394,6 +1630,8 @@ declare class XlsxWorkbook {
1394
1630
  private readonly _fetchImage;
1395
1631
  private resourcePolicy;
1396
1632
  private math;
1633
+ private threeD;
1634
+ private regionMap;
1397
1635
  private googleFontNames;
1398
1636
  private readonly retainedFontSets;
1399
1637
  private fontsDestroyed;
@@ -1695,6 +1933,7 @@ declare class XlsxViewerEngine implements ZoomableViewer {
1695
1933
  private setBandHidden;
1696
1934
  private recordSizeOverride;
1697
1935
  private wireSizeOverrides;
1936
+ private syncAutomaticRowOverrides;
1698
1937
  private setBandCollapsed;
1699
1938
  private afterOutlineMutation;
1700
1939
  private buildOutlineLayoutOnly;
@@ -1738,6 +1977,7 @@ declare class XlsxViewerEngine implements ZoomableViewer {
1738
1977
  private getHeaderHit;
1739
1978
  private getResizeTarget;
1740
1979
  private applyResize;
1980
+ private refitAutoRowsAfterColumnResize;
1741
1981
  setSelectionColor(color: string): void;
1742
1982
  setHiddenSheetMode(mode: HiddenSheetMode): Promise<void>;
1743
1983
  get hiddenSheetMode(): HiddenSheetMode;
@@ -1861,4 +2101,4 @@ declare class XlsxSheetViewer implements ZoomableViewer {
1861
2101
  }
1862
2102
  declare function resolveSharedStrings(ws: Worksheet, sharedStrings: SharedString[]): Worksheet;
1863
2103
  //#endregion
1864
- export { type ArrowEnd, type AutoResizeOptions, type Border, type BorderEdge, type Cell, type CellAddress, type CellFill, type CellFont, type CellValue, type CellXf, type CfIcon, type CfRule, type CfStop, type CfValue, type ChartAnchor, type ChartDataLabelOverride, type ChartDataPointOverride, 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 ConditionalFormat, type DataValidation, type DefinedName, type Duotone, type Dxf, type FillRect, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type GradientFill, type GradientFillSpec, type GradientStop, type HiddenSheetMode, type Hyperlink, type HyperlinkTarget, type ImageAnchor, type LegendManualLayout, type LoadOptions, MAX_SELECTION_AREAS, MAX_SELECTION_CONTEXT_CELLS, MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, 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 MergeCell, type NumFmt, 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 OutlinePr, type ParsedWorkbook, type PathCmd, type PathInfo, type PatternFill, type PhoneticAlignment, type PhoneticProperties, type PhoneticRun, type PhoneticType, type PivotCacheSource, type PivotDataField, type PivotDiagnostic, type PivotLocation, type PivotMetadataStatus, type PivotPageField, type PivotPartialReason, type PivotTableMetadata, type RenderViewportToBitmapOptions, type ResolvedList, type Row, type Run, type RunFont, type SecondaryValueAxis, type ShapeAnchor, type ShapeFill, type ShapeGeom, type ShapeInfo, type ShapeParagraph, type ShapeText, type ShapeTextRun, type SharedString, type SheetMeta, type SheetVisibility, type SlicerAnchor, type SlicerElementStyle, type SlicerItem, type SlicerStyle, type SolidFill, type SpaceLine, type Sparkline, type SparklineGroup, type Styles, type TableColumnInfo, type TableInfo, type ViewerContextMenuEvent, type ViewportRange, type Workbook, type Worksheet, type WorksheetCellRange, type XlsxComment, type XlsxCopyResult, type XlsxElementAnchorMarker, type XlsxElementContext, type XlsxMatchLocation, type XlsxRangeSelectionContext, type XlsxRenderViewportOptions, type XlsxScrollToCellOptions, type XlsxSelectionArea, type XlsxSelectionContext, type XlsxSelectionContextCell, type XlsxSelectionContextOptions, type XlsxSelectionInput, type XlsxSelectionState, XlsxSheetViewer, type XlsxSheetViewerOptions, type XlsxTextRunInfo, XlsxViewer, type XlsxViewerOptions, type XlsxViewportOffset, XlsxWorkbook, type ZoomableViewer, autoResize, isOoxmlDecodedImageLimitError, openExternalHyperlink, resolveSharedStrings };
2104
+ export { type ArrowEnd, type AutoResizeOptions, type Border, type BorderEdge, type Cell, type CellAddress, type CellFill, type CellFont, type CellValue, type CellXf, type CfIcon, type CfRule, type CfStop, type CfValue, type ChartAnchor, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartDisplayUnits, type ChartDisplayUnitsLabel, 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 ChartThreeDSeriesAxis, type ChartThreeDSurface, 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 ConditionalFormat, type DataValidation, type DefinedName, type Duotone, type Dxf, type FillRect, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type GradientFill, type GradientFillSpec, type GradientStop, type HiddenSheetMode, type Hyperlink, type HyperlinkTarget, type ImageAnchor, type LegendManualLayout, type LoadOptions, MAX_SELECTION_AREAS, MAX_SELECTION_CONTEXT_CELLS, MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, 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 MergeCell, type NumFmt, 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 OutlinePr, type ParsedWorkbook, type PathCmd, type PathInfo, type PatternFill, type PhoneticAlignment, type PhoneticProperties, type PhoneticRun, type PhoneticType, type PivotCacheSource, type PivotDataField, type PivotDiagnostic, type PivotLocation, type PivotMetadataStatus, type PivotPageField, type PivotPartialReason, type PivotTableMetadata, type RenderViewportToBitmapOptions, type ResolvedList, type Row, type Run, type RunFont, type SecondaryValueAxis, type ShapeAnchor, type ShapeFill, type ShapeGeom, type ShapeInfo, type ShapeParagraph, type ShapeText, type ShapeTextRun, type SharedString, type SheetMeta, type SheetVisibility, type SlicerAnchor, type SlicerElementStyle, type SlicerItem, type SlicerStyle, type SolidFill, type SpaceLine, type Sparkline, type SparklineGroup, type Styles, type TableColumnInfo, type TableInfo, type ViewerContextMenuEvent, type ViewportRange, type Workbook, type Worksheet, type WorksheetCellRange, type XlsxComment, type XlsxCopyResult, type XlsxElementAnchorMarker, type XlsxElementContext, type XlsxMatchLocation, type XlsxRangeSelectionContext, type XlsxRenderViewportOptions, type XlsxScrollToCellOptions, type XlsxSelectionArea, type XlsxSelectionContext, type XlsxSelectionContextCell, type XlsxSelectionContextOptions, type XlsxSelectionInput, type XlsxSelectionState, XlsxSheetViewer, type XlsxSheetViewerOptions, type XlsxTextRunInfo, XlsxViewer, type XlsxViewerOptions, type XlsxViewportOffset, XlsxWorkbook, type ZoomableViewer, autoResize, isOoxmlDecodedImageLimitError, openExternalHyperlink, resolveSharedStrings };
@@ -1,8 +1,8 @@
1
- import { $ as e, F as t, I as n, N as r, P as i, Q as a, X as o, Y as s, Z as c, et as l, gn as u, nt as d, ot as f, rt as p, tt as m } from "./line-metrics-DS0NS2Iq.js";
2
- import { n as h, r as g, t as _ } from "./resource-measurement-BA-4Q-II.js";
3
- import { t as v } from "./transfer-DCu4c2BL.js";
1
+ import { $ as e, F as t, I as n, N as r, P as i, Q as a, X as o, Y as s, Z as c, et as l, nt as u, ot as d, rt as f, sn as p, tt as m } from "./line-metrics-A77J_KRx.js";
2
+ import { n as h, r as g, t as _ } from "./resource-measurement-COxqtfGk.js";
3
+ import { t as v } from "./transfer-3QEJrsJa.js";
4
4
  //#region packages/xlsx/src/worksheet-resource-limits.ts
5
- var y = d, b = e, x = l, S = m, C = a, w = s, T = o, E = c, D = Object.freeze({
5
+ var y = u, b = e, x = l, S = m, C = a, w = s, T = o, E = c, D = Object.freeze({
6
6
  archiveEntryCount: 0,
7
7
  declaredInflatedBytes: 0,
8
8
  distinctInflatedBytes: 0,
@@ -45,7 +45,7 @@ function j(e, t, n = {}) {
45
45
  }
46
46
  function M(e, t, n, r, i, a, o) {
47
47
  let s = n === "worksheet-json" ? "serialization" : "parsing";
48
- return new u(`OOXML resource limit exceeded${t ? ` for ${t}` : ""}: ${r} ${a} > ${i}`, {
48
+ return new p(`OOXML resource limit exceeded${t ? ` for ${t}` : ""}: ${r} ${a} > ${i}`, {
49
49
  stage: s,
50
50
  violation: {
51
51
  format: "xlsx",
@@ -172,7 +172,7 @@ var z = 64 * 1024 * 1024, B = class {
172
172
  rows: 0,
173
173
  cells: 0,
174
174
  ownedUtf8Bytes: 0
175
- }, c, l = !1, d = new t({
175
+ }, c, l = !1, u = new t({
176
176
  ...r,
177
177
  maxByteCredit: z,
178
178
  coordinator: this.coordinator,
@@ -187,7 +187,7 @@ var z = 64 * 1024 * 1024, B = class {
187
187
  N(e, "get-worksheet-worker", void 0, this.readResourceUsage()), o.push(...n.rows), s = e;
188
188
  } else c = n.worksheet;
189
189
  } catch (e) {
190
- throw e instanceof u && (this.resourceFailure ??= e), e;
190
+ throw e instanceof p && (this.resourceFailure ??= e), e;
191
191
  }
192
192
  }
193
193
  l = t;
@@ -218,7 +218,7 @@ var z = 64 * 1024 * 1024, B = class {
218
218
  }
219
219
  this.executeArchive((e) => e.acknowledge_sheet_cursor_terminal()), n?.();
220
220
  } catch (e) {
221
- throw t?.(), e instanceof u && (this.resourceFailure ??= e), e;
221
+ throw t?.(), e instanceof p && (this.resourceFailure ??= e), e;
222
222
  }
223
223
  l = !1, this.sessions.delete(r.sessionId), a();
224
224
  },
@@ -240,7 +240,7 @@ var z = 64 * 1024 * 1024, B = class {
240
240
  }
241
241
  });
242
242
  this.sessions.set(r.sessionId, {
243
- host: d,
243
+ host: u,
244
244
  identity: r
245
245
  }), this.pendingOpens.delete(r.sessionId);
246
246
  }));
@@ -304,7 +304,7 @@ var z = 64 * 1024 * 1024, B = class {
304
304
  operationId: e.operationId,
305
305
  generation: e.generation,
306
306
  requestId: e.requestId,
307
- error: f(/* @__PURE__ */ Error("worksheet pull session is not open"))
307
+ error: d(/* @__PURE__ */ Error("worksheet pull session is not open"))
308
308
  }), Promise.resolve());
309
309
  }
310
310
  async dispatchSafely(e, t) {
@@ -319,7 +319,7 @@ var z = 64 * 1024 * 1024, B = class {
319
319
  operationId: e.operationId,
320
320
  generation: e.generation,
321
321
  requestId: e.requestId,
322
- error: f(n)
322
+ error: d(n)
323
323
  });
324
324
  } catch {}
325
325
  }
@@ -329,7 +329,7 @@ var z = 64 * 1024 * 1024, B = class {
329
329
  if (this.resourceFailure) throw this.resourceFailure;
330
330
  return e();
331
331
  })).catch((e) => {
332
- throw e instanceof u && (this.resourceFailure ??= e), e;
332
+ throw e instanceof p && (this.resourceFailure ??= e), e;
333
333
  });
334
334
  return this.operationTail = t.then(() => void 0, () => void 0), t;
335
335
  }
@@ -365,7 +365,7 @@ var z = 64 * 1024 * 1024, B = class {
365
365
  }
366
366
  readResourceUsage() {
367
367
  try {
368
- return p(this.executeArchive((e) => e.sheet_cursor_resource_usage()));
368
+ return f(this.executeArchive((e) => e.sheet_cursor_resource_usage()));
369
369
  } catch (e) {
370
370
  if (String(e).includes("worksheet cursor usage is unavailable")) return;
371
371
  throw e;