@silurus/ooxml 0.84.1 → 0.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +36 -13
  2. package/dist/assets/render-worker-BRKOyWVH.js +24 -0
  3. package/dist/assets/render-worker-DnU-PxZ1.js +10 -0
  4. package/dist/assets/render-worker-NZPOUOTU.js +11 -0
  5. package/dist/{canvas-viewer-mechanics-CIfhCgYA.js → canvas-viewer-mechanics-C-yTGbFC.js} +308 -234
  6. package/dist/chart-ex.mjs +270 -270
  7. package/dist/{comment-ui-runtime-CdMMApEN.js → comment-ui-runtime-CAbpuWi_.js} +4 -4
  8. package/dist/{comment-ui-runtime-C5qimVMD.js → comment-ui-runtime-DAKBCpsM.js} +5 -5
  9. package/dist/comment-ui-runtime-DTaaZdXC.js +2 -0
  10. package/dist/{comments-BAlAyIhb.js → comments-Brfxa3hQ.js} +1 -1
  11. package/dist/{document-pull-client-BXw6AAhY.js → document-pull-client-BdYrjAep.js} +4659 -4355
  12. package/dist/{docx-BA1vB0V-.js → docx-qK0Qmyey.js} +315 -300
  13. package/dist/docx.mjs +7 -6
  14. package/dist/docx_parser_bg.wasm +0 -0
  15. package/dist/{dom-interaction-boundary-DS6BVyHA.js → dom-interaction-boundary-CMDDgICk.js} +1 -1
  16. package/dist/index.mjs +3 -3
  17. package/dist/line-distribute-CiKeWjBF.js +1023 -0
  18. package/dist/{line-metrics-CXyjyYd5.js → line-metrics-u87yCAfV.js} +2182 -705
  19. package/dist/math.mjs +2 -2
  20. package/dist/node.mjs +404 -394
  21. package/dist/pixel-budget-Dgjw269h.js +37 -0
  22. package/dist/{plot-area-frame-DuXZzovH.js → plot-area-frame-D5hEOgkJ.js} +691 -1418
  23. package/dist/{pptx-C17oBD8Z.js → pptx-DxZwhOWr.js} +250 -221
  24. package/dist/pptx.mjs +7 -6
  25. package/dist/pptx_parser_bg.wasm +0 -0
  26. package/dist/raster-target-whZhvVMt.js +87 -0
  27. package/dist/region-map.mjs +5 -5
  28. package/dist/{render-CVeGktZG.js → render-DrAAZWwH.js} +9 -6
  29. package/dist/{render-worker-host-BWdhjVH_.js → render-worker-host-CHlwYJdK.js} +1 -1
  30. package/dist/{render-worker-host-BbhwA24Y.js → render-worker-host-GZ7ez-l3.js} +1 -1
  31. package/dist/{render-worker-host-CbaQivE7.js → render-worker-host-XDMsyVsv.js} +1 -1
  32. package/dist/{renderer-Bmky2yBc.js → renderer-XFSCOT6m.js} +1937 -1936
  33. package/dist/resource-measurement-6uR3Huao.js +150 -0
  34. package/dist/{session-Cl0RVnMs.js → session-DoPwA4gv.js} +79 -79
  35. package/dist/{slide-pull-client-BS0EeZo2.js → slide-pull-client-8i8C4VyD.js} +1054 -824
  36. package/dist/{three-d-B7LsKeOS.js → three-d-YYghQndN.js} +109 -110
  37. package/dist/three-d.mjs +726 -726
  38. package/dist/tiff.mjs +664 -78
  39. package/dist/types/chart-ex.d.ts +2 -2
  40. package/dist/types/docx.d.ts +29 -13
  41. package/dist/types/index.d.ts +43 -21
  42. package/dist/types/math.d.ts +1 -1
  43. package/dist/types/node.d.ts +11 -7
  44. package/dist/types/pptx.d.ts +34 -15
  45. package/dist/types/region-map.d.ts +2 -2
  46. package/dist/types/three-d.d.ts +2 -2
  47. package/dist/types/tiff.d.ts +13 -3
  48. package/dist/types/xlsx.d.ts +30 -13
  49. package/dist/{worksheet-pull-client-B0zfEVau.js → worksheet-pull-client-Btydoxto.js} +47 -47
  50. package/dist/{xlsx-FyKAiNo-.js → xlsx-57OZsbD9.js} +1395 -1196
  51. package/dist/xlsx.mjs +7 -6
  52. package/package.json +2 -2
  53. package/dist/assets/render-worker-BWPpayBu.js +0 -10
  54. package/dist/assets/render-worker-CiEWCh_T.js +0 -11
  55. package/dist/assets/render-worker-Cpmy3GDF.js +0 -24
  56. package/dist/comment-ui-runtime-aPzHfV_A.js +0 -2
  57. package/dist/line-distribute-MqInuujx.js +0 -1003
  58. package/dist/resource-measurement-esyGbzAF.js +0 -120
  59. package/dist/tiff-contract-Xjn3qXqK.js +0 -69
  60. /package/dist/{comment-occurrence-C34fWs_F.js → comment-occurrence-tj54AXXB.js} +0 -0
  61. /package/dist/{highlight-rect-MaCt0om0.js → highlight-rect-DBcYVJDv.js} +0 -0
  62. /package/dist/{mathjax-DPEX346v.js → mathjax-DS69BmJd.js} +0 -0
  63. /package/dist/{read-only-comment-decoration-BYCXoSdC.js → read-only-comment-decoration-Mv_SAiHy.js} +0 -0
  64. /package/dist/{read-only-comment-margin-C7b3l0ro.js → read-only-comment-margin-Cqu-Ir0C.js} +0 -0
  65. /package/dist/{renderer-module-contract-C6sYZvTV.js → renderer-module-contract-Cu-GKuPd.js} +0 -0
  66. /package/dist/{source-key-DORuuFb-.js → source-key-BkBB3X82.js} +0 -0
  67. /package/dist/{transfer-vNOFQuvv.js → transfer-mIj7E7NB.js} +0 -0
  68. /package/dist/{visible-index-DwJzuGmJ.js → visible-index-DPoQYSDt.js} +0 -0
