docx-wasm 0.4.18-rc15 → 0.4.18-rc16

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.
@@ -1,28 +1,31 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * @returns {ParagraphPropertyChange}
4
+ * @returns {LineSpacing}
5
5
  */
6
- export function createParagraphPropertyChange(): ParagraphPropertyChange;
6
+ export function createLineSpacing(): LineSpacing;
7
7
  /**
8
- * @returns {Paragraph}
8
+ * @returns {Run}
9
9
  */
10
- export function createParagraph(): Paragraph;
10
+ export function createRun(): Run;
11
11
  /**
12
- * @param {Uint8Array} buf
13
- * @returns {string}
12
+ * @param {number} position
13
+ * @returns {TableCellBorder}
14
14
  */
15
- export function readDocx(buf: Uint8Array): string;
15
+ export function createTableCellBorder(position: number): TableCellBorder;
16
16
  /**
17
- * @param {number} id
18
- * @param {number} abstract_num_id
19
- * @returns {Numbering}
17
+ * @returns {TablePositionProperty}
20
18
  */
21
- export function createNumbering(id: number, abstract_num_id: number): Numbering;
19
+ export function createTablePosition(): TablePositionProperty;
22
20
  /**
23
- * @returns {PageNum}
21
+ * @returns {TableRow}
24
22
  */
25
- export function createPageNum(): PageNum;
23
+ export function createTableRow(): TableRow;
24
+ /**
25
+ * @param {number} id
26
+ * @returns {Comment}
27
+ */
28
+ export function createComment(id: number): Comment;
26
29
  /**
27
30
  * @param {number | undefined} start
28
31
  * @param {string | undefined} chap_style
@@ -30,93 +33,86 @@ export function createPageNum(): PageNum;
30
33
  */
31
34
  export function createPageNumType(start?: number, chap_style?: string): PageNumType;
32
35
  /**
33
- * @returns {TableOfContents}
34
- */
35
- export function createTableOfContents(): TableOfContents;
36
- /**
37
- * @param {string} s
38
- * @returns {TableOfContents}
36
+ * @returns {RunFonts}
39
37
  */
40
- export function createTableOfContentsWithInstrText(s: string): TableOfContents;
38
+ export function createRunFonts(): RunFonts;
41
39
  /**
42
- * @returns {TableOfContentsItem}
40
+ * @returns {Header}
43
41
  */
44
- export function createTableOfContentsItem(): TableOfContentsItem;
42
+ export function createHeader(): Header;
45
43
  /**
46
- * @returns {TablePositionProperty}
44
+ * @param {number} id
45
+ * @param {number} start
46
+ * @param {string} format
47
+ * @param {string} text
48
+ * @param {string} jc
49
+ * @returns {Level}
47
50
  */
48
- export function createTablePosition(): TablePositionProperty;
51
+ export function createLevel(id: number, start: number, format: string, text: string, jc: string): Level;
49
52
  /**
50
- * @param {string} id
51
- * @param {string} reference_id
52
- * @param {string} version
53
- * @param {string} store
54
- * @param {string} store_type
55
- * @returns {WebExtension}
53
+ * @param {number} level
54
+ * @returns {LevelOverride}
56
55
  */
57
- export function createWebExtension(id: string, reference_id: string, version: string, store: string, store_type: string): WebExtension;
56
+ export function createLevelOverride(level: number): LevelOverride;
58
57
  /**
59
- * @param {string} style_id
60
- * @param {number} style_type
61
- * @returns {Style}
58
+ * @returns {TableCell}
62
59
  */
63
- export function createStyle(style_id: string, style_type: number): Style;
60
+ export function createTableCell(): TableCell;
64
61
  /**
65
- * @param {number} id
66
- * @returns {AbstractNumbering}
62
+ * @returns {TableOfContentsItem}
67
63
  */
68
- export function createAbstractNumbering(id: number): AbstractNumbering;
64
+ export function createTableOfContentsItem(): TableOfContentsItem;
69
65
  /**
70
- * @param {number} alignment
71
- * @param {number} relative_to
72
- * @param {number} leader
73
- * @returns {PositionalTab}
66
+ * @returns {NumPages}
74
67
  */
