docx-wasm 0.4.18-rc44 → 0.4.18-rc46

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,25 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * @param {string} v
5
- * @param {number} t
6
- * @returns {Hyperlink}
7
- */
8
- export function createHyperlink(v: string, t: number): Hyperlink;
9
- /**
10
- * @param {Run} run
11
- * @returns {Insert}
12
- */
13
- export function createInsert(run: Run): Insert;
14
- /**
15
- * @returns {PageMargin}
16
- */
17
- export function createPageMargin(): PageMargin;
18
- /**
19
- * @returns {Paragraph}
20
- */
21
- export function createParagraph(): Paragraph;
22
- /**
23
4
  * @param {number} id
24
5
  * @returns {Comment}
25
6
  */
@@ -61,43 +42,36 @@ export function createPic(buf: Uint8Array): Pic;
61
42
  */
62
43
  export function readDocx(buf: Uint8Array): string;
63
44
  /**
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;
72
- /**
73
- * @returns {Run}
45
+ * @returns {PageNum}
74
46
  */
75
- export function createRun(): Run;
47
+ export function createPageNum(): PageNum;
76
48
  /**
77
- * @returns {TableCell}
49
+ * @returns {Docx}
78
50
  */
79
- export function createTableCell(): TableCell;
51
+ export function createDocx(): Docx;
80
52
  /**
81
- * @param {number} position
82
- * @returns {TableCellBorder}
53
+ * @returns {Footer}
83
54
  */
84
- export function createTableCellBorder(position: number): TableCellBorder;
55
+ export function createFooter(): Footer;
85
56
  /**
86
- * @returns {RunFonts}
57
+ * @param {string} v
58
+ * @param {number} t
59
+ * @returns {Hyperlink}
87
60
  */
88
- export function createRunFonts(): RunFonts;
61
+ export function createHyperlink(v: string, t: number): Hyperlink;
89
62
  /**
90
- * @returns {Docx}
63
+ * @param {Run} run
64
+ * @returns {Insert}
91
65
  */
92
- export function createDocx(): Docx;
66
+ export function createInsert(run: Run): Insert;
93
67
  /**
94
- * @returns {Footer}
68
+ * @returns {PageMargin}
95
69
  */
96
- export function createFooter(): Footer;
70
+ export function createPageMargin(): PageMargin;
97
71
  /**
98
- * @returns {PageNum}
72
+ * @returns {Paragraph}
99
73
  */
100
- export function createPageNum(): PageNum;
74
+ export function createParagraph(): Paragraph;
101
75
  /**
102
76
  * @param {number} id
103
77
  * @param {number} abstract_num_id
@@ -121,23 +95,6 @@ export function createTablePosition(): TablePositionProperty;
121
95
  */
122
96
  export function createTableRow(): TableRow;
123
97
  /**
124
- * @returns {Header}
125
- */
126
- export function createHeader(): Header;
127
- /**
128
- * @param {number} alignment
129
- * @param {number} relative_to
130
- * @param {number} leader
131
- * @returns {PositionalTab}
132
- */
133
- export function createPositionalTab(alignment: number, relative_to: number, leader: number): PositionalTab;
134
- /**
135
- * @param {string} style_id
136
- * @param {number} style_type
137
- * @returns {Style}
138
- */
139
- export function createStyle(style_id: string, style_type: number): Style;
140
- /**
141
98
  * @param {number} id
142
99
  * @returns {AbstractNumbering}
143
100
  */
@@ -175,6 +132,147 @@ export function createTableOfContentsWithInstrText(s: string): TableOfContents;
175
132
  */
176
133
  export function createTableOfContentsItem(): TableOfContentsItem;