@@ -1,4 +1,4 @@
1
- //#region dist/.types-work/chart-BuqsupYd.d.ts
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-D_w4cW99.d.ts
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
  }
@@ -1,4 +1,9 @@
1
- //#region dist/.types-work/chart-BuqsupYd.d.ts
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-D_w4cW99.d.ts
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-BZhK7ArI.d.ts
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-Bs-JIVK-.d.ts
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-D6LyJL3J.d.ts
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-Cy1UOZ7F.d.ts
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-C3_UNp69.d.ts
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-GHJmsH29.d.ts
1207
+ //#region dist/.types-work/find-highlight-Ms93pOo5.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--2iiKev7.d.ts
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-Bo5l3Rp2.d.ts
2015
+ //#region dist/.types-work/docx-CqOGGhG7.d.ts
2000
2016
  interface CommentAnchorRange {
2001
2017
  readonly commentId: string;
2002
2018
  readonly source: Readonly<DocxStorySource>;
@@ -2540,4 +2556,4 @@ interface DocxHighlightMatch {
2540
2556
  type DocxHighlightColors = FindHighlightColors;
2541
2557
  declare function buildDocxHighlightLayer(layer: HTMLDivElement, runs: DocxTextRunInfo[], matches: DocxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: DocxHighlightColors): void;
2542
2558
  //#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 };
2559
+ 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 };
@@ -1,4 +1,9 @@
1
- //#region dist/.types-work/chart-BuqsupYd.d.ts
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-D_w4cW99.d.ts
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-BZhK7ArI.d.ts
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-Bs-JIVK-.d.ts
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-D6LyJL3J.d.ts
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-Cy1UOZ7F.d.ts
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-C3_UNp69.d.ts
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-GHJmsH29.d.ts
1414
+ //#region dist/.types-work/find-highlight-Ms93pOo5.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--2iiKev7.d.ts
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-Bo5l3Rp2.d.ts
2222
+ //#region dist/.types-work/docx-CqOGGhG7.d.ts
2206
2223
  interface CommentAnchorRange {
2207
2224
  readonly commentId: string;
2208
2225
  readonly source: Readonly<DocxStorySource>;
@@ -2746,10 +2763,10 @@ interface DocxHighlightMatch {
2746
2763
  type DocxHighlightColors = FindHighlightColors;
2747
2764
  declare function buildDocxHighlightLayer(layer: HTMLDivElement, runs: DocxTextRunInfo[], matches: DocxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: DocxHighlightColors): void;
2748
2765
  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 };
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 };
2750
2767
  }