75
- export function createPositionalTab(alignment: number, relative_to: number, leader: number): PositionalTab;
68
+ export function createNumPages(): NumPages;
76
69
  /**
77
- * @returns {Run}
70
+ * @returns {TableOfContents}
78
71
  */
79
- export function createRun(): Run;
72
+ export function createTableOfContents(): TableOfContents;
80
73
  /**
81
- * @param {number} position
82
- * @returns {TableCellBorder}
74
+ * @param {string} s
75
+ * @returns {TableOfContents}
83
76
  */
84
- export function createTableCellBorder(position: number): TableCellBorder;
77
+ export function createTableOfContentsWithInstrText(s: string): TableOfContents;
85
78
  /**
86
- * @returns {TableRow}
79
+ * @param {string} id
80
+ * @param {string} reference_id
81
+ * @param {string} version
82
+ * @param {string} store
83
+ * @param {string} store_type
84
+ * @returns {WebExtension}
87
85
  */
88
- export function createTableRow(): TableRow;
86
+ export function createWebExtension(id: string, reference_id: string, version: string, store: string, store_type: string): WebExtension;
89
87
  /**
90
- * @returns {LineSpacing}
88
+ * @returns {PageMargin}
91
89
  */
92
- export function createLineSpacing(): LineSpacing;
90
+ export function createPageMargin(): PageMargin;
93
91
  /**
94
- * @returns {Header}
92
+ * @returns {ParagraphPropertyChange}
95
93
  */
96
- export function createHeader(): Header;
94
+ export function createParagraphPropertyChange(): ParagraphPropertyChange;
97
95
  /**
98
- * @param {Run} run
99
- * @returns {Insert}
96
+ * @returns {Paragraph}
100
97
  */
101
- export function createInsert(run: Run): Insert;
98
+ export function createParagraph(): Paragraph;
102
99
  /**
103
- * @param {number} id
104
- * @param {number} start
105
- * @param {string} format
106
- * @param {string} text
107
- * @param {string} jc
108
- * @returns {Level}
100
+ * @returns {PageNum}
109
101
  */
110
- export function createLevel(id: number, start: number, format: string, text: string, jc: string): Level;
102
+ export function createPageNum(): PageNum;
111
103
  /**
112
- * @param {number} level
113
- * @returns {LevelOverride}
104
+ * @param {number} alignment
105
+ * @param {number} relative_to
106
+ * @param {number} leader
107
+ * @returns {PositionalTab}
114
108
  */
115
- export function createLevelOverride(level: number): LevelOverride;
109
+ export function createPositionalTab(alignment: number, relative_to: number, leader: number): PositionalTab;
116
110
  /**
117
- * @returns {Table}
111
+ * @param {string} style_id
112
+ * @param {number} style_type
113
+ * @returns {Style}
118
114
  */
119
- export function createTable(): Table;
115
+ export function createStyle(style_id: string, style_type: number): Style;
120
116
  /**
121
117
  * @param {string} v
122
118
  * @param {number} t
@@ -124,22 +120,9 @@ export function createTable(): Table;
124
120
  */
125
121
  export function createHyperlink(v: string, t: number): Hyperlink;
126
122
  /**
127
- * @returns {NumPages}
128
- */
129
- export function createNumPages(): NumPages;
130
- /**
131
- * @param {Uint8Array} buf
132
- * @returns {Pic}
133
- */
134
- export function createPic(buf: Uint8Array): Pic;
135
- /**
136
- * @returns {RunFonts}
137
- */
138
- export function createRunFonts(): RunFonts;
139
- /**
140
- * @returns {TableCell}
123
+ * @returns {Table}
141
124
  */
142
- export function createTableCell(): TableCell;
125
+ export function createTable(): Table;
143
126
  /**
144
127
  * @returns {Docx}
145
128
  */
@@ -149,56 +132,77 @@ export function createDocx(): Docx;
149
132
  */
150
133
  export function createFooter(): Footer;
151
134
  /**
152
- * @param {number} id
153
- * @returns {Comment}
135
+ * @param {Run} run
136
+ * @returns {Insert}
154
137
  */
155
- export function createComment(id: number): Comment;
138
+ export function createInsert(run: Run): Insert;
156
139
  /**
157
- * @returns {PageMargin}
140
+ * @param {number} id
141
+ * @returns {AbstractNumbering}
158
142
  */
