@silurus/ooxml 0.56.0 → 0.57.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 +8 -5
- package/dist/docx-BWAno6Ct.js +1661 -0
- package/dist/docx.mjs +2 -2
- package/dist/index.mjs +3 -3
- package/dist/pptx-5Y2LWU2Z.js +1614 -0
- package/dist/pptx.mjs +2 -2
- package/dist/src-BM-QyfQO.js +29312 -0
- package/dist/types/docx.d.ts +21 -21
- package/dist/types/index.d.ts +465 -11
- package/dist/types/pptx.d.ts +351 -24
- package/dist/types/xlsx.d.ts +83 -38
- package/dist/xlsx-qDuC11Rx.js +3502 -0
- package/dist/xlsx.mjs +2 -2
- package/package.json +1 -1
- package/dist/docx-g-cBdnSQ.js +0 -1661
- package/dist/pptx-DkKGg5bQ.js +0 -23667
- package/dist/src-CFPOemuW.js +0 -6810
- package/dist/xlsx-Bx216pgL.js +0 -3483
package/dist/types/docx.d.ts
CHANGED
|
@@ -32,13 +32,13 @@ export declare type BodyElement = {
|
|
|
32
32
|
parity?: 'odd' | 'even';
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
declare interface BorderSpec {
|
|
35
|
+
export declare interface BorderSpec {
|
|
36
36
|
width: number;
|
|
37
37
|
color: string | null;
|
|
38
38
|
style: string;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
declare interface CellBorders {
|
|
41
|
+
export declare interface CellBorders {
|
|
42
42
|
top: BorderSpec | null;
|
|
43
43
|
bottom: BorderSpec | null;
|
|
44
44
|
left: BorderSpec | null;
|
|
@@ -46,7 +46,7 @@ declare interface CellBorders {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/** ECMA-376 §17.4.7: a table cell may contain paragraphs AND nested tables. */
|
|
49
|
-
declare type CellElement = {
|
|
49
|
+
export declare type CellElement = {
|
|
50
50
|
type: 'paragraph';
|
|
51
51
|
} & DocParagraph | {
|
|
52
52
|
type: 'table';
|
|
@@ -137,7 +137,7 @@ export declare type DocRun = {
|
|
|
137
137
|
fontSize: number;
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
-
declare interface DocSettings {
|
|
140
|
+
export declare interface DocSettings {
|
|
141
141
|
/** §17.15.1.58 `w:kinsoku` — East-Asian line-breaking toggle. `undefined`
|
|
142
142
|
* means the element is absent; the spec default is ON (treated as `true`). */
|
|
143
143
|
kinsoku?: boolean;
|
|
@@ -150,7 +150,7 @@ declare interface DocSettings {
|
|
|
150
150
|
noLineBreaksAfter?: string;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
declare interface DocTable {
|
|
153
|
+
export declare interface DocTable {
|
|
154
154
|
colWidths: number[];
|
|
155
155
|
rows: DocTableRow[];
|
|
156
156
|
borders: TableBorders;
|
|
@@ -178,7 +178,7 @@ declare interface DocTable {
|
|
|
178
178
|
bidiVisual?: boolean;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
declare interface DocTableCell {
|
|
181
|
+
export declare interface DocTableCell {
|
|
182
182
|
content: CellElement[];
|
|
183
183
|
colSpan: number;
|
|
184
184
|
vMerge: boolean | null;
|
|
@@ -201,7 +201,7 @@ declare interface DocTableCell {
|
|
|
201
201
|
marginRight?: number | null;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
declare interface DocTableRow {
|
|
204
|
+
export declare interface DocTableRow {
|
|
205
205
|
cells: DocTableCell[];
|
|
206
206
|
rowHeight: number | null;
|
|
207
207
|
/** ECMA-376 §17.4.80 hRule. "auto" (default) = informational; "atLeast" =
|
|
@@ -372,7 +372,7 @@ export declare interface DocxViewerOptions extends RenderPageOptions, LoadOption
|
|
|
372
372
|
onError?: (err: Error) => void;
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
declare interface FieldRun {
|
|
375
|
+
export declare interface FieldRun {
|
|
376
376
|
/** "page" | "numPages" | "other" */
|
|
377
377
|
fieldType: string;
|
|
378
378
|
instruction: string;
|
|
@@ -392,18 +392,18 @@ declare interface FieldRun {
|
|
|
392
392
|
highlight?: string | null;
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
declare interface GradientStop {
|
|
395
|
+
export declare interface GradientStop {
|
|
396
396
|
/** 0.0–1.0 */
|
|
397
397
|
position: number;
|
|
398
398
|
/** hex 6-char */
|
|
399
399
|
color: string;
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
-
declare interface HeaderFooter {
|
|
402
|
+
export declare interface HeaderFooter {
|
|
403
403
|
body: BodyElement[];
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
declare interface HeadersFooters {
|
|
406
|
+
export declare interface HeadersFooters {
|
|
407
407
|
default: HeaderFooter | null;
|
|
408
408
|
first: HeaderFooter | null;
|
|
409
409
|
even: HeaderFooter | null;
|
|
@@ -453,7 +453,7 @@ export declare interface ImageRun {
|
|
|
453
453
|
wrapSide?: string;
|
|
454
454
|
}
|
|
455
455
|
|
|
456
|
-
declare interface LineSpacing {
|
|
456
|
+
export declare interface LineSpacing {
|
|
457
457
|
value: number;
|
|
458
458
|
rule: 'auto' | 'exact' | 'atLeast';
|
|
459
459
|
/** True when `w:spacing/@w:line` was set on the paragraph's own pPr or on a
|
|
@@ -648,7 +648,7 @@ declare interface MathSvg {
|
|
|
648
648
|
descentEm: number;
|
|
649
649
|
}
|
|
650
650
|
|
|
651
|
-
declare interface NumberingInfo {
|
|
651
|
+
export declare interface NumberingInfo {
|
|
652
652
|
numId: number;
|
|
653
653
|
level: number;
|
|
654
654
|
format: string;
|
|
@@ -657,7 +657,7 @@ declare interface NumberingInfo {
|
|
|
657
657
|
tab: number;
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
-
declare interface ParaBorderEdge {
|
|
660
|
+
export declare interface ParaBorderEdge {
|
|
661
661
|
style: string;
|
|
662
662
|
color: string | null;
|
|
663
663
|
/** pt (sz / 8) */
|
|
@@ -666,7 +666,7 @@ declare interface ParaBorderEdge {
|
|
|
666
666
|
space: number;
|
|
667
667
|
}
|
|
668
668
|
|
|
669
|
-
declare interface ParagraphBorders {
|
|
669
|
+
export declare interface ParagraphBorders {
|
|
670
670
|
top: ParaBorderEdge | null;
|
|
671
671
|
bottom: ParaBorderEdge | null;
|
|
672
672
|
left: ParaBorderEdge | null;
|
|
@@ -674,7 +674,7 @@ declare interface ParagraphBorders {
|
|
|
674
674
|
between: ParaBorderEdge | null;
|
|
675
675
|
}
|
|
676
676
|
|
|
677
|
-
declare type PathCmd = {
|
|
677
|
+
export declare type PathCmd = {
|
|
678
678
|
cmd: 'moveTo';
|
|
679
679
|
x: number;
|
|
680
680
|
y: number;
|
|
@@ -721,7 +721,7 @@ export declare interface RenderPageOptions {
|
|
|
721
721
|
showTrackChanges?: boolean;
|
|
722
722
|
}
|
|
723
723
|
|
|
724
|
-
declare interface RubyAnnotation {
|
|
724
|
+
export declare interface RubyAnnotation {
|
|
725
725
|
text: string;
|
|
726
726
|
/** Annotation font size in pt. Word stores this as half-points in `<w:hps>`. */
|
|
727
727
|
fontSizePt: number;
|
|
@@ -765,7 +765,7 @@ declare type ShapeFill = {
|
|
|
765
765
|
gradType: string;
|
|
766
766
|
};
|
|
767
767
|
|
|
768
|
-
declare interface ShapeRun {
|
|
768
|
+
export declare interface ShapeRun {
|
|
769
769
|
widthPt: number;
|
|
770
770
|
heightPt: number;
|
|
771
771
|
/** X offset in pt */
|
|
@@ -832,7 +832,7 @@ declare interface ShapeRun {
|
|
|
832
832
|
textInsetB?: number;
|
|
833
833
|
}
|
|
834
834
|
|
|
835
|
-
declare interface ShapeText {
|
|
835
|
+
export declare interface ShapeText {
|
|
836
836
|
text: string;
|
|
837
837
|
fontSizePt: number;
|
|
838
838
|
color?: string | null;
|
|
@@ -842,7 +842,7 @@ declare interface ShapeText {
|
|
|
842
842
|
alignment: string;
|
|
843
843
|
}
|
|
844
844
|
|
|
845
|
-
declare interface TableBorders {
|
|
845
|
+
export declare interface TableBorders {
|
|
846
846
|
top: BorderSpec | null;
|
|
847
847
|
bottom: BorderSpec | null;
|
|
848
848
|
left: BorderSpec | null;
|
|
@@ -851,7 +851,7 @@ declare interface TableBorders {
|
|
|
851
851
|
insideV: BorderSpec | null;
|
|
852
852
|
}
|
|
853
853
|
|
|
854
|
-
declare interface TabStop {
|
|
854
|
+
export declare interface TabStop {
|
|
855
855
|
/** tab stop position in pt (from the left of paragraph content area) */
|
|
856
856
|
pos: number;
|
|
857
857
|
alignment: 'left' | 'center' | 'right' | 'decimal' | 'bar' | 'clear';
|