177
134
  /**
135
+ * @returns {RunFonts}
136
+ */
137
+ export function createRunFonts(): RunFonts;
138
+ /**
139
+ * @param {Run} run
140
+ * @returns {Delete}
141
+ */
142
+ export function createDelete(run: Run): Delete;
143
+ /**
144
+ * @returns {LineSpacing}
145
+ */
146
+ export function createLineSpacing(): LineSpacing;
147
+ /**
148
+ * @returns {Run}
149
+ */
150
+ export function createRun(): Run;
151
+ /**
152
+ * @returns {TableCell}
153
+ */
154
+ export function createTableCell(): TableCell;
155
+ /**
156
+ * @param {number} position
157
+ * @returns {TableCellBorder}
158
+ */
159
+ export function createTableCellBorder(position: number): TableCellBorder;
160
+ /**
161
+ * @returns {Header}
162
+ */
163
+ export function createHeader(): Header;
164
+ /**
165
+ * @param {number} alignment
166
+ * @param {number} relative_to
167
+ * @param {number} leader
168
+ * @returns {PositionalTab}
169
+ */
170
+ export function createPositionalTab(alignment: number, relative_to: number, leader: number): PositionalTab;
171
+ /**
172
+ * @param {string} style_id
173
+ * @param {number} style_type
174
+ * @returns {Style}
175
+ */
176
+ export function createStyle(style_id: string, style_type: number): Style;
177
+ /**
178
+ */
179
+ export enum TableBorderPosition {
180
+ Left,
181
+ Right,
182
+ Top,
183
+ Bottom,
184
+ InsideH,
185
+ InsideV,
186
+ }
187
+ /**
188
+ */
189
+ export enum TableCellBorderPosition {
190
+ Left,
191
+ Right,
192
+ Top,
193
+ Bottom,
194
+ InsideH,
195
+ InsideV,
196
+ Tl2br,
197
+ Tr2bl,
198
+ }
199
+ /**
200
+ */
201
+ export enum ParagraphBorderPosition {
202
+ Left,
203
+ Right,
204
+ Top,
205
+ Bottom,
206
+ Between,
207
+ Bar,
208
+ }
209
+ /**
210
+ */
211
+ export enum FontPitchType {
212
+ Default,
213
+ Fixed,
214
+ Variable,
215
+ }
216
+ /**
217
+ */
218
+ export enum TabLeaderType {
219
+ Dot,
220
+ Heavy,
221
+ Hyphen,
222
+ MiddleDot,
223
+ None,
224
+ Underscore,
225
+ }
226
+ /**
227
+ */
228
+ export enum VertAlignType {
229
+ Baseline,
230
+ SuperScript,
231
+ SubScript,
232
+ Unsupported,
233
+ }
234
+ /**
235
+ */
236
+ export enum AlignmentType {
237
+ Both,
238
+ Center,
239
+ Distribute,
240
+ Start,
241
+ End,
242
+ Left,
243
+ Right,
244
+ Justified,
245
+ }
246
+ /**
247
+ */
248
+ export enum FieldCharType {
249
+ Begin,
250
+ Separate,
251
+ End,
252
+ Unsupported,
253
+ }
254
+ /**
255
+ */
256
+ export enum SpecialIndentKind {
257
+ FirstLine,
258
+ Hanging,
259
+ }
260
+ /**
261
+ */
262
+ export enum TableAlignmentType {
263
+ Center,
264
+ Left,
265
+ Right,
266
+ }
267
+ /**
268
+ */
269
+ export enum BreakType {
270
+ Page,
271
+ Column,
272
+ TextWrapping,
273
+ Unsupported,
274
+ }
275
+ /**
178
276
  */
179
277
  export enum BorderType {
180
278
  Nil,
@@ -331,43 +429,40 @@ export enum WidthType {
331
429
  }
332
430
  /**
333
431
  */
334
- export enum FontPitchType {
335
- Default,
336
- Fixed,
337
- Variable,
432
+ export enum CharacterSpacingValues {
433
+ DoNotCompress,
434
+ CompressPunctuation,
435
+ CompressPunctuationAndJapaneseKana,
436
+ Unsupported,
338
437
  }
339
438
  /**
340
439
  */
341
- export enum AlignmentType {
342
- Both,
343
- Center,
344
- Distribute,
345
- Start,
346
- End,
347
- Left,
348
- Right,
349
- Justified,
440
+ export enum HeightRule {
441
+ Auto,
442
+ AtLeast,
443
+ Exact,
350
444
  }
351
445
  /**
352
446
  */
353
- export enum FieldCharType {
354
- Begin,
355
- Separate,
356
- End,
357
- Unsupported,
447
+ export enum LevelSuffixType {
448
+ Nothing,
449
+ Space,
450
+ Tab,
358
451
  }
359
452
  /**
360
453
  */
361
- export enum SpecialIndentKind {
362
- FirstLine,
363
- Hanging,
454
+ export enum PositionalTabRelativeTo {
455
+ Indent,
456
+ Margin,
364
457
  }
365
458
  /**
366
459
  */
367
- export enum TableAlignmentType {
368
- Center,
369
- Left,
370
- Right,
460
+ export enum StyleType {
461
+ Paragraph,
462
+ Character,
463
+ Numbering,
464
+ Table,
465
+ Unsupported,
371
466
  }
372
467
  /**
373
468
  */
@@ -456,63 +551,9 @@ export enum TextDirectionType {
456
551
  }
457
552
  /**
458
553
  */
459
- export enum VMergeType {
460
- Continue,
461
- Restart,
462
- Unsupported,
463
- }
464
- /**
465
- */
466
- export enum VertAlignType {
467
- Baseline,
468
- SuperScript,
469
- SubScript,
470
- Unsupported,
471
- }
472
- /**
473
- */
474
- export enum BreakType {
475
- Page,
476
- Column,
477
- TextWrapping,
478
- Unsupported,
479
- }
480
- /**
481
- */
482
- export enum CharacterSpacingValues {
483
- DoNotCompress,
484
- CompressPunctuation,
485
- CompressPunctuationAndJapaneseKana,
486
- Unsupported,
487
- }
488
- /**
489
- */
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,
554
+ export enum TableLayoutType {
555
+ Fixed,
556
+ Autofit,
516
557
  }
517
558
  /**
518
559
  */
@@ -524,51 +565,10 @@ export enum VAlignType {
524
565
  }
525
566
  /**
526
567
  */
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,
568
+ export enum VMergeType {
569
+ Continue,
570
+ Restart,
571
+ Unsupported,
572
572
  }
573
573
  /**
574
574
  */
@@ -736,6 +736,10 @@ export class Docx {
736
736
  */
737
737
  even_footer(footer: Footer): Docx;
738
738
  /**
739
+ * @returns {Docx}
740
+ */
741
+ title_pg(): Docx;
742
+ /**
739
743
  * @param {number} w
740
744
  * @param {number} h
741
745
  * @returns {Docx}