@silurus/ooxml 0.79.1 → 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-DJ9yfiLN.js → canvas-viewer-mechanics-D41tGY4d.js} +1 -1
- package/dist/{document-pull-client-DYoybVCn.js → document-pull-client-D-fnlVGf.js} +2246 -2253
- package/dist/{docx-CSk_-kj_.js → docx-CbIqgb1f.js} +107 -105
- package/dist/docx.mjs +4 -4
- package/dist/index.mjs +3 -3
- package/dist/line-distribute-DFdgzaLK.js +1002 -0
- package/dist/{line-metrics-A77J_KRx.js → line-metrics-PpgpOvz4.js} +1813 -1680
- package/dist/math.mjs +34 -24
- package/dist/node.mjs +186 -186
- package/dist/{pptx-CO1Ut97p.js → pptx-DwF8olh2.js} +128 -126
- package/dist/pptx.mjs +5 -5
- package/dist/region-map.mjs +75 -74
- package/dist/{render-C5m7Ddwx.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-COxqtfGk.js → resource-measurement-DvIKHd-9.js} +7 -7
- package/dist/{session-CJwZaquG.js → session-BzhcJOvj.js} +9 -9
- package/dist/{slide-pull-client-CFHNk0ek.js → slide-pull-client-DLC3nJUt.js} +847 -861
- package/dist/three-d.mjs +311 -310
- package/dist/types/docx.d.ts +7 -7
- package/dist/types/index.d.ts +9 -9
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +2 -2
- package/dist/types/pptx.d.ts +7 -7
- package/dist/types/region-map.d.ts +2 -2
- package/dist/types/three-d.d.ts +2 -2
- package/dist/types/xlsx.d.ts +7 -7
- package/dist/{worksheet-pull-client-CziyJf24.js → worksheet-pull-client-DlVk_4Bt.js} +13 -13
- package/dist/{xlsx-DHQmjAfh.js → xlsx-C1BUns1R.js} +1206 -1216
- package/dist/xlsx.mjs +5 -5
- package/package.json +4 -1
- package/dist/line-distribute-CU7vu7XS.js +0 -1002
- package/dist/render-worker-host-BhMT5U73.js +0 -27
- package/dist/render-worker-host-DNMxGh5s.js +0 -27
- package/dist/render-worker-host-DWyg7wio.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/docx.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';
|
|
@@ -691,7 +691,7 @@ interface ChartRect {
|
|
|
691
691
|
h: number;
|
|
692
692
|
}
|
|
693
693
|
//#endregion
|
|
694
|
-
//#region dist/.types-work/mathjax-
|
|
694
|
+
//#region dist/.types-work/mathjax-D9Itb210.d.ts
|
|
695
695
|
interface MathSvg {
|
|
696
696
|
svg: string;
|
|
697
697
|
widthEm: number;
|
|
@@ -703,17 +703,17 @@ interface MathRenderer {
|
|
|
703
703
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
704
704
|
}
|
|
705
705
|
//#endregion
|
|
706
|
-
//#region dist/.types-work/three-d-contract-
|
|
706
|
+
//#region dist/.types-work/three-d-contract-DxQNpqlA.d.ts
|
|
707
707
|
interface ChartThreeDRenderer {
|
|
708
708
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
709
709
|
}
|
|
710
710
|
//#endregion
|
|
711
|
-
//#region dist/.types-work/region-map-contract-
|
|
711
|
+
//#region dist/.types-work/region-map-contract-DVpTrpog.d.ts
|
|
712
712
|
interface ChartRegionMapRenderer {
|
|
713
713
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
714
714
|
}
|
|
715
715
|
//#endregion
|
|
716
|
-
//#region dist/.types-work/hyperlink-
|
|
716
|
+
//#region dist/.types-work/hyperlink-95DFxTxH.d.ts
|
|
717
717
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
718
718
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
719
719
|
declare class OoxmlError extends Error {
|
|
@@ -818,7 +818,7 @@ type HyperlinkTarget = {
|
|
|
818
818
|
};
|
|
819
819
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
820
820
|
//#endregion
|
|
821
|
-
//#region dist/.types-work/find-highlight-
|
|
821
|
+
//#region dist/.types-work/find-highlight-C-71IJpI.d.ts
|
|
822
822
|
interface TextSelectionContextOptions {
|
|
823
823
|
readonly maxTextCharacters?: number;
|
|
824
824
|
readonly maxRunLocators?: number;
|
|
@@ -857,7 +857,7 @@ interface FindHighlightColors {
|
|
|
857
857
|
active?: string;
|
|
858
858
|
}
|
|
859
859
|
//#endregion
|
|
860
|
-
//#region dist/.types-work/docx-
|
|
860
|
+
//#region dist/.types-work/docx-DujRzeL7.d.ts
|
|
861
861
|
interface DocxDocumentModel {
|
|
862
862
|
section: SectionProps;
|
|
863
863
|
body: BodyElement[];
|
package/dist/types/index.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';
|
|
@@ -913,7 +913,7 @@ interface ChartRect {
|
|
|
913
913
|
h: number;
|
|
914
914
|
}
|
|
915
915
|
//#endregion
|
|
916
|
-
//#region dist/.types-work/mathjax-
|
|
916
|
+
//#region dist/.types-work/mathjax-D9Itb210.d.ts
|
|
917
917
|
interface MathSvg {
|
|
918
918
|
svg: string;
|
|
919
919
|
widthEm: number;
|
|
@@ -925,17 +925,17 @@ interface MathRenderer {
|
|
|
925
925
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
926
926
|
}
|
|
927
927
|
//#endregion
|
|
928
|
-
//#region dist/.types-work/three-d-contract-
|
|
928
|
+
//#region dist/.types-work/three-d-contract-DxQNpqlA.d.ts
|
|
929
929
|
interface ChartThreeDRenderer {
|
|
930
930
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
931
931
|
}
|
|
932
932
|
//#endregion
|
|
933
|
-
//#region dist/.types-work/region-map-contract-
|
|
933
|
+
//#region dist/.types-work/region-map-contract-DVpTrpog.d.ts
|
|
934
934
|
interface ChartRegionMapRenderer {
|
|
935
935
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
936
936
|
}
|
|
937
937
|
//#endregion
|
|
938
|
-
//#region dist/.types-work/hyperlink-
|
|
938
|
+
//#region dist/.types-work/hyperlink-95DFxTxH.d.ts
|
|
939
939
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
940
940
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
941
941
|
declare class OoxmlError extends Error {
|
|
@@ -1040,7 +1040,7 @@ type HyperlinkTarget = {
|
|
|
1040
1040
|
};
|
|
1041
1041
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
1042
1042
|
//#endregion
|
|
1043
|
-
//#region dist/.types-work/find-highlight-
|
|
1043
|
+
//#region dist/.types-work/find-highlight-C-71IJpI.d.ts
|
|
1044
1044
|
interface TextSelectionContextOptions {
|
|
1045
1045
|
readonly maxTextCharacters?: number;
|
|
1046
1046
|
readonly maxRunLocators?: number;
|
|
@@ -1079,7 +1079,7 @@ interface FindHighlightColors {
|
|
|
1079
1079
|
active?: string;
|
|
1080
1080
|
}
|
|
1081
1081
|
//#endregion
|
|
1082
|
-
//#region dist/.types-work/docx-
|
|
1082
|
+
//#region dist/.types-work/docx-DujRzeL7.d.ts
|
|
1083
1083
|
interface DocxDocumentModel {
|
|
1084
1084
|
section: SectionProps;
|
|
1085
1085
|
body: BodyElement[];
|
|
@@ -2141,7 +2141,7 @@ declare namespace docx_d_exports {
|
|
|
2141
2141
|
export { AnchorHostMetrics, AutoResizeOptions, BodyElement, BorderSpec, CellBorders, CellElement, ChartDataLabelOverride, ChartDataPointOverride, ChartDisplayUnits, ChartDisplayUnitsLabel, ChartErrBars, ChartExElementStyle, ChartLabelBox, ChartManualLayout, ChartModel, ChartOfPie, ChartRect, ChartRegionMapRenderer, ChartRun, ChartSeries, ChartSeriesDataLabels, ChartStockBarPaint, ChartStockUpDownBarStyle, ChartTextBox, ChartTextParagraph, ChartTextRun, ChartThreeD, ChartThreeDRenderer, ChartThreeDSeriesAxis, ChartThreeDSurface, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexGeography, ChartexHistogramBinning, ChartexRegionMap, ChartexRegionMapColors, ChartexRegionMapRow, ChartexSunburst, ChartexSunburstRow, ChartexTreemap, ChartexValueColorStop, ColSpec, CollectPageRunsOptions, ColumnsSpec, DocComment, DocNote, DocParagraph, DocRevision, DocRun, DocSettings, DocTable, DocTableCell, DocTableRow, DocxDocument, DocxDocumentModel, DocxElementContext, DocxElementContextOptions, DocxHighlightColors, DocxHighlightMatch, DocxMatchLocation, DocxPagePoint, DocxRunBorder, DocxScrollViewer, DocxScrollViewerOptions, DocxSelectionContext, DocxSelectionContextOptions, DocxSelectionRunLocator, DocxSelectionSourceLocator, DocxTextRun, DocxTextRunInfo, DocxTextSelectionContext, DocxViewer, DocxViewerOptions, Duotone$1 as Duotone, EmbeddedFontRef, FieldRun, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, FramePr, GradientFill, GradientStop, HeaderFooter, HeadersFooters, HyperlinkTarget, ImageRun, LegendManualLayout, LineEnd, LineNumbering, LineSpacing, LoadOptions$2 as LoadOptions, MatchRunSlice, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, NoteRef, NumberingInfo, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, PTabRun, PageBorderEdge, PageBorders, PageNumType, ParaBorderEdge, ParagraphBorders, PathCmd$1 as PathCmd, PatternFill, RenderPageOptions, RenderPageToBitmapOptions, RubyAnnotation, RunRevision, SecondaryValueAxis, SectionGeom, SectionProps, ShapeFill$1 as ShapeFill, ShapeRun, ShapeStrokeFill, ShapeText$1 as ShapeText, ShapeTextRun$1 as ShapeTextRun, SolidFill, TabStop, TableBorders, TblpPr, TextPath, TextSelectionContextOptions, TileInfo, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildDocxHighlightLayer, buildDocxTextLayer, isOoxmlDecodedImageLimitError, noteText, openExternalHyperlink, readDocxTextSelectionContext };
|
|
2142
2142
|
}
|
|
2143
2143
|
//#endregion
|
|
2144
|
-
//#region dist/.types-work/pptx-
|
|
2144
|
+
//#region dist/.types-work/pptx-DrlRpult.d.ts
|
|
2145
2145
|
interface BlipBullet {
|
|
2146
2146
|
type: 'blip';
|
|
2147
2147
|
imagePath: string;
|
|
@@ -2783,7 +2783,7 @@ declare namespace pptx_d_exports {
|
|
|
2783
2783
|
export { ArrowEnd, AutoResizeOptions, Bevel3d, BlipBullet, Bullet, Camera3d, ChartDataLabelOverride, ChartDataPointOverride, ChartDisplayUnits, ChartDisplayUnitsLabel, ChartElement, ChartErrBars, ChartExElementStyle, ChartLabelBox, ChartManualLayout, ChartModel, ChartOfPie, ChartRect, ChartRegionMapRenderer, ChartSeries, ChartSeriesDataLabels, ChartStockBarPaint, ChartStockUpDownBarStyle, ChartTextBox, ChartTextParagraph, ChartTextRun, ChartThreeD, ChartThreeDRenderer, ChartThreeDSeriesAxis, ChartThreeDSurface, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexGeography, ChartexHistogramBinning, ChartexRegionMap, ChartexRegionMapColors, ChartexRegionMapRow, ChartexSunburst, ChartexSunburstRow, ChartexTreemap, ChartexValueColorStop, DimOptions, Duotone$1 as Duotone, EquationRun, Fill, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, Glow, GradientFill, GradientStop$1 as GradientStop, HiddenSlideMode, HyperlinkTarget, ImageFill, LegendManualLayout, LightRig, LineBreak, LoadOptions$1 as LoadOptions, MatchRunSlice, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, MediaElement, NoFill, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, Paragraph, PathCmd$2 as PathCmd, PatternFill, PictureElement, PptxComment, PptxElementContext, PptxElementContextOptions, PptxHighlightColors, PptxHighlightMatch, PptxMatchLocation, PptxPresentation, PptxScrollViewer, PptxScrollViewerOptions, PptxSelectionContext, PptxSelectionContextOptions, PptxSelectionRunLocator, PptxSlidePoint, PptxTextRunInfo, PptxTextSelectionContext, PptxViewer, PptxViewerOptions, PresentSlideOptions, Presentation, PresentationHandle, Reflection, RenderOptions, RenderSlideOptions, RenderSlideToBitmapOptions, Rot3d, Scene3d, SecondaryValueAxis, Shadow, ShapeElement, Slide, SlideElement, SlideElementOrigin, SlideElementSource, SlideRenderOptions, SoftEdge, SolidFill, Sp3d, SpaceLine, Stroke, TabStop$1 as TabStop, TableCell, TableElement, TableRow, TextBody, TextOutline, TextRect, TextRun, TextRunCallback, TextRunData, TextSelectionContextOptions, TileInfo, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
|
|
2784
2784
|
}
|
|
2785
2785
|
//#endregion
|
|
2786
|
-
//#region dist/.types-work/xlsx-
|
|
2786
|
+
//#region dist/.types-work/xlsx-D24KJkPx.d.ts
|
|
2787
2787
|
type ShapeFill = Exclude<Fill, {
|
|
2788
2788
|
fillType: 'image';
|
|
2789
2789
|
} | {
|
package/dist/types/math.d.ts
CHANGED
package/dist/types/node.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';
|
|
@@ -896,7 +896,7 @@ interface LegendManualLayout {
|
|
|
896
896
|
h: number;
|
|
897
897
|
}
|
|
898
898
|
//#endregion
|
|
899
|
-
//#region dist/.types-work/hyperlink-
|
|
899
|
+
//#region dist/.types-work/hyperlink-95DFxTxH.d.ts
|
|
900
900
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
901
901
|
type OoxmlFormat = 'docx' | 'xlsx' | 'pptx';
|
|
902
902
|
interface OoxmlResourceUsageSnapshot {
|
package/dist/types/pptx.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';
|
|
@@ -913,7 +913,7 @@ interface ChartRect {
|
|
|
913
913
|
h: number;
|
|
914
914
|
}
|
|
915
915
|
//#endregion
|
|
916
|
-
//#region dist/.types-work/mathjax-
|
|
916
|
+
//#region dist/.types-work/mathjax-D9Itb210.d.ts
|
|
917
917
|
interface MathSvg {
|
|
918
918
|
svg: string;
|
|
919
919
|
widthEm: number;
|
|
@@ -925,17 +925,17 @@ interface MathRenderer {
|
|
|
925
925
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
926
926
|
}
|
|
927
927
|
//#endregion
|
|
928
|
-
//#region dist/.types-work/three-d-contract-
|
|
928
|
+
//#region dist/.types-work/three-d-contract-DxQNpqlA.d.ts
|
|
929
929
|
interface ChartThreeDRenderer {
|
|
930
930
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
931
931
|
}
|
|
932
932
|
//#endregion
|
|
933
|
-
//#region dist/.types-work/region-map-contract-
|
|
933
|
+
//#region dist/.types-work/region-map-contract-DVpTrpog.d.ts
|
|
934
934
|
interface ChartRegionMapRenderer {
|
|
935
935
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
936
936
|
}
|
|
937
937
|
//#endregion
|
|
938
|
-
//#region dist/.types-work/hyperlink-
|
|
938
|
+
//#region dist/.types-work/hyperlink-95DFxTxH.d.ts
|
|
939
939
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
940
940
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
941
941
|
declare class OoxmlError extends Error {
|
|
@@ -1040,7 +1040,7 @@ type HyperlinkTarget = {
|
|
|
1040
1040
|
};
|
|
1041
1041
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
1042
1042
|
//#endregion
|
|
1043
|
-
//#region dist/.types-work/find-highlight-
|
|
1043
|
+
//#region dist/.types-work/find-highlight-C-71IJpI.d.ts
|
|
1044
1044
|
interface TextSelectionContextOptions {
|
|
1045
1045
|
readonly maxTextCharacters?: number;
|
|
1046
1046
|
readonly maxRunLocators?: number;
|
|
@@ -1079,7 +1079,7 @@ interface FindHighlightColors {
|
|
|
1079
1079
|
active?: string;
|
|
1080
1080
|
}
|
|
1081
1081
|
//#endregion
|
|
1082
|
-
//#region dist/.types-work/pptx-
|
|
1082
|
+
//#region dist/.types-work/pptx-DrlRpult.d.ts
|
|
1083
1083
|
interface BlipBullet {
|
|
1084
1084
|
type: 'blip';
|
|
1085
1085
|
imagePath: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-DzpfhR5E.d.ts
|
|
2
2
|
interface SolidFill {
|
|
3
3
|
fillType: 'solid';
|
|
4
4
|
color: string;
|
|
@@ -575,7 +575,7 @@ interface ChartRect {
|
|
|
575
575
|
h: number;
|
|
576
576
|
}
|
|
577
577
|
//#endregion
|
|
578
|
-
//#region dist/.types-work/region-map-contract-
|
|
578
|
+
//#region dist/.types-work/region-map-contract-DVpTrpog.d.ts
|
|
579
579
|
interface ChartRegionMapRenderer {
|
|
580
580
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
581
581
|
}
|
package/dist/types/three-d.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-DzpfhR5E.d.ts
|
|
2
2
|
interface SolidFill {
|
|
3
3
|
fillType: 'solid';
|
|
4
4
|
color: string;
|
|
@@ -575,7 +575,7 @@ interface ChartRect {
|
|
|
575
575
|
h: number;
|
|
576
576
|
}
|
|
577
577
|
//#endregion
|
|
578
|
-
//#region dist/.types-work/three-d-contract-
|
|
578
|
+
//#region dist/.types-work/three-d-contract-DxQNpqlA.d.ts
|
|
579
579
|
interface ChartThreeDRenderer {
|
|
580
580
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
581
581
|
}
|
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';
|
|
@@ -716,7 +716,7 @@ interface ChartRect {
|
|
|
716
716
|
h: number;
|
|
717
717
|
}
|
|
718
718
|
//#endregion
|
|
719
|
-
//#region dist/.types-work/mathjax-
|
|
719
|
+
//#region dist/.types-work/mathjax-D9Itb210.d.ts
|
|
720
720
|
interface MathSvg {
|
|
721
721
|
svg: string;
|
|
722
722
|
widthEm: number;
|
|
@@ -728,17 +728,17 @@ interface MathRenderer {
|
|
|
728
728
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
729
729
|
}
|
|
730
730
|
//#endregion
|
|
731
|
-
//#region dist/.types-work/three-d-contract-
|
|
731
|
+
//#region dist/.types-work/three-d-contract-DxQNpqlA.d.ts
|
|
732
732
|
interface ChartThreeDRenderer {
|
|
733
733
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
734
734
|
}
|
|
735
735
|
//#endregion
|
|
736
|
-
//#region dist/.types-work/region-map-contract-
|
|
736
|
+
//#region dist/.types-work/region-map-contract-DVpTrpog.d.ts
|
|
737
737
|
interface ChartRegionMapRenderer {
|
|
738
738
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
739
739
|
}
|
|
740
740
|
//#endregion
|
|
741
|
-
//#region dist/.types-work/hyperlink-
|
|
741
|
+
//#region dist/.types-work/hyperlink-95DFxTxH.d.ts
|
|
742
742
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
743
743
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
744
744
|
declare class OoxmlError extends Error {
|
|
@@ -843,7 +843,7 @@ type HyperlinkTarget = {
|
|
|
843
843
|
};
|
|
844
844
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
845
845
|
//#endregion
|
|
846
|
-
//#region dist/.types-work/find-highlight-
|
|
846
|
+
//#region dist/.types-work/find-highlight-C-71IJpI.d.ts
|
|
847
847
|
interface ViewerContextMenuEvent<TContext> {
|
|
848
848
|
readonly originalEvent: MouseEvent;
|
|
849
849
|
getContext(): Promise<TContext | null>;
|
|
@@ -873,7 +873,7 @@ interface FindHighlightColors {
|
|
|
873
873
|
active?: string;
|
|
874
874
|
}
|
|
875
875
|
//#endregion
|
|
876
|
-
//#region dist/.types-work/xlsx-
|
|
876
|
+
//#region dist/.types-work/xlsx-D24KJkPx.d.ts
|
|
877
877
|
type ShapeFill = Exclude<Fill, {
|
|
878
878
|
fillType: 'image';
|
|
879
879
|
} | {
|
|
@@ -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;
|