docx-wasm 0.4.18-rc45 → 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.
- package/dist/node/pkg/docx_wasm.d.ts +207 -203
- package/dist/node/pkg/docx_wasm.js +169 -161
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +198 -197
- package/dist/web/pkg/docx_wasm.d.ts +207 -203
- package/dist/web/pkg/docx_wasm_bg.js +168 -160
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +198 -197
- package/package.json +1 -1
|
@@ -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
|
-
* @
|
|
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
|
|
47
|
+
export function createPageNum(): PageNum;
|
|
76
48
|
/**
|
|
77
|
-
* @returns {
|
|
49
|
+
* @returns {Docx}
|
|
78
50
|
*/
|
|
79
|
-
export function
|
|
51
|
+
export function createDocx(): Docx;
|
|
80
52
|
/**
|
|
81
|
-
* @
|
|
82
|
-
* @returns {TableCellBorder}
|
|
53
|
+
* @returns {Footer}
|
|
83
54
|
*/
|
|
84
|
-
export function
|
|
55
|
+
export function createFooter(): Footer;
|
|
85
56
|
/**
|
|
86
|
-
* @
|
|
57
|
+
* @param {string} v
|
|
58
|
+
* @param {number} t
|
|
59
|
+
* @returns {Hyperlink}
|
|
87
60
|
*/
|
|
88
|
-
export function
|
|
61
|
+
export function createHyperlink(v: string, t: number): Hyperlink;
|
|
89
62
|
/**
|
|
90
|
-
* @
|
|
63
|
+
* @param {Run} run
|
|
64
|
+
* @returns {Insert}
|
|
91
65
|
*/
|
|
92
|
-
export function
|
|
66
|
+
export function createInsert(run: Run): Insert;
|
|
93
67
|
/**
|
|
94
|
-
* @returns {
|
|
68
|
+
* @returns {PageMargin}
|
|
95
69
|
*/
|
|
96
|
-
export function
|
|
70
|
+
export function createPageMargin(): PageMargin;
|
|
97
71
|
/**
|
|
98
|
-
* @returns {
|
|
72
|
+
* @returns {Paragraph}
|
|
99
73
|
*/
|
|
100
|
-
export function
|
|
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,49 @@ 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
178
|
*/
|
|
179
179
|
export enum TableBorderPosition {
|
|
180
180
|
Left,
|
|
@@ -233,149 +233,6 @@ export enum VertAlignType {
|
|
|
233
233
|
}
|
|
234
234
|
/**
|
|
235
235
|
*/
|
|
236
|
-
export enum PositionalTabAlignmentType {
|
|
237
|
-
Center,
|
|
238
|
-
Left,
|
|
239
|
-
Right,
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
*/
|
|
243
|
-
export enum ShdType {
|
|
244
|
-
Nil,
|
|
245
|
-
Clear,
|
|
246
|
-
Solid,
|
|
247
|
-
HorzStripe,
|
|
248
|
-
VertStripe,
|
|
249
|
-
ReverseDiagStripe,
|
|
250
|
-
DiagStripe,
|
|
251
|
-
HorzCross,
|
|
252
|
-
DiagCross,
|
|
253
|
-
ThinHorzStripe,
|
|
254
|
-
ThinVertStripe,
|
|
255
|
-
ThinReverseDiagStripe,
|
|
256
|
-
ThinDiagStripe,
|
|
257
|
-
ThinHorzCross,
|
|
258
|
-
ThinDiagCross,
|
|
259
|
-
Pct5,
|
|
260
|
-
Pct10,
|
|
261
|
-
Pct12,
|
|
262
|
-
Pct15,
|
|
263
|
-
Pct20,
|
|
264
|
-
Pct25,
|
|
265
|
-
Pct30,
|
|
266
|
-
Pct35,
|
|
267
|
-
Pct37,
|
|
268
|
-
Pct40,
|
|
269
|
-
Pct45,
|
|
270
|
-
Pct50,
|
|
271
|
-
Pct55,
|
|
272
|
-
Pct60,
|
|
273
|
-
Pct62,
|
|
274
|
-
Pct65,
|
|
275
|
-
Pct70,
|
|
276
|
-
Pct75,
|
|
277
|
-
Pct80,
|
|
278
|
-
Pct85,
|
|
279
|
-
Pct87,
|
|
280
|
-
Pct90,
|
|
281
|
-
Pct95,
|
|
282
|
-
}
|
|
283
|
-
/**
|
|
284
|
-
*/
|
|
285
|
-
export enum TabValueType {
|
|
286
|
-
Bar,
|
|
287
|
-
Center,
|
|
288
|
-
Clear,
|
|
289
|
-
Decimal,
|
|
290
|
-
End,
|
|
291
|
-
Right,
|
|
292
|
-
Num,
|
|
293
|
-
Start,
|
|
294
|
-
Left,
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
*/
|
|
298
|
-
export enum TextAlignmentType {
|
|
299
|
-
Auto,
|
|
300
|
-
Baseline,
|
|
301
|
-
Bottom,
|
|
302
|
-
Center,
|
|
303
|
-
Top,
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
*/
|
|
307
|
-
export enum TextDirectionType {
|
|
308
|
-
Lr,
|
|
309
|
-
LrV,
|
|
310
|
-
Rl,
|
|
311
|
-
RlV,
|
|
312
|
-
Tb,
|
|
313
|
-
TbV,
|
|
314
|
-
TbRlV,
|
|
315
|
-
TbRl,
|
|
316
|
-
BtLr,
|
|
317
|
-
LrTbV,
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
*/
|
|
321
|
-
export enum TableLayoutType {
|
|
322
|
-
Fixed,
|
|
323
|
-
Autofit,
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
*/
|
|
327
|
-
export enum VAlignType {
|
|
328
|
-
Top,
|
|
329
|
-
Center,
|
|
330
|
-
Bottom,
|
|
331
|
-
Unsupported,
|
|
332
|
-
}
|
|
333
|
-
/**
|
|
334
|
-
*/
|
|
335
|
-
export enum VMergeType {
|
|
336
|
-
Continue,
|
|
337
|
-
Restart,
|
|
338
|
-
Unsupported,
|
|
339
|
-
}
|
|
340
|
-
/**
|
|
341
|
-
*/
|
|
342
|
-
export enum CharacterSpacingValues {
|
|
343
|
-
DoNotCompress,
|
|
344
|
-
CompressPunctuation,
|
|
345
|
-
CompressPunctuationAndJapaneseKana,
|
|
346
|
-
Unsupported,
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
*/
|
|
350
|
-
export enum HeightRule {
|
|
351
|
-
Auto,
|
|
352
|
-
AtLeast,
|
|
353
|
-
Exact,
|
|
354
|
-
}
|
|
355
|
-
/**
|
|
356
|
-
*/
|
|
357
|
-
export enum LevelSuffixType {
|
|
358
|
-
Nothing,
|
|
359
|
-
Space,
|
|
360
|
-
Tab,
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
*/
|
|
364
|
-
export enum PositionalTabRelativeTo {
|
|
365
|
-
Indent,
|
|
366
|
-
Margin,
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
*/
|
|
370
|
-
export enum StyleType {
|
|
371
|
-
Paragraph,
|
|
372
|
-
Character,
|
|
373
|
-
Numbering,
|
|
374
|
-
Table,
|
|
375
|
-
Unsupported,
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
*/
|
|
379
236
|
export enum AlignmentType {
|
|
380
237
|
Both,
|
|
381
238
|
Center,
|
|
@@ -572,6 +429,149 @@ export enum WidthType {
|
|
|
572
429
|
}
|
|
573
430
|
/**
|
|
574
431
|
*/
|
|
432
|
+
export enum CharacterSpacingValues {
|
|
433
|
+
DoNotCompress,
|
|
434
|
+
CompressPunctuation,
|
|
435
|
+
CompressPunctuationAndJapaneseKana,
|
|
436
|
+
Unsupported,
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
*/
|
|
440
|
+
export enum HeightRule {
|
|
441
|
+
Auto,
|
|
442
|
+
AtLeast,
|
|
443
|
+
Exact,
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
*/
|
|
447
|
+
export enum LevelSuffixType {
|
|
448
|
+
Nothing,
|
|
449
|
+
Space,
|
|
450
|
+
Tab,
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
*/
|
|
454
|
+
export enum PositionalTabRelativeTo {
|
|
455
|
+
Indent,
|
|
456
|
+
Margin,
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
*/
|
|
460
|
+
export enum StyleType {
|
|
461
|
+
Paragraph,
|
|
462
|
+
Character,
|
|
463
|
+
Numbering,
|
|
464
|
+
Table,
|
|
465
|
+
Unsupported,
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
*/
|
|
469
|
+
export enum PositionalTabAlignmentType {
|
|
470
|
+
Center,
|
|
471
|
+
Left,
|
|
472
|
+
Right,
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
*/
|
|
476
|
+
export enum ShdType {
|
|
477
|
+
Nil,
|
|
478
|
+
Clear,
|
|
479
|
+
Solid,
|
|
480
|
+
HorzStripe,
|
|
481
|
+
VertStripe,
|
|
482
|
+
ReverseDiagStripe,
|
|
483
|
+
DiagStripe,
|
|
484
|
+
HorzCross,
|
|
485
|
+
DiagCross,
|
|
486
|
+
ThinHorzStripe,
|
|
487
|
+
ThinVertStripe,
|
|
488
|
+
ThinReverseDiagStripe,
|
|
489
|
+
ThinDiagStripe,
|
|
490
|
+
ThinHorzCross,
|
|
491
|
+
ThinDiagCross,
|
|
492
|
+
Pct5,
|
|
493
|
+
Pct10,
|
|
494
|
+
Pct12,
|
|
495
|
+
Pct15,
|
|
496
|
+
Pct20,
|
|
497
|
+
Pct25,
|
|
498
|
+
Pct30,
|
|
499
|
+
Pct35,
|
|
500
|
+
Pct37,
|
|
501
|
+
Pct40,
|
|
502
|
+
Pct45,
|
|
503
|
+
Pct50,
|
|
504
|
+
Pct55,
|
|
505
|
+
Pct60,
|
|
506
|
+
Pct62,
|
|
507
|
+
Pct65,
|
|
508
|
+
Pct70,
|
|
509
|
+
Pct75,
|
|
510
|
+
Pct80,
|
|
511
|
+
Pct85,
|
|
512
|
+
Pct87,
|
|
513
|
+
Pct90,
|
|
514
|
+
Pct95,
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
*/
|
|
518
|
+
export enum TabValueType {
|
|
519
|
+
Bar,
|
|
520
|
+
Center,
|
|
521
|
+
Clear,
|
|
522
|
+
Decimal,
|
|
523
|
+
End,
|
|
524
|
+
Right,
|
|
525
|
+
Num,
|
|
526
|
+
Start,
|
|
527
|
+
Left,
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
*/
|
|
531
|
+
export enum TextAlignmentType {
|
|
532
|
+
Auto,
|
|
533
|
+
Baseline,
|
|
534
|
+
Bottom,
|
|
535
|
+
Center,
|
|
536
|
+
Top,
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
*/
|
|
540
|
+
export enum TextDirectionType {
|
|
541
|
+
Lr,
|
|
542
|
+
LrV,
|
|
543
|
+
Rl,
|
|
544
|
+
RlV,
|
|
545
|
+
Tb,
|
|
546
|
+
TbV,
|
|
547
|
+
TbRlV,
|
|
548
|
+
TbRl,
|
|
549
|
+
BtLr,
|
|
550
|
+
LrTbV,
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
*/
|
|
554
|
+
export enum TableLayoutType {
|
|
555
|
+
Fixed,
|
|
556
|
+
Autofit,
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
*/
|
|
560
|
+
export enum VAlignType {
|
|
561
|
+
Top,
|
|
562
|
+
Center,
|
|
563
|
+
Bottom,
|
|
564
|
+
Unsupported,
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
*/
|
|
568
|
+
export enum VMergeType {
|
|
569
|
+
Continue,
|
|
570
|
+
Restart,
|
|
571
|
+
Unsupported,
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
*/
|
|
575
575
|
export class AbstractNumbering {
|
|
576
576
|
free(): void;
|
|
577
577
|
/**
|
|
@@ -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}
|