@silurus/ooxml 0.80.3 → 0.82.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 (67) hide show
  1. package/README.md +61 -85
  2. package/dist/assets/render-worker-7-Zr7fSw.js +10 -0
  3. package/dist/assets/render-worker-B5gsW6b5.js +11 -0
  4. package/dist/assets/render-worker-Dw_wQRIh.js +24 -0
  5. package/dist/{canvas-viewer-mechanics-D-r6wHY_.js → canvas-viewer-mechanics-CS_qbr6T.js} +1 -1
  6. package/dist/chart-ex.mjs +1017 -0
  7. package/dist/comment-occurrence-C34fWs_F.js +6 -0
  8. package/dist/comment-ui-runtime-BAe30Ct9.js +112 -0
  9. package/dist/comment-ui-runtime-BUCj4hWn.js +171 -0
  10. package/dist/comment-ui-runtime-F4a3te6p.js +2 -0
  11. package/dist/comments-Cf9W7r3M.js +241 -0
  12. package/dist/{document-pull-client-vxk-Aomu.js → document-pull-client-BCgmytqI.js} +4682 -4541
  13. package/dist/docx-wokGKYfi.js +2162 -0
  14. package/dist/docx.mjs +6 -4
  15. package/dist/docx_parser_bg.wasm +0 -0
  16. package/dist/dom-interaction-boundary-C8F6HO5x.js +119 -0
  17. package/dist/highlight-rect-MaCt0om0.js +13 -0
  18. package/dist/index.mjs +3 -3
  19. package/dist/{line-distribute-Bvtp0Gt6.js → line-distribute-iXsUCIH-.js} +17 -16
  20. package/dist/{line-metrics-DdEJYxjx.js → line-metrics-B3syvDn2.js} +667 -7492
  21. package/dist/math.mjs +2 -2
  22. package/dist/node.mjs +248 -247
  23. package/dist/plot-area-frame-DHV02PJU.js +3670 -0
  24. package/dist/pptx-DU8L8I2T.js +2432 -0
  25. package/dist/pptx.mjs +6 -5
  26. package/dist/pptx_parser_bg.wasm +0 -0
  27. package/dist/read-only-comment-decoration-DcFevX_Q.js +96 -0
  28. package/dist/read-only-comment-margin-Dn2y55W6.js +189 -0
  29. package/dist/region-map.mjs +102 -97
  30. package/dist/{render-CoqMHcbF.js → render-CenWM4g1.js} +1 -1
  31. package/dist/{render-worker-host-IuQFpoJM.js → render-worker-host-BNENN3qP.js} +1 -1
  32. package/dist/{render-worker-host-CYPhmBtX.js → render-worker-host-BmH3kGSj.js} +1 -1
  33. package/dist/{render-worker-host-GlLR1rtF.js → render-worker-host-CmPBviYJ.js} +1 -1
  34. package/dist/renderer-CYr9YTXM.js +5856 -0
  35. package/dist/{renderer-module-contract-BNGz8HvO.js → renderer-module-contract-DLbb7zY0.js} +4 -3
  36. package/dist/{resource-measurement-CgMubiAI.js → resource-measurement-CsW4_eYt.js} +12 -11
  37. package/dist/{session-DkPblDiq.js → session-Cky_swUj.js} +8 -8
  38. package/dist/{slide-pull-client-m2blvngt.js → slide-pull-client-CqTVFb3W.js} +1004 -1091
  39. package/dist/source-key-BklvnEyQ.js +42 -0
  40. package/dist/three-d-7MaVzQuZ.js +1346 -0
  41. package/dist/three-d.mjs +1238 -797
  42. package/dist/types/chart-ex.d.ts +949 -0
  43. package/dist/types/docx.d.ts +497 -28
  44. package/dist/types/index.d.ts +649 -39
  45. package/dist/types/math.d.ts +1 -1
  46. package/dist/types/node.d.ts +385 -22
  47. package/dist/types/pptx.d.ts +435 -24
  48. package/dist/types/region-map.d.ts +318 -6
  49. package/dist/types/three-d.d.ts +318 -6
  50. package/dist/types/xlsx.d.ts +384 -19
  51. package/dist/units-BzZ0gAxs.js +4 -0
  52. package/dist/{worksheet-pull-client-BntP6RiO.js → worksheet-pull-client-CYtwXP5D.js} +19 -19
  53. package/dist/{xlsx-DqMe7J2C.js → xlsx-DlV37-0j.js} +1594 -1349
  54. package/dist/xlsx.mjs +6 -5
  55. package/dist/xlsx_parser_bg.wasm +0 -0
  56. package/package.json +7 -1
  57. package/dist/assets/render-worker-CRaEOHkw.js +0 -9
  58. package/dist/assets/render-worker-DQGLj5Zv.js +0 -22
  59. package/dist/assets/render-worker-rnrSLmqL.js +0 -8
  60. package/dist/chart-number-format-qLhnk6hj.js +0 -475
  61. package/dist/docx-DN0PRx2f.js +0 -1733
  62. package/dist/highlight-rect-BuX5rWP4.js +0 -48
  63. package/dist/pptx-B-Laftl1.js +0 -2134
  64. package/dist/three-d-C28kqDym.js +0 -1086
  65. /package/dist/{mathjax-DgAl7Yi5.js → mathjax-DwIrafQ6.js} +0 -0
  66. /package/dist/{transfer-CKZ79zFw.js → transfer-R6NjgBKD.js} +0 -0
  67. /package/dist/{visible-index-BjesVGhg.js → visible-index-BFE3PWiY.js} +0 -0
@@ -1,4 +1,4 @@
1
- //#region dist/.types-work/chart-Cv7Lx8lu.d.ts
1
+ //#region dist/.types-work/chart-qJPl2r8m.d.ts
2
2
  type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
