docx-wasm 0.4.18-rc41 → 0.4.18-rc43
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/dist/node/json/run.d.ts +2 -1
- package/dist/node/paragraph-property.d.ts +1 -1
- package/dist/node/pkg/docx_wasm.d.ts +232 -211
- package/dist/node/pkg/docx_wasm.js +309 -259
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +269 -266
- package/dist/node/run-property.d.ts +3 -0
- package/dist/node/run-property.js +15 -0
- package/dist/node/run-property.js.map +1 -1
- package/dist/node/run.d.ts +1 -0
- package/dist/node/run.js +6 -0
- package/dist/node/run.js.map +1 -1
- package/dist/web/json/run.d.ts +2 -1
- package/dist/web/paragraph-property.d.ts +1 -1
- package/dist/web/pkg/docx_wasm.d.ts +232 -211
- package/dist/web/pkg/docx_wasm_bg.js +308 -258
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +269 -266
- package/dist/web/run-property.d.ts +3 -0
- package/dist/web/run-property.js +15 -0
- package/dist/web/run-property.js.map +1 -1
- package/dist/web/run.d.ts +1 -0
- package/dist/web/run.js +6 -0
- package/dist/web/run.js.map +1 -1
- package/js/json/run.ts +2 -0
- package/js/run-property.ts +27 -0
- package/js/run.ts +6 -0
- package/package.json +1 -1
package/dist/node/json/run.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DrawingJSON } from "./drawing";
|
|
2
2
|
import { ShapeJSON } from "./shape";
|
|
3
|
-
import { CommentRangeStartJSON, CommentRangeEndJSON, InsertJSONData, DeleteJSONData } from "..";
|
|
3
|
+
import { CommentRangeStartJSON, CommentRangeEndJSON, InsertJSONData, DeleteJSONData, ShadingJSON } from "..";
|
|
4
4
|
import { BorderType } from "../border";
|
|
5
5
|
import { VertAlignType } from "../run-property";
|
|
6
6
|
import { FieldChar } from "./bindings/FieldChar";
|
|
@@ -48,6 +48,7 @@ export type RunPropertyJSON = {
|
|
|
48
48
|
del?: DeleteJSONData | null;
|
|
49
49
|
strike?: boolean;
|
|
50
50
|
dstrike?: boolean;
|
|
51
|
+
shading?: ShadingJSON | null;
|
|
51
52
|
};
|
|
52
53
|
export type RunChildJSON = TextJSON | SymJSON | DeleteTextJSON | TabJSON | BreakJSON | DrawingJSON | PtabJSON | ShapeJSON | CommentRangeStartJSON | CommentRangeEndJSON | FieldCharJSON | InstrTextStringJSON;
|
|
53
54
|
export type TextJSON = {
|
|
@@ -91,5 +91,5 @@ export declare class ParagraphPropertyChange {
|
|
|
91
91
|
numbering(id: number, level: number): this;
|
|
92
92
|
}
|
|
93
93
|
export declare const buildLineSpacing: (p: ParagraphProperty) => wasm.LineSpacing | null;
|
|
94
|
-
export declare const setParagraphProperty: <T extends wasm.
|
|
94
|
+
export declare const setParagraphProperty: <T extends wasm.Paragraph | wasm.Style>(target: T, property: ParagraphProperty) => T;
|
|
95
95
|
export declare const createParagraphProperty: (property: ParagraphProperty) => wasm.ParagraphProperty;
|
|
@@ -1,18 +1,38 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {
|
|
5
|
-
* @
|
|
4
|
+
* @param {string} v
|
|
5
|
+
* @param {number} t
|
|
6
|
+
* @returns {Hyperlink}
|
|
6
7
|
*/
|
|
7
|
-
export function
|
|
8
|
+
export function createHyperlink(v: string, t: number): Hyperlink;
|
|
8
9
|
/**
|
|
9
|
-
* @
|
|
10
|
+
* @param {Run} run
|
|
11
|
+
* @returns {Insert}
|
|
10
12
|
*/
|
|
11
|
-
export function
|
|
13
|
+
export function createInsert(run: Run): Insert;
|
|
12
14
|
/**
|
|
13
|
-
* @returns {
|
|
15
|
+
* @returns {PageMargin}
|
|
14
16
|
*/
|
|
15
|
-
export function
|
|
17
|
+
export function createPageMargin(): PageMargin;
|
|
18
|
+
/**
|
|
19
|
+
* @returns {Paragraph}
|
|
20
|
+
*/
|
|
21
|
+
export function createParagraph(): Paragraph;
|
|
22
|
+
/**
|
|
23
|
+
* @param {number} id
|
|
24
|
+
* @returns {Comment}
|
|
25
|
+
*/
|
|
26
|
+
export function createComment(id: number): Comment;
|
|
27
|
+
/**
|
|
28
|
+
* @returns {FrameProperty}
|
|
29
|
+
*/
|
|
30
|
+
export function createFrameProperty(): FrameProperty;
|
|
31
|
+
/**
|
|
32
|
+
* @param {number} level
|
|
33
|
+
* @returns {LevelOverride}
|
|
34
|
+
*/
|
|
35
|
+
export function createLevelOverride(level: number): LevelOverride;
|
|
16
36
|
/**
|
|
17
37
|
* @returns {ParagraphPropertyChange}
|
|
18
38
|
*/
|
|
@@ -22,10 +42,6 @@ export function createParagraphPropertyChange(): ParagraphPropertyChange;
|
|
|
22
42
|
*/
|
|
23
43
|
export function createParagraphProperty(): ParagraphProperty;
|
|
24
44
|
/**
|
|
25
|
-
* @returns {TableCell}
|
|
26
|
-
*/
|
|
27
|
-
export function createTableCell(): TableCell;
|
|
28
|
-
/**
|
|
29
45
|
* @param {string} id
|
|
30
46
|
* @param {string} reference_id
|
|
31
47
|
* @param {string} version
|
|
@@ -35,71 +51,79 @@ export function createTableCell(): TableCell;
|
|
|
35
51
|
*/
|
|
36
52
|
export function createWebExtension(id: string, reference_id: string, version: string, store: string, store_type: string): WebExtension;
|
|
37
53
|
/**
|
|
38
|
-
* @param {
|
|
39
|
-
* @returns {
|
|
54
|
+
* @param {Uint8Array} buf
|
|
55
|
+
* @returns {Pic}
|
|
40
56
|
*/
|
|
41
|
-
export function
|
|
57
|
+
export function createPic(buf: Uint8Array): Pic;
|
|
42
58
|
/**
|
|
43
|
-
* @
|
|
59
|
+
* @param {Uint8Array} buf
|
|
60
|
+
* @returns {string}
|
|
44
61
|
*/
|
|
45
|
-
export function
|
|
62
|
+
export function readDocx(buf: Uint8Array): string;
|
|
63
|
+
/**
|
|
64
|
+
* @param {Run} run
|
|
65
|
+
* @returns {Delete}
|
|
66
|
+
*/
|
|
67
|
+
export function createDelete(run: Run): Delete;
|
|
68
|
+
/**
|
|
69
|
+
* @returns {LineSpacing}
|
|
70
|
+
*/
|
|
71
|
+
export function createLineSpacing(): LineSpacing;
|
|
46
72
|
/**
|
|
47
73
|
* @returns {Run}
|
|
48
74
|
*/
|
|
49
75
|
export function createRun(): Run;
|
|
50
76
|
/**
|
|
51
|
-
* @returns {
|
|
77
|
+
* @returns {TableCell}
|
|
52
78
|
*/
|
|
53
|
-
export function
|
|
79
|
+
export function createTableCell(): TableCell;
|
|
54
80
|
/**
|
|
55
81
|
* @param {number} position
|
|
56
82
|
* @returns {TableCellBorder}
|
|
57
83
|
*/
|
|
58
84
|
export function createTableCellBorder(position: number): TableCellBorder;
|
|
59
85
|
/**
|
|
60
|
-
* @returns {
|
|
86
|
+
* @returns {RunFonts}
|
|
61
87
|
*/
|
|
62
|
-
export function
|
|
88
|
+
export function createRunFonts(): RunFonts;
|
|
63
89
|
/**
|
|
64
|
-
* @
|
|
65
|
-
* @returns {Insert}
|
|
90
|
+
* @returns {Docx}
|
|
66
91
|
*/
|
|
67
|
-
export function
|
|
92
|
+
export function createDocx(): Docx;
|
|
68
93
|
/**
|
|
69
|
-
* @
|
|
70
|
-
* @returns {string}
|
|
94
|
+
* @returns {Footer}
|
|
71
95
|
*/
|
|
72
|
-
export function
|
|
96
|
+
export function createFooter(): Footer;
|
|
73
97
|
/**
|
|
74
|
-
* @returns {
|
|
98
|
+
* @returns {PageNum}
|
|
75
99
|
*/
|
|
76
|
-
export function
|
|
100
|
+
export function createPageNum(): PageNum;
|
|
77
101
|
/**
|
|
78
|
-
* @
|
|
102
|
+
* @param {number} id
|
|
103
|
+
* @param {number} abstract_num_id
|
|
104
|
+
* @returns {Numbering}
|
|
79
105
|
*/
|
|
80
|
-
export function
|
|
106
|
+
export function createNumbering(id: number, abstract_num_id: number): Numbering;
|
|
81
107
|
/**
|
|
82
|
-
* @
|
|
83
|
-
* @param {number} style_type
|
|
84
|
-
* @returns {Style}
|
|
108
|
+
* @returns {RunProperty}
|
|
85
109
|
*/
|
|
86
|
-
export function
|
|
110
|
+
export function createRunProperty(): RunProperty;
|
|
87
111
|
/**
|
|
88
|
-
* @
|
|
89
|
-
* @param {number} t
|
|
90
|
-
* @returns {Hyperlink}
|
|
112
|
+
* @returns {Table}
|
|
91
113
|
*/
|
|
92
|
-
export function
|
|
114
|
+
export function createTable(): Table;
|
|
93
115
|
/**
|
|
94
|
-
* @
|
|
95
|
-
* @param {number} abstract_num_id
|
|
96
|
-
* @returns {Numbering}
|
|
116
|
+
* @returns {TablePositionProperty}
|
|
97
117
|
*/
|
|
98
|
-
export function
|
|
118
|
+
export function createTablePosition(): TablePositionProperty;
|
|
99
119
|
/**
|
|
100
|
-
* @returns {
|
|
120
|
+
* @returns {TableRow}
|
|
101
121
|
*/
|
|
102
|
-
export function
|
|
122
|
+
export function createTableRow(): TableRow;
|
|
123
|
+
/**
|
|
124
|
+
* @returns {Header}
|
|
125
|
+
*/
|
|
126
|
+
export function createHeader(): Header;
|
|
103
127
|
/**
|
|
104
128
|
* @param {number} alignment
|
|
105
129
|
* @param {number} relative_to
|
|
@@ -108,9 +132,29 @@ export function createParagraph(): Paragraph;
|
|
|
108
132
|
*/
|
|
109
133
|
export function createPositionalTab(alignment: number, relative_to: number, leader: number): PositionalTab;
|
|
110
134
|
/**
|
|
111
|
-
* @
|
|
135
|
+
* @param {string} style_id
|
|
136
|
+
* @param {number} style_type
|
|
137
|
+
* @returns {Style}
|
|
112
138
|
*/
|
|
113
|
-
export function
|
|
139
|
+
export function createStyle(style_id: string, style_type: number): Style;
|
|
140
|
+
/**
|
|
141
|
+
* @param {number} id
|
|
142
|
+
* @returns {AbstractNumbering}
|
|
143
|
+
*/
|
|
144
|
+
export function createAbstractNumbering(id: number): AbstractNumbering;
|
|
145
|
+
/**
|
|
146
|
+
* @param {number} id
|
|
147
|
+
* @param {number} start
|
|
148
|
+
* @param {string} format
|
|
149
|
+
* @param {string} text
|
|
150
|
+
* @param {string} jc
|
|
151
|
+
* @returns {Level}
|
|
152
|
+
*/
|
|
153
|
+
export function createLevel(id: number, start: number, format: string, text: string, jc: string): Level;
|
|
154
|
+
/**
|
|
155
|
+
* @returns {NumPages}
|
|
156
|
+
*/
|
|
157
|
+
export function createNumPages(): NumPages;
|
|
114
158
|
/**
|
|
115
159
|
* @param {number | undefined} start
|
|
116
160
|
* @param {string | undefined} chap_style
|
|
@@ -118,10 +162,6 @@ export function createLineSpacing(): LineSpacing;
|
|
|
118
162
|
*/
|
|
119
163
|
export function createPageNumType(start?: number, chap_style?: string): PageNumType;
|
|
120
164
|
/**
|
|
121
|
-
* @returns {RunProperty}
|
|
122
|
-
*/
|
|
123
|
-
export function createRunProperty(): RunProperty;
|
|
124
|
-
/**
|
|
125
165
|
* @returns {TableOfContents}
|
|
126
166
|
*/
|
|
127
167
|
export function createTableOfContents(): TableOfContents;
|
|
@@ -135,46 +175,6 @@ export function createTableOfContentsWithInstrText(s: string): TableOfContents;
|
|
|
135
175
|
*/
|
|
136
176
|
export function createTableOfContentsItem(): TableOfContentsItem;
|
|
137
177
|
/**
|
|
138
|
-
* @param {number} id
|
|
139
|
-
* @returns {Comment}
|
|
140
|
-
*/
|
|
141
|
-
export function createComment(id: number): Comment;
|
|
142
|
-
/**
|
|
143
|
-
* @returns {Docx}
|
|
144
|
-
*/
|
|
145
|
-
export function createDocx(): Docx;
|
|
146
|
-
/**
|
|
147
|
-
* @param {Run} run
|
|
148
|
-
* @returns {Delete}
|
|
149
|
-
*/
|
|
150
|
-
export function createDelete(run: Run): Delete;
|
|
151
|
-
/**
|
|
152
|
-
* @returns {FrameProperty}
|
|
153
|
-
*/
|
|
154
|
-
export function createFrameProperty(): FrameProperty;
|
|
155
|
-
/**
|
|
156
|
-
* @returns {Header}
|
|
157
|
-
*/
|
|
158
|
-
export function createHeader(): Header;
|
|
159
|
-
/**
|
|
160
|
-
* @param {number} id
|
|
161
|
-
* @param {number} start
|
|
162
|
-
* @param {string} format
|
|
163
|
-
* @param {string} text
|
|
164
|
-
* @param {string} jc
|
|
165
|
-
* @returns {Level}
|
|
166
|
-
*/
|
|
167
|
-
export function createLevel(id: number, start: number, format: string, text: string, jc: string): Level;
|
|
168
|
-
/**
|
|
169
|
-
* @param {number} level
|
|
170
|
-
* @returns {LevelOverride}
|
|
171
|
-
*/
|
|
172
|
-
export function createLevelOverride(level: number): LevelOverride;
|
|
173
|
-
/**
|
|
174
|
-
* @returns {TablePositionProperty}
|
|
175
|
-
*/
|
|
176
|
-
export function createTablePosition(): TablePositionProperty;
|
|
177
|
-
/**
|
|
178
178
|
*/
|
|
179
179
|
export enum BorderType {
|
|
180
180
|
Nil,
|
|
@@ -338,125 +338,36 @@ export enum FontPitchType {
|
|
|
338
338
|
}
|
|
339
339
|
/**
|
|
340
340
|
*/
|
|
341
|
-
export enum
|
|
342
|
-
|
|
343
|
-
SuperScript,
|
|
344
|
-
SubScript,
|
|
345
|
-
Unsupported,
|
|
346
|
-
}
|
|
347
|
-
/**
|
|
348
|
-
*/
|
|
349
|
-
export enum TableAlignmentType {
|
|
341
|
+
export enum AlignmentType {
|
|
342
|
+
Both,
|
|
350
343
|
Center,
|
|
344
|
+
Distribute,
|
|
345
|
+
Start,
|
|
346
|
+
End,
|
|
351
347
|
Left,
|
|
352
348
|
Right,
|
|
349
|
+
Justified,
|
|
353
350
|
}
|
|
354
351
|
/**
|
|
355
352
|
*/
|
|
356
|
-
export enum
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
Tb,
|
|
362
|
-
TbV,
|
|
363
|
-
TbRlV,
|
|
364
|
-
TbRl,
|
|
365
|
-
BtLr,
|
|
366
|
-
LrTbV,
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
*/
|
|
370
|
-
export enum TableBorderPosition {
|
|
371
|
-
Left,
|
|
372
|
-
Right,
|
|
373
|
-
Top,
|
|
374
|
-
Bottom,
|
|
375
|
-
InsideH,
|
|
376
|
-
InsideV,
|
|
353
|
+
export enum FieldCharType {
|
|
354
|
+
Begin,
|
|
355
|
+
Separate,
|
|
356
|
+
End,
|
|
357
|
+
Unsupported,
|
|
377
358
|
}
|
|
378
359
|
/**
|
|
379
360
|
*/
|
|
380
|
-
export enum
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
Top,
|
|
384
|
-
Bottom,
|
|
385
|
-
InsideH,
|
|
386
|
-
InsideV,
|
|
387
|
-
Tl2br,
|
|
388
|
-
Tr2bl,
|
|
361
|
+
export enum SpecialIndentKind {
|
|
362
|
+
FirstLine,
|
|
363
|
+
Hanging,
|
|
389
364
|
}
|
|
390
365
|
/**
|
|
391
366
|
*/
|
|
392
|
-
export enum
|
|
367
|
+
export enum TableAlignmentType {
|
|
368
|
+
Center,
|
|
393
369
|
Left,
|
|
394
370
|
Right,
|
|
395
|
-
Top,
|
|
396
|
-
Bottom,
|
|
397
|
-
Between,
|
|
398
|
-
Bar,
|
|
399
|
-
}
|
|
400
|
-
/**
|
|
401
|
-
*/
|
|
402
|
-
export enum TabLeaderType {
|
|
403
|
-
Dot,
|
|
404
|
-
Heavy,
|
|
405
|
-
Hyphen,
|
|
406
|
-
MiddleDot,
|
|
407
|
-
None,
|
|
408
|
-
Underscore,
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
*/
|
|
412
|
-
export enum TableLayoutType {
|
|
413
|
-
Fixed,
|
|
414
|
-
Autofit,
|
|
415
|
-
}
|
|
416
|
-
/**
|
|
417
|
-
*/
|
|
418
|
-
export enum VAlignType {
|
|
419
|
-
Top,
|
|
420
|
-
Center,
|
|
421
|
-
Bottom,
|
|
422
|
-
Unsupported,
|
|
423
|
-
}
|
|
424
|
-
/**
|
|
425
|
-
*/
|
|
426
|
-
export enum CharacterSpacingValues {
|
|
427
|
-
DoNotCompress,
|
|
428
|
-
CompressPunctuation,
|
|
429
|
-
CompressPunctuationAndJapaneseKana,
|
|
430
|
-
Unsupported,
|
|
431
|
-
}
|
|
432
|
-
/**
|
|
433
|
-
*/
|
|
434
|
-
export enum HeightRule {
|
|
435
|
-
Auto,
|
|
436
|
-
AtLeast,
|
|
437
|
-
Exact,
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
*/
|
|
441
|
-
export enum LevelSuffixType {
|
|
442
|
-
Nothing,
|
|
443
|
-
Space,
|
|
444
|
-
Tab,
|
|
445
|
-
}
|
|
446
|
-
/**
|
|
447
|
-
*/
|
|
448
|
-
export enum PositionalTabRelativeTo {
|
|
449
|
-
Indent,
|
|
450
|
-
Margin,
|
|
451
|
-
}
|
|
452
|
-
/**
|
|
453
|
-
*/
|
|
454
|
-
export enum StyleType {
|
|
455
|
-
Paragraph,
|
|
456
|
-
Character,
|
|
457
|
-
Numbering,
|
|
458
|
-
Table,
|
|
459
|
-
Unsupported,
|
|
460
371
|
}
|
|
461
372
|
/**
|
|
462
373
|
*/
|
|
@@ -531,6 +442,20 @@ export enum TextAlignmentType {
|
|
|
531
442
|
}
|
|
532
443
|
/**
|
|
533
444
|
*/
|
|
445
|
+
export enum TextDirectionType {
|
|
446
|
+
Lr,
|
|
447
|
+
LrV,
|
|
448
|
+
Rl,
|
|
449
|
+
RlV,
|
|
450
|
+
Tb,
|
|
451
|
+
TbV,
|
|
452
|
+
TbRlV,
|
|
453
|
+
TbRl,
|
|
454
|
+
BtLr,
|
|
455
|
+
LrTbV,
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
*/
|
|
534
459
|
export enum VMergeType {
|
|
535
460
|
Continue,
|
|
536
461
|
Restart,
|
|
@@ -538,15 +463,11 @@ export enum VMergeType {
|
|
|
538
463
|
}
|
|
539
464
|
/**
|
|
540
465
|
*/
|
|
541
|
-
export enum
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
End,
|
|
547
|
-
Left,
|
|
548
|
-
Right,
|
|
549
|
-
Justified,
|
|
466
|
+
export enum VertAlignType {
|
|
467
|
+
Baseline,
|
|
468
|
+
SuperScript,
|
|
469
|
+
SubScript,
|
|
470
|
+
Unsupported,
|
|
550
471
|
}
|
|
551
472
|
/**
|
|
552
473
|
*/
|
|
@@ -558,17 +479,96 @@ export enum BreakType {
|
|
|
558
479
|
}
|
|
559
480
|
/**
|
|
560
481
|
*/
|
|
561
|
-
export enum
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
482
|
+
export enum CharacterSpacingValues {
|
|
483
|
+
DoNotCompress,
|
|
484
|
+
CompressPunctuation,
|
|
485
|
+
CompressPunctuationAndJapaneseKana,
|
|
565
486
|
Unsupported,
|
|
566
487
|
}
|
|
567
488
|
/**
|
|
568
489
|
*/
|
|
569
|
-
export enum
|
|
570
|
-
|
|
571
|
-
|
|
490
|
+
export enum HeightRule {
|
|
491
|
+
Auto,
|
|
492
|
+
AtLeast,
|
|
493
|
+
Exact,
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
*/
|
|
497
|
+
export enum LevelSuffixType {
|
|
498
|
+
Nothing,
|
|
499
|
+
Space,
|
|
500
|
+
Tab,
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
*/
|
|
504
|
+
export enum PositionalTabRelativeTo {
|
|
505
|
+
Indent,
|
|
506
|
+
Margin,
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
*/
|
|
510
|
+
export enum StyleType {
|
|
511
|
+
Paragraph,
|
|
512
|
+
Character,
|
|
513
|
+
Numbering,
|
|
514
|
+
Table,
|
|
515
|
+
Unsupported,
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
*/
|
|
519
|
+
export enum VAlignType {
|
|
520
|
+
Top,
|
|
521
|
+
Center,
|
|
522
|
+
Bottom,
|
|
523
|
+
Unsupported,
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
*/
|
|
527
|
+
export enum TableBorderPosition {
|
|
528
|
+
Left,
|
|
529
|
+
Right,
|
|
530
|
+
Top,
|
|
531
|
+
Bottom,
|
|
532
|
+
InsideH,
|
|
533
|
+
InsideV,
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
*/
|
|
537
|
+
export enum TableCellBorderPosition {
|
|
538
|
+
Left,
|
|
539
|
+
Right,
|
|
540
|
+
Top,
|
|
541
|
+
Bottom,
|
|
542
|
+
InsideH,
|
|
543
|
+
InsideV,
|
|
544
|
+
Tl2br,
|
|
545
|
+
Tr2bl,
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
*/
|
|
549
|
+
export enum ParagraphBorderPosition {
|
|
550
|
+
Left,
|
|
551
|
+
Right,
|
|
552
|
+
Top,
|
|
553
|
+
Bottom,
|
|
554
|
+
Between,
|
|
555
|
+
Bar,
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
*/
|
|
559
|
+
export enum TabLeaderType {
|
|
560
|
+
Dot,
|
|
561
|
+
Heavy,
|
|
562
|
+
Hyphen,
|
|
563
|
+
MiddleDot,
|
|
564
|
+
None,
|
|
565
|
+
Underscore,
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
*/
|
|
569
|
+
export enum TableLayoutType {
|
|
570
|
+
Fixed,
|
|
571
|
+
Autofit,
|
|
572
572
|
}
|
|
573
573
|
/**
|
|
574
574
|
*/
|
|
@@ -1699,6 +1699,13 @@ export class Run {
|
|
|
1699
1699
|
*/
|
|
1700
1700
|
vert_align(a: number): Run;
|
|
1701
1701
|
/**
|
|
1702
|
+
* @param {string} t
|
|
1703
|
+
* @param {string} color
|
|
1704
|
+
* @param {string} fill
|
|
1705
|
+
* @returns {Run}
|
|
1706
|
+
*/
|
|
1707
|
+
shading(t: string, color: string, fill: string): Run;
|
|
1708
|
+
/**
|
|
1702
1709
|
* @param {number} border_type
|
|
1703
1710
|
* @param {number} size
|
|
1704
1711
|
* @param {number} space
|
|
@@ -1861,6 +1868,13 @@ export class RunProperty {
|
|
|
1861
1868
|
* @returns {RunProperty}
|
|
1862
1869
|
*/
|
|
1863
1870
|
text_border(border_type: number, size: number, space: number, color: string): RunProperty;
|
|
1871
|
+
/**
|
|
1872
|
+
* @param {string} t
|
|
1873
|
+
* @param {string} color
|
|
1874
|
+
* @param {string} fill
|
|
1875
|
+
* @returns {RunProperty}
|
|
1876
|
+
*/
|
|
1877
|
+
shading(t: string, color: string, fill: string): RunProperty;
|
|
1864
1878
|
}
|
|
1865
1879
|
/**
|
|
1866
1880
|
*/
|
|
@@ -1913,6 +1927,13 @@ export class Style {
|
|
|
1913
1927
|
*/
|
|
1914
1928
|
underline(line_type: string): Style;
|
|
1915
1929
|
/**
|
|
1930
|
+
* @param {string} t
|
|
1931
|
+
* @param {string} color
|
|
1932
|
+
* @param {string} fill
|
|
1933
|
+
* @returns {Style}
|
|
1934
|
+
*/
|
|
1935
|
+
shading(t: string, color: string, fill: string): Style;
|
|
1936
|
+
/**
|
|
1916
1937
|
* @param {string} link
|
|
1917
1938
|
* @returns {Style}
|
|
1918
1939
|
*/
|