@silurus/ooxml 0.78.0 → 0.79.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.
- package/README.md +39 -1
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/dist/{canvas-viewer-mechanics-ChxLdOJg.js → canvas-viewer-mechanics-D9tsuHnG.js} +1 -1
- package/dist/chart-number-format-tjYUR9eS.js +435 -0
- package/dist/dash-Cyc-sevN.js +786 -0
- package/dist/{document-pull-client-xsdVDuVD.js → document-pull-client-YiU8M4LO.js} +3283 -3156
- package/dist/{docx-CZC3j4s4.js → docx-a1UpmRf8.js} +65 -56
- package/dist/docx.mjs +4 -4
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-HuZyTARz.js → line-distribute-pDqovJpT.js} +1 -1
- package/dist/{line-metrics-z9AdgPaZ.js → line-metrics-DjKxiIUD.js} +4097 -3184
- package/dist/math.mjs +1 -1
- package/dist/node.mjs +322 -322
- package/dist/{pptx-c3UgGKIs.js → pptx-t5ABdzfd.js} +192 -183
- package/dist/pptx.mjs +5 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/region-map.mjs +12708 -0
- package/dist/{render-yhFUeiYl.js → render-BjIEuFIG.js} +1 -1
- package/dist/render-worker-host-BB320snY.js +27 -0
- package/dist/render-worker-host-BjEPZBwf.js +27 -0
- package/dist/render-worker-host-hZ0o4OD7.js +27 -0
- package/dist/{resource-measurement-5g27Av6n.js → resource-measurement-D8EiTm_E.js} +1 -1
- package/dist/{session-BOuXp10X.js → session-Bhe_eY-s.js} +10 -10
- package/dist/{slide-pull-client-DKckZrLx.js → slide-pull-client-BQ8gJPTq.js} +626 -563
- package/dist/three-d.mjs +2158 -0
- package/dist/types/docx.d.ts +189 -16
- package/dist/types/index.d.ts +205 -20
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +166 -1
- package/dist/types/pptx.d.ts +191 -16
- package/dist/types/region-map.d.ts +520 -0
- package/dist/types/three-d.d.ts +520 -0
- package/dist/types/xlsx.d.ts +195 -16
- package/dist/{worksheet-pull-client-CMDRPZ5E.js → worksheet-pull-client-T0EzdEEQ.js} +13 -13
- package/dist/{xlsx-BAScjxlC.js → xlsx-CsDDMJIK.js} +833 -770
- package/dist/xlsx.mjs +5 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +13 -1
- package/dist/render-worker-host-BzxTAscX.js +0 -27
- package/dist/render-worker-host-CBjWHxMb.js +0 -27
- package/dist/render-worker-host-Ivhx3KII.js +0 -27
- /package/dist/{highlight-rect-CAkCWJ37.js → highlight-rect-cCvVU-MW.js} +0 -0
- /package/dist/{mathjax-CMjda8Ip.js → mathjax-Dqo857oC.js} +0 -0
- /package/dist/{transfer-DCu4c2BL.js → transfer-3QEJrsJa.js} +0 -0
- /package/dist/{visible-index-CgyJLAS_.js → visible-index-CKvgpUrf.js} +0 -0
package/dist/types/docx.d.ts
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/
|
|
2
|
-
interface MathSvg {
|
|
3
|
-
svg: string;
|
|
4
|
-
widthEm: number;
|
|
5
|
-
ascentEm: number;
|
|
6
|
-
descentEm: number;
|
|
7
|
-
}
|
|
8
|
-
interface MathRenderer {
|
|
9
|
-
loadMathJax(): Promise<void>;
|
|
10
|
-
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region dist/.types-work/hyperlink-R5D7g--F.d.ts
|
|
1
|
+
//#region dist/.types-work/chart-Cxft04Nl.d.ts
|
|
14
2
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
15
3
|
interface MathRun {
|
|
16
4
|
kind: 'run';
|
|
@@ -161,10 +149,13 @@ interface TileInfo {
|
|
|
161
149
|
}
|
|
162
150
|
interface ChartSeries {
|
|
163
151
|
name: string;
|
|
152
|
+
chartexFormatIdx?: number | null;
|
|
164
153
|
color: string | null;
|
|
165
154
|
fillPattern?: PatternFill | null;
|
|
155
|
+
chartexStyle?: ChartExElementStyle | null;
|
|
166
156
|
lineColor?: string | null;
|
|
167
157
|
lineWidthEmu?: number | null;
|
|
158
|
+
threeDShape?: 'box' | 'cylinder' | 'cone' | 'coneToMax' | 'pyramid' | 'pyramidToMax' | string | null;
|
|
168
159
|
values: (number | null)[];
|
|
169
160
|
dataPointColors?: (string | null)[] | null;
|
|
170
161
|
dataLabelColors?: (string | null)[] | null;
|
|
@@ -180,6 +171,7 @@ interface ChartSeries {
|
|
|
180
171
|
markerSize?: number | null;
|
|
181
172
|
markerFill?: string | null;
|
|
182
173
|
markerLine?: string | null;
|
|
174
|
+
markerLineWidthEmu?: number | null;
|
|
183
175
|
dataPointOverrides?: ChartDataPointOverride[] | null;
|
|
184
176
|
dataLabelOverrides?: ChartDataLabelOverride[] | null;
|
|
185
177
|
seriesDataLabels?: ChartSeriesDataLabels | null;
|
|
@@ -198,25 +190,44 @@ interface ChartTrendline {
|
|
|
198
190
|
intercept?: number | null;
|
|
199
191
|
dispRSqr?: boolean | null;
|
|
200
192
|
dispEq?: boolean | null;
|
|
193
|
+
labelManualLayout?: ChartManualLayout | null;
|
|
194
|
+
labelText?: string | null;
|
|
195
|
+
labelFontSizeHpt?: number | null;
|
|
196
|
+
labelFontBold?: boolean | null;
|
|
197
|
+
labelFontColor?: string | null;
|
|
198
|
+
labelFontFace?: string | null;
|
|
199
|
+
labelTextAlign?: string | null;
|
|
201
200
|
lineColor?: string | null;
|
|
202
201
|
lineWidthEmu?: number | null;
|
|
202
|
+
lineDash?: string | null;
|
|
203
|
+
lineHidden?: boolean | null;
|
|
203
204
|
}
|
|
204
205
|
interface ChartDataPointOverride {
|
|
205
206
|
idx: number;
|
|
206
207
|
color?: string;
|
|
208
|
+
fillHidden?: boolean;
|
|
209
|
+
lineColor?: string;
|
|
210
|
+
lineWidthEmu?: number;
|
|
211
|
+
lineDash?: string;
|
|
212
|
+
lineHidden?: boolean;
|
|
207
213
|
markerSymbol?: string;
|
|
208
214
|
markerSize?: number;
|
|
209
215
|
markerFill?: string;
|
|
210
216
|
markerLine?: string;
|
|
217
|
+
markerLineWidthEmu?: number;
|
|
211
218
|
explosion?: number;
|
|
212
219
|
}
|
|
213
220
|
interface ChartDataLabelOverride {
|
|
214
221
|
idx: number;
|
|
215
222
|
text: string;
|
|
223
|
+
richRuns?: ChartTextRun[];
|
|
216
224
|
position?: string;
|
|
217
225
|
fontColor?: string;
|
|
218
226
|
fontSizeHpt?: number;
|
|
219
227
|
fontBold?: boolean;
|
|
228
|
+
formatCode?: string;
|
|
229
|
+
separator?: string;
|
|
230
|
+
manualLayout?: ChartManualLayout;
|
|
220
231
|
labelBox?: ChartLabelBox;
|
|
221
232
|
showVal?: boolean;
|
|
222
233
|
showCatName?: boolean;
|
|
@@ -260,9 +271,11 @@ interface ChartExElementStyle {
|
|
|
260
271
|
fillPaints?: Array<SolidFill | GradientFill | PatternFill | null> | null;
|
|
261
272
|
fillColors?: Array<string | null> | null;
|
|
262
273
|
fillHidden?: boolean | null;
|
|
274
|
+
fillNoStyle?: boolean | null;
|
|
263
275
|
lineColors?: Array<string | null> | null;
|
|
264
276
|
lineWidthEmu?: number | null;
|
|
265
277
|
lineHidden?: boolean | null;
|
|
278
|
+
lineNoStyle?: boolean | null;
|
|
266
279
|
lineDash?: string | null;
|
|
267
280
|
lineCap?: string | null;
|
|
268
281
|
lineJoin?: string | null;
|
|
@@ -314,13 +327,23 @@ interface ChartModel {
|
|
|
314
327
|
dataLabelFormatCode?: string | null;
|
|
315
328
|
titleFontBold?: boolean | null;
|
|
316
329
|
catAxisFontBold?: boolean | null;
|
|
330
|
+
catAxisFontItalic?: boolean | null;
|
|
317
331
|
valAxisFontBold?: boolean | null;
|
|
332
|
+
valAxisFontItalic?: boolean | null;
|
|
318
333
|
catAxisTitleFontSizeHpt?: number | null;
|
|
319
334
|
catAxisTitleFontBold?: boolean | null;
|
|
335
|
+
catAxisTitleFontItalic?: boolean | null;
|
|
320
336
|
catAxisTitleFontColor?: string | null;
|
|
337
|
+
catAxisTitleRotation?: number | null;
|
|
338
|
+
catAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
|
|
339
|
+
catAxisTitleManualLayout?: ChartManualLayout | null;
|
|
321
340
|
valAxisTitleFontSizeHpt?: number | null;
|
|
322
341
|
valAxisTitleFontBold?: boolean | null;
|
|
342
|
+
valAxisTitleFontItalic?: boolean | null;
|
|
323
343
|
valAxisTitleFontColor?: string | null;
|
|
344
|
+
valAxisTitleRotation?: number | null;
|
|
345
|
+
valAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
|
|
346
|
+
valAxisTitleManualLayout?: ChartManualLayout | null;
|
|
324
347
|
catAxisFontFace?: string | null;
|
|
325
348
|
valAxisFontFace?: string | null;
|
|
326
349
|
catAxisTitleFontFace?: string | null;
|
|
@@ -362,12 +385,24 @@ interface ChartModel {
|
|
|
362
385
|
catAxisMajorGridlines?: boolean | null;
|
|
363
386
|
valAxisGridlineColor?: string | null;
|
|
364
387
|
valAxisGridlineWidthEmu?: number | null;
|
|
388
|
+
valAxisGridlineDash?: string | null;
|
|
365
389
|
catAxisGridlineColor?: string | null;
|
|
366
390
|
catAxisGridlineWidthEmu?: number | null;
|
|
391
|
+
catAxisGridlineDash?: string | null;
|
|
367
392
|
valAxisMinorGridlines?: boolean | null;
|
|
393
|
+
valAxisMinorGridlineColor?: string | null;
|
|
394
|
+
valAxisMinorGridlineWidthEmu?: number | null;
|
|
395
|
+
valAxisMinorGridlineDash?: string | null;
|
|
396
|
+
catAxisMinorGridlines?: boolean | null;
|
|
397
|
+
catAxisMinorGridlineColor?: string | null;
|
|
398
|
+
catAxisMinorGridlineWidthEmu?: number | null;
|
|
399
|
+
catAxisMinorGridlineDash?: string | null;
|
|
368
400
|
valAxisMajorUnit?: number | null;
|
|
369
401
|
valAxisMinorUnit?: number | null;
|
|
402
|
+
catAxisMajorUnit?: number | null;
|
|
403
|
+
catAxisMinorUnit?: number | null;
|
|
370
404
|
valAxisLogBase?: number | null;
|
|
405
|
+
catAxisLogBase?: number | null;
|
|
371
406
|
valAxisOrientation?: 'minMax' | 'maxMin' | string | null;
|
|
372
407
|
catAxisOrientation?: 'minMax' | 'maxMin' | string | null;
|
|
373
408
|
catAxisTickLabelPos?: string | null;
|
|
@@ -378,15 +413,55 @@ interface ChartModel {
|
|
|
378
413
|
stockHiLowLines?: boolean | null;
|
|
379
414
|
stockHiLowLineColor?: string | null;
|
|
380
415
|
stockUpDownBars?: boolean | null;
|
|
416
|
+
stockUpDownBarStyle?: ChartStockUpDownBarStyle | null;
|
|
417
|
+
ofPie?: ChartOfPie | null;
|
|
418
|
+
threeD?: ChartThreeD | null;
|
|
381
419
|
chartexBox?: ChartexBoxWhisker | null;
|
|
382
420
|
chartexSunburst?: ChartexSunburst | null;
|
|
383
421
|
chartexTreemap?: ChartexTreemap | null;
|
|
422
|
+
chartexRegionMap?: ChartexRegionMap | null;
|
|
423
|
+
chartexHistogramBinning?: ChartexHistogramBinning | null;
|
|
384
424
|
chartexAccents?: string[] | null;
|
|
385
425
|
chartexColorPalette?: Array<string | null> | null;
|
|
386
426
|
chartexColorStyleMethod?: string | null;
|
|
387
427
|
chartexDataPointStyle?: ChartExElementStyle | null;
|
|
388
428
|
chartexDataPointLineStyle?: ChartExElementStyle | null;
|
|
429
|
+
chartexSeriesLineStyle?: ChartExElementStyle | null;
|
|
389
430
|
chartexDataPointMarkerStyle?: ChartExElementStyle | null;
|
|
431
|
+
chartexMarkerSizePt?: number | null;
|
|
432
|
+
chartexMarkerSymbol?: string | null;
|
|
433
|
+
chartexConnectorLines?: boolean | null;
|
|
434
|
+
}
|
|
435
|
+
interface ChartStockBarPaint {
|
|
436
|
+
fillColor?: string | null;
|
|
437
|
+
fillHidden?: boolean | null;
|
|
438
|
+
lineColor?: string | null;
|
|
439
|
+
lineWidthEmu?: number | null;
|
|
440
|
+
lineHidden?: boolean | null;
|
|
441
|
+
}
|
|
442
|
+
interface ChartStockUpDownBarStyle {
|
|
443
|
+
gapWidthPercent: number;
|
|
444
|
+
up: ChartStockBarPaint;
|
|
445
|
+
down: ChartStockBarPaint;
|
|
446
|
+
}
|
|
447
|
+
interface ChartOfPie {
|
|
448
|
+
type: 'pie' | 'bar';
|
|
449
|
+
splitType: 'auto' | 'cust' | 'percent' | 'pos' | 'val';
|
|
450
|
+
splitPos?: number | null;
|
|
451
|
+
customSplitIndices?: number[] | null;
|
|
452
|
+
secondPieSizePercent: number;
|
|
453
|
+
gapWidthPercent: number;
|
|
454
|
+
seriesLines: boolean;
|
|
455
|
+
}
|
|
456
|
+
interface ChartThreeD {
|
|
457
|
+
rotationX?: number | null;
|
|
458
|
+
rotationY?: number | null;
|
|
459
|
+
heightPercent?: number | null;
|
|
460
|
+
depthPercent?: number | null;
|
|
461
|
+
perspective?: number | null;
|
|
462
|
+
rightAngleAxes?: boolean | null;
|
|
463
|
+
gapDepthPercent?: number | null;
|
|
464
|
+
shape?: string | null;
|
|
390
465
|
}
|
|
391
466
|
interface ChartTextRun {
|
|
392
467
|
text: string;
|
|
@@ -407,12 +482,18 @@ interface ChartTextBox {
|
|
|
407
482
|
paragraphs: ChartTextParagraph[];
|
|
408
483
|
verticalAnchor?: 't' | 'ctr' | 'b' | 'just' | 'dist' | string | null;
|
|
409
484
|
wrap?: 'none' | 'square' | string | null;
|
|
485
|
+
lIns?: number;
|
|
486
|
+
tIns?: number;
|
|
487
|
+
rIns?: number;
|
|
488
|
+
bIns?: number;
|
|
410
489
|
}
|
|
411
490
|
interface ChartexBoxSeries {
|
|
412
491
|
name: string;
|
|
492
|
+
chartexFormatIdx?: number | null;
|
|
413
493
|
color?: string | null;
|
|
414
494
|
lineColor?: string | null;
|
|
415
495
|
lineWidthEmu?: number | null;
|
|
496
|
+
chartexStyle?: ChartExElementStyle | null;
|
|
416
497
|
valuesByCategory: number[][];
|
|
417
498
|
meanMarker: boolean;
|
|
418
499
|
meanLine: boolean;
|
|
@@ -421,6 +502,7 @@ interface ChartexBoxSeries {
|
|
|
421
502
|
quartileMethod: string;
|
|
422
503
|
}
|
|
423
504
|
interface ChartexBoxWhisker {
|
|
505
|
+
oneBoxPerSeries?: boolean;
|
|
424
506
|
categories: string[];
|
|
425
507
|
series: ChartexBoxSeries[];
|
|
426
508
|
}
|
|
@@ -435,6 +517,46 @@ interface ChartexTreemap {
|
|
|
435
517
|
rows: ChartexSunburstRow[];
|
|
436
518
|
parentLabelLayout?: string | null;
|
|
437
519
|
}
|
|
520
|
+
interface ChartexRegionMapRow {
|
|
521
|
+
label: string;
|
|
522
|
+
entityId?: string | null;
|
|
523
|
+
value?: number | null;
|
|
524
|
+
}
|
|
525
|
+
interface ChartexGeography {
|
|
526
|
+
projectionType?: 'mercator' | 'miller' | 'robinson' | 'albers' | string | null;
|
|
527
|
+
viewedRegionType?: string | null;
|
|
528
|
+
cultureLanguage?: string | null;
|
|
529
|
+
cultureRegion?: string | null;
|
|
530
|
+
attribution?: string | null;
|
|
531
|
+
cacheProvider?: string | null;
|
|
532
|
+
cachePresent: boolean;
|
|
533
|
+
}
|
|
534
|
+
interface ChartexValueColorStop {
|
|
535
|
+
kind: 'extremeValue' | 'number' | 'percent' | string;
|
|
536
|
+
value?: number | null;
|
|
537
|
+
}
|
|
538
|
+
interface ChartexRegionMapColors {
|
|
539
|
+
stopCount?: 2 | 3 | null;
|
|
540
|
+
minColor?: string | null;
|
|
541
|
+
midColor?: string | null;
|
|
542
|
+
maxColor?: string | null;
|
|
543
|
+
minPosition?: ChartexValueColorStop | null;
|
|
544
|
+
midPosition?: ChartexValueColorStop | null;
|
|
545
|
+
maxPosition?: ChartexValueColorStop | null;
|
|
546
|
+
}
|
|
547
|
+
interface ChartexRegionMap {
|
|
548
|
+
rows: ChartexRegionMapRow[];
|
|
549
|
+
regionLabelLayout?: 'none' | 'bestFitOnly' | 'showAll' | null;
|
|
550
|
+
geography?: ChartexGeography | null;
|
|
551
|
+
colors?: ChartexRegionMapColors | null;
|
|
552
|
+
}
|
|
553
|
+
interface ChartexHistogramBinning {
|
|
554
|
+
binSize?: number | null;
|
|
555
|
+
binCount?: number | null;
|
|
556
|
+
intervalClosed?: 'l' | 'r' | null;
|
|
557
|
+
underflow?: number | null;
|
|
558
|
+
overflow?: number | null;
|
|
559
|
+
}
|
|
438
560
|
interface SecondaryValueAxis {
|
|
439
561
|
min: number | null;
|
|
440
562
|
max: number | null;
|
|
@@ -443,14 +565,37 @@ interface SecondaryValueAxis {
|
|
|
443
565
|
formatCode?: string | null;
|
|
444
566
|
fontColor?: string | null;
|
|
445
567
|
fontSizeHpt?: number | null;
|
|
568
|
+
fontItalic?: boolean | null;
|
|
569
|
+
fontBold?: boolean | null;
|
|
570
|
+
fontFace?: string | null;
|
|
446
571
|
lineColor?: string | null;
|
|
447
572
|
lineWidthEmu?: number | null;
|
|
448
573
|
lineHidden: boolean;
|
|
449
574
|
majorTickMark: string;
|
|
575
|
+
minorTickMark?: string | null;
|
|
576
|
+
minorGridlines?: boolean;
|
|
577
|
+
minorGridlineColor?: string | null;
|
|
578
|
+
minorGridlineWidthEmu?: number | null;
|
|
579
|
+
minorGridlineDash?: string | null;
|
|
580
|
+
majorGridlines?: boolean;
|
|
581
|
+
majorGridlineColor?: string | null;
|
|
582
|
+
majorGridlineWidthEmu?: number | null;
|
|
583
|
+
majorGridlineDash?: string | null;
|
|
450
584
|
majorUnit?: number | null;
|
|
585
|
+
minorUnit?: number | null;
|
|
586
|
+
logBase?: number | null;
|
|
587
|
+
orientation?: 'minMax' | 'maxMin' | string | null;
|
|
588
|
+
tickLabelPos?: string | null;
|
|
589
|
+
crosses?: string | null;
|
|
590
|
+
crossesAt?: number | null;
|
|
451
591
|
titleFontSizeHpt?: number | null;
|
|
452
592
|
titleFontBold?: boolean | null;
|
|
593
|
+
titleFontItalic?: boolean | null;
|
|
453
594
|
titleFontColor?: string | null;
|
|
595
|
+
titleFontFace?: string | null;
|
|
596
|
+
titleRotation?: number | null;
|
|
597
|
+
titleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
|
|
598
|
+
titleManualLayout?: ChartManualLayout | null;
|
|
454
599
|
}
|
|
455
600
|
interface ChartManualLayout {
|
|
456
601
|
xMode?: string;
|
|
@@ -479,6 +624,30 @@ interface ChartRect {
|
|
|
479
624
|
w: number;
|
|
480
625
|
h: number;
|
|
481
626
|
}
|
|
627
|
+
//#endregion
|
|
628
|
+
//#region dist/.types-work/mathjax-rjjokY7u.d.ts
|
|
629
|
+
interface MathSvg {
|
|
630
|
+
svg: string;
|
|
631
|
+
widthEm: number;
|
|
632
|
+
ascentEm: number;
|
|
633
|
+
descentEm: number;
|
|
634
|
+
}
|
|
635
|
+
interface MathRenderer {
|
|
636
|
+
loadMathJax(): Promise<void>;
|
|
637
|
+
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
638
|
+
}
|
|
639
|
+
//#endregion
|
|
640
|
+
//#region dist/.types-work/three-d-contract-DdC3L2kZ.d.ts
|
|
641
|
+
interface ChartThreeDRenderer {
|
|
642
|
+
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
643
|
+
}
|
|
644
|
+
//#endregion
|
|
645
|
+
//#region dist/.types-work/region-map-contract-CLpE99AF.d.ts
|
|
646
|
+
interface ChartRegionMapRenderer {
|
|
647
|
+
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
648
|
+
}
|
|
649
|
+
//#endregion
|
|
650
|
+
//#region dist/.types-work/hyperlink-yiXkZo1W.d.ts
|
|
482
651
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
483
652
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
484
653
|
declare class OoxmlError extends Error {
|
|
@@ -561,6 +730,8 @@ interface LoadOptions$1 {
|
|
|
561
730
|
onResourceMetrics?: (metrics: OoxmlResourceMetrics) => void;
|
|
562
731
|
workerTimeoutMs?: number;
|
|
563
732
|
math?: MathRenderer;
|
|
733
|
+
threeD?: ChartThreeDRenderer;
|
|
734
|
+
regionMap?: ChartRegionMapRenderer;
|
|
564
735
|
}
|
|
565
736
|
type OoxmlDecodedImageLimitMetric = 'image-pixels' | 'active-decoded-bytes';
|
|
566
737
|
declare class OoxmlDecodedImageLimitError extends RangeError {
|
|
@@ -581,7 +752,7 @@ type HyperlinkTarget = {
|
|
|
581
752
|
};
|
|
582
753
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
583
754
|
//#endregion
|
|
584
|
-
//#region dist/.types-work/find-highlight-
|
|
755
|
+
//#region dist/.types-work/find-highlight-lh8Qagl7.d.ts
|
|
585
756
|
interface TextSelectionContextOptions {
|
|
586
757
|
readonly maxTextCharacters?: number;
|
|
587
758
|
readonly maxRunLocators?: number;
|
|
@@ -620,7 +791,7 @@ interface FindHighlightColors {
|
|
|
620
791
|
active?: string;
|
|
621
792
|
}
|
|
622
793
|
//#endregion
|
|
623
|
-
//#region dist/.types-work/docx-
|
|
794
|
+
//#region dist/.types-work/docx-ahdaVHdp.d.ts
|
|
624
795
|
interface DocxDocumentModel {
|
|
625
796
|
section: SectionProps;
|
|
626
797
|
body: BodyElement[];
|
|
@@ -1411,6 +1582,8 @@ declare class DocxDocument {
|
|
|
1411
1582
|
private _meta;
|
|
1412
1583
|
private _bookmarkPages;
|
|
1413
1584
|
private _mode;
|
|
1585
|
+
private _threeD;
|
|
1586
|
+
private _regionMap;
|
|
1414
1587
|
private _worker;
|
|
1415
1588
|
private _bridge;
|
|
1416
1589
|
private readonly _rawParts;
|
|
@@ -1677,4 +1850,4 @@ interface DocxHighlightMatch {
|
|
|
1677
1850
|
type DocxHighlightColors = FindHighlightColors;
|
|
1678
1851
|
declare function buildDocxHighlightLayer(layer: HTMLDivElement, runs: DocxTextRunInfo[], matches: DocxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: DocxHighlightColors): void;
|
|
1679
1852
|
//#endregion
|
|
1680
|
-
export { type AnchorHostMetrics, type AutoResizeOptions, type BodyElement, type BorderSpec, type CellBorders, type CellElement, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartErrBars, type ChartExElementStyle, type ChartLabelBox, type ChartManualLayout, type ChartModel, type ChartRect, type ChartRun, 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 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 };
|
|
1853
|
+
export { type AnchorHostMetrics, type AutoResizeOptions, type BodyElement, type BorderSpec, type CellBorders, type CellElement, type ChartDataLabelOverride, type ChartDataPointOverride, 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 ChartTextBox, type ChartTextParagraph, type ChartTextRun, type ChartThreeD, type ChartThreeDRenderer, 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 };
|