@silurus/ooxml 0.78.1 → 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-B4K_t5X_.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-5AakVD6e.js → document-pull-client-YiU8M4LO.js} +2119 -2113
- package/dist/{docx-bjhRwb2u.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-BVFW1-Hs.js → line-distribute-pDqovJpT.js} +1 -1
- package/dist/{line-metrics-DS0NS2Iq.js → line-metrics-DjKxiIUD.js} +4089 -3210
- package/dist/math.mjs +1 -1
- package/dist/node.mjs +322 -322
- package/dist/{pptx-D1rCrHGR.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-DhlT5jxZ.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-BA-4Q-II.js → resource-measurement-D8EiTm_E.js} +1 -1
- package/dist/{session-C_HGxbRD.js → session-Bhe_eY-s.js} +10 -10
- package/dist/{slide-pull-client-BiC4sVGi.js → slide-pull-client-BQ8gJPTq.js} +584 -583
- package/dist/three-d.mjs +2158 -0
- package/dist/types/docx.d.ts +185 -16
- package/dist/types/index.d.ts +196 -20
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +157 -1
- package/dist/types/pptx.d.ts +187 -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 +186 -16
- package/dist/{worksheet-pull-client-BnvgeqfG.js → worksheet-pull-client-T0EzdEEQ.js} +13 -13
- package/dist/{xlsx-BG_WYSc0.js → xlsx-CsDDMJIK.js} +442 -414
- package/dist/xlsx.mjs +5 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +13 -1
- package/dist/render-worker-host-CtJo7hc9.js +0 -27
- package/dist/render-worker-host-D8vv-Asx.js +0 -27
- package/dist/render-worker-host-DAjG9nmw.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-DpimohAS.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;
|
|
@@ -439,9 +514,11 @@ interface ChartTextBox {
|
|
|
439
514
|
}
|
|
440
515
|
interface ChartexBoxSeries {
|
|
441
516
|
name: string;
|
|
517
|
+
chartexFormatIdx?: number | null;
|
|
442
518
|
color?: string | null;
|
|
443
519
|
lineColor?: string | null;
|
|
444
520
|
lineWidthEmu?: number | null;
|
|
521
|
+
chartexStyle?: ChartExElementStyle | null;
|
|
445
522
|
valuesByCategory: number[][];
|
|
446
523
|
meanMarker: boolean;
|
|
447
524
|
meanLine: boolean;
|
|
@@ -450,6 +527,7 @@ interface ChartexBoxSeries {
|
|
|
450
527
|
quartileMethod: string;
|
|
451
528
|
}
|
|
452
529
|
interface ChartexBoxWhisker {
|
|
530
|
+
oneBoxPerSeries?: boolean;
|
|
453
531
|
categories: string[];
|
|
454
532
|
series: ChartexBoxSeries[];
|
|
455
533
|
}
|
|
@@ -464,6 +542,46 @@ interface ChartexTreemap {
|
|
|
464
542
|
rows: ChartexSunburstRow[];
|
|
465
543
|
parentLabelLayout?: string | null;
|
|
466
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
|
+
}
|
|
467
585
|
interface SecondaryValueAxis {
|
|
468
586
|
min: number | null;
|
|
469
587
|
max: number | null;
|
|
@@ -472,14 +590,37 @@ interface SecondaryValueAxis {
|
|
|
472
590
|
formatCode?: string | null;
|
|
473
591
|
fontColor?: string | null;
|
|
474
592
|
fontSizeHpt?: number | null;
|
|
593
|
+
fontItalic?: boolean | null;
|
|
594
|
+
fontBold?: boolean | null;
|
|
595
|
+
fontFace?: string | null;
|
|
475
596
|
lineColor?: string | null;
|
|
476
597
|
lineWidthEmu?: number | null;
|
|
477
598
|
lineHidden: boolean;
|
|
478
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;
|
|
479
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;
|
|
480
616
|
titleFontSizeHpt?: number | null;
|
|
481
617
|
titleFontBold?: boolean | null;
|
|
618
|
+
titleFontItalic?: boolean | null;
|
|
482
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;
|
|
483
624
|
}
|
|
484
625
|
interface ChartManualLayout {
|
|
485
626
|
xMode?: string;
|
|
@@ -508,6 +649,30 @@ interface ChartRect {
|
|
|
508
649
|
w: number;
|
|
509
650
|
h: number;
|
|
510
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
|
|
511
676
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
512
677
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
513
678
|
declare class OoxmlError extends Error {
|
|
@@ -590,6 +755,8 @@ interface LoadOptions$1 {
|
|
|
590
755
|
onResourceMetrics?: (metrics: OoxmlResourceMetrics) => void;
|
|
591
756
|
workerTimeoutMs?: number;
|
|
592
757
|
math?: MathRenderer;
|
|
758
|
+
threeD?: ChartThreeDRenderer;
|
|
759
|
+
regionMap?: ChartRegionMapRenderer;
|
|
593
760
|
}
|
|
594
761
|
type OoxmlDecodedImageLimitMetric = 'image-pixels' | 'active-decoded-bytes';
|
|
595
762
|
declare class OoxmlDecodedImageLimitError extends RangeError {
|
|
@@ -610,7 +777,7 @@ type HyperlinkTarget = {
|
|
|
610
777
|
};
|
|
611
778
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
612
779
|
//#endregion
|
|
613
|
-
//#region dist/.types-work/find-highlight-
|
|
780
|
+
//#region dist/.types-work/find-highlight-lh8Qagl7.d.ts
|
|
614
781
|
interface ViewerContextMenuEvent<TContext> {
|
|
615
782
|
readonly originalEvent: MouseEvent;
|
|
616
783
|
getContext(): Promise<TContext | null>;
|
|
@@ -640,7 +807,7 @@ interface FindHighlightColors {
|
|
|
640
807
|
active?: string;
|
|
641
808
|
}
|
|
642
809
|
//#endregion
|
|
643
|
-
//#region dist/.types-work/xlsx-
|
|
810
|
+
//#region dist/.types-work/xlsx-Awf4iUSV.d.ts
|
|
644
811
|
type ShapeFill = Exclude<Fill, {
|
|
645
812
|
fillType: 'image';
|
|
646
813
|
} | {
|
|
@@ -667,6 +834,7 @@ interface MergeCell {
|
|
|
667
834
|
}
|
|
668
835
|
interface Worksheet {
|
|
669
836
|
name: string;
|
|
837
|
+
isChartSheet?: boolean;
|
|
670
838
|
rows: Row[];
|
|
671
839
|
colWidths: Record<number, number>;
|
|
672
840
|
colWidthRanges?: Array<{
|
|
@@ -1394,6 +1562,8 @@ declare class XlsxWorkbook {
|
|
|
1394
1562
|
private readonly _fetchImage;
|
|
1395
1563
|
private resourcePolicy;
|
|
1396
1564
|
private math;
|
|
1565
|
+
private threeD;
|
|
1566
|
+
private regionMap;
|
|
1397
1567
|
private googleFontNames;
|
|
1398
1568
|
private readonly retainedFontSets;
|
|
1399
1569
|
private fontsDestroyed;
|
|
@@ -1861,4 +2031,4 @@ declare class XlsxSheetViewer implements ZoomableViewer {
|
|
|
1861
2031
|
}
|
|
1862
2032
|
declare function resolveSharedStrings(ws: Worksheet, sharedStrings: SharedString[]): Worksheet;
|
|
1863
2033
|
//#endregion
|
|
1864
|
-
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;
|