@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/xlsx.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';
|
|
@@ -186,10 +174,13 @@ type SpaceLine = {
|
|
|
186
174
|
};
|
|
187
175
|
interface ChartSeries {
|
|
188
176
|
name: string;
|
|
177
|
+
chartexFormatIdx?: number | null;
|
|
189
178
|
color: string | null;
|
|
190
179
|
fillPattern?: PatternFill | null;
|
|
180
|
+
chartexStyle?: ChartExElementStyle | null;
|
|
191
181
|
lineColor?: string | null;
|
|
192
182
|
lineWidthEmu?: number | null;
|
|
183
|
+
threeDShape?: 'box' | 'cylinder' | 'cone' | 'coneToMax' | 'pyramid' | 'pyramidToMax' | string | null;
|
|
193
184
|
values: (number | null)[];
|
|
194
185
|
dataPointColors?: (string | null)[] | null;
|
|
195
186
|
dataLabelColors?: (string | null)[] | null;
|
|
@@ -205,6 +196,7 @@ interface ChartSeries {
|
|
|
205
196
|
markerSize?: number | null;
|
|
206
197
|
markerFill?: string | null;
|
|
207
198
|
markerLine?: string | null;
|
|
199
|
+
markerLineWidthEmu?: number | null;
|
|
208
200
|
dataPointOverrides?: ChartDataPointOverride[] | null;
|
|
209
201
|
dataLabelOverrides?: ChartDataLabelOverride[] | null;
|
|
210
202
|
seriesDataLabels?: ChartSeriesDataLabels | null;
|
|
@@ -223,25 +215,44 @@ interface ChartTrendline {
|
|
|
223
215
|
intercept?: number | null;
|
|
224
216
|
dispRSqr?: boolean | null;
|
|
225
217
|
dispEq?: boolean | null;
|
|
218
|
+
labelManualLayout?: ChartManualLayout | null;
|
|
219
|
+
labelText?: string | null;
|
|
220
|
+
labelFontSizeHpt?: number | null;
|
|
221
|
+
labelFontBold?: boolean | null;
|
|
222
|
+
labelFontColor?: string | null;
|
|
223
|
+
labelFontFace?: string | null;
|
|
224
|
+
labelTextAlign?: string | null;
|
|
226
225
|
lineColor?: string | null;
|
|
227
226
|
lineWidthEmu?: number | null;
|
|
227
|
+
lineDash?: string | null;
|
|
228
|
+
lineHidden?: boolean | null;
|
|
228
229
|
}
|
|
229
230
|
interface ChartDataPointOverride {
|
|
230
231
|
idx: number;
|
|
231
232
|
color?: string;
|
|
233
|
+
fillHidden?: boolean;
|
|
234
|
+
lineColor?: string;
|
|
235
|
+
lineWidthEmu?: number;
|
|
236
|
+
lineDash?: string;
|
|
237
|
+
lineHidden?: boolean;
|
|
232
238
|
markerSymbol?: string;
|
|
233
239
|
markerSize?: number;
|
|
234
240
|
markerFill?: string;
|
|
235
241
|
markerLine?: string;
|
|
242
|
+
markerLineWidthEmu?: number;
|
|
236
243
|
explosion?: number;
|
|
237
244
|
}
|
|
238
245
|
interface ChartDataLabelOverride {
|
|
239
246
|
idx: number;
|
|
240
247
|
text: string;
|
|
248
|
+
richRuns?: ChartTextRun[];
|
|
241
249
|
position?: string;
|
|
242
250
|
fontColor?: string;
|
|
243
251
|
fontSizeHpt?: number;
|
|
244
252
|
fontBold?: boolean;
|
|
253
|
+
formatCode?: string;
|
|
254
|
+
separator?: string;
|
|
255
|
+
manualLayout?: ChartManualLayout;
|
|
245
256
|
labelBox?: ChartLabelBox;
|
|
246
257
|
showVal?: boolean;
|
|
247
258
|
showCatName?: boolean;
|
|
@@ -285,9 +296,11 @@ interface ChartExElementStyle {
|
|
|
285
296
|
fillPaints?: Array<SolidFill | GradientFill | PatternFill | null> | null;
|
|
286
297
|
fillColors?: Array<string | null> | null;
|
|
287
298
|
fillHidden?: boolean | null;
|
|
299
|
+
fillNoStyle?: boolean | null;
|
|
288
300
|
lineColors?: Array<string | null> | null;
|
|
289
301
|
lineWidthEmu?: number | null;
|
|
290
302
|
lineHidden?: boolean | null;
|
|
303
|
+
lineNoStyle?: boolean | null;
|
|
291
304
|
lineDash?: string | null;
|
|
292
305
|
lineCap?: string | null;
|
|
293
306
|
lineJoin?: string | null;
|
|
@@ -339,13 +352,23 @@ interface ChartModel {
|
|
|
339
352
|
dataLabelFormatCode?: string | null;
|
|
340
353
|
titleFontBold?: boolean | null;
|
|
341
354
|
catAxisFontBold?: boolean | null;
|
|
355
|
+
catAxisFontItalic?: boolean | null;
|
|
342
356
|
valAxisFontBold?: boolean | null;
|
|
357
|
+
valAxisFontItalic?: boolean | null;
|
|
343
358
|
catAxisTitleFontSizeHpt?: number | null;
|
|
344
359
|
catAxisTitleFontBold?: boolean | null;
|
|
360
|
+
catAxisTitleFontItalic?: boolean | null;
|
|
345
361
|
catAxisTitleFontColor?: string | null;
|
|
362
|
+
catAxisTitleRotation?: number | null;
|
|
363
|
+
catAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
|
|
364
|
+
catAxisTitleManualLayout?: ChartManualLayout | null;
|
|
346
365
|
valAxisTitleFontSizeHpt?: number | null;
|
|
347
366
|
valAxisTitleFontBold?: boolean | null;
|
|
367
|
+
valAxisTitleFontItalic?: boolean | null;
|
|
348
368
|
valAxisTitleFontColor?: string | null;
|
|
369
|
+
valAxisTitleRotation?: number | null;
|
|
370
|
+
valAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
|
|
371
|
+
valAxisTitleManualLayout?: ChartManualLayout | null;
|
|
349
372
|
catAxisFontFace?: string | null;
|
|
350
373
|
valAxisFontFace?: string | null;
|
|
351
374
|
catAxisTitleFontFace?: string | null;
|
|
@@ -387,12 +410,24 @@ interface ChartModel {
|
|
|
387
410
|
catAxisMajorGridlines?: boolean | null;
|
|
388
411
|
valAxisGridlineColor?: string | null;
|
|
389
412
|
valAxisGridlineWidthEmu?: number | null;
|
|
413
|
+
valAxisGridlineDash?: string | null;
|
|
390
414
|
catAxisGridlineColor?: string | null;
|
|
391
415
|
catAxisGridlineWidthEmu?: number | null;
|
|
416
|
+
catAxisGridlineDash?: string | null;
|
|
392
417
|
valAxisMinorGridlines?: boolean | null;
|
|
418
|
+
valAxisMinorGridlineColor?: string | null;
|
|
419
|
+
valAxisMinorGridlineWidthEmu?: number | null;
|
|
420
|
+
valAxisMinorGridlineDash?: string | null;
|
|
421
|
+
catAxisMinorGridlines?: boolean | null;
|
|
422
|
+
catAxisMinorGridlineColor?: string | null;
|
|
423
|
+
catAxisMinorGridlineWidthEmu?: number | null;
|
|
424
|
+
catAxisMinorGridlineDash?: string | null;
|
|
393
425
|
valAxisMajorUnit?: number | null;
|
|
394
426
|
valAxisMinorUnit?: number | null;
|
|
427
|
+
catAxisMajorUnit?: number | null;
|
|
428
|
+
catAxisMinorUnit?: number | null;
|
|
395
429
|
valAxisLogBase?: number | null;
|
|
430
|
+
catAxisLogBase?: number | null;
|
|
396
431
|
valAxisOrientation?: 'minMax' | 'maxMin' | string | null;
|
|
397
432
|
catAxisOrientation?: 'minMax' | 'maxMin' | string | null;
|
|
398
433
|
catAxisTickLabelPos?: string | null;
|
|
@@ -403,15 +438,55 @@ interface ChartModel {
|
|
|
403
438
|
stockHiLowLines?: boolean | null;
|
|
404
439
|
stockHiLowLineColor?: string | null;
|
|
405
440
|
stockUpDownBars?: boolean | null;
|
|
441
|
+
stockUpDownBarStyle?: ChartStockUpDownBarStyle | null;
|
|
442
|
+
ofPie?: ChartOfPie | null;
|
|
443
|
+
threeD?: ChartThreeD | null;
|
|
406
444
|
chartexBox?: ChartexBoxWhisker | null;
|
|
407
445
|
chartexSunburst?: ChartexSunburst | null;
|
|
408
446
|
chartexTreemap?: ChartexTreemap | null;
|
|
447
|
+
chartexRegionMap?: ChartexRegionMap | null;
|
|
448
|
+
chartexHistogramBinning?: ChartexHistogramBinning | null;
|
|
409
449
|
chartexAccents?: string[] | null;
|
|
410
450
|
chartexColorPalette?: Array<string | null> | null;
|
|
411
451
|
chartexColorStyleMethod?: string | null;
|
|
412
452
|
chartexDataPointStyle?: ChartExElementStyle | null;
|
|
413
453
|
chartexDataPointLineStyle?: ChartExElementStyle | null;
|
|
454
|
+
chartexSeriesLineStyle?: ChartExElementStyle | null;
|
|
414
455
|
chartexDataPointMarkerStyle?: ChartExElementStyle | null;
|
|
456
|
+
chartexMarkerSizePt?: number | null;
|
|
457
|
+
chartexMarkerSymbol?: string | null;
|
|
458
|
+
chartexConnectorLines?: boolean | null;
|
|
459
|
+
}
|
|
460
|
+
interface ChartStockBarPaint {
|
|
461
|
+
fillColor?: string | null;
|
|
462
|
+
fillHidden?: boolean | null;
|
|
463
|
+
lineColor?: string | null;
|
|
464
|
+
lineWidthEmu?: number | null;
|
|
465
|
+
lineHidden?: boolean | null;
|
|
466
|
+
}
|
|
467
|
+
interface ChartStockUpDownBarStyle {
|
|
468
|
+
gapWidthPercent: number;
|
|
469
|
+
up: ChartStockBarPaint;
|
|
470
|
+
down: ChartStockBarPaint;
|
|
471
|
+
}
|
|
472
|
+
interface ChartOfPie {
|
|
473
|
+
type: 'pie' | 'bar';
|
|
474
|
+
splitType: 'auto' | 'cust' | 'percent' | 'pos' | 'val';
|
|
475
|
+
splitPos?: number | null;
|
|
476
|
+
customSplitIndices?: number[] | null;
|
|
477
|
+
secondPieSizePercent: number;
|
|
478
|
+
gapWidthPercent: number;
|
|
479
|
+
seriesLines: boolean;
|
|
480
|
+
}
|
|
481
|
+
interface ChartThreeD {
|
|
482
|
+
rotationX?: number | null;
|
|
483
|
+
rotationY?: number | null;
|
|
484
|
+
heightPercent?: number | null;
|
|
485
|
+
depthPercent?: number | null;
|
|
486
|
+
perspective?: number | null;
|
|
487
|
+
rightAngleAxes?: boolean | null;
|
|
488
|
+
gapDepthPercent?: number | null;
|
|
489
|
+
shape?: string | null;
|
|
415
490
|
}
|
|
416
491
|
interface ChartTextRun {
|
|
417
492
|
text: string;
|
|
@@ -432,12 +507,18 @@ interface ChartTextBox {
|
|
|
432
507
|
paragraphs: ChartTextParagraph[];
|
|
433
508
|
verticalAnchor?: 't' | 'ctr' | 'b' | 'just' | 'dist' | string | null;
|
|
434
509
|
wrap?: 'none' | 'square' | string | null;
|
|
510
|
+
lIns?: number;
|
|
511
|
+
tIns?: number;
|
|
512
|
+
rIns?: number;
|
|
513
|
+
bIns?: number;
|
|
435
514
|
}
|
|
436
515
|
interface ChartexBoxSeries {
|
|
437
516
|
name: string;
|
|
517
|
+
chartexFormatIdx?: number | null;
|
|
438
518
|
color?: string | null;
|
|
439
519
|
lineColor?: string | null;
|
|
440
520
|
lineWidthEmu?: number | null;
|
|
521
|
+
chartexStyle?: ChartExElementStyle | null;
|
|
441
522
|
valuesByCategory: number[][];
|
|
442
523
|
meanMarker: boolean;
|
|
443
524
|
meanLine: boolean;
|
|
@@ -446,6 +527,7 @@ interface ChartexBoxSeries {
|
|
|
446
527
|
quartileMethod: string;
|
|
447
528
|
}
|
|
448
529
|
interface ChartexBoxWhisker {
|
|
530
|
+
oneBoxPerSeries?: boolean;
|
|
449
531
|
categories: string[];
|
|
450
532
|
series: ChartexBoxSeries[];
|
|
451
533
|
}
|
|
@@ -460,6 +542,46 @@ interface ChartexTreemap {
|
|
|
460
542
|
rows: ChartexSunburstRow[];
|
|
461
543
|
parentLabelLayout?: string | null;
|
|
462
544
|
}
|
|
545
|
+
interface ChartexRegionMapRow {
|
|
546
|
+
label: string;
|
|
547
|
+
entityId?: string | null;
|
|
548
|
+
value?: number | null;
|
|
549
|
+
}
|
|
550
|
+
interface ChartexGeography {
|
|
551
|
+
projectionType?: 'mercator' | 'miller' | 'robinson' | 'albers' | string | null;
|
|
552
|
+
viewedRegionType?: string | null;
|
|
553
|
+
cultureLanguage?: string | null;
|
|
554
|
+
cultureRegion?: string | null;
|
|
555
|
+
attribution?: string | null;
|
|
556
|
+
cacheProvider?: string | null;
|
|
557
|
+
cachePresent: boolean;
|
|
558
|
+
}
|
|
559
|
+
interface ChartexValueColorStop {
|
|
560
|
+
kind: 'extremeValue' | 'number' | 'percent' | string;
|
|
561
|
+
value?: number | null;
|
|
562
|
+
}
|
|
563
|
+
interface ChartexRegionMapColors {
|
|
564
|
+
stopCount?: 2 | 3 | null;
|
|
565
|
+
minColor?: string | null;
|
|
566
|
+
midColor?: string | null;
|
|
567
|
+
maxColor?: string | null;
|
|
568
|
+
minPosition?: ChartexValueColorStop | null;
|
|
569
|
+
midPosition?: ChartexValueColorStop | null;
|
|
570
|
+
maxPosition?: ChartexValueColorStop | null;
|
|
571
|
+
}
|
|
572
|
+
interface ChartexRegionMap {
|
|
573
|
+
rows: ChartexRegionMapRow[];
|
|
574
|
+
regionLabelLayout?: 'none' | 'bestFitOnly' | 'showAll' | null;
|
|
575
|
+
geography?: ChartexGeography | null;
|
|
576
|
+
colors?: ChartexRegionMapColors | null;
|
|
577
|
+
}
|
|
578
|
+
interface ChartexHistogramBinning {
|
|
579
|
+
binSize?: number | null;
|
|
580
|
+
binCount?: number | null;
|
|
581
|
+
intervalClosed?: 'l' | 'r' | null;
|
|
582
|
+
underflow?: number | null;
|
|
583
|
+
overflow?: number | null;
|
|
584
|
+
}
|
|
463
585
|
interface SecondaryValueAxis {
|
|
464
586
|
min: number | null;
|
|
465
587
|
max: number | null;
|
|
@@ -468,14 +590,37 @@ interface SecondaryValueAxis {
|
|
|
468
590
|
formatCode?: string | null;
|
|
469
591
|
fontColor?: string | null;
|
|
470
592
|
fontSizeHpt?: number | null;
|
|
593
|
+
fontItalic?: boolean | null;
|
|
594
|
+
fontBold?: boolean | null;
|
|
595
|
+
fontFace?: string | null;
|
|
471
596
|
lineColor?: string | null;
|
|
472
597
|
lineWidthEmu?: number | null;
|
|
473
598
|
lineHidden: boolean;
|
|
474
599
|
majorTickMark: string;
|
|
600
|
+
minorTickMark?: string | null;
|
|
601
|
+
minorGridlines?: boolean;
|
|
602
|
+
minorGridlineColor?: string | null;
|
|
603
|
+
minorGridlineWidthEmu?: number | null;
|
|
604
|
+
minorGridlineDash?: string | null;
|
|
605
|
+
majorGridlines?: boolean;
|
|
606
|
+
majorGridlineColor?: string | null;
|
|
607
|
+
majorGridlineWidthEmu?: number | null;
|
|
608
|
+
majorGridlineDash?: string | null;
|
|
475
609
|
majorUnit?: number | null;
|
|
610
|
+
minorUnit?: number | null;
|
|
611
|
+
logBase?: number | null;
|
|
612
|
+
orientation?: 'minMax' | 'maxMin' | string | null;
|
|
613
|
+
tickLabelPos?: string | null;
|
|
614
|
+
crosses?: string | null;
|
|
615
|
+
crossesAt?: number | null;
|
|
476
616
|
titleFontSizeHpt?: number | null;
|
|
477
617
|
titleFontBold?: boolean | null;
|
|
618
|
+
titleFontItalic?: boolean | null;
|
|
478
619
|
titleFontColor?: string | null;
|
|
620
|
+
titleFontFace?: string | null;
|
|
621
|
+
titleRotation?: number | null;
|
|
622
|
+
titleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
|
|
623
|
+
titleManualLayout?: ChartManualLayout | null;
|
|
479
624
|
}
|
|
480
625
|
interface ChartManualLayout {
|
|
481
626
|
xMode?: string;
|
|
@@ -504,6 +649,30 @@ interface ChartRect {
|
|
|
504
649
|
w: number;
|
|
505
650
|
h: number;
|
|
506
651
|
}
|
|
652
|
+
//#endregion
|
|
653
|
+
//#region dist/.types-work/mathjax-rjjokY7u.d.ts
|
|
654
|
+
interface MathSvg {
|
|
655
|
+
svg: string;
|
|
656
|
+
widthEm: number;
|
|
657
|
+
ascentEm: number;
|
|
658
|
+
descentEm: number;
|
|
659
|
+
}
|
|
660
|
+
interface MathRenderer {
|
|
661
|
+
loadMathJax(): Promise<void>;
|
|
662
|
+
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
663
|
+
}
|
|
664
|
+
//#endregion
|
|
665
|
+
//#region dist/.types-work/three-d-contract-DdC3L2kZ.d.ts
|
|
666
|
+
interface ChartThreeDRenderer {
|
|
667
|
+
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
668
|
+
}
|
|
669
|
+
//#endregion
|
|
670
|
+
//#region dist/.types-work/region-map-contract-CLpE99AF.d.ts
|
|
671
|
+
interface ChartRegionMapRenderer {
|
|
672
|
+
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number): boolean;
|
|
673
|
+
}
|
|
674
|
+
//#endregion
|
|
675
|
+
//#region dist/.types-work/hyperlink-yiXkZo1W.d.ts
|
|
507
676
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
508
677
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
509
678
|
declare class OoxmlError extends Error {
|
|
@@ -586,6 +755,8 @@ interface LoadOptions$1 {
|
|
|
586
755
|
onResourceMetrics?: (metrics: OoxmlResourceMetrics) => void;
|
|
587
756
|
workerTimeoutMs?: number;
|
|
588
757
|
math?: MathRenderer;
|
|
758
|
+
threeD?: ChartThreeDRenderer;
|
|
759
|
+
regionMap?: ChartRegionMapRenderer;
|
|
589
760
|
}
|
|
590
761
|
type OoxmlDecodedImageLimitMetric = 'image-pixels' | 'active-decoded-bytes';
|
|
591
762
|
declare class OoxmlDecodedImageLimitError extends RangeError {
|
|
@@ -606,7 +777,7 @@ type HyperlinkTarget = {
|
|
|
606
777
|
};
|
|
607
778
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
608
779
|
//#endregion
|
|
609
|
-
//#region dist/.types-work/find-highlight-
|
|
780
|
+
//#region dist/.types-work/find-highlight-lh8Qagl7.d.ts
|
|
610
781
|
interface ViewerContextMenuEvent<TContext> {
|
|
611
782
|
readonly originalEvent: MouseEvent;
|
|
612
783
|
getContext(): Promise<TContext | null>;
|
|
@@ -636,7 +807,7 @@ interface FindHighlightColors {
|
|
|
636
807
|
active?: string;
|
|
637
808
|
}
|
|
638
809
|
//#endregion
|
|
639
|
-
//#region dist/.types-work/xlsx-
|
|
810
|
+
//#region dist/.types-work/xlsx-Awf4iUSV.d.ts
|
|
640
811
|
type ShapeFill = Exclude<Fill, {
|
|
641
812
|
fillType: 'image';
|
|
642
813
|
} | {
|
|
@@ -663,8 +834,14 @@ interface MergeCell {
|
|
|
663
834
|
}
|
|
664
835
|
interface Worksheet {
|
|
665
836
|
name: string;
|
|
837
|
+
isChartSheet?: boolean;
|
|
666
838
|
rows: Row[];
|
|
667
839
|
colWidths: Record<number, number>;
|
|
840
|
+
colWidthRanges?: Array<{
|
|
841
|
+
min: number;
|
|
842
|
+
max: number;
|
|
843
|
+
width: number;
|
|
844
|
+
}>;
|
|
668
845
|
rowHeights: Record<number, number>;
|
|
669
846
|
colOutlineLevels?: Record<number, number>;
|
|
670
847
|
colCollapsed?: Record<number, boolean>;
|
|
@@ -1385,6 +1562,8 @@ declare class XlsxWorkbook {
|
|
|
1385
1562
|
private readonly _fetchImage;
|
|
1386
1563
|
private resourcePolicy;
|
|
1387
1564
|
private math;
|
|
1565
|
+
private threeD;
|
|
1566
|
+
private regionMap;
|
|
1388
1567
|
private googleFontNames;
|
|
1389
1568
|
private readonly retainedFontSets;
|
|
1390
1569
|
private fontsDestroyed;
|
|
@@ -1852,4 +2031,4 @@ declare class XlsxSheetViewer implements ZoomableViewer {
|
|
|
1852
2031
|
}
|
|
1853
2032
|
declare function resolveSharedStrings(ws: Worksheet, sharedStrings: SharedString[]): Worksheet;
|
|
1854
2033
|
//#endregion
|
|
1855
|
-
export { type ArrowEnd, type AutoResizeOptions, type Border, type BorderEdge, type Cell, type CellAddress, type CellFill, type CellFont, type CellValue, type CellXf, type CfIcon, type CfRule, type CfStop, type CfValue, type ChartAnchor, type ChartDataLabelOverride, type ChartDataPointOverride, 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 ConditionalFormat, type DataValidation, type DefinedName, type Duotone, type Dxf, type FillRect, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type GradientFill, type GradientFillSpec, type GradientStop, type HiddenSheetMode, type Hyperlink, type HyperlinkTarget, type ImageAnchor, type LegendManualLayout, type LoadOptions, MAX_SELECTION_AREAS, MAX_SELECTION_CONTEXT_CELLS, MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, 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 MergeCell, type NumFmt, 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 OutlinePr, type ParsedWorkbook, type PathCmd, type PathInfo, type PatternFill, type PhoneticAlignment, type PhoneticProperties, type PhoneticRun, type PhoneticType, type PivotCacheSource, type PivotDataField, type PivotDiagnostic, type PivotLocation, type PivotMetadataStatus, type PivotPageField, type PivotPartialReason, type PivotTableMetadata, type RenderViewportToBitmapOptions, type ResolvedList, type Row, type Run, type RunFont, type SecondaryValueAxis, type ShapeAnchor, type ShapeFill, type ShapeGeom, type ShapeInfo, type ShapeParagraph, type ShapeText, type ShapeTextRun, type SharedString, type SheetMeta, type SheetVisibility, type SlicerAnchor, type SlicerElementStyle, type SlicerItem, type SlicerStyle, type SolidFill, type SpaceLine, type Sparkline, type SparklineGroup, type Styles, type TableColumnInfo, type TableInfo, type ViewerContextMenuEvent, type ViewportRange, type Workbook, type Worksheet, type WorksheetCellRange, type XlsxComment, type XlsxCopyResult, type XlsxElementAnchorMarker, type XlsxElementContext, type XlsxMatchLocation, type XlsxRangeSelectionContext, type XlsxRenderViewportOptions, type XlsxScrollToCellOptions, type XlsxSelectionArea, type XlsxSelectionContext, type XlsxSelectionContextCell, type XlsxSelectionContextOptions, type XlsxSelectionInput, type XlsxSelectionState, XlsxSheetViewer, type XlsxSheetViewerOptions, type XlsxTextRunInfo, XlsxViewer, type XlsxViewerOptions, type XlsxViewportOffset, XlsxWorkbook, type ZoomableViewer, autoResize, isOoxmlDecodedImageLimitError, openExternalHyperlink, resolveSharedStrings };
|
|
2034
|
+
export { type ArrowEnd, type AutoResizeOptions, type Border, type BorderEdge, type Cell, type CellAddress, type CellFill, type CellFont, type CellValue, type CellXf, type CfIcon, type CfRule, type CfStop, type CfValue, type ChartAnchor, type ChartDataLabelOverride, type ChartDataPointOverride, 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 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 ConditionalFormat, type DataValidation, type DefinedName, type Duotone, type Dxf, type FillRect, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type GradientFill, type GradientFillSpec, type GradientStop, type HiddenSheetMode, type Hyperlink, type HyperlinkTarget, type ImageAnchor, type LegendManualLayout, type LoadOptions, MAX_SELECTION_AREAS, MAX_SELECTION_CONTEXT_CELLS, MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, 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 MergeCell, type NumFmt, 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 OutlinePr, type ParsedWorkbook, type PathCmd, type PathInfo, type PatternFill, type PhoneticAlignment, type PhoneticProperties, type PhoneticRun, type PhoneticType, type PivotCacheSource, type PivotDataField, type PivotDiagnostic, type PivotLocation, type PivotMetadataStatus, type PivotPageField, type PivotPartialReason, type PivotTableMetadata, type RenderViewportToBitmapOptions, type ResolvedList, type Row, type Run, type RunFont, type SecondaryValueAxis, type ShapeAnchor, type ShapeFill, type ShapeGeom, type ShapeInfo, type ShapeParagraph, type ShapeText, type ShapeTextRun, type SharedString, type SheetMeta, type SheetVisibility, type SlicerAnchor, type SlicerElementStyle, type SlicerItem, type SlicerStyle, type SolidFill, type SpaceLine, type Sparkline, type SparklineGroup, type Styles, type TableColumnInfo, type TableInfo, type ViewerContextMenuEvent, type ViewportRange, type Workbook, type Worksheet, type WorksheetCellRange, type XlsxComment, type XlsxCopyResult, type XlsxElementAnchorMarker, type XlsxElementContext, type XlsxMatchLocation, type XlsxRangeSelectionContext, type XlsxRenderViewportOptions, type XlsxScrollToCellOptions, type XlsxSelectionArea, type XlsxSelectionContext, type XlsxSelectionContextCell, type XlsxSelectionContextOptions, type XlsxSelectionInput, type XlsxSelectionState, XlsxSheetViewer, type XlsxSheetViewerOptions, type XlsxTextRunInfo, XlsxViewer, type XlsxViewerOptions, type XlsxViewportOffset, XlsxWorkbook, type ZoomableViewer, autoResize, isOoxmlDecodedImageLimitError, openExternalHyperlink, resolveSharedStrings };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as e, F as t, I as n, N as r, P as i, Q as a, X as o, Y as s, Z as c, et as l,
|
|
2
|
-
import { n as h, r as g, t as _ } from "./resource-measurement-
|
|
3
|
-
import { t as v } from "./transfer-
|
|
1
|
+
import { $ as e, F as t, I as n, N as r, P as i, Q as a, X as o, Y as s, Z as c, et as l, nt as u, ot as d, rt as f, sn as p, tt as m } from "./line-metrics-DjKxiIUD.js";
|
|
2
|
+
import { n as h, r as g, t as _ } from "./resource-measurement-D8EiTm_E.js";
|
|
3
|
+
import { t as v } from "./transfer-3QEJrsJa.js";
|
|
4
4
|
//#region packages/xlsx/src/worksheet-resource-limits.ts
|
|
5
|
-
var y =
|
|
5
|
+
var y = u, b = e, x = l, S = m, C = a, w = s, T = o, E = c, D = Object.freeze({
|
|
6
6
|
archiveEntryCount: 0,
|
|
7
7
|
declaredInflatedBytes: 0,
|
|
8
8
|
distinctInflatedBytes: 0,
|
|
@@ -45,7 +45,7 @@ function j(e, t, n = {}) {
|
|
|
45
45
|
}
|
|
46
46
|
function M(e, t, n, r, i, a, o) {
|
|
47
47
|
let s = n === "worksheet-json" ? "serialization" : "parsing";
|
|
48
|
-
return new
|
|
48
|
+
return new p(`OOXML resource limit exceeded${t ? ` for ${t}` : ""}: ${r} ${a} > ${i}`, {
|
|
49
49
|
stage: s,
|
|
50
50
|
violation: {
|
|
51
51
|
format: "xlsx",
|
|
@@ -172,7 +172,7 @@ var z = 64 * 1024 * 1024, B = class {
|
|
|
172
172
|
rows: 0,
|
|
173
173
|
cells: 0,
|
|
174
174
|
ownedUtf8Bytes: 0
|
|
175
|
-
}, c, l = !1,
|
|
175
|
+
}, c, l = !1, u = new t({
|
|
176
176
|
...r,
|
|
177
177
|
maxByteCredit: z,
|
|
178
178
|
coordinator: this.coordinator,
|
|
@@ -187,7 +187,7 @@ var z = 64 * 1024 * 1024, B = class {
|
|
|
187
187
|
N(e, "get-worksheet-worker", void 0, this.readResourceUsage()), o.push(...n.rows), s = e;
|
|
188
188
|
} else c = n.worksheet;
|
|
189
189
|
} catch (e) {
|
|
190
|
-
throw e instanceof
|
|
190
|
+
throw e instanceof p && (this.resourceFailure ??= e), e;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
l = t;
|
|
@@ -218,7 +218,7 @@ var z = 64 * 1024 * 1024, B = class {
|
|
|
218
218
|
}
|
|
219
219
|
this.executeArchive((e) => e.acknowledge_sheet_cursor_terminal()), n?.();
|
|
220
220
|
} catch (e) {
|
|
221
|
-
throw t?.(), e instanceof
|
|
221
|
+
throw t?.(), e instanceof p && (this.resourceFailure ??= e), e;
|
|
222
222
|
}
|
|
223
223
|
l = !1, this.sessions.delete(r.sessionId), a();
|
|
224
224
|
},
|
|
@@ -240,7 +240,7 @@ var z = 64 * 1024 * 1024, B = class {
|
|
|
240
240
|
}
|
|
241
241
|
});
|
|
242
242
|
this.sessions.set(r.sessionId, {
|
|
243
|
-
host:
|
|
243
|
+
host: u,
|
|
244
244
|
identity: r
|
|
245
245
|
}), this.pendingOpens.delete(r.sessionId);
|
|
246
246
|
}));
|
|
@@ -304,7 +304,7 @@ var z = 64 * 1024 * 1024, B = class {
|
|
|
304
304
|
operationId: e.operationId,
|
|
305
305
|
generation: e.generation,
|
|
306
306
|
requestId: e.requestId,
|
|
307
|
-
error:
|
|
307
|
+
error: d(/* @__PURE__ */ Error("worksheet pull session is not open"))
|
|
308
308
|
}), Promise.resolve());
|
|
309
309
|
}
|
|
310
310
|
async dispatchSafely(e, t) {
|
|
@@ -319,7 +319,7 @@ var z = 64 * 1024 * 1024, B = class {
|
|
|
319
319
|
operationId: e.operationId,
|
|
320
320
|
generation: e.generation,
|
|
321
321
|
requestId: e.requestId,
|
|
322
|
-
error:
|
|
322
|
+
error: d(n)
|
|
323
323
|
});
|
|
324
324
|
} catch {}
|
|
325
325
|
}
|
|
@@ -329,7 +329,7 @@ var z = 64 * 1024 * 1024, B = class {
|
|
|
329
329
|
if (this.resourceFailure) throw this.resourceFailure;
|
|
330
330
|
return e();
|
|
331
331
|
})).catch((e) => {
|
|
332
|
-
throw e instanceof
|
|
332
|
+
throw e instanceof p && (this.resourceFailure ??= e), e;
|
|
333
333
|
});
|
|
334
334
|
return this.operationTail = t.then(() => void 0, () => void 0), t;
|
|
335
335
|
}
|
|
@@ -365,7 +365,7 @@ var z = 64 * 1024 * 1024, B = class {
|
|
|
365
365
|
}
|
|
366
366
|
readResourceUsage() {
|
|
367
367
|
try {
|
|
368
|
-
return
|
|
368
|
+
return f(this.executeArchive((e) => e.sheet_cursor_resource_usage()));
|
|
369
369
|
} catch (e) {
|
|
370
370
|
if (String(e).includes("worksheet cursor usage is unavailable")) return;
|
|
371
371
|
throw e;
|