@silurus/ooxml 0.77.0 → 0.78.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 (33) hide show
  1. package/README.md +2 -2
  2. package/dist/{canvas-viewer-mechanics-DTkBvITv.js → canvas-viewer-mechanics-ChxLdOJg.js} +1 -1
  3. package/dist/{document-pull-client-iWr8-S7P.js → document-pull-client-xsdVDuVD.js} +1799 -1769
  4. package/dist/{docx-B1gYS6eU.js → docx-CZC3j4s4.js} +14 -14
  5. package/dist/docx.mjs +3 -3
  6. package/dist/docx_parser_bg.wasm +0 -0
  7. package/dist/index.mjs +3 -3
  8. package/dist/{line-distribute-C1r2zvji.js → line-distribute-HuZyTARz.js} +133 -72
  9. package/dist/{line-metrics-BdCACYlq.js → line-metrics-z9AdgPaZ.js} +2722 -1842
  10. package/dist/node.mjs +7 -7
  11. package/dist/{pptx-CQjtK_o7.js → pptx-c3UgGKIs.js} +38 -38
  12. package/dist/pptx.mjs +4 -4
  13. package/dist/pptx_parser_bg.wasm +0 -0
  14. package/dist/render-worker-host-BzxTAscX.js +27 -0
  15. package/dist/render-worker-host-CBjWHxMb.js +27 -0
  16. package/dist/render-worker-host-Ivhx3KII.js +27 -0
  17. package/dist/{render-Ca80nlG5.js → render-yhFUeiYl.js} +1 -1
  18. package/dist/{resource-measurement-E_S_iau4.js → resource-measurement-5g27Av6n.js} +1 -1
  19. package/dist/{session-KvKxQAeL.js → session-BOuXp10X.js} +2 -2
  20. package/dist/{slide-pull-client-BXb67StB.js → slide-pull-client-DKckZrLx.js} +1172 -879
  21. package/dist/types/docx.d.ts +141 -8
  22. package/dist/types/index.d.ts +178 -14
  23. package/dist/types/node.d.ts +171 -8
  24. package/dist/types/pptx.d.ts +102 -8
  25. package/dist/types/xlsx.d.ts +161 -8
  26. package/dist/{worksheet-pull-client-YzjJMOns.js → worksheet-pull-client-CMDRPZ5E.js} +2 -2
  27. package/dist/{xlsx-RLCmd1Bm.js → xlsx-BAScjxlC.js} +1621 -1298
  28. package/dist/xlsx.mjs +4 -4
  29. package/dist/xlsx_parser_bg.wasm +0 -0
  30. package/package.json +1 -1
  31. package/dist/render-worker-host-BozYMmxO.js +0 -27
  32. package/dist/render-worker-host-C96AiK8e.js +0 -27
  33. package/dist/render-worker-host-EHG5j8FK.js +0 -27
@@ -1,4 +1,4 @@
1
- //#region dist/.types-work/hyperlink-BqgLAFOG.d.ts
1
+ //#region dist/.types-work/hyperlink-R5D7g--F.d.ts
2
2
  type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