159
- export function createPageMargin(): PageMargin;
143
+ export function createAbstractNumbering(id: number): AbstractNumbering;
160
144
  /**
161
145
  * @param {Run} run
162
146
  * @returns {Delete}
163
147
  */
164
148
  export function createDelete(run: Run): Delete;
165
149
  /**
150
+ * @param {number} id
151
+ * @param {number} abstract_num_id
152
+ * @returns {Numbering}
166
153
  */
167
- export enum BreakType {
168
- Page,
169
- Column,
170
- TextWrapping,
171
- Unsupported,
172
- }
154
+ export function createNumbering(id: number, abstract_num_id: number): Numbering;
173
155
  /**
156
+ * @param {Uint8Array} buf
157
+ * @returns {Pic}
174
158
  */
175
- export enum DrawingPositionType {
176
- Anchor,
177
- Inline,
178
- }
159
+ export function createPic(buf: Uint8Array): Pic;
179
160
  /**
161
+ * @param {Uint8Array} buf
162
+ * @returns {string}
180
163
  */
181
- export enum PicAlign {
182
- Left,
183
- Right,
184
- Center,
185
- Bottom,
186
- Top,
187
- }
164
+ export function readDocx(buf: Uint8Array): string;
188
165
  /**
189
166
  */
190
- export enum FieldCharType {
191
- Begin,
192
- Separate,
193
- End,
194
- Unsupported,
167
+ export enum BorderType {
168
+ Nil,
169
+ None,
170
+ Single,
171
+ Thick,
172
+ Double,
173
+ Dotted,
174
+ Dashed,
175
+ DotDash,
176
+ DotDotDash,
177
+ Triple,
178
+ ThinThickSmallGap,
179
+ ThickThinSmallGap,
180
+ ThinThickThinSmallGap,
181
+ ThinThickMediumGap,
182
+ ThickThinMediumGap,
183
+ ThinThickThinMediumGap,
184
+ ThinThickLargeGap,
185
+ ThickThinLargeGap,
186
+ ThinThickThinLargeGap,
187
+ Wave,
188
+ DoubleWave,
189
+ DashSmallGap,
190
+ DashDotStroked,
191
+ ThreeDEmboss,
192
+ ThreeDEngrave,
193
+ Outset,
194
+ Inset,
195
+ Apples,
196
+ ArchedScallops,
197
+ BabyPacifier,
198
+ BabyRattle,
195
199
  }
196
200
  /**
197
201
  */
198
- export enum FontPitchType {
199
- Default,
200
- Fixed,
201
- Variable,
202
+ export enum HeightRule {
203
+ Auto,
204
+ AtLeast,
205
+ Exact,
202
206
  }
203
207
  /**
204
208
  */
@@ -209,86 +213,43 @@ export enum LineSpacingType {
209
213
  }
210
214
  /**
211
215
  */
212
- export enum PositionalTabRelativeTo {
213
- Indent,
214
- Margin,
215
- }
216
- /**
217
- */
218
- export enum ShdType {
219
- Nil,
220
- Clear,
221
- Solid,
222
- HorzStripe,
223
- VertStripe,
224
- ReverseDiagStripe,
225
- DiagStripe,
226
- HorzCross,
227
- DiagCross,
228
- ThinHorzStripe,
229
- ThinVertStripe,
230
- ThinReverseDiagStripe,
231
- ThinDiagStripe,
232
- ThinHorzCross,
233
- ThinDiagCross,
234
- Pct5,
235
- Pct10,
236
- Pct12,
237
- Pct15,
238
- Pct20,
239
- Pct25,
240
- Pct30,
241
- Pct35,
242
- Pct37,
243
- Pct40,
244
- Pct45,
245
- Pct50,
246
- Pct55,
247
- Pct60,
248
- Pct62,
249
- Pct65,
250
- Pct70,
251
- Pct75,
252
- Pct80,
253
- Pct85,
254
- Pct87,
255
- Pct90,
256
- Pct95,
216
+ export enum StyleType {
217
+ Paragraph,
218
+ Character,
219
+ Numbering,
220
+ Table,
221
+ Unsupported,
257
222
  }
258
223
  /**
259
224
  */
260
- export enum AlignmentType {
261
- Both,
225
+ export enum TextAlignmentType {
226
+ Auto,
227
+ Baseline,
228
+ Bottom,
262
229
  Center,
263
- Distribute,
264
- Start,
265
- End,
266
- Left,
267
- Right,
268
- Justified,
230
+ Top,
269
231
  }
270
232
  /**
271
233
  */
272
- export enum CharacterSpacingValues {
273
- DoNotCompress,
274
- CompressPunctuation,
275
- CompressPunctuationAndJapaneseKana,
234
+ export enum WidthType {
235
+ Dxa,
236
+ Auto,
237
+ Pct,
238
+ Nil,
276
239
  Unsupported,
277
240
  }
278
241
  /**
279
242
  */
280
- export enum DocGridType {
281
- Default,
282
- Lines,
283
- LinesAndChars,
284
- SnapToChars,
243
+ export enum HyperlinkType {
244
+ Anchor,
245
+ External,
285
246
  }
286
247
  /**
287
248
  */
288
- export enum LevelSuffixType {
289
- Nothing,
290
- Space,
291
- Tab,
249
+ export enum PositionalTabAlignmentType {
250
+ Center,
251
+ Left,
252
+ Right,
292
253
  }
293
254
  /**
294
255
  */
@@ -352,34 +313,92 @@ export enum RelativeFromVType {
352
313
  }
353
314
  /**
354
315
  */
355
- export enum SectionType {
356
- NextPage,
357
- NextColumn,
358
- Continuous,
359
- EvenPage,
360
- OddPage,
316
+ export enum VMergeType {
317
+ Continue,
318
+ Restart,
319
+ Unsupported,
361
320
  }
362
321
  /**
363
322
  */
364
- export enum WidthType {
365
- Dxa,
366
- Auto,
367
- Pct,
368
- Nil,
323
+ export enum FontPitchType {
324
+ Default,
325
+ Fixed,
326
+ Variable,
327
+ }
328
+ /**
329
+ */
330
+ export enum SpecialIndentKind {
331
+ FirstLine,
332
+ Hanging,
333
+ }
334
+ /**
335
+ */
336
+ export enum TableLayoutType {
337
+ Fixed,
338
+ Autofit,
339
+ }
340
+ /**
341
+ */
342
+ export enum BreakType {
343
+ Page,
344
+ Column,
345
+ TextWrapping,
369
346
  Unsupported,
370
347
  }
371
348
  /**
372
349
  */
373
- export enum HyperlinkType {
350
+ export enum CharacterSpacingValues {
351
+ DoNotCompress,
352
+ CompressPunctuation,
353
+ CompressPunctuationAndJapaneseKana,
354
+ Unsupported,
355
+ }
356
+ /**
357
+ */
358
+ export enum LevelSuffixType {
359
+ Nothing,
360
+ Space,
361
+ Tab,
362
+ }
363
+ /**
364
+ */
365
+ export enum DocGridType {
366
+ Default,
367
+ Lines,
368
+ LinesAndChars,
369
+ SnapToChars,
370
+ }
371
+ /**
372
+ */
373
+ export enum DrawingPositionType {
374
374
  Anchor,
375
- External,
375
+ Inline,
376
376
  }
377
377
  /**
378
378
  */
379
- export enum PositionalTabAlignmentType {
380
- Center,
379
+ export enum PicAlign {
381
380
  Left,
382
381
  Right,
382
+ Center,
383
+ Bottom,
384
+ Top,
385
+ }
386
+ /**
387
+ */
388
+ export enum FieldCharType {
389
+ Begin,
390
+ Separate,
391
+ End,
392
+ Unsupported,
393
+ }
394
+ /**
395
+ */
396
+ export enum SectionType {
397
+ NextPage,
398
+ NextColumn,
399
+ Continuous,
400
+ EvenPage,
401
+ OddPage,
383
402
  }
384
403
  /**
385
404
  */
@@ -404,16 +423,51 @@ export enum VertAlignType {
404
423
  }
405
424
  /**
406
425
  */
407
- export enum VMergeType {
408
- Continue,
409
- Restart,
410
- Unsupported,
426
+ export enum PositionalTabRelativeTo {
427
+ Indent,
428
+ Margin,
411
429
  }
412
430
  /**
413
431
  */
414
- export enum TableLayoutType {
415
- Fixed,
416
- Autofit,
432
+ export enum ShdType {
433
+ Nil,
434
+ Clear,
435
+ Solid,
436
+ HorzStripe,
437
+ VertStripe,
438
+ ReverseDiagStripe,
439
+ DiagStripe,
440
+ HorzCross,
441
+ DiagCross,
442
+ ThinHorzStripe,
443
+ ThinVertStripe,
444
+ ThinReverseDiagStripe,
445
+ ThinDiagStripe,
446
+ ThinHorzCross,
447
+ ThinDiagCross,
448
+ Pct5,
449
+ Pct10,
450
+ Pct12,
451
+ Pct15,
452
+ Pct20,
453
+ Pct25,
454
+ Pct30,
455
+ Pct35,
456
+ Pct37,
457
+ Pct40,
458
+ Pct45,
459
+ Pct50,
460
+ Pct55,
461
+ Pct60,
462
+ Pct62,
463
+ Pct65,
464
+ Pct70,
465
+ Pct75,
466
+ Pct80,
467
+ Pct85,
468
+ Pct87,
469
+ Pct90,
470
+ Pct95,
417
471
  }
418
472
  /**
419
473
  */
@@ -425,38 +479,6 @@ export enum VAlignType {
425
479
  }
426
480
  /**
427
481
  */
428
- export enum HeightRule {
429
- Auto,
430
- AtLeast,
431
- Exact,
432
- }
433
- /**
434
- */
435
- export enum PageOrientationType {
436
- Landscape,
437
- Portrait,
438
- }
439
- /**
440
- */
441
- export enum StyleType {
442
- Paragraph,
443
- Character,
444
- Numbering,
445
- Table,
446
- Unsupported,
447
- }
448
- /**
449
- */
450
- export enum TabLeaderType {
451
- Dot,
452
- Heavy,
453
- Hyphen,
454
- MiddleDot,
455
- None,
456
- Underscore,
457
- }
458
- /**
459
- */
460
482
  export enum TableAlignmentType {
461
483
  Center,
462
484
  Left,
@@ -464,18 +486,15 @@ export enum TableAlignmentType {
464
486
  }
465
487
  /**
466
488
  */
467
- export enum TextAlignmentType {
468
- Auto,
469
- Baseline,
470
- Bottom,
489
+ export enum AlignmentType {
490
+ Both,
471
491
  Center,
472
- Top,
473
- }
474
- /**
475
- */
476
- export enum SpecialIndentKind {
477
- FirstLine,
478
- Hanging,
492
+ Distribute,
493
+ Start,
494
+ End,
495
+ Left,
496
+ Right,
497
+ Justified,
479
498
  }
480
499
  /**
481
500
  */
@@ -511,38 +530,19 @@ export enum ParagraphBorderPosition {
511
530
  }
512
531
  /**
513
532
  */
514
- export enum BorderType {
515
- Nil,
533
+ export enum PageOrientationType {
534
+ Landscape,
535
+ Portrait,
536
+ }
537
+ /**
538
+ */
539
+ export enum TabLeaderType {
540
+ Dot,
541
+ Heavy,
542
+ Hyphen,
543
+ MiddleDot,
516
544
  None,
517
- Single,
518
- Thick,
519
- Double,
520
- Dotted,
521
- Dashed,
522
- DotDash,
523
- DotDotDash,
524
- Triple,
525
- ThinThickSmallGap,
526
- ThickThinSmallGap,
527
- ThinThickThinSmallGap,
528
- ThinThickMediumGap,
529
- ThickThinMediumGap,
530
- ThinThickThinMediumGap,
531
- ThinThickLargeGap,
532
- ThickThinLargeGap,
533
- ThinThickThinLargeGap,
534
- Wave,
535
- DoubleWave,
536
- DashSmallGap,
537
- DashDotStroked,
538
- ThreeDEmboss,
539
- ThreeDEngrave,
540
- Outset,
541
- Inset,
542
- Apples,
543
- ArchedScallops,
544
- BabyPacifier,
545
- BabyRattle,
545
+ Underscore,
546
546
  }
547
547
  /**
548
548
  */