@silurus/ooxml 0.88.0 → 0.89.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 (128) hide show
  1. package/README.md +118 -23
  2. package/THIRD_PARTY_NOTICES.md +7 -6
  3. package/dist/abort-VrnK7mdP.js +10 -0
  4. package/dist/assets/render-worker-CUOU6mL2.js +16 -0
  5. package/dist/assets/render-worker-DOqrFhSU.js +15 -0
  6. package/dist/assets/render-worker-DvWUdZUN.js +35 -0
  7. package/dist/bounded-raw-part-cache-B7JoC1CD.js +64586 -0
  8. package/dist/bundled-asset-url-E2nXURF9.js +15 -0
  9. package/dist/canvas-viewer-mechanics-DfQqRKkD.js +675 -0
  10. package/dist/cfb-guard-9QTRTg7f.js +528 -0
  11. package/dist/chart-ex.mjs +692 -688
  12. package/dist/comment-overlay-controller-B5_zGgG5.js +994 -0
  13. package/dist/comment-ui-runtime-B7ZvovcS.js +2 -0
  14. package/dist/{comment-ui-runtime-DcJOYlw-.js → comment-ui-runtime-D_sb2K6s.js} +5 -5
  15. package/dist/{comment-ui-runtime-CWGqn5Vr.js → comment-ui-runtime-Jy-3goA9.js} +5 -5
  16. package/dist/delimited-text-worker-host-CikWU6_m.js +27 -0
  17. package/dist/document-model-source-BKNrXjAL.js +249 -0
  18. package/dist/document-pull-client-CxONDGbk.js +37833 -0
  19. package/dist/document-pull-worker-AMyXYpPq.js +104 -0
  20. package/dist/docx-D91ER1_S.js +495 -0
  21. package/dist/docx-DhDnKEI6.js +3563 -0
  22. package/dist/docx-model-source-CdrSt3hF.js +98 -0
  23. package/dist/docx-source-worker.mjs +455 -0
  24. package/dist/docx.mjs +7 -7
  25. package/dist/docx_parser_bg.wasm +0 -0
  26. package/dist/drawingml-shape-ChcGZNd8.js +310 -0
  27. package/dist/duotone-ekYik4ix.js +126 -0
  28. package/dist/emf-UT6I8rVi.js +1790 -0
  29. package/dist/font-preload-demand-CdJZUMCT.js +2058 -0
  30. package/dist/grid-geometry-uQOgViJU.js +384 -0
  31. package/dist/host-layout-DVMw8hDY.js +56 -0
  32. package/dist/host-layout-measure-CCEgaC_v.js +7 -0
  33. package/dist/in-process-pull-transport-DuXcPZng.js +29 -0
  34. package/dist/index.mjs +4 -4
  35. package/dist/internal-companion.mjs +12 -0
  36. package/dist/line-distribute-CPOV6csk.js +2716 -0
  37. package/dist/math.mjs +2 -2
  38. package/dist/mathjax-stix2.js +10 -10
  39. package/dist/model-source-DJGzDtGb.js +61 -0
  40. package/dist/model-source-kz_NkZqT.js +179 -0
  41. package/dist/model-source-session-Bu9CHFHc.js +71 -0
  42. package/dist/model-source-session-CDuijwv1.js +85 -0
  43. package/dist/model-source-session-sKpNiIJI.js +58 -0
  44. package/dist/node.mjs +7 -1327
  45. package/dist/{pixel-budget-9P63Bsk5.js → pixel-budget-BpTYrepD.js} +13 -10
  46. package/dist/plot-area-frame-CaJFvZ7p.js +8502 -0
  47. package/dist/pptx-CDP9dZHe.js +2936 -0
  48. package/dist/pptx-C_uxLVKB.js +183 -0
  49. package/dist/pptx-model-source-O7LhpOjz.js +37 -0
  50. package/dist/pptx-source-worker.mjs +446 -0
  51. package/dist/pptx.mjs +8 -7
  52. package/dist/pptx_parser_bg.wasm +0 -0
  53. package/dist/presentation-model-source-tmROzteR.js +77 -0
  54. package/dist/raster-target-YQ4G6rxo.js +42 -0
  55. package/dist/region-map.mjs +114 -150
  56. package/dist/{render-D3iqVKCo.js → render-CJVglUHl.js} +3 -3
  57. package/dist/{render-worker-host-B5wQfB7U.js → render-worker-host-BseIaVvm.js} +1 -1
  58. package/dist/{render-worker-host-D4123J27.js → render-worker-host-CyxPU4JU.js} +1 -1
  59. package/dist/{render-worker-host-Di3LxLc0.js → render-worker-host-aF6aWkC0.js} +1 -1
  60. package/dist/renderer-CkGLj0CC.js +5170 -0
  61. package/dist/renderer-Czw1cCC7.js +5823 -0
  62. package/dist/resource-measurement-mXw-WjMF.js +771 -0
  63. package/dist/session-Csv9maad.js +656 -0
  64. package/dist/slide-pull-client-DRZYwBTu.js +6515 -0
  65. package/dist/three-d-BK5siJgJ.js +878 -0
  66. package/dist/three-d.mjs +960 -945
  67. package/dist/{raster-target-ojDdQizC.js → tiff-contract-C6M3QcPp.js} +1 -42
  68. package/dist/tiff.mjs +401 -248
  69. package/dist/types/chart-ex.d.ts +149 -2
  70. package/dist/types/docx.d.ts +333 -96
  71. package/dist/types/index.d.ts +566 -301
  72. package/dist/types/internal-companion.d.ts +11 -0
  73. package/dist/types/math.d.ts +1 -1
  74. package/dist/types/node.d.ts +422 -9
  75. package/dist/types/pptx.d.ts +302 -95
  76. package/dist/types/region-map.d.ts +149 -2
  77. package/dist/types/three-d.d.ts +149 -2
  78. package/dist/types/tiff.d.ts +1 -1
  79. package/dist/types/xlsx.d.ts +343 -132
  80. package/dist/wasm-loader-rlgHmcSv.js +35 -0
  81. package/dist/wasm-runtime-generation-DX4y0Ecl.js +97 -0
  82. package/dist/workbook-model-source-BTC4ISTS.js +94 -0
  83. package/dist/worker-source-I1cIYBel.js +22 -0
  84. package/dist/worker-source-SbudzjYL.js +22 -0
  85. package/dist/worker-source-UAi3GNcM.js +22 -0
  86. package/dist/worksheet-pull-client-CkHgbtyM.js +579 -0
  87. package/dist/xlsx-CpSDPAEU.js +5809 -0
  88. package/dist/xlsx-D5569TPf.js +534 -0
  89. package/dist/xlsx-model-source-DPSkjFic.js +309 -0
  90. package/dist/xlsx-source-worker.mjs +525 -0
  91. package/dist/xlsx.mjs +8 -7
  92. package/dist/xlsx_parser_bg.wasm +0 -0
  93. package/package.json +42 -16
  94. package/dist/assets/render-worker-1uPAxMZr.js +0 -31
  95. package/dist/assets/render-worker-BlvJybji.js +0 -10
  96. package/dist/assets/render-worker-CzmiJfFL.js +0 -11
  97. package/dist/bounded-raw-part-cache-Cg1BsSZQ.js +0 -119
  98. package/dist/canvas-viewer-mechanics-DbLz0rYW.js +0 -1384
  99. package/dist/cjk-fallback-bLI3z70h.js +0 -46
  100. package/dist/comment-occurrence-C8Y2uoVr.js +0 -6
  101. package/dist/comment-ui-runtime-BsK8pmUT.js +0 -2
  102. package/dist/comments-Diid5ujN.js +0 -246
  103. package/dist/delimited-text-worker-host-BVY-Ecni.js +0 -27
  104. package/dist/document-pull-client-B9PTM-pL.js +0 -27280
  105. package/dist/docx-BF9WXrYH.js +0 -3103
  106. package/dist/dom-interaction-boundary-Cnm8DSBN.js +0 -223
  107. package/dist/highlight-rect-C5hkRqUr.js +0 -13
  108. package/dist/hyperlink-Cxzhet30.js +0 -36446
  109. package/dist/line-distribute-D1WNHKz_.js +0 -1023
  110. package/dist/line-metrics-B60C86uh.js +0 -60
  111. package/dist/plot-area-frame-DLTYKHNP.js +0 -4354
  112. package/dist/pptx-DkyYBYoL.js +0 -3065
  113. package/dist/renderer-B4GZb5We.js +0 -6492
  114. package/dist/resource-measurement-SHQCbkh2.js +0 -150
  115. package/dist/session-BGq81gRQ.js +0 -743
  116. package/dist/slide-pull-client-DiPnm240.js +0 -6253
  117. package/dist/source-key-DIJG8BA0.js +0 -42
  118. package/dist/three-d-DJBl8g8M.js +0 -1162
  119. package/dist/transfer-p6iCC2R7.js +0 -6
  120. package/dist/units-BzZ0gAxs.js +0 -4
  121. package/dist/worksheet-pull-client-BM8ywvbu.js +0 -458
  122. package/dist/xlsx-C9NVjgaV.js +0 -8484
  123. /package/dist/{chunk-DmhlhrBa.js → chunk-Dy4uBu1J.js} +0 -0
  124. /package/dist/{mathjax-DoyWZbSp.js → mathjax-BhwN6ilc.js} +0 -0
  125. /package/dist/{read-only-comment-decoration-Dz7eTQ4d.js → read-only-comment-decoration-PidH0wnP.js} +0 -0
  126. /package/dist/{read-only-comment-margin-DkgzASAl.js → read-only-comment-margin-B52rDVKo.js} +0 -0
  127. /package/dist/{renderer-module-contract-D91rkYHH.js → renderer-module-contract-CWM7jv6d.js} +0 -0
  128. /package/dist/{visible-index-BgiHEc1z.js → visible-index-FeVA0mGE.js} +0 -0
