@silurus/ooxml 0.79.0 → 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 (36) hide show
  1. package/dist/{canvas-viewer-mechanics-D9tsuHnG.js → canvas-viewer-mechanics-DJ9yfiLN.js} +1 -1
  2. package/dist/{dash-Cyc-sevN.js → dash-CMzZIDz_.js} +87 -49
  3. package/dist/{document-pull-client-YiU8M4LO.js → document-pull-client-DYoybVCn.js} +3 -3
  4. package/dist/{docx-a1UpmRf8.js → docx-CSk_-kj_.js} +5 -5
  5. package/dist/docx.mjs +3 -3
  6. package/dist/docx_parser_bg.wasm +0 -0
  7. package/dist/index.mjs +3 -3
  8. package/dist/{line-distribute-pDqovJpT.js → line-distribute-CU7vu7XS.js} +1 -1
  9. package/dist/{line-metrics-DjKxiIUD.js → line-metrics-A77J_KRx.js} +2616 -2499
  10. package/dist/node.mjs +7 -7
  11. package/dist/{pptx-t5ABdzfd.js → pptx-CO1Ut97p.js} +6 -6
  12. package/dist/pptx.mjs +4 -4
  13. package/dist/pptx_parser_bg.wasm +0 -0
  14. package/dist/{render-BjIEuFIG.js → render-C5m7Ddwx.js} +1 -1
  15. package/dist/render-worker-host-BhMT5U73.js +27 -0
  16. package/dist/render-worker-host-DNMxGh5s.js +27 -0
  17. package/dist/render-worker-host-DWyg7wio.js +27 -0
  18. package/dist/{resource-measurement-D8EiTm_E.js → resource-measurement-COxqtfGk.js} +1 -1
  19. package/dist/{session-Bhe_eY-s.js → session-CJwZaquG.js} +2 -2
  20. package/dist/{slide-pull-client-BQ8gJPTq.js → slide-pull-client-CFHNk0ek.js} +4 -4
  21. package/dist/three-d.mjs +838 -570
  22. package/dist/types/docx.d.ts +72 -6
  23. package/dist/types/index.d.ts +80 -10
  24. package/dist/types/node.d.ts +70 -2
  25. package/dist/types/pptx.d.ts +72 -6
  26. package/dist/types/region-map.d.ts +68 -2
  27. package/dist/types/three-d.d.ts +68 -2
  28. package/dist/types/xlsx.d.ts +76 -6
  29. package/dist/{worksheet-pull-client-T0EzdEEQ.js → worksheet-pull-client-CziyJf24.js} +2 -2
  30. package/dist/{xlsx-CsDDMJIK.js → xlsx-DHQmjAfh.js} +944 -799
  31. package/dist/xlsx.mjs +4 -4
  32. package/dist/xlsx_parser_bg.wasm +0 -0
  33. package/package.json +1 -1
  34. package/dist/render-worker-host-BB320snY.js +0 -27
  35. package/dist/render-worker-host-BjEPZBwf.js +0 -27
  36. package/dist/render-worker-host-hZ0o4OD7.js +0 -27