3
3
  interface MathRun {
4
4
  kind: 'run';
@@ -123,6 +123,12 @@ type PathCmd$2 = {
123
123
  y2: number;
124
124
  x: number;
125
125
  y: number;
126
+ } | {
127
+ cmd: 'quadBezTo';
128
+ x1: number;
129
+ y1: number;
130
+ x: number;
131
+ y: number;
126
132
  } | {
127
133
  cmd: 'arcTo';
128
134
  wr: number;
@@ -149,6 +155,12 @@ interface GradientFill {
149
155
  stops: GradientStop$1[];
150
156
  angle: number;
151
157
  gradType: string;
158
+ scaled?: boolean;
159
+ path?: 'shape' | 'circle' | 'rect' | string;
160
+ fillToRect?: FillRect;
161
+ tileRect?: FillRect;
162
+ flip?: 'none' | 'x' | 'y' | 'xy' | string;
163
+ rotWithShape?: boolean;
152
164
  }
153
165
  interface PatternFill {
154
166
  fillType: 'pattern';
@@ -185,6 +197,12 @@ interface Shadow {
185
197
  blur: number;
186
198
  dist: number;
187
199
  dir: number;
200
+ sx?: number;
201
+ sy?: number;
202
+ kx?: number;
203
+ ky?: number;
204
+ algn?: 'tl' | 't' | 'tr' | 'l' | 'ctr' | 'r' | 'bl' | 'b' | 'br';
205
+ rotWithShape?: boolean;
188
206
  }
189
207
  interface Glow {
190
208
  color: string;
@@ -219,7 +237,14 @@ interface Stroke {
219
237
  fillType: 'none';
220
238
  }>;
221
239
  dashStyle?: string;
240
+ customDash?: ReadonlyArray<{
241
+ dash: number;
242
+ space: number;
243
+ }>;
222
244
  lineCap?: 'butt' | 'round' | 'square';
245
+ lineJoin?: 'round' | 'bevel' | 'miter';
246
+ miterLimit?: number;
247
+ alignment?: 'ctr' | 'in';
223
248
  headEnd?: ArrowEnd;
224
249
  tailEnd?: ArrowEnd;
225
250
  cmpd?: string;
@@ -265,6 +290,9 @@ type Bullet = {
265
290
  numType: string;
266
291
  startAt: number | null;
267
292
  color: string | null;
293
+ sizePct?: number | null;
294
+ sizePts?: number;
295
+ fontFamily?: string | null;
268
296
  };
269
297
  interface TabStop$1 {
270
298
  pos: number;
@@ -319,6 +347,7 @@ interface TextRunData {
319
347
  hyperlink?: string;
320
348
  hyperlinkAction?: string;
321
349
  shadow?: Shadow;
350
+ reflection?: Reflection;
322
351
  outline?: TextOutline;
323
352
  highlight?: string;
324
353
  }
@@ -332,6 +361,9 @@ interface LineBreak {
332
361
  interface ChartSeries {
333
362
  name: string;
334
363
  color: string | null;
364
+ fillPattern?: PatternFill | null;
365
+ lineColor?: string | null;
366
+ lineWidthEmu?: number | null;
335
367
  values: (number | null)[];
336
368
  dataPointColors?: (string | null)[] | null;
337
369
  dataLabelColors?: (string | null)[] | null;
@@ -341,6 +373,8 @@ interface ChartSeries {
341
373
  categories?: string[] | null;
342
374
  showMarker?: boolean | null;
343
375
  valFormatCode?: string | null;
376
+ catFormatCode?: string | null;
377
+ catFormatCodes?: (string | null)[] | null;
344
378
  markerSymbol?: string | null;
345
379
  markerSize?: number | null;
346
380
  markerFill?: string | null;
@@ -402,6 +436,7 @@ interface ChartSeriesDataLabels {
402
436
  position?: string;
403
437
  fontColor?: string;
404
438
  formatCode?: string;
439
+ separator?: string;
405
440
  fontBold?: boolean;
406
441
  fontSizeHpt?: number;
407
442
  labelBox?: ChartLabelBox;
@@ -419,12 +454,27 @@ interface ChartErrBars {
419
454
  lineWidthEmu?: number;
420
455
  dash?: string;
421
456
  }
422
- type ChartType = 'line' | 'stackedLine' | 'stackedLinePct' | 'clusteredBar' | 'clusteredBarH' | 'stackedBar' | 'stackedBarH' | 'stackedBarPct' | 'stackedBarHPct' | 'area' | 'stackedArea' | 'stackedAreaPct' | 'pie' | 'doughnut' | 'scatter' | 'bubble' | 'radar' | 'waterfall' | 'stock' | 'boxWhisker' | 'sunburst' | string;
457
+ type ChartType = 'line' | 'stackedLine' | 'stackedLinePct' | 'clusteredBar' | 'clusteredBarH' | 'stackedBar' | 'stackedBarH' | 'stackedBarPct' | 'stackedBarHPct' | 'area' | 'stackedArea' | 'stackedAreaPct' | 'pie' | 'doughnut' | 'scatter' | 'bubble' | 'radar' | 'waterfall' | 'stock' | 'boxWhisker' | 'sunburst' | 'treemap' | string;
458
+ interface ChartExElementStyle {
459
+ fillPaints?: Array<SolidFill | GradientFill | PatternFill | null> | null;
460
+ fillColors?: Array<string | null> | null;
461
+ fillHidden?: boolean | null;
462
+ lineColors?: Array<string | null> | null;
463
+ lineWidthEmu?: number | null;
464
+ lineHidden?: boolean | null;
465
+ lineDash?: string | null;
466
+ lineCap?: string | null;
467
+ lineJoin?: string | null;
468
+ fillColorIndex?: number | null;
469
+ lineColorIndex?: number | null;
470
+ }
423
471
  interface ChartModel {
424
472
  chartType: ChartType;
425
473
  title: string | null;
474
+ titlePresent?: boolean;
426
475
  categories: string[];
427
476
  series: ChartSeries[];
477
+ chartTextBoxes?: ChartTextBox[] | null;
428
478
  varyColors?: boolean | null;
429
479
  showDataLabels: boolean;
430
480
  valMin: number | null;
@@ -452,6 +502,7 @@ interface ChartModel {
452
502
  catAxisFontColor?: string | null;
453
503
  valAxisFontColor?: string | null;
454
504
  dataLabelFontSizeHpt: number | null;
505
+ dataLabelFontBold?: boolean | null;
455
506
  subtotalIndices: number[];
456
507
  legendManualLayout?: LegendManualLayout | null;
457
508
  valAxisFormatCode?: string | null;
@@ -496,8 +547,12 @@ interface ChartModel {
496
547
  titleManualLayout?: ChartManualLayout | null;
497
548
  plotAreaManualLayout?: ChartManualLayout | null;
498
549
  scatterStyle?: string | null;
550
+ bubbleScale?: number | null;
551
+ bubbleSizeRepresents?: 'area' | 'w' | null;
552
+ showNegativeBubbles?: boolean | null;
499
553
  radarStyle?: string | null;
500
554
  secondaryValAxis?: SecondaryValueAxis | null;
555
+ secondaryCatAxis?: SecondaryValueAxis | null;
501
556
  date1904?: boolean;
502
557
  holeSize?: number | null;
503
558
  firstSliceAngle?: number | null;
@@ -515,6 +570,8 @@ interface ChartModel {
515
570
  valAxisOrientation?: 'minMax' | 'maxMin' | string | null;
516
571
  catAxisOrientation?: 'minMax' | 'maxMin' | string | null;
517
572
  catAxisTickLabelPos?: string | null;
573
+ catAxisTickLabelSkip?: number | null;
574
+ catAxisTickMarkSkip?: number | null;
518
575
  valAxisTickLabelPos?: string | null;
519
576
  catAxisLabelRotation?: number | null;
520
577
  stockHiLowLines?: boolean | null;
@@ -522,11 +579,39 @@ interface ChartModel {
522
579
  stockUpDownBars?: boolean | null;
523
580
  chartexBox?: ChartexBoxWhisker | null;
524
581
  chartexSunburst?: ChartexSunburst | null;
582
+ chartexTreemap?: ChartexTreemap | null;
525
583
  chartexAccents?: string[] | null;
584
+ chartexColorPalette?: Array<string | null> | null;
585
+ chartexColorStyleMethod?: string | null;
586
+ chartexDataPointStyle?: ChartExElementStyle | null;
587
+ chartexDataPointLineStyle?: ChartExElementStyle | null;
588
+ chartexDataPointMarkerStyle?: ChartExElementStyle | null;
589
+ }
590
+ interface ChartTextRun {
591
+ text: string;
592
+ fontSizeHpt?: number | null;
593
+ bold?: boolean | null;
594
+ color?: string | null;
595
+ fontFace?: string | null;
596
+ }
597
+ interface ChartTextParagraph {
598
+ runs: ChartTextRun[];
599
+ align?: 'l' | 'ctr' | 'r' | 'just' | 'dist' | string | null;
600
+ }
601
+ interface ChartTextBox {
602
+ x: number;
603
+ y: number;
604
+ w: number;
605
+ h: number;
606
+ paragraphs: ChartTextParagraph[];
607
+ verticalAnchor?: 't' | 'ctr' | 'b' | 'just' | 'dist' | string | null;
608
+ wrap?: 'none' | 'square' | string | null;
526
609
  }
527
610
  interface ChartexBoxSeries {
528
611
  name: string;
529
612
  color?: string | null;
613
+ lineColor?: string | null;
614
+ lineWidthEmu?: number | null;
530
615
  valuesByCategory: number[][];
531
616
  meanMarker: boolean;
532
617
  meanLine: boolean;
@@ -545,6 +630,10 @@ interface ChartexSunburstRow {
545
630
  interface ChartexSunburst {
546
631
  rows: ChartexSunburstRow[];
547
632
  }
633
+ interface ChartexTreemap {
634
+ rows: ChartexSunburstRow[];
635
+ parentLabelLayout?: string | null;
636
+ }
548
637
  interface SecondaryValueAxis {
549
638
  min: number | null;
550
639
  max: number | null;
@@ -563,8 +652,10 @@ interface SecondaryValueAxis {
563
652
  titleFontColor?: string | null;
564
653
  }
565
654
  interface ChartManualLayout {
566
- xMode: string;
567
- yMode: string;
655
+ xMode?: string;
656
+ yMode?: string;
657
+ wMode?: string;
658
+ hMode?: string;
568
659
  layoutTarget?: string;
569
660
  x: number;
570
661
  y: number;
@@ -572,8 +663,10 @@ interface ChartManualLayout {
572
663
  h?: number;
573
664
  }
574
665
  interface LegendManualLayout {
575
- xMode: string;
576
- yMode: string;
666
+ xMode?: string;
667
+ yMode?: string;
668
+ wMode?: string;
669
+ hMode?: string;
577
670
  x: number;
578
671
  y: number;
579
672
  w: number;
@@ -796,6 +889,7 @@ interface Sp3d {
796
889
  extrusionH?: number;
797
890
  contourW?: number;
798
891
  contourClr?: string;
892
+ extrusionClr?: string;
799
893
  prstMaterial: string;
800
894
  bevelT?: Bevel3d;
801
895
  bevelB?: Bevel3d;
@@ -1242,6 +1336,12 @@ type PathCmd$1 = {
1242
1336
  y2: number;
1243
1337
  x: number;
1244
1338
  y: number;
1339
+ } | {
1340
+ cmd: 'quadBezTo';
1341
+ x1: number;
1342
+ y1: number;
1343
+ x: number;
1344
+ y: number;
1245
1345
  } | {
1246
1346
  cmd: 'arcTo';
1247
1347
  wr: number;
@@ -1283,11 +1383,20 @@ interface ShapeRun {
1283
1383
  subpaths: PathCmd$1[][];
1284
1384
  presetGeometry?: string | null;
1285
1385
  adjValues?: Array<number | null>;
1286
- fill: ShapeFill | null;
1386
+ fill: ShapeFill$1 | null;
1287
1387
  stroke: string | null;
1288
1388
  strokeWidth?: number;
1389
+ strokeFill?: ShapeStrokeFill | null;
1289
1390
  strokeDash?: string | null;
1391
+ strokeCustomDash?: Array<{
1392
+ dash: number;
1393
+ space: number;
1394
+ }>;
1290
1395
  strokeCap?: 'butt' | 'round' | 'square' | null;
1396
+ strokeJoin?: 'round' | 'bevel' | 'miter' | null;
1397
+ strokeMiterLimit?: number | null;
1398
+ strokeAlignment?: 'ctr' | 'in' | null;
1399
+ strokeCompound?: string | null;
1291
1400
  headEnd?: LineEnd | null;
1292
1401
  tailEnd?: LineEnd | null;
1293
1402
  rotation?: number;
@@ -1360,7 +1469,7 @@ interface ShapeText$1 {
1360
1469
  imageWidthPt?: number;
1361
1470
  imageHeightPt?: number;
1362
1471
  }
1363
- type ShapeFill = {
1472
+ type ShapeFill$1 = {
1364
1473
  fillType: 'solid';
1365
1474
  color: string;
1366
1475
  } | {
@@ -1368,6 +1477,17 @@ type ShapeFill = {
1368
1477
  stops: GradientStop[];
1369
1478
  angle: number;
1370
1479
  gradType: string;
1480
+ scaled?: boolean;
1481
+ path?: string;
1482
+ fillToRect?: FillRect;
1483
+ tileRect?: FillRect;
1484
+ flip?: string;
1485
+ rotWithShape?: boolean;
1486
+ } | {
1487
+ fillType: 'pattern';
1488
+ fg: string;
1489
+ bg: string;
1490
+ preset: string;
1371
1491
  } | {
1372
1492
  fillType: 'image';
1373
1493
  imagePath: string;
@@ -1384,6 +1504,23 @@ type ShapeFill = {
1384
1504
  alpha?: number;
1385
1505
  duotone?: Duotone$1;
1386
1506
  };
1507
+ type ShapeStrokeFill = {
1508
+ fillType: 'gradient';
1509
+ stops: GradientStop[];
1510
+ angle: number;
1511
+ gradType: string;
1512
+ scaled?: boolean;
1513
+ path?: string;
1514
+ fillToRect?: FillRect;
1515
+ tileRect?: FillRect;
1516
+ flip?: string;
1517
+ rotWithShape?: boolean;
1518
+ } | {
1519
+ fillType: 'pattern';
1520
+ fg: string;
1521
+ bg: string;
1522
+ preset: string;
1523
+ };
1387
1524
  interface GradientStop {
1388
1525
  position: number;
1389
1526
  color: string;
@@ -1630,6 +1767,11 @@ interface DocxDocumentSession extends AsyncIterable<DocxRenderedPage> {
1630
1767
  }
1631
1768
  declare function openDocxDocument(buffer: ArrayBuffer | Uint8Array, options: OpenDocxDocumentOptions): Promise<DocxDocumentSession>;
1632
1769
  declare function materializeDocxDocument(buffer: ArrayBuffer | Uint8Array, options?: OoxmlNodeSessionOptions): Promise<DocxDocumentModel>;
1770
+ type ShapeFill = Exclude<Fill, {
1771
+ fillType: 'image';
1772
+ } | {
1773
+ fillType: 'none';
1774
+ }>;
1633
1775
  interface Workbook {
1634
1776
  sheets: SheetMeta[];
1635
1777
  date1904?: boolean;
@@ -1890,6 +2032,7 @@ interface DataValidation {
1890
2032
  errorMessage?: string;
1891
2033
  }
1892
2034
  interface ChartAnchor {
2035
+ zOrder?: number;
1893
2036
  fromCol: number;
1894
2037
  fromColOff: number;
1895
2038
  fromRow: number;
@@ -1915,6 +2058,7 @@ interface ShapeAnchor {
1915
2058
  shapes: ShapeInfo[];
1916
2059
  }
1917
2060
  interface ShapeInfo {
2061
+ zOrder?: number;
1918
2062
  x: number;
1919
2063
  y: number;
1920
2064
  w: number;
@@ -1923,8 +2067,26 @@ interface ShapeInfo {
1923
2067
  flipH?: boolean;
1924
2068
  flipV?: boolean;
1925
2069
  fillColor?: string;
2070
+ fill?: ShapeFill;
1926
2071
  strokeColor?: string;
1927
2072
  strokeWidth: number;
2073
+ strokeFill?: Exclude<Fill, {
2074
+ fillType: 'image';
2075
+ } | {
2076
+ fillType: 'none';
2077
+ }>;
2078
+ strokeDashStyle?: string;
2079
+ strokeCustomDash?: Array<{
2080
+ dash: number;
2081
+ space: number;
2082
+ }>;
2083
+ strokeLineCap?: 'butt' | 'round' | 'square';
2084
+ strokeLineJoin?: 'round' | 'bevel' | 'miter';
2085
+ strokeMiterLimit?: number;
2086
+ strokeAlignment?: 'ctr' | 'in';
2087
+ strokeCmpd?: string;
2088
+ strokeHeadEnd?: ArrowEnd;
2089
+ strokeTailEnd?: ArrowEnd;
1928
2090
  geom: ShapeGeom;
1929
2091
  text?: ShapeText;
1930
2092
  }
@@ -2030,6 +2192,7 @@ type PathCmd = {
2030
2192
  op: 'close';
2031
2193
  };
2032
2194
  interface ImageAnchor {
2195
+ zOrder?: number;
2033
2196
  fromCol: number;
2034
2197
  fromColOff: number;
2035
2198
  fromRow: number;
@@ -10,7 +10,7 @@ interface MathRenderer {
10
10
  mathMLToSvg(mathml: string): Promise<MathSvg>;
11
11
  }
12
12
  //#endregion
13
- //#region dist/.types-work/hyperlink-BqgLAFOG.d.ts
13
+ //#region dist/.types-work/hyperlink-R5D7g--F.d.ts
14
14
  type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
15
15
  interface MathRun {
16
16
  kind: 'run';
@@ -135,6 +135,12 @@ type PathCmd = {
135
135
  y2: number;
136
136
  x: number;
137
137
  y: number;
138
+ } | {
139
+ cmd: 'quadBezTo';
140
+ x1: number;
141
+ y1: number;
142
+ x: number;
143
+ y: number;
138
144
  } | {
139
145
  cmd: 'arcTo';
140
146
  wr: number;
@@ -161,6 +167,12 @@ interface GradientFill {
161
167
  stops: GradientStop[];
162
168
  angle: number;
163
169
  gradType: string;
170
+ scaled?: boolean;
171
+ path?: 'shape' | 'circle' | 'rect' | string;
172
+ fillToRect?: FillRect;
173
+ tileRect?: FillRect;
174
+ flip?: 'none' | 'x' | 'y' | 'xy' | string;
175
+ rotWithShape?: boolean;
164
176
  }
165
177
  interface PatternFill {
166
178
  fillType: 'pattern';
@@ -197,6 +209,12 @@ interface Shadow {
197
209
  blur: number;
198
210
  dist: number;
199
211
  dir: number;
212
+ sx?: number;
213
+ sy?: number;
214
+ kx?: number;
215
+ ky?: number;
216
+ algn?: 'tl' | 't' | 'tr' | 'l' | 'ctr' | 'r' | 'bl' | 'b' | 'br';
217
+ rotWithShape?: boolean;
200
218
  }
201
219
  interface Glow {
202
220
  color: string;
@@ -231,7 +249,14 @@ interface Stroke {
231
249
  fillType: 'none';
232
250
  }>;
233
251
  dashStyle?: string;
252
+ customDash?: ReadonlyArray<{
253
+ dash: number;
254
+ space: number;
255
+ }>;
234
256
  lineCap?: 'butt' | 'round' | 'square';
257
+ lineJoin?: 'round' | 'bevel' | 'miter';
258
+ miterLimit?: number;
259
+ alignment?: 'ctr' | 'in';
235
260
  headEnd?: ArrowEnd;
236
261
  tailEnd?: ArrowEnd;
237
262
  cmpd?: string;
@@ -277,6 +302,9 @@ type Bullet$1 = {
277
302
  numType: string;
278
303
  startAt: number | null;
279
304
  color: string | null;
305
+ sizePct?: number | null;
306
+ sizePts?: number;
307
+ fontFamily?: string | null;
280
308
  };
281
309
  interface TabStop {
282
310
  pos: number;
@@ -331,6 +359,7 @@ interface TextRunData {
331
359
  hyperlink?: string;
332
360
  hyperlinkAction?: string;
333
361
  shadow?: Shadow;
362
+ reflection?: Reflection;
334
363
  outline?: TextOutline;
335
364
  highlight?: string;
336
365
  }
@@ -355,6 +384,9 @@ interface RenderOptions {
355
384
  interface ChartSeries {
356
385
  name: string;
357
386
  color: string | null;
387
+ fillPattern?: PatternFill | null;
388
+ lineColor?: string | null;
389
+ lineWidthEmu?: number | null;
358
390
  values: (number | null)[];
359
391
  dataPointColors?: (string | null)[] | null;
360
392
  dataLabelColors?: (string | null)[] | null;
@@ -364,6 +396,8 @@ interface ChartSeries {
364
396
  categories?: string[] | null;
365
397
  showMarker?: boolean | null;
366
398
  valFormatCode?: string | null;
399
+ catFormatCode?: string | null;
400
+ catFormatCodes?: (string | null)[] | null;
367
401
  markerSymbol?: string | null;
368
402
  markerSize?: number | null;
369
403
  markerFill?: string | null;
@@ -425,6 +459,7 @@ interface ChartSeriesDataLabels {
425
459
  position?: string;
426
460
  fontColor?: string;
427
461
  formatCode?: string;
462
+ separator?: string;
428
463
  fontBold?: boolean;
429
464
  fontSizeHpt?: number;
430
465
  labelBox?: ChartLabelBox;
@@ -442,12 +477,27 @@ interface ChartErrBars {
442
477
  lineWidthEmu?: number;
443
478
  dash?: string;
444
479
  }
445
- type ChartType = 'line' | 'stackedLine' | 'stackedLinePct' | 'clusteredBar' | 'clusteredBarH' | 'stackedBar' | 'stackedBarH' | 'stackedBarPct' | 'stackedBarHPct' | 'area' | 'stackedArea' | 'stackedAreaPct' | 'pie' | 'doughnut' | 'scatter' | 'bubble' | 'radar' | 'waterfall' | 'stock' | 'boxWhisker' | 'sunburst' | string;
480
+ type ChartType = 'line' | 'stackedLine' | 'stackedLinePct' | 'clusteredBar' | 'clusteredBarH' | 'stackedBar' | 'stackedBarH' | 'stackedBarPct' | 'stackedBarHPct' | 'area' | 'stackedArea' | 'stackedAreaPct' | 'pie' | 'doughnut' | 'scatter' | 'bubble' | 'radar' | 'waterfall' | 'stock' | 'boxWhisker' | 'sunburst' | 'treemap' | string;
481
+ interface ChartExElementStyle {
482
+ fillPaints?: Array<SolidFill | GradientFill | PatternFill | null> | null;
483
+ fillColors?: Array<string | null> | null;
484
+ fillHidden?: boolean | null;
485
+ lineColors?: Array<string | null> | null;
486
+ lineWidthEmu?: number | null;
487
+ lineHidden?: boolean | null;
488
+ lineDash?: string | null;
489
+ lineCap?: string | null;
490
+ lineJoin?: string | null;
491
+ fillColorIndex?: number | null;
492
+ lineColorIndex?: number | null;
493
+ }
446
494
  interface ChartModel {
447
495
  chartType: ChartType;
448
496
  title: string | null;
497
+ titlePresent?: boolean;
449
498
  categories: string[];
450
499
  series: ChartSeries[];
500
+ chartTextBoxes?: ChartTextBox[] | null;
451
501
  varyColors?: boolean | null;
452
502
  showDataLabels: boolean;
453
503
  valMin: number | null;
@@ -475,6 +525,7 @@ interface ChartModel {
475
525
  catAxisFontColor?: string | null;
476
526
  valAxisFontColor?: string | null;
477
527
  dataLabelFontSizeHpt: number | null;
528
+ dataLabelFontBold?: boolean | null;
478
529
  subtotalIndices: number[];
479
530
  legendManualLayout?: LegendManualLayout | null;
480
531
  valAxisFormatCode?: string | null;
@@ -519,8 +570,12 @@ interface ChartModel {
519
570
  titleManualLayout?: ChartManualLayout | null;
520
571
  plotAreaManualLayout?: ChartManualLayout | null;
521
572
  scatterStyle?: string | null;
573
+ bubbleScale?: number | null;
574
+ bubbleSizeRepresents?: 'area' | 'w' | null;
575
+ showNegativeBubbles?: boolean | null;
522
576
  radarStyle?: string | null;
523
577
  secondaryValAxis?: SecondaryValueAxis | null;
578
+ secondaryCatAxis?: SecondaryValueAxis | null;
524
579
  date1904?: boolean;
525
580
  holeSize?: number | null;
526
581
  firstSliceAngle?: number | null;
@@ -538,6 +593,8 @@ interface ChartModel {
538
593
  valAxisOrientation?: 'minMax' | 'maxMin' | string | null;
539
594
  catAxisOrientation?: 'minMax' | 'maxMin' | string | null;
540
595
  catAxisTickLabelPos?: string | null;
596
+ catAxisTickLabelSkip?: number | null;
597
+ catAxisTickMarkSkip?: number | null;
541
598
  valAxisTickLabelPos?: string | null;
542
599
  catAxisLabelRotation?: number | null;
543
600
  stockHiLowLines?: boolean | null;
@@ -545,11 +602,39 @@ interface ChartModel {
545
602
  stockUpDownBars?: boolean | null;
546
603
  chartexBox?: ChartexBoxWhisker | null;
547
604
  chartexSunburst?: ChartexSunburst | null;
605
+ chartexTreemap?: ChartexTreemap | null;
548
606
  chartexAccents?: string[] | null;
607
+ chartexColorPalette?: Array<string | null> | null;
608
+ chartexColorStyleMethod?: string | null;
609
+ chartexDataPointStyle?: ChartExElementStyle | null;
610
+ chartexDataPointLineStyle?: ChartExElementStyle | null;
611
+ chartexDataPointMarkerStyle?: ChartExElementStyle | null;
612
+ }
613
+ interface ChartTextRun {
614
+ text: string;
615
+ fontSizeHpt?: number | null;
616
+ bold?: boolean | null;
617
+ color?: string | null;
618
+ fontFace?: string | null;
619
+ }
620
+ interface ChartTextParagraph {
621
+ runs: ChartTextRun[];
622
+ align?: 'l' | 'ctr' | 'r' | 'just' | 'dist' | string | null;
623
+ }
624
+ interface ChartTextBox {
625
+ x: number;
626
+ y: number;
627
+ w: number;
628
+ h: number;
629
+ paragraphs: ChartTextParagraph[];
630
+ verticalAnchor?: 't' | 'ctr' | 'b' | 'just' | 'dist' | string | null;
631
+ wrap?: 'none' | 'square' | string | null;
549
632
  }
550
633
  interface ChartexBoxSeries {
551
634
  name: string;
552
635
  color?: string | null;
636
+ lineColor?: string | null;
637
+ lineWidthEmu?: number | null;
553
638
  valuesByCategory: number[][];
554
639
  meanMarker: boolean;
555
640
  meanLine: boolean;
@@ -568,6 +653,10 @@ interface ChartexSunburstRow {
568
653
  interface ChartexSunburst {
569
654
  rows: ChartexSunburstRow[];
570
655
  }
656
+ interface ChartexTreemap {
657
+ rows: ChartexSunburstRow[];
658
+ parentLabelLayout?: string | null;
659
+ }
571
660
  interface SecondaryValueAxis {
572
661
  min: number | null;
573
662
  max: number | null;
@@ -586,8 +675,10 @@ interface SecondaryValueAxis {
586
675
  titleFontColor?: string | null;
587
676
  }
588
677
  interface ChartManualLayout {
589
- xMode: string;
590
- yMode: string;
678
+ xMode?: string;
679
+ yMode?: string;
680
+ wMode?: string;
681
+ hMode?: string;
591
682
  layoutTarget?: string;
592
683
  x: number;
593
684
  y: number;
@@ -595,8 +686,10 @@ interface ChartManualLayout {
595
686
  h?: number;
596
687
  }
597
688
  interface LegendManualLayout {
598
- xMode: string;
599
- yMode: string;
689
+ xMode?: string;
690
+ yMode?: string;
691
+ wMode?: string;
692
+ hMode?: string;
600
693
  x: number;
601
694
  y: number;
602
695
  w: number;
@@ -749,7 +842,7 @@ interface FindHighlightColors {
749
842
  active?: string;
750
843
  }
751
844
  //#endregion
752
- //#region dist/.types-work/pptx-DcrJjm1-.d.ts
845
+ //#region dist/.types-work/pptx-Bb8Ij3pP.d.ts
753
846
  interface BlipBullet {
754
847
  type: 'blip';
755
848
  imagePath: string;
@@ -893,6 +986,7 @@ interface Sp3d {
893
986
  extrusionH?: number;
894
987
  contourW?: number;
895
988
  contourClr?: string;
989
+ extrusionClr?: string;
896
990
  prstMaterial: string;
897
991
  bevelT?: Bevel3d;
898
992
  bevelB?: Bevel3d;
@@ -1383,4 +1477,4 @@ interface PptxHighlightMatch {
1383
1477
  type PptxHighlightColors = FindHighlightColors;
1384
1478
  declare function buildPptxHighlightLayer(layer: HTMLDivElement, runs: PptxTextRunInfo[], matches: PptxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: PptxHighlightColors): void;
1385
1479
  //#endregion
1386
- export { type ArrowEnd, type AutoResizeOptions, type Bevel3d, type BlipBullet, type Bullet, type Camera3d, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartElement, type ChartErrBars, type ChartLabelBox, type ChartManualLayout, type ChartModel, type ChartRect, type ChartSeries, type ChartSeriesDataLabels, type ChartTrendline, type ChartType, type ChartexBoxSeries, type ChartexBoxWhisker, type ChartexSunburst, type ChartexSunburstRow, 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 };
1480
+ export { type ArrowEnd, type AutoResizeOptions, type Bevel3d, type BlipBullet, type Bullet, type Camera3d, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartElement, type ChartErrBars, type ChartExElementStyle, type ChartLabelBox, type ChartManualLayout, type ChartModel, type ChartRect, type ChartSeries, type ChartSeriesDataLabels, type ChartTextBox, type ChartTextParagraph, type ChartTextRun, type ChartTrendline, type ChartType, type ChartexBoxSeries, type ChartexBoxWhisker, type ChartexSunburst, type ChartexSunburstRow, type ChartexTreemap, 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 };