@silurus/ooxml 0.79.0 → 0.80.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 +22 -15
- package/dist/assets/render-worker-BSx9_xRC.js +8 -0
- package/dist/assets/render-worker-BTp87EaD.js +21 -0
- package/dist/assets/render-worker-fdwAjSve.js +7 -0
- package/dist/{canvas-viewer-mechanics-D9tsuHnG.js → canvas-viewer-mechanics-D41tGY4d.js} +1 -1
- package/dist/{dash-Cyc-sevN.js → dash-CMzZIDz_.js} +87 -49
- package/dist/{document-pull-client-YiU8M4LO.js → document-pull-client-D-fnlVGf.js} +2247 -2254
- package/dist/{docx-a1UpmRf8.js → docx-CbIqgb1f.js} +108 -106
- package/dist/docx.mjs +4 -4
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/line-distribute-DFdgzaLK.js +1002 -0
- package/dist/{line-metrics-DjKxiIUD.js → line-metrics-PpgpOvz4.js} +2774 -2524
- package/dist/math.mjs +34 -24
- package/dist/node.mjs +186 -186
- package/dist/{pptx-t5ABdzfd.js → pptx-DwF8olh2.js} +129 -127
- package/dist/pptx.mjs +5 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/region-map.mjs +75 -74
- package/dist/{render-BjIEuFIG.js → render-BMC4d1CO.js} +1 -1
- package/dist/render-worker-host-CcENRoDr.js +9 -0
- package/dist/render-worker-host-CzsHtsN_.js +9 -0
- package/dist/render-worker-host-DFgTN7hy.js +9 -0
- package/dist/renderer-module-contract-BNGz8HvO.js +30 -0
- package/dist/{resource-measurement-D8EiTm_E.js → resource-measurement-DvIKHd-9.js} +7 -7
- package/dist/{session-Bhe_eY-s.js → session-BzhcJOvj.js} +9 -9
- package/dist/{slide-pull-client-BQ8gJPTq.js → slide-pull-client-DLC3nJUt.js} +847 -861
- package/dist/three-d.mjs +828 -559
- package/dist/types/docx.d.ts +74 -8
- package/dist/types/index.d.ts +82 -12
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +70 -2
- package/dist/types/pptx.d.ts +74 -8
- package/dist/types/region-map.d.ts +68 -2
- package/dist/types/three-d.d.ts +68 -2
- package/dist/types/xlsx.d.ts +78 -8
- package/dist/{worksheet-pull-client-T0EzdEEQ.js → worksheet-pull-client-DlVk_4Bt.js} +13 -13
- package/dist/{xlsx-CsDDMJIK.js → xlsx-C1BUns1R.js} +1387 -1252
- package/dist/xlsx.mjs +5 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +4 -1
- package/dist/line-distribute-pDqovJpT.js +0 -1002
- package/dist/render-worker-host-BB320snY.js +0 -27
- package/dist/render-worker-host-BjEPZBwf.js +0 -27
- package/dist/render-worker-host-hZ0o4OD7.js +0 -27
- /package/dist/{highlight-rect-cCvVU-MW.js → highlight-rect-BuX5rWP4.js} +0 -0
- /package/dist/{mathjax-Dqo857oC.js → mathjax-DgAl7Yi5.js} +0 -0
- /package/dist/{transfer-3QEJrsJa.js → transfer-CKZ79zFw.js} +0 -0
- /package/dist/{visible-index-CKvgpUrf.js → visible-index-BjesVGhg.js} +0 -0
package/dist/types/xlsx.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-DzpfhR5E.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;
|
|
@@ -650,7 +716,7 @@ interface ChartRect {
|
|
|
650
716
|
h: number;
|
|
651
717
|
}
|
|
652
718
|
//#endregion
|
|
653
|
-
//#region dist/.types-work/mathjax-
|
|
719
|
+
//#region dist/.types-work/mathjax-D9Itb210.d.ts
|
|
654
720
|
interface MathSvg {
|
|
655
721
|
svg: string;
|
|
656
722
|
widthEm: number;
|
|
@@ -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-
|
|
731
|
+
//#region dist/.types-work/three-d-contract-DxQNpqlA.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-
|
|
736
|
+
//#region dist/.types-work/region-map-contract-DVpTrpog.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-
|
|
741
|
+
//#region dist/.types-work/hyperlink-95DFxTxH.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 {
|
|
@@ -777,7 +843,7 @@ type HyperlinkTarget = {
|
|
|
777
843
|
};
|
|
778
844
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
779
845
|
//#endregion
|
|
780
|
-
//#region dist/.types-work/find-highlight-
|
|
846
|
+
//#region dist/.types-work/find-highlight-C-71IJpI.d.ts
|
|
781
847
|
interface ViewerContextMenuEvent<TContext> {
|
|
782
848
|
readonly originalEvent: MouseEvent;
|
|
783
849
|
getContext(): Promise<TContext | null>;
|
|
@@ -807,7 +873,7 @@ interface FindHighlightColors {
|
|
|
807
873
|
active?: string;
|
|
808
874
|
}
|
|
809
875
|
//#endregion
|
|
810
|
-
//#region dist/.types-work/xlsx-
|
|
876
|
+
//#region dist/.types-work/xlsx-D24KJkPx.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,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,
|
|
2
|
-
import { n as h, r as g, t as _ } from "./resource-measurement-
|
|
3
|
-
import { t as v } from "./transfer-
|
|
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, ln as u, nt as d, ot as f, rt as p, tt as m } from "./line-metrics-PpgpOvz4.js";
|
|
2
|
+
import { n as h, r as g, t as _ } from "./resource-measurement-DvIKHd-9.js";
|
|
3
|
+
import { t as v } from "./transfer-CKZ79zFw.js";
|
|
4
4
|
//#region packages/xlsx/src/worksheet-resource-limits.ts
|
|
5
|
-
var y =
|
|
5
|
+
var y = d, 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
|
|
48
|
+
return new u(`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,
|
|
175
|
+
}, c, l = !1, d = 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
|
|
190
|
+
throw e instanceof u && (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
|
|
221
|
+
throw t?.(), e instanceof u && (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:
|
|
243
|
+
host: d,
|
|
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:
|
|
307
|
+
error: f(/* @__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:
|
|
322
|
+
error: f(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
|
|
332
|
+
throw e instanceof u && (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
|
|
368
|
+
return p(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;
|