@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,6 +107,12 @@ 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
+ }
110
116
  type PathCmd = {
111
117
  cmd: 'moveTo';
112
118
  x: number;
@@ -175,18 +181,23 @@ interface FillRect {
175
181
  b?: number;
176
182
  }
177
183
  interface TileInfo {
178
- tx: number;
179
- ty: number;
180
- sx: number;
181
- sy: number;
182
- flip: string;
184
+ tx?: number;
185
+ ty?: number;
186
+ sx?: number;
187
+ sy?: number;
188
+ flip?: string;
183
189
  algn?: string;
184
190
  }
185
191
  interface ImageFill {
186
192
  fillType: 'image';
187
193
  imagePath: string;
194
+ svgImagePath?: string;
188
195
  mimeType: string;
196
+ dpi?: number;
197
+ rotWithShape?: boolean;
198
+ srcRect?: SrcRect;
189
199
  fillRect?: FillRect;
200
+ stretch?: boolean;
190
201
  tile?: TileInfo;
191
202
  alpha?: number;
192
203
  duotone?: Duotone;
@@ -237,10 +248,7 @@ interface Stroke {
237
248
  fillType: 'none';
238
249
  }>;
239
250
  dashStyle?: string;
240
- customDash?: ReadonlyArray<{
241
- dash: number;
242
- space: number;
243
- }>;
251
+ customDash?: ReadonlyArray<DrawingMLCustomDashSegment>;
244
252
  lineCap?: 'butt' | 'round' | 'square';
245
253
  lineJoin?: 'round' | 'bevel' | 'miter';
246
254
  miterLimit?: number;
@@ -249,6 +257,10 @@ interface Stroke {
249
257
  tailEnd?: ArrowEnd;
250
258
  cmpd?: string;
251
259
  }
260
+ interface DrawingMLCustomDashSegment {
261
+ dash: number;
262
+ space: number;
263
+ }
252
264
  interface TextBody$1 {
253
265
  verticalAnchor: string;
254
266
  paragraphs: Paragraph$1[];
@@ -378,18 +390,24 @@ interface ChartSeries {
378
390
  automaticNegativeStyle?: boolean | null;
379
391
  invertedFill?: SolidFill | GradientFill | PatternFill | null;
380
392
  invertedFillHidden?: boolean | null;
393
+ invertedFillAuthored?: boolean | null;
381
394
  invertedLineColor?: string | null;
382
395
  invertedLineWidthEmu?: number | null;
383
396
  invertedLineHidden?: boolean | null;
397
+ invertedLineAuthored?: boolean | null;
384
398
  chartexStyle?: ChartExElementStyle | null;
385
399
  lineColor?: string | null;
386
400
  lineWidthEmu?: number | null;
387
401
  threeDShape?: 'box' | 'cylinder' | 'cone' | 'coneToMax' | 'pyramid' | 'pyramidToMax' | string | null;
388
402
  values: (number | null)[];
403
+ sourceHidden?: boolean[] | null;
389
404
  dataPointColors?: (string | null)[] | null;
405
+ explosion?: number | null;
390
406
  dataLabelColors?: (string | null)[] | null;
391
407
  labelColor?: string | null;
392
408
  seriesType?: string | null;
409
+ lineGroupIndex?: number | null;
410
+ areaGroupIndex?: number | null;
393
411
  barGroupIndex?: number | null;
394
412
  barGroupDirection?: 'bar' | 'col' | string | null;
395
413
  barGroupGrouping?: 'standard' | 'clustered' | 'stacked' | 'percentStacked' | string | null;
@@ -397,14 +415,18 @@ interface ChartSeries {
397
415
  barGroupOverlap?: number | null;
398
416
  useSecondaryAxis?: boolean | null;
399
417
  categories?: string[] | null;
418
+ bubbleXSourceIsString?: boolean | null;
400
419
  showMarker?: boolean | null;
401
420
  valFormatCode?: string | null;
402
421
  catFormatCode?: string | null;
403
422
  catFormatBuiltinId?: number | null;
404
423
  catFormatCodes?: (string | null)[] | null;
405
424
  markerSymbol?: string | null;
425
+ automaticMarkerSymbol?: string | null;
406
426
  markerSize?: number | null;
407
427
  markerFill?: string | null;
428
+ markerFillPaint?: Fill | null;
429
+ markerFillPaintAuthored?: boolean | null;
408
430
  markerLine?: string | null;
409
431
  markerLineWidthEmu?: number | null;
410
432
  dataPointOverrides?: ChartDataPointOverride[] | null;
@@ -412,6 +434,8 @@ interface ChartSeries {
412
434
  seriesDataLabels?: ChartSeriesDataLabels | null;
413
435
  errBars?: ChartErrBars[] | null;
414
436
  bubbleSizes?: (number | null)[] | null;
437
+ bubble3DGroupDefault?: boolean | null;
438
+ bubble3D?: boolean | null;
415
439
  smooth?: boolean | null;
416
440
  trendLines?: ChartTrendline[] | null;
417
441
  lineHidden?: boolean | null;
@@ -428,13 +452,27 @@ interface ChartTrendline {
428
452
  dispEq?: boolean | null;
429
453
  labelManualLayout?: ChartManualLayout | null;
430
454
  labelText?: string | null;
455
+ labelRichRuns?: ChartTextRun[] | null;
431
456
  labelFormatCode?: string | null;
432
457
  labelFormatSourceLinked?: boolean | null;
433
458
  labelFontSizeHpt?: number | null;
434
459
  labelFontBold?: boolean | null;
435
460
  labelFontItalic?: boolean | null;
436
461
  labelFontColor?: string | null;
462
+ labelFontPaintAuthored?: boolean | null;
463
+ labelFontHidden?: boolean | null;
437
464
  labelFontFace?: string | null;
465
+ labelFontLanguage?: string | null;
466
+ labelFontBaseline?: number | null;
467
+ labelTextRotation?: number | null;
468
+ labelTextWrap?: string | null;
469
+ labelTextVerticalAnchor?: string | null;
470
+ labelTextVerticalMode?: string | null;
471
+ labelTextLInsEmu?: number | null;
472
+ labelTextTInsEmu?: number | null;
473
+ labelTextRInsEmu?: number | null;
474
+ labelTextBInsEmu?: number | null;
475
+ labelTextBodyAuthored?: boolean | null;
438
476
  labelBox?: ChartLabelBox | null;
439
477
  labelTextAlign?: string | null;
440
478
  lineColor?: string | null;
@@ -446,6 +484,7 @@ interface ChartDataPointOverride {
446
484
  idx: number;
447
485
  color?: string;
448
486
  fillHidden?: boolean;
487
+ chartexStyle?: ChartExElementStyle | null;
449
488
  lineColor?: string;
450
489
  lineWidthEmu?: number;
451
490
  lineDash?: string;
@@ -453,8 +492,11 @@ interface ChartDataPointOverride {
453
492
  markerSymbol?: string;
454
493
  markerSize?: number;
455
494
  markerFill?: string;
495
+ markerFillPaint?: Fill | null;
496
+ markerFillPaintAuthored?: boolean | null;
456
497
  markerLine?: string;
457
498
  markerLineWidthEmu?: number;
499
+ bubble3D?: boolean | null;
458
500
  explosion?: number;
459
501
  }
460
502
  interface ChartDataLabelOverride {
@@ -463,9 +505,24 @@ interface ChartDataLabelOverride {
463
505
  richRuns?: ChartTextRun[];
464
506
  position?: string;
465
507
  fontColor?: string;
508
+ fontPaintAuthored?: boolean;
509
+ fontHidden?: boolean;
466
510
  fontSizeHpt?: number;
467
511
  fontFace?: string;
468
512
  fontBold?: boolean;
513
+ fontItalic?: boolean;
514
+ fontLanguage?: string;
515
+ fontBaseline?: number;
516
+ textRotation?: number;
517
+ textWrap?: string;
518
+ textVerticalAnchor?: string;
519
+ textVerticalMode?: string;
520
+ textLInsEmu?: number;
521
+ textTInsEmu?: number;
522
+ textRInsEmu?: number;
523
+ textBInsEmu?: number;
524
+ textBodyAuthored?: boolean;
525
+ textAlign?: 'l' | 'ctr' | 'r' | 'just' | 'dist' | string;
469
526
  formatCode?: string;
470
527
  separator?: string;
471
528
  manualLayout?: ChartManualLayout;
@@ -474,29 +531,63 @@ interface ChartDataLabelOverride {
474
531
  showCatName?: boolean;
475
532
  showSerName?: boolean;
476
533
  showPercent?: boolean;
534
+ showBubbleSize?: boolean;
535
+ showLegendKey?: boolean;
477
536
  deleted?: boolean;
478
537
  }
479
538
  interface ChartLabelBox {
480
539
  fill?: string;
540
+ fillPaint?: SolidFill | GradientFill | PatternFill | null;
541
+ fillHidden?: boolean | null;
542
+ fillPaintAuthored?: boolean | null;
481
543
  borderColor?: string;
544
+ borderFill?: SolidFill | GradientFill | PatternFill | null;
482
545
  borderWidthEmu?: number;
546
+ borderHidden?: boolean | null;
547
+ borderPaintAuthored?: boolean | null;
548
+ borderDash?: string | null;
549
+ borderDashAuthored?: boolean | null;
550
+ borderCustomDash?: ChartLineDashSegment[] | null;
551
+ borderCap?: string | null;
552
+ borderJoin?: string | null;
553
+ borderCompound?: string | null;
483
554
  }
484
555
  interface ChartSeriesDataLabels {
556
+ deleted?: boolean | null;
485
557
  showVal: boolean;
486
558
  showCatName: boolean;
487
559
  showSerName: boolean;
488
560
  showPercent: boolean;
561
+ showBubbleSize?: boolean;
562
+ showLegendKey?: boolean;
489
563
  position?: string;
490
564
  fontColor?: string;
565
+ fontPaintAuthored?: boolean;
566
+ fontHidden?: boolean;
491
567
  formatCode?: string;
492
568
  separator?: string;
493
569
  fontBold?: boolean;
570
+ fontItalic?: boolean;
571
+ fontLanguage?: string;
572
+ fontBaseline?: number;
494
573
  fontSizeHpt?: number;
495
574
  fontFace?: string;
575
+ textRotation?: number;
576
+ textWrap?: string;
577
+ textVerticalAnchor?: string;
578
+ textVerticalMode?: string;
579
+ textLInsEmu?: number;
580
+ textTInsEmu?: number;
581
+ textRInsEmu?: number;
582
+ textBInsEmu?: number;
583
+ textBodyAuthored?: boolean;
584
+ textAlign?: 'l' | 'ctr' | 'r' | 'just' | 'dist' | string;
496
585
  labelBox?: ChartLabelBox;
497
586
  showLeaderLines?: boolean;
498
587
  leaderLineColor?: string;
499
588
  leaderLineWidthEmu?: number;
589
+ leaderLineHidden?: boolean;
590
+ leaderLineDash?: string;
500
591
  }
501
592
  interface ChartErrBars {
502
593
  dir: string;
@@ -507,25 +598,73 @@ interface ChartErrBars {
507
598
  color?: string;
508
599
  lineWidthEmu?: number;
509
600
  dash?: string;
601
+ hidden?: boolean;
510
602
  }
511
603
  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;
604
+ type ChartPlotGroupKind = 'area' | 'area3D' | 'line' | 'line3D' | 'stock' | 'radar' | 'scatter' | 'pie' | 'pie3D' | 'doughnut' | 'bar' | 'bar3D' | 'ofPie' | 'surface' | 'surface3D' | 'bubble';
605
+ type ChartPlotGroupAxisSlot = 'primary' | 'secondary' | 'none' | 'unresolved';
606
+ interface ChartPlotGroup {
607
+ kind: ChartPlotGroupKind;
608
+ seriesStart: number;
609
+ seriesCount: number;
610
+ categoryAxis: ChartPlotGroupAxisSlot;
611
+ valueAxis: ChartPlotGroupAxisSlot;
612
+ seriesAxis: ChartPlotGroupAxisSlot;
613
+ axisIds?: string[] | null;
614
+ grouping?: string | null;
615
+ barDirection?: string | null;
616
+ scatterStyle?: string | null;
617
+ radarStyle?: string | null;
618
+ gapWidth?: number | null;
619
+ overlap?: number | null;
620
+ bubbleScale?: number | null;
621
+ bubbleSizeRepresents?: 'area' | 'w' | null;
622
+ showNegativeBubbles?: boolean | null;
623
+ }
624
+ type ChartLineDashSegment = DrawingMLCustomDashSegment;
512
625
  interface ChartExElementStyle {
513
- fillPaints?: Array<SolidFill | GradientFill | PatternFill | null> | null;
626
+ fontSizeHpt?: number | null;
627
+ fontBold?: boolean | null;
628
+ fontItalic?: boolean | null;
629
+ fontColor?: string | null;
630
+ fontPaintAuthored?: boolean | null;
631
+ fontHidden?: boolean | null;
632
+ fontFace?: string | null;
633
+ fontLanguage?: string | null;
634
+ fontBaseline?: number | null;
635
+ textRotation?: number | null;
636
+ textWrap?: string | null;
637
+ textVerticalAnchor?: string | null;
638
+ textVerticalMode?: string | null;
639
+ textLInsEmu?: number | null;
640
+ textTInsEmu?: number | null;
641
+ textRInsEmu?: number | null;
642
+ textBInsEmu?: number | null;
643
+ textBodyAuthored?: boolean | null;
644
+ fillPaints?: Array<Fill | null> | null;
514
645
  fillColors?: Array<string | null> | null;
515
646
  fillHidden?: boolean | null;
647
+ fillPaintAuthored?: boolean | null;
516
648
  fillNoStyle?: boolean | null;
517
649
  lineColors?: Array<string | null> | null;
650
+ linePaints?: Array<SolidFill | GradientFill | PatternFill | null> | null;
651
+ linePaintAuthored?: boolean | null;
518
652
  lineWidthEmu?: number | null;
519
653
  lineHidden?: boolean | null;
520
654
  lineNoStyle?: boolean | null;
521
655
  lineDash?: string | null;
656
+ lineDashAuthored?: boolean | null;
657
+ lineCustomDash?: ChartLineDashSegment[] | null;
522
658
  lineCap?: string | null;
523
659
  lineJoin?: string | null;
660
+ lineCompound?: string | null;
524
661
  fillColorIndex?: number | null;
525
662
  lineColorIndex?: number | null;
526
663
  }
664
+ 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';
527
665
  interface ChartSurfaceBandFormat {
528
666
  idx: number;
667
+ style?: ChartExElementStyle | null;
529
668
  fill?: SolidFill | GradientFill | PatternFill | null;
530
669
  fillHidden?: boolean | null;
531
670
  lineColor?: string | null;
@@ -542,8 +681,13 @@ interface ChartDataTable {
542
681
  fontColor?: string | null;
543
682
  fontBold?: boolean | null;
544
683
  fontItalic?: boolean | null;
684
+ fillColor?: string | null;
685
+ fill?: SolidFill | GradientFill | PatternFill | null;
686
+ fillHidden?: boolean | null;
687
+ fillPaintAuthored?: boolean | null;
545
688
  lineColor?: string | null;
546
689
  lineWidthEmu?: number | null;
690
+ lineDash?: string | null;
547
691
  lineHidden?: boolean | null;
548
692
  }
549
693
  interface ChartModel {
@@ -552,8 +696,10 @@ interface ChartModel {
552
696
  titleRichRuns?: ChartTextRun[] | null;
553
697
  titlePresent?: boolean;
554
698
  categories: string[];
699
+ categorySourceHidden?: boolean[] | null;
555
700
  categoryLevels?: string[][] | null;
556
701
  series: ChartSeries[];
702
+ plotGroups?: ChartPlotGroup[] | null;
557
703
  chartTextBoxes?: ChartTextBox[] | null;
558
704
  varyColors?: boolean | null;
559
705
  showDataLabels: boolean;
@@ -566,10 +712,32 @@ interface ChartModel {
566
712
  catAxisLineHidden: boolean;
567
713
  valAxisLineHidden: boolean;
568
714
  plotAreaBg: string | null;
715
+ plotAreaFill?: Fill | null;
716
+ plotAreaFillHidden?: boolean | null;
717
+ plotAreaFillPaintAuthored?: boolean | null;
718
+ plotAreaFillAutomatic?: boolean | null;
719
+ plotAreaLineColor?: string | null;
720
+ plotAreaLineFill?: SolidFill | GradientFill | PatternFill | null;
721
+ plotAreaLineWidthEmu?: number | null;
722
+ plotAreaLineDash?: string | null;
723
+ plotAreaLineDashAuthored?: boolean | null;
724
+ plotAreaLineCustomDash?: ChartLineDashSegment[] | null;
725
+ plotAreaLineCap?: string | null;
726
+ plotAreaLineJoin?: string | null;
727
+ plotAreaLineCompound?: string | null;
728
+ plotAreaLineHidden?: boolean | null;
729
+ plotAreaLinePaintAuthored?: boolean | null;
569
730
  chartBg: string | null;
731
+ chartFill?: Fill | null;
732
+ chartFillHidden?: boolean | null;
733
+ chartFillPaintAuthored?: boolean | null;
734
+ roundedCorners?: boolean | null;
735
+ plotVisibleOnly?: boolean | null;
570
736
  showLegend: boolean;
571
737
  dataTable?: ChartDataTable | null;
572
738
  legendPos: 'r' | 'l' | 't' | 'b' | 'tr' | null;
739
+ legendOverlay?: boolean | null;
740
+ legendEntries?: ChartLegendEntryOverride[] | null;
573
741
  catAxisCrossBetween: 'between' | 'midCat' | string;
574
742
  valAxisMajorTickMark: 'cross' | 'out' | 'in' | 'none' | string;
575
743
  catAxisMajorTickMark: 'cross' | 'out' | 'in' | 'none' | string;
@@ -606,6 +774,7 @@ interface ChartModel {
606
774
  catAxisTitleRotation?: number | null;
607
775
  catAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
608
776
  catAxisTitleManualLayout?: ChartManualLayout | null;
777
+ catAxisTitleTextVerticalInsetEmu?: number | null;
609
778
  valAxisTitleFontSizeHpt?: number | null;
610
779
  valAxisTitleFontBold?: boolean | null;
611
780
  valAxisTitleFontItalic?: boolean | null;
@@ -613,6 +782,7 @@ interface ChartModel {
613
782
  valAxisTitleRotation?: number | null;
614
783
  valAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
615
784
  valAxisTitleManualLayout?: ChartManualLayout | null;
785
+ valAxisTitleTextVerticalInsetEmu?: number | null;
616
786
  catAxisFontFace?: string | null;
617
787
  valAxisFontFace?: string | null;
618
788
  catAxisTitleFontFace?: string | null;
@@ -623,20 +793,45 @@ interface ChartModel {
623
793
  legendFontSizeHpt?: number | null;
624
794
  legendFontBold?: boolean | null;
625
795
  legendFillColor?: string | null;
796
+ legendFill?: Fill | null;
797
+ legendFillHidden?: boolean | null;
798
+ legendFillPaintAuthored?: boolean | null;
626
799
  legendLineColor?: string | null;
800
+ legendLineFill?: SolidFill | GradientFill | PatternFill | null;
627
801
  legendLineWidthEmu?: number | null;
802
+ legendLineDash?: string | null;
803
+ legendLineDashAuthored?: boolean | null;
804
+ legendLineCustomDash?: ChartLineDashSegment[] | null;
805
+ legendLineCap?: string | null;
806
+ legendLineJoin?: string | null;
807
+ legendLineCompound?: string | null;
808
+ legendLineHidden?: boolean | null;
809
+ legendLinePaintAuthored?: boolean | null;
628
810
  themeMajorFontLatin?: string | null;
629
811
  themeMinorFontLatin?: string | null;
630
812
  chartBorderColor?: string | null;
813
+ chartBorderLineFill?: SolidFill | GradientFill | PatternFill | null;
631
814
  chartBorderWidthEmu?: number | null;
815
+ chartBorderDash?: string | null;
816
+ chartBorderDashAuthored?: boolean | null;
817
+ chartBorderCustomDash?: ChartLineDashSegment[] | null;
818
+ chartBorderCap?: string | null;
819
+ chartBorderJoin?: string | null;
820
+ chartBorderCompound?: string | null;
821
+ chartBorderHidden?: boolean | null;
822
+ chartBorderPaintAuthored?: boolean | null;
632
823
  catAxisCrosses?: string | null;
633
824
  catAxisCrossesAt?: number | null;
634
825
  valAxisCrosses?: string | null;
635
826
  valAxisCrossesAt?: number | null;
636
827
  catAxisLineColor?: string | null;
637
828
  catAxisLineWidthEmu?: number | null;
829
+ catAxisLineDash?: string | null;
830
+ catAxisLinePaintAuthored?: boolean | null;
638
831
  valAxisLineColor?: string | null;
639
832
  valAxisLineWidthEmu?: number | null;
833
+ valAxisLineDash?: string | null;
834
+ valAxisLinePaintAuthored?: boolean | null;
640
835
  catAxisFormatCode?: string | null;
641
836
  catAxisMin?: number | null;
642
837
  catAxisMax?: number | null;
@@ -653,6 +848,7 @@ interface ChartModel {
653
848
  holeSize?: number | null;
654
849
  firstSliceAngle?: number | null;
655
850
  dispBlanksAs?: string | null;
851
+ showDataLabelsOverMax?: boolean | null;
656
852
  valAxisMajorGridlines?: boolean | null;
657
853
  catAxisMajorGridlines?: boolean | null;
658
854
  valAxisGridlineColor?: string | null;
@@ -685,12 +881,25 @@ interface ChartModel {
685
881
  catAxisTickLabelPos?: string | null;
686
882
  catAxisTickLabelSkip?: number | null;
687
883
  catAxisTickMarkSkip?: number | null;
884
+ catAxisLabelAlignment?: 'l' | 'ctr' | 'r' | string | null;
885
+ catAxisLabelOffsetPercent?: number | null;
688
886
  valAxisTickLabelPos?: string | null;
689
887
  catAxisLabelRotation?: number | null;
888
+ lineGroupDecorations?: ChartLineGroupDecorations[] | null;
889
+ areaGroupDecorations?: ChartAreaGroupDecorations[] | null;
890
+ barGroupDecorations?: ChartBarGroupDecorations[] | null;
891
+ stockDropLines?: ChartDecorationLineStyle | null;
892
+ stockHiLowLineStyle?: ChartDecorationLineStyle | null;
690
893
  stockHiLowLines?: boolean | null;
691
894
  stockHiLowLineColor?: string | null;
692
895
  stockUpDownBars?: boolean | null;
693
896
  stockUpDownBarStyle?: ChartStockUpDownBarStyle | null;
897
+ stockAutomaticStyle?: {
898
+ lineColor: string;
899
+ lineWidthEmu: number;
900
+ upFillColor: string;
901
+ downFillColor: string;
902
+ } | null;
694
903
  surfaceWireframe?: boolean | null;
695
904
  surfaceBandFormats?: ChartSurfaceBandFormat[] | null;
696
905
  legacyChartStyle?: number | null;
@@ -705,6 +914,11 @@ interface ChartModel {
705
914
  chartexAccents?: string[] | null;
706
915
  chartexColorPalette?: Array<string | null> | null;
707
916
  chartexColorStyleMethod?: string | null;
917
+ chartStyleRoles?: Partial<Record<ChartStyleRole, ChartExElementStyle>> | null;
918
+ chartStyleColorPalette?: Array<string | null> | null;
919
+ chartStyleColorMethod?: string | null;
920
+ chartStyleMarkerSizePt?: number | null;
921
+ chartStyleMarkerSymbol?: string | null;
708
922
  chartexDataPointStyle?: ChartExElementStyle | null;
709
923
  chartexDataPointLineStyle?: ChartExElementStyle | null;
710
924
  chartexSeriesLineStyle?: ChartExElementStyle | null;
@@ -715,9 +929,15 @@ interface ChartModel {
715
929
  }
716
930
  interface ChartStockBarPaint {
717
931
  fillColor?: string | null;
932
+ fill?: SolidFill | GradientFill | PatternFill | null;
933
+ fillPaintAuthored?: boolean | null;
718
934
  fillHidden?: boolean | null;
719
935
  lineColor?: string | null;
936
+ linePaintAuthored?: boolean | null;
720
937
  lineWidthEmu?: number | null;
938
+ lineDash?: string | null;
939
+ lineCap?: string | null;
940
+ lineJoin?: string | null;
721
941
  lineHidden?: boolean | null;
722
942
  }
723
943
  interface ChartStockUpDownBarStyle {
@@ -725,31 +945,76 @@ interface ChartStockUpDownBarStyle {
725
945
  up: ChartStockBarPaint;
726
946
  down: ChartStockBarPaint;
727
947
  }
948
+ interface ChartDecorationLineStyle {
949
+ color?: string | null;
950
+ paintAuthored?: boolean | null;
951
+ widthEmu?: number | null;
952
+ dash?: string | null;
953
+ cap?: string | null;
954
+ join?: string | null;
955
+ hidden?: boolean | null;
956
+ }
957
+ interface ChartLineGroupDecorations {
958
+ groupIndex: number;
959
+ dropLines?: ChartDecorationLineStyle | null;
960
+ hiLowLines?: ChartDecorationLineStyle | null;
961
+ upDownBars?: ChartStockUpDownBarStyle | null;
962
+ }
963
+ interface ChartAreaGroupDecorations {
964
+ groupIndex: number;
965
+ dropLines?: ChartDecorationLineStyle | null;
966
+ }
967
+ interface ChartBarGroupDecorations {
968
+ groupIndex: number;
969
+ seriesLines?: ChartDecorationLineStyle[] | null;
970
+ }
728
971
  interface ChartOfPie {
729
972
  type: 'pie' | 'bar';
730
973
  splitType: 'auto' | 'cust' | 'percent' | 'pos' | 'val';
974
+ splitTypeAuthored?: boolean | null;
731
975
  splitPos?: number | null;
976
+ splitPosAuthored?: boolean | null;
732
977
  customSplitIndices?: number[] | null;
733
978
  secondPieSizePercent: number;
734
979
  gapWidthPercent: number;
735
980
  seriesLines: boolean;
736
981
  }
737
982
  interface ChartThreeDSurface {
983
+ style?: ChartExElementStyle | null;
738
984
  fillColor?: string | null;
739
985
  fillHidden?: boolean | null;
740
986
  lineColor?: string | null;
741
987
  lineWidthEmu?: number | null;
742
988
  lineDash?: string | null;
743
989
  lineHidden?: boolean | null;
990
+ thicknessPercent?: number | null;
991
+ pictureOptions?: ChartThreeDPictureOptions | null;
992
+ }
993
+ interface ChartThreeDPictureOptions {
994
+ applyToFront?: boolean | null;
995
+ applyToSides?: boolean | null;
996
+ applyToEnd?: boolean | null;
997
+ pictureFormat?: 'stretch' | 'stack' | 'stackScale' | string | null;
998
+ pictureFormatAuthored?: boolean | null;
999
+ pictureStackUnit?: number | null;
1000
+ pictureStackUnitAuthored?: boolean | null;
744
1001
  }
745
1002
  interface ChartThreeD {
1003
+ view3DPresent?: boolean | null;
746
1004
  rotationX?: number | null;
1005
+ rotationXAuthored?: boolean | null;
747
1006
  rotationY?: number | null;
1007
+ rotationYAuthored?: boolean | null;
748
1008
  heightPercent?: number | null;
1009
+ heightPercentAuthored?: boolean | null;
749
1010
  depthPercent?: number | null;
1011
+ depthPercentAuthored?: boolean | null;
750
1012
  perspective?: number | null;
1013
+ perspectiveAuthored?: boolean | null;
751
1014
  rightAngleAxes?: boolean | null;
1015
+ rightAngleAxesAuthored?: boolean | null;
752
1016
  gapDepthPercent?: number | null;
1017
+ gapDepthPercentAuthored?: boolean | null;
753
1018
  shape?: string | null;
754
1019
  barGrouping?: 'standard' | 'clustered' | 'stacked' | 'percentStacked' | string | null;
755
1020
  seriesAxis?: ChartThreeDSeriesAxis | null;
@@ -765,6 +1030,7 @@ interface ChartThreeDSeriesAxis {
765
1030
  tickLabelSkip?: number | null;
766
1031
  tickMarkSkip?: number | null;
767
1032
  majorTickMark: string;
1033
+ minorTickMark?: string | null;
768
1034
  fontColor?: string | null;
769
1035
  fontSizeHpt?: number | null;
770
1036
  fontBold?: boolean | null;
@@ -772,6 +1038,8 @@ interface ChartThreeDSeriesAxis {
772
1038
  fontFace?: string | null;
773
1039
  lineColor?: string | null;
774
1040
  lineWidthEmu?: number | null;
1041
+ lineDash?: string | null;
1042
+ linePaintAuthored?: boolean | null;
775
1043
  lineHidden: boolean;
776
1044
  titleFontSizeHpt?: number | null;
777
1045
  titleFontBold?: boolean | null;
@@ -788,7 +1056,12 @@ interface ChartTextRun {
788
1056
  bold?: boolean | null;
789
1057
  italic?: boolean | null;
790
1058
  color?: string | null;
1059
+ colorPaintAuthored?: boolean | null;
1060
+ colorHidden?: boolean | null;
791
1061
  fontFace?: string | null;
1062
+ language?: string | null;
1063
+ baseline?: number | null;
1064
+ paragraphAlign?: 'l' | 'ctr' | 'r' | 'just' | 'dist' | string | null;
792
1065
  }
793
1066
  interface ChartTextParagraph {
794
1067
  runs: ChartTextRun[];
@@ -891,6 +1164,7 @@ interface SecondaryValueAxis {
891
1164
  fontFace?: string | null;
892
1165
  lineColor?: string | null;
893
1166
  lineWidthEmu?: number | null;
1167
+ lineDash?: string | null;
894
1168
  lineHidden: boolean;
895
1169
  majorTickMark: string;
896
1170
  minorTickMark?: string | null;
@@ -907,6 +1181,8 @@ interface SecondaryValueAxis {
907
1181
  logBase?: number | null;
908
1182
  orientation?: 'minMax' | 'maxMin' | string | null;
909
1183
  tickLabelPos?: string | null;
1184
+ labelAlignment?: 'l' | 'ctr' | 'r' | null;
1185
+ labelOffsetPercent?: number | null;
910
1186
  tickLabelSkip?: number | null;
911
1187
  tickMarkSkip?: number | null;
912
1188
  crosses?: string | null;
@@ -954,8 +1230,16 @@ interface LegendManualLayout {
954
1230
  hMode?: string;
955
1231
  x: number;
956
1232
  y: number;
957
- w: number;
958
- h: number;
1233
+ w?: number;
1234
+ h?: number;
1235
+ }
1236
+ interface ChartLegendEntryOverride {
1237
+ idx: number;
1238
+ deleted?: boolean | null;
1239
+ fontFace?: string | null;
1240
+ fontColor?: string | null;
1241
+ fontSizeHpt?: number | null;
1242
+ fontBold?: boolean | null;
959
1243
  }
960
1244
  interface ChartRect {
961
1245
  x: number;
@@ -964,7 +1248,12 @@ interface ChartRect {
964
1248
  h: number;
965
1249
  }
966
1250
  //#endregion
967
- //#region dist/.types-work/mathjax-D9Itb210.d.ts
1251
+ //#region dist/.types-work/chart-ex-contract-Ba0xG5gE.d.ts
1252
+ interface ChartExRenderer {
1253
+ render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
1254
+ }
1255
+ //#endregion
1256
+ //#region dist/.types-work/mathjax-DwKoKmdb.d.ts
968
1257
  interface MathSvg {
969
1258
  svg: string;
970
1259
  widthEm: number;
@@ -976,17 +1265,17 @@ interface MathRenderer {
976
1265
  mathMLToSvg(mathml: string): Promise<MathSvg>;
977
1266
  }
978
1267
  //#endregion
979
- //#region dist/.types-work/three-d-contract-BhPkqlow.d.ts
1268
+ //#region dist/.types-work/three-d-contract-D5bEzjMw.d.ts
980
1269
  interface ChartThreeDRenderer {
981
- render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
1270
+ render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
982
1271
  }
983
1272
  //#endregion
984
- //#region dist/.types-work/region-map-contract-B6z5ZsH4.d.ts
1273
+ //#region dist/.types-work/region-map-contract-BFIR10oz.d.ts
985
1274
  interface ChartRegionMapRenderer {
986
- render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
1275
+ render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
987
1276
  }
988
1277
  //#endregion
989
- //#region dist/.types-work/hyperlink-EKY3amDQ.d.ts
1278
+ //#region dist/.types-work/hyperlink-CZoV-4B8.d.ts
990
1279
  type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
991
1280
  type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
992
1281
  declare class OoxmlError extends Error {
@@ -1071,6 +1360,7 @@ interface LoadOptions$1 {
1071
1360
  math?: MathRenderer;
1072
1361
  threeD?: ChartThreeDRenderer;
1073
1362
  regionMap?: ChartRegionMapRenderer;
1363
+ chartEx?: ChartExRenderer;
1074
1364
  }
1075
1365
  type OoxmlDecodedImageLimitMetric = 'image-pixels' | 'active-decoded-bytes';
1076
1366
  declare class OoxmlDecodedImageLimitError extends RangeError {
@@ -1091,7 +1381,7 @@ type HyperlinkTarget = {
1091
1381
  };
1092
1382
  declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
1093
1383
  //#endregion
1094
- //#region dist/.types-work/find-highlight-C-71IJpI.d.ts
1384
+ //#region dist/.types-work/find-highlight-DdGGQ_H7.d.ts
1095
1385
  interface TextSelectionContextOptions {
1096
1386
  readonly maxTextCharacters?: number;
1097
1387
  readonly maxRunLocators?: number;
@@ -1100,6 +1390,28 @@ interface ViewerContextMenuEvent<TContext> {
1100
1390
  readonly originalEvent: MouseEvent;
1101
1391
  getContext(): Promise<TContext | null>;
1102
1392
  }
1393
+ interface ViewerCommentsOptions {
1394
+ readonly includeResolved?: boolean;
1395
+ }
1396
+ type ViewerCommentConnectorRoute = 'bezier' | 'orthogonal';
1397
+ type ViewerCommentConnectorStroke = 'solid' | 'dashed';
1398
+ interface ViewerCommentConnectorOptions {
1399
+ readonly route?: ViewerCommentConnectorRoute;
1400
+ readonly stroke?: ViewerCommentConnectorStroke;
1401
+ readonly color?: string;
1402
+ readonly activeColor?: string;
1403
+ }
1404
+ interface ViewerCommentMessageContext {
1405
+ readonly id?: string;
1406
+ readonly author?: string;
1407
+ readonly date?: string;
1408
+ readonly text: string;
1409
+ readonly status?: 'active' | 'resolved' | 'closed';
1410
+ }
1411
+ interface ViewerCommentThreadContext {
1412
+ readonly root: ViewerCommentMessageContext;
1413
+ readonly replies: readonly ViewerCommentMessageContext[];
1414
+ }
1103
1415
  interface AutoResizeOptions {
1104
1416
  pauseWhenHidden?: boolean;
1105
1417
  }
@@ -1130,7 +1442,7 @@ interface FindHighlightColors {
1130
1442
  active?: string;
1131
1443
  }
1132
1444
  //#endregion
1133
- //#region dist/.types-work/pptx-ev766SKh.d.ts
1445
+ //#region dist/.types-work/pptx-B0JHj0n1.d.ts
1134
1446
  interface BlipBullet {
1135
1447
  type: 'blip';
1136
1448
  imagePath: string;
@@ -1181,14 +1493,46 @@ interface DimOptions {
1181
1493
  color: string;
1182
1494
  opacity: number;
1183
1495
  }
1496
+ type PptxCommentAnchor = Readonly<{
1497
+ type: 'slide';
1498
+ }> | Readonly<{
1499
+ type: 'drawingElement';
1500
+ elementId?: string;
1501
+ creationId?: string;
1502
+ }> | Readonly<{
1503
+ type: 'textRange';
1504
+ elementId?: string;
1505
+ start?: number;
1506
+ length?: number;
1507
+ }> | Readonly<{
1508
+ type: 'unknown';
1509
+ }>;
1184
1510
  interface PptxComment {
1511
+ authorId?: number;
1512
+ modernAuthorId?: string;
1513
+ id?: string;
1514
+ index?: number;
1185
1515
  author?: string;
1186
1516
  date?: string;
1517
+ x?: number;
1518
+ y?: number;
1519
+ anchors?: readonly Readonly<PptxCommentAnchor>[];
1520
+ status?: 'active' | 'resolved' | 'closed';
1521
+ text: string;
1522
+ replies?: readonly Readonly<PptxCommentReply>[];
1523
+ }
1524
+ interface PptxCommentReply {
1525
+ id?: string;
1526
+ authorId?: string;
1527
+ author?: string;
1528
+ date?: string;
1529
+ status?: 'active' | 'resolved' | 'closed';
1187
1530
  text: string;
1188
1531
  }
1189
1532
  type SlideElement = ShapeElement | PictureElement | TableElement | ChartElement | MediaElement;
1190
1533
  interface MediaElement {
1191
1534
  type: 'media';
1535
+ id?: string;
1192
1536
  x: number;
1193
1537
  y: number;
1194
1538
  width: number;
@@ -1281,6 +1625,7 @@ interface Sp3d {
1281
1625
  }
1282
1626
  interface TableElement {
1283
1627
  type: 'table';
1628
+ id?: string;
1284
1629
  x: number;
1285
1630
  y: number;
1286
1631
  width: number;
@@ -1313,6 +1658,7 @@ interface TableCell {
1313
1658
  }
1314
1659
  interface ChartElement {
1315
1660
  type: 'chart';
1661
+ id?: string;
1316
1662
  x: number;
1317
1663
  y: number;
1318
1664
  width: number;
@@ -1324,6 +1670,7 @@ interface ChartElement {
1324
1670
  }
1325
1671
  interface PictureElement {
1326
1672
  type: 'picture';
1673
+ id?: string;
1327
1674
  x: number;
1328
1675
  y: number;
1329
1676
  width: number;
@@ -1380,6 +1727,7 @@ type SlideRenderOptions = RenderOptions & {
1380
1727
  math?: MathRenderer;
1381
1728
  threeD?: ChartThreeDRenderer;
1382
1729
  regionMap?: ChartRegionMapRenderer;
1730
+ chartEx?: ChartExRenderer;
1383
1731
  dim?: DimOptions;
1384
1732
  };
1385
1733
  declare function renderSlide(canvas: HTMLCanvasElement | OffscreenCanvas, slide: Slide, slideWidth: number, slideHeight: number, opts?: SlideRenderOptions, onTextRun?: TextRunCallback): Promise<HTMLCanvasElement | OffscreenCanvas>;
@@ -1411,6 +1759,23 @@ interface PptxTextSelectionContext {
1411
1759
  readonly maxTextCharacters: number;
1412
1760
  readonly maxRunLocators: number;
1413
1761
  }
1762
+ interface PptxCommentSelectionContext {
1763
+ readonly format: 'pptx';
1764
+ readonly kind: 'comment';
1765
+ readonly slideIndex: number;
1766
+ readonly commentIndex: number;
1767
+ readonly occurrenceId: string;
1768
+ readonly commentId?: string;
1769
+ readonly point?: Readonly<{
1770
+ x: number;
1771
+ y: number;
1772
+ }>;
1773
+ readonly thread: ViewerCommentThreadContext;
1774
+ readonly truncated: boolean;
1775
+ readonly truncationReasons: readonly ('text')[];
1776
+ readonly textCharacters: number;
1777
+ readonly maxTextCharacters: number;
1778
+ }
1414
1779
  declare function readPptxTextSelectionContext(root: HTMLElement, selection: Selection | null, options?: TextSelectionContextOptions): PptxTextSelectionContext | null;
1415
1780
  type PptxSelectionContextOptions = TextSelectionContextOptions;
1416
1781
  interface PptxSlidePoint {
@@ -1452,7 +1817,14 @@ interface PptxElementContext {
1452
1817
  readonly textCharacters: number;
1453
1818
  readonly maxTextCharacters: number;
1454
1819
  }
1455
- type PptxSelectionContext = PptxTextSelectionContext | PptxElementContext;
1820
+ interface PptxElementBounds {
1821
+ readonly elementId: string;
1822
+ readonly elementIndex: number;
1823
+ readonly origin: SlideElementOrigin | 'unknown';
1824
+ readonly elementType: SlideElement['type'];
1825
+ readonly bounds: PptxElementContext['bounds'];
1826
+ }
1827
+ type PptxSelectionContext = PptxTextSelectionContext | PptxCommentSelectionContext | PptxElementContext;
1456
1828
  type LoadOptions = LoadOptions$1 & {
1457
1829
  mode?: 'main' | 'worker';
1458
1830
  };
@@ -1489,6 +1861,7 @@ declare class PptxPresentation {
1489
1861
  private _math;
1490
1862
  private _threeD;
1491
1863
  private _regionMap;
1864
+ private _chartEx;
1492
1865
  private constructor();
1493
1866
  private _assertResourceHealthy;
1494
1867
  private _rethrowWithResourceFailure;
@@ -1499,6 +1872,7 @@ declare class PptxPresentation {
1499
1872
  get slideHeight(): number;
1500
1873
  get mode(): 'main' | 'worker';
1501
1874
  getNotes(slideIndex: number): string | null;
1875
+ getComments(slideIndex: number): readonly Readonly<PptxComment>[];
1502
1876
  isHidden(slideIndex: number): boolean;
1503
1877
  private _partNames;
1504
1878
  private _partIndex;
@@ -1508,6 +1882,7 @@ declare class PptxPresentation {
1508
1882
  renderSlideToBitmap(slideIndex: number, opts?: RenderSlideToBitmapOptions): Promise<ImageBitmap>;
1509
1883
  collectSlideRuns(slideIndex: number, width?: number): Promise<PptxTextRunInfo[]>;
1510
1884
  getElementContextAt(slideIndex: number, point: PptxSlidePoint, options?: PptxElementContextOptions): Promise<PptxElementContext | null>;
1885
+ getElementBoundsByIds(slideIndex: number, elementIds: readonly string[]): Promise<readonly PptxElementBounds[]>;
1511
1886
  getMedia(mediaPath: string): Promise<Blob>;
1512
1887
  private _findMimeTypeForPath;
1513
1888
  getImage(imagePath: string, mimeType: string): Promise<Blob>;
@@ -1617,6 +1992,12 @@ declare class PptxViewer implements ZoomableViewer {
1617
1992
  private _resolveContextAt;
1618
1993
  destroy(): void;
1619
1994
  }
1995
+ interface PptxCommentsOptions extends ViewerCommentsOptions {
1996
+ readonly cards?: boolean;
1997
+ readonly side?: 'auto' | 'left' | 'right';
1998
+ readonly markers?: boolean;
1999
+ readonly connectors?: ViewerCommentConnectorOptions;
2000
+ }
1620
2001
  interface PptxScrollViewerOptions extends Pick<RenderSlideOptions, 'width' | 'dpr'>, LoadOptions {
1621
2002
  width?: number;
1622
2003
  gap?: number;
@@ -1626,6 +2007,7 @@ interface PptxScrollViewerOptions extends Pick<RenderSlideOptions, 'width' | 'dp
1626
2007
  paddingRight?: number;
1627
2008
  overscan?: number;
1628
2009
  enableTextSelection?: boolean;
2010
+ comments?: boolean | PptxCommentsOptions;
1629
2011
  enableElementSelection?: boolean;
1630
2012
  elementHitTolerance?: number;
1631
2013
  onSelectionContextChange?: (context: PptxSelectionContext | null) => void;
@@ -1660,7 +2042,7 @@ declare class PptxScrollViewer implements ZoomableViewer {
1660
2042
  private _pendingScale;
1661
2043
  private readonly _slots;
1662
2044
  private readonly _free;
1663
- private _heights;
2045
+ private _uniformSlideHeight;
1664
2046
  private _lastRange;
1665
2047
  private _lastTopIndex;
1666
2048
  private _scrollListener;
@@ -1668,7 +2050,16 @@ declare class PptxScrollViewer implements ZoomableViewer {
1668
2050
  private _selectionContextKey;
1669
2051
  private _elementClickListener;
1670
2052
  private _contextMenuListener;
2053
+ private _commentOutsidePointerListener;
1671
2054
  private _elementContext;
2055
+ private _activeCommentId;
2056
+ private _activeCommentSlide;
2057
+ private _commentNavigationGeneration;
2058
+ private _commentUi;
2059
+ private _commentGeometryScheduled;
2060
+ private _commentGeometryFrame;
2061
+ private readonly _pendingCommentGeometry;
2062
+ private _hasComments;
1672
2063
  private _elementHitGeneration;
1673
2064
  private readonly _elementHitTolerance;
1674
2065
  private _destroyed;
@@ -1691,6 +2082,14 @@ declare class PptxScrollViewer implements ZoomableViewer {
1691
2082
  private _slideWidthPx;
1692
2083
  private _slideHeightPx;
1693
2084
  private _fitWidthPx;
2085
+ private _commentMarginExtent;
2086
+ private _hasCommentMargin;
2087
+ private _commentZoom;
2088
+ private _commentsEnabled;
2089
+ private _commentsOptions;
2090
+ private _commentSide;
2091
+ private _syncCommentMarginGeometry;
2092
+ private _presentationHasComments;
1694
2093
  private _baseScale;
1695
2094
  relayout(): void;
1696
2095
  private _relayout;
@@ -1700,7 +2099,9 @@ declare class PptxScrollViewer implements ZoomableViewer {
1700
2099
  private _mediaOverscan;
1701
2100
  private _pad;
1702
2101
  private _padH;
2102
+ private _slideOffset;
1703
2103
  private _slideIndexAtOffset;
2104
+ private _rangeAt;
1704
2105
  private _range;
1705
2106
  private _mediaRange;
1706
2107
  private _rangeContains;
@@ -1734,6 +2135,11 @@ declare class PptxScrollViewer implements ZoomableViewer {
1734
2135
  scrollToSlide(index: number, opts?: {
1735
2136
  behavior?: 'auto' | 'smooth';
1736
2137
  }): void;
2138
+ private _scrollToSlideCommentTarget;
2139
+ private _resolveSlideCommentElementBounds;
2140
+ goToComment(slideIndex: number, commentIndex: number, opts?: {
2141
+ behavior?: 'auto' | 'smooth';
2142
+ }): Promise<boolean>;
1737
2143
  findText(query: string, opts?: FindMatchesOptions): Promise<FindMatch<PptxMatchLocation>[]>;
1738
2144
  findNext(): Promise<FindMatch<PptxMatchLocation> | null>;
1739
2145
  findPrev(): Promise<FindMatch<PptxMatchLocation> | null>;
@@ -1742,6 +2148,11 @@ declare class PptxScrollViewer implements ZoomableViewer {
1742
2148
  private _collectSlideRuns;
1743
2149
  private _redrawHighlights;
1744
2150
  private _refreshFindRuns;
2151
+ private _redrawSlotComments;
2152
+ private _redrawSlotCommentConnectors;
2153
+ private _commitSlotComments;
2154
+ private _ensureSlotCommentAnchors;
2155
+ private _scheduleCommentGeometry;
1745
2156
  private _redrawSlotHighlights;
1746
2157
  private _measureForFind;
1747
2158
  private _hyperlinkHandler;
@@ -1769,4 +2180,4 @@ interface PptxHighlightMatch {
1769
2180
  type PptxHighlightColors = FindHighlightColors;
1770
2181
  declare function buildPptxHighlightLayer(layer: HTMLDivElement, runs: PptxTextRunInfo[], matches: PptxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: PptxHighlightColors): void;
1771
2182
  //#endregion
1772
- export { type ArrowEnd, type AutoResizeOptions, type Bevel3d, type BlipBullet, type Bullet, type Camera3d, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartDataTable, type ChartDisplayUnits, type ChartDisplayUnitsLabel, type ChartElement, type ChartErrBars, type ChartExElementStyle, type ChartLabelBox, type ChartManualLayout, type ChartModel, type ChartOfPie, type ChartRect, type ChartRegionMapRenderer, 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 DimOptions, type Duotone, type EquationRun, type Fill, type FillRect, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type Glow, type GradientFill, type GradientStop, type HiddenSlideMode, type HyperlinkTarget, type ImageFill, type LegendManualLayout, type LightRig, type LineBreak, type LoadOptions, type MatchRunSlice, type MathAccent, type MathArray, type MathBar, type MathBorderBox, type MathBox, type MathDelimiter, type MathFraction, type MathFunc, type MathGroup, type MathGroupChr, type MathLimit, type MathNary, type MathNode, type MathPhant, type MathRadical, type MathRenderer, type MathRun, type MathSPre, type MathScript, type MathStyle, type MathSvg, type MediaElement, type NoFill, OoxmlDecodedImageLimitError, type OoxmlDecodedImageLimitMetric, OoxmlError, type OoxmlErrorCode, type OoxmlErrorStage, type OoxmlFormat, type OoxmlResourceLimit, OoxmlResourceLimitError, type OoxmlResourceLimitErrorDetails, type OoxmlResourceLimits, type OoxmlResourceMetric, type OoxmlResourceMetrics, type OoxmlResourceMetricsCheckpoint, type OoxmlResourceName, type OoxmlResourcePolicySnapshot, type OoxmlResourceUsageSnapshot, type OoxmlResourceViolation, type Paragraph, type PathCmd, type PatternFill, type PictureElement, type PptxComment, type PptxElementContext, type PptxElementContextOptions, type PptxHighlightColors, type PptxHighlightMatch, type PptxMatchLocation, PptxPresentation, PptxScrollViewer, type PptxScrollViewerOptions, type PptxSelectionContext, type PptxSelectionContextOptions, type PptxSelectionRunLocator, type PptxSlidePoint, type PptxTextRunInfo, type PptxTextSelectionContext, PptxViewer, type PptxViewerOptions, type PresentSlideOptions, type Presentation, type PresentationHandle, type Reflection, type RenderOptions, type RenderSlideOptions, type RenderSlideToBitmapOptions, type Rot3d, type Scene3d, type SecondaryValueAxis, type Shadow, type ShapeElement, type Slide, type SlideElement, type SlideElementOrigin, type SlideElementSource, type SlideRenderOptions, type SoftEdge, type SolidFill, type Sp3d, type SpaceLine, type Stroke, type TabStop, type TableCell, type TableElement, type TableRow, type TextBody, type TextOutline, type TextRect, type TextRun, type TextRunCallback, type TextRunData, type TextSelectionContextOptions, type TileInfo, type ViewerContextMenuEvent, type ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
2183
+ export { type ArrowEnd, type AutoResizeOptions, type Bevel3d, type BlipBullet, type Bullet, type Camera3d, type ChartAreaGroupDecorations, type ChartBarGroupDecorations, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartDataTable, type ChartDecorationLineStyle, type ChartDisplayUnits, type ChartDisplayUnitsLabel, type ChartElement, type ChartErrBars, type ChartExElementStyle, type ChartExRenderer, type ChartLabelBox, type ChartLegendEntryOverride, type ChartLineDashSegment, type ChartLineGroupDecorations, type ChartManualLayout, type ChartModel, type ChartOfPie, type ChartPlotGroup, type ChartPlotGroupAxisSlot, type ChartPlotGroupKind, type ChartRect, type ChartRegionMapRenderer, type ChartSeries, type ChartSeriesDataLabels, type ChartStockBarPaint, type ChartStockUpDownBarStyle, type ChartSurfaceBandFormat, type ChartTextBox, type ChartTextParagraph, type ChartTextRun, type ChartThreeD, type ChartThreeDPictureOptions, type ChartThreeDRenderer, type ChartThreeDSeriesAxis, type ChartThreeDSurface, type ChartTrendline, type ChartType, type ChartexBoxSeries, type ChartexBoxWhisker, type ChartexGeography, type ChartexHistogramBinning, type ChartexRegionMap, type ChartexRegionMapColors, type ChartexRegionMapRow, type ChartexSunburst, type ChartexSunburstRow, type ChartexTreemap, type ChartexValueColorStop, type DimOptions, type DrawingMLCustomDashSegment, type Duotone, type EquationRun, type Fill, type FillRect, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type Glow, type GradientFill, type GradientStop, type HiddenSlideMode, type HyperlinkTarget, type ImageFill, type LegendManualLayout, type LightRig, type LineBreak, type LoadOptions, type MatchRunSlice, type MathAccent, type MathArray, type MathBar, type MathBorderBox, type MathBox, type MathDelimiter, type MathFraction, type MathFunc, type MathGroup, type MathGroupChr, type MathLimit, type MathNary, type MathNode, type MathPhant, type MathRadical, type MathRenderer, type MathRun, type MathSPre, type MathScript, type MathStyle, type MathSvg, type MediaElement, type NoFill, OoxmlDecodedImageLimitError, type OoxmlDecodedImageLimitMetric, OoxmlError, type OoxmlErrorCode, type OoxmlErrorStage, type OoxmlFormat, type OoxmlResourceLimit, OoxmlResourceLimitError, type OoxmlResourceLimitErrorDetails, type OoxmlResourceLimits, type OoxmlResourceMetric, type OoxmlResourceMetrics, type OoxmlResourceMetricsCheckpoint, type OoxmlResourceName, type OoxmlResourcePolicySnapshot, type OoxmlResourceUsageSnapshot, type OoxmlResourceViolation, type Paragraph, type PathCmd, type PatternFill, type PictureElement, type PptxComment, type PptxCommentAnchor, type PptxCommentReply, type PptxCommentSelectionContext, type PptxCommentsOptions, type PptxElementBounds, type PptxElementContext, type PptxElementContextOptions, type PptxHighlightColors, type PptxHighlightMatch, type PptxMatchLocation, PptxPresentation, PptxScrollViewer, type PptxScrollViewerOptions, type PptxSelectionContext, type PptxSelectionContextOptions, type PptxSelectionRunLocator, type PptxSlidePoint, type PptxTextRunInfo, type PptxTextSelectionContext, PptxViewer, type PptxViewerOptions, type PresentSlideOptions, type Presentation, type PresentationHandle, type Reflection, type RenderOptions, type RenderSlideOptions, type RenderSlideToBitmapOptions, type Rot3d, type Scene3d, type SecondaryValueAxis, type Shadow, type ShapeElement, type Slide, type SlideElement, type SlideElementOrigin, type SlideElementSource, type SlideRenderOptions, type SoftEdge, type SolidFill, type Sp3d, type SpaceLine, type SrcRect, type Stroke, type TabStop, type TableCell, type TableElement, type TableRow, type TextBody, type TextOutline, type TextRect, type TextRun, type TextRunCallback, type TextRunData, type TextSelectionContextOptions, type TileInfo, type ViewerCommentConnectorOptions, type ViewerCommentConnectorRoute, type ViewerCommentConnectorStroke, type ViewerCommentMessageContext, type ViewerCommentThreadContext, type ViewerContextMenuEvent, type ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };