docx-wasm 0.4.18-rc2 → 0.4.18-rc21
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/builder.js +6 -6
- package/dist/node/builder.js.map +1 -1
- package/dist/node/doc-defaults.d.ts +1 -1
- package/dist/node/doc-defaults.js +15 -4
- package/dist/node/doc-defaults.js.map +1 -1
- package/dist/node/footer.d.ts +1 -5
- package/dist/node/footer.js +0 -8
- package/dist/node/footer.js.map +1 -1
- package/dist/node/header.d.ts +1 -5
- package/dist/node/header.js +0 -8
- package/dist/node/header.js.map +1 -1
- package/dist/node/index.d.ts +7 -2
- package/dist/node/index.js +27 -19
- package/dist/node/index.js.map +1 -1
- package/dist/node/json/bindings/PositionalTab.d.ts +8 -0
- package/dist/node/json/bindings/PositionalTab.js +3 -0
- package/dist/node/json/bindings/PositionalTab.js.map +1 -0
- package/dist/node/json/bindings/PositionalTabAlignmentType.d.ts +1 -0
- package/dist/node/json/bindings/PositionalTabAlignmentType.js +3 -0
- package/dist/node/json/bindings/PositionalTabAlignmentType.js.map +1 -0
- package/dist/node/json/bindings/PositionalTabRelativeTo.d.ts +1 -0
- package/dist/node/json/bindings/PositionalTabRelativeTo.js +3 -0
- package/dist/node/json/bindings/PositionalTabRelativeTo.js.map +1 -0
- package/dist/node/json/paragraph.d.ts +1 -0
- package/dist/node/json/run.d.ts +13 -2
- package/dist/node/level.d.ts +1 -1
- package/dist/node/level.js +11 -10
- package/dist/node/level.js.map +1 -1
- package/dist/node/paragraph-property.d.ts +21 -7
- package/dist/node/paragraph-property.js +258 -31
- package/dist/node/paragraph-property.js.map +1 -1
- package/dist/node/paragraph.d.ts +4 -1
- package/dist/node/paragraph.js +24 -16
- package/dist/node/paragraph.js.map +1 -1
- package/dist/node/pkg/docx_wasm.d.ts +609 -262
- package/dist/node/pkg/docx_wasm.js +1070 -333
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +187 -121
- package/dist/node/positional-tab.d.ts +12 -0
- package/dist/node/positional-tab.js +44 -0
- package/dist/node/positional-tab.js.map +1 -0
- package/dist/node/run-property.d.ts +74 -0
- package/dist/node/run-property.js +303 -0
- package/dist/node/run-property.js.map +1 -0
- package/dist/node/run.d.ts +4 -57
- package/dist/node/run.js +58 -177
- package/dist/node/run.js.map +1 -1
- package/dist/node/style.d.ts +3 -1
- package/dist/node/style.js +42 -42
- package/dist/node/style.js.map +1 -1
- package/dist/node/styles.d.ts +1 -1
- package/dist/node/tab-leader.d.ts +3 -0
- package/dist/node/tab-leader.js +48 -0
- package/dist/node/tab-leader.js.map +1 -0
- package/dist/node/table-cell.js +9 -9
- package/dist/node/table-cell.js.map +1 -1
- package/dist/node/table-of-contents.d.ts +3 -0
- package/dist/node/table-of-contents.js +9 -0
- package/dist/node/table-of-contents.js.map +1 -1
- package/dist/web/builder.js +6 -6
- package/dist/web/builder.js.map +1 -1
- package/dist/web/doc-defaults.d.ts +1 -1
- package/dist/web/doc-defaults.js +15 -4
- package/dist/web/doc-defaults.js.map +1 -1
- package/dist/web/footer.d.ts +1 -5
- package/dist/web/footer.js +0 -8
- package/dist/web/footer.js.map +1 -1
- package/dist/web/header.d.ts +1 -5
- package/dist/web/header.js +0 -8
- package/dist/web/header.js.map +1 -1
- package/dist/web/index.d.ts +7 -2
- package/dist/web/index.js +27 -19
- package/dist/web/index.js.map +1 -1
- package/dist/web/json/bindings/PositionalTab.d.ts +8 -0
- package/dist/web/json/bindings/PositionalTab.js +2 -0
- package/dist/web/json/bindings/PositionalTab.js.map +1 -0
- package/dist/web/json/bindings/PositionalTabAlignmentType.d.ts +1 -0
- package/dist/web/json/bindings/PositionalTabAlignmentType.js +2 -0
- package/dist/web/json/bindings/PositionalTabAlignmentType.js.map +1 -0
- package/dist/web/json/bindings/PositionalTabRelativeTo.d.ts +1 -0
- package/dist/web/json/bindings/PositionalTabRelativeTo.js +2 -0
- package/dist/web/json/bindings/PositionalTabRelativeTo.js.map +1 -0
- package/dist/web/json/paragraph.d.ts +1 -0
- package/dist/web/json/run.d.ts +13 -2
- package/dist/web/level.d.ts +1 -1
- package/dist/web/level.js +11 -10
- package/dist/web/level.js.map +1 -1
- package/dist/web/paragraph-property.d.ts +21 -7
- package/dist/web/paragraph-property.js +255 -30
- package/dist/web/paragraph-property.js.map +1 -1
- package/dist/web/paragraph.d.ts +4 -1
- package/dist/web/paragraph.js +24 -16
- package/dist/web/paragraph.js.map +1 -1
- package/dist/web/pkg/docx_wasm.d.ts +609 -262
- package/dist/web/pkg/docx_wasm_bg.js +1063 -330
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +187 -121
- package/dist/web/positional-tab.d.ts +12 -0
- package/dist/web/positional-tab.js +40 -0
- package/dist/web/positional-tab.js.map +1 -0
- package/dist/web/run-property.d.ts +74 -0
- package/dist/web/run-property.js +271 -0
- package/dist/web/run-property.js.map +1 -0
- package/dist/web/run.d.ts +4 -57
- package/dist/web/run.js +57 -172
- package/dist/web/run.js.map +1 -1
- package/dist/web/style.d.ts +3 -1
- package/dist/web/style.js +42 -42
- package/dist/web/style.js.map +1 -1
- package/dist/web/styles.d.ts +1 -1
- package/dist/web/tab-leader.d.ts +3 -0
- package/dist/web/tab-leader.js +21 -0
- package/dist/web/tab-leader.js.map +1 -0
- package/dist/web/table-cell.js +1 -1
- package/dist/web/table-cell.js.map +1 -1
- package/dist/web/table-of-contents.d.ts +3 -0
- package/dist/web/table-of-contents.js +9 -0
- package/dist/web/table-of-contents.js.map +1 -1
- package/js/builder.ts +8 -8
- package/js/doc-defaults.ts +13 -6
- package/js/footer.ts +1 -13
- package/js/header.ts +1 -13
- package/js/index.ts +30 -21
- package/js/json/bindings/PositionalTab.ts +5 -0
- package/js/json/bindings/PositionalTabAlignmentType.ts +2 -0
- package/js/json/bindings/PositionalTabRelativeTo.ts +2 -0
- package/js/json/paragraph.ts +1 -0
- package/js/json/run.ts +14 -1
- package/js/level.ts +15 -11
- package/js/paragraph-property.ts +299 -37
- package/js/paragraph.ts +28 -17
- package/js/positional-tab.ts +50 -0
- package/js/run-property.ts +383 -0
- package/js/run.ts +50 -256
- package/js/style.ts +45 -49
- package/js/styles.ts +1 -1
- package/js/tab-leader.ts +22 -0
- package/js/table-cell.ts +1 -1
- package/js/table-of-contents.ts +16 -0
- package/package.json +11 -8
|
@@ -1,61 +1,69 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
+
* @param {Uint8Array} buf
|
|
5
|
+
* @returns {Pic}
|
|
6
|
+
*/
|
|
7
|
+
export function createPic(buf: Uint8Array): Pic;
|
|
8
|
+
/**
|
|
4
9
|
* @param {number} id
|
|
5
|
-
* @returns {
|
|
10
|
+
* @returns {Comment}
|
|
6
11
|
*/
|
|
7
|
-
export function
|
|
12
|
+
export function createComment(id: number): Comment;
|
|
8
13
|
/**
|
|
9
|
-
* @param {
|
|
10
|
-
* @
|
|
14
|
+
* @param {number} alignment
|
|
15
|
+
* @param {number} relative_to
|
|
16
|
+
* @param {number} leader
|
|
17
|
+
* @returns {PositionalTab}
|
|
11
18
|
*/
|
|
12
|
-
export function
|
|
19
|
+
export function createPositionalTab(alignment: number, relative_to: number, leader: number): PositionalTab;
|
|
13
20
|
/**
|
|
14
|
-
* @
|
|
21
|
+
* @param {string} style_id
|
|
22
|
+
* @param {number} style_type
|
|
23
|
+
* @returns {Style}
|
|
15
24
|
*/
|
|
16
|
-
export function
|
|
25
|
+
export function createStyle(style_id: string, style_type: number): Style;
|
|
17
26
|
/**
|
|
18
|
-
* @
|
|
19
|
-
* @returns {Pic}
|
|
27
|
+
* @returns {NumPages}
|
|
20
28
|
*/
|
|
21
|
-
export function
|
|
29
|
+
export function createNumPages(): NumPages;
|
|
22
30
|
/**
|
|
23
|
-
* @
|
|
24
|
-
* @returns {string}
|
|
31
|
+
* @returns {ParagraphPropertyChange}
|
|
25
32
|
*/
|
|
26
|
-
export function
|
|
33
|
+
export function createParagraphPropertyChange(): ParagraphPropertyChange;
|
|
27
34
|
/**
|
|
28
|
-
* @
|
|
29
|
-
* @returns {Comment}
|
|
35
|
+
* @returns {ParagraphProperty}
|
|
30
36
|
*/
|
|
31
|
-
export function
|
|
37
|
+
export function createParagraphProperty(): ParagraphProperty;
|
|
32
38
|
/**
|
|
33
39
|
* @returns {TableCell}
|
|
34
40
|
*/
|
|
35
41
|
export function createTableCell(): TableCell;
|
|
36
42
|
/**
|
|
37
|
-
* @
|
|
43
|
+
* @param {number} position
|
|
44
|
+
* @returns {TableCellBorder}
|
|
38
45
|
*/
|
|
39
|
-
export function
|
|
46
|
+
export function createTableCellBorder(position: number): TableCellBorder;
|
|
40
47
|
/**
|
|
41
|
-
* @returns {
|
|
48
|
+
* @returns {PageMargin}
|
|
42
49
|
*/
|
|
43
|
-
export function
|
|
50
|
+
export function createPageMargin(): PageMargin;
|
|
44
51
|
/**
|
|
45
|
-
* @param {
|
|
46
|
-
* @param {number}
|
|
47
|
-
* @returns {
|
|
52
|
+
* @param {number} id
|
|
53
|
+
* @param {number} abstract_num_id
|
|
54
|
+
* @returns {Numbering}
|
|
48
55
|
*/
|
|
49
|
-
export function
|
|
56
|
+
export function createNumbering(id: number, abstract_num_id: number): Numbering;
|
|
50
57
|
/**
|
|
51
|
-
* @
|
|
58
|
+
* @param {number | undefined} start
|
|
59
|
+
* @param {string | undefined} chap_style
|
|
60
|
+
* @returns {PageNumType}
|
|
52
61
|
*/
|
|
53
|
-
export function
|
|
62
|
+
export function createPageNumType(start?: number, chap_style?: string): PageNumType;
|
|
54
63
|
/**
|
|
55
|
-
* @
|
|
56
|
-
* @returns {TableOfContents}
|
|
64
|
+
* @returns {Paragraph}
|
|
57
65
|
*/
|
|
58
|
-
export function
|
|
66
|
+
export function createParagraph(): Paragraph;
|
|
59
67
|
/**
|
|
60
68
|
* @param {string} id
|
|
61
69
|
* @param {string} reference_id
|
|
@@ -66,23 +74,65 @@ export function createTableOfContentsWithInstrText(s: string): TableOfContents;
|
|
|
66
74
|
*/
|
|
67
75
|
export function createWebExtension(id: string, reference_id: string, version: string, store: string, store_type: string): WebExtension;
|
|
68
76
|
/**
|
|
69
|
-
* @
|
|
77
|
+
* @param {number} id
|
|
78
|
+
* @returns {AbstractNumbering}
|
|
70
79
|
*/
|
|
71
|
-
export function
|
|
80
|
+
export function createAbstractNumbering(id: number): AbstractNumbering;
|
|
72
81
|
/**
|
|
73
|
-
* @returns {
|
|
82
|
+
* @returns {PageNum}
|
|
74
83
|
*/
|
|
75
|
-
export function
|
|
84
|
+
export function createPageNum(): PageNum;
|
|
76
85
|
/**
|
|
77
|
-
* @
|
|
86
|
+
* @param {Uint8Array} buf
|
|
87
|
+
* @returns {string}
|
|
78
88
|
*/
|
|
79
|
-
export function
|
|
89
|
+
export function readDocx(buf: Uint8Array): string;
|
|
90
|
+
/**
|
|
91
|
+
* @param {string} v
|
|
92
|
+
* @param {number} t
|
|
93
|
+
* @returns {Hyperlink}
|
|
94
|
+
*/
|
|
95
|
+
export function createHyperlink(v: string, t: number): Hyperlink;
|
|
80
96
|
/**
|
|
81
97
|
* @param {Run} run
|
|
82
98
|
* @returns {Insert}
|
|
83
99
|
*/
|
|
84
100
|
export function createInsert(run: Run): Insert;
|
|
85
101
|
/**
|
|
102
|
+
* @returns {LineSpacing}
|
|
103
|
+
*/
|
|
104
|
+
export function createLineSpacing(): LineSpacing;
|
|
105
|
+
/**
|
|
106
|
+
* @returns {TableOfContents}
|
|
107
|
+
*/
|
|
108
|
+
export function createTableOfContents(): TableOfContents;
|
|
109
|
+
/**
|
|
110
|
+
* @param {string} s
|
|
111
|
+
* @returns {TableOfContents}
|
|
112
|
+
*/
|
|
113
|
+
export function createTableOfContentsWithInstrText(s: string): TableOfContents;
|
|
114
|
+
/**
|
|
115
|
+
* @returns {TableOfContentsItem}
|
|
116
|
+
*/
|
|
117
|
+
export function createTableOfContentsItem(): TableOfContentsItem;
|
|
118
|
+
/**
|
|
119
|
+
* @returns {TableRow}
|
|
120
|
+
*/
|
|
121
|
+
export function createTableRow(): TableRow;
|
|
122
|
+
/**
|
|
123
|
+
* @param {Run} run
|
|
124
|
+
* @returns {Delete}
|
|
125
|
+
*/
|
|
126
|
+
export function createDelete(run: Run): Delete;
|
|
127
|
+
/**
|
|
128
|
+
* @returns {FrameProperty}
|
|
129
|
+
*/
|
|
130
|
+
export function createFrameProperty(): FrameProperty;
|
|
131
|
+
/**
|
|
132
|
+
* @returns {Header}
|
|
133
|
+
*/
|
|
134
|
+
export function createHeader(): Header;
|
|
135
|
+
/**
|
|
86
136
|
* @param {number} id
|
|
87
137
|
* @param {number} start
|
|
88
138
|
* @param {string} format
|
|
@@ -97,64 +147,112 @@ export function createLevel(id: number, start: number, format: string, text: str
|
|
|
97
147
|
*/
|
|
98
148
|
export function createLevelOverride(level: number): LevelOverride;
|
|
99
149
|
/**
|
|
100
|
-
* @param {number} id
|
|
101
|
-
* @param {number} abstract_num_id
|
|
102
|
-
* @returns {Numbering}
|
|
103
|
-
*/
|
|
104
|
-
export function createNumbering(id: number, abstract_num_id: number): Numbering;
|
|
105
|
-
/**
|
|
106
150
|
* @returns {Table}
|
|
107
151
|
*/
|
|
108
152
|
export function createTable(): Table;
|
|
109
153
|
/**
|
|
110
|
-
* @returns {TableOfContentsItem}
|
|
111
|
-
*/
|
|
112
|
-
export function createTableOfContentsItem(): TableOfContentsItem;
|
|
113
|
-
/**
|
|
114
|
-
* @returns {LineSpacing}
|
|
115
|
-
*/
|
|
116
|
-
export function createLineSpacing(): LineSpacing;
|
|
117
|
-
/**
|
|
118
154
|
* @returns {Run}
|
|
119
155
|
*/
|
|
120
156
|
export function createRun(): Run;
|
|
121
157
|
/**
|
|
122
|
-
* @
|
|
123
|
-
* @returns {TableCellBorder}
|
|
158
|
+
* @returns {RunFonts}
|
|
124
159
|
*/
|
|
125
|
-
export function
|
|
160
|
+
export function createRunFonts(): RunFonts;
|
|
161
|
+
/**
|
|
162
|
+
* @returns {RunProperty}
|
|
163
|
+
*/
|
|
164
|
+
export function createRunProperty(): RunProperty;
|
|
126
165
|
/**
|
|
127
166
|
* @returns {TablePositionProperty}
|
|
128
167
|
*/
|
|
129
168
|
export function createTablePosition(): TablePositionProperty;
|
|
130
169
|
/**
|
|
131
|
-
* @returns {
|
|
170
|
+
* @returns {Docx}
|
|
132
171
|
*/
|
|
133
|
-
export function
|
|
172
|
+
export function createDocx(): Docx;
|
|
134
173
|
/**
|
|
135
|
-
* @returns {
|
|
174
|
+
* @returns {Footer}
|
|
136
175
|
*/
|
|
137
|
-
export function
|
|
176
|
+
export function createFooter(): Footer;
|
|
138
177
|
/**
|
|
139
|
-
* @param {number | undefined} start
|
|
140
|
-
* @param {string | undefined} chap_style
|
|
141
|
-
* @returns {PageNumType}
|
|
142
178
|
*/
|
|
143
|
-
export
|
|
179
|
+
export enum HyperlinkType {
|
|
180
|
+
Anchor,
|
|
181
|
+
External,
|
|
182
|
+
}
|
|
144
183
|
/**
|
|
145
|
-
* @returns {RunFonts}
|
|
146
184
|
*/
|
|
147
|
-
export
|
|
185
|
+
export enum LevelSuffixType {
|
|
186
|
+
Nothing,
|
|
187
|
+
Space,
|
|
188
|
+
Tab,
|
|
189
|
+
}
|
|
148
190
|
/**
|
|
149
|
-
* @returns {Docx}
|
|
150
191
|
*/
|
|
151
|
-
export
|
|
192
|
+
export enum VMergeType {
|
|
193
|
+
Continue,
|
|
194
|
+
Restart,
|
|
195
|
+
Unsupported,
|
|
196
|
+
}
|
|
152
197
|
/**
|
|
153
|
-
* @param {string} v
|
|
154
|
-
* @param {number} t
|
|
155
|
-
* @returns {Hyperlink}
|
|
156
198
|
*/
|
|
157
|
-
export
|
|
199
|
+
export enum SpecialIndentKind {
|
|
200
|
+
FirstLine,
|
|
201
|
+
Hanging,
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
*/
|
|
205
|
+
export enum TableLayoutType {
|
|
206
|
+
Fixed,
|
|
207
|
+
Autofit,
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
*/
|
|
211
|
+
export enum VertAlignType {
|
|
212
|
+
Baseline,
|
|
213
|
+
SuperScript,
|
|
214
|
+
SubScript,
|
|
215
|
+
Unsupported,
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
*/
|
|
219
|
+
export enum PageOrientationType {
|
|
220
|
+
Landscape,
|
|
221
|
+
Portrait,
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
*/
|
|
225
|
+
export enum PositionalTabAlignmentType {
|
|
226
|
+
Center,
|
|
227
|
+
Left,
|
|
228
|
+
Right,
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
*/
|
|
232
|
+
export enum TabLeaderType {
|
|
233
|
+
Dot,
|
|
234
|
+
Heavy,
|
|
235
|
+
Hyphen,
|
|
236
|
+
MiddleDot,
|
|
237
|
+
None,
|
|
238
|
+
Underscore,
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
*/
|
|
242
|
+
export enum TableAlignmentType {
|
|
243
|
+
Center,
|
|
244
|
+
Left,
|
|
245
|
+
Right,
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
*/
|
|
249
|
+
export enum TextAlignmentType {
|
|
250
|
+
Auto,
|
|
251
|
+
Baseline,
|
|
252
|
+
Bottom,
|
|
253
|
+
Center,
|
|
254
|
+
Top,
|
|
255
|
+
}
|
|
158
256
|
/**
|
|
159
257
|
*/
|
|
160
258
|
export enum AlignmentType {
|
|
@@ -169,6 +267,29 @@ export enum AlignmentType {
|
|
|
169
267
|
}
|
|
170
268
|
/**
|
|
171
269
|
*/
|
|
270
|
+
export enum CharacterSpacingValues {
|
|
271
|
+
DoNotCompress,
|
|
272
|
+
CompressPunctuation,
|
|
273
|
+
CompressPunctuationAndJapaneseKana,
|
|
274
|
+
Unsupported,
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
*/
|
|
278
|
+
export enum FieldCharType {
|
|
279
|
+
Begin,
|
|
280
|
+
Separate,
|
|
281
|
+
End,
|
|
282
|
+
Unsupported,
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
*/
|
|
286
|
+
export enum LineSpacingType {
|
|
287
|
+
Auto,
|
|
288
|
+
AtLeast,
|
|
289
|
+
Exact,
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
*/
|
|
172
293
|
export enum RelativeFromHType {
|
|
173
294
|
/**
|
|
174
295
|
* Specifies that the horizontal positioning shall be
|
|
@@ -229,107 +350,70 @@ export enum RelativeFromVType {
|
|
|
229
350
|
}
|
|
230
351
|
/**
|
|
231
352
|
*/
|
|
232
|
-
export enum
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
*/
|
|
240
|
-
export enum DrawingPositionType {
|
|
241
|
-
Anchor,
|
|
242
|
-
Inline,
|
|
353
|
+
export enum SectionType {
|
|
354
|
+
NextPage,
|
|
355
|
+
NextColumn,
|
|
356
|
+
Continuous,
|
|
357
|
+
EvenPage,
|
|
358
|
+
OddPage,
|
|
243
359
|
}
|
|
244
360
|
/**
|
|
245
361
|
*/
|
|
246
|
-
export enum
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
362
|
+
export enum StyleType {
|
|
363
|
+
Paragraph,
|
|
364
|
+
Character,
|
|
365
|
+
Numbering,
|
|
366
|
+
Table,
|
|
367
|
+
Unsupported,
|
|
252
368
|
}
|
|
253
369
|
/**
|
|
254
370
|
*/
|
|
255
|
-
export enum
|
|
371
|
+
export enum WidthType {
|
|
372
|
+
Dxa,
|
|
373
|
+
Auto,
|
|
374
|
+
Pct,
|
|
256
375
|
Nil,
|
|
257
|
-
Clear,
|
|
258
|
-
Solid,
|
|
259
|
-
HorzStripe,
|
|
260
|
-
VertStripe,
|
|
261
|
-
ReverseDiagStripe,
|
|
262
|
-
DiagStripe,
|
|
263
|
-
HorzCross,
|
|
264
|
-
DiagCross,
|
|
265
|
-
ThinHorzStripe,
|
|
266
|
-
ThinVertStripe,
|
|
267
|
-
ThinReverseDiagStripe,
|
|
268
|
-
ThinDiagStripe,
|
|
269
|
-
ThinHorzCross,
|
|
270
|
-
ThinDiagCross,
|
|
271
|
-
Pct5,
|
|
272
|
-
Pct10,
|
|
273
|
-
Pct12,
|
|
274
|
-
Pct15,
|
|
275
|
-
Pct20,
|
|
276
|
-
Pct25,
|
|
277
|
-
Pct30,
|
|
278
|
-
Pct35,
|
|
279
|
-
Pct37,
|
|
280
|
-
Pct40,
|
|
281
|
-
Pct45,
|
|
282
|
-
Pct50,
|
|
283
|
-
Pct55,
|
|
284
|
-
Pct60,
|
|
285
|
-
Pct62,
|
|
286
|
-
Pct65,
|
|
287
|
-
Pct70,
|
|
288
|
-
Pct75,
|
|
289
|
-
Pct80,
|
|
290
|
-
Pct85,
|
|
291
|
-
Pct87,
|
|
292
|
-
Pct90,
|
|
293
|
-
Pct95,
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
*/
|
|
297
|
-
export enum CharacterSpacingValues {
|
|
298
|
-
DoNotCompress,
|
|
299
|
-
CompressPunctuation,
|
|
300
|
-
CompressPunctuationAndJapaneseKana,
|
|
301
376
|
Unsupported,
|
|
302
377
|
}
|
|
303
378
|
/**
|
|
304
379
|
*/
|
|
305
|
-
export enum
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
380
|
+
export enum DocGridType {
|
|
381
|
+
Default,
|
|
382
|
+
Lines,
|
|
383
|
+
LinesAndChars,
|
|
384
|
+
SnapToChars,
|
|
310
385
|
}
|
|
311
386
|
/**
|
|
312
387
|
*/
|
|
313
|
-
export enum
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
388
|
+
export enum TableBorderPosition {
|
|
389
|
+
Left,
|
|
390
|
+
Right,
|
|
391
|
+
Top,
|
|
392
|
+
Bottom,
|
|
393
|
+
InsideH,
|
|
394
|
+
InsideV,
|
|
317
395
|
}
|
|
318
396
|
/**
|
|
319
397
|
*/
|
|
320
|
-
export enum
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
398
|
+
export enum TableCellBorderPosition {
|
|
399
|
+
Left,
|
|
400
|
+
Right,
|
|
401
|
+
Top,
|
|
402
|
+
Bottom,
|
|
403
|
+
InsideH,
|
|
404
|
+
InsideV,
|
|
405
|
+
Tl2br,
|
|
406
|
+
Tr2bl,
|
|
324
407
|
}
|
|
325
408
|
/**
|
|
326
409
|
*/
|
|
327
|
-
export enum
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
410
|
+
export enum ParagraphBorderPosition {
|
|
411
|
+
Left,
|
|
412
|
+
Right,
|
|
413
|
+
Top,
|
|
414
|
+
Bottom,
|
|
415
|
+
Between,
|
|
416
|
+
Bar,
|
|
333
417
|
}
|
|
334
418
|
/**
|
|
335
419
|
*/
|
|
@@ -346,21 +430,6 @@ export enum TabValueType {
|
|
|
346
430
|
}
|
|
347
431
|
/**
|
|
348
432
|
*/
|
|
349
|
-
export enum TextAlignmentType {
|
|
350
|
-
Auto,
|
|
351
|
-
Baseline,
|
|
352
|
-
Bottom,
|
|
353
|
-
Center,
|
|
354
|
-
Top,
|
|
355
|
-
}
|
|
356
|
-
/**
|
|
357
|
-
*/
|
|
358
|
-
export enum SpecialIndentKind {
|
|
359
|
-
FirstLine,
|
|
360
|
-
Hanging,
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
*/
|
|
364
433
|
export enum VAlignType {
|
|
365
434
|
Top,
|
|
366
435
|
Center,
|
|
@@ -369,51 +438,25 @@ export enum VAlignType {
|
|
|
369
438
|
}
|
|
370
439
|
/**
|
|
371
440
|
*/
|
|
372
|
-
export enum
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
None,
|
|
378
|
-
Underscore,
|
|
441
|
+
export enum BreakType {
|
|
442
|
+
Page,
|
|
443
|
+
Column,
|
|
444
|
+
TextWrapping,
|
|
445
|
+
Unsupported,
|
|
379
446
|
}
|
|
380
447
|
/**
|
|
381
448
|
*/
|
|
382
|
-
export enum
|
|
449
|
+
export enum FontPitchType {
|
|
450
|
+
Default,
|
|
383
451
|
Fixed,
|
|
384
|
-
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
*/
|
|
388
|
-
export enum TableBorderPosition {
|
|
389
|
-
Left,
|
|
390
|
-
Right,
|
|
391
|
-
Top,
|
|
392
|
-
Bottom,
|
|
393
|
-
InsideH,
|
|
394
|
-
InsideV,
|
|
395
|
-
}
|
|
396
|
-
/**
|
|
397
|
-
*/
|
|
398
|
-
export enum TableCellBorderPosition {
|
|
399
|
-
Left,
|
|
400
|
-
Right,
|
|
401
|
-
Top,
|
|
402
|
-
Bottom,
|
|
403
|
-
InsideH,
|
|
404
|
-
InsideV,
|
|
405
|
-
Tl2br,
|
|
406
|
-
Tr2bl,
|
|
452
|
+
Variable,
|
|
407
453
|
}
|
|
408
454
|
/**
|
|
409
455
|
*/
|
|
410
|
-
export enum
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
Bottom,
|
|
415
|
-
Between,
|
|
416
|
-
Bar,
|
|
456
|
+
export enum HeightRule {
|
|
457
|
+
Auto,
|
|
458
|
+
AtLeast,
|
|
459
|
+
Exact,
|
|
417
460
|
}
|
|
418
461
|
/**
|
|
419
462
|
*/
|
|
@@ -452,70 +495,66 @@ export enum BorderType {
|
|
|
452
495
|
}
|
|
453
496
|
/**
|
|
454
497
|
*/
|
|
455
|
-
export enum
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
Exact,
|
|
459
|
-
}
|
|
460
|
-
/**
|
|
461
|
-
*/
|
|
462
|
-
export enum HyperlinkType {
|
|
463
|
-
Anchor,
|
|
464
|
-
External,
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
*/
|
|
468
|
-
export enum PageOrientationType {
|
|
469
|
-
Landscape,
|
|
470
|
-
Portrait,
|
|
471
|
-
}
|
|
472
|
-
/**
|
|
473
|
-
*/
|
|
474
|
-
export enum SectionType {
|
|
475
|
-
NextPage,
|
|
476
|
-
NextColumn,
|
|
477
|
-
Continuous,
|
|
478
|
-
EvenPage,
|
|
479
|
-
OddPage,
|
|
480
|
-
}
|
|
481
|
-
/**
|
|
482
|
-
*/
|
|
483
|
-
export enum VertAlignType {
|
|
484
|
-
Baseline,
|
|
485
|
-
SuperScript,
|
|
486
|
-
SubScript,
|
|
487
|
-
Unsupported,
|
|
488
|
-
}
|
|
489
|
-
/**
|
|
490
|
-
*/
|
|
491
|
-
export enum WidthType {
|
|
492
|
-
Dxa,
|
|
493
|
-
Auto,
|
|
494
|
-
Pct,
|
|
495
|
-
Nil,
|
|
496
|
-
Unsupported,
|
|
498
|
+
export enum DrawingPositionType {
|
|
499
|
+
Anchor,
|
|
500
|
+
Inline,
|
|
497
501
|
}
|
|
498
502
|
/**
|
|
499
503
|
*/
|
|
500
|
-
export enum
|
|
501
|
-
Center,
|
|
504
|
+
export enum PicAlign {
|
|
502
505
|
Left,
|
|
503
506
|
Right,
|
|
507
|
+
Center,
|
|
508
|
+
Bottom,
|
|
509
|
+
Top,
|
|
504
510
|
}
|
|
505
511
|
/**
|
|
506
512
|
*/
|
|
507
|
-
export enum
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
Variable,
|
|
513
|
+
export enum PositionalTabRelativeTo {
|
|
514
|
+
Indent,
|
|
515
|
+
Margin,
|
|
511
516
|
}
|
|
512
517
|
/**
|
|
513
518
|
*/
|
|
514
|
-
export enum
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
+
export enum ShdType {
|
|
520
|
+
Nil,
|
|
521
|
+
Clear,
|
|
522
|
+
Solid,
|
|
523
|
+
HorzStripe,
|
|
524
|
+
VertStripe,
|
|
525
|
+
ReverseDiagStripe,
|
|
526
|
+
DiagStripe,
|
|
527
|
+
HorzCross,
|
|
528
|
+
DiagCross,
|
|
529
|
+
ThinHorzStripe,
|
|
530
|
+
ThinVertStripe,
|
|
531
|
+
ThinReverseDiagStripe,
|
|
532
|
+
ThinDiagStripe,
|
|
533
|
+
ThinHorzCross,
|
|
534
|
+
ThinDiagCross,
|
|
535
|
+
Pct5,
|
|
536
|
+
Pct10,
|
|
537
|
+
Pct12,
|
|
538
|
+
Pct15,
|
|
539
|
+
Pct20,
|
|
540
|
+
Pct25,
|
|
541
|
+
Pct30,
|
|
542
|
+
Pct35,
|
|
543
|
+
Pct37,
|
|
544
|
+
Pct40,
|
|
545
|
+
Pct45,
|
|
546
|
+
Pct50,
|
|
547
|
+
Pct55,
|
|
548
|
+
Pct60,
|
|
549
|
+
Pct62,
|
|
550
|
+
Pct65,
|
|
551
|
+
Pct70,
|
|
552
|
+
Pct75,
|
|
553
|
+
Pct80,
|
|
554
|
+
Pct85,
|
|
555
|
+
Pct87,
|
|
556
|
+
Pct90,
|
|
557
|
+
Pct95,
|
|
519
558
|
}
|
|
520
559
|
/**
|
|
521
560
|
*/
|
|
@@ -533,13 +572,6 @@ export enum TextDirectionType {
|
|
|
533
572
|
}
|
|
534
573
|
/**
|
|
535
574
|
*/
|
|
536
|
-
export enum VMergeType {
|
|
537
|
-
Continue,
|
|
538
|
-
Restart,
|
|
539
|
-
Unsupported,
|
|
540
|
-
}
|
|
541
|
-
/**
|
|
542
|
-
*/
|
|
543
575
|
export class AbstractNumbering {
|
|
544
576
|
free(): void;
|
|
545
577
|
/**
|
|
@@ -780,6 +812,10 @@ export class Docx {
|
|
|
780
812
|
* @returns {string}
|
|
781
813
|
*/
|
|
782
814
|
json_with_update_comments(): string;
|
|
815
|
+
/**
|
|
816
|
+
* @returns {string}
|
|
817
|
+
*/
|
|
818
|
+
comments_json(): string;
|
|
783
819
|
}
|
|
784
820
|
/**
|
|
785
821
|
*/
|
|
@@ -798,6 +834,71 @@ export class Footer {
|
|
|
798
834
|
}
|
|
799
835
|
/**
|
|
800
836
|
*/
|
|
837
|
+
export class FrameProperty {
|
|
838
|
+
free(): void;
|
|
839
|
+
/**
|
|
840
|
+
* @param {string} wrap
|
|
841
|
+
* @returns {FrameProperty}
|
|
842
|
+
*/
|
|
843
|
+
wrap(wrap: string): FrameProperty;
|
|
844
|
+
/**
|
|
845
|
+
* @param {string} anchor
|
|
846
|
+
* @returns {FrameProperty}
|
|
847
|
+
*/
|
|
848
|
+
v_anchor(anchor: string): FrameProperty;
|
|
849
|
+
/**
|
|
850
|
+
* @param {string} anchor
|
|
851
|
+
* @returns {FrameProperty}
|
|
852
|
+
*/
|
|
853
|
+
h_anchor(anchor: string): FrameProperty;
|
|
854
|
+
/**
|
|
855
|
+
* @param {string} r
|
|
856
|
+
* @returns {FrameProperty}
|
|
857
|
+
*/
|
|
858
|
+
h_rule(r: string): FrameProperty;
|
|
859
|
+
/**
|
|
860
|
+
* @param {string} align
|
|
861
|
+
* @returns {FrameProperty}
|
|
862
|
+
*/
|
|
863
|
+
x_align(align: string): FrameProperty;
|
|
864
|
+
/**
|
|
865
|
+
* @param {string} align
|
|
866
|
+
* @returns {FrameProperty}
|
|
867
|
+
*/
|
|
868
|
+
y_align(align: string): FrameProperty;
|
|
869
|
+
/**
|
|
870
|
+
* @param {number} x
|
|
871
|
+
* @returns {FrameProperty}
|
|
872
|
+
*/
|
|
873
|
+
h_space(x: number): FrameProperty;
|
|
874
|
+
/**
|
|
875
|
+
* @param {number} x
|
|
876
|
+
* @returns {FrameProperty}
|
|
877
|
+
*/
|
|
878
|
+
v_space(x: number): FrameProperty;
|
|
879
|
+
/**
|
|
880
|
+
* @param {number} x
|
|
881
|
+
* @returns {FrameProperty}
|
|
882
|
+
*/
|
|
883
|
+
x(x: number): FrameProperty;
|
|
884
|
+
/**
|
|
885
|
+
* @param {number} y
|
|
886
|
+
* @returns {FrameProperty}
|
|
887
|
+
*/
|
|
888
|
+
y(y: number): FrameProperty;
|
|
889
|
+
/**
|
|
890
|
+
* @param {number} n
|
|
891
|
+
* @returns {FrameProperty}
|
|
892
|
+
*/
|
|
893
|
+
width(n: number): FrameProperty;
|
|
894
|
+
/**
|
|
895
|
+
* @param {number} n
|
|
896
|
+
* @returns {FrameProperty}
|
|
897
|
+
*/
|
|
898
|
+
height(n: number): FrameProperty;
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
901
|
+
*/
|
|
801
902
|
export class Header {
|
|
802
903
|
free(): void;
|
|
803
904
|
/**
|
|
@@ -1131,6 +1232,11 @@ export class Paragraph {
|
|
|
1131
1232
|
*/
|
|
1132
1233
|
size(size: number): Paragraph;
|
|
1133
1234
|
/**
|
|
1235
|
+
* @param {string} c
|
|
1236
|
+
* @returns {Paragraph}
|
|
1237
|
+
*/
|
|
1238
|
+
color(c: string): Paragraph;
|
|
1239
|
+
/**
|
|
1134
1240
|
* @returns {Paragraph}
|
|
1135
1241
|
*/
|
|
1136
1242
|
bold(): Paragraph;
|
|
@@ -1161,6 +1267,11 @@ export class Paragraph {
|
|
|
1161
1267
|
/**
|
|
1162
1268
|
* @param {boolean} v
|
|
1163
1269
|
* @returns {Paragraph}
|
|
1270
|
+
*/
|
|
1271
|
+
snap_to_grid(v: boolean): Paragraph;
|
|
1272
|
+
/**
|
|
1273
|
+
* @param {boolean} v
|
|
1274
|
+
* @returns {Paragraph}
|
|
1164
1275
|
*/
|
|
1165
1276
|
keep_lines(v: boolean): Paragraph;
|
|
1166
1277
|
/**
|
|
@@ -1267,6 +1378,112 @@ export class Paragraph {
|
|
|
1267
1378
|
* @returns {Paragraph}
|
|
1268
1379
|
*/
|
|
1269
1380
|
frame_height(n: number): Paragraph;
|
|
1381
|
+
/**
|
|
1382
|
+
* @param {ParagraphProperty} p
|
|
1383
|
+
* @returns {Paragraph}
|
|
1384
|
+
*/
|
|
1385
|
+
paragraph_property(p: ParagraphProperty): Paragraph;
|
|
1386
|
+
}
|
|
1387
|
+
/**
|
|
1388
|
+
*/
|
|
1389
|
+
export class ParagraphProperty {
|
|
1390
|
+
free(): void;
|
|
1391
|
+
/**
|
|
1392
|
+
* @param {number} alignment_type
|
|
1393
|
+
* @returns {ParagraphProperty}
|
|
1394
|
+
*/
|
|
1395
|
+
align(alignment_type: number): ParagraphProperty;
|
|
1396
|
+
/**
|
|
1397
|
+
* @param {number} alignment_type
|
|
1398
|
+
* @returns {ParagraphProperty}
|
|
1399
|
+
*/
|
|
1400
|
+
text_alignment(alignment_type: number): ParagraphProperty;
|
|
1401
|
+
/**
|
|
1402
|
+
* @param {number} v
|
|
1403
|
+
* @returns {ParagraphProperty}
|
|
1404
|
+
*/
|
|
1405
|
+
adjust_right_ind(v: number): ParagraphProperty;
|
|
1406
|
+
/**
|
|
1407
|
+
* @param {number} level
|
|
1408
|
+
* @returns {ParagraphProperty}
|
|
1409
|
+
*/
|
|
1410
|
+
outline_lvl(level: number): ParagraphProperty;
|
|
1411
|
+
/**
|
|
1412
|
+
* @param {string} style_id
|
|
1413
|
+
* @returns {ParagraphProperty}
|
|
1414
|
+
*/
|
|
1415
|
+
style(style_id: string): ParagraphProperty;
|
|
1416
|
+
/**
|
|
1417
|
+
* @param {number} left
|
|
1418
|
+
* @param {number | undefined} special_indent_kind
|
|
1419
|
+
* @param {number | undefined} special_indent_size
|
|
1420
|
+
* @param {number | undefined} right
|
|
1421
|
+
* @returns {ParagraphProperty}
|
|
1422
|
+
*/
|
|
1423
|
+
indent(left: number, special_indent_kind?: number, special_indent_size?: number, right?: number): ParagraphProperty;
|
|
1424
|
+
/**
|
|
1425
|
+
* @param {number} id
|
|
1426
|
+
* @param {number} level
|
|
1427
|
+
* @returns {ParagraphProperty}
|
|
1428
|
+
*/
|
|
1429
|
+
numbering(id: number, level: number): ParagraphProperty;
|
|
1430
|
+
/**
|
|
1431
|
+
* @param {LineSpacing} spacing
|
|
1432
|
+
* @returns {ParagraphProperty}
|
|
1433
|
+
*/
|
|
1434
|
+
line_spacing(spacing: LineSpacing): ParagraphProperty;
|
|
1435
|
+
/**
|
|
1436
|
+
* @param {number} spacing
|
|
1437
|
+
* @returns {ParagraphProperty}
|
|
1438
|
+
*/
|
|
1439
|
+
character_spacing(spacing: number): ParagraphProperty;
|
|
1440
|
+
/**
|
|
1441
|
+
* @param {boolean} v
|
|
1442
|
+
* @returns {ParagraphProperty}
|
|
1443
|
+
*/
|
|
1444
|
+
keep_next(v: boolean): ParagraphProperty;
|
|
1445
|
+
/**
|
|
1446
|
+
* @param {boolean} v
|
|
1447
|
+
* @returns {ParagraphProperty}
|
|
1448
|
+
*/
|
|
1449
|
+
snap_to_grid(v: boolean): ParagraphProperty;
|
|
1450
|
+
/**
|
|
1451
|
+
* @param {boolean} v
|
|
1452
|
+
* @returns {ParagraphProperty}
|
|
1453
|
+
*/
|
|
1454
|
+
keep_lines(v: boolean): ParagraphProperty;
|
|
1455
|
+
/**
|
|
1456
|
+
* @param {boolean} v
|
|
1457
|
+
* @returns {ParagraphProperty}
|
|
1458
|
+
*/
|
|
1459
|
+
page_break_before(v: boolean): ParagraphProperty;
|
|
1460
|
+
/**
|
|
1461
|
+
* @param {boolean} v
|
|
1462
|
+
* @returns {ParagraphProperty}
|
|
1463
|
+
*/
|
|
1464
|
+
widow_control(v: boolean): ParagraphProperty;
|
|
1465
|
+
/**
|
|
1466
|
+
* @param {number | undefined} val
|
|
1467
|
+
* @param {number | undefined} leader
|
|
1468
|
+
* @param {number | undefined} pos
|
|
1469
|
+
* @returns {ParagraphProperty}
|
|
1470
|
+
*/
|
|
1471
|
+
add_tab(val?: number, leader?: number, pos?: number): ParagraphProperty;
|
|
1472
|
+
/**
|
|
1473
|
+
* @param {ParagraphPropertyChange} p
|
|
1474
|
+
* @returns {ParagraphProperty}
|
|
1475
|
+
*/
|
|
1476
|
+
paragraph_property_change(p: ParagraphPropertyChange): ParagraphProperty;
|
|
1477
|
+
/**
|
|
1478
|
+
* @param {FrameProperty} p
|
|
1479
|
+
* @returns {ParagraphProperty}
|
|
1480
|
+
*/
|
|
1481
|
+
frame_property(p: FrameProperty): ParagraphProperty;
|
|
1482
|
+
/**
|
|
1483
|
+
* @param {RunProperty} p
|
|
1484
|
+
* @returns {ParagraphProperty}
|
|
1485
|
+
*/
|
|
1486
|
+
run_property(p: RunProperty): ParagraphProperty;
|
|
1270
1487
|
}
|
|
1271
1488
|
/**
|
|
1272
1489
|
*/
|
|
@@ -1338,6 +1555,26 @@ export class Pic {
|
|
|
1338
1555
|
}
|
|
1339
1556
|
/**
|
|
1340
1557
|
*/
|
|
1558
|
+
export class PositionalTab {
|
|
1559
|
+
free(): void;
|
|
1560
|
+
/**
|
|
1561
|
+
* @param {number} alignment
|
|
1562
|
+
* @returns {PositionalTab}
|
|
1563
|
+
*/
|
|
1564
|
+
alignment(alignment: number): PositionalTab;
|
|
1565
|
+
/**
|
|
1566
|
+
* @param {number} relative_to
|
|
1567
|
+
* @returns {PositionalTab}
|
|
1568
|
+
*/
|
|
1569
|
+
relative_to(relative_to: number): PositionalTab;
|
|
1570
|
+
/**
|
|
1571
|
+
* @param {number} leader
|
|
1572
|
+
* @returns {PositionalTab}
|
|
1573
|
+
*/
|
|
1574
|
+
leader(leader: number): PositionalTab;
|
|
1575
|
+
}
|
|
1576
|
+
/**
|
|
1577
|
+
*/
|
|
1341
1578
|
export class Run {
|
|
1342
1579
|
free(): void;
|
|
1343
1580
|
/**
|
|
@@ -1360,6 +1597,11 @@ export class Run {
|
|
|
1360
1597
|
*/
|
|
1361
1598
|
add_tab(): Run;
|
|
1362
1599
|
/**
|
|
1600
|
+
* @param {PositionalTab} ptab
|
|
1601
|
+
* @returns {Run}
|
|
1602
|
+
*/
|
|
1603
|
+
add_ptab(ptab: PositionalTab): Run;
|
|
1604
|
+
/**
|
|
1363
1605
|
* @param {number} break_type
|
|
1364
1606
|
* @returns {Run}
|
|
1365
1607
|
*/
|
|
@@ -1481,6 +1723,91 @@ export class RunFonts {
|
|
|
1481
1723
|
}
|
|
1482
1724
|
/**
|
|
1483
1725
|
*/
|
|
1726
|
+
export class RunProperty {
|
|
1727
|
+
free(): void;
|
|
1728
|
+
/**
|
|
1729
|
+
* @param {number} size
|
|
1730
|
+
* @returns {RunProperty}
|
|
1731
|
+
*/
|
|
1732
|
+
size(size: number): RunProperty;
|
|
1733
|
+
/**
|
|
1734
|
+
* @param {string} c
|
|
1735
|
+
* @returns {RunProperty}
|
|
1736
|
+
*/
|
|
1737
|
+
color(c: string): RunProperty;
|
|
1738
|
+
/**
|
|
1739
|
+
* @returns {RunProperty}
|
|
1740
|
+
*/
|
|
1741
|
+
bold(): RunProperty;
|
|
1742
|
+
/**
|
|
1743
|
+
* @returns {RunProperty}
|
|
1744
|
+
*/
|
|
1745
|
+
italic(): RunProperty;
|
|
1746
|
+
/**
|
|
1747
|
+
* @returns {RunProperty}
|
|
1748
|
+
*/
|
|
1749
|
+
strike(): RunProperty;
|
|
1750
|
+
/**
|
|
1751
|
+
* @param {RunFonts} f
|
|
1752
|
+
* @returns {RunProperty}
|
|
1753
|
+
*/
|
|
1754
|
+
fonts(f: RunFonts): RunProperty;
|
|
1755
|
+
/**
|
|
1756
|
+
* @param {string} line_type
|
|
1757
|
+
* @returns {RunProperty}
|
|
1758
|
+
*/
|
|
1759
|
+
underline(line_type: string): RunProperty;
|
|
1760
|
+
/**
|
|
1761
|
+
* @returns {RunProperty}
|
|
1762
|
+
*/
|
|
1763
|
+
vanish(): RunProperty;
|
|
1764
|
+
/**
|
|
1765
|
+
* @returns {RunProperty}
|
|
1766
|
+
*/
|
|
1767
|
+
spec_vanish(): RunProperty;
|
|
1768
|
+
/**
|
|
1769
|
+
* @param {number} spacing
|
|
1770
|
+
* @returns {RunProperty}
|
|
1771
|
+
*/
|
|
1772
|
+
character_spacing(spacing: number): RunProperty;
|
|
1773
|
+
/**
|
|
1774
|
+
* @param {number} a
|
|
1775
|
+
* @returns {RunProperty}
|
|
1776
|
+
*/
|
|
1777
|
+
vert_align(a: number): RunProperty;
|
|
1778
|
+
/**
|
|
1779
|
+
* @param {string} author
|
|
1780
|
+
* @param {string} date
|
|
1781
|
+
* @returns {RunProperty}
|
|
1782
|
+
*/
|
|
1783
|
+
delete(author: string, date: string): RunProperty;
|
|
1784
|
+
/**
|
|
1785
|
+
* @param {string} author
|
|
1786
|
+
* @param {string} date
|
|
1787
|
+
* @returns {RunProperty}
|
|
1788
|
+
*/
|
|
1789
|
+
insert(author: string, date: string): RunProperty;
|
|
1790
|
+
/**
|
|
1791
|
+
* @param {string} style_id
|
|
1792
|
+
* @returns {RunProperty}
|
|
1793
|
+
*/
|
|
1794
|
+
style(style_id: string): RunProperty;
|
|
1795
|
+
/**
|
|
1796
|
+
* @param {string} color
|
|
1797
|
+
* @returns {RunProperty}
|
|
1798
|
+
*/
|
|
1799
|
+
highlight(color: string): RunProperty;
|
|
1800
|
+
/**
|
|
1801
|
+
* @param {number} border_type
|
|
1802
|
+
* @param {number} size
|
|
1803
|
+
* @param {number} space
|
|
1804
|
+
* @param {string} color
|
|
1805
|
+
* @returns {RunProperty}
|
|
1806
|
+
*/
|
|
1807
|
+
text_border(border_type: number, size: number, space: number, color: string): RunProperty;
|
|
1808
|
+
}
|
|
1809
|
+
/**
|
|
1810
|
+
*/
|
|
1484
1811
|
export class Style {
|
|
1485
1812
|
free(): void;
|
|
1486
1813
|
/**
|
|
@@ -1605,6 +1932,11 @@ export class Style {
|
|
|
1605
1932
|
/**
|
|
1606
1933
|
* @param {boolean} v
|
|
1607
1934
|
* @returns {Style}
|
|
1935
|
+
*/
|
|
1936
|
+
snap_to_grid(v: boolean): Style;
|
|
1937
|
+
/**
|
|
1938
|
+
* @param {boolean} v
|
|
1939
|
+
* @returns {Style}
|
|
1608
1940
|
*/
|
|
1609
1941
|
keep_next(v: boolean): Style;
|
|
1610
1942
|
/**
|
|
@@ -1623,6 +1955,16 @@ export class Style {
|
|
|
1623
1955
|
*/
|
|
1624
1956
|
widow_control(v: boolean): Style;
|
|
1625
1957
|
/**
|
|
1958
|
+
* @param {RunProperty} p
|
|
1959
|
+
* @returns {Style}
|
|
1960
|
+
*/
|
|
1961
|
+
run_property(p: RunProperty): Style;
|
|
1962
|
+
/**
|
|
1963
|
+
* @param {ParagraphProperty} p
|
|
1964
|
+
* @returns {Style}
|
|
1965
|
+
*/
|
|
1966
|
+
paragraph_property(p: ParagraphProperty): Style;
|
|
1967
|
+
/**
|
|
1626
1968
|
* @param {TableProperty} p
|
|
1627
1969
|
* @returns {Style}
|
|
1628
1970
|
*/
|
|
@@ -2017,6 +2359,11 @@ export class TableOfContents {
|
|
|
2017
2359
|
* @returns {TableOfContents}
|
|
2018
2360
|
*/
|
|
2019
2361
|
add_after_table(t: Table): TableOfContents;
|
|
2362
|
+
/**
|
|
2363
|
+
* @param {ParagraphProperty} p
|
|
2364
|
+
* @returns {TableOfContents}
|
|
2365
|
+
*/
|
|
2366
|
+
paragraph_property(p: ParagraphProperty): TableOfContents;
|
|
2020
2367
|
}
|
|
2021
2368
|
/**
|
|
2022
2369
|
*/
|