2751
2768
  //#endregion
2752
- //#region dist/.types-work/types-WHOvs94g.d.ts
2769
+ //#region dist/.types-work/types-CaGxG9gJ.d.ts
2753
2770
  interface BlipBullet {
2754
2771
  type: 'blip';
2755
2772
  imagePath: string;
@@ -3011,7 +3028,7 @@ interface PictureElement {
3011
3028
  sp3d?: Sp3d;
3012
3029
  }
3013
3030
  //#endregion
3014
- //#region dist/.types-work/pptx-C6MV8Qke.d.ts
3031
+ //#region dist/.types-work/pptx-oIBDGE9O.d.ts
3015
3032
  interface PptxTextRunInfo {
3016
3033
  elementIndex?: number;
3017
3034
  origin?: SlideElementOrigin;
@@ -3151,12 +3168,14 @@ type LoadOptions$1 = LoadOptions$3 & {
3151
3168
  interface RenderSlideToBitmapOptions {
3152
3169
  width?: number;
3153
3170
  dpr?: number;
3171
+ imageResources?: ImageResourceOptions;
3154
3172
  dim?: DimOptions;
3155
3173
  onTextRun?: TextRunCallback;
3156
3174
  }
3157
3175
  interface RenderSlideOptions {
3158
3176
  width?: number;
3159
3177
  dpr?: number;
3178
+ imageResources?: ImageResourceOptions;
3160
3179
  onTextRun?: TextRunCallback;
3161
3180
  skipMediaControls?: boolean;
3162
3181
  dim?: DimOptions;
@@ -3243,7 +3262,7 @@ declare class PptxPresentation {
3243
3262
  destroy(): void;
3244
3263
  }
3245
3264
  type HiddenSlideMode = 'show' | 'skip' | 'dim';
3246
- interface PptxViewerOptions extends Pick<RenderOptions, 'width' | 'dpr'>, LoadOptions$1 {
3265
+ interface PptxViewerOptions extends Pick<RenderOptions, 'width' | 'dpr' | 'imageResources'>, LoadOptions$1 {
3247
3266
  onSlideChange?: (index: number, total: number, layoutComplete: boolean) => void;
3248
3267
  onError?: (err: Error) => void;
3249
3268
  zoomMin?: number;
@@ -3374,7 +3393,7 @@ interface PptxCommentsOptions extends ViewerCommentsOptions {
3374
3393
  readonly markers?: boolean;
3375
3394
  readonly connectors?: ViewerCommentConnectorOptions;
3376
3395
  }
3377
- interface PptxScrollViewerOptions extends Pick<RenderSlideOptions, 'width' | 'dpr'>, LoadOptions$1 {
3396
+ interface PptxScrollViewerOptions extends Pick<RenderSlideOptions, 'width' | 'dpr' | 'imageResources'>, LoadOptions$1 {
3378
3397
  width?: number;
3379
3398
  gap?: number;
3380
3399
  paddingTop?: number;
@@ -3525,6 +3544,7 @@ declare class PptxScrollViewer implements ZoomableViewer {
3525
3544
  private _fit;
3526
3545
  private _previewVisible;
3527
3546
  private _previewSlot;
3547
+ private _clearTextLayerPreview;
3528
3548
  private _scheduleSettle;
3529
3549
  private _settleRender;
3530
3550
  private _settleSlot;
@@ -3578,10 +3598,10 @@ interface PptxHighlightMatch {
3578
3598
  type PptxHighlightColors = FindHighlightColors;
3579
3599
  declare function buildPptxHighlightLayer(layer: HTMLDivElement, runs: PptxTextRunInfo[], matches: PptxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: PptxHighlightColors): void;
3580
3600
  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 };
3601
+ 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
3602
  }
3583
3603
  //#endregion
3584
- //#region dist/.types-work/types-BDYdZHz2.d.ts
3604
+ //#region dist/.types-work/types-BsHNWyrm.d.ts
3585
3605
  type ShapeFill = Exclude<Fill, {
3586
3606
  fillType: 'image';
3587
3607
  } | {
@@ -4314,6 +4334,7 @@ interface XlsxRenderViewportOptions {
4314
4334
  width?: number;
4315
4335
  height?: number;
4316
4336
  dpr?: number;
4337
+ imageResources?: ImageResourceOptions;
4317
4338
  defaultFontFamily?: string;
4318
4339
  defaultFontSize?: number;
4319
4340
  scrollOffsetX?: number;
@@ -4334,7 +4355,7 @@ interface XlsxRenderViewportOptions {
4334
4355
  } | null;
4335
4356
  }
4336
4357
  //#endregion
4337
- //#region dist/.types-work/xlsx-CScGNl_s.d.ts
4358
+ //#region dist/.types-work/xlsx-BsCgvd8W.d.ts
4338
4359
  type ResolvedList = {
4339
4360
  kind: 'values';
4340
4361
  values: string[];
@@ -4500,6 +4521,7 @@ interface XlsxMatchLocation {
4500
4521
  interface XlsxCommentsOptions extends ViewerCommentsOptions {}
4501
4522
  type HiddenSheetMode = 'show' | 'skip' | 'dim';
4502
4523
  interface XlsxSheetViewerOptions extends LoadOptions {
4524
+ imageResources?: ImageResourceOptions;
4503
4525
  cellScale?: number;
4504
4526
  resizable?: boolean;
4505
4527
  showScrollbars?: boolean;
@@ -4870,7 +4892,7 @@ declare class XlsxSheetViewer implements ZoomableViewer {
4870
4892
  }
4871
4893
  declare function resolveSharedStrings(ws: Worksheet, sharedStrings: SharedString[]): Worksheet;
4872
4894
  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 };
4895
+ 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
4896
  }
4875
4897
  //#endregion
4876
4898
  export { docx_d_exports as docx, pptx_d_exports as pptx, xlsx_d_exports as xlsx };
@@ -1,4 +1,4 @@
1
- //#region dist/.types-work/mathjax-BZhK7ArI.d.ts
1
+ //#region dist/.types-work/mathjax-emiLk9eb.d.ts
2
2
  interface MathSvg {
3
3
  svg: string;
4
4
  widthEm: number;
@@ -1,4 +1,4 @@
1
- //#region dist/.types-work/chart-BuqsupYd.d.ts
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-C3_UNp69.d.ts
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--2iiKev7.d.ts
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-WHOvs94g.d.ts
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-BDYdZHz2.d.ts
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): Promise<NodeImageLike>;
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;
@@ -1,4 +1,9 @@
1
- //#region dist/.types-work/chart-BuqsupYd.d.ts
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-D_w4cW99.d.ts
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-BZhK7ArI.d.ts
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-Bs-JIVK-.d.ts
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-D6LyJL3J.d.ts
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-Cy1UOZ7F.d.ts
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-C3_UNp69.d.ts
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$1 {
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-GHJmsH29.d.ts
1414
+ //#region dist/.types-work/find-highlight-Ms93pOo5.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-WHOvs94g.d.ts
1475
+ //#region dist/.types-work/types-CaGxG9gJ.d.ts
1460
1476
  interface BlipBullet {
1461
1477
  type: 'blip';
1462
1478
  imagePath: string;
@@ -1718,7 +1734,7 @@ interface PictureElement {
1718
1734
  sp3d?: Sp3d;
1719
1735
  }
1720
1736
  //#endregion
1721
- //#region dist/.types-work/pptx-C6MV8Qke.d.ts
1737
+ //#region dist/.types-work/pptx-oIBDGE9O.d.ts
1722
1738
  interface PptxTextRunInfo {
1723
1739
  elementIndex?: number;
1724
1740
  origin?: SlideElementOrigin;
@@ -1858,12 +1874,14 @@ type LoadOptions = LoadOptions$1 & {
1858
1874
  interface RenderSlideToBitmapOptions {
1859
1875
  width?: number;
1860
1876
  dpr?: number;
1877
+ imageResources?: ImageResourceOptions;
1861
1878
  dim?: DimOptions;
1862
1879
  onTextRun?: TextRunCallback;
1863
1880
  }
1864
1881
  interface RenderSlideOptions {
1865
1882
  width?: number;
1866
1883
  dpr?: number;
1884
+ imageResources?: ImageResourceOptions;
1867
1885
  onTextRun?: TextRunCallback;
1868
1886
  skipMediaControls?: boolean;
1869
1887
  dim?: DimOptions;
@@ -1950,7 +1968,7 @@ declare class PptxPresentation {
1950
1968
  destroy(): void;
1951
1969
  }
1952
1970
  type HiddenSlideMode = 'show' | 'skip' | 'dim';
1953
- interface PptxViewerOptions extends Pick<RenderOptions, 'width' | 'dpr'>, LoadOptions {
1971
+ interface PptxViewerOptions extends Pick<RenderOptions, 'width' | 'dpr' | 'imageResources'>, LoadOptions {
1954
1972
  onSlideChange?: (index: number, total: number, layoutComplete: boolean) => void;
1955
1973
  onError?: (err: Error) => void;
1956
1974
  zoomMin?: number;
@@ -2081,7 +2099,7 @@ interface PptxCommentsOptions extends ViewerCommentsOptions {
2081
2099
  readonly markers?: boolean;
2082
2100
  readonly connectors?: ViewerCommentConnectorOptions;
2083
2101
  }
2084
- interface PptxScrollViewerOptions extends Pick<RenderSlideOptions, 'width' | 'dpr'>, LoadOptions {
2102
+ interface PptxScrollViewerOptions extends Pick<RenderSlideOptions, 'width' | 'dpr' | 'imageResources'>, LoadOptions {
2085
2103
  width?: number;
2086
2104
  gap?: number;
2087
2105
  paddingTop?: number;
@@ -2232,6 +2250,7 @@ declare class PptxScrollViewer implements ZoomableViewer {
2232
2250
  private _fit;
2233
2251
  private _previewVisible;
2234
2252
  private _previewSlot;
2253
+ private _clearTextLayerPreview;
2235
2254
  private _scheduleSettle;
2236
2255
  private _settleRender;
2237
2256
  private _settleSlot;
@@ -2285,4 +2304,4 @@ interface PptxHighlightMatch {
2285
2304
  type PptxHighlightColors = FindHighlightColors;
2286
2305
  declare function buildPptxHighlightLayer(layer: HTMLDivElement, runs: PptxTextRunInfo[], matches: PptxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: PptxHighlightColors): void;
2287
2306
  //#endregion
2288
- export { type ArrowEnd, type AutoResizeOptions, type Bevel3d, type BlipBullet, type Bullet, type Camera3d, type ChartAreaGroupDecorations, type ChartBarGroupDecorations, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartDataTable, type ChartDecorationLineStyle, type ChartDisplayUnits, type ChartDisplayUnitsLabel, type ChartElement, 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 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 DimOptions, type DrawingMLCustomDashSegment, type Duotone, type EquationRun, type Fill, type FillRect, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type Glow, type GradientFill, type GradientStop, type HiddenSlideMode, type HyperlinkTarget, type ImageFill, type LegendManualLayout, type LightRig, type LineBreak, 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 MediaElement, type NoFill, 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 Paragraph, type PathCmd, type PatternFill, type PictureElement, type PptxComment, type PptxCommentAnchor, type PptxCommentReply, type PptxCommentSelectionContext, type PptxCommentsOptions, type PptxElementBounds, type PptxElementContext, type PptxElementContextOptions, type PptxHighlightColors, type PptxHighlightMatch, type PptxMatchLocation, PptxPresentation, PptxScrollViewer, type PptxScrollViewerOptions, type PptxSelectionContext, type PptxSelectionContextOptions, type PptxSelectionRunLocator, type PptxSlidePoint, type PptxTextRunInfo, type PptxTextSelectionContext, PptxViewer, type PptxViewerOptions, type PresentSlideOptions, type Presentation, type PresentationHandle, type Reflection, type RenderOptions, type RenderSlideOptions, type RenderSlideToBitmapOptions, type Rot3d, type Scene3d, type SecondaryValueAxis, type Shadow, type ShapeElement, type Slide, type SlideElement, type SlideElementOrigin, type SlideElementSource, type SlideRenderOptions, type SoftEdge, type SolidFill, type Sp3d, type SpaceLine, type SrcRect, type Stroke, type TabStop, type TableCell, type TableElement, type TableRow, type TextBody, type TextOutline, type TextRect, type TextRun, type TextRunCallback, type TextRunData, type TextSelectionContextOptions, type TiffRenderer, type TileInfo, type ViewerCommentConnectorOptions, type ViewerCommentConnectorRoute, type ViewerCommentConnectorStroke, type ViewerCommentMessageContext, type ViewerCommentThreadContext, type ViewerContextMenuEvent, type ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
2307
+ export { type ArrowEnd, type AutoResizeOptions, type Bevel3d, type BlipBullet, type Bullet, type Camera3d, type ChartAreaGroupDecorations, type ChartBarGroupDecorations, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartDataTable, type ChartDecorationLineStyle, type ChartDisplayUnits, type ChartDisplayUnitsLabel, type ChartElement, 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 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 DecodedImageBudgetStrategy, type DimOptions, type DrawingMLCustomDashSegment, type Duotone, type EquationRun, type Fill, type FillRect, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type Glow, type GradientFill, type GradientStop, type HiddenSlideMode, type HyperlinkTarget, type ImageFill, type ImageResourceOptions, type LegendManualLayout, type LightRig, type LineBreak, 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 MediaElement, type NoFill, 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 Paragraph, type PathCmd, type PatternFill, type PictureElement, type PptxComment, type PptxCommentAnchor, type PptxCommentReply, type PptxCommentSelectionContext, type PptxCommentsOptions, type PptxElementBounds, type PptxElementContext, type PptxElementContextOptions, type PptxHighlightColors, type PptxHighlightMatch, type PptxMatchLocation, PptxPresentation, PptxScrollViewer, type PptxScrollViewerOptions, type PptxSelectionContext, type PptxSelectionContextOptions, type PptxSelectionRunLocator, type PptxSlidePoint, type PptxTextRunInfo, type PptxTextSelectionContext, PptxViewer, type PptxViewerOptions, type PresentSlideOptions, type Presentation, type PresentationHandle, type Reflection, type RenderOptions, type RenderSlideOptions, type RenderSlideToBitmapOptions, type Rot3d, type Scene3d, type SecondaryValueAxis, type Shadow, type ShapeElement, type Slide, type SlideElement, type SlideElementOrigin, type SlideElementSource, type SlideRenderOptions, type SoftEdge, type SolidFill, type Sp3d, type SpaceLine, type SrcRect, type Stroke, type TabStop, type TableCell, type TableElement, type TableRow, type TextBody, type TextOutline, type TextRect, type TextRun, type TextRunCallback, type TextRunData, type TextSelectionContextOptions, TiffDecodeError, type TiffRenderOptions, type TiffRenderer, type TileInfo, type ViewerCommentConnectorOptions, type ViewerCommentConnectorRoute, type ViewerCommentConnectorStroke, type ViewerCommentMessageContext, type ViewerCommentThreadContext, type ViewerContextMenuEvent, type ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, isTiffDecodeError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };