@silurus/ooxml 0.85.1 → 0.85.2
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 +3 -2
- package/dist/assets/render-worker-CV9Mg4j9.js +10 -0
- package/dist/assets/{render-worker-BRKOyWVH.js → render-worker-DHP0rgcW.js} +16 -16
- package/dist/assets/render-worker-DdvOGyrn.js +11 -0
- package/dist/{canvas-viewer-mechanics-CfRzOhz5.js → canvas-viewer-mechanics-CDNMJ-Yz.js} +1 -1
- package/dist/{document-pull-client-BkHHIdR4.js → document-pull-client-BssAk95w.js} +3875 -3865
- package/dist/{docx-_uelcAui.js → docx-BY7oyoml.js} +17 -37
- package/dist/docx.mjs +5 -5
- package/dist/{dom-interaction-boundary-CMDDgICk.js → dom-interaction-boundary-CDGegIB5.js} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/line-distribute-BsV4MVZ2.js +1023 -0
- package/dist/{line-metrics-u87yCAfV.js → line-metrics-BGtFM-ec.js} +650 -607
- package/dist/node.mjs +30 -30
- package/dist/{pptx-WpBbS0mq.js → pptx-C4z96sAA.js} +23 -23
- package/dist/pptx.mjs +6 -6
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{raster-target-whZhvVMt.js → raster-target-ojDdQizC.js} +11 -7
- package/dist/{render-DrAAZWwH.js → render-Dxvwes39.js} +1 -1
- package/dist/{render-worker-host-CBVe8aeD.js → render-worker-host-BAXcBGq3.js} +1 -1
- package/dist/{render-worker-host-CHlwYJdK.js → render-worker-host-CNKQ76tu.js} +1 -1
- package/dist/{render-worker-host-XDMsyVsv.js → render-worker-host-CXTCU4PO.js} +1 -1
- package/dist/{resource-measurement-6uR3Huao.js → resource-measurement-D41R-0Bl.js} +4 -4
- package/dist/{session-DoPwA4gv.js → session-BmP4lcEo.js} +6 -6
- package/dist/{slide-pull-client-8i8C4VyD.js → slide-pull-client-RTwQbJiy.js} +707 -697
- package/dist/tiff.mjs +1 -1
- package/dist/types/chart-ex.d.ts +2 -2
- package/dist/types/docx.d.ts +8 -10
- package/dist/types/index.d.ts +12 -14
- package/dist/types/node.d.ts +5 -5
- package/dist/types/pptx.d.ts +8 -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 +8 -7
- package/dist/{worksheet-pull-client-Btydoxto.js → worksheet-pull-client-C9sC36Vu.js} +20 -20
- package/dist/{xlsx-Bd16V4Xx.js → xlsx-DSU6pV1O.js} +1214 -1208
- package/dist/xlsx.mjs +6 -6
- package/package.json +1 -1
- package/dist/assets/render-worker-CtLMFj9r.js +0 -10
- package/dist/assets/render-worker-NZPOUOTU.js +0 -11
- package/dist/line-distribute-CiKeWjBF.js +0 -1023
package/dist/tiff.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, i as t, o as n, r, s as i } from "./pixel-budget-Dgjw269h.js";
|
|
2
|
-
import { i as a, o, s, t as c } from "./raster-target-
|
|
2
|
+
import { i as a, o, s, t as c } from "./raster-target-ojDdQizC.js";
|
|
3
3
|
import { t as l } from "./renderer-module-contract-Cu-GKuPd.js";
|
|
4
4
|
//#region packages/core/src/image/tiff.ts
|
|
5
5
|
var u = 1, d = 3, f = 4, p = {
|
package/dist/types/chart-ex.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-CX4ml5hj.d.ts
|
|
2
2
|
interface Duotone {
|
|
3
3
|
clr1: string;
|
|
4
4
|
clr2: string;
|
|
@@ -938,7 +938,7 @@ interface ChartRect {
|
|
|
938
938
|
h: number;
|
|
939
939
|
}
|
|
940
940
|
//#endregion
|
|
941
|
-
//#region dist/.types-work/chart-ex-contract-
|
|
941
|
+
//#region dist/.types-work/chart-ex-contract-D-MROxI4.d.ts
|
|
942
942
|
interface ChartExRenderer {
|
|
943
943
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
944
944
|
}
|
package/dist/types/docx.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-CX4ml5hj.d.ts
|
|
2
2
|
type DecodedImageBudgetStrategy = 'adaptive' | 'strict';
|
|
3
3
|
interface ImageResourceOptions {
|
|
4
4
|
decodedByteBudget?: number;
|
|
5
5
|
strategy?: DecodedImageBudgetStrategy;
|
|
6
|
+
resolution?: 'native-if-fit' | 'display';
|
|
6
7
|
}
|
|
7
8
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
8
9
|
interface MathRun {
|
|
@@ -1047,7 +1048,7 @@ interface ChartRect {
|
|
|
1047
1048
|
h: number;
|
|
1048
1049
|
}
|
|
1049
1050
|
//#endregion
|
|
1050
|
-
//#region dist/.types-work/chart-ex-contract-
|
|
1051
|
+
//#region dist/.types-work/chart-ex-contract-D-MROxI4.d.ts
|
|
1051
1052
|
interface ChartExRenderer {
|
|
1052
1053
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1053
1054
|
}
|
|
@@ -1064,12 +1065,12 @@ interface MathRenderer {
|
|
|
1064
1065
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
1065
1066
|
}
|
|
1066
1067
|
//#endregion
|
|
1067
|
-
//#region dist/.types-work/three-d-contract-
|
|
1068
|
+
//#region dist/.types-work/three-d-contract-2IUr35q1.d.ts
|
|
1068
1069
|
interface ChartThreeDRenderer {
|
|
1069
1070
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1070
1071
|
}
|
|
1071
1072
|
//#endregion
|
|
1072
|
-
//#region dist/.types-work/region-map-contract-
|
|
1073
|
+
//#region dist/.types-work/region-map-contract-CtuTzdmN.d.ts
|
|
1073
1074
|
interface ChartRegionMapRenderer {
|
|
1074
1075
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1075
1076
|
}
|
|
@@ -1089,7 +1090,7 @@ interface TiffRenderer {
|
|
|
1089
1090
|
render(bytes: Uint8Array, options?: Readonly<TiffRenderOptions>): Promise<ImageBitmap | null>;
|
|
1090
1091
|
}
|
|
1091
1092
|
//#endregion
|
|
1092
|
-
//#region dist/.types-work/hyperlink-
|
|
1093
|
+
//#region dist/.types-work/hyperlink-92bQUogu.d.ts
|
|
1093
1094
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
1094
1095
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
1095
1096
|
declare class OoxmlError extends Error {
|
|
@@ -1265,7 +1266,7 @@ interface FindHighlightColors {
|
|
|
1265
1266
|
active?: string;
|
|
1266
1267
|
}
|
|
1267
1268
|
//#endregion
|
|
1268
|
-
//#region dist/.types-work/types-
|
|
1269
|
+
//#region dist/.types-work/types-CKbbBm9J.d.ts
|
|
1269
1270
|
interface DocxDocumentModel {
|
|
1270
1271
|
section: SectionProps;
|
|
1271
1272
|
body: BodyElement[];
|
|
@@ -2012,7 +2013,7 @@ interface RenderPageOptions {
|
|
|
2012
2013
|
showTrackedChanges?: boolean;
|
|
2013
2014
|
}
|
|
2014
2015
|
//#endregion
|
|
2015
|
-
//#region dist/.types-work/docx-
|
|
2016
|
+
//#region dist/.types-work/docx-8nLAF_CE.d.ts
|
|
2016
2017
|
interface CommentAnchorRange {
|
|
2017
2018
|
readonly commentId: string;
|
|
2018
2019
|
readonly source: Readonly<DocxStorySource>;
|
|
@@ -2401,7 +2402,6 @@ declare class DocxScrollViewer implements ZoomableViewer {
|
|
|
2401
2402
|
private _lastReportedLayoutComplete;
|
|
2402
2403
|
private _layoutUnsubscribe;
|
|
2403
2404
|
private _presentedPageCount;
|
|
2404
|
-
private _pendingLayoutPublication;
|
|
2405
2405
|
private _scrollListener;
|
|
2406
2406
|
private _selectionChangeListener;
|
|
2407
2407
|
private _selectionContextKey;
|
|
@@ -2455,8 +2455,6 @@ declare class DocxScrollViewer implements ZoomableViewer {
|
|
|
2455
2455
|
private _onLayoutViewPublication;
|
|
2456
2456
|
private _refreshCommentSurface;
|
|
2457
2457
|
private _applyLayoutPublication;
|
|
2458
|
-
private _revealPendingLayoutAtPresentedTail;
|
|
2459
|
-
private _revealPendingLayoutThroughPage;
|
|
2460
2458
|
private _pageWidthPx;
|
|
2461
2459
|
private _pageHeightPx;
|
|
2462
2460
|
private _fitWidthPx;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-CX4ml5hj.d.ts
|
|
2
2
|
type DecodedImageBudgetStrategy = 'adaptive' | 'strict';
|
|
3
3
|
interface ImageResourceOptions {
|
|
4
4
|
decodedByteBudget?: number;
|
|
5
5
|
strategy?: DecodedImageBudgetStrategy;
|
|
6
|
+
resolution?: 'native-if-fit' | 'display';
|
|
6
7
|
}
|
|
7
8
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
8
9
|
interface MathRun {
|
|
@@ -1254,7 +1255,7 @@ interface ChartRect {
|
|
|
1254
1255
|
h: number;
|
|
1255
1256
|
}
|
|
1256
1257
|
//#endregion
|
|
1257
|
-
//#region dist/.types-work/chart-ex-contract-
|
|
1258
|
+
//#region dist/.types-work/chart-ex-contract-D-MROxI4.d.ts
|
|
1258
1259
|
interface ChartExRenderer {
|
|
1259
1260
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1260
1261
|
}
|
|
@@ -1271,12 +1272,12 @@ interface MathRenderer {
|
|
|
1271
1272
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
1272
1273
|
}
|
|
1273
1274
|
//#endregion
|
|
1274
|
-
//#region dist/.types-work/three-d-contract-
|
|
1275
|
+
//#region dist/.types-work/three-d-contract-2IUr35q1.d.ts
|
|
1275
1276
|
interface ChartThreeDRenderer {
|
|
1276
1277
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1277
1278
|
}
|
|
1278
1279
|
//#endregion
|
|
1279
|
-
//#region dist/.types-work/region-map-contract-
|
|
1280
|
+
//#region dist/.types-work/region-map-contract-CtuTzdmN.d.ts
|
|
1280
1281
|
interface ChartRegionMapRenderer {
|
|
1281
1282
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1282
1283
|
}
|
|
@@ -1296,7 +1297,7 @@ interface TiffRenderer {
|
|
|
1296
1297
|
render(bytes: Uint8Array, options?: Readonly<TiffRenderOptions>): Promise<ImageBitmap | null>;
|
|
1297
1298
|
}
|
|
1298
1299
|
//#endregion
|
|
1299
|
-
//#region dist/.types-work/hyperlink-
|
|
1300
|
+
//#region dist/.types-work/hyperlink-92bQUogu.d.ts
|
|
1300
1301
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
1301
1302
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
1302
1303
|
declare class OoxmlError extends Error {
|
|
@@ -1472,7 +1473,7 @@ interface FindHighlightColors {
|
|
|
1472
1473
|
active?: string;
|
|
1473
1474
|
}
|
|
1474
1475
|
//#endregion
|
|
1475
|
-
//#region dist/.types-work/types-
|
|
1476
|
+
//#region dist/.types-work/types-CKbbBm9J.d.ts
|
|
1476
1477
|
interface DocxDocumentModel {
|
|
1477
1478
|
section: SectionProps;
|
|
1478
1479
|
body: BodyElement[];
|
|
@@ -2219,7 +2220,7 @@ interface RenderPageOptions {
|
|
|
2219
2220
|
showTrackedChanges?: boolean;
|
|
2220
2221
|
}
|
|
2221
2222
|
//#endregion
|
|
2222
|
-
//#region dist/.types-work/docx-
|
|
2223
|
+
//#region dist/.types-work/docx-8nLAF_CE.d.ts
|
|
2223
2224
|
interface CommentAnchorRange {
|
|
2224
2225
|
readonly commentId: string;
|
|
2225
2226
|
readonly source: Readonly<DocxStorySource>;
|
|
@@ -2608,7 +2609,6 @@ declare class DocxScrollViewer implements ZoomableViewer {
|
|
|
2608
2609
|
private _lastReportedLayoutComplete;
|
|
2609
2610
|
private _layoutUnsubscribe;
|
|
2610
2611
|
private _presentedPageCount;
|
|
2611
|
-
private _pendingLayoutPublication;
|
|
2612
2612
|
private _scrollListener;
|
|
2613
2613
|
private _selectionChangeListener;
|
|
2614
2614
|
private _selectionContextKey;
|
|
@@ -2662,8 +2662,6 @@ declare class DocxScrollViewer implements ZoomableViewer {
|
|
|
2662
2662
|
private _onLayoutViewPublication;
|
|
2663
2663
|
private _refreshCommentSurface;
|
|
2664
2664
|
private _applyLayoutPublication;
|
|
2665
|
-
private _revealPendingLayoutAtPresentedTail;
|
|
2666
|
-
private _revealPendingLayoutThroughPage;
|
|
2667
2665
|
private _pageWidthPx;
|
|
2668
2666
|
private _pageHeightPx;
|
|
2669
2667
|
private _fitWidthPx;
|
|
@@ -2768,7 +2766,7 @@ declare namespace docx_d_exports {
|
|
|
2768
2766
|
export { AnchorHostMetrics, AutoResizeOptions, BodyElement, BorderSpec, CellBorders, CellElement, ChartAreaGroupDecorations, ChartBarGroupDecorations, ChartDataLabelOverride, ChartDataPointOverride, ChartDataTable, ChartDecorationLineStyle, ChartDisplayUnits, ChartDisplayUnitsLabel, ChartErrBars, ChartExElementStyle, ChartExRenderer, ChartLabelBox, ChartLegendEntryOverride, ChartLineDashSegment, ChartLineGroupDecorations, ChartManualLayout, ChartModel, ChartOfPie, ChartPlotGroup, ChartPlotGroupAxisSlot, ChartPlotGroupKind, ChartRect, ChartRegionMapRenderer, ChartRun, ChartSeries, ChartSeriesDataLabels, ChartStockBarPaint, ChartStockUpDownBarStyle, ChartSurfaceBandFormat, ChartTextBox, ChartTextParagraph, ChartTextRun, ChartThreeD, ChartThreeDPictureOptions, ChartThreeDRenderer, ChartThreeDSeriesAxis, ChartThreeDSurface, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexGeography, ChartexHistogramBinning, ChartexRegionMap, ChartexRegionMapColors, ChartexRegionMapRow, ChartexSunburst, ChartexSunburstRow, ChartexTreemap, ChartexValueColorStop, ColSpec, CollectPageRunsOptions, ColumnsSpec, CommentAnchorGeometryFallback, CommentAnchorPoint, CommentAnchorRange, DecodedImageBudgetStrategy, DocComment, DocNote, DocParagraph, DocRevision, DocRun, DocSettings, DocTable, DocTableCell, DocTableRow, DocxCommentAnchorKind, DocxCommentHighlightRect, DocxCommentMark, DocxCommentSelectionContext, DocxCommentsOptions, DocxDocument, DocxDocumentModel, DocxElementContext, DocxElementContextOptions, DocxHighlightColors, DocxHighlightMatch, DocxMatchLocation, DocxPageCommentThreadsOptions, DocxPagePoint, DocxRunBorder, DocxScrollViewer, DocxScrollViewerOptions, DocxSelectionContext, DocxSelectionContextOptions, DocxSelectionRunLocator, DocxSelectionSourceLocator, DocxStorySource, DocxTextRun, DocxTextRunInfo, DocxTextSelectionContext, DocxViewer, DocxViewerOptions, DrawingMLCustomDashSegment, Duotone$1 as Duotone, EmbeddedFontRef, FieldRun, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, FramePr, GradientFill, GradientStop, HeaderFooter, HeadersFooters, HyperlinkTarget, ImageFill, ImageResourceOptions, 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, NoFill, 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, ResolveDocxCommentThreadsOptions, ResolvedDocxCommentAnchor, ResolvedDocxCommentThread, RevisionAnchorGeometryFallback, RevisionAnchorRange, RubyAnnotation, RunRevision, SecondaryValueAxis, SectionGeom, SectionProps, ShapeFill$1 as ShapeFill, ShapeRun, ShapeStrokeFill, ShapeText$1 as ShapeText, ShapeTextRun$1 as ShapeTextRun, SolidFill, SrcRect, TabStop, TableBorders, TblpPr, TextPath, TextSelectionContextOptions, TiffDecodeError, TiffRenderOptions, TiffRenderer, TileInfo, ViewerCommentConnectorOptions, ViewerCommentConnectorRoute, ViewerCommentConnectorStroke, ViewerCommentMessageContext, ViewerCommentThreadContext, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildDocxHighlightLayer, buildDocxTextLayer, isOoxmlDecodedImageLimitError, isTiffDecodeError, noteText, openExternalHyperlink, readDocxTextSelectionContext, resolveCommentAnchorRuns, resolveDocxCommentThreads, resolveRevisionAnchorRuns };
|
|
2769
2767
|
}
|
|
2770
2768
|
//#endregion
|
|
2771
|
-
//#region dist/.types-work/types-
|
|
2769
|
+
//#region dist/.types-work/types-BYLigRmk.d.ts
|
|
2772
2770
|
interface BlipBullet {
|
|
2773
2771
|
type: 'blip';
|
|
2774
2772
|
imagePath: string;
|
|
@@ -3030,7 +3028,7 @@ interface PictureElement {
|
|
|
3030
3028
|
sp3d?: Sp3d;
|
|
3031
3029
|
}
|
|
3032
3030
|
//#endregion
|
|
3033
|
-
//#region dist/.types-work/pptx-
|
|
3031
|
+
//#region dist/.types-work/pptx-BlT4_QTU.d.ts
|
|
3034
3032
|
interface PptxTextRunInfo {
|
|
3035
3033
|
elementIndex?: number;
|
|
3036
3034
|
origin?: SlideElementOrigin;
|
|
@@ -3604,7 +3602,7 @@ declare namespace pptx_d_exports {
|
|
|
3604
3602
|
export { ArrowEnd, AutoResizeOptions, Bevel3d, BlipBullet, Bullet, Camera3d, ChartAreaGroupDecorations, ChartBarGroupDecorations, ChartDataLabelOverride, ChartDataPointOverride, ChartDataTable, ChartDecorationLineStyle, ChartDisplayUnits, ChartDisplayUnitsLabel, ChartElement, ChartErrBars, ChartExElementStyle, ChartExRenderer, ChartLabelBox, ChartLegendEntryOverride, ChartLineDashSegment, ChartLineGroupDecorations, ChartManualLayout, ChartModel, ChartOfPie, ChartPlotGroup, ChartPlotGroupAxisSlot, ChartPlotGroupKind, ChartRect, ChartRegionMapRenderer, ChartSeries, ChartSeriesDataLabels, ChartStockBarPaint, ChartStockUpDownBarStyle, ChartSurfaceBandFormat, ChartTextBox, ChartTextParagraph, ChartTextRun, ChartThreeD, ChartThreeDPictureOptions, ChartThreeDRenderer, ChartThreeDSeriesAxis, ChartThreeDSurface, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexGeography, ChartexHistogramBinning, ChartexRegionMap, ChartexRegionMapColors, ChartexRegionMapRow, ChartexSunburst, ChartexSunburstRow, ChartexTreemap, ChartexValueColorStop, DecodedImageBudgetStrategy, DimOptions, DrawingMLCustomDashSegment, Duotone$1 as Duotone, EquationRun, Fill, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, Glow, GradientFill, GradientStop$1 as GradientStop, HiddenSlideMode, HyperlinkTarget, ImageFill, ImageResourceOptions, 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, PptxCommentAnchor, PptxCommentReply, PptxCommentSelectionContext, PptxCommentsOptions, PptxElementBounds, 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, SrcRect, Stroke, TabStop$1 as TabStop, TableCell, TableElement, TableRow, TextBody, TextOutline, TextRect, TextRun, TextRunCallback, TextRunData, TextSelectionContextOptions, TiffDecodeError, TiffRenderOptions, TiffRenderer, TileInfo, ViewerCommentConnectorOptions, ViewerCommentConnectorRoute, ViewerCommentConnectorStroke, ViewerCommentMessageContext, ViewerCommentThreadContext, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, isTiffDecodeError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
|
|
3605
3603
|
}
|
|
3606
3604
|
//#endregion
|
|
3607
|
-
//#region dist/.types-work/types-
|
|
3605
|
+
//#region dist/.types-work/types-BzjMGMnI.d.ts
|
|
3608
3606
|
type ShapeFill = Exclude<Fill, {
|
|
3609
3607
|
fillType: 'image';
|
|
3610
3608
|
} | {
|
|
@@ -4358,7 +4356,7 @@ interface XlsxRenderViewportOptions {
|
|
|
4358
4356
|
} | null;
|
|
4359
4357
|
}
|
|
4360
4358
|
//#endregion
|
|
4361
|
-
//#region dist/.types-work/xlsx-
|
|
4359
|
+
//#region dist/.types-work/xlsx-Bryt4758.d.ts
|
|
4362
4360
|
type ResolvedList = {
|
|
4363
4361
|
kind: 'values';
|
|
4364
4362
|
values: string[];
|
package/dist/types/node.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-CX4ml5hj.d.ts
|
|
2
2
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
3
3
|
interface MathRun {
|
|
4
4
|
kind: 'run';
|
|
@@ -1231,7 +1231,7 @@ interface ChartLegendEntryOverride {
|
|
|
1231
1231
|
fontBold?: boolean | null;
|
|
1232
1232
|
}
|
|
1233
1233
|
//#endregion
|
|
1234
|
-
//#region dist/.types-work/hyperlink-
|
|
1234
|
+
//#region dist/.types-work/hyperlink-92bQUogu.d.ts
|
|
1235
1235
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
1236
1236
|
type OoxmlFormat = 'docx' | 'xlsx' | 'pptx';
|
|
1237
1237
|
interface OoxmlResourceUsageSnapshot {
|
|
@@ -1317,7 +1317,7 @@ type HyperlinkTarget = {
|
|
|
1317
1317
|
slideIndex?: number;
|
|
1318
1318
|
};
|
|
1319
1319
|
//#endregion
|
|
1320
|
-
//#region dist/.types-work/types-
|
|
1320
|
+
//#region dist/.types-work/types-CKbbBm9J.d.ts
|
|
1321
1321
|
interface DocxDocumentModel {
|
|
1322
1322
|
section: SectionProps;
|
|
1323
1323
|
body: BodyElement[];
|
|
@@ -2054,7 +2054,7 @@ interface DocxTextRunInfo {
|
|
|
2054
2054
|
eastAsianVert?: boolean;
|
|
2055
2055
|
}
|
|
2056
2056
|
//#endregion
|
|
2057
|
-
//#region dist/.types-work/types-
|
|
2057
|
+
//#region dist/.types-work/types-BYLigRmk.d.ts
|
|
2058
2058
|
interface Paragraph extends Paragraph$1 {
|
|
2059
2059
|
eaLnBrk: boolean;
|
|
2060
2060
|
defTabSz?: number;
|
|
@@ -2304,7 +2304,7 @@ interface PictureElement {
|
|
|
2304
2304
|
sp3d?: Sp3d;
|
|
2305
2305
|
}
|
|
2306
2306
|
//#endregion
|
|
2307
|
-
//#region dist/.types-work/types-
|
|
2307
|
+
//#region dist/.types-work/types-BzjMGMnI.d.ts
|
|
2308
2308
|
type ShapeFill = Exclude<Fill, {
|
|
2309
2309
|
fillType: 'image';
|
|
2310
2310
|
} | {
|
package/dist/types/pptx.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-CX4ml5hj.d.ts
|
|
2
2
|
type DecodedImageBudgetStrategy = 'adaptive' | 'strict';
|
|
3
3
|
interface ImageResourceOptions {
|
|
4
4
|
decodedByteBudget?: number;
|
|
5
5
|
strategy?: DecodedImageBudgetStrategy;
|
|
6
|
+
resolution?: 'native-if-fit' | 'display';
|
|
6
7
|
}
|
|
7
8
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
8
9
|
interface MathRun {
|
|
@@ -1254,7 +1255,7 @@ interface ChartRect {
|
|
|
1254
1255
|
h: number;
|
|
1255
1256
|
}
|
|
1256
1257
|
//#endregion
|
|
1257
|
-
//#region dist/.types-work/chart-ex-contract-
|
|
1258
|
+
//#region dist/.types-work/chart-ex-contract-D-MROxI4.d.ts
|
|
1258
1259
|
interface ChartExRenderer {
|
|
1259
1260
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1260
1261
|
}
|
|
@@ -1271,12 +1272,12 @@ interface MathRenderer {
|
|
|
1271
1272
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
1272
1273
|
}
|
|
1273
1274
|
//#endregion
|
|
1274
|
-
//#region dist/.types-work/three-d-contract-
|
|
1275
|
+
//#region dist/.types-work/three-d-contract-2IUr35q1.d.ts
|
|
1275
1276
|
interface ChartThreeDRenderer {
|
|
1276
1277
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1277
1278
|
}
|
|
1278
1279
|
//#endregion
|
|
1279
|
-
//#region dist/.types-work/region-map-contract-
|
|
1280
|
+
//#region dist/.types-work/region-map-contract-CtuTzdmN.d.ts
|
|
1280
1281
|
interface ChartRegionMapRenderer {
|
|
1281
1282
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1282
1283
|
}
|
|
@@ -1296,7 +1297,7 @@ interface TiffRenderer {
|
|
|
1296
1297
|
render(bytes: Uint8Array, options?: Readonly<TiffRenderOptions>): Promise<ImageBitmap | null>;
|
|
1297
1298
|
}
|
|
1298
1299
|
//#endregion
|
|
1299
|
-
//#region dist/.types-work/hyperlink-
|
|
1300
|
+
//#region dist/.types-work/hyperlink-92bQUogu.d.ts
|
|
1300
1301
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
1301
1302
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
1302
1303
|
declare class OoxmlError extends Error {
|
|
@@ -1472,7 +1473,7 @@ interface FindHighlightColors {
|
|
|
1472
1473
|
active?: string;
|
|
1473
1474
|
}
|
|
1474
1475
|
//#endregion
|
|
1475
|
-
//#region dist/.types-work/types-
|
|
1476
|
+
//#region dist/.types-work/types-BYLigRmk.d.ts
|
|
1476
1477
|
interface BlipBullet {
|
|
1477
1478
|
type: 'blip';
|
|
1478
1479
|
imagePath: string;
|
|
@@ -1734,7 +1735,7 @@ interface PictureElement {
|
|
|
1734
1735
|
sp3d?: Sp3d;
|
|
1735
1736
|
}
|
|
1736
1737
|
//#endregion
|
|
1737
|
-
//#region dist/.types-work/pptx-
|
|
1738
|
+
//#region dist/.types-work/pptx-BlT4_QTU.d.ts
|
|
1738
1739
|
interface PptxTextRunInfo {
|
|
1739
1740
|
elementIndex?: number;
|
|
1740
1741
|
origin?: SlideElementOrigin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-CX4ml5hj.d.ts
|
|
2
2
|
interface Duotone {
|
|
3
3
|
clr1: string;
|
|
4
4
|
clr2: string;
|
|
@@ -938,7 +938,7 @@ interface ChartRect {
|
|
|
938
938
|
h: number;
|
|
939
939
|
}
|
|
940
940
|
//#endregion
|
|
941
|
-
//#region dist/.types-work/region-map-contract-
|
|
941
|
+
//#region dist/.types-work/region-map-contract-CtuTzdmN.d.ts
|
|
942
942
|
interface ChartRegionMapRenderer {
|
|
943
943
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
944
944
|
}
|
package/dist/types/three-d.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-CX4ml5hj.d.ts
|
|
2
2
|
interface Duotone {
|
|
3
3
|
clr1: string;
|
|
4
4
|
clr2: string;
|
|
@@ -938,7 +938,7 @@ interface ChartRect {
|
|
|
938
938
|
h: number;
|
|
939
939
|
}
|
|
940
940
|
//#endregion
|
|
941
|
-
//#region dist/.types-work/three-d-contract-
|
|
941
|
+
//#region dist/.types-work/three-d-contract-2IUr35q1.d.ts
|
|
942
942
|
interface ChartThreeDRenderer {
|
|
943
943
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
944
944
|
}
|
package/dist/types/xlsx.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-CX4ml5hj.d.ts
|
|
2
2
|
type DecodedImageBudgetStrategy = 'adaptive' | 'strict';
|
|
3
3
|
interface ImageResourceOptions {
|
|
4
4
|
decodedByteBudget?: number;
|
|
5
5
|
strategy?: DecodedImageBudgetStrategy;
|
|
6
|
+
resolution?: 'native-if-fit' | 'display';
|
|
6
7
|
}
|
|
7
8
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
8
9
|
interface MathRun {
|
|
@@ -1059,7 +1060,7 @@ interface ChartRect {
|
|
|
1059
1060
|
h: number;
|
|
1060
1061
|
}
|
|
1061
1062
|
//#endregion
|
|
1062
|
-
//#region dist/.types-work/chart-ex-contract-
|
|
1063
|
+
//#region dist/.types-work/chart-ex-contract-D-MROxI4.d.ts
|
|
1063
1064
|
interface ChartExRenderer {
|
|
1064
1065
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1065
1066
|
}
|
|
@@ -1076,12 +1077,12 @@ interface MathRenderer {
|
|
|
1076
1077
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
1077
1078
|
}
|
|
1078
1079
|
//#endregion
|
|
1079
|
-
//#region dist/.types-work/three-d-contract-
|
|
1080
|
+
//#region dist/.types-work/three-d-contract-2IUr35q1.d.ts
|
|
1080
1081
|
interface ChartThreeDRenderer {
|
|
1081
1082
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1082
1083
|
}
|
|
1083
1084
|
//#endregion
|
|
1084
|
-
//#region dist/.types-work/region-map-contract-
|
|
1085
|
+
//#region dist/.types-work/region-map-contract-CtuTzdmN.d.ts
|
|
1085
1086
|
interface ChartRegionMapRenderer {
|
|
1086
1087
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1087
1088
|
}
|
|
@@ -1101,7 +1102,7 @@ interface TiffRenderer {
|
|
|
1101
1102
|
render(bytes: Uint8Array, options?: Readonly<TiffRenderOptions>): Promise<ImageBitmap | null>;
|
|
1102
1103
|
}
|
|
1103
1104
|
//#endregion
|
|
1104
|
-
//#region dist/.types-work/hyperlink-
|
|
1105
|
+
//#region dist/.types-work/hyperlink-92bQUogu.d.ts
|
|
1105
1106
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
1106
1107
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
1107
1108
|
declare class OoxmlError extends Error {
|
|
@@ -1252,7 +1253,7 @@ interface FindHighlightColors {
|
|
|
1252
1253
|
active?: string;
|
|
1253
1254
|
}
|
|
1254
1255
|
//#endregion
|
|
1255
|
-
//#region dist/.types-work/types-
|
|
1256
|
+
//#region dist/.types-work/types-BzjMGMnI.d.ts
|
|
1256
1257
|
type ShapeFill = Exclude<Fill, {
|
|
1257
1258
|
fillType: 'image';
|
|
1258
1259
|
} | {
|
|
@@ -2006,7 +2007,7 @@ interface XlsxRenderViewportOptions {
|
|
|
2006
2007
|
} | null;
|
|
2007
2008
|
}
|
|
2008
2009
|
//#endregion
|
|
2009
|
-
//#region dist/.types-work/xlsx-
|
|
2010
|
+
//#region dist/.types-work/xlsx-Bryt4758.d.ts
|
|
2010
2011
|
type ResolvedList = {
|
|
2011
2012
|
kind: 'values';
|
|
2012
2013
|
values: string[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $t as e, F as t, I as n, K as r, N as i, P as a,
|
|
2
|
-
import { n as h, r as g, t as _ } from "./resource-measurement-
|
|
1
|
+
import { $t as e, F as t, I as n, K as r, N as i, P as a, U as o, an as s, cn as c, en as l, in as u, nn as d, on as f, rn as p, tn as m } from "./line-metrics-BGtFM-ec.js";
|
|
2
|
+
import { n as h, r as g, t as _ } from "./resource-measurement-D41R-0Bl.js";
|
|
3
3
|
import { t as v } from "./transfer-mIj7E7NB.js";
|
|
4
4
|
//#region packages/xlsx/src/worksheet-resource-limits.ts
|
|
5
|
-
var y =
|
|
5
|
+
var y = f, b = p, x = u, S = s, C = d, w = e, T = l, E = m, 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 c(`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
|
-
},
|
|
175
|
+
}, l, u = !1, d = new t({
|
|
176
176
|
...r,
|
|
177
177
|
maxByteCredit: z,
|
|
178
178
|
coordinator: this.coordinator,
|
|
@@ -185,12 +185,12 @@ var z = 64 * 1024 * 1024, B = class {
|
|
|
185
185
|
if (n.kind === "rows") {
|
|
186
186
|
let e = A(s, O(n.rows));
|
|
187
187
|
N(e, "get-worksheet-worker", void 0, this.readResourceUsage()), o.push(...n.rows), s = e;
|
|
188
|
-
} else
|
|
188
|
+
} else l = n.worksheet;
|
|
189
189
|
} catch (e) {
|
|
190
|
-
throw e instanceof
|
|
190
|
+
throw e instanceof c && (this.resourceFailure ??= e), e;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
u = t;
|
|
194
194
|
let n = v(e);
|
|
195
195
|
return {
|
|
196
196
|
payload: n,
|
|
@@ -201,26 +201,26 @@ var z = 64 * 1024 * 1024, B = class {
|
|
|
201
201
|
},
|
|
202
202
|
measureChunk: ({ payload: e }) => e.byteLength,
|
|
203
203
|
acknowledge: () => {
|
|
204
|
-
if (!
|
|
204
|
+
if (!u) return;
|
|
205
205
|
let t, n;
|
|
206
206
|
try {
|
|
207
207
|
if (this.acceptWorksheet) {
|
|
208
|
-
if (!
|
|
209
|
-
|
|
210
|
-
let r =
|
|
208
|
+
if (!l) throw Error("worksheet terminal payload is missing");
|
|
209
|
+
l.rows = l.parseError ? [] : o;
|
|
210
|
+
let r = l.parseError ? {
|
|
211
211
|
rows: 0,
|
|
212
212
|
cells: 0,
|
|
213
213
|
ownedUtf8Bytes: 0
|
|
214
|
-
} : s, i = k(
|
|
214
|
+
} : s, i = k(l, r), a = this.readResourceUsage();
|
|
215
215
|
N(i, "get-worksheet-worker", void 0, a), P(i.jsonBytes, "get-worksheet-worker", void 0, a);
|
|
216
|
-
let
|
|
217
|
-
typeof
|
|
216
|
+
let c = this.acceptWorksheet(e, l, i, a);
|
|
217
|
+
typeof c == "function" ? t = c : c && ({rollback: t, commit: n} = c);
|
|
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 c && (this.resourceFailure ??= e), e;
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
u = !1, this.sessions.delete(r.sessionId), a();
|
|
224
224
|
},
|
|
225
225
|
cancel: () => {
|
|
226
226
|
try {
|
|
@@ -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
|
}));
|
|
@@ -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 c && (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 o(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;
|