docx-wasm 0.4.18-rc40 → 0.4.18-rc41
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 +1 -0
- package/dist/node/pkg/docx_wasm.d.ts +289 -265
- package/dist/node/pkg/docx_wasm.js +350 -302
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +161 -155
- package/dist/node/run-property.d.ts +3 -0
- package/dist/node/run-property.js +19 -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/node/style.d.ts +1 -0
- package/dist/node/style.js +4 -0
- package/dist/node/style.js.map +1 -1
- package/dist/node/table.d.ts +1 -1
- package/dist/web/json/run.d.ts +1 -0
- package/dist/web/pkg/docx_wasm.d.ts +289 -265
- package/dist/web/pkg/docx_wasm_bg.js +349 -301
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +161 -155
- package/dist/web/run-property.d.ts +3 -0
- package/dist/web/run-property.js +19 -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/dist/web/style.d.ts +1 -0
- package/dist/web/style.js +4 -0
- package/dist/web/style.js.map +1 -1
- package/dist/web/table.d.ts +1 -1
- package/js/json/run.ts +1 -0
- package/js/run-property.ts +23 -0
- package/js/run.ts +6 -0
- package/js/style.ts +5 -0
- package/package.json +1 -1
package/dist/node/json/run.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export type RunPropertyJSON = {
|
|
|
47
47
|
ins?: InsertJSONData | null;
|
|
48
48
|
del?: DeleteJSONData | null;
|
|
49
49
|
strike?: boolean;
|
|
50
|
+
dstrike?: boolean;
|
|
50
51
|
};
|
|
51
52
|
export type RunChildJSON = TextJSON | SymJSON | DeleteTextJSON | TabJSON | BreakJSON | DrawingJSON | PtabJSON | ShapeJSON | CommentRangeStartJSON | CommentRangeEndJSON | FieldCharJSON | InstrTextStringJSON;
|
|
52
53
|
export type TextJSON = {
|
|
@@ -6,19 +6,13 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export function createPic(buf: Uint8Array): Pic;
|
|
8
8
|
/**
|
|
9
|
-
* @
|
|
10
|
-
* @returns {Insert}
|
|
11
|
-
*/
|
|
12
|
-
export function createInsert(run: Run): Insert;
|
|
13
|
-
/**
|
|
14
|
-
* @param {Uint8Array} buf
|
|
15
|
-
* @returns {string}
|
|
9
|
+
* @returns {Footer}
|
|
16
10
|
*/
|
|
17
|
-
export function
|
|
11
|
+
export function createFooter(): Footer;
|
|
18
12
|
/**
|
|
19
|
-
* @returns {
|
|
13
|
+
* @returns {PageNum}
|
|
20
14
|
*/
|
|
21
|
-
export function
|
|
15
|
+
export function createPageNum(): PageNum;
|
|
22
16
|
/**
|
|
23
17
|
* @returns {ParagraphPropertyChange}
|
|
24
18
|
*/
|
|
@@ -32,11 +26,55 @@ export function createParagraphProperty(): ParagraphProperty;
|
|
|
32
26
|
*/
|
|
33
27
|
export function createTableCell(): TableCell;
|
|
34
28
|
/**
|
|
29
|
+
* @param {string} id
|
|
30
|
+
* @param {string} reference_id
|
|
31
|
+
* @param {string} version
|
|
32
|
+
* @param {string} store
|
|
33
|
+
* @param {string} store_type
|
|
34
|
+
* @returns {WebExtension}
|
|
35
|
+
*/
|
|
36
|
+
export function createWebExtension(id: string, reference_id: string, version: string, store: string, store_type: string): WebExtension;
|
|
37
|
+
/**
|
|
38
|
+
* @param {number} id
|
|
39
|
+
* @returns {AbstractNumbering}
|
|
40
|
+
*/
|
|
41
|
+
export function createAbstractNumbering(id: number): AbstractNumbering;
|
|
42
|
+
/**
|
|
43
|
+
* @returns {NumPages}
|
|
44
|
+
*/
|
|
45
|
+
export function createNumPages(): NumPages;
|
|
46
|
+
/**
|
|
47
|
+
* @returns {Run}
|
|
48
|
+
*/
|
|
49
|
+
export function createRun(): Run;
|
|
50
|
+
/**
|
|
51
|
+
* @returns {Table}
|
|
52
|
+
*/
|
|
53
|
+
export function createTable(): Table;
|
|
54
|
+
/**
|
|
35
55
|
* @param {number} position
|
|
36
56
|
* @returns {TableCellBorder}
|
|
37
57
|
*/
|
|
38
58
|
export function createTableCellBorder(position: number): TableCellBorder;
|
|
39
59
|
/**
|
|
60
|
+
* @returns {TableRow}
|
|
61
|
+
*/
|
|
62
|
+
export function createTableRow(): TableRow;
|
|
63
|
+
/**
|
|
64
|
+
* @param {Run} run
|
|
65
|
+
* @returns {Insert}
|
|
66
|
+
*/
|
|
67
|
+
export function createInsert(run: Run): Insert;
|
|
68
|
+
/**
|
|
69
|
+
* @param {Uint8Array} buf
|
|
70
|
+
* @returns {string}
|
|
71
|
+
*/
|
|
72
|
+
export function readDocx(buf: Uint8Array): string;
|
|
73
|
+
/**
|
|
74
|
+
* @returns {PageMargin}
|
|
75
|
+
*/
|
|
76
|
+
export function createPageMargin(): PageMargin;
|
|
77
|
+
/**
|
|
40
78
|
* @returns {RunFonts}
|
|
41
79
|
*/
|
|
42
80
|
export function createRunFonts(): RunFonts;
|
|
@@ -47,19 +85,32 @@ export function createRunFonts(): RunFonts;
|
|
|
47
85
|
*/
|
|
48
86
|
export function createStyle(style_id: string, style_type: number): Style;
|
|
49
87
|
/**
|
|
50
|
-
* @returns {Footer}
|
|
51
|
-
*/
|
|
52
|
-
export function createFooter(): Footer;
|
|
53
|
-
/**
|
|
54
88
|
* @param {string} v
|
|
55
89
|
* @param {number} t
|
|
56
90
|
* @returns {Hyperlink}
|
|
57
91
|
*/
|
|
58
92
|
export function createHyperlink(v: string, t: number): Hyperlink;
|
|
59
93
|
/**
|
|
60
|
-
* @
|
|
94
|
+
* @param {number} id
|
|
95
|
+
* @param {number} abstract_num_id
|
|
96
|
+
* @returns {Numbering}
|
|
61
97
|
*/
|
|
62
|
-
export function
|
|
98
|
+
export function createNumbering(id: number, abstract_num_id: number): Numbering;
|
|
99
|
+
/**
|
|
100
|
+
* @returns {Paragraph}
|
|
101
|
+
*/
|
|
102
|
+
export function createParagraph(): Paragraph;
|
|
103
|
+
/**
|
|
104
|
+
* @param {number} alignment
|
|
105
|
+
* @param {number} relative_to
|
|
106
|
+
* @param {number} leader
|
|
107
|
+
* @returns {PositionalTab}
|
|
108
|
+
*/
|
|
109
|
+
export function createPositionalTab(alignment: number, relative_to: number, leader: number): PositionalTab;
|
|
110
|
+
/**
|
|
111
|
+
* @returns {LineSpacing}
|
|
112
|
+
*/
|
|
113
|
+
export function createLineSpacing(): LineSpacing;
|
|
63
114
|
/**
|
|
64
115
|
* @param {number | undefined} start
|
|
65
116
|
* @param {string | undefined} chap_style
|
|
@@ -67,6 +118,10 @@ export function createPageNum(): PageNum;
|
|
|
67
118
|
*/
|
|
68
119
|
export function createPageNumType(start?: number, chap_style?: string): PageNumType;
|
|
69
120
|
/**
|
|
121
|
+
* @returns {RunProperty}
|
|
122
|
+
*/
|
|
123
|
+
export function createRunProperty(): RunProperty;
|
|
124
|
+
/**
|
|
70
125
|
* @returns {TableOfContents}
|
|
71
126
|
*/
|
|
72
127
|
export function createTableOfContents(): TableOfContents;
|
|
@@ -80,33 +135,14 @@ export function createTableOfContentsWithInstrText(s: string): TableOfContents;
|
|
|
80
135
|
*/
|
|
81
136
|
export function createTableOfContentsItem(): TableOfContentsItem;
|
|
82
137
|
/**
|
|
83
|
-
* @
|
|
84
|
-
|
|
85
|
-
export function createTableRow(): TableRow;
|
|
86
|
-
/**
|
|
87
|
-
* @returns {PageMargin}
|
|
88
|
-
*/
|
|
89
|
-
export function createPageMargin(): PageMargin;
|
|
90
|
-
/**
|
|
91
|
-
* @returns {Paragraph}
|
|
92
|
-
*/
|
|
93
|
-
export function createParagraph(): Paragraph;
|
|
94
|
-
/**
|
|
95
|
-
* @param {number} alignment
|
|
96
|
-
* @param {number} relative_to
|
|
97
|
-
* @param {number} leader
|
|
98
|
-
* @returns {PositionalTab}
|
|
138
|
+
* @param {number} id
|
|
139
|
+
* @returns {Comment}
|
|
99
140
|
*/
|
|
100
|
-
export function
|
|
141
|
+
export function createComment(id: number): Comment;
|
|
101
142
|
/**
|
|
102
|
-
* @
|
|
103
|
-
* @param {string} reference_id
|
|
104
|
-
* @param {string} version
|
|
105
|
-
* @param {string} store
|
|
106
|
-
* @param {string} store_type
|
|
107
|
-
* @returns {WebExtension}
|
|
143
|
+
* @returns {Docx}
|
|
108
144
|
*/
|
|
109
|
-
export function
|
|
145
|
+
export function createDocx(): Docx;
|
|
110
146
|
/**
|
|
111
147
|
* @param {Run} run
|
|
112
148
|
* @returns {Delete}
|
|
@@ -117,6 +153,10 @@ export function createDelete(run: Run): Delete;
|
|
|
117
153
|
*/
|
|
118
154
|
export function createFrameProperty(): FrameProperty;
|
|
119
155
|
/**
|
|
156
|
+
* @returns {Header}
|
|
157
|
+
*/
|
|
158
|
+
export function createHeader(): Header;
|
|
159
|
+
/**
|
|
120
160
|
* @param {number} id
|
|
121
161
|
* @param {number} start
|
|
122
162
|
* @param {string} format
|
|
@@ -131,85 +171,10 @@ export function createLevel(id: number, start: number, format: string, text: str
|
|
|
131
171
|
*/
|
|
132
172
|
export function createLevelOverride(level: number): LevelOverride;
|
|
133
173
|
/**
|
|
134
|
-
* @returns {LineSpacing}
|
|
135
|
-
*/
|
|
136
|
-
export function createLineSpacing(): LineSpacing;
|
|
137
|
-
/**
|
|
138
|
-
* @returns {Table}
|
|
139
|
-
*/
|
|
140
|
-
export function createTable(): Table;
|
|
141
|
-
/**
|
|
142
|
-
* @returns {NumPages}
|
|
143
|
-
*/
|
|
144
|
-
export function createNumPages(): NumPages;
|
|
145
|
-
/**
|
|
146
|
-
* @param {number} id
|
|
147
|
-
* @returns {AbstractNumbering}
|
|
148
|
-
*/
|
|
149
|
-
export function createAbstractNumbering(id: number): AbstractNumbering;
|
|
150
|
-
/**
|
|
151
|
-
* @param {number} id
|
|
152
|
-
* @param {number} abstract_num_id
|
|
153
|
-
* @returns {Numbering}
|
|
154
|
-
*/
|
|
155
|
-
export function createNumbering(id: number, abstract_num_id: number): Numbering;
|
|
156
|
-
/**
|
|
157
|
-
* @returns {Run}
|
|
158
|
-
*/
|
|
159
|
-
export function createRun(): Run;
|
|
160
|
-
/**
|
|
161
|
-
* @returns {RunProperty}
|
|
162
|
-
*/
|
|
163
|
-
export function createRunProperty(): RunProperty;
|
|
164
|
-
/**
|
|
165
174
|
* @returns {TablePositionProperty}
|
|
166
175
|
*/
|
|
167
176
|
export function createTablePosition(): TablePositionProperty;
|
|
168
177
|
/**
|
|
169
|
-
* @param {number} id
|
|
170
|
-
* @returns {Comment}
|
|
171
|
-
*/
|
|
172
|
-
export function createComment(id: number): Comment;
|
|
173
|
-
/**
|
|
174
|
-
* @returns {Docx}
|
|
175
|
-
*/
|
|
176
|
-
export function createDocx(): Docx;
|
|
177
|
-
/**
|
|
178
|
-
*/
|
|
179
|
-
export enum FieldCharType {
|
|
180
|
-
Begin,
|
|
181
|
-
Separate,
|
|
182
|
-
End,
|
|
183
|
-
Unsupported,
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
*/
|
|
187
|
-
export enum TabLeaderType {
|
|
188
|
-
Dot,
|
|
189
|
-
Heavy,
|
|
190
|
-
Hyphen,
|
|
191
|
-
MiddleDot,
|
|
192
|
-
None,
|
|
193
|
-
Underscore,
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
*/
|
|
197
|
-
export enum TextAlignmentType {
|
|
198
|
-
Auto,
|
|
199
|
-
Baseline,
|
|
200
|
-
Bottom,
|
|
201
|
-
Center,
|
|
202
|
-
Top,
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
*/
|
|
206
|
-
export enum VertAlignType {
|
|
207
|
-
Baseline,
|
|
208
|
-
SuperScript,
|
|
209
|
-
SubScript,
|
|
210
|
-
Unsupported,
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
178
|
*/
|
|
214
179
|
export enum BorderType {
|
|
215
180
|
Nil,
|
|
@@ -260,40 +225,145 @@ export enum DrawingPositionType {
|
|
|
260
225
|
}
|
|
261
226
|
/**
|
|
262
227
|
*/
|
|
263
|
-
export enum PicAlign {
|
|
264
|
-
Left,
|
|
265
|
-
Right,
|
|
266
|
-
Center,
|
|
267
|
-
Bottom,
|
|
268
|
-
Top,
|
|
228
|
+
export enum PicAlign {
|
|
229
|
+
Left,
|
|
230
|
+
Right,
|
|
231
|
+
Center,
|
|
232
|
+
Bottom,
|
|
233
|
+
Top,
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
*/
|
|
237
|
+
export enum HyperlinkType {
|
|
238
|
+
Anchor,
|
|
239
|
+
External,
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
*/
|
|
243
|
+
export enum LineSpacingType {
|
|
244
|
+
Auto,
|
|
245
|
+
AtLeast,
|
|
246
|
+
Exact,
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
*/
|
|
250
|
+
export enum PageOrientationType {
|
|
251
|
+
Landscape,
|
|
252
|
+
Portrait,
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
*/
|
|
256
|
+
export enum RelativeFromHType {
|
|
257
|
+
/**
|
|
258
|
+
* Specifies that the horizontal positioning shall be
|
|
259
|
+
* relative to the position of the anchor within its run
|
|
260
|
+
* content.
|
|
261
|
+
*/
|
|
262
|
+
Character,
|
|
263
|
+
/**
|
|
264
|
+
* Specifies that the horizontal positioning shall be
|
|
265
|
+
* relative to the extents of the column which contains its
|
|
266
|
+
* anchor.
|
|
267
|
+
*/
|
|
268
|
+
Column,
|
|
269
|
+
/**
|
|
270
|
+
* Specifies that the horizontal positioning shall be
|
|
271
|
+
* relative to the inside margin of the current page (the
|
|
272
|
+
* left margin on odd pages, right on even pages).
|
|
273
|
+
*/
|
|
274
|
+
InsideMargin,
|
|
275
|
+
/**
|
|
276
|
+
* Specifies that the horizontal positioning shall be
|
|
277
|
+
* relative to the left margin of the page.
|
|
278
|
+
*/
|
|
279
|
+
LeftMargin,
|
|
280
|
+
/**
|
|
281
|
+
* Specifies that the horizontal positioning shall be
|
|
282
|
+
* relative to the page margins.
|
|
283
|
+
*/
|
|
284
|
+
Margin,
|
|
285
|
+
/**
|
|
286
|
+
* Specifies that the horizontal positioning shall be
|
|
287
|
+
* relative to the outside margin of the current page (the
|
|
288
|
+
* right margin on odd pages, left on even pages).
|
|
289
|
+
*/
|
|
290
|
+
OutsizeMargin,
|
|
291
|
+
/**
|
|
292
|
+
* Specifies that the horizontal positioning shall be
|
|
293
|
+
* relative to the edge of the page.
|
|
294
|
+
*/
|
|
295
|
+
Page,
|
|
296
|
+
/**
|
|
297
|
+
* Specifies that the horizontal positioning shall be
|
|
298
|
+
* relative to the right margin of the page.
|
|
299
|
+
*/
|
|
300
|
+
RightMargin,
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
*/
|
|
304
|
+
export enum RelativeFromVType {
|
|
305
|
+
BottomMargin,
|
|
306
|
+
InsideMargin,
|
|
307
|
+
Line,
|
|
308
|
+
Margin,
|
|
309
|
+
OutsizeMargin,
|
|
310
|
+
Page,
|
|
311
|
+
Paragraph,
|
|
312
|
+
TopMargin,
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
*/
|
|
316
|
+
export enum SectionType {
|
|
317
|
+
NextPage,
|
|
318
|
+
NextColumn,
|
|
319
|
+
Continuous,
|
|
320
|
+
EvenPage,
|
|
321
|
+
OddPage,
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
*/
|
|
325
|
+
export enum WidthType {
|
|
326
|
+
Dxa,
|
|
327
|
+
Auto,
|
|
328
|
+
Pct,
|
|
329
|
+
Nil,
|
|
330
|
+
Unsupported,
|
|
269
331
|
}
|
|
270
332
|
/**
|
|
271
333
|
*/
|
|
272
|
-
export enum
|
|
273
|
-
|
|
274
|
-
|
|
334
|
+
export enum FontPitchType {
|
|
335
|
+
Default,
|
|
336
|
+
Fixed,
|
|
337
|
+
Variable,
|
|
275
338
|
}
|
|
276
339
|
/**
|
|
277
340
|
*/
|
|
278
|
-
export enum
|
|
279
|
-
|
|
280
|
-
|
|
341
|
+
export enum VertAlignType {
|
|
342
|
+
Baseline,
|
|
343
|
+
SuperScript,
|
|
344
|
+
SubScript,
|
|
345
|
+
Unsupported,
|
|
281
346
|
}
|
|
282
347
|
/**
|
|
283
348
|
*/
|
|
284
|
-
export enum
|
|
349
|
+
export enum TableAlignmentType {
|
|
285
350
|
Center,
|
|
286
351
|
Left,
|
|
287
352
|
Right,
|
|
288
353
|
}
|
|
289
354
|
/**
|
|
290
355
|
*/
|
|
291
|
-
export enum
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
356
|
+
export enum TextDirectionType {
|
|
357
|
+
Lr,
|
|
358
|
+
LrV,
|
|
359
|
+
Rl,
|
|
360
|
+
RlV,
|
|
361
|
+
Tb,
|
|
362
|
+
TbV,
|
|
363
|
+
TbRlV,
|
|
364
|
+
TbRl,
|
|
365
|
+
BtLr,
|
|
366
|
+
LrTbV,
|
|
297
367
|
}
|
|
298
368
|
/**
|
|
299
369
|
*/
|
|
@@ -329,6 +399,30 @@ export enum ParagraphBorderPosition {
|
|
|
329
399
|
}
|
|
330
400
|
/**
|
|
331
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
|
+
*/
|
|
332
426
|
export enum CharacterSpacingValues {
|
|
333
427
|
DoNotCompress,
|
|
334
428
|
CompressPunctuation,
|
|
@@ -337,13 +431,26 @@ export enum CharacterSpacingValues {
|
|
|
337
431
|
}
|
|
338
432
|
/**
|
|
339
433
|
*/
|
|
340
|
-
export enum
|
|
434
|
+
export enum HeightRule {
|
|
341
435
|
Auto,
|
|
342
436
|
AtLeast,
|
|
343
437
|
Exact,
|
|
344
438
|
}
|
|
345
439
|
/**
|
|
346
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
|
+
*/
|
|
347
454
|
export enum StyleType {
|
|
348
455
|
Paragraph,
|
|
349
456
|
Character,
|
|
@@ -353,19 +460,13 @@ export enum StyleType {
|
|
|
353
460
|
}
|
|
354
461
|
/**
|
|
355
462
|
*/
|
|
356
|
-
export enum
|
|
463
|
+
export enum PositionalTabAlignmentType {
|
|
357
464
|
Center,
|
|
358
465
|
Left,
|
|
359
466
|
Right,
|
|
360
467
|
}
|
|
361
468
|
/**
|
|
362
469
|
*/
|
|
363
|
-
export enum PositionalTabRelativeTo {
|
|
364
|
-
Indent,
|
|
365
|
-
Margin,
|
|
366
|
-
}
|
|
367
|
-
/**
|
|
368
|
-
*/
|
|
369
470
|
export enum ShdType {
|
|
370
471
|
Nil,
|
|
371
472
|
Clear,
|
|
@@ -421,122 +522,19 @@ export enum TabValueType {
|
|
|
421
522
|
}
|
|
422
523
|
/**
|
|
423
524
|
*/
|
|
424
|
-
export enum
|
|
425
|
-
Continue,
|
|
426
|
-
Restart,
|
|
427
|
-
Unsupported,
|
|
428
|
-
}
|
|
429
|
-
/**
|
|
430
|
-
*/
|
|
431
|
-
export enum BreakType {
|
|
432
|
-
Page,
|
|
433
|
-
Column,
|
|
434
|
-
TextWrapping,
|
|
435
|
-
Unsupported,
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
*/
|
|
439
|
-
export enum FontPitchType {
|
|
440
|
-
Default,
|
|
441
|
-
Fixed,
|
|
442
|
-
Variable,
|
|
443
|
-
}
|
|
444
|
-
/**
|
|
445
|
-
*/
|
|
446
|
-
export enum HeightRule {
|
|
525
|
+
export enum TextAlignmentType {
|
|
447
526
|
Auto,
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
*/
|
|
453
|
-
export enum LevelSuffixType {
|
|
454
|
-
Nothing,
|
|
455
|
-
Space,
|
|
456
|
-
Tab,
|
|
457
|
-
}
|
|
458
|
-
/**
|
|
459
|
-
*/
|
|
460
|
-
export enum RelativeFromHType {
|
|
461
|
-
/**
|
|
462
|
-
* Specifies that the horizontal positioning shall be
|
|
463
|
-
* relative to the position of the anchor within its run
|
|
464
|
-
* content.
|
|
465
|
-
*/
|
|
466
|
-
Character,
|
|
467
|
-
/**
|
|
468
|
-
* Specifies that the horizontal positioning shall be
|
|
469
|
-
* relative to the extents of the column which contains its
|
|
470
|
-
* anchor.
|
|
471
|
-
*/
|
|
472
|
-
Column,
|
|
473
|
-
/**
|
|
474
|
-
* Specifies that the horizontal positioning shall be
|
|
475
|
-
* relative to the inside margin of the current page (the
|
|
476
|
-
* left margin on odd pages, right on even pages).
|
|
477
|
-
*/
|
|
478
|
-
InsideMargin,
|
|
479
|
-
/**
|
|
480
|
-
* Specifies that the horizontal positioning shall be
|
|
481
|
-
* relative to the left margin of the page.
|
|
482
|
-
*/
|
|
483
|
-
LeftMargin,
|
|
484
|
-
/**
|
|
485
|
-
* Specifies that the horizontal positioning shall be
|
|
486
|
-
* relative to the page margins.
|
|
487
|
-
*/
|
|
488
|
-
Margin,
|
|
489
|
-
/**
|
|
490
|
-
* Specifies that the horizontal positioning shall be
|
|
491
|
-
* relative to the outside margin of the current page (the
|
|
492
|
-
* right margin on odd pages, left on even pages).
|
|
493
|
-
*/
|
|
494
|
-
OutsizeMargin,
|
|
495
|
-
/**
|
|
496
|
-
* Specifies that the horizontal positioning shall be
|
|
497
|
-
* relative to the edge of the page.
|
|
498
|
-
*/
|
|
499
|
-
Page,
|
|
500
|
-
/**
|
|
501
|
-
* Specifies that the horizontal positioning shall be
|
|
502
|
-
* relative to the right margin of the page.
|
|
503
|
-
*/
|
|
504
|
-
RightMargin,
|
|
505
|
-
}
|
|
506
|
-
/**
|
|
507
|
-
*/
|
|
508
|
-
export enum RelativeFromVType {
|
|
509
|
-
BottomMargin,
|
|
510
|
-
InsideMargin,
|
|
511
|
-
Line,
|
|
512
|
-
Margin,
|
|
513
|
-
OutsizeMargin,
|
|
514
|
-
Page,
|
|
515
|
-
Paragraph,
|
|
516
|
-
TopMargin,
|
|
517
|
-
}
|
|
518
|
-
/**
|
|
519
|
-
*/
|
|
520
|
-
export enum SectionType {
|
|
521
|
-
NextPage,
|
|
522
|
-
NextColumn,
|
|
523
|
-
Continuous,
|
|
524
|
-
EvenPage,
|
|
525
|
-
OddPage,
|
|
527
|
+
Baseline,
|
|
528
|
+
Bottom,
|
|
529
|
+
Center,
|
|
530
|
+
Top,
|
|
526
531
|
}
|
|
527
532
|
/**
|
|
528
533
|
*/
|
|
529
|
-
export enum
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
RlV,
|
|
534
|
-
Tb,
|
|
535
|
-
TbV,
|
|
536
|
-
TbRlV,
|
|
537
|
-
TbRl,
|
|
538
|
-
BtLr,
|
|
539
|
-
LrTbV,
|
|
534
|
+
export enum VMergeType {
|
|
535
|
+
Continue,
|
|
536
|
+
Restart,
|
|
537
|
+
Unsupported,
|
|
540
538
|
}
|
|
541
539
|
/**
|
|
542
540
|
*/
|
|
@@ -552,23 +550,25 @@ export enum AlignmentType {
|
|
|
552
550
|
}
|
|
553
551
|
/**
|
|
554
552
|
*/
|
|
555
|
-
export enum
|
|
556
|
-
|
|
557
|
-
|
|
553
|
+
export enum BreakType {
|
|
554
|
+
Page,
|
|
555
|
+
Column,
|
|
556
|
+
TextWrapping,
|
|
557
|
+
Unsupported,
|
|
558
558
|
}
|
|
559
559
|
/**
|
|
560
560
|
*/
|
|
561
|
-
export enum
|
|
562
|
-
|
|
563
|
-
|
|
561
|
+
export enum FieldCharType {
|
|
562
|
+
Begin,
|
|
563
|
+
Separate,
|
|
564
|
+
End,
|
|
565
|
+
Unsupported,
|
|
564
566
|
}
|
|
565
567
|
/**
|
|
566
568
|
*/
|
|
567
|
-
export enum
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
Bottom,
|
|
571
|
-
Unsupported,
|
|
569
|
+
export enum SpecialIndentKind {
|
|
570
|
+
FirstLine,
|
|
571
|
+
Hanging,
|
|
572
572
|
}
|
|
573
573
|
/**
|
|
574
574
|
*/
|
|
@@ -1021,6 +1021,14 @@ export class Level {
|
|
|
1021
1021
|
disable_strike(): Level;
|
|
1022
1022
|
/**
|
|
1023
1023
|
* @returns {Level}
|
|
1024
|
+
*/
|
|
1025
|
+
dstrike(): Level;
|
|
1026
|
+
/**
|
|
1027
|
+
* @returns {Level}
|
|
1028
|
+
*/
|
|
1029
|
+
disable_dstrike(): Level;
|
|
1030
|
+
/**
|
|
1031
|
+
* @returns {Level}
|
|
1024
1032
|
*/
|
|
1025
1033
|
disable_italic(): Level;
|
|
1026
1034
|
/**
|
|
@@ -1663,6 +1671,10 @@ export class Run {
|
|
|
1663
1671
|
*/
|
|
1664
1672
|
strike(): Run;
|
|
1665
1673
|
/**
|
|
1674
|
+
* @returns {Run}
|
|
1675
|
+
*/
|
|
1676
|
+
dstrike(): Run;
|
|
1677
|
+
/**
|
|
1666
1678
|
* @param {string} line_type
|
|
1667
1679
|
* @returns {Run}
|
|
1668
1680
|
*/
|
|
@@ -1784,6 +1796,14 @@ export class RunProperty {
|
|
|
1784
1796
|
*/
|
|
1785
1797
|
disable_strike(): RunProperty;
|
|
1786
1798
|
/**
|
|
1799
|
+
* @returns {RunProperty}
|
|
1800
|
+
*/
|
|
1801
|
+
dstrike(): RunProperty;
|
|
1802
|
+
/**
|
|
1803
|
+
* @returns {RunProperty}
|
|
1804
|
+
*/
|
|
1805
|
+
disable_dstrike(): RunProperty;
|
|
1806
|
+
/**
|
|
1787
1807
|
* @param {RunFonts} f
|
|
1788
1808
|
* @returns {RunProperty}
|
|
1789
1809
|
*/
|
|
@@ -1884,6 +1904,10 @@ export class Style {
|
|
|
1884
1904
|
*/
|
|
1885
1905
|
strike(): Style;
|
|
1886
1906
|
/**
|
|
1907
|
+
* @returns {Style}
|
|
1908
|
+
*/
|
|
1909
|
+
dstrike(): Style;
|
|
1910
|
+
/**
|
|
1887
1911
|
* @param {string} line_type
|
|
1888
1912
|
* @returns {Style}
|
|
1889
1913
|
*/
|