docx-wasm 0.4.16 → 0.4.17
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 +93 -93
- package/dist/node/pkg/docx_wasm.js +26 -26
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +10 -10
- package/dist/web/pkg/docx_wasm.d.ts +93 -93
- package/dist/web/pkg/docx_wasm_bg.js +26 -26
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +10 -10
- package/package.json +28 -2
- package/584.docx +0 -0
- package/Cargo.toml +0 -18
- package/assets/template.html +0 -13
- package/docx-wasm-0.4.12-beta8.tgz +0 -0
- package/example/index.ts +0 -37
- package/index.js +0 -24
- package/src/abstract_numbering.rs +0 -25
- package/src/adaptors/mod.rs +0 -3
- package/src/adaptors/special_indent.rs +0 -16
- package/src/comment.rs +0 -44
- package/src/delete.rs +0 -30
- package/src/doc.rs +0 -219
- package/src/footer.rs +0 -35
- package/src/header.rs +0 -35
- package/src/hyperlink.rs +0 -70
- package/src/insert.rs +0 -30
- package/src/level.rs +0 -89
- package/src/level_override.rs +0 -31
- package/src/lib.rs +0 -61
- package/src/line_spacing.rs +0 -49
- package/src/numbering.rs +0 -24
- package/src/page_margin.rs +0 -59
- package/src/page_num.rs +0 -90
- package/src/page_num_type.rs +0 -23
- package/src/paragraph.rs +0 -256
- package/src/pic.rs +0 -48
- package/src/reader.rs +0 -11
- package/src/run.rs +0 -130
- package/src/run_fonts.rs +0 -64
- package/src/style.rs +0 -254
- package/src/table.rs +0 -93
- package/src/table_cell.rs +0 -115
- package/src/table_cell_border.rs +0 -46
- package/src/table_of_contents.rs +0 -99
- package/src/table_of_contents_item.rs +0 -39
- package/src/table_position_property.rs +0 -59
- package/src/table_row.rs +0 -51
- package/src/web_extension.rs +0 -36
- package/test/__snapshots__/index.test.js.snap +0 -171859
- package/test/cat.js +0 -1
- package/test/encoded-cat.js +0 -4
- package/test/index.test.js +0 -1062
- package/test/output/.keep +0 -0
- package/tsconfig.json +0 -19
- package/tsconfig.node.json +0 -19
- package/tsconfig.web.json +0 -19
- package/webpack.common.js +0 -24
- package/webpack.dev.js +0 -15
- package/webpack.prod.js +0 -13
|
@@ -68,9 +68,9 @@ export function createTableRow(): TableRow;
|
|
|
68
68
|
*/
|
|
69
69
|
export function createAbstractNumbering(id: number): AbstractNumbering;
|
|
70
70
|
/**
|
|
71
|
-
* @returns {
|
|
71
|
+
* @returns {Header}
|
|
72
72
|
*/
|
|
73
|
-
export function
|
|
73
|
+
export function createHeader(): Header;
|
|
74
74
|
/**
|
|
75
75
|
* @param {string} style_id
|
|
76
76
|
* @param {number} style_type
|
|
@@ -96,9 +96,9 @@ export function createDelete(run: Run): Delete;
|
|
|
96
96
|
*/
|
|
97
97
|
export function createDocx(): Docx;
|
|
98
98
|
/**
|
|
99
|
-
* @returns {
|
|
99
|
+
* @returns {Footer}
|
|
100
100
|
*/
|
|
101
|
-
export function
|
|
101
|
+
export function createFooter(): Footer;
|
|
102
102
|
/**
|
|
103
103
|
* @returns {PageMargin}
|
|
104
104
|
*/
|
|
@@ -255,6 +255,95 @@ export enum VMergeType {
|
|
|
255
255
|
}
|
|
256
256
|
/**
|
|
257
257
|
*/
|
|
258
|
+
export enum VAlignType {
|
|
259
|
+
Top,
|
|
260
|
+
Center,
|
|
261
|
+
Bottom,
|
|
262
|
+
Unsupported,
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
*/
|
|
266
|
+
export enum FieldCharType {
|
|
267
|
+
Begin,
|
|
268
|
+
Separate,
|
|
269
|
+
End,
|
|
270
|
+
Unsupported,
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
*/
|
|
274
|
+
export enum ShdType {
|
|
275
|
+
Nil,
|
|
276
|
+
Clear,
|
|
277
|
+
Solid,
|
|
278
|
+
HorzStripe,
|
|
279
|
+
VertStripe,
|
|
280
|
+
ReverseDiagStripe,
|
|
281
|
+
DiagStripe,
|
|
282
|
+
HorzCross,
|
|
283
|
+
DiagCross,
|
|
284
|
+
ThinHorzStripe,
|
|
285
|
+
ThinVertStripe,
|
|
286
|
+
ThinReverseDiagStripe,
|
|
287
|
+
ThinDiagStripe,
|
|
288
|
+
ThinHorzCross,
|
|
289
|
+
ThinDiagCross,
|
|
290
|
+
Pct5,
|
|
291
|
+
Pct10,
|
|
292
|
+
Pct12,
|
|
293
|
+
Pct15,
|
|
294
|
+
Pct20,
|
|
295
|
+
Pct25,
|
|
296
|
+
Pct30,
|
|
297
|
+
Pct35,
|
|
298
|
+
Pct37,
|
|
299
|
+
Pct40,
|
|
300
|
+
Pct45,
|
|
301
|
+
Pct50,
|
|
302
|
+
Pct55,
|
|
303
|
+
Pct60,
|
|
304
|
+
Pct62,
|
|
305
|
+
Pct65,
|
|
306
|
+
Pct70,
|
|
307
|
+
Pct75,
|
|
308
|
+
Pct80,
|
|
309
|
+
Pct85,
|
|
310
|
+
Pct87,
|
|
311
|
+
Pct90,
|
|
312
|
+
Pct95,
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
*/
|
|
316
|
+
export enum TabLeaderType {
|
|
317
|
+
Dot,
|
|
318
|
+
Heavy,
|
|
319
|
+
Hyphen,
|
|
320
|
+
MiddleDot,
|
|
321
|
+
None,
|
|
322
|
+
Underscore,
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
*/
|
|
326
|
+
export enum TableAlignmentType {
|
|
327
|
+
Center,
|
|
328
|
+
Left,
|
|
329
|
+
Right,
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
*/
|
|
333
|
+
export enum TextDirectionType {
|
|
334
|
+
Lr,
|
|
335
|
+
LrV,
|
|
336
|
+
Rl,
|
|
337
|
+
RlV,
|
|
338
|
+
Tb,
|
|
339
|
+
TbV,
|
|
340
|
+
TbRlV,
|
|
341
|
+
TbRl,
|
|
342
|
+
BtLr,
|
|
343
|
+
LrTbV,
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
*/
|
|
258
347
|
export enum BorderType {
|
|
259
348
|
Nil,
|
|
260
349
|
None,
|
|
@@ -387,14 +476,6 @@ export enum RelativeFromVType {
|
|
|
387
476
|
}
|
|
388
477
|
/**
|
|
389
478
|
*/
|
|
390
|
-
export enum VAlignType {
|
|
391
|
-
Top,
|
|
392
|
-
Center,
|
|
393
|
-
Bottom,
|
|
394
|
-
Unsupported,
|
|
395
|
-
}
|
|
396
|
-
/**
|
|
397
|
-
*/
|
|
398
479
|
export enum PageOrientationType {
|
|
399
480
|
Landscape,
|
|
400
481
|
Portrait,
|
|
@@ -455,87 +536,6 @@ export enum TextAlignmentType {
|
|
|
455
536
|
}
|
|
456
537
|
/**
|
|
457
538
|
*/
|
|
458
|
-
export enum TextDirectionType {
|
|
459
|
-
Lr,
|
|
460
|
-
LrV,
|
|
461
|
-
Rl,
|
|
462
|
-
RlV,
|
|
463
|
-
Tb,
|
|
464
|
-
TbV,
|
|
465
|
-
TbRlV,
|
|
466
|
-
TbRl,
|
|
467
|
-
BtLr,
|
|
468
|
-
LrTbV,
|
|
469
|
-
}
|
|
470
|
-
/**
|
|
471
|
-
*/
|
|
472
|
-
export enum FieldCharType {
|
|
473
|
-
Begin,
|
|
474
|
-
Separate,
|
|
475
|
-
End,
|
|
476
|
-
Unsupported,
|
|
477
|
-
}
|
|
478
|
-
/**
|
|
479
|
-
*/
|
|
480
|
-
export enum ShdType {
|
|
481
|
-
Nil,
|
|
482
|
-
Clear,
|
|
483
|
-
Solid,
|
|
484
|
-
HorzStripe,
|
|
485
|
-
VertStripe,
|
|
486
|
-
ReverseDiagStripe,
|
|
487
|
-
DiagStripe,
|
|
488
|
-
HorzCross,
|
|
489
|
-
DiagCross,
|
|
490
|
-
ThinHorzStripe,
|
|
491
|
-
ThinVertStripe,
|
|
492
|
-
ThinReverseDiagStripe,
|
|
493
|
-
ThinDiagStripe,
|
|
494
|
-
ThinHorzCross,
|
|
495
|
-
ThinDiagCross,
|
|
496
|
-
Pct5,
|
|
497
|
-
Pct10,
|
|
498
|
-
Pct12,
|
|
499
|
-
Pct15,
|
|
500
|
-
Pct20,
|
|
501
|
-
Pct25,
|
|
502
|
-
Pct30,
|
|
503
|
-
Pct35,
|
|
504
|
-
Pct37,
|
|
505
|
-
Pct40,
|
|
506
|
-
Pct45,
|
|
507
|
-
Pct50,
|
|
508
|
-
Pct55,
|
|
509
|
-
Pct60,
|
|
510
|
-
Pct62,
|
|
511
|
-
Pct65,
|
|
512
|
-
Pct70,
|
|
513
|
-
Pct75,
|
|
514
|
-
Pct80,
|
|
515
|
-
Pct85,
|
|
516
|
-
Pct87,
|
|
517
|
-
Pct90,
|
|
518
|
-
Pct95,
|
|
519
|
-
}
|
|
520
|
-
/**
|
|
521
|
-
*/
|
|
522
|
-
export enum TabLeaderType {
|
|
523
|
-
Dot,
|
|
524
|
-
Heavy,
|
|
525
|
-
Hyphen,
|
|
526
|
-
MiddleDot,
|
|
527
|
-
None,
|
|
528
|
-
Underscore,
|
|
529
|
-
}
|
|
530
|
-
/**
|
|
531
|
-
*/
|
|
532
|
-
export enum TableAlignmentType {
|
|
533
|
-
Center,
|
|
534
|
-
Left,
|
|
535
|
-
Right,
|
|
536
|
-
}
|
|
537
|
-
/**
|
|
538
|
-
*/
|
|
539
539
|
export class AbstractNumbering {
|
|
540
540
|
free(): void;
|
|
541
541
|
/**
|
|
@@ -266,11 +266,11 @@ module.exports.createAbstractNumbering = function(id) {
|
|
|
266
266
|
};
|
|
267
267
|
|
|
268
268
|
/**
|
|
269
|
-
* @returns {
|
|
269
|
+
* @returns {Header}
|
|
270
270
|
*/
|
|
271
|
-
module.exports.
|
|
272
|
-
var ret = wasm.
|
|
273
|
-
return
|
|
271
|
+
module.exports.createHeader = function() {
|
|
272
|
+
var ret = wasm.createHeader();
|
|
273
|
+
return Header.__wrap(ret);
|
|
274
274
|
};
|
|
275
275
|
|
|
276
276
|
/**
|
|
@@ -332,11 +332,11 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
|
332
332
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
333
333
|
}
|
|
334
334
|
/**
|
|
335
|
-
* @returns {
|
|
335
|
+
* @returns {Footer}
|
|
336
336
|
*/
|
|
337
|
-
module.exports.
|
|
338
|
-
var ret = wasm.
|
|
339
|
-
return
|
|
337
|
+
module.exports.createFooter = function() {
|
|
338
|
+
var ret = wasm.createFooter();
|
|
339
|
+
return Footer.__wrap(ret);
|
|
340
340
|
};
|
|
341
341
|
|
|
342
342
|
/**
|
|
@@ -494,6 +494,24 @@ module.exports.TabValueType = Object.freeze({ Bar:0,"0":"Bar",Center:1,"1":"Cent
|
|
|
494
494
|
module.exports.VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
|
|
495
495
|
/**
|
|
496
496
|
*/
|
|
497
|
+
module.exports.VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
|
|
498
|
+
/**
|
|
499
|
+
*/
|
|
500
|
+
module.exports.FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
|
|
501
|
+
/**
|
|
502
|
+
*/
|
|
503
|
+
module.exports.ShdType = Object.freeze({ Nil:0,"0":"Nil",Clear:1,"1":"Clear",Solid:2,"2":"Solid",HorzStripe:3,"3":"HorzStripe",VertStripe:4,"4":"VertStripe",ReverseDiagStripe:5,"5":"ReverseDiagStripe",DiagStripe:6,"6":"DiagStripe",HorzCross:7,"7":"HorzCross",DiagCross:8,"8":"DiagCross",ThinHorzStripe:9,"9":"ThinHorzStripe",ThinVertStripe:10,"10":"ThinVertStripe",ThinReverseDiagStripe:11,"11":"ThinReverseDiagStripe",ThinDiagStripe:12,"12":"ThinDiagStripe",ThinHorzCross:13,"13":"ThinHorzCross",ThinDiagCross:14,"14":"ThinDiagCross",Pct5:15,"15":"Pct5",Pct10:16,"16":"Pct10",Pct12:17,"17":"Pct12",Pct15:18,"18":"Pct15",Pct20:19,"19":"Pct20",Pct25:20,"20":"Pct25",Pct30:21,"21":"Pct30",Pct35:22,"22":"Pct35",Pct37:23,"23":"Pct37",Pct40:24,"24":"Pct40",Pct45:25,"25":"Pct45",Pct50:26,"26":"Pct50",Pct55:27,"27":"Pct55",Pct60:28,"28":"Pct60",Pct62:29,"29":"Pct62",Pct65:30,"30":"Pct65",Pct70:31,"31":"Pct70",Pct75:32,"32":"Pct75",Pct80:33,"33":"Pct80",Pct85:34,"34":"Pct85",Pct87:35,"35":"Pct87",Pct90:36,"36":"Pct90",Pct95:37,"37":"Pct95", });
|
|
504
|
+
/**
|
|
505
|
+
*/
|
|
506
|
+
module.exports.TabLeaderType = Object.freeze({ Dot:0,"0":"Dot",Heavy:1,"1":"Heavy",Hyphen:2,"2":"Hyphen",MiddleDot:3,"3":"MiddleDot",None:4,"4":"None",Underscore:5,"5":"Underscore", });
|
|
507
|
+
/**
|
|
508
|
+
*/
|
|
509
|
+
module.exports.TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
|
|
510
|
+
/**
|
|
511
|
+
*/
|
|
512
|
+
module.exports.TextDirectionType = Object.freeze({ Lr:0,"0":"Lr",LrV:1,"1":"LrV",Rl:2,"2":"Rl",RlV:3,"3":"RlV",Tb:4,"4":"Tb",TbV:5,"5":"TbV",TbRlV:6,"6":"TbRlV",TbRl:7,"7":"TbRl",BtLr:8,"8":"BtLr",LrTbV:9,"9":"LrTbV", });
|
|
513
|
+
/**
|
|
514
|
+
*/
|
|
497
515
|
module.exports.BorderType = Object.freeze({ Nil:0,"0":"Nil",None:1,"1":"None",Single:2,"2":"Single",Thick:3,"3":"Thick",Double:4,"4":"Double",Dotted:5,"5":"Dotted",Dashed:6,"6":"Dashed",DotDash:7,"7":"DotDash",DotDotDash:8,"8":"DotDotDash",Triple:9,"9":"Triple",ThinThickSmallGap:10,"10":"ThinThickSmallGap",ThickThinSmallGap:11,"11":"ThickThinSmallGap",ThinThickThinSmallGap:12,"12":"ThinThickThinSmallGap",ThinThickMediumGap:13,"13":"ThinThickMediumGap",ThickThinMediumGap:14,"14":"ThickThinMediumGap",ThinThickThinMediumGap:15,"15":"ThinThickThinMediumGap",ThinThickLargeGap:16,"16":"ThinThickLargeGap",ThickThinLargeGap:17,"17":"ThickThinLargeGap",ThinThickThinLargeGap:18,"18":"ThinThickThinLargeGap",Wave:19,"19":"Wave",DoubleWave:20,"20":"DoubleWave",DashSmallGap:21,"21":"DashSmallGap",DashDotStroked:22,"22":"DashDotStroked",ThreeDEmboss:23,"23":"ThreeDEmboss",ThreeDEngrave:24,"24":"ThreeDEngrave",Outset:25,"25":"Outset",Inset:26,"26":"Inset",Apples:27,"27":"Apples",ArchedScallops:28,"28":"ArchedScallops",BabyPacifier:29,"29":"BabyPacifier",BabyRattle:30,"30":"BabyRattle", });
|
|
498
516
|
/**
|
|
499
517
|
*/
|
|
@@ -562,9 +580,6 @@ RightMargin:7,"7":"RightMargin", });
|
|
|
562
580
|
module.exports.RelativeFromVType = Object.freeze({ BottomMargin:0,"0":"BottomMargin",InsideMargin:1,"1":"InsideMargin",Line:2,"2":"Line",Margin:3,"3":"Margin",OutsizeMargin:4,"4":"OutsizeMargin",Page:5,"5":"Page",Paragraph:6,"6":"Paragraph",TopMargin:7,"7":"TopMargin", });
|
|
563
581
|
/**
|
|
564
582
|
*/
|
|
565
|
-
module.exports.VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
|
|
566
|
-
/**
|
|
567
|
-
*/
|
|
568
583
|
module.exports.PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
|
|
569
584
|
/**
|
|
570
585
|
*/
|
|
@@ -589,21 +604,6 @@ module.exports.SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",H
|
|
|
589
604
|
module.exports.TextAlignmentType = Object.freeze({ Auto:0,"0":"Auto",Baseline:1,"1":"Baseline",Bottom:2,"2":"Bottom",Center:3,"3":"Center",Top:4,"4":"Top", });
|
|
590
605
|
/**
|
|
591
606
|
*/
|
|
592
|
-
module.exports.TextDirectionType = Object.freeze({ Lr:0,"0":"Lr",LrV:1,"1":"LrV",Rl:2,"2":"Rl",RlV:3,"3":"RlV",Tb:4,"4":"Tb",TbV:5,"5":"TbV",TbRlV:6,"6":"TbRlV",TbRl:7,"7":"TbRl",BtLr:8,"8":"BtLr",LrTbV:9,"9":"LrTbV", });
|
|
593
|
-
/**
|
|
594
|
-
*/
|
|
595
|
-
module.exports.FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
|
|
596
|
-
/**
|
|
597
|
-
*/
|
|
598
|
-
module.exports.ShdType = Object.freeze({ Nil:0,"0":"Nil",Clear:1,"1":"Clear",Solid:2,"2":"Solid",HorzStripe:3,"3":"HorzStripe",VertStripe:4,"4":"VertStripe",ReverseDiagStripe:5,"5":"ReverseDiagStripe",DiagStripe:6,"6":"DiagStripe",HorzCross:7,"7":"HorzCross",DiagCross:8,"8":"DiagCross",ThinHorzStripe:9,"9":"ThinHorzStripe",ThinVertStripe:10,"10":"ThinVertStripe",ThinReverseDiagStripe:11,"11":"ThinReverseDiagStripe",ThinDiagStripe:12,"12":"ThinDiagStripe",ThinHorzCross:13,"13":"ThinHorzCross",ThinDiagCross:14,"14":"ThinDiagCross",Pct5:15,"15":"Pct5",Pct10:16,"16":"Pct10",Pct12:17,"17":"Pct12",Pct15:18,"18":"Pct15",Pct20:19,"19":"Pct20",Pct25:20,"20":"Pct25",Pct30:21,"21":"Pct30",Pct35:22,"22":"Pct35",Pct37:23,"23":"Pct37",Pct40:24,"24":"Pct40",Pct45:25,"25":"Pct45",Pct50:26,"26":"Pct50",Pct55:27,"27":"Pct55",Pct60:28,"28":"Pct60",Pct62:29,"29":"Pct62",Pct65:30,"30":"Pct65",Pct70:31,"31":"Pct70",Pct75:32,"32":"Pct75",Pct80:33,"33":"Pct80",Pct85:34,"34":"Pct85",Pct87:35,"35":"Pct87",Pct90:36,"36":"Pct90",Pct95:37,"37":"Pct95", });
|
|
599
|
-
/**
|
|
600
|
-
*/
|
|
601
|
-
module.exports.TabLeaderType = Object.freeze({ Dot:0,"0":"Dot",Heavy:1,"1":"Heavy",Hyphen:2,"2":"Hyphen",MiddleDot:3,"3":"MiddleDot",None:4,"4":"None",Underscore:5,"5":"Underscore", });
|
|
602
|
-
/**
|
|
603
|
-
*/
|
|
604
|
-
module.exports.TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
|
|
605
|
-
/**
|
|
606
|
-
*/
|
|
607
607
|
class AbstractNumbering {
|
|
608
608
|
|
|
609
609
|
static __wrap(ptr) {
|
|
Binary file
|
|
@@ -152,11 +152,11 @@ export function tablerow_insert(a: number, b: number, c: number, d: number, e: n
|
|
|
152
152
|
export function __wbg_abstractnumbering_free(a: number): void;
|
|
153
153
|
export function createAbstractNumbering(a: number): number;
|
|
154
154
|
export function abstractnumbering_add_level(a: number, b: number): number;
|
|
155
|
-
export function
|
|
156
|
-
export function
|
|
157
|
-
export function
|
|
158
|
-
export function
|
|
159
|
-
export function
|
|
155
|
+
export function __wbg_header_free(a: number): void;
|
|
156
|
+
export function createHeader(): number;
|
|
157
|
+
export function header_add_paragraph(a: number, b: number): number;
|
|
158
|
+
export function header_add_table(a: number, b: number): number;
|
|
159
|
+
export function header_add_page_num(a: number, b: number): number;
|
|
160
160
|
export function __wbg_style_free(a: number): void;
|
|
161
161
|
export function createStyle(a: number, b: number, c: number): number;
|
|
162
162
|
export function style_name(a: number, b: number, c: number): number;
|
|
@@ -241,11 +241,11 @@ export function docx_page_num_type(a: number, b: number): number;
|
|
|
241
241
|
export function docx_doc_grid(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
242
242
|
export function docx_build(a: number, b: number, c: number): void;
|
|
243
243
|
export function docx_json_with_update_comments(a: number, b: number): void;
|
|
244
|
-
export function
|
|
245
|
-
export function
|
|
246
|
-
export function
|
|
247
|
-
export function
|
|
248
|
-
export function
|
|
244
|
+
export function __wbg_footer_free(a: number): void;
|
|
245
|
+
export function createFooter(): number;
|
|
246
|
+
export function footer_add_paragraph(a: number, b: number): number;
|
|
247
|
+
export function footer_add_table(a: number, b: number): number;
|
|
248
|
+
export function footer_add_page_num(a: number, b: number): number;
|
|
249
249
|
export function __wbg_pagemargin_free(a: number): void;
|
|
250
250
|
export function createPageMargin(): number;
|
|
251
251
|
export function pagemargin_top(a: number, b: number): number;
|
|
@@ -68,9 +68,9 @@ export function createTableRow(): TableRow;
|
|
|
68
68
|
*/
|
|
69
69
|
export function createAbstractNumbering(id: number): AbstractNumbering;
|
|
70
70
|
/**
|
|
71
|
-
* @returns {
|
|
71
|
+
* @returns {Header}
|
|
72
72
|
*/
|
|
73
|
-
export function
|
|
73
|
+
export function createHeader(): Header;
|
|
74
74
|
/**
|
|
75
75
|
* @param {string} style_id
|
|
76
76
|
* @param {number} style_type
|
|
@@ -96,9 +96,9 @@ export function createDelete(run: Run): Delete;
|
|
|
96
96
|
*/
|
|
97
97
|
export function createDocx(): Docx;
|
|
98
98
|
/**
|
|
99
|
-
* @returns {
|
|
99
|
+
* @returns {Footer}
|
|
100
100
|
*/
|
|
101
|
-
export function
|
|
101
|
+
export function createFooter(): Footer;
|
|
102
102
|
/**
|
|
103
103
|
* @returns {PageMargin}
|
|
104
104
|
*/
|
|
@@ -255,6 +255,95 @@ export enum VMergeType {
|
|
|
255
255
|
}
|
|
256
256
|
/**
|
|
257
257
|
*/
|
|
258
|
+
export enum VAlignType {
|
|
259
|
+
Top,
|
|
260
|
+
Center,
|
|
261
|
+
Bottom,
|
|
262
|
+
Unsupported,
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
*/
|
|
266
|
+
export enum FieldCharType {
|
|
267
|
+
Begin,
|
|
268
|
+
Separate,
|
|
269
|
+
End,
|
|
270
|
+
Unsupported,
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
*/
|
|
274
|
+
export enum ShdType {
|
|
275
|
+
Nil,
|
|
276
|
+
Clear,
|
|
277
|
+
Solid,
|
|
278
|
+
HorzStripe,
|
|
279
|
+
VertStripe,
|
|
280
|
+
ReverseDiagStripe,
|
|
281
|
+
DiagStripe,
|
|
282
|
+
HorzCross,
|
|
283
|
+
DiagCross,
|
|
284
|
+
ThinHorzStripe,
|
|
285
|
+
ThinVertStripe,
|
|
286
|
+
ThinReverseDiagStripe,
|
|
287
|
+
ThinDiagStripe,
|
|
288
|
+
ThinHorzCross,
|
|
289
|
+
ThinDiagCross,
|
|
290
|
+
Pct5,
|
|
291
|
+
Pct10,
|
|
292
|
+
Pct12,
|
|
293
|
+
Pct15,
|
|
294
|
+
Pct20,
|
|
295
|
+
Pct25,
|
|
296
|
+
Pct30,
|
|
297
|
+
Pct35,
|
|
298
|
+
Pct37,
|
|
299
|
+
Pct40,
|
|
300
|
+
Pct45,
|
|
301
|
+
Pct50,
|
|
302
|
+
Pct55,
|
|
303
|
+
Pct60,
|
|
304
|
+
Pct62,
|
|
305
|
+
Pct65,
|
|
306
|
+
Pct70,
|
|
307
|
+
Pct75,
|
|
308
|
+
Pct80,
|
|
309
|
+
Pct85,
|
|
310
|
+
Pct87,
|
|
311
|
+
Pct90,
|
|
312
|
+
Pct95,
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
*/
|
|
316
|
+
export enum TabLeaderType {
|
|
317
|
+
Dot,
|
|
318
|
+
Heavy,
|
|
319
|
+
Hyphen,
|
|
320
|
+
MiddleDot,
|
|
321
|
+
None,
|
|
322
|
+
Underscore,
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
*/
|
|
326
|
+
export enum TableAlignmentType {
|
|
327
|
+
Center,
|
|
328
|
+
Left,
|
|
329
|
+
Right,
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
*/
|
|
333
|
+
export enum TextDirectionType {
|
|
334
|
+
Lr,
|
|
335
|
+
LrV,
|
|
336
|
+
Rl,
|
|
337
|
+
RlV,
|
|
338
|
+
Tb,
|
|
339
|
+
TbV,
|
|
340
|
+
TbRlV,
|
|
341
|
+
TbRl,
|
|
342
|
+
BtLr,
|
|
343
|
+
LrTbV,
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
*/
|
|
258
347
|
export enum BorderType {
|
|
259
348
|
Nil,
|
|
260
349
|
None,
|
|
@@ -387,14 +476,6 @@ export enum RelativeFromVType {
|
|
|
387
476
|
}
|
|
388
477
|
/**
|
|
389
478
|
*/
|
|
390
|
-
export enum VAlignType {
|
|
391
|
-
Top,
|
|
392
|
-
Center,
|
|
393
|
-
Bottom,
|
|
394
|
-
Unsupported,
|
|
395
|
-
}
|
|
396
|
-
/**
|
|
397
|
-
*/
|
|
398
479
|
export enum PageOrientationType {
|
|
399
480
|
Landscape,
|
|
400
481
|
Portrait,
|
|
@@ -455,87 +536,6 @@ export enum TextAlignmentType {
|
|
|
455
536
|
}
|
|
456
537
|
/**
|
|
457
538
|
*/
|
|
458
|
-
export enum TextDirectionType {
|
|
459
|
-
Lr,
|
|
460
|
-
LrV,
|
|
461
|
-
Rl,
|
|
462
|
-
RlV,
|
|
463
|
-
Tb,
|
|
464
|
-
TbV,
|
|
465
|
-
TbRlV,
|
|
466
|
-
TbRl,
|
|
467
|
-
BtLr,
|
|
468
|
-
LrTbV,
|
|
469
|
-
}
|
|
470
|
-
/**
|
|
471
|
-
*/
|
|
472
|
-
export enum FieldCharType {
|
|
473
|
-
Begin,
|
|
474
|
-
Separate,
|
|
475
|
-
End,
|
|
476
|
-
Unsupported,
|
|
477
|
-
}
|
|
478
|
-
/**
|
|
479
|
-
*/
|
|
480
|
-
export enum ShdType {
|
|
481
|
-
Nil,
|
|
482
|
-
Clear,
|
|
483
|
-
Solid,
|
|
484
|
-
HorzStripe,
|
|
485
|
-
VertStripe,
|
|
486
|
-
ReverseDiagStripe,
|
|
487
|
-
DiagStripe,
|
|
488
|
-
HorzCross,
|
|
489
|
-
DiagCross,
|
|
490
|
-
ThinHorzStripe,
|
|
491
|
-
ThinVertStripe,
|
|
492
|
-
ThinReverseDiagStripe,
|
|
493
|
-
ThinDiagStripe,
|
|
494
|
-
ThinHorzCross,
|
|
495
|
-
ThinDiagCross,
|
|
496
|
-
Pct5,
|
|
497
|
-
Pct10,
|
|
498
|
-
Pct12,
|
|
499
|
-
Pct15,
|
|
500
|
-
Pct20,
|
|
501
|
-
Pct25,
|
|
502
|
-
Pct30,
|
|
503
|
-
Pct35,
|
|
504
|
-
Pct37,
|
|
505
|
-
Pct40,
|
|
506
|
-
Pct45,
|
|
507
|
-
Pct50,
|
|
508
|
-
Pct55,
|
|
509
|
-
Pct60,
|
|
510
|
-
Pct62,
|
|
511
|
-
Pct65,
|
|
512
|
-
Pct70,
|
|
513
|
-
Pct75,
|
|
514
|
-
Pct80,
|
|
515
|
-
Pct85,
|
|
516
|
-
Pct87,
|
|
517
|
-
Pct90,
|
|
518
|
-
Pct95,
|
|
519
|
-
}
|
|
520
|
-
/**
|
|
521
|
-
*/
|
|
522
|
-
export enum TabLeaderType {
|
|
523
|
-
Dot,
|
|
524
|
-
Heavy,
|
|
525
|
-
Hyphen,
|
|
526
|
-
MiddleDot,
|
|
527
|
-
None,
|
|
528
|
-
Underscore,
|
|
529
|
-
}
|
|
530
|
-
/**
|
|
531
|
-
*/
|
|
532
|
-
export enum TableAlignmentType {
|
|
533
|
-
Center,
|
|
534
|
-
Left,
|
|
535
|
-
Right,
|
|
536
|
-
}
|
|
537
|
-
/**
|
|
538
|
-
*/
|
|
539
539
|
export class AbstractNumbering {
|
|
540
540
|
free(): void;
|
|
541
541
|
/**
|
|
@@ -267,11 +267,11 @@ export function createAbstractNumbering(id) {
|
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
/**
|
|
270
|
-
* @returns {
|
|
270
|
+
* @returns {Header}
|
|
271
271
|
*/
|
|
272
|
-
export function
|
|
273
|
-
var ret = wasm.
|
|
274
|
-
return
|
|
272
|
+
export function createHeader() {
|
|
273
|
+
var ret = wasm.createHeader();
|
|
274
|
+
return Header.__wrap(ret);
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
/**
|
|
@@ -333,11 +333,11 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
|
333
333
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
334
334
|
}
|
|
335
335
|
/**
|
|
336
|
-
* @returns {
|
|
336
|
+
* @returns {Footer}
|
|
337
337
|
*/
|
|
338
|
-
export function
|
|
339
|
-
var ret = wasm.
|
|
340
|
-
return
|
|
338
|
+
export function createFooter() {
|
|
339
|
+
var ret = wasm.createFooter();
|
|
340
|
+
return Footer.__wrap(ret);
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
/**
|
|
@@ -495,6 +495,24 @@ export const TabValueType = Object.freeze({ Bar:0,"0":"Bar",Center:1,"1":"Center
|
|
|
495
495
|
export const VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
|
|
496
496
|
/**
|
|
497
497
|
*/
|
|
498
|
+
export const VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
|
|
499
|
+
/**
|
|
500
|
+
*/
|
|
501
|
+
export const FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
|
|
502
|
+
/**
|
|
503
|
+
*/
|
|
504
|
+
export const ShdType = Object.freeze({ Nil:0,"0":"Nil",Clear:1,"1":"Clear",Solid:2,"2":"Solid",HorzStripe:3,"3":"HorzStripe",VertStripe:4,"4":"VertStripe",ReverseDiagStripe:5,"5":"ReverseDiagStripe",DiagStripe:6,"6":"DiagStripe",HorzCross:7,"7":"HorzCross",DiagCross:8,"8":"DiagCross",ThinHorzStripe:9,"9":"ThinHorzStripe",ThinVertStripe:10,"10":"ThinVertStripe",ThinReverseDiagStripe:11,"11":"ThinReverseDiagStripe",ThinDiagStripe:12,"12":"ThinDiagStripe",ThinHorzCross:13,"13":"ThinHorzCross",ThinDiagCross:14,"14":"ThinDiagCross",Pct5:15,"15":"Pct5",Pct10:16,"16":"Pct10",Pct12:17,"17":"Pct12",Pct15:18,"18":"Pct15",Pct20:19,"19":"Pct20",Pct25:20,"20":"Pct25",Pct30:21,"21":"Pct30",Pct35:22,"22":"Pct35",Pct37:23,"23":"Pct37",Pct40:24,"24":"Pct40",Pct45:25,"25":"Pct45",Pct50:26,"26":"Pct50",Pct55:27,"27":"Pct55",Pct60:28,"28":"Pct60",Pct62:29,"29":"Pct62",Pct65:30,"30":"Pct65",Pct70:31,"31":"Pct70",Pct75:32,"32":"Pct75",Pct80:33,"33":"Pct80",Pct85:34,"34":"Pct85",Pct87:35,"35":"Pct87",Pct90:36,"36":"Pct90",Pct95:37,"37":"Pct95", });
|
|
505
|
+
/**
|
|
506
|
+
*/
|
|
507
|
+
export const TabLeaderType = Object.freeze({ Dot:0,"0":"Dot",Heavy:1,"1":"Heavy",Hyphen:2,"2":"Hyphen",MiddleDot:3,"3":"MiddleDot",None:4,"4":"None",Underscore:5,"5":"Underscore", });
|
|
508
|
+
/**
|
|
509
|
+
*/
|
|
510
|
+
export const TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
|
|
511
|
+
/**
|
|
512
|
+
*/
|
|
513
|
+
export const TextDirectionType = Object.freeze({ Lr:0,"0":"Lr",LrV:1,"1":"LrV",Rl:2,"2":"Rl",RlV:3,"3":"RlV",Tb:4,"4":"Tb",TbV:5,"5":"TbV",TbRlV:6,"6":"TbRlV",TbRl:7,"7":"TbRl",BtLr:8,"8":"BtLr",LrTbV:9,"9":"LrTbV", });
|
|
514
|
+
/**
|
|
515
|
+
*/
|
|
498
516
|
export const BorderType = Object.freeze({ Nil:0,"0":"Nil",None:1,"1":"None",Single:2,"2":"Single",Thick:3,"3":"Thick",Double:4,"4":"Double",Dotted:5,"5":"Dotted",Dashed:6,"6":"Dashed",DotDash:7,"7":"DotDash",DotDotDash:8,"8":"DotDotDash",Triple:9,"9":"Triple",ThinThickSmallGap:10,"10":"ThinThickSmallGap",ThickThinSmallGap:11,"11":"ThickThinSmallGap",ThinThickThinSmallGap:12,"12":"ThinThickThinSmallGap",ThinThickMediumGap:13,"13":"ThinThickMediumGap",ThickThinMediumGap:14,"14":"ThickThinMediumGap",ThinThickThinMediumGap:15,"15":"ThinThickThinMediumGap",ThinThickLargeGap:16,"16":"ThinThickLargeGap",ThickThinLargeGap:17,"17":"ThickThinLargeGap",ThinThickThinLargeGap:18,"18":"ThinThickThinLargeGap",Wave:19,"19":"Wave",DoubleWave:20,"20":"DoubleWave",DashSmallGap:21,"21":"DashSmallGap",DashDotStroked:22,"22":"DashDotStroked",ThreeDEmboss:23,"23":"ThreeDEmboss",ThreeDEngrave:24,"24":"ThreeDEngrave",Outset:25,"25":"Outset",Inset:26,"26":"Inset",Apples:27,"27":"Apples",ArchedScallops:28,"28":"ArchedScallops",BabyPacifier:29,"29":"BabyPacifier",BabyRattle:30,"30":"BabyRattle", });
|
|
499
517
|
/**
|
|
500
518
|
*/
|
|
@@ -563,9 +581,6 @@ RightMargin:7,"7":"RightMargin", });
|
|
|
563
581
|
export const RelativeFromVType = Object.freeze({ BottomMargin:0,"0":"BottomMargin",InsideMargin:1,"1":"InsideMargin",Line:2,"2":"Line",Margin:3,"3":"Margin",OutsizeMargin:4,"4":"OutsizeMargin",Page:5,"5":"Page",Paragraph:6,"6":"Paragraph",TopMargin:7,"7":"TopMargin", });
|
|
564
582
|
/**
|
|
565
583
|
*/
|
|
566
|
-
export const VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
|
|
567
|
-
/**
|
|
568
|
-
*/
|
|
569
584
|
export const PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
|
|
570
585
|
/**
|
|
571
586
|
*/
|
|
@@ -590,21 +605,6 @@ export const SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Han
|
|
|
590
605
|
export const TextAlignmentType = Object.freeze({ Auto:0,"0":"Auto",Baseline:1,"1":"Baseline",Bottom:2,"2":"Bottom",Center:3,"3":"Center",Top:4,"4":"Top", });
|
|
591
606
|
/**
|
|
592
607
|
*/
|
|
593
|
-
export const TextDirectionType = Object.freeze({ Lr:0,"0":"Lr",LrV:1,"1":"LrV",Rl:2,"2":"Rl",RlV:3,"3":"RlV",Tb:4,"4":"Tb",TbV:5,"5":"TbV",TbRlV:6,"6":"TbRlV",TbRl:7,"7":"TbRl",BtLr:8,"8":"BtLr",LrTbV:9,"9":"LrTbV", });
|
|
594
|
-
/**
|
|
595
|
-
*/
|
|
596
|
-
export const FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
|
|
597
|
-
/**
|
|
598
|
-
*/
|
|
599
|
-
export const ShdType = Object.freeze({ Nil:0,"0":"Nil",Clear:1,"1":"Clear",Solid:2,"2":"Solid",HorzStripe:3,"3":"HorzStripe",VertStripe:4,"4":"VertStripe",ReverseDiagStripe:5,"5":"ReverseDiagStripe",DiagStripe:6,"6":"DiagStripe",HorzCross:7,"7":"HorzCross",DiagCross:8,"8":"DiagCross",ThinHorzStripe:9,"9":"ThinHorzStripe",ThinVertStripe:10,"10":"ThinVertStripe",ThinReverseDiagStripe:11,"11":"ThinReverseDiagStripe",ThinDiagStripe:12,"12":"ThinDiagStripe",ThinHorzCross:13,"13":"ThinHorzCross",ThinDiagCross:14,"14":"ThinDiagCross",Pct5:15,"15":"Pct5",Pct10:16,"16":"Pct10",Pct12:17,"17":"Pct12",Pct15:18,"18":"Pct15",Pct20:19,"19":"Pct20",Pct25:20,"20":"Pct25",Pct30:21,"21":"Pct30",Pct35:22,"22":"Pct35",Pct37:23,"23":"Pct37",Pct40:24,"24":"Pct40",Pct45:25,"25":"Pct45",Pct50:26,"26":"Pct50",Pct55:27,"27":"Pct55",Pct60:28,"28":"Pct60",Pct62:29,"29":"Pct62",Pct65:30,"30":"Pct65",Pct70:31,"31":"Pct70",Pct75:32,"32":"Pct75",Pct80:33,"33":"Pct80",Pct85:34,"34":"Pct85",Pct87:35,"35":"Pct87",Pct90:36,"36":"Pct90",Pct95:37,"37":"Pct95", });
|
|
600
|
-
/**
|
|
601
|
-
*/
|
|
602
|
-
export const TabLeaderType = Object.freeze({ Dot:0,"0":"Dot",Heavy:1,"1":"Heavy",Hyphen:2,"2":"Hyphen",MiddleDot:3,"3":"MiddleDot",None:4,"4":"None",Underscore:5,"5":"Underscore", });
|
|
603
|
-
/**
|
|
604
|
-
*/
|
|
605
|
-
export const TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
|
|
606
|
-
/**
|
|
607
|
-
*/
|
|
608
608
|
export class AbstractNumbering {
|
|
609
609
|
|
|
610
610
|
static __wrap(ptr) {
|
|
Binary file
|