@@ -1,4 +1,4 @@
1
- //#region dist/.types-work/chart-BtUu4_7Y.d.ts
1
+ //#region dist/.types-work/chart-BX4Zli_Z.d.ts
2
2
  type DecodedImageBudgetStrategy = 'adaptive' | 'strict';
3
3
  interface ImageResourceOptions {
4
4
  decodedByteBudget?: number;
@@ -113,6 +113,136 @@ interface Duotone {
113
113
  clr1: string;
114
114
  clr2: string;
115
115
  }
116
+ type BlendMode = 'darken' | 'lighten' | 'mult' | 'over' | 'screen';
117
+ type BlipEffect = {
118
+ type: 'grayscale';
119
+ } | {
120
+ type: 'biLevel';
121
+ thresh: number;
122
+ } | {
123
+ type: 'colorChange';
124
+ from: string;
125
+ fromAlpha: number;
126
+ to: string;
127
+ toAlpha: number;
128
+ useAlpha: boolean;
129
+ } | {
130
+ type: 'luminance';
131
+ bright: number;
132
+ contrast: number;
133
+ } | {
134
+ type: 'duotone';
135
+ clr1?: string;
136
+ clr2?: string;
137
+ } | {
138
+ type: 'alphaBiLevel';
139
+ thresh: number;
140
+ } | {
141
+ type: 'alphaCeiling' | 'alphaFloor';
142
+ } | {
143
+ type: 'alphaInv';
144
+ color?: string;
145
+ } | {
146
+ type: 'hsl';
147
+ hue: number;
148
+ sat: number;
149
+ lum: number;
150
+ } | {
151
+ type: 'tint';
152
+ hue: number;
153
+ amt: number;
154
+ } | {
155
+ type: 'blur';
156
+ radius: number;
157
+ grow: boolean;
158
+ } | {
159
+ type: 'alphaMod';
160
+ container: BlipEffectContainer;
161
+ } | {
162
+ type: 'container';
163
+ container: BlipEffectContainer;
164
+ } | {
165
+ type: 'reference';
166
+ reference: string;
167
+ } | {
168
+ type: 'definitions';
169
+ containers: readonly BlipEffectContainer[];
170
+ work: number;
171
+ } | {
172
+ type: 'effectCountLimit';
173
+ observed: number;
174
+ } | {
175
+ type: 'alphaOutset';
176
+ radius: number;
177
+ } | {
178
+ type: 'blend';
179
+ container: BlipEffectContainer;
180
+ blend: BlendMode;
181
+ } | {
182
+ type: 'fill';
183
+ fill: BlipEffectFill;
184
+ } | {
185
+ type: 'glow';
186
+ glow: Glow;
187
+ } | {
188
+ type: 'shadow';
189
+ shadow: Shadow;
190
+ inner: boolean;
191
+ } | {
192
+ type: 'softEdge';
193
+ radius: number;
194
+ } | {
195
+ type: 'reflection';
196
+ reflection: Reflection & {
197
+ kx?: number;
198
+ ky?: number;
199
+ algn?: Shadow['algn'];
200
+ fadeDir?: number;
201
+ rotWithShape?: boolean;
202
+ };
203
+ } | {
204
+ type: 'transform';
205
+ sx: number;
206
+ sy: number;
207
+ kx: number;
208
+ ky: number;
209
+ tx: number;
210
+ ty: number;
211
+ } | {
212
+ type: 'relativeOffset';
213
+ tx: number;
214
+ ty: number;
215
+ } | {
216
+ type: 'presetShadow';
217
+ shadows: readonly Shadow[];
218
+ } | {
219
+ type: 'fillOverlay';
220
+ fill: BlipEffectFill;
221
+ blend: BlendMode;
222
+ } | {
223
+ type: 'alphaModFix';
224
+ amt: number;
225
+ } | {
226
+ type: 'alphaRepl';
227
+ alpha: number;
228
+ } | {
229
+ type: 'colorReplace';
230
+ color: string;
231
+ } | {
232
+ type: 'unsupported';
233
+ effect: string;
234
+ };
235
+ type BlipEffectImageFill = Omit<ImageFill, 'blipEffects'> & {
236
+ readonly blipEffects?: readonly BlipEffect[];
237
+ };
238
+ type BlipEffectFill = SolidFill | NoFill | PatternFill | (Omit<GradientFill, 'stops'> & {
239
+ readonly stops: readonly GradientStop$1[];
240
+ }) | BlipEffectImageFill;
241
+ interface BlipEffectContainer {
242
+ readonly kind: 'sib' | 'tree';
243
+ readonly name?: string;
244
+ readonly effects: readonly BlipEffect[];
245
+ }
116
246
  interface SrcRect {
117
247
  l: number;
118
248
  t: number;
@@ -176,6 +306,7 @@ interface ImageFill {
176
306
  tile?: TileInfo;
177
307
  alpha?: number;
178
308
  duotone?: Duotone;
309
+ blipEffects?: BlipEffect[];
179
310
  }
180
311
  interface Shadow {
181
312
  color: string;
@@ -570,6 +701,7 @@ interface ChartModel {
570
701
  title: string | null;
571
702
  titleRichRuns?: ChartTextRun[] | null;
572
703
  titlePresent?: boolean;
704
+ authoredWithoutSeries?: boolean;
573
705
  categories: string[];
574
706
  categorySourceHidden?: boolean[] | null;
575
707
  categoryLevels?: string[][] | null;
@@ -649,6 +781,7 @@ interface ChartModel {
649
781
  subtotalIndices: number[];
650
782
  legendManualLayout?: LegendManualLayout | null;
651
783
  valAxisFormatCode?: string | null;
784
+ valAxisNumberFormat?: ChartAxisNumberFormat | null;
652
785
  valAxisDisplayUnits?: ChartDisplayUnits | null;
653
786
  catAxisDisplayUnits?: ChartDisplayUnits | null;
654
787
  barGapWidth?: number | null;
@@ -737,6 +870,7 @@ interface ChartModel {
737
870
  valAxisLineDash?: string | null;
738
871
  valAxisLinePaintAuthored?: boolean | null;
739
872
  catAxisFormatCode?: string | null;
873
+ catAxisNumberFormat?: ChartAxisNumberFormat | null;
740
874
  catAxisMin?: number | null;
741
875
  catAxisMax?: number | null;
742
876
  titleManualLayout?: ChartManualLayout | null;
@@ -820,6 +954,13 @@ interface ChartModel {
820
954
  chartexTreemap?: ChartexTreemap | null;
821
955
  chartexRegionMap?: ChartexRegionMap | null;
822
956
  chartexHistogramBinning?: ChartexHistogramBinning | null;
957
+ chartexParetoOwnerIndex?: number | null;
958
+ chartexParetoSortDescending?: boolean | null;
959
+ chartexParetoFlatEndpoint?: boolean | null;
960
+ chartexSuppressGeometry?: boolean | null;
961
+ chartexParetoOutlineOwner?: boolean | null;
962
+ chartexPrimaryAxisRight?: boolean | null;
963
+ chartexShowUnpairedPercentageAxis?: boolean | null;
823
964
  chartexAccents?: string[] | null;
824
965
  chartexColorPalette?: Array<string | null> | null;
825
966
  chartexColorStyleMethod?: string | null;
@@ -1075,6 +1216,11 @@ interface ChartexHistogramBinning {
1075
1216
  intervalClosed?: 'l' | 'r' | null;
1076
1217
  underflow?: number | null;
1077
1218
  overflow?: number | null;
1219
+ edgeFormatCode?: string | null;
1220
+ }
1221
+ interface ChartAxisNumberFormat {
1222
+ authoredCode: string;
1223
+ sourceLinked?: boolean | null;
1078
1224
  }
1079
1225
  interface SecondaryValueAxis {
1080
1226
  style?: ChartExElementStyle | null;
@@ -1086,6 +1232,7 @@ interface SecondaryValueAxis {
1086
1232
  title: string | null;
1087
1233
  hidden: boolean;
1088
1234
  formatCode?: string | null;
1235
+ numberFormat?: ChartAxisNumberFormat | null;
1089
1236
  displayUnits?: ChartDisplayUnits | null;
1090
1237
  fontColor?: string | null;
1091
1238
  fontPaintAuthored?: boolean | null;
@@ -1186,12 +1333,12 @@ interface ChartRect {
1186
1333
  h: number;
1187
1334
  }
1188
1335
  //#endregion
1189
- //#region dist/.types-work/chart-ex-contract-Dds4H6Xe.d.ts
1336
+ //#region dist/.types-work/chart-ex-contract-uCVPGn_g.d.ts
1190
1337
  interface ChartExRenderer {
1191
1338
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1192
1339
  }
1193
1340
  //#endregion
1194
- //#region dist/.types-work/mathjax-Ceqah_7b.d.ts
1341
+ //#region dist/.types-work/mathjax-Cs1A6yAm.d.ts
1195
1342
  interface MathSvg {
1196
1343
  svg: string;
1197
1344
  widthEm: number;
@@ -1203,17 +1350,17 @@ interface MathRenderer {
1203
1350
  mathMLToSvg(mathml: string): Promise<MathSvg>;
1204
1351
  }
1205
1352
  //#endregion
1206
- //#region dist/.types-work/three-d-contract-xjaLTy8R.d.ts
1353
+ //#region dist/.types-work/three-d-contract-BAX9ecoe.d.ts
1207
1354
  interface ChartThreeDRenderer {
1208
1355
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1209
1356
  }
1210
1357
  //#endregion
1211
- //#region dist/.types-work/region-map-contract-DlO_Z1Gd.d.ts
1358
+ //#region dist/.types-work/region-map-contract-J2ruXmu1.d.ts
1212
1359
  interface ChartRegionMapRenderer {
1213
1360
  render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1214
1361
  }
1215
1362
  //#endregion
1216
- //#region dist/.types-work/tiff-contract-DsRI31nK.d.ts
1363
+ //#region dist/.types-work/tiff-contract-bt8L_KEc.d.ts
1217
1364
  interface TiffRenderOptions {
1218
1365
  targetWidthPx?: number;
1219
1366
  targetHeightPx?: number;
@@ -1228,14 +1375,19 @@ interface TiffRenderer {
1228
1375
  render(bytes: Uint8Array, options?: Readonly<TiffRenderOptions>): Promise<ImageBitmap | null>;
1229
1376
  }
1230
1377
  //#endregion
1231
- //#region dist/.types-work/hyperlink-BUVsH0z0.d.ts
1378
+ //#region dist/.types-work/hyperlink-BER006VA.d.ts
1232
1379
  type CjkLang = 'kr' | 'sc' | 'tc' | 'hk' | 'jp';
1233
1380
  type CjkFallback = 'auto' | CjkLang;
1234
- type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
1381
+ type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml' | 'unsupported-image-effect' | 'invalid-numbering' | 'unsupported-content';
1235
1382
  type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
1383
+ interface OoxmlUnsupportedContentDetails {
1384
+ readonly format: string;
1385
+ readonly reason: 'source-subset';
1386
+ }
1236
1387
  declare class OoxmlError extends Error {
1237
1388
  readonly code: OoxmlErrorCode;
1238
- constructor(code: OoxmlErrorCode, message: string);
1389
+ readonly details?: OoxmlUnsupportedContentDetails;
1390
+ constructor(code: OoxmlErrorCode, message: string, details?: OoxmlUnsupportedContentDetails);
1239
1391
  }
1240
1392
  type OoxmlFormat = 'docx' | 'xlsx' | 'pptx';
1241
1393
  interface OoxmlResourceUsageSnapshot {
@@ -1272,6 +1424,12 @@ interface OoxmlResourcePolicySnapshot {
1272
1424
  readonly maxArchiveEntryBytes: number | null;
1273
1425
  readonly maxTotalInflatedBytes: number | null;
1274
1426
  readonly maxArchiveEntries: number | null;
1427
+ readonly xlsxWorksheetLimits?: Readonly<{
1428
+ readonly maxRows: number;
1429
+ readonly maxCells: number;
1430
+ readonly maxOwnedUtf8Bytes: number;
1431
+ readonly maxJsonBytes: number;
1432
+ }>;
1275
1433
  }
1276
1434
  interface OoxmlResourceMetricsCheckpoint {
1277
1435
  readonly name: string;
@@ -1303,6 +1461,12 @@ interface OoxmlResourceLimits {
1303
1461
  maxTotalInflatedBytes?: OoxmlResourceLimit;
1304
1462
  maxArchiveEntries?: OoxmlResourceLimit;
1305
1463
  }
1464
+ interface XlsxWorksheetLimits {
1465
+ maxRows?: number;
1466
+ maxCells?: number;
1467
+ maxOwnedUtf8Bytes?: number;
1468
+ maxJsonBytes?: number;
1469
+ }
1306
1470
  interface ProgressiveLayoutProgress {
1307
1471
  committedUnits: number;
1308
1472
  }
@@ -1318,6 +1482,7 @@ interface LoadOptions$1 {
1318
1482
  wasmUrl?: string | URL;
1319
1483
  maxZipEntryBytes?: number;
1320
1484
  resourceLimits?: OoxmlResourceLimits;
1485
+ xlsxWorksheetLimits?: XlsxWorksheetLimits;
1321
1486
  debug?: boolean;
1322
1487
  onResourceMetrics?: (metrics: OoxmlResourceMetrics) => void;
1323
1488
  workerTimeoutMs?: number;
@@ -1327,7 +1492,7 @@ interface LoadOptions$1 {
1327
1492
  chartEx?: ChartExRenderer;
1328
1493
  tiff?: TiffRenderer;
1329
1494
  }
1330
- type OoxmlDecodedImageLimitMetric = 'image-dimension' | 'image-pixels' | 'active-decoded-bytes';
1495
+ type OoxmlDecodedImageLimitMetric = 'image-dimension' | 'image-pixels' | 'active-decoded-bytes' | 'image-effect-count' | 'image-effect-work' | 'tiff-lzw-work' | 'metafile-path-commands' | 'metafile-record-points' | 'metafile-record-polygons' | 'metafile-record-rectangles' | 'metafile-record-text-units';
1331
1496
  declare class OoxmlDecodedImageLimitError extends RangeError {
1332
1497
  readonly metric: OoxmlDecodedImageLimitMetric;
1333
1498
  readonly limit: number;
@@ -1346,7 +1511,7 @@ type HyperlinkTarget = {
1346
1511
  };
1347
1512
  declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
1348
1513
  //#endregion
1349
- //#region dist/.types-work/find-highlight-CfHNje1k.d.ts
1514
+ //#region dist/.types-work/find-highlight-CT_JWmHP.d.ts
1350
1515
  interface TextSelectionContextOptions {
1351
1516
  readonly maxTextCharacters?: number;
1352
1517
  readonly maxRunLocators?: number;
@@ -1407,7 +1572,44 @@ interface FindHighlightColors {
1407
1572
  active?: string;
1408
1573
  }
1409
1574
  //#endregion
1410
- //#region dist/.types-work/types-fEjGozew.d.ts
1575
+ //#region dist/.types-work/model-source-BvlR3Xr6.d.ts
1576
+ type ModelSourceTarget = 'docx' | 'xlsx' | 'pptx';
1577
+ type ModelSourceConfigValue = string | number | boolean | null;
1578
+ type ModelSourceConfig = Readonly<Record<string, ModelSourceConfigValue>>;
1579
+ declare const MODEL_SOURCE_MODULE_PROTOCOL = "ooxml-model-source-module/v2";
1580
+ interface ModelSourceModuleDescriptor {
1581
+ readonly protocol: typeof MODEL_SOURCE_MODULE_PROTOCOL;
1582
+ readonly target: ModelSourceTarget;
1583
+ readonly moduleUrl: string;
1584
+ readonly config: ModelSourceConfig;
1585
+ }
1586
+ interface ModelSourceLoad {
1587
+ readonly module: ModelSourceModuleDescriptor;
1588
+ readonly transfer?: readonly Transferable[];
1589
+ release(): void;
1590
+ }
1591
+ interface ModelSource<T extends ModelSourceTarget = ModelSourceTarget> {
1592
+ readonly target: T;
1593
+ claim(bytes: Uint8Array): boolean;
1594
+ beginLoad(): ModelSourceLoad;
1595
+ }
1596
+ interface OpenedModelSource<TArchive> {
1597
+ readonly archive: TArchive;
1598
+ readonly viewDefaults?: Readonly<Record<string, boolean>>;
1599
+ close(): void;
1600
+ }
1601
+ interface ModelSourceModule<TArchive = unknown> {
1602
+ openModelSource(bytes: Uint8Array, config: ModelSourceConfig, signal?: AbortSignal, transfer?: readonly Transferable[]): Promise<OpenedModelSource<TArchive>>;
1603
+ }
1604
+ //#endregion
1605
+ //#region dist/.types-work/types-DD7HF1Wg.d.ts
1606
+ type DocxDiagnosticCode = 'FLOW_OVERLAP' | 'BOTTOM_MARGIN_INVASION' | 'FLOW_DOMAIN_INVASION' | 'INVALID_REFERENCE' | 'INVALID_GEOMETRY' | 'INVALID_VALUE' | 'MISSING_RESOURCE' | 'NON_CONVERGENCE' | 'UNSUPPORTED_FEATURE';
1607
+ interface DocxDiagnostic {
1608
+ readonly code: DocxDiagnosticCode;
1609
+ readonly severity: 'warning' | 'error';
1610
+ readonly source?: Readonly<DocxStorySource>;
1611
+ readonly message: string;
1612
+ }
1411
1613
  interface DocxDocumentModel {
1412
1614
  section: SectionProps;
1413
1615
  body: BodyElement[];
@@ -1432,15 +1634,19 @@ interface EmbeddedFontRef {
1432
1634
  fontKey: string;
1433
1635
  }
1434
1636
  interface DocSettings {
1637
+ doNotUseHtmlParagraphAutoSpacing?: boolean;
1435
1638
  kinsoku?: boolean;
1436
1639
  noLineBreaksBefore?: string;
1437
1640
  noLineBreaksAfter?: string;
1438
1641
  mathDefJc?: string;
1439
1642
  defaultTabStop?: number;
1440
1643
  characterSpacingControl?: string;
1644
+ lineWrapLikeWord6?: boolean;
1645
+ enableOpenTypeFeatures?: boolean;
1441
1646
  useFeLayout?: boolean;
1442
1647
  balanceSingleByteDoubleByteWidth?: boolean;
1443
1648
  adjustLineHeightInTable?: boolean;
1649
+ compatibilityMode?: number;
1444
1650
  }
1445
1651
  interface DocRevision {
1446
1652
  kind: 'insertion' | 'deletion' | 'moveFrom' | 'moveTo' | string;
@@ -1551,6 +1757,7 @@ type BodyElement = ({
1551
1757
  type: 'table';
1552
1758
  } & DocTable) | {
1553
1759
  type: 'pageBreak';
1760
+ origin?: 'authored' | 'coverPageSynthetic';
1554
1761
  parity?: 'odd' | 'even';
1555
1762
  sameParagraphAsPrevious?: boolean;
1556
1763
  } | {
@@ -1574,6 +1781,8 @@ interface DocParagraph {
1574
1781
  indentFirst: number;
1575
1782
  spaceBefore: number;
1576
1783
  spaceAfter: number;
1784
+ beforeAutospacing?: boolean;
1785
+ afterAutospacing?: boolean;
1577
1786
  lineSpacing: LineSpacing | null;
1578
1787
  numbering: NumberingInfo | null;
1579
1788
  tabStops: TabStop[];
@@ -1588,6 +1797,8 @@ interface DocParagraph {
1588
1797
  markVanish?: boolean;
1589
1798
  widowControl?: boolean;
1590
1799
  overflowPunct?: boolean;
1800
+ autoSpaceDE?: boolean;
1801
+ autoSpaceDN?: boolean;
1591
1802
  adjustRightInd?: boolean;
1592
1803
  borders?: ParagraphBorders | null;
1593
1804
  styleId?: string | null;
@@ -1661,6 +1872,7 @@ interface NumberingInfo {
1661
1872
  picBulletMimeType?: string;
1662
1873
  picBulletWidthPt?: number;
1663
1874
  picBulletHeightPt?: number;
1875
+ picBulletTransform?: Pick<ImageRun, 'srcRect' | 'rotation' | 'flipH' | 'flipV'>;
1664
1876
  }
1665
1877
  type DocRunContent = ({
1666
1878
  type: 'text';
@@ -1756,6 +1968,8 @@ interface AnchorHostMetrics {
1756
1968
  }
1757
1969
  interface ShapeRun {
1758
1970
  inline?: boolean;
1971
+ inlineOffsetXPt?: number;
1972
+ inlineOffsetYPt?: number;
1759
1973
  widthPt: number;
1760
1974
  heightPt: number;
1761
1975
  anchorXPt: number;
@@ -1776,9 +1990,37 @@ interface ShapeRun {
1776
1990
  groupHeightPt?: number | null;
1777
1991
  behindDoc?: boolean;
1778
1992
  zOrder: number;
1993
+ vmlShadow?: {
1994
+ kind: 'single' | 'double' | 'emboss' | 'perspective';
1995
+ color: string;
1996
+ color2: string;
1997
+ offset: {
1998
+ xPt: number;
1999
+ yPt: number;
2000
+ xFraction: number;
2001
+ yFraction: number;
2002
+ };
2003
+ offset2: {
2004
+ xPt: number;
2005
+ yPt: number;
2006
+ xFraction: number;
2007
+ yFraction: number;
2008
+ };
2009
+ opacity: number;
2010
+ obscured: boolean;
2011
+ origin: [number, number];
2012
+ matrix: [number, number, number, number, number, number];
2013
+ absolutePerspective: boolean;
2014
+ };
1779
2015
  subpaths: PathCmd[][];
2016
+ subpathPaint?: Array<{
2017
+ fillRule?: 'nonzero' | 'evenodd';
2018
+ fill?: 'none' | 'lighten' | 'lightenLess' | 'darken' | 'darkenLess';
2019
+ stroke?: false;
2020
+ }>;
1780
2021
  presetGeometry?: string | null;
1781
2022
  adjValues?: Array<number | null>;
2023
+ vmlPicture?: Pick<ImageRun, 'imagePath' | 'mimeType' | 'srcRect' | 'colorReplaceFrom' | 'duotone'>;
1782
2024
  fill: ShapeFill | null;
1783
2025
  stroke: string | null;
1784
2026
  strokeWidth?: number;
@@ -1808,11 +2050,13 @@ interface ShapeRun {
1808
2050
  defaultTextColor?: string | null;
1809
2051
  textAnchor?: string | null;
1810
2052
  textAutofit?: string | null;
2053
+ textWrap?: string | null;
1811
2054
  textInsetL?: number;
1812
2055
  textInsetT?: number;
1813
2056
  textInsetR?: number;
1814
2057
  textInsetB?: number;
1815
2058
  textVert?: string | null;
2059
+ textUpright?: boolean | null;
1816
2060
  textPath?: TextPath | null;
1817
2061
  fillOpacity?: number | null;
1818
2062
  }
@@ -1840,6 +2084,7 @@ interface ShapeTextRun {
1840
2084
  interface ShapeText {
1841
2085
  text: string;
1842
2086
  fontSizePt: number;
2087
+ defaultFontSize?: number;
1843
2088
  color?: string | null;
1844
2089
  paragraphMarkColor?: string | null;
1845
2090
  fontFamily?: string | null;
@@ -1850,6 +2095,8 @@ interface ShapeText {
1850
2095
  alignment: string;
1851
2096
  spaceBefore?: number;
1852
2097
  spaceAfter?: number;
2098
+ beforeAutospacing?: boolean;
2099
+ afterAutospacing?: boolean;
1853
2100
  lineSpacingVal?: number;
1854
2101
  lineSpacingRule?: string;
1855
2102
  indentLeft?: number;
@@ -1886,6 +2133,20 @@ type ShapeFill = {
1886
2133
  preset: string;
1887
2134
  } | {
1888
2135
  fillType: 'image';
2136
+ vml?: {
2137
+ repeat: boolean;
2138
+ size: [{
2139
+ value: number;
2140
+ fraction: boolean;
2141
+ }, {
2142
+ value: number;
2143
+ fraction: boolean;
2144
+ }] | null;
2145
+ origin: [number, number];
2146
+ position: [number, number];
2147
+ aspect: string;
2148
+ alignShape: boolean;
2149
+ };
1889
2150
  imagePath: string;
1890
2151
  mimeType: string;
1891
2152
  svgImagePath?: string;
@@ -1899,6 +2160,7 @@ type ShapeFill = {
1899
2160
  tile?: TileInfo;
1900
2161
  alpha?: number;
1901
2162
  duotone?: Duotone;
2163
+ blipEffects?: BlipEffect[];
1902
2164
  };
1903
2165
  type ShapeStrokeFill = {
1904
2166
  fillType: 'gradient';
@@ -1989,6 +2251,7 @@ interface DocxTextRun {
1989
2251
  interface NoteRef {
1990
2252
  kind: 'footnote' | 'endnote' | string;
1991
2253
  id: string;
2254
+ customMarkFollows?: boolean;
1992
2255
  }
1993
2256
  interface RunRevision {
1994
2257
  kind: 'insertion' | 'deletion' | 'moveFrom' | 'moveTo' | string;
@@ -2024,6 +2287,7 @@ interface ImageRun {
2024
2287
  anchorYFromPara?: boolean;
2025
2288
  colorReplaceFrom?: string;
2026
2289
  duotone?: Duotone;
2290
+ blipEffects?: BlipEffect[];
2027
2291
  alpha?: number;
2028
2292
  wrapMode?: string;
2029
2293
  distTop?: number;
@@ -2103,10 +2367,13 @@ interface DocTableCell {
2103
2367
  vAlign: 'top' | 'center' | 'bottom';
2104
2368
  widthPt: number | null;
2105
2369
  widthPct?: number;
2370
+ noWrap?: boolean;
2106
2371
  marginTop?: number | null;
2107
2372
  marginBottom?: number | null;
2108
2373
  marginLeft?: number | null;
2109
2374
  marginRight?: number | null;
2375
+ textDirection?: string;
2376
+ hideMark?: boolean;
2110
2377
  }
2111
2378
  interface CellBorders {
2112
2379
  top: BorderSpec | null;
@@ -2115,6 +2382,8 @@ interface CellBorders {
2115
2382
  right: BorderSpec | null;
2116
2383
  insideH: BorderSpec | null;
2117
2384
  insideV: BorderSpec | null;
2385
+ tl2br?: BorderSpec;
2386
+ tr2bl?: BorderSpec;
2118
2387
  }
2119
2388
  interface DocxStorySource {
2120
2389
  story: 'body' | 'header' | 'footer' | 'footnote' | 'endnote' | 'textbox';
@@ -2126,10 +2395,12 @@ interface DocxTextRunInfo {
2126
2395
  paragraphId?: string;
2127
2396
  sourceRunIndex?: number;
2128
2397
  direction?: 'ltr' | 'rtl';
2398
+ optionalHyphenGlyph?: true;
2129
2399
  text: string;
2130
2400
  x: number;
2131
2401
  y: number;
2132
2402
  w: number;
2403
+ trailingSpaceCompressionPx?: number;
2133
2404
  h: number;
2134
2405
  highlightBounds?: Readonly<{
2135
2406
  x: number;
@@ -2154,7 +2425,7 @@ interface RenderPageOptions {
2154
2425
  showTrackedChanges?: boolean;
2155
2426
  }
2156
2427
  //#endregion
2157
- //#region dist/.types-work/docx-CKHYWz-i.d.ts
2428
+ //#region dist/.types-work/docx-Ch9sglGX.d.ts
2158
2429
  interface CommentAnchorRange {
2159
2430
  readonly commentId: string;
2160
2431
  readonly source: Readonly<DocxStorySource>;
@@ -2276,6 +2547,8 @@ interface RevisionAnchorGeometryFallback {
2276
2547
  }
2277
2548
  declare function resolveRevisionAnchorRuns(anchor: Readonly<RevisionAnchorRange>, runs: readonly Readonly<DocxTextRunInfo>[]): readonly Readonly<DocxTextRunInfo>[];
2278
2549
  interface LoadOptions extends LoadOptions$1 {
2550
+ allowFootnoteContinuation?: boolean;
2551
+ legacyDoc?: ModelSource<'docx'>;
2279
2552
  math?: MathRenderer;
2280
2553
  mode?: 'main' | 'worker';
2281
2554
  sliceLayout?: boolean;
@@ -2292,8 +2565,10 @@ type RenderPageToBitmapOptions = Omit<RenderPageOptions, 'onTextRun'> & {
2292
2565
  onTextRun?: (run: DocxTextRunInfo) => void;
2293
2566
  };
2294
2567
  declare class DocxDocument {
2568
+ get diagnostics(): readonly DocxDiagnostic[];
2295
2569
  private _metrics;
2296
2570
  private _cjkFallback;
2571
+ private _allowFootnoteContinuation;
2297
2572
  private _document;
2298
2573
  private _source;
2299
2574
  private _meta;
@@ -2320,6 +2595,10 @@ declare class DocxDocument {
2320
2595
  private _bridge;
2321
2596
  private readonly _rawParts;
2322
2597
  private _embeddedFontFaces;
2598
+ private _officeFontFaces;
2599
+ private _mainThreadFallbackReason;
2600
+ private _nativeRouteFaces;
2601
+ private _nativeRouteFacesReleased;
2323
2602
  private _googleFontFaces;
2324
2603
  private readonly _fetchImage;
2325
2604
  private constructor();
@@ -2368,6 +2647,7 @@ declare class DocxDocument {
2368
2647
  };
2369
2648
  private _withActiveView;
2370
2649
  renderPage(target: HTMLCanvasElement | OffscreenCanvas, pageIndex: number, opts?: RenderPageOptions): Promise<void>;
2650
+ private _renderPageWithTargetOwnership;
2371
2651
  renderPageToBitmap(pageIndex: number, opts?: RenderPageToBitmapOptions): Promise<ImageBitmap>;
2372
2652
  collectPageRuns(pageIndex: number, opts?: CollectPageRunsOptions): Promise<DocxTextRunInfo[]>;
2373
2653
  getCommentThreads(pageIndex: number, options?: DocxPageCommentThreadsOptions): Promise<readonly Readonly<ResolvedDocxCommentThread>[]>;
@@ -2392,6 +2672,9 @@ interface DocxViewerOptions extends Omit<RenderPageOptions, 'onTextRun'>, LoadOp
2392
2672
  onError?: (err: Error) => void;
2393
2673
  }
2394
2674
  declare class DocxViewer implements ZoomableViewer {
2675
+ private _pendingLoadAbort;
2676
+ private _pendingRequestedView;
2677
+ private _pendingViewChanged;
2395
2678
  private readonly _documentOwner;
2396
2679
  private get _doc();
2397
2680
  private readonly _borrowed;
@@ -2408,6 +2691,7 @@ declare class DocxViewer implements ZoomableViewer {
2408
2691
  private _findRequestGeneration;
2409
2692
  private _measureCtx;
2410
2693
  private _opts;
2694
+ private _showTrackedChangesExplicit;
2411
2695
  private readonly _mode;
2412
2696
  private readonly _renderDispatcher;
2413
2697
  private readonly _errorRouter;
@@ -2423,7 +2707,7 @@ declare class DocxViewer implements ZoomableViewer {
2423
2707
  private _internalHyperlinkGeneration;
2424
2708
  private readonly _layoutWaiters;
2425
2709
  private _layoutFailed;
2426
- private readonly _loadingLayer;
2710
+ private readonly _loadingIndicator;
2427
2711
  private _elementClickListener;
2428
2712
  private _contextMenuListener;
2429
2713
  static fromDocument(canvas: HTMLCanvasElement, document: DocxDocument, opts?: Omit<DocxViewerOptions, keyof LoadOptions>): Omit<DocxViewer, 'load'>;
@@ -2468,6 +2752,7 @@ declare class DocxViewer implements ZoomableViewer {
2468
2752
  private _render;
2469
2753
  private _reportRenderError;
2470
2754
  private _renderPage;
2755
+ private _clearPresentedPage;
2471
2756
  private _bindLayoutDocument;
2472
2757
  private _unbindLayoutDocument;
2473
2758
  private _onLayoutPublication;
@@ -2520,102 +2805,77 @@ interface DocxScrollViewerOptions extends Omit<RenderPageOptions, 'onTextRun'>,
2520
2805
  onError?: (err: Error) => void;
2521
2806
  }
2522
2807
  declare class DocxScrollViewer implements ZoomableViewer {
2808
+ private _pendingLoadAbort;
2809
+ private _pendingRequestedView;
2810
+ private _pendingViewChanged;
2523
2811
  private readonly _documentOwner;
2524
2812
  private get _doc();
2525
2813
  private readonly _borrowed;
2526
2814
  private readonly _opts;
2527
2815
  private readonly _errorRouter;
2528
2816
  private readonly _container;
2529
- private readonly _wrapper;
2530
- private readonly _scrollHost;
2531
- private readonly _spacer;
2817
+ private readonly _shell;
2818
+ private get _wrapper();
2819
+ private get _scrollHost();
2820
+ private get _spacer();
2532
2821
  private _mode;
2533
- private _scale;
2534
- private _scaleEstablished;
2535
- private _pendingScale;
2822
+ private readonly _viewport;
2823
+ private readonly _zoom;
2824
+ private get _scale();
2825
+ private get _scaleEstablished();
2826
+ private readonly _scroller;
2536
2827
  private readonly _slots;
2537
- private readonly _free;
2828
+ private readonly _layout;
2829
+ private readonly _renderHooks;
2830
+ private readonly _bitmap;
2831
+ private readonly _main;
2832
+ private readonly _navigation;
2833
+ private readonly _selection;
2538
2834
  private _heights;
2539
2835
  private _scrollGeometry;
2540
- private _lastRange;
2541
- private _lastTopIndex;
2542
- private _lastReportedTotal;
2543
- private _lastReportedLayoutComplete;
2544
- private _layoutUnsubscribe;
2545
- private _presentedPageCount;
2546
- private _scrollListener;
2547
- private _selectionChangeListener;
2548
- private _selectionContextKey;
2549
- private _elementClickListener;
2550
- private _contextMenuListener;
2551
- private _commentOutsidePointerListener;
2552
- private _elementContext;
2836
+ private readonly _visibleEvents;
2837
+ private readonly _loader;
2553
2838
  private _activeCommentId;
2554
2839
  private _activeCommentPage;
2555
2840
  private _commentUi;
2556
- private readonly _commentPageById;
2557
- private readonly _commentRunsByPage;
2558
- private readonly _commentIndexedPages;
2559
- private _commentScanFrontier;
2560
- private _commentNavigationGeneration;
2561
2841
  private _internalHyperlinkGeneration;
2562
2842
  private _commentAnchorRangesForMargin;
2563
2843
  private _commentAnchorIds;
2564
- private _reviewOriginPx;
2565
- private _commentGeometryScheduled;
2566
- private _commentGeometryFrame;
2567
- private readonly _pendingCommentGeometry;
2568
- private _elementHitGeneration;
2844
+ private readonly _commentMargin;
2845
+ private readonly _layers;
2846
+ private readonly _commentNavigation;
2847
+ private readonly _commentOverlay;
2569
2848
  private _destroyed;
2570
- private _measureCtx;
2571
- private readonly _bitmapInFlight;
2572
- private _renderEpoch;
2573
- private _settleTimer;
2574
- private _wheelListener;
2575
- private _pendingZoomAnchor;
2576
- private _resizeObserver;
2577
- private _prevBase;
2578
- private _lastFitWidth;
2849
+ private get _renderEpoch();
2850
+ private set _renderEpoch(value);
2851
+ private get _prevBase();
2852
+ private set _prevBase(value);
2579
2853
  private readonly _pageShadow;
2580
2854
  private readonly _find;
2581
2855
  private _findActive;
2856
+ private readonly _highlights;
2582
2857
  private _findRequestGeneration;
2583
2858
  private _showTrackedChanges;
2859
+ private _requestedShowTrackedChanges;
2584
2860
  private _currentDate;
2585
2861
  private _layoutViewGeneration;
2586
- private _layoutViewPublicationGeneration;
2587
2862
  static fromDocument(container: HTMLElement, document: DocxDocument, opts?: Omit<DocxScrollViewerOptions, keyof LoadOptions>): Omit<DocxScrollViewer, 'load'>;
2588
2863
  constructor(container: HTMLElement, opts?: DocxScrollViewerOptions);
2589
2864
  load(source: string | ArrayBuffer): Promise<void>;
2590
2865
  get pageCount(): number;
2591
2866
  get layoutComplete(): boolean;
2592
2867
  waitUntilLayoutComplete(): Promise<void>;
2593
- private _bindLayoutDocument;
2594
- private _unbindLayoutDocument;
2595
- private _onLayoutPublication;
2596
- private _onLayoutViewPublication;
2597
2868
  private _refreshCommentSurface;
2598
- private _applyLayoutPublication;
2599
2869
  private _pageWidthPx;
2600
2870
  private _pageHeightPx;
2601
- private _fitWidthPx;
2602
- private _hasCommentMargin;
2603
2871
  private _hasDisplayableComments;
2604
- private _commentMarginExtent;
2605
- private _commentZoom;
2606
2872
  private _commentsEnabled;
2607
2873
  private _commentsOptions;
2608
- private _commentSide;
2609
- private _syncCommentMarginGeometry;
2610
2874
  private _widestPageWidthPt;
2611
2875
  private _baseScale;
2612
2876
  relayout(): void;
2613
2877
  private _relayout;
2614
2878
  private _recomputeHeights;
2615
- private _gap;
2616
- private _overscan;
2617
- private _pad;
2618
- private _padH;
2619
2879
  private _pageIndexAtOffset;
2620
2880
  private _range;
2621
2881
  private _syncSpacer;
@@ -2623,41 +2883,33 @@ declare class DocxScrollViewer implements ZoomableViewer {
2623
2883
  private _onScroll;
2624
2884
  private _mountVisible;
2625
2885
  private _emitVisiblePageChange;
2626
- private _applyPageShadow;
2627
- private _acquireSlot;
2886
+ private _createSlot;
2628
2887
  private _recycleSlot;
2888
+ private _resetSlot;
2629
2889
  private _positionSlot;
2630
- private _dpr;
2631
2890
  private _renderSlot;
2632
2891
  private _hyperlinkHandler;
2633
2892
  private _navigateInternalHyperlink;
2634
- private _measureForFont;
2635
2893
  private _canvasCssPx;
2894
+ private _commitRenderedRuns;
2636
2895
  private _reportRenderError;
2637
2896
  private _renderSlotBitmap;
2638
2897
  setScale(scale: number): void;
2639
2898
  getScale(): number;
2640
2899
  zoomIn(): void;
2641
2900
  zoomOut(): void;
2642
- private _effectiveZoomMin;
2643
2901
  fitWidth(): void;
2644
2902
  fitPage(): void;
2645
- private _fit;
2646
2903
  private _previewVisible;
2647
2904
  private _previewSlot;
2648
2905
  private _clearTextLayerPreview;
2649
2906
  private _scheduleSettle;
2650
- private _settleRender;
2651
2907
  private _refreshSlotAtomically;
2652
2908
  setShowTrackedChanges(value: boolean): Promise<void>;
2653
2909
  scrollToPage(index: number, opts?: {
2654
2910
  behavior?: 'auto' | 'smooth';
2655
2911
  }): void;
2656
2912
  private _scrollToPageTarget;
2657
- private _resetCommentNavigation;
2658
- private _advanceCommentScanFrontier;
2659
- private _indexCommentPages;
2660
- private _commentRunsForPage;
2661
2913
  goToComment(commentId: string, opts?: {
2662
2914
  pageIndex?: number;
2663
2915
  behavior?: 'auto' | 'smooth';
@@ -2666,27 +2918,12 @@ declare class DocxScrollViewer implements ZoomableViewer {
2666
2918
  findNext(): Promise<FindMatch<DocxMatchLocation> | null>;
2667
2919
  findPrev(): Promise<FindMatch<DocxMatchLocation> | null>;
2668
2920
  clearFind(): void;
2669
- private _activateMatch;
2670
2921
  private _collectPageRuns;
2671
- private _redrawHighlights;
2672
- private _refreshFindRuns;
2673
2922
  private _commitCommentRuns;
2674
2923
  private _redrawSlotComments;
2675
- private _redrawSlotCommentConnectors;
2676
- private _scheduleCommentGeometry;
2677
- private _redrawSlotHighlights;
2678
- private _onResize;
2679
2924
  get topVisiblePage(): number;
2680
2925
  getResourceMetrics(): Promise<OoxmlResourceMetrics>;
2681
2926
  getSelectionContext(options?: DocxSelectionContextOptions): DocxSelectionContext | null;
2682
- private _emitSelectionContextChange;
2683
- private _setElementContext;
2684
- private _invalidateElementContext;
2685
- private _redrawElementOutlines;
2686
- private _redrawElementOutlineForSlot;
2687
- private _onElementClick;
2688
- private _onContextMenu;
2689
- private _resolveContextAt;
2690
2927
  destroy(): void;
2691
2928
  }
2692
2929
  declare function buildDocxTextLayer(layer: HTMLDivElement, runs: DocxTextRunInfo[], cssWidth: number, cssHeight: number, onHyperlinkClick?: (target: HyperlinkTarget) => void, measureForFont?: (font: string) => (s: string) => number, pageIndex?: number): void;
@@ -2697,4 +2934,4 @@ interface DocxHighlightMatch {
2697
2934
  type DocxHighlightColors = FindHighlightColors;
2698
2935
  declare function buildDocxHighlightLayer(layer: HTMLDivElement, runs: DocxTextRunInfo[], matches: DocxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: DocxHighlightColors): void;
2699
2936
  //#endregion
2700
- export { type AnchorHostMetrics, type AutoResizeOptions, type BodyElement, type BorderSpec, type CellBorders, type CellElement, type ChartAreaGroupDecorations, type ChartBarGroupDecorations, type ChartClassicSurfaceBandStyles, 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 CjkFallback, 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 Glow, 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 Reflection, 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 Shadow, type ShapeFill, type ShapeRun, type ShapeStrokeFill, type ShapeText, type ShapeTextRun, type SoftEdge, 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 };
2937
+ export { type AnchorHostMetrics, type AutoResizeOptions, type BlendMode, type BlipEffect, type BlipEffectContainer, type BlipEffectFill, type BlipEffectImageFill, type BodyElement, type BorderSpec, type CellBorders, type CellElement, type ChartAreaGroupDecorations, type ChartAxisNumberFormat, type ChartBarGroupDecorations, type ChartClassicSurfaceBandStyles, 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 CjkFallback, 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, type DocxDiagnostic, type DocxDiagnosticCode, 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 Glow, 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 ModelSource, type ModelSourceConfig, type ModelSourceConfigValue, type ModelSourceLoad, type ModelSourceModule, type ModelSourceModuleDescriptor, type ModelSourceTarget, 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 OoxmlUnsupportedContentDetails, type OpenedModelSource, type PTabRun, type PageBorderEdge, type PageBorders, type PageNumType, type ParaBorderEdge, type ParagraphBorders, type PathCmd, type PatternFill, type Reflection, 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 Shadow, type ShapeFill, type ShapeRun, type ShapeStrokeFill, type ShapeText, type ShapeTextRun, type SoftEdge, 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 XlsxWorksheetLimits, type ZoomableViewer, autoResize, buildDocxHighlightLayer, buildDocxTextLayer, isOoxmlDecodedImageLimitError, isTiffDecodeError, noteText, openExternalHyperlink, readDocxTextSelectionContext, resolveCommentAnchorRuns, resolveDocxCommentThreads, resolveRevisionAnchorRuns };