@silurus/ooxml 0.84.1 → 0.85.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.
- package/README.md +44 -18
- package/dist/assets/render-worker-BRKOyWVH.js +24 -0
- package/dist/assets/render-worker-CtLMFj9r.js +10 -0
- package/dist/assets/render-worker-NZPOUOTU.js +11 -0
- package/dist/{canvas-viewer-mechanics-CIfhCgYA.js → canvas-viewer-mechanics-CfRzOhz5.js} +308 -234
- package/dist/chart-ex.mjs +270 -270
- package/dist/{comment-ui-runtime-CdMMApEN.js → comment-ui-runtime-CAbpuWi_.js} +4 -4
- package/dist/{comment-ui-runtime-C5qimVMD.js → comment-ui-runtime-DAKBCpsM.js} +5 -5
- package/dist/comment-ui-runtime-DTaaZdXC.js +2 -0
- package/dist/{comments-BAlAyIhb.js → comments-Brfxa3hQ.js} +1 -1
- package/dist/{document-pull-client-BXw6AAhY.js → document-pull-client-BkHHIdR4.js} +4661 -4357
- package/dist/{docx-BA1vB0V-.js → docx-_uelcAui.js} +338 -304
- package/dist/docx.mjs +7 -6
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{dom-interaction-boundary-DS6BVyHA.js → dom-interaction-boundary-CMDDgICk.js} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/line-distribute-CiKeWjBF.js +1023 -0
- package/dist/{line-metrics-CXyjyYd5.js → line-metrics-u87yCAfV.js} +2182 -705
- package/dist/math.mjs +2 -2
- package/dist/node.mjs +404 -394
- package/dist/pixel-budget-Dgjw269h.js +37 -0
- package/dist/{plot-area-frame-DuXZzovH.js → plot-area-frame-D5hEOgkJ.js} +691 -1418
- package/dist/{pptx-C17oBD8Z.js → pptx-WpBbS0mq.js} +255 -222
- package/dist/pptx.mjs +7 -6
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/raster-target-whZhvVMt.js +87 -0
- package/dist/region-map.mjs +5 -5
- package/dist/{render-CVeGktZG.js → render-DrAAZWwH.js} +9 -6
- package/dist/{render-worker-host-BbhwA24Y.js → render-worker-host-CBVe8aeD.js} +1 -1
- package/dist/{render-worker-host-BWdhjVH_.js → render-worker-host-CHlwYJdK.js} +1 -1
- package/dist/{render-worker-host-CbaQivE7.js → render-worker-host-XDMsyVsv.js} +1 -1
- package/dist/{renderer-Bmky2yBc.js → renderer-XFSCOT6m.js} +1937 -1936
- package/dist/resource-measurement-6uR3Huao.js +150 -0
- package/dist/{session-Cl0RVnMs.js → session-DoPwA4gv.js} +79 -79
- package/dist/{slide-pull-client-BS0EeZo2.js → slide-pull-client-8i8C4VyD.js} +1054 -824
- package/dist/{three-d-B7LsKeOS.js → three-d-YYghQndN.js} +109 -110
- package/dist/three-d.mjs +726 -726
- package/dist/tiff.mjs +664 -78
- package/dist/types/chart-ex.d.ts +2 -2
- package/dist/types/docx.d.ts +31 -13
- package/dist/types/index.d.ts +46 -21
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +11 -7
- package/dist/types/pptx.d.ts +35 -15
- package/dist/types/region-map.d.ts +2 -2
- package/dist/types/three-d.d.ts +2 -2
- package/dist/types/tiff.d.ts +13 -3
- package/dist/types/xlsx.d.ts +30 -13
- package/dist/{worksheet-pull-client-B0zfEVau.js → worksheet-pull-client-Btydoxto.js} +47 -47
- package/dist/{xlsx-FyKAiNo-.js → xlsx-Bd16V4Xx.js} +1395 -1196
- package/dist/xlsx.mjs +7 -6
- package/package.json +2 -2
- package/dist/assets/render-worker-BWPpayBu.js +0 -10
- package/dist/assets/render-worker-CiEWCh_T.js +0 -11
- package/dist/assets/render-worker-Cpmy3GDF.js +0 -24
- package/dist/comment-ui-runtime-aPzHfV_A.js +0 -2
- package/dist/line-distribute-MqInuujx.js +0 -1003
- package/dist/resource-measurement-esyGbzAF.js +0 -120
- package/dist/tiff-contract-Xjn3qXqK.js +0 -69
- /package/dist/{comment-occurrence-C34fWs_F.js → comment-occurrence-tj54AXXB.js} +0 -0
- /package/dist/{highlight-rect-MaCt0om0.js → highlight-rect-DBcYVJDv.js} +0 -0
- /package/dist/{mathjax-DPEX346v.js → mathjax-DS69BmJd.js} +0 -0
- /package/dist/{read-only-comment-decoration-BYCXoSdC.js → read-only-comment-decoration-Mv_SAiHy.js} +0 -0
- /package/dist/{read-only-comment-margin-C7b3l0ro.js → read-only-comment-margin-Cqu-Ir0C.js} +0 -0
- /package/dist/{renderer-module-contract-C6sYZvTV.js → renderer-module-contract-Cu-GKuPd.js} +0 -0
- /package/dist/{source-key-DORuuFb-.js → source-key-BkBB3X82.js} +0 -0
- /package/dist/{transfer-vNOFQuvv.js → transfer-mIj7E7NB.js} +0 -0
- /package/dist/{visible-index-DwJzuGmJ.js → visible-index-DPoQYSDt.js} +0 -0
package/dist/types/chart-ex.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-D5f5lUUP.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-BkjyVy4_.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,4 +1,9 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-D5f5lUUP.d.ts
|
|
2
|
+
type DecodedImageBudgetStrategy = 'adaptive' | 'strict';
|
|
3
|
+
interface ImageResourceOptions {
|
|
4
|
+
decodedByteBudget?: number;
|
|
5
|
+
strategy?: DecodedImageBudgetStrategy;
|
|
6
|
+
}
|
|
2
7
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
3
8
|
interface MathRun {
|
|
4
9
|
kind: 'run';
|
|
@@ -1042,12 +1047,12 @@ interface ChartRect {
|
|
|
1042
1047
|
h: number;
|
|
1043
1048
|
}
|
|
1044
1049
|
//#endregion
|
|
1045
|
-
//#region dist/.types-work/chart-ex-contract-
|
|
1050
|
+
//#region dist/.types-work/chart-ex-contract-BkjyVy4_.d.ts
|
|
1046
1051
|
interface ChartExRenderer {
|
|
1047
1052
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1048
1053
|
}
|
|
1049
1054
|
//#endregion
|
|
1050
|
-
//#region dist/.types-work/mathjax-
|
|
1055
|
+
//#region dist/.types-work/mathjax-emiLk9eb.d.ts
|
|
1051
1056
|
interface MathSvg {
|
|
1052
1057
|
svg: string;
|
|
1053
1058
|
widthEm: number;
|
|
@@ -1059,22 +1064,32 @@ interface MathRenderer {
|
|
|
1059
1064
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
1060
1065
|
}
|
|
1061
1066
|
//#endregion
|
|
1062
|
-
//#region dist/.types-work/three-d-contract-
|
|
1067
|
+
//#region dist/.types-work/three-d-contract-3rYMiY6u.d.ts
|
|
1063
1068
|
interface ChartThreeDRenderer {
|
|
1064
1069
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1065
1070
|
}
|
|
1066
1071
|
//#endregion
|
|
1067
|
-
//#region dist/.types-work/region-map-contract-
|
|
1072
|
+
//#region dist/.types-work/region-map-contract-fx_imRHE.d.ts
|
|
1068
1073
|
interface ChartRegionMapRenderer {
|
|
1069
1074
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1070
1075
|
}
|
|
1071
1076
|
//#endregion
|
|
1072
|
-
//#region dist/.types-work/tiff-contract-
|
|
1077
|
+
//#region dist/.types-work/tiff-contract-DJ3gpIhe.d.ts
|
|
1078
|
+
interface TiffRenderOptions {
|
|
1079
|
+
targetWidthPx?: number;
|
|
1080
|
+
targetHeightPx?: number;
|
|
1081
|
+
maxRetainedPixels?: number;
|
|
1082
|
+
}
|
|
1083
|
+
declare class TiffDecodeError extends Error {
|
|
1084
|
+
readonly code: 'ooxml-tiff-decode';
|
|
1085
|
+
constructor(message: string, options?: ErrorOptions);
|
|
1086
|
+
}
|
|
1087
|
+
declare function isTiffDecodeError(error: unknown): error is TiffDecodeError;
|
|
1073
1088
|
interface TiffRenderer {
|
|
1074
|
-
render(bytes: Uint8Array): Promise<ImageBitmap | null>;
|
|
1089
|
+
render(bytes: Uint8Array, options?: Readonly<TiffRenderOptions>): Promise<ImageBitmap | null>;
|
|
1075
1090
|
}
|
|
1076
1091
|
//#endregion
|
|
1077
|
-
//#region dist/.types-work/hyperlink-
|
|
1092
|
+
//#region dist/.types-work/hyperlink-DmJyne_y.d.ts
|
|
1078
1093
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
1079
1094
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
1080
1095
|
declare class OoxmlError extends Error {
|
|
@@ -1170,7 +1185,7 @@ interface LoadOptions$1 {
|
|
|
1170
1185
|
chartEx?: ChartExRenderer;
|
|
1171
1186
|
tiff?: TiffRenderer;
|
|
1172
1187
|
}
|
|
1173
|
-
type OoxmlDecodedImageLimitMetric = 'image-pixels' | 'active-decoded-bytes';
|
|
1188
|
+
type OoxmlDecodedImageLimitMetric = 'image-dimension' | 'image-pixels' | 'active-decoded-bytes';
|
|
1174
1189
|
declare class OoxmlDecodedImageLimitError extends RangeError {
|
|
1175
1190
|
readonly metric: OoxmlDecodedImageLimitMetric;
|
|
1176
1191
|
readonly limit: number;
|
|
@@ -1189,7 +1204,7 @@ type HyperlinkTarget = {
|
|
|
1189
1204
|
};
|
|
1190
1205
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
1191
1206
|
//#endregion
|
|
1192
|
-
//#region dist/.types-work/find-highlight-
|
|
1207
|
+
//#region dist/.types-work/find-highlight-CEEVmKfp.d.ts
|
|
1193
1208
|
interface TextSelectionContextOptions {
|
|
1194
1209
|
readonly maxTextCharacters?: number;
|
|
1195
1210
|
readonly maxRunLocators?: number;
|
|
@@ -1250,7 +1265,7 @@ interface FindHighlightColors {
|
|
|
1250
1265
|
active?: string;
|
|
1251
1266
|
}
|
|
1252
1267
|
//#endregion
|
|
1253
|
-
//#region dist/.types-work/types
|
|
1268
|
+
//#region dist/.types-work/types-BK3zrOsk.d.ts
|
|
1254
1269
|
interface DocxDocumentModel {
|
|
1255
1270
|
section: SectionProps;
|
|
1256
1271
|
body: BodyElement[];
|
|
@@ -1991,12 +2006,13 @@ interface RenderPageOptions {
|
|
|
1991
2006
|
width?: number;
|
|
1992
2007
|
dpr?: number;
|
|
1993
2008
|
defaultTextColor?: string;
|
|
2009
|
+
imageResources?: ImageResourceOptions;
|
|
1994
2010
|
onTextRun?: (run: DocxTextRunInfo) => void;
|
|
1995
2011
|
currentDate?: Date | number;
|
|
1996
2012
|
showTrackedChanges?: boolean;
|
|
1997
2013
|
}
|
|
1998
2014
|
//#endregion
|
|
1999
|
-
//#region dist/.types-work/docx-
|
|
2015
|
+
//#region dist/.types-work/docx-CuUWjsKl.d.ts
|
|
2000
2016
|
interface CommentAnchorRange {
|
|
2001
2017
|
readonly commentId: string;
|
|
2002
2018
|
readonly source: Readonly<DocxStorySource>;
|
|
@@ -2452,6 +2468,7 @@ declare class DocxScrollViewer implements ZoomableViewer {
|
|
|
2452
2468
|
private _commentsOptions;
|
|
2453
2469
|
private _commentSide;
|
|
2454
2470
|
private _syncCommentMarginGeometry;
|
|
2471
|
+
private _widestPageWidthPt;
|
|
2455
2472
|
private _baseScale;
|
|
2456
2473
|
relayout(): void;
|
|
2457
2474
|
private _relayout;
|
|
@@ -2483,6 +2500,7 @@ declare class DocxScrollViewer implements ZoomableViewer {
|
|
|
2483
2500
|
getScale(): number;
|
|
2484
2501
|
zoomIn(): void;
|
|
2485
2502
|
zoomOut(): void;
|
|
2503
|
+
private _effectiveZoomMin;
|
|
2486
2504
|
fitWidth(): void;
|
|
2487
2505
|
fitPage(): void;
|
|
2488
2506
|
private _fit;
|
|
@@ -2540,4 +2558,4 @@ interface DocxHighlightMatch {
|
|
|
2540
2558
|
type DocxHighlightColors = FindHighlightColors;
|
|
2541
2559
|
declare function buildDocxHighlightLayer(layer: HTMLDivElement, runs: DocxTextRunInfo[], matches: DocxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: DocxHighlightColors): void;
|
|
2542
2560
|
//#endregion
|
|
2543
|
-
export { type AnchorHostMetrics, type AutoResizeOptions, type BodyElement, type BorderSpec, type CellBorders, type CellElement, type ChartAreaGroupDecorations, type ChartBarGroupDecorations, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartDataTable, type ChartDecorationLineStyle, type ChartDisplayUnits, type ChartDisplayUnitsLabel, type ChartErrBars, type ChartExElementStyle, type ChartExRenderer, type ChartLabelBox, type ChartLegendEntryOverride, type ChartLineDashSegment, type ChartLineGroupDecorations, type ChartManualLayout, type ChartModel, type ChartOfPie, type ChartPlotGroup, type ChartPlotGroupAxisSlot, type ChartPlotGroupKind, type ChartRect, type ChartRegionMapRenderer, type ChartRun, type ChartSeries, type ChartSeriesDataLabels, type ChartStockBarPaint, type ChartStockUpDownBarStyle, type ChartSurfaceBandFormat, type ChartTextBox, type ChartTextParagraph, type ChartTextRun, type ChartThreeD, type ChartThreeDPictureOptions, 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 ColSpec, type CollectPageRunsOptions, type ColumnsSpec, type CommentAnchorGeometryFallback, type CommentAnchorPoint, type CommentAnchorRange, type DocComment, type DocNote, type DocParagraph, type DocRevision, type DocRun, type DocSettings, type DocTable, type DocTableCell, type DocTableRow, type DocxCommentAnchorKind, type DocxCommentHighlightRect, type DocxCommentMark, type DocxCommentSelectionContext, type DocxCommentsOptions, DocxDocument, type DocxDocumentModel, type DocxElementContext, type DocxElementContextOptions, type DocxHighlightColors, type DocxHighlightMatch, type DocxMatchLocation, type DocxPageCommentThreadsOptions, type DocxPagePoint, type DocxRunBorder, DocxScrollViewer, type DocxScrollViewerOptions, type DocxSelectionContext, type DocxSelectionContextOptions, type DocxSelectionRunLocator, type DocxSelectionSourceLocator, type DocxStorySource, type DocxTextRun, type DocxTextRunInfo, type DocxTextSelectionContext, DocxViewer, type DocxViewerOptions, type DrawingMLCustomDashSegment, type Duotone, type EmbeddedFontRef, type FieldRun, type FillRect, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type FramePr, type GradientFill, type GradientStop, type HeaderFooter, type HeadersFooters, type HyperlinkTarget, type ImageFill, type ImageRun, type LegendManualLayout, type LineEnd, type LineNumbering, type LineSpacing, type LoadOptions, type MatchRunSlice, 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 NoFill, type NoteRef, type NumberingInfo, 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 PTabRun, type PageBorderEdge, type PageBorders, type PageNumType, type ParaBorderEdge, type ParagraphBorders, type PathCmd, type PatternFill, type RenderPageOptions, type RenderPageToBitmapOptions, type ResolveDocxCommentThreadsOptions, type ResolvedDocxCommentAnchor, type ResolvedDocxCommentThread, type RevisionAnchorGeometryFallback, type RevisionAnchorRange, type RubyAnnotation, type RunRevision, type SecondaryValueAxis, type SectionGeom, type SectionProps, type ShapeFill, type ShapeRun, type ShapeStrokeFill, type ShapeText, type ShapeTextRun, type SolidFill, type SrcRect, type TabStop, type TableBorders, type TblpPr, type TextPath, type TextSelectionContextOptions, type TiffRenderer, type TileInfo, type ViewerCommentConnectorOptions, type ViewerCommentConnectorRoute, type ViewerCommentConnectorStroke, type ViewerCommentMessageContext, type ViewerCommentThreadContext, type ViewerContextMenuEvent, type ZoomableViewer, autoResize, buildDocxHighlightLayer, buildDocxTextLayer, isOoxmlDecodedImageLimitError, noteText, openExternalHyperlink, readDocxTextSelectionContext, resolveCommentAnchorRuns, resolveDocxCommentThreads, resolveRevisionAnchorRuns };
|
|
2561
|
+
export { type AnchorHostMetrics, type AutoResizeOptions, type BodyElement, type BorderSpec, type CellBorders, type CellElement, type ChartAreaGroupDecorations, type ChartBarGroupDecorations, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartDataTable, type ChartDecorationLineStyle, type ChartDisplayUnits, type ChartDisplayUnitsLabel, type ChartErrBars, type ChartExElementStyle, type ChartExRenderer, type ChartLabelBox, type ChartLegendEntryOverride, type ChartLineDashSegment, type ChartLineGroupDecorations, type ChartManualLayout, type ChartModel, type ChartOfPie, type ChartPlotGroup, type ChartPlotGroupAxisSlot, type ChartPlotGroupKind, type ChartRect, type ChartRegionMapRenderer, type ChartRun, type ChartSeries, type ChartSeriesDataLabels, type ChartStockBarPaint, type ChartStockUpDownBarStyle, type ChartSurfaceBandFormat, type ChartTextBox, type ChartTextParagraph, type ChartTextRun, type ChartThreeD, type ChartThreeDPictureOptions, 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 ColSpec, type CollectPageRunsOptions, type ColumnsSpec, type CommentAnchorGeometryFallback, type CommentAnchorPoint, type CommentAnchorRange, type DecodedImageBudgetStrategy, type DocComment, type DocNote, type DocParagraph, type DocRevision, type DocRun, type DocSettings, type DocTable, type DocTableCell, type DocTableRow, type DocxCommentAnchorKind, type DocxCommentHighlightRect, type DocxCommentMark, type DocxCommentSelectionContext, type DocxCommentsOptions, DocxDocument, type DocxDocumentModel, type DocxElementContext, type DocxElementContextOptions, type DocxHighlightColors, type DocxHighlightMatch, type DocxMatchLocation, type DocxPageCommentThreadsOptions, type DocxPagePoint, type DocxRunBorder, DocxScrollViewer, type DocxScrollViewerOptions, type DocxSelectionContext, type DocxSelectionContextOptions, type DocxSelectionRunLocator, type DocxSelectionSourceLocator, type DocxStorySource, type DocxTextRun, type DocxTextRunInfo, type DocxTextSelectionContext, DocxViewer, type DocxViewerOptions, type DrawingMLCustomDashSegment, type Duotone, type EmbeddedFontRef, type FieldRun, type FillRect, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type FramePr, type GradientFill, type GradientStop, type HeaderFooter, type HeadersFooters, type HyperlinkTarget, type ImageFill, type ImageResourceOptions, type ImageRun, type LegendManualLayout, type LineEnd, type LineNumbering, type LineSpacing, type LoadOptions, type MatchRunSlice, 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 NoFill, type NoteRef, type NumberingInfo, 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 PTabRun, type PageBorderEdge, type PageBorders, type PageNumType, type ParaBorderEdge, type ParagraphBorders, type PathCmd, type PatternFill, type RenderPageOptions, type RenderPageToBitmapOptions, type ResolveDocxCommentThreadsOptions, type ResolvedDocxCommentAnchor, type ResolvedDocxCommentThread, type RevisionAnchorGeometryFallback, type RevisionAnchorRange, type RubyAnnotation, type RunRevision, type SecondaryValueAxis, type SectionGeom, type SectionProps, type ShapeFill, type ShapeRun, type ShapeStrokeFill, type ShapeText, type ShapeTextRun, type SolidFill, type SrcRect, type TabStop, type TableBorders, type TblpPr, type TextPath, type TextSelectionContextOptions, TiffDecodeError, type TiffRenderOptions, type TiffRenderer, type TileInfo, type ViewerCommentConnectorOptions, type ViewerCommentConnectorRoute, type ViewerCommentConnectorStroke, type ViewerCommentMessageContext, type ViewerCommentThreadContext, type ViewerContextMenuEvent, type ZoomableViewer, autoResize, buildDocxHighlightLayer, buildDocxTextLayer, isOoxmlDecodedImageLimitError, isTiffDecodeError, noteText, openExternalHyperlink, readDocxTextSelectionContext, resolveCommentAnchorRuns, resolveDocxCommentThreads, resolveRevisionAnchorRuns };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-D5f5lUUP.d.ts
|
|
2
|
+
type DecodedImageBudgetStrategy = 'adaptive' | 'strict';
|
|
3
|
+
interface ImageResourceOptions {
|
|
4
|
+
decodedByteBudget?: number;
|
|
5
|
+
strategy?: DecodedImageBudgetStrategy;
|
|
6
|
+
}
|
|
2
7
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
3
8
|
interface MathRun {
|
|
4
9
|
kind: 'run';
|
|
@@ -374,6 +379,7 @@ interface RenderOptions {
|
|
|
374
379
|
width?: number;
|
|
375
380
|
defaultTextColor?: string | null;
|
|
376
381
|
dpr?: number;
|
|
382
|
+
imageResources?: ImageResourceOptions;
|
|
377
383
|
majorFont?: string | null;
|
|
378
384
|
minorFont?: string | null;
|
|
379
385
|
hlinkColor?: string | null;
|
|
@@ -1248,12 +1254,12 @@ interface ChartRect {
|
|
|
1248
1254
|
h: number;
|
|
1249
1255
|
}
|
|
1250
1256
|
//#endregion
|
|
1251
|
-
//#region dist/.types-work/chart-ex-contract-
|
|
1257
|
+
//#region dist/.types-work/chart-ex-contract-BkjyVy4_.d.ts
|
|
1252
1258
|
interface ChartExRenderer {
|
|
1253
1259
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1254
1260
|
}
|
|
1255
1261
|
//#endregion
|
|
1256
|
-
//#region dist/.types-work/mathjax-
|
|
1262
|
+
//#region dist/.types-work/mathjax-emiLk9eb.d.ts
|
|
1257
1263
|
interface MathSvg {
|
|
1258
1264
|
svg: string;
|
|
1259
1265
|
widthEm: number;
|
|
@@ -1265,22 +1271,32 @@ interface MathRenderer {
|
|
|
1265
1271
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
1266
1272
|
}
|
|
1267
1273
|
//#endregion
|
|
1268
|
-
//#region dist/.types-work/three-d-contract-
|
|
1274
|
+
//#region dist/.types-work/three-d-contract-3rYMiY6u.d.ts
|
|
1269
1275
|
interface ChartThreeDRenderer {
|
|
1270
1276
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1271
1277
|
}
|
|
1272
1278
|
//#endregion
|
|
1273
|
-
//#region dist/.types-work/region-map-contract-
|
|
1279
|
+
//#region dist/.types-work/region-map-contract-fx_imRHE.d.ts
|
|
1274
1280
|
interface ChartRegionMapRenderer {
|
|
1275
1281
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1276
1282
|
}
|
|
1277
1283
|
//#endregion
|
|
1278
|
-
//#region dist/.types-work/tiff-contract-
|
|
1284
|
+
//#region dist/.types-work/tiff-contract-DJ3gpIhe.d.ts
|
|
1285
|
+
interface TiffRenderOptions {
|
|
1286
|
+
targetWidthPx?: number;
|
|
1287
|
+
targetHeightPx?: number;
|
|
1288
|
+
maxRetainedPixels?: number;
|
|
1289
|
+
}
|
|
1290
|
+
declare class TiffDecodeError extends Error {
|
|
1291
|
+
readonly code: 'ooxml-tiff-decode';
|
|
1292
|
+
constructor(message: string, options?: ErrorOptions);
|
|
1293
|
+
}
|
|
1294
|
+
declare function isTiffDecodeError(error: unknown): error is TiffDecodeError;
|
|
1279
1295
|
interface TiffRenderer {
|
|
1280
|
-
render(bytes: Uint8Array): Promise<ImageBitmap | null>;
|
|
1296
|
+
render(bytes: Uint8Array, options?: Readonly<TiffRenderOptions>): Promise<ImageBitmap | null>;
|
|
1281
1297
|
}
|
|
1282
1298
|
//#endregion
|
|
1283
|
-
//#region dist/.types-work/hyperlink-
|
|
1299
|
+
//#region dist/.types-work/hyperlink-DmJyne_y.d.ts
|
|
1284
1300
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
1285
1301
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
1286
1302
|
declare class OoxmlError extends Error {
|
|
@@ -1376,7 +1392,7 @@ interface LoadOptions$3 {
|
|
|
1376
1392
|
chartEx?: ChartExRenderer;
|
|
1377
1393
|
tiff?: TiffRenderer;
|
|
1378
1394
|
}
|
|
1379
|
-
type OoxmlDecodedImageLimitMetric = 'image-pixels' | 'active-decoded-bytes';
|
|
1395
|
+
type OoxmlDecodedImageLimitMetric = 'image-dimension' | 'image-pixels' | 'active-decoded-bytes';
|
|
1380
1396
|
declare class OoxmlDecodedImageLimitError extends RangeError {
|
|
1381
1397
|
readonly metric: OoxmlDecodedImageLimitMetric;
|
|
1382
1398
|
readonly limit: number;
|
|
@@ -1395,7 +1411,7 @@ type HyperlinkTarget = {
|
|
|
1395
1411
|
};
|
|
1396
1412
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
1397
1413
|
//#endregion
|
|
1398
|
-
//#region dist/.types-work/find-highlight-
|
|
1414
|
+
//#region dist/.types-work/find-highlight-CEEVmKfp.d.ts
|
|
1399
1415
|
interface TextSelectionContextOptions {
|
|
1400
1416
|
readonly maxTextCharacters?: number;
|
|
1401
1417
|
readonly maxRunLocators?: number;
|
|
@@ -1456,7 +1472,7 @@ interface FindHighlightColors {
|
|
|
1456
1472
|
active?: string;
|
|
1457
1473
|
}
|
|
1458
1474
|
//#endregion
|
|
1459
|
-
//#region dist/.types-work/types
|
|
1475
|
+
//#region dist/.types-work/types-BK3zrOsk.d.ts
|
|
1460
1476
|
interface DocxDocumentModel {
|
|
1461
1477
|
section: SectionProps;
|
|
1462
1478
|
body: BodyElement[];
|
|
@@ -2197,12 +2213,13 @@ interface RenderPageOptions {
|
|
|
2197
2213
|
width?: number;
|
|
2198
2214
|
dpr?: number;
|
|
2199
2215
|
defaultTextColor?: string;
|
|
2216
|
+
imageResources?: ImageResourceOptions;
|
|
2200
2217
|
onTextRun?: (run: DocxTextRunInfo) => void;
|
|
2201
2218
|
currentDate?: Date | number;
|
|
2202
2219
|
showTrackedChanges?: boolean;
|
|
2203
2220
|
}
|
|
2204
2221
|
//#endregion
|
|
2205
|
-
//#region dist/.types-work/docx-
|
|
2222
|
+
//#region dist/.types-work/docx-CuUWjsKl.d.ts
|
|
2206
2223
|
interface CommentAnchorRange {
|
|
2207
2224
|
readonly commentId: string;
|
|
2208
2225
|
readonly source: Readonly<DocxStorySource>;
|
|
@@ -2658,6 +2675,7 @@ declare class DocxScrollViewer implements ZoomableViewer {
|
|
|
2658
2675
|
private _commentsOptions;
|
|
2659
2676
|
private _commentSide;
|
|
2660
2677
|
private _syncCommentMarginGeometry;
|
|
2678
|
+
private _widestPageWidthPt;
|
|
2661
2679
|
private _baseScale;
|
|
2662
2680
|
relayout(): void;
|
|
2663
2681
|
private _relayout;
|
|
@@ -2689,6 +2707,7 @@ declare class DocxScrollViewer implements ZoomableViewer {
|
|
|
2689
2707
|
getScale(): number;
|
|
2690
2708
|
zoomIn(): void;
|
|
2691
2709
|
zoomOut(): void;
|
|
2710
|
+
private _effectiveZoomMin;
|
|
2692
2711
|
fitWidth(): void;
|
|
2693
2712
|
fitPage(): void;
|
|
2694
2713
|
private _fit;
|
|
@@ -2746,10 +2765,10 @@ interface DocxHighlightMatch {
|
|
|
2746
2765
|
type DocxHighlightColors = FindHighlightColors;
|
|
2747
2766
|
declare function buildDocxHighlightLayer(layer: HTMLDivElement, runs: DocxTextRunInfo[], matches: DocxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: DocxHighlightColors): void;
|
|
2748
2767
|
declare namespace docx_d_exports {
|
|
2749
|
-
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, 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, 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, TiffRenderer, TileInfo, ViewerCommentConnectorOptions, ViewerCommentConnectorRoute, ViewerCommentConnectorStroke, ViewerCommentMessageContext, ViewerCommentThreadContext, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildDocxHighlightLayer, buildDocxTextLayer, isOoxmlDecodedImageLimitError, noteText, openExternalHyperlink, readDocxTextSelectionContext, resolveCommentAnchorRuns, resolveDocxCommentThreads, resolveRevisionAnchorRuns };
|
|
2768
|
+
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 };
|
|
2750
2769
|
}
|
|
2751
2770
|
//#endregion
|
|
2752
|
-
//#region dist/.types-work/types-
|
|
2771
|
+
//#region dist/.types-work/types-CaGxG9gJ.d.ts
|
|
2753
2772
|
interface BlipBullet {
|
|
2754
2773
|
type: 'blip';
|
|
2755
2774
|
imagePath: string;
|
|
@@ -3011,7 +3030,7 @@ interface PictureElement {
|
|
|
3011
3030
|
sp3d?: Sp3d;
|
|
3012
3031
|
}
|
|
3013
3032
|
//#endregion
|
|
3014
|
-
//#region dist/.types-work/pptx-
|
|
3033
|
+
//#region dist/.types-work/pptx-yzrs5789.d.ts
|
|
3015
3034
|
interface PptxTextRunInfo {
|
|
3016
3035
|
elementIndex?: number;
|
|
3017
3036
|
origin?: SlideElementOrigin;
|
|
@@ -3151,12 +3170,14 @@ type LoadOptions$1 = LoadOptions$3 & {
|
|
|
3151
3170
|
interface RenderSlideToBitmapOptions {
|
|
3152
3171
|
width?: number;
|
|
3153
3172
|
dpr?: number;
|
|
3173
|
+
imageResources?: ImageResourceOptions;
|
|
3154
3174
|
dim?: DimOptions;
|
|
3155
3175
|
onTextRun?: TextRunCallback;
|
|
3156
3176
|
}
|
|
3157
3177
|
interface RenderSlideOptions {
|
|
3158
3178
|
width?: number;
|
|
3159
3179
|
dpr?: number;
|
|
3180
|
+
imageResources?: ImageResourceOptions;
|
|
3160
3181
|
onTextRun?: TextRunCallback;
|
|
3161
3182
|
skipMediaControls?: boolean;
|
|
3162
3183
|
dim?: DimOptions;
|
|
@@ -3243,7 +3264,7 @@ declare class PptxPresentation {
|
|
|
3243
3264
|
destroy(): void;
|
|
3244
3265
|
}
|
|
3245
3266
|
type HiddenSlideMode = 'show' | 'skip' | 'dim';
|
|
3246
|
-
interface PptxViewerOptions extends Pick<RenderOptions, 'width' | 'dpr'>, LoadOptions$1 {
|
|
3267
|
+
interface PptxViewerOptions extends Pick<RenderOptions, 'width' | 'dpr' | 'imageResources'>, LoadOptions$1 {
|
|
3247
3268
|
onSlideChange?: (index: number, total: number, layoutComplete: boolean) => void;
|
|
3248
3269
|
onError?: (err: Error) => void;
|
|
3249
3270
|
zoomMin?: number;
|
|
@@ -3374,7 +3395,7 @@ interface PptxCommentsOptions extends ViewerCommentsOptions {
|
|
|
3374
3395
|
readonly markers?: boolean;
|
|
3375
3396
|
readonly connectors?: ViewerCommentConnectorOptions;
|
|
3376
3397
|
}
|
|
3377
|
-
interface PptxScrollViewerOptions extends Pick<RenderSlideOptions, 'width' | 'dpr'>, LoadOptions$1 {
|
|
3398
|
+
interface PptxScrollViewerOptions extends Pick<RenderSlideOptions, 'width' | 'dpr' | 'imageResources'>, LoadOptions$1 {
|
|
3378
3399
|
width?: number;
|
|
3379
3400
|
gap?: number;
|
|
3380
3401
|
paddingTop?: number;
|
|
@@ -3520,11 +3541,13 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
3520
3541
|
getScale(): number;
|
|
3521
3542
|
zoomIn(): void;
|
|
3522
3543
|
zoomOut(): void;
|
|
3544
|
+
private _effectiveZoomMin;
|
|
3523
3545
|
fitWidth(): void;
|
|
3524
3546
|
fitPage(): void;
|
|
3525
3547
|
private _fit;
|
|
3526
3548
|
private _previewVisible;
|
|
3527
3549
|
private _previewSlot;
|
|
3550
|
+
private _clearTextLayerPreview;
|
|
3528
3551
|
private _scheduleSettle;
|
|
3529
3552
|
private _settleRender;
|
|
3530
3553
|
private _settleSlot;
|
|
@@ -3578,10 +3601,10 @@ interface PptxHighlightMatch {
|
|
|
3578
3601
|
type PptxHighlightColors = FindHighlightColors;
|
|
3579
3602
|
declare function buildPptxHighlightLayer(layer: HTMLDivElement, runs: PptxTextRunInfo[], matches: PptxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: PptxHighlightColors): void;
|
|
3580
3603
|
declare namespace pptx_d_exports {
|
|
3581
|
-
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, DimOptions, DrawingMLCustomDashSegment, 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, 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, TiffRenderer, TileInfo, ViewerCommentConnectorOptions, ViewerCommentConnectorRoute, ViewerCommentConnectorStroke, ViewerCommentMessageContext, ViewerCommentThreadContext, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
|
|
3604
|
+
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 };
|
|
3582
3605
|
}
|
|
3583
3606
|
//#endregion
|
|
3584
|
-
//#region dist/.types-work/types-
|
|
3607
|
+
//#region dist/.types-work/types-BsHNWyrm.d.ts
|
|
3585
3608
|
type ShapeFill = Exclude<Fill, {
|
|
3586
3609
|
fillType: 'image';
|
|
3587
3610
|
} | {
|
|
@@ -4314,6 +4337,7 @@ interface XlsxRenderViewportOptions {
|
|
|
4314
4337
|
width?: number;
|
|
4315
4338
|
height?: number;
|
|
4316
4339
|
dpr?: number;
|
|
4340
|
+
imageResources?: ImageResourceOptions;
|
|
4317
4341
|
defaultFontFamily?: string;
|
|
4318
4342
|
defaultFontSize?: number;
|
|
4319
4343
|
scrollOffsetX?: number;
|
|
@@ -4334,7 +4358,7 @@ interface XlsxRenderViewportOptions {
|
|
|
4334
4358
|
} | null;
|
|
4335
4359
|
}
|
|
4336
4360
|
//#endregion
|
|
4337
|
-
//#region dist/.types-work/xlsx-
|
|
4361
|
+
//#region dist/.types-work/xlsx-0HRTO0wU.d.ts
|
|
4338
4362
|
type ResolvedList = {
|
|
4339
4363
|
kind: 'values';
|
|
4340
4364
|
values: string[];
|
|
@@ -4500,6 +4524,7 @@ interface XlsxMatchLocation {
|
|
|
4500
4524
|
interface XlsxCommentsOptions extends ViewerCommentsOptions {}
|
|
4501
4525
|
type HiddenSheetMode = 'show' | 'skip' | 'dim';
|
|
4502
4526
|
interface XlsxSheetViewerOptions extends LoadOptions {
|
|
4527
|
+
imageResources?: ImageResourceOptions;
|
|
4503
4528
|
cellScale?: number;
|
|
4504
4529
|
resizable?: boolean;
|
|
4505
4530
|
showScrollbars?: boolean;
|
|
@@ -4870,7 +4895,7 @@ declare class XlsxSheetViewer implements ZoomableViewer {
|
|
|
4870
4895
|
}
|
|
4871
4896
|
declare function resolveSharedStrings(ws: Worksheet, sharedStrings: SharedString[]): Worksheet;
|
|
4872
4897
|
declare namespace xlsx_d_exports {
|
|
4873
|
-
export { ArrowEnd, AutoResizeOptions, Border, BorderEdge, Cell, CellAddress, CellFill, CellFont, CellValue, CellXf, CfIcon, CfRule, CfStop, CfValue, ChartAnchor, ChartAreaGroupDecorations, ChartBarGroupDecorations, ChartDataLabelOverride, ChartDataPointOverride, ChartDataTable, ChartDecorationLineStyle, ChartDisplayUnits, ChartDisplayUnitsLabel, 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, ConditionalFormat, DataValidation, DefinedName, DrawingMLCustomDashSegment, Duotone, Dxf, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, GradientFill, GradientFillSpec, GradientStop$1 as GradientStop, HiddenSheetMode, Hyperlink, HyperlinkTarget, ImageAnchor, ImageFill, LegendManualLayout, LoadOptions, MAX_SELECTION_AREAS, MAX_SELECTION_CONTEXT_CELLS, MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, MergeCell, NoFill, NumFmt, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, OutlinePr, ParsedWorkbook, PathCmd, PathInfo, PatternFill, PhoneticAlignment, PhoneticProperties, PhoneticRun, PhoneticType, PivotCacheSource, PivotDataField, PivotDiagnostic, PivotLocation, PivotMetadataStatus, PivotPageField, PivotPartialReason, PivotTableMetadata, RenderViewportToBitmapOptions, ResolvedList, Row, Run, RunFont, SecondaryValueAxis, ShapeAnchor, ShapeFill, ShapeGeom, ShapeInfo, ShapeParagraph, ShapeText, ShapeTextRun, SharedString, SheetMeta, SheetVisibility, SlicerAnchor, SlicerElementStyle, SlicerItem, SlicerStyle, SolidFill, SpaceLine, Sparkline, SparklineGroup, SrcRect, Styles, TableColumnInfo, TableInfo, TiffRenderer, TileInfo, ViewerCommentMessageContext, ViewerCommentThreadContext, ViewerContextMenuEvent, ViewportRange, Workbook, Worksheet, WorksheetCellRange, XlsxCellViewportRect, XlsxComment, XlsxCommentReply, XlsxCommentsOptions, XlsxCopyResult, XlsxElementAnchorMarker, XlsxElementContext, XlsxMatchLocation, XlsxRangeSelectionContext, XlsxRenderViewportOptions, XlsxScrollToCellOptions, XlsxSelectionArea, XlsxSelectionContext, XlsxSelectionContextCell, XlsxSelectionContextOptions, XlsxSelectionInput, XlsxSelectionState, XlsxSheetViewer, XlsxSheetViewerOptions, XlsxTextRunInfo, XlsxViewer, XlsxViewerOptions, XlsxViewportOffset, XlsxWorkbook, ZoomableViewer, autoResize, isOoxmlDecodedImageLimitError, openExternalHyperlink, resolveSharedStrings };
|
|
4898
|
+
export { ArrowEnd, AutoResizeOptions, Border, BorderEdge, Cell, CellAddress, CellFill, CellFont, CellValue, CellXf, CfIcon, CfRule, CfStop, CfValue, ChartAnchor, ChartAreaGroupDecorations, ChartBarGroupDecorations, ChartDataLabelOverride, ChartDataPointOverride, ChartDataTable, ChartDecorationLineStyle, ChartDisplayUnits, ChartDisplayUnitsLabel, 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, ConditionalFormat, DataValidation, DecodedImageBudgetStrategy, DefinedName, DrawingMLCustomDashSegment, Duotone, Dxf, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, GradientFill, GradientFillSpec, GradientStop$1 as GradientStop, HiddenSheetMode, Hyperlink, HyperlinkTarget, ImageAnchor, ImageFill, ImageResourceOptions, LegendManualLayout, LoadOptions, MAX_SELECTION_AREAS, MAX_SELECTION_CONTEXT_CELLS, MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, MergeCell, NoFill, NumFmt, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, OutlinePr, ParsedWorkbook, PathCmd, PathInfo, PatternFill, PhoneticAlignment, PhoneticProperties, PhoneticRun, PhoneticType, PivotCacheSource, PivotDataField, PivotDiagnostic, PivotLocation, PivotMetadataStatus, PivotPageField, PivotPartialReason, PivotTableMetadata, RenderViewportToBitmapOptions, ResolvedList, Row, Run, RunFont, SecondaryValueAxis, ShapeAnchor, ShapeFill, ShapeGeom, ShapeInfo, ShapeParagraph, ShapeText, ShapeTextRun, SharedString, SheetMeta, SheetVisibility, SlicerAnchor, SlicerElementStyle, SlicerItem, SlicerStyle, SolidFill, SpaceLine, Sparkline, SparklineGroup, SrcRect, Styles, TableColumnInfo, TableInfo, TiffDecodeError, TiffRenderOptions, TiffRenderer, TileInfo, ViewerCommentMessageContext, ViewerCommentThreadContext, ViewerContextMenuEvent, ViewportRange, Workbook, Worksheet, WorksheetCellRange, XlsxCellViewportRect, XlsxComment, XlsxCommentReply, XlsxCommentsOptions, XlsxCopyResult, XlsxElementAnchorMarker, XlsxElementContext, XlsxMatchLocation, XlsxRangeSelectionContext, XlsxRenderViewportOptions, XlsxScrollToCellOptions, XlsxSelectionArea, XlsxSelectionContext, XlsxSelectionContextCell, XlsxSelectionContextOptions, XlsxSelectionInput, XlsxSelectionState, XlsxSheetViewer, XlsxSheetViewerOptions, XlsxTextRunInfo, XlsxViewer, XlsxViewerOptions, XlsxViewportOffset, XlsxWorkbook, ZoomableViewer, autoResize, isOoxmlDecodedImageLimitError, isTiffDecodeError, openExternalHyperlink, resolveSharedStrings };
|
|
4874
4899
|
}
|
|
4875
4900
|
//#endregion
|
|
4876
4901
|
export { docx_d_exports as docx, pptx_d_exports as pptx, xlsx_d_exports as xlsx };
|
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-D5f5lUUP.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-DmJyne_y.d.ts
|
|
1235
1235
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
1236
1236
|
type OoxmlFormat = 'docx' | 'xlsx' | 'pptx';
|
|
1237
1237
|
interface OoxmlResourceUsageSnapshot {
|
|
@@ -1299,7 +1299,7 @@ interface OoxmlResourceLimits {
|
|
|
1299
1299
|
maxTotalInflatedBytes?: OoxmlResourceLimit;
|
|
1300
1300
|
maxArchiveEntries?: OoxmlResourceLimit;
|
|
1301
1301
|
}
|
|
1302
|
-
type OoxmlDecodedImageLimitMetric = 'image-pixels' | 'active-decoded-bytes';
|
|
1302
|
+
type OoxmlDecodedImageLimitMetric = 'image-dimension' | 'image-pixels' | 'active-decoded-bytes';
|
|
1303
1303
|
declare class OoxmlDecodedImageLimitError extends RangeError {
|
|
1304
1304
|
readonly metric: OoxmlDecodedImageLimitMetric;
|
|
1305
1305
|
readonly limit: number;
|
|
@@ -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-BK3zrOsk.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-CaGxG9gJ.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-BsHNWyrm.d.ts
|
|
2308
2308
|
type ShapeFill = Exclude<Fill, {
|
|
2309
2309
|
fillType: 'image';
|
|
2310
2310
|
} | {
|
|
@@ -3029,6 +3029,7 @@ interface NodeTextMetricsLike {
|
|
|
3029
3029
|
}
|
|
3030
3030
|
interface NodeCanvasContext2D {
|
|
3031
3031
|
measureText(text: string): NodeTextMetricsLike;
|
|
3032
|
+
drawImage?(image: NodeImageLike, dx: number, dy: number, dw: number, dh: number): void;
|
|
3032
3033
|
}
|
|
3033
3034
|
interface NodeCanvasLike {
|
|
3034
3035
|
width: number;
|
|
@@ -3042,7 +3043,10 @@ interface NodeImageLike {
|
|
|
3042
3043
|
}
|
|
3043
3044
|
interface NodeCanvasFactory {
|
|
3044
3045
|
createCanvas(width: number, height: number): NodeCanvasLike;
|
|
3045
|
-
loadImage(buffer: ArrayBuffer | Uint8Array
|
|
3046
|
+
loadImage(buffer: ArrayBuffer | Uint8Array, target?: Readonly<{
|
|
3047
|
+
width?: number;
|
|
3048
|
+
height?: number;
|
|
3049
|
+
}>): Promise<NodeImageLike>;
|
|
3046
3050
|
}
|
|
3047
3051
|
declare function installOffscreenCanvasShim(factory: NodeCanvasFactory): () => void;
|
|
3048
3052
|
declare function installImageBitmapShim(factory: NodeCanvasFactory): () => void;
|