3
3
  interface MathRun {
4
4
  kind: 'run';
@@ -107,10 +107,20 @@ interface Duotone {
107
107
  clr1: string;
108
108
  clr2: string;
109
109
  }
110
+ interface SrcRect {
111
+ l: number;
112
+ t: number;
113
+ r: number;
114
+ b: number;
115
+ }
116
+ type Fill = SolidFill | NoFill | GradientFill | PatternFill | ImageFill;
110
117
  interface SolidFill {
111
118
  fillType: 'solid';
112
119
  color: string;
113
120
  }
121
+ interface NoFill {
122
+ fillType: 'none';
123
+ }
114
124
  interface GradientStop$1 {
115
125
  position: number;
116
126
  color: string;
@@ -140,13 +150,31 @@ interface FillRect {
140
150
  b?: number;
141
151
  }
142
152
  interface TileInfo {
143
- tx: number;
144
- ty: number;
145
- sx: number;
146
- sy: number;
147
- flip: string;
153
+ tx?: number;
154
+ ty?: number;
155
+ sx?: number;
156
+ sy?: number;
157
+ flip?: string;
148
158
  algn?: string;
149
159
  }
160
+ interface ImageFill {
161
+ fillType: 'image';
162
+ imagePath: string;
163
+ svgImagePath?: string;
164
+ mimeType: string;
165
+ dpi?: number;
166
+ rotWithShape?: boolean;
167
+ srcRect?: SrcRect;
168
+ fillRect?: FillRect;
169
+ stretch?: boolean;
170
+ tile?: TileInfo;
171
+ alpha?: number;
172
+ duotone?: Duotone;
173
+ }
174
+ interface DrawingMLCustomDashSegment {
175
+ dash: number;
176
+ space: number;
177
+ }
150
178
  interface ChartSeries {
151
179
  name: string;
152
180
  chartexFormatIdx?: number | null;
@@ -156,18 +184,24 @@ interface ChartSeries {
156
184
  automaticNegativeStyle?: boolean | null;
157
185
  invertedFill?: SolidFill | GradientFill | PatternFill | null;
158
186
  invertedFillHidden?: boolean | null;
187
+ invertedFillAuthored?: boolean | null;
159
188
  invertedLineColor?: string | null;
160
189
  invertedLineWidthEmu?: number | null;
161
190
  invertedLineHidden?: boolean | null;
191
+ invertedLineAuthored?: boolean | null;
162
192
  chartexStyle?: ChartExElementStyle | null;
163
193
  lineColor?: string | null;
164
194
  lineWidthEmu?: number | null;
165
195
  threeDShape?: 'box' | 'cylinder' | 'cone' | 'coneToMax' | 'pyramid' | 'pyramidToMax' | string | null;
166
196
  values: (number | null)[];
197
+ sourceHidden?: boolean[] | null;
167
198
  dataPointColors?: (string | null)[] | null;
199
+ explosion?: number | null;
168
200
  dataLabelColors?: (string | null)[] | null;
169
201
  labelColor?: string | null;
170
202
  seriesType?: string | null;
203
+ lineGroupIndex?: number | null;
204
+ areaGroupIndex?: number | null;
171
205
  barGroupIndex?: number | null;
172
206
  barGroupDirection?: 'bar' | 'col' | string | null;
173
207
  barGroupGrouping?: 'standard' | 'clustered' | 'stacked' | 'percentStacked' | string | null;
@@ -175,14 +209,18 @@ interface ChartSeries {
175
209
  barGroupOverlap?: number | null;
176
210
  useSecondaryAxis?: boolean | null;
177
211
  categories?: string[] | null;
212
+ bubbleXSourceIsString?: boolean | null;
178
213
  showMarker?: boolean | null;
179
214
  valFormatCode?: string | null;
180
215
  catFormatCode?: string | null;
181
216
  catFormatBuiltinId?: number | null;
182
217
  catFormatCodes?: (string | null)[] | null;
183
218
  markerSymbol?: string | null;
219
+ automaticMarkerSymbol?: string | null;
184
220
  markerSize?: number | null;
185
221
  markerFill?: string | null;
222
+ markerFillPaint?: Fill | null;
223
+ markerFillPaintAuthored?: boolean | null;
186
224
  markerLine?: string | null;
187
225
  markerLineWidthEmu?: number | null;
188
226
  dataPointOverrides?: ChartDataPointOverride[] | null;
@@ -190,6 +228,8 @@ interface ChartSeries {
190
228
  seriesDataLabels?: ChartSeriesDataLabels | null;
191
229
  errBars?: ChartErrBars[] | null;
192
230
  bubbleSizes?: (number | null)[] | null;
231
+ bubble3DGroupDefault?: boolean | null;
232
+ bubble3D?: boolean | null;
193
233
  smooth?: boolean | null;
194
234
  trendLines?: ChartTrendline[] | null;
195
235
  lineHidden?: boolean | null;
@@ -206,13 +246,27 @@ interface ChartTrendline {
206
246
  dispEq?: boolean | null;
207
247
  labelManualLayout?: ChartManualLayout | null;
208
248
  labelText?: string | null;
249
+ labelRichRuns?: ChartTextRun[] | null;
209
250
  labelFormatCode?: string | null;
210
251
  labelFormatSourceLinked?: boolean | null;
211
252
  labelFontSizeHpt?: number | null;
212
253
  labelFontBold?: boolean | null;
213
254
  labelFontItalic?: boolean | null;
214
255
  labelFontColor?: string | null;
256
+ labelFontPaintAuthored?: boolean | null;
257
+ labelFontHidden?: boolean | null;
215
258
  labelFontFace?: string | null;
259
+ labelFontLanguage?: string | null;
260
+ labelFontBaseline?: number | null;
261
+ labelTextRotation?: number | null;
262
+ labelTextWrap?: string | null;
263
+ labelTextVerticalAnchor?: string | null;
264
+ labelTextVerticalMode?: string | null;
265
+ labelTextLInsEmu?: number | null;
266
+ labelTextTInsEmu?: number | null;
267
+ labelTextRInsEmu?: number | null;
268
+ labelTextBInsEmu?: number | null;
269
+ labelTextBodyAuthored?: boolean | null;
216
270
  labelBox?: ChartLabelBox | null;
217
271
  labelTextAlign?: string | null;
218
272
  lineColor?: string | null;
@@ -224,6 +278,7 @@ interface ChartDataPointOverride {
224
278
  idx: number;
225
279
  color?: string;
226
280
  fillHidden?: boolean;
281
+ chartexStyle?: ChartExElementStyle | null;
227
282
  lineColor?: string;
228
283
  lineWidthEmu?: number;
229
284
  lineDash?: string;
@@ -231,8 +286,11 @@ interface ChartDataPointOverride {
231
286
  markerSymbol?: string;
232
287
  markerSize?: number;
233
288
  markerFill?: string;
289
+ markerFillPaint?: Fill | null;
290
+ markerFillPaintAuthored?: boolean | null;
234
291
  markerLine?: string;
235
292
  markerLineWidthEmu?: number;
293
+ bubble3D?: boolean | null;
236
294
  explosion?: number;
237
295
  }
238
296
  interface ChartDataLabelOverride {
@@ -241,9 +299,24 @@ interface ChartDataLabelOverride {
241
299
  richRuns?: ChartTextRun[];
242
300
  position?: string;
243
301
  fontColor?: string;
302
+ fontPaintAuthored?: boolean;
303
+ fontHidden?: boolean;
244
304
  fontSizeHpt?: number;
245
305
  fontFace?: string;
246
306
  fontBold?: boolean;
307
+ fontItalic?: boolean;
308
+ fontLanguage?: string;
309
+ fontBaseline?: number;
310
+ textRotation?: number;
311
+ textWrap?: string;
312
+ textVerticalAnchor?: string;
313
+ textVerticalMode?: string;
314
+ textLInsEmu?: number;
315
+ textTInsEmu?: number;
316
+ textRInsEmu?: number;
317
+ textBInsEmu?: number;
318
+ textBodyAuthored?: boolean;
319
+ textAlign?: 'l' | 'ctr' | 'r' | 'just' | 'dist' | string;
247
320
  formatCode?: string;
248
321
  separator?: string;
249
322
  manualLayout?: ChartManualLayout;
@@ -252,29 +325,63 @@ interface ChartDataLabelOverride {
252
325
  showCatName?: boolean;
253
326
  showSerName?: boolean;
254
327
  showPercent?: boolean;
328
+ showBubbleSize?: boolean;
329
+ showLegendKey?: boolean;
255
330
  deleted?: boolean;
256
331
  }
257
332
  interface ChartLabelBox {
258
333
  fill?: string;
334
+ fillPaint?: SolidFill | GradientFill | PatternFill | null;
335
+ fillHidden?: boolean | null;
336
+ fillPaintAuthored?: boolean | null;
259
337
  borderColor?: string;
338
+ borderFill?: SolidFill | GradientFill | PatternFill | null;
260
339
  borderWidthEmu?: number;
340
+ borderHidden?: boolean | null;
341
+ borderPaintAuthored?: boolean | null;
342
+ borderDash?: string | null;
343
+ borderDashAuthored?: boolean | null;
344
+ borderCustomDash?: ChartLineDashSegment[] | null;
345
+ borderCap?: string | null;
346
+ borderJoin?: string | null;
347
+ borderCompound?: string | null;
261
348
  }
262
349
  interface ChartSeriesDataLabels {
350
+ deleted?: boolean | null;
263
351
  showVal: boolean;
264
352
  showCatName: boolean;
265
353
  showSerName: boolean;
266
354
  showPercent: boolean;
355
+ showBubbleSize?: boolean;
356
+ showLegendKey?: boolean;
267
357
  position?: string;
268
358
  fontColor?: string;
359
+ fontPaintAuthored?: boolean;
360
+ fontHidden?: boolean;
269
361
  formatCode?: string;
270
362
  separator?: string;
271
363
  fontBold?: boolean;
364
+ fontItalic?: boolean;
365
+ fontLanguage?: string;
366
+ fontBaseline?: number;
272
367
  fontSizeHpt?: number;
273
368
  fontFace?: string;
369
+ textRotation?: number;
370
+ textWrap?: string;
371
+ textVerticalAnchor?: string;
372
+ textVerticalMode?: string;
373
+ textLInsEmu?: number;
374
+ textTInsEmu?: number;
375
+ textRInsEmu?: number;
376
+ textBInsEmu?: number;
377
+ textBodyAuthored?: boolean;
378
+ textAlign?: 'l' | 'ctr' | 'r' | 'just' | 'dist' | string;
274
379
  labelBox?: ChartLabelBox;
275
380
  showLeaderLines?: boolean;
276
381
  leaderLineColor?: string;
277
382
  leaderLineWidthEmu?: number;
383
+ leaderLineHidden?: boolean;
384
+ leaderLineDash?: string;
278
385
  }
279
386
  interface ChartErrBars {
280
387
  dir: string;
@@ -285,25 +392,73 @@ interface ChartErrBars {
285
392
  color?: string;
286
393
  lineWidthEmu?: number;
287
394
  dash?: string;
395
+ hidden?: boolean;
288
396
  }
289
397
  type ChartType = 'line' | 'stackedLine' | 'stackedLinePct' | 'clusteredBar' | 'clusteredBarH' | 'stackedBar' | 'stackedBarH' | 'stackedBarPct' | 'stackedBarHPct' | 'area' | 'stackedArea' | 'stackedAreaPct' | 'pie' | 'doughnut' | 'scatter' | 'bubble' | 'radar' | 'waterfall' | 'stock' | 'surface' | 'surface3D' | 'boxWhisker' | 'sunburst' | 'treemap' | string;
398
+ type ChartPlotGroupKind = 'area' | 'area3D' | 'line' | 'line3D' | 'stock' | 'radar' | 'scatter' | 'pie' | 'pie3D' | 'doughnut' | 'bar' | 'bar3D' | 'ofPie' | 'surface' | 'surface3D' | 'bubble';
399
+ type ChartPlotGroupAxisSlot = 'primary' | 'secondary' | 'none' | 'unresolved';
400
+ interface ChartPlotGroup {
401
+ kind: ChartPlotGroupKind;
402
+ seriesStart: number;
403
+ seriesCount: number;
404
+ categoryAxis: ChartPlotGroupAxisSlot;
405
+ valueAxis: ChartPlotGroupAxisSlot;
406
+ seriesAxis: ChartPlotGroupAxisSlot;
407
+ axisIds?: string[] | null;
408
+ grouping?: string | null;
409
+ barDirection?: string | null;
410
+ scatterStyle?: string | null;
411
+ radarStyle?: string | null;
412
+ gapWidth?: number | null;
413
+ overlap?: number | null;
414
+ bubbleScale?: number | null;
415
+ bubbleSizeRepresents?: 'area' | 'w' | null;
416
+ showNegativeBubbles?: boolean | null;
417
+ }
418
+ type ChartLineDashSegment = DrawingMLCustomDashSegment;
290
419
  interface ChartExElementStyle {
291
- fillPaints?: Array<SolidFill | GradientFill | PatternFill | null> | null;
420
+ fontSizeHpt?: number | null;
421
+ fontBold?: boolean | null;
422
+ fontItalic?: boolean | null;
423
+ fontColor?: string | null;
424
+ fontPaintAuthored?: boolean | null;
425
+ fontHidden?: boolean | null;
426
+ fontFace?: string | null;
427
+ fontLanguage?: string | null;
428
+ fontBaseline?: number | null;
429
+ textRotation?: number | null;
430
+ textWrap?: string | null;
431
+ textVerticalAnchor?: string | null;
432
+ textVerticalMode?: string | null;
433
+ textLInsEmu?: number | null;
434
+ textTInsEmu?: number | null;
435
+ textRInsEmu?: number | null;
436
+ textBInsEmu?: number | null;
437
+ textBodyAuthored?: boolean | null;
438
+ fillPaints?: Array<Fill | null> | null;
292
439
  fillColors?: Array<string | null> | null;
293
440
  fillHidden?: boolean | null;
441
+ fillPaintAuthored?: boolean | null;
294
442
  fillNoStyle?: boolean | null;
295
443
  lineColors?: Array<string | null> | null;
444
+ linePaints?: Array<SolidFill | GradientFill | PatternFill | null> | null;
445
+ linePaintAuthored?: boolean | null;
296
446
  lineWidthEmu?: number | null;
297
447
  lineHidden?: boolean | null;
298
448
  lineNoStyle?: boolean | null;
299
449
  lineDash?: string | null;
450
+ lineDashAuthored?: boolean | null;
451
+ lineCustomDash?: ChartLineDashSegment[] | null;
300
452
  lineCap?: string | null;
301
453
  lineJoin?: string | null;
454
+ lineCompound?: string | null;
302
455
  fillColorIndex?: number | null;
303
456
  lineColorIndex?: number | null;
304
457
  }
458
+ type ChartStyleRole = 'axisTitle' | 'categoryAxis' | 'chartArea' | 'dataLabel' | 'dataLabelCallout' | 'dataPoint' | 'dataPoint3D' | 'dataPointLine' | 'dataPointMarker' | 'dataPointWireframe' | 'dataTable' | 'downBar' | 'dropLine' | 'errorBar' | 'floor' | 'gridlineMajor' | 'gridlineMinor' | 'hiLoLine' | 'leaderLine' | 'legend' | 'plotArea' | 'plotArea3D' | 'seriesAxis' | 'seriesLine' | 'title' | 'trendline' | 'trendlineLabel' | 'upBar' | 'valueAxis' | 'wall';
305
459
  interface ChartSurfaceBandFormat {
306
460
  idx: number;
461
+ style?: ChartExElementStyle | null;
307
462
  fill?: SolidFill | GradientFill | PatternFill | null;
308
463
  fillHidden?: boolean | null;
309
464
  lineColor?: string | null;
@@ -320,8 +475,13 @@ interface ChartDataTable {
320
475
  fontColor?: string | null;
321
476
  fontBold?: boolean | null;
322
477
  fontItalic?: boolean | null;
478
+ fillColor?: string | null;
479
+ fill?: SolidFill | GradientFill | PatternFill | null;
480
+ fillHidden?: boolean | null;
481
+ fillPaintAuthored?: boolean | null;
323
482
  lineColor?: string | null;
324
483
  lineWidthEmu?: number | null;
484
+ lineDash?: string | null;
325
485
  lineHidden?: boolean | null;
326
486
  }
327
487
  interface ChartModel {
@@ -330,8 +490,10 @@ interface ChartModel {
330
490
  titleRichRuns?: ChartTextRun[] | null;
331
491
  titlePresent?: boolean;
332
492
  categories: string[];
493
+ categorySourceHidden?: boolean[] | null;
333
494
  categoryLevels?: string[][] | null;
334
495
  series: ChartSeries[];
496
+ plotGroups?: ChartPlotGroup[] | null;
335
497
  chartTextBoxes?: ChartTextBox[] | null;
336
498
  varyColors?: boolean | null;
337
499
  showDataLabels: boolean;
@@ -344,10 +506,32 @@ interface ChartModel {
344
506
  catAxisLineHidden: boolean;
345
507
  valAxisLineHidden: boolean;
346
508
  plotAreaBg: string | null;
509
+ plotAreaFill?: Fill | null;
510
+ plotAreaFillHidden?: boolean | null;
511
+ plotAreaFillPaintAuthored?: boolean | null;
512
+ plotAreaFillAutomatic?: boolean | null;
513
+ plotAreaLineColor?: string | null;
514
+ plotAreaLineFill?: SolidFill | GradientFill | PatternFill | null;
515
+ plotAreaLineWidthEmu?: number | null;
516
+ plotAreaLineDash?: string | null;
517
+ plotAreaLineDashAuthored?: boolean | null;
518
+ plotAreaLineCustomDash?: ChartLineDashSegment[] | null;
519
+ plotAreaLineCap?: string | null;
520
+ plotAreaLineJoin?: string | null;
521
+ plotAreaLineCompound?: string | null;
522
+ plotAreaLineHidden?: boolean | null;
523
+ plotAreaLinePaintAuthored?: boolean | null;
347
524
  chartBg: string | null;
525
+ chartFill?: Fill | null;
526
+ chartFillHidden?: boolean | null;
527
+ chartFillPaintAuthored?: boolean | null;
528
+ roundedCorners?: boolean | null;
529
+ plotVisibleOnly?: boolean | null;
348
530
  showLegend: boolean;
349
531
  dataTable?: ChartDataTable | null;
350
532
  legendPos: 'r' | 'l' | 't' | 'b' | 'tr' | null;
533
+ legendOverlay?: boolean | null;
534
+ legendEntries?: ChartLegendEntryOverride[] | null;
351
535
  catAxisCrossBetween: 'between' | 'midCat' | string;
352
536
  valAxisMajorTickMark: 'cross' | 'out' | 'in' | 'none' | string;
353
537
  catAxisMajorTickMark: 'cross' | 'out' | 'in' | 'none' | string;
@@ -384,6 +568,7 @@ interface ChartModel {
384
568
  catAxisTitleRotation?: number | null;
385
569
  catAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
386
570
  catAxisTitleManualLayout?: ChartManualLayout | null;
571
+ catAxisTitleTextVerticalInsetEmu?: number | null;
387
572
  valAxisTitleFontSizeHpt?: number | null;
388
573
  valAxisTitleFontBold?: boolean | null;
389
574
  valAxisTitleFontItalic?: boolean | null;
@@ -391,6 +576,7 @@ interface ChartModel {
391
576
  valAxisTitleRotation?: number | null;
392
577
  valAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
393
578
  valAxisTitleManualLayout?: ChartManualLayout | null;
579
+ valAxisTitleTextVerticalInsetEmu?: number | null;
394
580
  catAxisFontFace?: string | null;
395
581
  valAxisFontFace?: string | null;
396
582
  catAxisTitleFontFace?: string | null;
@@ -401,20 +587,45 @@ interface ChartModel {
401
587
  legendFontSizeHpt?: number | null;
402
588
  legendFontBold?: boolean | null;
403
589
  legendFillColor?: string | null;
590
+ legendFill?: Fill | null;
591
+ legendFillHidden?: boolean | null;
592
+ legendFillPaintAuthored?: boolean | null;
404
593
  legendLineColor?: string | null;
594
+ legendLineFill?: SolidFill | GradientFill | PatternFill | null;
405
595
  legendLineWidthEmu?: number | null;
596
+ legendLineDash?: string | null;
597
+ legendLineDashAuthored?: boolean | null;
598
+ legendLineCustomDash?: ChartLineDashSegment[] | null;
599
+ legendLineCap?: string | null;
600
+ legendLineJoin?: string | null;
601
+ legendLineCompound?: string | null;
602
+ legendLineHidden?: boolean | null;
603
+ legendLinePaintAuthored?: boolean | null;
406
604
  themeMajorFontLatin?: string | null;
407
605
  themeMinorFontLatin?: string | null;
408
606
  chartBorderColor?: string | null;
607
+ chartBorderLineFill?: SolidFill | GradientFill | PatternFill | null;
409
608
  chartBorderWidthEmu?: number | null;
609
+ chartBorderDash?: string | null;
610
+ chartBorderDashAuthored?: boolean | null;
611
+ chartBorderCustomDash?: ChartLineDashSegment[] | null;
612
+ chartBorderCap?: string | null;
613
+ chartBorderJoin?: string | null;
614
+ chartBorderCompound?: string | null;
615
+ chartBorderHidden?: boolean | null;
616
+ chartBorderPaintAuthored?: boolean | null;
410
617
  catAxisCrosses?: string | null;
411
618
  catAxisCrossesAt?: number | null;
412
619
  valAxisCrosses?: string | null;
413
620
  valAxisCrossesAt?: number | null;
414
621
  catAxisLineColor?: string | null;
415
622
  catAxisLineWidthEmu?: number | null;
623
+ catAxisLineDash?: string | null;
624
+ catAxisLinePaintAuthored?: boolean | null;
416
625
  valAxisLineColor?: string | null;
417
626
  valAxisLineWidthEmu?: number | null;
627
+ valAxisLineDash?: string | null;
628
+ valAxisLinePaintAuthored?: boolean | null;
418
629
  catAxisFormatCode?: string | null;
419
630
  catAxisMin?: number | null;
420
631
  catAxisMax?: number | null;
@@ -431,6 +642,7 @@ interface ChartModel {
431
642
  holeSize?: number | null;
432
643
  firstSliceAngle?: number | null;
433
644
  dispBlanksAs?: string | null;
645
+ showDataLabelsOverMax?: boolean | null;
434
646
  valAxisMajorGridlines?: boolean | null;
435
647
  catAxisMajorGridlines?: boolean | null;
436
648
  valAxisGridlineColor?: string | null;
@@ -463,12 +675,25 @@ interface ChartModel {
463
675
  catAxisTickLabelPos?: string | null;
464
676
  catAxisTickLabelSkip?: number | null;
465
677
  catAxisTickMarkSkip?: number | null;
678
+ catAxisLabelAlignment?: 'l' | 'ctr' | 'r' | string | null;
679
+ catAxisLabelOffsetPercent?: number | null;
466
680
  valAxisTickLabelPos?: string | null;
467
681
  catAxisLabelRotation?: number | null;
682
+ lineGroupDecorations?: ChartLineGroupDecorations[] | null;
683
+ areaGroupDecorations?: ChartAreaGroupDecorations[] | null;
684
+ barGroupDecorations?: ChartBarGroupDecorations[] | null;
685
+ stockDropLines?: ChartDecorationLineStyle | null;
686
+ stockHiLowLineStyle?: ChartDecorationLineStyle | null;
468
687
  stockHiLowLines?: boolean | null;
469
688
  stockHiLowLineColor?: string | null;
470
689
  stockUpDownBars?: boolean | null;
471
690
  stockUpDownBarStyle?: ChartStockUpDownBarStyle | null;
691
+ stockAutomaticStyle?: {
692
+ lineColor: string;
693
+ lineWidthEmu: number;
694
+ upFillColor: string;
695
+ downFillColor: string;
696
+ } | null;
472
697
  surfaceWireframe?: boolean | null;
473
698
  surfaceBandFormats?: ChartSurfaceBandFormat[] | null;
474
699
  legacyChartStyle?: number | null;
@@ -483,6 +708,11 @@ interface ChartModel {
483
708
  chartexAccents?: string[] | null;
484
709
  chartexColorPalette?: Array<string | null> | null;
485
710
  chartexColorStyleMethod?: string | null;
711
+ chartStyleRoles?: Partial<Record<ChartStyleRole, ChartExElementStyle>> | null;
712
+ chartStyleColorPalette?: Array<string | null> | null;
713
+ chartStyleColorMethod?: string | null;
714
+ chartStyleMarkerSizePt?: number | null;
715
+ chartStyleMarkerSymbol?: string | null;
486
716
  chartexDataPointStyle?: ChartExElementStyle | null;
487
717
  chartexDataPointLineStyle?: ChartExElementStyle | null;
488
718
  chartexSeriesLineStyle?: ChartExElementStyle | null;
@@ -493,9 +723,15 @@ interface ChartModel {
493
723
  }
494
724
  interface ChartStockBarPaint {
495
725
  fillColor?: string | null;
726
+ fill?: SolidFill | GradientFill | PatternFill | null;
727
+ fillPaintAuthored?: boolean | null;
496
728
  fillHidden?: boolean | null;
497
729
  lineColor?: string | null;
730
+ linePaintAuthored?: boolean | null;
498
731
  lineWidthEmu?: number | null;
732
+ lineDash?: string | null;
733
+ lineCap?: string | null;
734
+ lineJoin?: string | null;
499
735
  lineHidden?: boolean | null;
500
736
  }
501
737
  interface ChartStockUpDownBarStyle {
@@ -503,31 +739,76 @@ interface ChartStockUpDownBarStyle {
503
739
  up: ChartStockBarPaint;
504
740
  down: ChartStockBarPaint;
505
741
  }
742
+ interface ChartDecorationLineStyle {
743
+ color?: string | null;
744
+ paintAuthored?: boolean | null;
745
+ widthEmu?: number | null;
746
+ dash?: string | null;
747
+ cap?: string | null;
748
+ join?: string | null;
749
+ hidden?: boolean | null;
750
+ }
751
+ interface ChartLineGroupDecorations {
752
+ groupIndex: number;
753
+ dropLines?: ChartDecorationLineStyle | null;
754
+ hiLowLines?: ChartDecorationLineStyle | null;
755
+ upDownBars?: ChartStockUpDownBarStyle | null;
756
+ }
757
+ interface ChartAreaGroupDecorations {
758
+ groupIndex: number;
759
+ dropLines?: ChartDecorationLineStyle | null;
760
+ }
761
+ interface ChartBarGroupDecorations {
762
+ groupIndex: number;
763
+ seriesLines?: ChartDecorationLineStyle[] | null;
764
+ }
506
765
  interface ChartOfPie {
507
766
  type: 'pie' | 'bar';
508
767
  splitType: 'auto' | 'cust' | 'percent' | 'pos' | 'val';
768
+ splitTypeAuthored?: boolean | null;
509
769
  splitPos?: number | null;
770
+ splitPosAuthored?: boolean | null;
510
771
  customSplitIndices?: number[] | null;
511
772
  secondPieSizePercent: number;
512
773
  gapWidthPercent: number;
513
774
  seriesLines: boolean;
514
775
  }
515
776
  interface ChartThreeDSurface {
777
+ style?: ChartExElementStyle | null;
516
778
  fillColor?: string | null;
517
779
  fillHidden?: boolean | null;
518
780
  lineColor?: string | null;
519
781
  lineWidthEmu?: number | null;
520
782
  lineDash?: string | null;
521
783
  lineHidden?: boolean | null;
784
+ thicknessPercent?: number | null;
785
+ pictureOptions?: ChartThreeDPictureOptions | null;
786
+ }
787
+ interface ChartThreeDPictureOptions {
788
+ applyToFront?: boolean | null;
789
+ applyToSides?: boolean | null;
790
+ applyToEnd?: boolean | null;
791
+ pictureFormat?: 'stretch' | 'stack' | 'stackScale' | string | null;
792
+ pictureFormatAuthored?: boolean | null;
793
+ pictureStackUnit?: number | null;
794
+ pictureStackUnitAuthored?: boolean | null;
522
795
  }
523
796
  interface ChartThreeD {
797
+ view3DPresent?: boolean | null;
524
798
  rotationX?: number | null;
799
+ rotationXAuthored?: boolean | null;
525
800
  rotationY?: number | null;
801
+ rotationYAuthored?: boolean | null;
526
802
  heightPercent?: number | null;
803
+ heightPercentAuthored?: boolean | null;
527
804
  depthPercent?: number | null;
805
+ depthPercentAuthored?: boolean | null;
528
806
  perspective?: number | null;
807
+ perspectiveAuthored?: boolean | null;
529
808
  rightAngleAxes?: boolean | null;
809
+ rightAngleAxesAuthored?: boolean | null;
530
810
  gapDepthPercent?: number | null;
811
+ gapDepthPercentAuthored?: boolean | null;
531
812
  shape?: string | null;
532
813
  barGrouping?: 'standard' | 'clustered' | 'stacked' | 'percentStacked' | string | null;
533
814
  seriesAxis?: ChartThreeDSeriesAxis | null;
@@ -543,6 +824,7 @@ interface ChartThreeDSeriesAxis {
543
824
  tickLabelSkip?: number | null;
544
825
  tickMarkSkip?: number | null;
545
826
  majorTickMark: string;
827
+ minorTickMark?: string | null;
546
828
  fontColor?: string | null;
547
829
  fontSizeHpt?: number | null;
548
830
  fontBold?: boolean | null;
@@ -550,6 +832,8 @@ interface ChartThreeDSeriesAxis {
550
832
  fontFace?: string | null;
551
833
  lineColor?: string | null;
552
834
  lineWidthEmu?: number | null;
835
+ lineDash?: string | null;
836
+ linePaintAuthored?: boolean | null;
553
837
  lineHidden: boolean;
554
838
  titleFontSizeHpt?: number | null;
555
839
  titleFontBold?: boolean | null;
@@ -566,7 +850,12 @@ interface ChartTextRun {
566
850
  bold?: boolean | null;
567
851
  italic?: boolean | null;
568
852
  color?: string | null;
853
+ colorPaintAuthored?: boolean | null;
854
+ colorHidden?: boolean | null;
569
855
  fontFace?: string | null;
856
+ language?: string | null;
857
+ baseline?: number | null;
858
+ paragraphAlign?: 'l' | 'ctr' | 'r' | 'just' | 'dist' | string | null;
570
859
  }
571
860
  interface ChartTextParagraph {
572
861
  runs: ChartTextRun[];
@@ -669,6 +958,7 @@ interface SecondaryValueAxis {
669
958
  fontFace?: string | null;
670
959
  lineColor?: string | null;
671
960
  lineWidthEmu?: number | null;
961
+ lineDash?: string | null;
672
962
  lineHidden: boolean;
673
963
  majorTickMark: string;
674
964
  minorTickMark?: string | null;
@@ -685,6 +975,8 @@ interface SecondaryValueAxis {
685
975
  logBase?: number | null;
686
976
  orientation?: 'minMax' | 'maxMin' | string | null;
687
977
  tickLabelPos?: string | null;
978
+ labelAlignment?: 'l' | 'ctr' | 'r' | null;
979
+ labelOffsetPercent?: number | null;
688
980
  tickLabelSkip?: number | null;
689
981
  tickMarkSkip?: number | null;
690
982
  crosses?: string | null;
@@ -732,8 +1024,16 @@ interface LegendManualLayout {
732
1024
  hMode?: string;
733
1025
  x: number;
734
1026
  y: number;
735
- w: number;
736
- h: number;
1027
+ w?: number;
1028
+ h?: number;
1029
+ }
1030
+ interface ChartLegendEntryOverride {
1031
+ idx: number;
1032
+ deleted?: boolean | null;
1033
+ fontFace?: string | null;
1034
+ fontColor?: string | null;
1035
+ fontSizeHpt?: number | null;
1036
+ fontBold?: boolean | null;
737
1037
  }
738
1038
  interface ChartRect {
739
1039
  x: number;
@@ -742,7 +1042,12 @@ interface ChartRect {
742
1042
  h: number;
743
1043
  }
744
1044
  //#endregion
745
- //#region dist/.types-work/mathjax-D9Itb210.d.ts
1045
+ //#region dist/.types-work/chart-ex-contract-Ba0xG5gE.d.ts
1046
+ interface ChartExRenderer {
1047
+ render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1048
+ }
1049
+ //#endregion
1050
+ //#region dist/.types-work/mathjax-DwKoKmdb.d.ts
746
1051
  interface MathSvg {
747
1052
  svg: string;
748
1053
  widthEm: number;
@@ -754,17 +1059,17 @@ interface MathRenderer {
754
1059
  mathMLToSvg(mathml: string): Promise<MathSvg>;
755
1060
  }
756
1061
  //#endregion
757
- //#region dist/.types-work/three-d-contract-BhPkqlow.d.ts
1062
+ //#region dist/.types-work/three-d-contract-D5bEzjMw.d.ts
758
1063
  interface ChartThreeDRenderer {
759
- render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
1064
+ render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
760
1065
  }
761
1066
  //#endregion
762
- //#region dist/.types-work/region-map-contract-B6z5ZsH4.d.ts
1067
+ //#region dist/.types-work/region-map-contract-BFIR10oz.d.ts
763
1068
  interface ChartRegionMapRenderer {
764
- render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
1069
+ render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
765
1070
  }
766
1071
  //#endregion
767
- //#region dist/.types-work/hyperlink-EKY3amDQ.d.ts
1072
+ //#region dist/.types-work/hyperlink-CZoV-4B8.d.ts
768
1073
  type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
769
1074
  type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
770
1075
  declare class OoxmlError extends Error {
@@ -849,6 +1154,7 @@ interface LoadOptions$1 {
849
1154
  math?: MathRenderer;
850
1155
  threeD?: ChartThreeDRenderer;
851
1156
  regionMap?: ChartRegionMapRenderer;
1157
+ chartEx?: ChartExRenderer;
852
1158
  }
853
1159
  type OoxmlDecodedImageLimitMetric = 'image-pixels' | 'active-decoded-bytes';
854
1160
  declare class OoxmlDecodedImageLimitError extends RangeError {
@@ -869,7 +1175,7 @@ type HyperlinkTarget = {
869
1175
  };
870
1176
  declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
871
1177
  //#endregion
872
- //#region dist/.types-work/find-highlight-C-71IJpI.d.ts
1178
+ //#region dist/.types-work/find-highlight-DdGGQ_H7.d.ts
873
1179
  interface TextSelectionContextOptions {
874
1180
  readonly maxTextCharacters?: number;
875
1181
  readonly maxRunLocators?: number;
@@ -878,6 +1184,28 @@ interface ViewerContextMenuEvent<TContext> {
878
1184
  readonly originalEvent: MouseEvent;
879
1185
  getContext(): Promise<TContext | null>;
880
1186
  }
1187
+ interface ViewerCommentsOptions {
1188
+ readonly includeResolved?: boolean;
1189
+ }
1190
+ type ViewerCommentConnectorRoute = 'bezier' | 'orthogonal';
1191
+ type ViewerCommentConnectorStroke = 'solid' | 'dashed';
1192
+ interface ViewerCommentConnectorOptions {
1193
+ readonly route?: ViewerCommentConnectorRoute;
1194
+ readonly stroke?: ViewerCommentConnectorStroke;
1195
+ readonly color?: string;
1196
+ readonly activeColor?: string;
1197
+ }
1198
+ interface ViewerCommentMessageContext {
1199
+ readonly id?: string;
1200
+ readonly author?: string;
1201
+ readonly date?: string;
1202
+ readonly text: string;
1203
+ readonly status?: 'active' | 'resolved' | 'closed';
1204
+ }
1205
+ interface ViewerCommentThreadContext {
1206
+ readonly root: ViewerCommentMessageContext;
1207
+ readonly replies: readonly ViewerCommentMessageContext[];
1208
+ }
881
1209
  interface AutoResizeOptions {
882
1210
  pauseWhenHidden?: boolean;
883
1211
  }
@@ -908,7 +1236,7 @@ interface FindHighlightColors {
908
1236
  active?: string;
909
1237
  }
910
1238
  //#endregion
911
- //#region dist/.types-work/docx-DQGDQyp3.d.ts
1239
+ //#region dist/.types-work/docx-Cz7hTdgv.d.ts
912
1240
  interface DocxDocumentModel {
913
1241
  section: SectionProps;
914
1242
  body: BodyElement[];
@@ -944,7 +1272,8 @@ interface DocSettings {
944
1272
  adjustLineHeightInTable?: boolean;
945
1273
  }
946
1274
  interface DocRevision {
947
- kind: 'insertion' | 'deletion' | string;
1275
+ kind: 'insertion' | 'deletion' | 'moveFrom' | 'moveTo' | string;
1276
+ id?: string;
948
1277
  author?: string;
949
1278
  date?: string;
950
1279
  text: string;
@@ -955,6 +1284,14 @@ interface DocComment {
955
1284
  initials?: string;
956
1285
  date?: string;
957
1286
  text: string;
1287
+ parentId?: string;
1288
+ resolved?: boolean;
1289
+ paragraphs?: string[];
1290
+ }
1291
+ interface DocxCommentMark {
1292
+ id: string;
1293
+ kind: 'rangeStart' | 'rangeEnd' | 'reference' | string;
1294
+ runIndex: number;
958
1295
  }
959
1296
  interface DocNote {
960
1297
  id: string;
@@ -1071,6 +1408,7 @@ interface DocParagraph {
1071
1408
  tabStops: TabStop[];
1072
1409
  runs: DocRun[];
1073
1410
  bookmarks?: string[];
1411
+ commentMarks?: DocxCommentMark[];
1074
1412
  shading?: string | null;
1075
1413
  pageBreakBefore?: boolean;
1076
1414
  contextualSpacing?: boolean;
@@ -1153,7 +1491,7 @@ interface NumberingInfo {
1153
1491
  picBulletWidthPt?: number;
1154
1492
  picBulletHeightPt?: number;
1155
1493
  }
1156
- type DocRun = ({
1494
+ type DocRunContent = ({
1157
1495
  type: 'text';
1158
1496
  } & DocxTextRun) | ({
1159
1497
  type: 'anchorHost';
@@ -1177,6 +1515,9 @@ type DocRun = ({
1177
1515
  } | ({
1178
1516
  type: 'ptab';
1179
1517
  } & PTabRun);
1518
+ type DocRun = DocRunContent & {
1519
+ revision?: RunRevision;
1520
+ };
1180
1521
  interface ChartRun {
1181
1522
  chart: ChartModel;
1182
1523
  widthPt: number;
@@ -1479,7 +1820,8 @@ interface NoteRef {
1479
1820
  id: string;
1480
1821
  }
1481
1822
  interface RunRevision {
1482
- kind: 'insertion' | 'deletion' | string;
1823
+ kind: 'insertion' | 'deletion' | 'moveFrom' | 'moveTo' | string;
1824
+ id?: string;
1483
1825
  author?: string;
1484
1826
  date?: string;
1485
1827
  }
@@ -1603,18 +1945,27 @@ interface CellBorders {
1603
1945
  insideH: BorderSpec | null;
1604
1946
  insideV: BorderSpec | null;
1605
1947
  }
1948
+ interface DocxStorySource {
1949
+ story: 'body' | 'header' | 'footer' | 'footnote' | 'endnote' | 'textbox';
1950
+ storyInstance: string;
1951
+ path: readonly number[];
1952
+ }
1606
1953
  interface DocxTextRunInfo {
1607
- source?: Readonly<{
1608
- story: 'body' | 'header' | 'footer' | 'footnote' | 'endnote' | 'textbox';
1609
- storyInstance: string;
1610
- path: readonly number[];
1611
- }>;
1954
+ source?: Readonly<DocxStorySource>;
1612
1955
  paragraphId?: string;
1956
+ sourceRunIndex?: number;
1957
+ direction?: 'ltr' | 'rtl';
1613
1958
  text: string;
1614
1959
  x: number;
1615
1960
  y: number;
1616
1961
  w: number;
1617
1962
  h: number;
1963
+ highlightBounds?: Readonly<{
1964
+ x: number;
1965
+ y: number;
1966
+ width: number;
1967
+ height: number;
1968
+ }>;
1618
1969
  fontSize: number;
1619
1970
  font: string;
1620
1971
  letterSpacingPx?: number;
@@ -1629,6 +1980,46 @@ interface RenderPageOptions {
1629
1980
  onTextRun?: (run: DocxTextRunInfo) => void;
1630
1981
  currentDate?: Date | number;
1631
1982
  }
1983
+ interface CommentAnchorRange {
1984
+ readonly commentId: string;
1985
+ readonly source: Readonly<DocxStorySource>;
1986
+ readonly startRunIndex: number;
1987
+ readonly endRunIndex: number;
1988
+ readonly reference: CommentAnchorPoint;
1989
+ readonly geometryFallback?: CommentAnchorGeometryFallback;
1990
+ }
1991
+ interface CommentAnchorPoint {
1992
+ readonly source: Readonly<DocxStorySource>;
1993
+ readonly runIndex: number;
1994
+ readonly affinity: 'following' | 'preceding';
1995
+ }
1996
+ interface CommentAnchorGeometryFallback {
1997
+ readonly source: Readonly<DocxStorySource>;
1998
+ readonly sourceRunIndex: number;
1999
+ }
2000
+ type DocxCommentAnchorKind = 'range' | 'point' | 'fallback';
2001
+ interface DocxCommentHighlightRect {
2002
+ readonly x: number;
2003
+ readonly y: number;
2004
+ readonly width: number;
2005
+ readonly height: number;
2006
+ readonly transform?: string;
2007
+ }
2008
+ interface ResolvedDocxCommentAnchor {
2009
+ readonly anchor: Readonly<CommentAnchorRange>;
2010
+ readonly kind: DocxCommentAnchorKind;
2011
+ readonly rects: readonly Readonly<DocxCommentHighlightRect>[];
2012
+ }
2013
+ interface ResolvedDocxCommentThread {
2014
+ readonly root: Readonly<DocComment>;
2015
+ readonly replies: readonly Readonly<DocComment>[];
2016
+ readonly anchors: readonly Readonly<ResolvedDocxCommentAnchor>[];
2017
+ }
2018
+ interface ResolveDocxCommentThreadsOptions {
2019
+ readonly includeResolved?: boolean;
2020
+ }
2021
+ declare function resolveCommentAnchorRuns(anchor: Readonly<CommentAnchorRange>, runs: readonly Readonly<DocxTextRunInfo>[]): readonly Readonly<DocxTextRunInfo>[];
2022
+ declare function resolveDocxCommentThreads(comments: readonly Readonly<DocComment>[], anchors: readonly Readonly<CommentAnchorRange>[], runs: readonly Readonly<DocxTextRunInfo>[], options?: ResolveDocxCommentThreadsOptions): readonly Readonly<ResolvedDocxCommentThread>[];
1632
2023
  type DocxSelectionContextOptions = TextSelectionContextOptions;
1633
2024
  interface DocxSelectionSourceLocator {
1634
2025
  readonly story: 'body' | 'header' | 'footer' | 'footnote' | 'endnote' | 'textbox';
@@ -1678,17 +2069,42 @@ interface DocxElementContext {
1678
2069
  readonly textCharacters: number;
1679
2070
  readonly maxTextCharacters: number;
1680
2071
  }
1681
- type DocxSelectionContext = DocxTextSelectionContext | DocxElementContext;
2072
+ interface DocxCommentSelectionContext {
2073
+ readonly format: 'docx';
2074
+ readonly kind: 'comment';
2075
+ readonly pageIndex: number;
2076
+ readonly commentId: string;
2077
+ readonly source?: DocxSelectionSourceLocator;
2078
+ readonly thread: ViewerCommentThreadContext;
2079
+ readonly truncated: boolean;
2080
+ readonly truncationReasons: readonly ('text')[];
2081
+ readonly textCharacters: number;
2082
+ readonly maxTextCharacters: number;
2083
+ }
2084
+ type DocxSelectionContext = DocxTextSelectionContext | DocxElementContext | DocxCommentSelectionContext;
1682
2085
  declare function readDocxTextSelectionContext(root: HTMLElement, selection: Selection | null, options?: DocxSelectionContextOptions): DocxTextSelectionContext | null;
1683
2086
  interface DocxElementContextOptions {
1684
2087
  readonly maxTextCharacters?: number;
1685
2088
  readonly currentDate?: Date | number;
1686
2089
  }
2090
+ interface RevisionAnchorRange {
2091
+ readonly revisionIndex: number;
2092
+ readonly source: Readonly<DocxStorySource>;
2093
+ readonly startRunIndex: number;
2094
+ readonly endRunIndex: number;
2095
+ readonly geometryFallback?: RevisionAnchorGeometryFallback;
2096
+ }
2097
+ interface RevisionAnchorGeometryFallback {
2098
+ readonly source: Readonly<DocxStorySource>;
2099
+ readonly sourceRunIndex: number;
2100
+ }
2101
+ declare function resolveRevisionAnchorRuns(anchor: Readonly<RevisionAnchorRange>, runs: readonly Readonly<DocxTextRunInfo>[]): readonly Readonly<DocxTextRunInfo>[];
1687
2102
  interface LoadOptions extends LoadOptions$1 {
1688
2103
  math?: MathRenderer;
1689
2104
  mode?: 'main' | 'worker';
1690
2105
  }
1691
2106
  type CollectPageRunsOptions = Pick<RenderPageOptions, 'width' | 'currentDate'>;
2107
+ interface DocxPageCommentThreadsOptions extends CollectPageRunsOptions, ResolveDocxCommentThreadsOptions {}
1692
2108
  type RenderPageToBitmapOptions = Omit<RenderPageOptions, 'onTextRun'> & {
1693
2109
  onTextRun?: (run: DocxTextRunInfo) => void;
1694
2110
  };
@@ -1697,10 +2113,15 @@ declare class DocxDocument {
1697
2113
  private _document;
1698
2114
  private _source;
1699
2115
  private _meta;
2116
+ private _review;
1700
2117
  private _bookmarkPages;
2118
+ private _commentAnchorRanges;
2119
+ private _revisionAnchorRanges;
2120
+ private _reviewTextRunSourceIndex;
1701
2121
  private _mode;
1702
2122
  private _threeD;
1703
2123
  private _regionMap;
2124
+ private _chartEx;
1704
2125
  private _worker;
1705
2126
  private _bridge;
1706
2127
  private readonly _rawParts;
@@ -1720,7 +2141,11 @@ declare class DocxDocument {
1720
2141
  get pageCount(): number;
1721
2142
  get mode(): 'main' | 'worker';
1722
2143
  get document(): DocxDocumentModel;
1723
- get comments(): DocComment[];
2144
+ get comments(): readonly Readonly<DocComment>[];
2145
+ get revisions(): readonly Readonly<DocRevision>[];
2146
+ commentAnchorRanges(): readonly CommentAnchorRange[];
2147
+ revisionAnchorRanges(): readonly RevisionAnchorRange[];
2148
+ private _reviewSnapshot;
1724
2149
  get footnotes(): DocNote[];
1725
2150
  get endnotes(): DocNote[];
1726
2151
  private _getLayout;
@@ -1733,6 +2158,7 @@ declare class DocxDocument {
1733
2158
  renderPage(target: HTMLCanvasElement | OffscreenCanvas, pageIndex: number, opts?: RenderPageOptions): Promise<void>;
1734
2159
  renderPageToBitmap(pageIndex: number, opts?: RenderPageToBitmapOptions): Promise<ImageBitmap>;
1735
2160
  collectPageRuns(pageIndex: number, opts?: CollectPageRunsOptions): Promise<DocxTextRunInfo[]>;
2161
+ getCommentThreads(pageIndex: number, options?: DocxPageCommentThreadsOptions): Promise<readonly Readonly<ResolvedDocxCommentThread>[]>;
1736
2162
  getElementContextAt(pageIndex: number, point: DocxPagePoint, opts?: DocxElementContextOptions): Promise<DocxElementContext | null>;
1737
2163
  }
1738
2164
  interface DocxMatchLocation {
@@ -1826,6 +2252,12 @@ declare class DocxViewer implements ZoomableViewer {
1826
2252
  private _buildTextLayer;
1827
2253
  private _hyperlinkHandler;
1828
2254
  }
2255
+ interface DocxCommentsOptions extends ViewerCommentsOptions {
2256
+ readonly cards?: boolean;
2257
+ readonly side?: 'auto' | 'left' | 'right';
2258
+ readonly markers?: boolean;
2259
+ readonly connectors?: ViewerCommentConnectorOptions;
2260
+ }
1829
2261
  interface DocxScrollViewerOptions extends Omit<RenderPageOptions, 'onTextRun'>, LoadOptions {
1830
2262
  width?: number;
1831
2263
  gap?: number;
@@ -1835,6 +2267,7 @@ interface DocxScrollViewerOptions extends Omit<RenderPageOptions, 'onTextRun'>,
1835
2267
  paddingRight?: number;
1836
2268
  overscan?: number;
1837
2269
  enableTextSelection?: boolean;
2270
+ comments?: boolean | DocxCommentsOptions;
1838
2271
  enableElementSelection?: boolean;
1839
2272
  onSelectionContextChange?: (context: DocxSelectionContext | null) => void;
1840
2273
  onContextMenu?: (event: ViewerContextMenuEvent<DocxSelectionContext>) => void;
@@ -1867,6 +2300,7 @@ declare class DocxScrollViewer implements ZoomableViewer {
1867
2300
  private readonly _slots;
1868
2301
  private readonly _free;
1869
2302
  private _heights;
2303
+ private _scrollGeometry;
1870
2304
  private _lastRange;
1871
2305
  private _lastTopIndex;
1872
2306
  private _scrollListener;
@@ -1874,7 +2308,21 @@ declare class DocxScrollViewer implements ZoomableViewer {
1874
2308
  private _selectionContextKey;
1875
2309
  private _elementClickListener;
1876
2310
  private _contextMenuListener;
2311
+ private _commentOutsidePointerListener;
1877
2312
  private _elementContext;
2313
+ private _activeCommentId;
2314
+ private _activeCommentPage;
2315
+ private _commentUi;
2316
+ private readonly _commentPageById;
2317
+ private readonly _commentRunsByPage;
2318
+ private readonly _commentIndexedPages;
2319
+ private _commentScanFrontier;
2320
+ private _commentNavigationGeneration;
2321
+ private _commentAnchorRangesForMargin;
2322
+ private _commentAnchorIds;
2323
+ private _commentGeometryScheduled;
2324
+ private _commentGeometryFrame;
2325
+ private readonly _pendingCommentGeometry;
1878
2326
  private _elementHitGeneration;
1879
2327
  private _destroyed;
1880
2328
  private _measureCtx;
@@ -1896,6 +2344,14 @@ declare class DocxScrollViewer implements ZoomableViewer {
1896
2344
  private _pageWidthPx;
1897
2345
  private _pageHeightPx;
1898
2346
  private _fitWidthPx;
2347
+ private _hasCommentMargin;
2348
+ private _hasDisplayableComments;
2349
+ private _commentMarginExtent;
2350
+ private _commentZoom;
2351
+ private _commentsEnabled;
2352
+ private _commentsOptions;
2353
+ private _commentSide;
2354
+ private _syncCommentMarginGeometry;
1899
2355
  private _baseScale;
1900
2356
  relayout(): void;
1901
2357
  private _relayout;
@@ -1936,6 +2392,15 @@ declare class DocxScrollViewer implements ZoomableViewer {
1936
2392
  scrollToPage(index: number, opts?: {
1937
2393
  behavior?: 'auto' | 'smooth';
1938
2394
  }): void;
2395
+ private _scrollToPageTarget;
2396
+ private _resetCommentNavigation;
2397
+ private _advanceCommentScanFrontier;
2398
+ private _indexCommentPages;
2399
+ private _commentRunsForPage;
2400
+ goToComment(commentId: string, opts?: {
2401
+ pageIndex?: number;
2402
+ behavior?: 'auto' | 'smooth';
2403
+ }): Promise<boolean>;
1939
2404
  findText(query: string, opts?: FindMatchesOptions): Promise<FindMatch<DocxMatchLocation>[]>;
1940
2405
  findNext(): Promise<FindMatch<DocxMatchLocation> | null>;
1941
2406
  findPrev(): Promise<FindMatch<DocxMatchLocation> | null>;
@@ -1944,6 +2409,10 @@ declare class DocxScrollViewer implements ZoomableViewer {
1944
2409
  private _collectPageRuns;
1945
2410
  private _redrawHighlights;
1946
2411
  private _refreshFindRuns;
2412
+ private _commitCommentRuns;
2413
+ private _redrawSlotComments;
2414
+ private _redrawSlotCommentConnectors;
2415
+ private _scheduleCommentGeometry;
1947
2416
  private _redrawSlotHighlights;
1948
2417
  private _onResize;
1949
2418
  get topVisiblePage(): number;
@@ -1967,4 +2436,4 @@ interface DocxHighlightMatch {
1967
2436
  type DocxHighlightColors = FindHighlightColors;
1968
2437
  declare function buildDocxHighlightLayer(layer: HTMLDivElement, runs: DocxTextRunInfo[], matches: DocxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: DocxHighlightColors): void;
1969
2438
  //#endregion
1970
- export { type AnchorHostMetrics, type AutoResizeOptions, type BodyElement, type BorderSpec, type CellBorders, type CellElement, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartDataTable, type ChartDisplayUnits, type ChartDisplayUnitsLabel, type ChartErrBars, type ChartExElementStyle, type ChartLabelBox, type ChartManualLayout, type ChartModel, type ChartOfPie, 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 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 DocComment, type DocNote, type DocParagraph, type DocRevision, type DocRun, type DocSettings, type DocTable, type DocTableCell, type DocTableRow, DocxDocument, type DocxDocumentModel, type DocxElementContext, type DocxElementContextOptions, type DocxHighlightColors, type DocxHighlightMatch, type DocxMatchLocation, type DocxPagePoint, type DocxRunBorder, DocxScrollViewer, type DocxScrollViewerOptions, type DocxSelectionContext, type DocxSelectionContextOptions, type DocxSelectionRunLocator, type DocxSelectionSourceLocator, type DocxTextRun, type DocxTextRunInfo, type DocxTextSelectionContext, DocxViewer, type DocxViewerOptions, 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 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 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 RubyAnnotation, type RunRevision, type SecondaryValueAxis, type SectionGeom, type SectionProps, type ShapeFill, type ShapeRun, type ShapeStrokeFill, type ShapeText, type ShapeTextRun, type SolidFill, type TabStop, type TableBorders, type TblpPr, type TextPath, type TextSelectionContextOptions, type TileInfo, type ViewerContextMenuEvent, type ZoomableViewer, autoResize, buildDocxHighlightLayer, buildDocxTextLayer, isOoxmlDecodedImageLimitError, noteText, openExternalHyperlink, readDocxTextSelectionContext };
2439
+ 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 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 };