@@ -1,4 +1,4 @@
1
- //#region dist/.types-work/chart-Cxft04Nl.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';
@@ -219,8 +219,10 @@ interface ChartTrendline {
219
219
  labelText?: string | null;
220
220
  labelFontSizeHpt?: number | null;
221
221
  labelFontBold?: boolean | null;
222
+ labelFontItalic?: boolean | null;
222
223
  labelFontColor?: string | null;
223
224
  labelFontFace?: string | null;
225
+ labelBox?: ChartLabelBox | null;
224
226
  labelTextAlign?: string | null;
225
227
  lineColor?: string | null;
226
228
  lineWidthEmu?: number | null;
@@ -249,6 +251,7 @@ interface ChartDataLabelOverride {
249
251
  position?: string;
250
252
  fontColor?: string;
251
253
  fontSizeHpt?: number;
254
+ fontFace?: string;
252
255
  fontBold?: boolean;
253
256
  formatCode?: string;
254
257
  separator?: string;
@@ -276,6 +279,7 @@ interface ChartSeriesDataLabels {
276
279
  separator?: string;
277
280
  fontBold?: boolean;
278
281
  fontSizeHpt?: number;
282
+ fontFace?: string;
279
283
  labelBox?: ChartLabelBox;
280
284
  showLeaderLines?: boolean;
281
285
  leaderLineColor?: string;
@@ -345,6 +349,8 @@ interface ChartModel {
345
349
  subtotalIndices: number[];
346
350
  legendManualLayout?: LegendManualLayout | null;
347
351
  valAxisFormatCode?: string | null;
352
+ valAxisDisplayUnits?: ChartDisplayUnits | null;
353
+ catAxisDisplayUnits?: ChartDisplayUnits | null;
348
354
  barGapWidth?: number | null;
349
355
  barOverlap?: number | null;
350
356
  dataLabelPosition?: string | null;
@@ -378,6 +384,9 @@ interface ChartModel {
378
384
  legendFontColor?: string | null;
379
385
  legendFontSizeHpt?: number | null;
380
386
  legendFontBold?: boolean | null;
387
+ legendFillColor?: string | null;
388
+ legendLineColor?: string | null;
389
+ legendLineWidthEmu?: number | null;
381
390
  themeMajorFontLatin?: string | null;
382
391
  themeMinorFontLatin?: string | null;
383
392
  chartBorderColor?: string | null;
@@ -478,6 +487,14 @@ interface ChartOfPie {
478
487
  gapWidthPercent: number;
479
488
  seriesLines: boolean;
480
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
+ }
481
498
  interface ChartThreeD {
482
499
  rotationX?: number | null;
483
500
  rotationY?: number | null;
@@ -487,6 +504,36 @@ interface ChartThreeD {
487
504
  rightAngleAxes?: boolean | null;
488
505
  gapDepthPercent?: number | null;
489
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;
490
537
  }
491
538
  interface ChartTextRun {
492
539
  text: string;
@@ -588,6 +635,7 @@ interface SecondaryValueAxis {
588
635
  title: string | null;
589
636
  hidden: boolean;
590
637
  formatCode?: string | null;
638
+ displayUnits?: ChartDisplayUnits | null;
591
639
  fontColor?: string | null;
592
640
  fontSizeHpt?: number | null;
593
641
  fontItalic?: boolean | null;
@@ -611,6 +659,8 @@ interface SecondaryValueAxis {
611
659
  logBase?: number | null;
612
660
  orientation?: 'minMax' | 'maxMin' | string | null;
613
661
  tickLabelPos?: string | null;
662
+ tickLabelSkip?: number | null;
663
+ tickMarkSkip?: number | null;
614
664
  crosses?: string | null;
615
665
  crossesAt?: number | null;
616
666
  titleFontSizeHpt?: number | null;
@@ -622,6 +672,22 @@ interface SecondaryValueAxis {
622
672
  titleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
623
673
  titleManualLayout?: ChartManualLayout | null;
624
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;
690
+ }
625
691
  interface ChartManualLayout {
626
692
  xMode?: string;
627
693
  yMode?: string;
@@ -662,17 +728,17 @@ interface MathRenderer {
662
728
  mathMLToSvg(mathml: string): Promise<MathSvg>;
663
729
  }
664
730
  //#endregion
665
- //#region dist/.types-work/three-d-contract-DdC3L2kZ.d.ts
731
+ //#region dist/.types-work/three-d-contract-EE62eNRv.d.ts
666
732
  interface ChartThreeDRenderer {
667
733
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
668
734
  }
669
735
  //#endregion
670
- //#region dist/.types-work/region-map-contract-CLpE99AF.d.ts
736
+ //#region dist/.types-work/region-map-contract-D3eTzib8.d.ts
671
737
  interface ChartRegionMapRenderer {
672
738
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
673
739
  }
674
740
  //#endregion
675
- //#region dist/.types-work/hyperlink-yiXkZo1W.d.ts
741
+ //#region dist/.types-work/hyperlink-qwS_UhA7.d.ts
676
742
  type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
677
743
  type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
678
744
  declare class OoxmlError extends Error {
@@ -807,7 +873,7 @@ interface FindHighlightColors {
807
873
  active?: string;
808
874
  }
809
875
  //#endregion
810
- //#region dist/.types-work/xlsx-Awf4iUSV.d.ts
876
+ //#region dist/.types-work/xlsx-CUoAZmBw.d.ts
811
877
  type ShapeFill = Exclude<Fill, {
812
878
  fillType: 'image';
813
879
  } | {
@@ -848,6 +914,7 @@ interface Worksheet {
848
914
  colHidden?: Record<number, boolean>;
849
915
  defaultColWidth: number;
850
916
  defaultRowHeight: number;
917
+ defaultRowHeightCustom?: boolean;
851
918
  mergeCells: MergeCell[];
852
919
  freezeRows: number;
853
920
  freezeCols: number;
@@ -1346,6 +1413,7 @@ interface CfValue {
1346
1413
  interface Row {
1347
1414
  index: number;
1348
1415
  height: number | null;
1416
+ customHeight?: boolean;
1349
1417
  cells: Cell[];
1350
1418
  outlineLevel?: number;
1351
1419
  collapsed?: boolean;
@@ -1865,6 +1933,7 @@ declare class XlsxViewerEngine implements ZoomableViewer {
1865
1933
  private setBandHidden;
1866
1934
  private recordSizeOverride;
1867
1935
  private wireSizeOverrides;
1936
+ private syncAutomaticRowOverrides;
1868
1937
  private setBandCollapsed;
1869
1938
  private afterOutlineMutation;
1870
1939
  private buildOutlineLayoutOnly;
@@ -1908,6 +1977,7 @@ declare class XlsxViewerEngine implements ZoomableViewer {
1908
1977
  private getHeaderHit;
1909
1978
  private getResizeTarget;
1910
1979
  private applyResize;
1980
+ private refitAutoRowsAfterColumnResize;
1911
1981
  setSelectionColor(color: string): void;
1912
1982
  setHiddenSheetMode(mode: HiddenSheetMode): Promise<void>;
1913
1983
  get hiddenSheetMode(): HiddenSheetMode;
@@ -2031,4 +2101,4 @@ declare class XlsxSheetViewer implements ZoomableViewer {
2031
2101
  }
2032
2102
  declare function resolveSharedStrings(ws: Worksheet, sharedStrings: SharedString[]): Worksheet;
2033
2103
  //#endregion
2034
- 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 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 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,5 +1,5 @@
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-DjKxiIUD.js";
2
- import { n as h, r as g, t as _ } from "./resource-measurement-D8EiTm_E.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
3
  import { t as v } from "./transfer-3QEJrsJa.js";
4
4
  //#region packages/xlsx/src/worksheet-resource-limits.ts
5
5
  var y = u, b = e, x = l, S = m, C = a, w = s, T = o, E = c, D = Object.freeze({