@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.
- package/README.md +2 -2
- package/dist/{canvas-viewer-mechanics-DTkBvITv.js → canvas-viewer-mechanics-ChxLdOJg.js} +1 -1
- package/dist/{document-pull-client-iWr8-S7P.js → document-pull-client-xsdVDuVD.js} +1799 -1769
- package/dist/{docx-B1gYS6eU.js → docx-CZC3j4s4.js} +14 -14
- package/dist/docx.mjs +3 -3
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-C1r2zvji.js → line-distribute-HuZyTARz.js} +133 -72
- package/dist/{line-metrics-BdCACYlq.js → line-metrics-z9AdgPaZ.js} +2722 -1842
- package/dist/node.mjs +7 -7
- package/dist/{pptx-CQjtK_o7.js → pptx-c3UgGKIs.js} +38 -38
- package/dist/pptx.mjs +4 -4
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/render-worker-host-BzxTAscX.js +27 -0
- package/dist/render-worker-host-CBjWHxMb.js +27 -0
- package/dist/render-worker-host-Ivhx3KII.js +27 -0
- package/dist/{render-Ca80nlG5.js → render-yhFUeiYl.js} +1 -1
- package/dist/{resource-measurement-E_S_iau4.js → resource-measurement-5g27Av6n.js} +1 -1
- package/dist/{session-KvKxQAeL.js → session-BOuXp10X.js} +2 -2
- package/dist/{slide-pull-client-BXb67StB.js → slide-pull-client-DKckZrLx.js} +1172 -879
- package/dist/types/docx.d.ts +141 -8
- package/dist/types/index.d.ts +178 -14
- package/dist/types/node.d.ts +171 -8
- package/dist/types/pptx.d.ts +102 -8
- package/dist/types/xlsx.d.ts +161 -8
- package/dist/{worksheet-pull-client-YzjJMOns.js → worksheet-pull-client-CMDRPZ5E.js} +2 -2
- package/dist/{xlsx-RLCmd1Bm.js → xlsx-BAScjxlC.js} +1621 -1298
- package/dist/xlsx.mjs +4 -4
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/render-worker-host-BozYMmxO.js +0 -27
- package/dist/render-worker-host-C96AiK8e.js +0 -27
- package/dist/render-worker-host-EHG5j8FK.js +0 -27
package/dist/types/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface MathRenderer {
|
|
|
10
10
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region dist/.types-work/hyperlink-
|
|
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$2 = {
|
|
|
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$1[];
|
|
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$1 {
|
|
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
|
|
590
|
-
yMode
|
|
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
|
|
599
|
-
yMode
|
|
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/docx-
|
|
845
|
+
//#region dist/.types-work/docx-BPe8ajoT.d.ts
|
|
753
846
|
interface DocxDocumentModel {
|
|
754
847
|
section: SectionProps;
|
|
755
848
|
body: BodyElement[];
|
|
@@ -1061,6 +1154,12 @@ type PathCmd$1 = {
|
|
|
1061
1154
|
y2: number;
|
|
1062
1155
|
x: number;
|
|
1063
1156
|
y: number;
|
|
1157
|
+
} | {
|
|
1158
|
+
cmd: 'quadBezTo';
|
|
1159
|
+
x1: number;
|
|
1160
|
+
y1: number;
|
|
1161
|
+
x: number;
|
|
1162
|
+
y: number;
|
|
1064
1163
|
} | {
|
|
1065
1164
|
cmd: 'arcTo';
|
|
1066
1165
|
wr: number;
|
|
@@ -1102,11 +1201,20 @@ interface ShapeRun {
|
|
|
1102
1201
|
subpaths: PathCmd$1[][];
|
|
1103
1202
|
presetGeometry?: string | null;
|
|
1104
1203
|
adjValues?: Array<number | null>;
|
|
1105
|
-
fill: ShapeFill | null;
|
|
1204
|
+
fill: ShapeFill$1 | null;
|
|
1106
1205
|
stroke: string | null;
|
|
1107
1206
|
strokeWidth?: number;
|
|
1207
|
+
strokeFill?: ShapeStrokeFill | null;
|
|
1108
1208
|
strokeDash?: string | null;
|
|
1209
|
+
strokeCustomDash?: Array<{
|
|
1210
|
+
dash: number;
|
|
1211
|
+
space: number;
|
|
1212
|
+
}>;
|
|
1109
1213
|
strokeCap?: 'butt' | 'round' | 'square' | null;
|
|
1214
|
+
strokeJoin?: 'round' | 'bevel' | 'miter' | null;
|
|
1215
|
+
strokeMiterLimit?: number | null;
|
|
1216
|
+
strokeAlignment?: 'ctr' | 'in' | null;
|
|
1217
|
+
strokeCompound?: string | null;
|
|
1110
1218
|
headEnd?: LineEnd | null;
|
|
1111
1219
|
tailEnd?: LineEnd | null;
|
|
1112
1220
|
rotation?: number;
|
|
@@ -1179,7 +1287,7 @@ interface ShapeText$1 {
|
|
|
1179
1287
|
imageWidthPt?: number;
|
|
1180
1288
|
imageHeightPt?: number;
|
|
1181
1289
|
}
|
|
1182
|
-
type ShapeFill = {
|
|
1290
|
+
type ShapeFill$1 = {
|
|
1183
1291
|
fillType: 'solid';
|
|
1184
1292
|
color: string;
|
|
1185
1293
|
} | {
|
|
@@ -1187,6 +1295,17 @@ type ShapeFill = {
|
|
|
1187
1295
|
stops: GradientStop[];
|
|
1188
1296
|
angle: number;
|
|
1189
1297
|
gradType: string;
|
|
1298
|
+
scaled?: boolean;
|
|
1299
|
+
path?: string;
|
|
1300
|
+
fillToRect?: FillRect;
|
|
1301
|
+
tileRect?: FillRect;
|
|
1302
|
+
flip?: string;
|
|
1303
|
+
rotWithShape?: boolean;
|
|
1304
|
+
} | {
|
|
1305
|
+
fillType: 'pattern';
|
|
1306
|
+
fg: string;
|
|
1307
|
+
bg: string;
|
|
1308
|
+
preset: string;
|
|
1190
1309
|
} | {
|
|
1191
1310
|
fillType: 'image';
|
|
1192
1311
|
imagePath: string;
|
|
@@ -1203,6 +1322,23 @@ type ShapeFill = {
|
|
|
1203
1322
|
alpha?: number;
|
|
1204
1323
|
duotone?: Duotone$1;
|
|
1205
1324
|
};
|
|
1325
|
+
type ShapeStrokeFill = {
|
|
1326
|
+
fillType: 'gradient';
|
|
1327
|
+
stops: GradientStop[];
|
|
1328
|
+
angle: number;
|
|
1329
|
+
gradType: string;
|
|
1330
|
+
scaled?: boolean;
|
|
1331
|
+
path?: string;
|
|
1332
|
+
fillToRect?: FillRect;
|
|
1333
|
+
tileRect?: FillRect;
|
|
1334
|
+
flip?: string;
|
|
1335
|
+
rotWithShape?: boolean;
|
|
1336
|
+
} | {
|
|
1337
|
+
fillType: 'pattern';
|
|
1338
|
+
fg: string;
|
|
1339
|
+
bg: string;
|
|
1340
|
+
preset: string;
|
|
1341
|
+
};
|
|
1206
1342
|
interface GradientStop {
|
|
1207
1343
|
position: number;
|
|
1208
1344
|
color: string;
|
|
@@ -1763,10 +1899,10 @@ interface DocxHighlightMatch {
|
|
|
1763
1899
|
type DocxHighlightColors = FindHighlightColors;
|
|
1764
1900
|
declare function buildDocxHighlightLayer(layer: HTMLDivElement, runs: DocxTextRunInfo[], matches: DocxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: DocxHighlightColors): void;
|
|
1765
1901
|
declare namespace docx_d_exports {
|
|
1766
|
-
export { AnchorHostMetrics, AutoResizeOptions, BodyElement, BorderSpec, CellBorders, CellElement, ChartDataLabelOverride, ChartDataPointOverride, ChartErrBars, ChartLabelBox, ChartManualLayout, ChartModel, ChartRect, ChartRun, ChartSeries, ChartSeriesDataLabels, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexSunburst, ChartexSunburstRow, ColSpec, CollectPageRunsOptions, ColumnsSpec, DocComment, DocNote, DocParagraph, DocRevision, DocRun, DocSettings, DocTable, DocTableCell, DocTableRow, DocxDocument, DocxDocumentModel, DocxElementContext, DocxElementContextOptions, DocxHighlightColors, DocxHighlightMatch, DocxMatchLocation, DocxPagePoint, DocxRunBorder, DocxScrollViewer, DocxScrollViewerOptions, DocxSelectionContext, DocxSelectionContextOptions, DocxSelectionRunLocator, DocxSelectionSourceLocator, DocxTextRun, DocxTextRunInfo, DocxTextSelectionContext, DocxViewer, DocxViewerOptions, Duotone$1 as Duotone, EmbeddedFontRef, FieldRun, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, FramePr, GradientStop, HeaderFooter, HeadersFooters, HyperlinkTarget, ImageRun, LegendManualLayout, LineEnd, LineNumbering, LineSpacing, LoadOptions$2 as LoadOptions, MatchRunSlice, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, NoteRef, NumberingInfo, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, PTabRun, PageBorderEdge, PageBorders, PageNumType, ParaBorderEdge, ParagraphBorders, PathCmd$1 as PathCmd, RenderPageOptions, RenderPageToBitmapOptions, RubyAnnotation, RunRevision, SecondaryValueAxis, SectionGeom, SectionProps, ShapeRun, ShapeText$1 as ShapeText, ShapeTextRun$1 as ShapeTextRun, TabStop, TableBorders, TblpPr, TextPath, TextSelectionContextOptions, TileInfo, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildDocxHighlightLayer, buildDocxTextLayer, isOoxmlDecodedImageLimitError, noteText, openExternalHyperlink, readDocxTextSelectionContext };
|
|
1902
|
+
export { AnchorHostMetrics, AutoResizeOptions, BodyElement, BorderSpec, CellBorders, CellElement, ChartDataLabelOverride, ChartDataPointOverride, ChartErrBars, ChartExElementStyle, ChartLabelBox, ChartManualLayout, ChartModel, ChartRect, ChartRun, ChartSeries, ChartSeriesDataLabels, ChartTextBox, ChartTextParagraph, ChartTextRun, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexSunburst, ChartexSunburstRow, ChartexTreemap, ColSpec, CollectPageRunsOptions, ColumnsSpec, DocComment, DocNote, DocParagraph, DocRevision, DocRun, DocSettings, DocTable, DocTableCell, DocTableRow, DocxDocument, DocxDocumentModel, DocxElementContext, DocxElementContextOptions, DocxHighlightColors, DocxHighlightMatch, DocxMatchLocation, DocxPagePoint, DocxRunBorder, DocxScrollViewer, DocxScrollViewerOptions, DocxSelectionContext, DocxSelectionContextOptions, DocxSelectionRunLocator, DocxSelectionSourceLocator, DocxTextRun, DocxTextRunInfo, DocxTextSelectionContext, DocxViewer, DocxViewerOptions, Duotone$1 as Duotone, EmbeddedFontRef, FieldRun, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, FramePr, GradientFill, GradientStop, HeaderFooter, HeadersFooters, HyperlinkTarget, ImageRun, LegendManualLayout, LineEnd, LineNumbering, LineSpacing, LoadOptions$2 as LoadOptions, MatchRunSlice, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, NoteRef, NumberingInfo, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, PTabRun, PageBorderEdge, PageBorders, PageNumType, ParaBorderEdge, ParagraphBorders, PathCmd$1 as PathCmd, PatternFill, RenderPageOptions, RenderPageToBitmapOptions, RubyAnnotation, RunRevision, SecondaryValueAxis, SectionGeom, SectionProps, ShapeFill$1 as ShapeFill, ShapeRun, ShapeStrokeFill, ShapeText$1 as ShapeText, ShapeTextRun$1 as ShapeTextRun, SolidFill, TabStop, TableBorders, TblpPr, TextPath, TextSelectionContextOptions, TileInfo, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildDocxHighlightLayer, buildDocxTextLayer, isOoxmlDecodedImageLimitError, noteText, openExternalHyperlink, readDocxTextSelectionContext };
|
|
1767
1903
|
}
|
|
1768
1904
|
//#endregion
|
|
1769
|
-
//#region dist/.types-work/pptx-
|
|
1905
|
+
//#region dist/.types-work/pptx-Bb8Ij3pP.d.ts
|
|
1770
1906
|
interface BlipBullet {
|
|
1771
1907
|
type: 'blip';
|
|
1772
1908
|
imagePath: string;
|
|
@@ -1910,6 +2046,7 @@ interface Sp3d {
|
|
|
1910
2046
|
extrusionH?: number;
|
|
1911
2047
|
contourW?: number;
|
|
1912
2048
|
contourClr?: string;
|
|
2049
|
+
extrusionClr?: string;
|
|
1913
2050
|
prstMaterial: string;
|
|
1914
2051
|
bevelT?: Bevel3d;
|
|
1915
2052
|
bevelB?: Bevel3d;
|
|
@@ -2400,10 +2537,15 @@ interface PptxHighlightMatch {
|
|
|
2400
2537
|
type PptxHighlightColors = FindHighlightColors;
|
|
2401
2538
|
declare function buildPptxHighlightLayer(layer: HTMLDivElement, runs: PptxTextRunInfo[], matches: PptxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: PptxHighlightColors): void;
|
|
2402
2539
|
declare namespace pptx_d_exports {
|
|
2403
|
-
export { ArrowEnd, AutoResizeOptions, Bevel3d, BlipBullet, Bullet, Camera3d, ChartDataLabelOverride, ChartDataPointOverride, ChartElement, ChartErrBars, ChartLabelBox, ChartManualLayout, ChartModel, ChartRect, ChartSeries, ChartSeriesDataLabels, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexSunburst, ChartexSunburstRow, DimOptions, Duotone$1 as Duotone, EquationRun, Fill, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, Glow, GradientFill, GradientStop$1 as GradientStop, HiddenSlideMode, HyperlinkTarget, ImageFill, LegendManualLayout, LightRig, LineBreak, LoadOptions$1 as LoadOptions, MatchRunSlice, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, MediaElement, NoFill, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, Paragraph, PathCmd$2 as PathCmd, PatternFill, PictureElement, PptxComment, PptxElementContext, PptxElementContextOptions, PptxHighlightColors, PptxHighlightMatch, PptxMatchLocation, PptxPresentation, PptxScrollViewer, PptxScrollViewerOptions, PptxSelectionContext, PptxSelectionContextOptions, PptxSelectionRunLocator, PptxSlidePoint, PptxTextRunInfo, PptxTextSelectionContext, PptxViewer, PptxViewerOptions, PresentSlideOptions, Presentation, PresentationHandle, Reflection, RenderOptions, RenderSlideOptions, RenderSlideToBitmapOptions, Rot3d, Scene3d, SecondaryValueAxis, Shadow, ShapeElement, Slide, SlideElement, SlideElementOrigin, SlideElementSource, SlideRenderOptions, SoftEdge, SolidFill, Sp3d, SpaceLine, Stroke, TabStop$1 as TabStop, TableCell, TableElement, TableRow, TextBody, TextOutline, TextRect, TextRun, TextRunCallback, TextRunData, TextSelectionContextOptions, TileInfo, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
|
|
2540
|
+
export { ArrowEnd, AutoResizeOptions, Bevel3d, BlipBullet, Bullet, Camera3d, ChartDataLabelOverride, ChartDataPointOverride, ChartElement, ChartErrBars, ChartExElementStyle, ChartLabelBox, ChartManualLayout, ChartModel, ChartRect, ChartSeries, ChartSeriesDataLabels, ChartTextBox, ChartTextParagraph, ChartTextRun, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexSunburst, ChartexSunburstRow, ChartexTreemap, DimOptions, Duotone$1 as Duotone, EquationRun, Fill, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, Glow, GradientFill, GradientStop$1 as GradientStop, HiddenSlideMode, HyperlinkTarget, ImageFill, LegendManualLayout, LightRig, LineBreak, LoadOptions$1 as LoadOptions, MatchRunSlice, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, MediaElement, NoFill, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, Paragraph, PathCmd$2 as PathCmd, PatternFill, PictureElement, PptxComment, PptxElementContext, PptxElementContextOptions, PptxHighlightColors, PptxHighlightMatch, PptxMatchLocation, PptxPresentation, PptxScrollViewer, PptxScrollViewerOptions, PptxSelectionContext, PptxSelectionContextOptions, PptxSelectionRunLocator, PptxSlidePoint, PptxTextRunInfo, PptxTextSelectionContext, PptxViewer, PptxViewerOptions, PresentSlideOptions, Presentation, PresentationHandle, Reflection, RenderOptions, RenderSlideOptions, RenderSlideToBitmapOptions, Rot3d, Scene3d, SecondaryValueAxis, Shadow, ShapeElement, Slide, SlideElement, SlideElementOrigin, SlideElementSource, SlideRenderOptions, SoftEdge, SolidFill, Sp3d, SpaceLine, Stroke, TabStop$1 as TabStop, TableCell, TableElement, TableRow, TextBody, TextOutline, TextRect, TextRun, TextRunCallback, TextRunData, TextSelectionContextOptions, TileInfo, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
|
|
2404
2541
|
}
|
|
2405
2542
|
//#endregion
|
|
2406
|
-
//#region dist/.types-work/xlsx-
|
|
2543
|
+
//#region dist/.types-work/xlsx-C3uqud8R.d.ts
|
|
2544
|
+
type ShapeFill = Exclude<Fill, {
|
|
2545
|
+
fillType: 'image';
|
|
2546
|
+
} | {
|
|
2547
|
+
fillType: 'none';
|
|
2548
|
+
}>;
|
|
2407
2549
|
interface Workbook {
|
|
2408
2550
|
sheets: SheetMeta[];
|
|
2409
2551
|
date1904?: boolean;
|
|
@@ -2665,6 +2807,7 @@ interface DataValidation {
|
|
|
2665
2807
|
errorMessage?: string;
|
|
2666
2808
|
}
|
|
2667
2809
|
interface ChartAnchor {
|
|
2810
|
+
zOrder?: number;
|
|
2668
2811
|
fromCol: number;
|
|
2669
2812
|
fromColOff: number;
|
|
2670
2813
|
fromRow: number;
|
|
@@ -2690,6 +2833,7 @@ interface ShapeAnchor {
|
|
|
2690
2833
|
shapes: ShapeInfo[];
|
|
2691
2834
|
}
|
|
2692
2835
|
interface ShapeInfo {
|
|
2836
|
+
zOrder?: number;
|
|
2693
2837
|
x: number;
|
|
2694
2838
|
y: number;
|
|
2695
2839
|
w: number;
|
|
@@ -2698,8 +2842,26 @@ interface ShapeInfo {
|
|
|
2698
2842
|
flipH?: boolean;
|
|
2699
2843
|
flipV?: boolean;
|
|
2700
2844
|
fillColor?: string;
|
|
2845
|
+
fill?: ShapeFill;
|
|
2701
2846
|
strokeColor?: string;
|
|
2702
2847
|
strokeWidth: number;
|
|
2848
|
+
strokeFill?: Exclude<Fill, {
|
|
2849
|
+
fillType: 'image';
|
|
2850
|
+
} | {
|
|
2851
|
+
fillType: 'none';
|
|
2852
|
+
}>;
|
|
2853
|
+
strokeDashStyle?: string;
|
|
2854
|
+
strokeCustomDash?: Array<{
|
|
2855
|
+
dash: number;
|
|
2856
|
+
space: number;
|
|
2857
|
+
}>;
|
|
2858
|
+
strokeLineCap?: 'butt' | 'round' | 'square';
|
|
2859
|
+
strokeLineJoin?: 'round' | 'bevel' | 'miter';
|
|
2860
|
+
strokeMiterLimit?: number;
|
|
2861
|
+
strokeAlignment?: 'ctr' | 'in';
|
|
2862
|
+
strokeCmpd?: string;
|
|
2863
|
+
strokeHeadEnd?: ArrowEnd;
|
|
2864
|
+
strokeTailEnd?: ArrowEnd;
|
|
2703
2865
|
geom: ShapeGeom;
|
|
2704
2866
|
text?: ShapeText;
|
|
2705
2867
|
}
|
|
@@ -2805,6 +2967,7 @@ type PathCmd = {
|
|
|
2805
2967
|
op: 'close';
|
|
2806
2968
|
};
|
|
2807
2969
|
interface ImageAnchor {
|
|
2970
|
+
zOrder?: number;
|
|
2808
2971
|
fromCol: number;
|
|
2809
2972
|
fromColOff: number;
|
|
2810
2973
|
fromRow: number;
|
|
@@ -3422,6 +3585,7 @@ declare class XlsxViewerEngine implements ZoomableViewer {
|
|
|
3422
3585
|
private paintCornerGutter;
|
|
3423
3586
|
private onGutterPointerDown;
|
|
3424
3587
|
private applyGroupToggle;
|
|
3588
|
+
private scrollOutlineSummaryToStart;
|
|
3425
3589
|
private applyLevelButton;
|
|
3426
3590
|
private setBandHidden;
|
|
3427
3591
|
private recordSizeOverride;
|
|
@@ -3592,7 +3756,7 @@ declare class XlsxSheetViewer implements ZoomableViewer {
|
|
|
3592
3756
|
}
|
|
3593
3757
|
declare function resolveSharedStrings(ws: Worksheet, sharedStrings: SharedString[]): Worksheet;
|
|
3594
3758
|
declare namespace xlsx_d_exports {
|
|
3595
|
-
export { AutoResizeOptions, Border, BorderEdge, Cell, CellAddress, CellFill, CellFont, CellValue, CellXf, CfIcon, CfRule, CfStop, CfValue, ChartAnchor, ChartDataLabelOverride, ChartDataPointOverride, ChartErrBars, ChartLabelBox, ChartManualLayout, ChartModel, ChartRect, ChartSeries, ChartSeriesDataLabels, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexSunburst, ChartexSunburstRow, ConditionalFormat, DataValidation, DefinedName, Duotone, Dxf, FindHighlightColors, FindMatch, FindMatchesOptions, GradientFillSpec, HiddenSheetMode, Hyperlink, HyperlinkTarget, ImageAnchor, LegendManualLayout, LoadOptions, MAX_SELECTION_AREAS, MAX_SELECTION_CONTEXT_CELLS, MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, MergeCell, NumFmt, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, OutlinePr, ParsedWorkbook, PathCmd, PathInfo, PhoneticAlignment, PhoneticProperties, PhoneticRun, PhoneticType, PivotCacheSource, PivotDataField, PivotDiagnostic, PivotLocation, PivotMetadataStatus, PivotPageField, PivotPartialReason, PivotTableMetadata, RenderViewportToBitmapOptions, ResolvedList, Row, Run, RunFont, SecondaryValueAxis, ShapeAnchor, ShapeGeom, ShapeInfo, ShapeParagraph, ShapeText, ShapeTextRun, SharedString, SheetMeta, SheetVisibility, SlicerAnchor, SlicerElementStyle, SlicerItem, SlicerStyle, SpaceLine, Sparkline, SparklineGroup, Styles, TableColumnInfo, TableInfo, ViewerContextMenuEvent, ViewportRange, Workbook, Worksheet, WorksheetCellRange, XlsxComment, XlsxCopyResult, XlsxElementAnchorMarker, XlsxElementContext, XlsxMatchLocation, XlsxRangeSelectionContext, XlsxRenderViewportOptions, XlsxScrollToCellOptions, XlsxSelectionArea, XlsxSelectionContext, XlsxSelectionContextCell, XlsxSelectionContextOptions, XlsxSelectionInput, XlsxSelectionState, XlsxSheetViewer, XlsxSheetViewerOptions, XlsxTextRunInfo, XlsxViewer, XlsxViewerOptions, XlsxViewportOffset, XlsxWorkbook, ZoomableViewer, autoResize, isOoxmlDecodedImageLimitError, openExternalHyperlink, resolveSharedStrings };
|
|
3759
|
+
export { ArrowEnd, AutoResizeOptions, Border, BorderEdge, Cell, CellAddress, CellFill, CellFont, CellValue, CellXf, CfIcon, CfRule, CfStop, CfValue, ChartAnchor, ChartDataLabelOverride, ChartDataPointOverride, ChartErrBars, ChartExElementStyle, ChartLabelBox, ChartManualLayout, ChartModel, ChartRect, ChartSeries, ChartSeriesDataLabels, ChartTextBox, ChartTextParagraph, ChartTextRun, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexSunburst, ChartexSunburstRow, ChartexTreemap, ConditionalFormat, DataValidation, DefinedName, Duotone, Dxf, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, GradientFill, GradientFillSpec, GradientStop$1 as GradientStop, HiddenSheetMode, Hyperlink, HyperlinkTarget, ImageAnchor, LegendManualLayout, LoadOptions, MAX_SELECTION_AREAS, MAX_SELECTION_CONTEXT_CELLS, MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, MergeCell, NumFmt, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, OutlinePr, ParsedWorkbook, PathCmd, PathInfo, PatternFill, PhoneticAlignment, PhoneticProperties, PhoneticRun, PhoneticType, PivotCacheSource, PivotDataField, PivotDiagnostic, PivotLocation, PivotMetadataStatus, PivotPageField, PivotPartialReason, PivotTableMetadata, RenderViewportToBitmapOptions, ResolvedList, Row, Run, RunFont, SecondaryValueAxis, ShapeAnchor, ShapeFill, ShapeGeom, ShapeInfo, ShapeParagraph, ShapeText, ShapeTextRun, SharedString, SheetMeta, SheetVisibility, SlicerAnchor, SlicerElementStyle, SlicerItem, SlicerStyle, SolidFill, SpaceLine, Sparkline, SparklineGroup, Styles, TableColumnInfo, TableInfo, ViewerContextMenuEvent, ViewportRange, Workbook, Worksheet, WorksheetCellRange, XlsxComment, XlsxCopyResult, XlsxElementAnchorMarker, XlsxElementContext, XlsxMatchLocation, XlsxRangeSelectionContext, XlsxRenderViewportOptions, XlsxScrollToCellOptions, XlsxSelectionArea, XlsxSelectionContext, XlsxSelectionContextCell, XlsxSelectionContextOptions, XlsxSelectionInput, XlsxSelectionState, XlsxSheetViewer, XlsxSheetViewerOptions, XlsxTextRunInfo, XlsxViewer, XlsxViewerOptions, XlsxViewportOffset, XlsxWorkbook, ZoomableViewer, autoResize, isOoxmlDecodedImageLimitError, openExternalHyperlink, resolveSharedStrings };
|
|
3596
3760
|
}
|
|
3597
3761
|
//#endregion
|
|
3598
3762
|
export { docx_d_exports as docx, pptx_d_exports as pptx, xlsx_d_exports as xlsx };
|