docx-wasm 0.0.278-rc0 → 0.0.278-rc2
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 +91 -91
- package/dist/node/pkg/docx_wasm.js +53 -53
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +1 -1
- package/dist/web/pkg/docx_wasm.d.ts +91 -91
- package/dist/web/pkg/docx_wasm_bg.js +53 -53
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +1 -1
- package/package.json +2 -2
|
@@ -203,97 +203,6 @@ export enum LevelSuffixType {
|
|
|
203
203
|
}
|
|
204
204
|
/**
|
|
205
205
|
*/
|
|
206
|
-
export enum TabLeaderType {
|
|
207
|
-
Dot,
|
|
208
|
-
Heavy,
|
|
209
|
-
Hyphen,
|
|
210
|
-
MiddleDot,
|
|
211
|
-
None,
|
|
212
|
-
Underscore,
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
*/
|
|
216
|
-
export enum DocGridType {
|
|
217
|
-
Default,
|
|
218
|
-
Lines,
|
|
219
|
-
LinesAndChars,
|
|
220
|
-
SnapToChars,
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
*/
|
|
224
|
-
export enum RelativeFromHType {
|
|
225
|
-
/**
|
|
226
|
-
* Specifies that the horizontal positioning shall be
|
|
227
|
-
* relative to the position of the anchor within its run
|
|
228
|
-
* content.
|
|
229
|
-
*/
|
|
230
|
-
Character,
|
|
231
|
-
/**
|
|
232
|
-
* Specifies that the horizontal positioning shall be
|
|
233
|
-
* relative to the extents of the column which contains its
|
|
234
|
-
* anchor.
|
|
235
|
-
*/
|
|
236
|
-
Column,
|
|
237
|
-
/**
|
|
238
|
-
* Specifies that the horizontal positioning shall be
|
|
239
|
-
* relative to the inside margin of the current page (the
|
|
240
|
-
* left margin on odd pages, right on even pages).
|
|
241
|
-
*/
|
|
242
|
-
InsideMargin,
|
|
243
|
-
/**
|
|
244
|
-
* Specifies that the horizontal positioning shall be
|
|
245
|
-
* relative to the left margin of the page.
|
|
246
|
-
*/
|
|
247
|
-
LeftMargin,
|
|
248
|
-
/**
|
|
249
|
-
* Specifies that the horizontal positioning shall be
|
|
250
|
-
* relative to the page margins.
|
|
251
|
-
*/
|
|
252
|
-
Margin,
|
|
253
|
-
/**
|
|
254
|
-
* Specifies that the horizontal positioning shall be
|
|
255
|
-
* relative to the outside margin of the current page (the
|
|
256
|
-
* right margin on odd pages, left on even pages).
|
|
257
|
-
*/
|
|
258
|
-
OutsizeMargin,
|
|
259
|
-
/**
|
|
260
|
-
* Specifies that the horizontal positioning shall be
|
|
261
|
-
* relative to the edge of the page.
|
|
262
|
-
*/
|
|
263
|
-
Page,
|
|
264
|
-
/**
|
|
265
|
-
* Specifies that the horizontal positioning shall be
|
|
266
|
-
* relative to the right margin of the page.
|
|
267
|
-
*/
|
|
268
|
-
RightMargin,
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
*/
|
|
272
|
-
export enum RelativeFromVType {
|
|
273
|
-
BottomMargin,
|
|
274
|
-
InsideMargin,
|
|
275
|
-
Line,
|
|
276
|
-
Margin,
|
|
277
|
-
OutsizeMargin,
|
|
278
|
-
Page,
|
|
279
|
-
Paragraph,
|
|
280
|
-
TopMargin,
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
*/
|
|
284
|
-
export enum TabValueType {
|
|
285
|
-
Bar,
|
|
286
|
-
Center,
|
|
287
|
-
Clear,
|
|
288
|
-
Decimal,
|
|
289
|
-
End,
|
|
290
|
-
Right,
|
|
291
|
-
Num,
|
|
292
|
-
Start,
|
|
293
|
-
Left,
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
*/
|
|
297
206
|
export enum TextDirectionType {
|
|
298
207
|
Lr,
|
|
299
208
|
LrV,
|
|
@@ -400,6 +309,16 @@ export enum HyperlinkType {
|
|
|
400
309
|
}
|
|
401
310
|
/**
|
|
402
311
|
*/
|
|
312
|
+
export enum TabLeaderType {
|
|
313
|
+
Dot,
|
|
314
|
+
Heavy,
|
|
315
|
+
Hyphen,
|
|
316
|
+
MiddleDot,
|
|
317
|
+
None,
|
|
318
|
+
Underscore,
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
*/
|
|
403
322
|
export enum VMergeType {
|
|
404
323
|
Continue,
|
|
405
324
|
Restart,
|
|
@@ -496,6 +415,87 @@ export enum WidthType {
|
|
|
496
415
|
}
|
|
497
416
|
/**
|
|
498
417
|
*/
|
|
418
|
+
export enum DocGridType {
|
|
419
|
+
Default,
|
|
420
|
+
Lines,
|
|
421
|
+
LinesAndChars,
|
|
422
|
+
SnapToChars,
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
*/
|
|
426
|
+
export enum RelativeFromHType {
|
|
427
|
+
/**
|
|
428
|
+
* Specifies that the horizontal positioning shall be
|
|
429
|
+
* relative to the position of the anchor within its run
|
|
430
|
+
* content.
|
|
431
|
+
*/
|
|
432
|
+
Character,
|
|
433
|
+
/**
|
|
434
|
+
* Specifies that the horizontal positioning shall be
|
|
435
|
+
* relative to the extents of the column which contains its
|
|
436
|
+
* anchor.
|
|
437
|
+
*/
|
|
438
|
+
Column,
|
|
439
|
+
/**
|
|
440
|
+
* Specifies that the horizontal positioning shall be
|
|
441
|
+
* relative to the inside margin of the current page (the
|
|
442
|
+
* left margin on odd pages, right on even pages).
|
|
443
|
+
*/
|
|
444
|
+
InsideMargin,
|
|
445
|
+
/**
|
|
446
|
+
* Specifies that the horizontal positioning shall be
|
|
447
|
+
* relative to the left margin of the page.
|
|
448
|
+
*/
|
|
449
|
+
LeftMargin,
|
|
450
|
+
/**
|
|
451
|
+
* Specifies that the horizontal positioning shall be
|
|
452
|
+
* relative to the page margins.
|
|
453
|
+
*/
|
|
454
|
+
Margin,
|
|
455
|
+
/**
|
|
456
|
+
* Specifies that the horizontal positioning shall be
|
|
457
|
+
* relative to the outside margin of the current page (the
|
|
458
|
+
* right margin on odd pages, left on even pages).
|
|
459
|
+
*/
|
|
460
|
+
OutsizeMargin,
|
|
461
|
+
/**
|
|
462
|
+
* Specifies that the horizontal positioning shall be
|
|
463
|
+
* relative to the edge of the page.
|
|
464
|
+
*/
|
|
465
|
+
Page,
|
|
466
|
+
/**
|
|
467
|
+
* Specifies that the horizontal positioning shall be
|
|
468
|
+
* relative to the right margin of the page.
|
|
469
|
+
*/
|
|
470
|
+
RightMargin,
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
*/
|
|
474
|
+
export enum RelativeFromVType {
|
|
475
|
+
BottomMargin,
|
|
476
|
+
InsideMargin,
|
|
477
|
+
Line,
|
|
478
|
+
Margin,
|
|
479
|
+
OutsizeMargin,
|
|
480
|
+
Page,
|
|
481
|
+
Paragraph,
|
|
482
|
+
TopMargin,
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
*/
|
|
486
|
+
export enum TabValueType {
|
|
487
|
+
Bar,
|
|
488
|
+
Center,
|
|
489
|
+
Clear,
|
|
490
|
+
Decimal,
|
|
491
|
+
End,
|
|
492
|
+
Right,
|
|
493
|
+
Num,
|
|
494
|
+
Start,
|
|
495
|
+
Left,
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
*/
|
|
499
499
|
export class AbstractNumbering {
|
|
500
500
|
free(): void;
|
|
501
501
|
/**
|
|
@@ -448,123 +448,123 @@ module.exports.HeightRule = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtL
|
|
|
448
448
|
module.exports.LevelSuffixType = Object.freeze({ Nothing:0,"0":"Nothing",Space:1,"1":"Space",Tab:2,"2":"Tab", });
|
|
449
449
|
/**
|
|
450
450
|
*/
|
|
451
|
-
module.exports.
|
|
451
|
+
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", });
|
|
452
452
|
/**
|
|
453
453
|
*/
|
|
454
|
-
module.exports.
|
|
454
|
+
module.exports.BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
|
|
455
455
|
/**
|
|
456
456
|
*/
|
|
457
|
-
module.exports.
|
|
457
|
+
module.exports.LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
|
|
458
458
|
/**
|
|
459
|
-
* Specifies that the horizontal positioning shall be
|
|
460
|
-
* relative to the position of the anchor within its run
|
|
461
|
-
* content.
|
|
462
459
|
*/
|
|
463
|
-
|
|
460
|
+
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", });
|
|
464
461
|
/**
|
|
465
|
-
* Specifies that the horizontal positioning shall be
|
|
466
|
-
* relative to the extents of the column which contains its
|
|
467
|
-
* anchor.
|
|
468
462
|
*/
|
|
469
|
-
|
|
463
|
+
module.exports.VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
|
|
470
464
|
/**
|
|
471
|
-
* Specifies that the horizontal positioning shall be
|
|
472
|
-
* relative to the inside margin of the current page (the
|
|
473
|
-
* left margin on odd pages, right on even pages).
|
|
474
465
|
*/
|
|
475
|
-
|
|
466
|
+
module.exports.VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
|
|
476
467
|
/**
|
|
477
|
-
* Specifies that the horizontal positioning shall be
|
|
478
|
-
* relative to the left margin of the page.
|
|
479
468
|
*/
|
|
480
|
-
|
|
469
|
+
module.exports.AlignmentType = Object.freeze({ Both:0,"0":"Both",Center:1,"1":"Center",Distribute:2,"2":"Distribute",Start:3,"3":"Start",End:4,"4":"End",Left:5,"5":"Left",Right:6,"6":"Right",Justified:7,"7":"Justified",Unsupported:8,"8":"Unsupported", });
|
|
481
470
|
/**
|
|
482
|
-
* Specifies that the horizontal positioning shall be
|
|
483
|
-
* relative to the page margins.
|
|
484
471
|
*/
|
|
485
|
-
|
|
472
|
+
module.exports.HyperlinkType = Object.freeze({ Anchor:0,"0":"Anchor",External:1,"1":"External", });
|
|
486
473
|
/**
|
|
487
|
-
* Specifies that the horizontal positioning shall be
|
|
488
|
-
* relative to the outside margin of the current page (the
|
|
489
|
-
* right margin on odd pages, left on even pages).
|
|
490
474
|
*/
|
|
491
|
-
|
|
475
|
+
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", });
|
|
492
476
|
/**
|
|
493
|
-
* Specifies that the horizontal positioning shall be
|
|
494
|
-
* relative to the edge of the page.
|
|
495
477
|
*/
|
|
496
|
-
|
|
478
|
+
module.exports.VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
|
|
497
479
|
/**
|
|
498
|
-
* Specifies that the horizontal positioning shall be
|
|
499
|
-
* relative to the right margin of the page.
|
|
500
480
|
*/
|
|
501
|
-
|
|
481
|
+
module.exports.FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
|
|
502
482
|
/**
|
|
503
483
|
*/
|
|
504
|
-
module.exports.
|
|
484
|
+
module.exports.PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
|
|
505
485
|
/**
|
|
506
486
|
*/
|
|
507
|
-
module.exports.
|
|
487
|
+
module.exports.SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Hanging:1,"1":"Hanging", });
|
|
508
488
|
/**
|
|
509
489
|
*/
|
|
510
|
-
module.exports.
|
|
490
|
+
module.exports.TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
|
|
511
491
|
/**
|
|
512
492
|
*/
|
|
513
|
-
module.exports.
|
|
493
|
+
module.exports.FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
|
|
514
494
|
/**
|
|
515
495
|
*/
|
|
516
|
-
module.exports.
|
|
496
|
+
module.exports.SectionType = Object.freeze({ NextPage:0,"0":"NextPage",NextColumn:1,"1":"NextColumn",Continuous:2,"2":"Continuous",EvenPage:3,"3":"EvenPage",OddPage:4,"4":"OddPage", });
|
|
517
497
|
/**
|
|
518
498
|
*/
|
|
519
|
-
module.exports.
|
|
499
|
+
module.exports.TableBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",InsideH:4,"4":"InsideH",InsideV:5,"5":"InsideV", });
|
|
520
500
|
/**
|
|
521
501
|
*/
|
|
522
|
-
module.exports.
|
|
502
|
+
module.exports.TableCellBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",InsideH:4,"4":"InsideH",InsideV:5,"5":"InsideV",Tl2br:6,"6":"Tl2br",Tr2bl:7,"7":"Tr2bl", });
|
|
523
503
|
/**
|
|
524
504
|
*/
|
|
525
|
-
module.exports.
|
|
505
|
+
module.exports.StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character:1,"1":"Character",Numbering:2,"2":"Numbering",Table:3,"3":"Table",Unsupported:4,"4":"Unsupported", });
|
|
526
506
|
/**
|
|
527
507
|
*/
|
|
528
|
-
module.exports.
|
|
508
|
+
module.exports.TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
|
|
529
509
|
/**
|
|
530
510
|
*/
|
|
531
|
-
module.exports.
|
|
511
|
+
module.exports.WidthType = Object.freeze({ Dxa:0,"0":"Dxa",Auto:1,"1":"Auto",Pct:2,"2":"Pct",Nil:3,"3":"Nil",Unsupported:4,"4":"Unsupported", });
|
|
532
512
|
/**
|
|
533
513
|
*/
|
|
534
|
-
module.exports.
|
|
514
|
+
module.exports.DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
|
|
535
515
|
/**
|
|
536
516
|
*/
|
|
537
|
-
module.exports.
|
|
517
|
+
module.exports.RelativeFromHType = Object.freeze({
|
|
538
518
|
/**
|
|
519
|
+
* Specifies that the horizontal positioning shall be
|
|
520
|
+
* relative to the position of the anchor within its run
|
|
521
|
+
* content.
|
|
539
522
|
*/
|
|
540
|
-
|
|
523
|
+
Character:0,"0":"Character",
|
|
541
524
|
/**
|
|
525
|
+
* Specifies that the horizontal positioning shall be
|
|
526
|
+
* relative to the extents of the column which contains its
|
|
527
|
+
* anchor.
|
|
542
528
|
*/
|
|
543
|
-
|
|
529
|
+
Column:1,"1":"Column",
|
|
544
530
|
/**
|
|
531
|
+
* Specifies that the horizontal positioning shall be
|
|
532
|
+
* relative to the inside margin of the current page (the
|
|
533
|
+
* left margin on odd pages, right on even pages).
|
|
545
534
|
*/
|
|
546
|
-
|
|
535
|
+
InsideMargin:2,"2":"InsideMargin",
|
|
547
536
|
/**
|
|
537
|
+
* Specifies that the horizontal positioning shall be
|
|
538
|
+
* relative to the left margin of the page.
|
|
548
539
|
*/
|
|
549
|
-
|
|
540
|
+
LeftMargin:3,"3":"LeftMargin",
|
|
550
541
|
/**
|
|
542
|
+
* Specifies that the horizontal positioning shall be
|
|
543
|
+
* relative to the page margins.
|
|
551
544
|
*/
|
|
552
|
-
|
|
545
|
+
Margin:4,"4":"Margin",
|
|
553
546
|
/**
|
|
547
|
+
* Specifies that the horizontal positioning shall be
|
|
548
|
+
* relative to the outside margin of the current page (the
|
|
549
|
+
* right margin on odd pages, left on even pages).
|
|
554
550
|
*/
|
|
555
|
-
|
|
551
|
+
OutsizeMargin:5,"5":"OutsizeMargin",
|
|
556
552
|
/**
|
|
553
|
+
* Specifies that the horizontal positioning shall be
|
|
554
|
+
* relative to the edge of the page.
|
|
557
555
|
*/
|
|
558
|
-
|
|
556
|
+
Page:6,"6":"Page",
|
|
559
557
|
/**
|
|
558
|
+
* Specifies that the horizontal positioning shall be
|
|
559
|
+
* relative to the right margin of the page.
|
|
560
560
|
*/
|
|
561
|
-
|
|
561
|
+
RightMargin:7,"7":"RightMargin", });
|
|
562
562
|
/**
|
|
563
563
|
*/
|
|
564
|
-
module.exports.
|
|
564
|
+
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", });
|
|
565
565
|
/**
|
|
566
566
|
*/
|
|
567
|
-
module.exports.
|
|
567
|
+
module.exports.TabValueType = Object.freeze({ Bar:0,"0":"Bar",Center:1,"1":"Center",Clear:2,"2":"Clear",Decimal:3,"3":"Decimal",End:4,"4":"End",Right:5,"5":"Right",Num:6,"6":"Num",Start:7,"7":"Start",Left:8,"8":"Left", });
|
|
568
568
|
/**
|
|
569
569
|
*/
|
|
570
570
|
class AbstractNumbering {
|
|
Binary file
|
|
@@ -38,7 +38,6 @@ export function __wbg_footer_free(a: number): void;
|
|
|
38
38
|
export function createFooter(): number;
|
|
39
39
|
export function footer_add_paragraph(a: number, b: number): number;
|
|
40
40
|
export function footer_add_table(a: number, b: number): number;
|
|
41
|
-
export function __wbg_header_free(a: number): void;
|
|
42
41
|
export function createHeader(): number;
|
|
43
42
|
export function header_add_paragraph(a: number, b: number): number;
|
|
44
43
|
export function header_add_table(a: number, b: number): number;
|
|
@@ -60,6 +59,7 @@ export function table_cell_margin_top(a: number, b: number, c: number): number;
|
|
|
60
59
|
export function table_cell_margin_right(a: number, b: number, c: number): number;
|
|
61
60
|
export function table_cell_margin_bottom(a: number, b: number, c: number): number;
|
|
62
61
|
export function table_cell_margin_left(a: number, b: number, c: number): number;
|
|
62
|
+
export function __wbg_header_free(a: number): void;
|
|
63
63
|
export function __wbg_abstractnumbering_free(a: number): void;
|
|
64
64
|
export function createAbstractNumbering(a: number): number;
|
|
65
65
|
export function abstractnumbering_add_level(a: number, b: number): number;
|
|
@@ -203,97 +203,6 @@ export enum LevelSuffixType {
|
|
|
203
203
|
}
|
|
204
204
|
/**
|
|
205
205
|
*/
|
|
206
|
-
export enum TabLeaderType {
|
|
207
|
-
Dot,
|
|
208
|
-
Heavy,
|
|
209
|
-
Hyphen,
|
|
210
|
-
MiddleDot,
|
|
211
|
-
None,
|
|
212
|
-
Underscore,
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
*/
|
|
216
|
-
export enum DocGridType {
|
|
217
|
-
Default,
|
|
218
|
-
Lines,
|
|
219
|
-
LinesAndChars,
|
|
220
|
-
SnapToChars,
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
*/
|
|
224
|
-
export enum RelativeFromHType {
|
|
225
|
-
/**
|
|
226
|
-
* Specifies that the horizontal positioning shall be
|
|
227
|
-
* relative to the position of the anchor within its run
|
|
228
|
-
* content.
|
|
229
|
-
*/
|
|
230
|
-
Character,
|
|
231
|
-
/**
|
|
232
|
-
* Specifies that the horizontal positioning shall be
|
|
233
|
-
* relative to the extents of the column which contains its
|
|
234
|
-
* anchor.
|
|
235
|
-
*/
|
|
236
|
-
Column,
|
|
237
|
-
/**
|
|
238
|
-
* Specifies that the horizontal positioning shall be
|
|
239
|
-
* relative to the inside margin of the current page (the
|
|
240
|
-
* left margin on odd pages, right on even pages).
|
|
241
|
-
*/
|
|
242
|
-
InsideMargin,
|
|
243
|
-
/**
|
|
244
|
-
* Specifies that the horizontal positioning shall be
|
|
245
|
-
* relative to the left margin of the page.
|
|
246
|
-
*/
|
|
247
|
-
LeftMargin,
|
|
248
|
-
/**
|
|
249
|
-
* Specifies that the horizontal positioning shall be
|
|
250
|
-
* relative to the page margins.
|
|
251
|
-
*/
|
|
252
|
-
Margin,
|
|
253
|
-
/**
|
|
254
|
-
* Specifies that the horizontal positioning shall be
|
|
255
|
-
* relative to the outside margin of the current page (the
|
|
256
|
-
* right margin on odd pages, left on even pages).
|
|
257
|
-
*/
|
|
258
|
-
OutsizeMargin,
|
|
259
|
-
/**
|
|
260
|
-
* Specifies that the horizontal positioning shall be
|
|
261
|
-
* relative to the edge of the page.
|
|
262
|
-
*/
|
|
263
|
-
Page,
|
|
264
|
-
/**
|
|
265
|
-
* Specifies that the horizontal positioning shall be
|
|
266
|
-
* relative to the right margin of the page.
|
|
267
|
-
*/
|
|
268
|
-
RightMargin,
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
*/
|
|
272
|
-
export enum RelativeFromVType {
|
|
273
|
-
BottomMargin,
|
|
274
|
-
InsideMargin,
|
|
275
|
-
Line,
|
|
276
|
-
Margin,
|
|
277
|
-
OutsizeMargin,
|
|
278
|
-
Page,
|
|
279
|
-
Paragraph,
|
|
280
|
-
TopMargin,
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
*/
|
|
284
|
-
export enum TabValueType {
|
|
285
|
-
Bar,
|
|
286
|
-
Center,
|
|
287
|
-
Clear,
|
|
288
|
-
Decimal,
|
|
289
|
-
End,
|
|
290
|
-
Right,
|
|
291
|
-
Num,
|
|
292
|
-
Start,
|
|
293
|
-
Left,
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
*/
|
|
297
206
|
export enum TextDirectionType {
|
|
298
207
|
Lr,
|
|
299
208
|
LrV,
|
|
@@ -400,6 +309,16 @@ export enum HyperlinkType {
|
|
|
400
309
|
}
|
|
401
310
|
/**
|
|
402
311
|
*/
|
|
312
|
+
export enum TabLeaderType {
|
|
313
|
+
Dot,
|
|
314
|
+
Heavy,
|
|
315
|
+
Hyphen,
|
|
316
|
+
MiddleDot,
|
|
317
|
+
None,
|
|
318
|
+
Underscore,
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
*/
|
|
403
322
|
export enum VMergeType {
|
|
404
323
|
Continue,
|
|
405
324
|
Restart,
|
|
@@ -496,6 +415,87 @@ export enum WidthType {
|
|
|
496
415
|
}
|
|
497
416
|
/**
|
|
498
417
|
*/
|
|
418
|
+
export enum DocGridType {
|
|
419
|
+
Default,
|
|
420
|
+
Lines,
|
|
421
|
+
LinesAndChars,
|
|
422
|
+
SnapToChars,
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
*/
|
|
426
|
+
export enum RelativeFromHType {
|
|
427
|
+
/**
|
|
428
|
+
* Specifies that the horizontal positioning shall be
|
|
429
|
+
* relative to the position of the anchor within its run
|
|
430
|
+
* content.
|
|
431
|
+
*/
|
|
432
|
+
Character,
|
|
433
|
+
/**
|
|
434
|
+
* Specifies that the horizontal positioning shall be
|
|
435
|
+
* relative to the extents of the column which contains its
|
|
436
|
+
* anchor.
|
|
437
|
+
*/
|
|
438
|
+
Column,
|
|
439
|
+
/**
|
|
440
|
+
* Specifies that the horizontal positioning shall be
|
|
441
|
+
* relative to the inside margin of the current page (the
|
|
442
|
+
* left margin on odd pages, right on even pages).
|
|
443
|
+
*/
|
|
444
|
+
InsideMargin,
|
|
445
|
+
/**
|
|
446
|
+
* Specifies that the horizontal positioning shall be
|
|
447
|
+
* relative to the left margin of the page.
|
|
448
|
+
*/
|
|
449
|
+
LeftMargin,
|
|
450
|
+
/**
|
|
451
|
+
* Specifies that the horizontal positioning shall be
|
|
452
|
+
* relative to the page margins.
|
|
453
|
+
*/
|
|
454
|
+
Margin,
|
|
455
|
+
/**
|
|
456
|
+
* Specifies that the horizontal positioning shall be
|
|
457
|
+
* relative to the outside margin of the current page (the
|
|
458
|
+
* right margin on odd pages, left on even pages).
|
|
459
|
+
*/
|
|
460
|
+
OutsizeMargin,
|
|
461
|
+
/**
|
|
462
|
+
* Specifies that the horizontal positioning shall be
|
|
463
|
+
* relative to the edge of the page.
|
|
464
|
+
*/
|
|
465
|
+
Page,
|
|
466
|
+
/**
|
|
467
|
+
* Specifies that the horizontal positioning shall be
|
|
468
|
+
* relative to the right margin of the page.
|
|
469
|
+
*/
|
|
470
|
+
RightMargin,
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
*/
|
|
474
|
+
export enum RelativeFromVType {
|
|
475
|
+
BottomMargin,
|
|
476
|
+
InsideMargin,
|
|
477
|
+
Line,
|
|
478
|
+
Margin,
|
|
479
|
+
OutsizeMargin,
|
|
480
|
+
Page,
|
|
481
|
+
Paragraph,
|
|
482
|
+
TopMargin,
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
*/
|
|
486
|
+
export enum TabValueType {
|
|
487
|
+
Bar,
|
|
488
|
+
Center,
|
|
489
|
+
Clear,
|
|
490
|
+
Decimal,
|
|
491
|
+
End,
|
|
492
|
+
Right,
|
|
493
|
+
Num,
|
|
494
|
+
Start,
|
|
495
|
+
Left,
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
*/
|
|
499
499
|
export class AbstractNumbering {
|
|
500
500
|
free(): void;
|
|
501
501
|
/**
|
|
@@ -449,123 +449,123 @@ export const HeightRule = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLea
|
|
|
449
449
|
export const LevelSuffixType = Object.freeze({ Nothing:0,"0":"Nothing",Space:1,"1":"Space",Tab:2,"2":"Tab", });
|
|
450
450
|
/**
|
|
451
451
|
*/
|
|
452
|
-
export const
|
|
452
|
+
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", });
|
|
453
453
|
/**
|
|
454
454
|
*/
|
|
455
|
-
export const
|
|
455
|
+
export const BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
|
|
456
456
|
/**
|
|
457
457
|
*/
|
|
458
|
-
export const
|
|
458
|
+
export const LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
|
|
459
459
|
/**
|
|
460
|
-
* Specifies that the horizontal positioning shall be
|
|
461
|
-
* relative to the position of the anchor within its run
|
|
462
|
-
* content.
|
|
463
460
|
*/
|
|
464
|
-
|
|
461
|
+
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", });
|
|
465
462
|
/**
|
|
466
|
-
* Specifies that the horizontal positioning shall be
|
|
467
|
-
* relative to the extents of the column which contains its
|
|
468
|
-
* anchor.
|
|
469
463
|
*/
|
|
470
|
-
|
|
464
|
+
export const VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
|
|
471
465
|
/**
|
|
472
|
-
* Specifies that the horizontal positioning shall be
|
|
473
|
-
* relative to the inside margin of the current page (the
|
|
474
|
-
* left margin on odd pages, right on even pages).
|
|
475
466
|
*/
|
|
476
|
-
|
|
467
|
+
export const VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
|
|
477
468
|
/**
|
|
478
|
-
* Specifies that the horizontal positioning shall be
|
|
479
|
-
* relative to the left margin of the page.
|
|
480
469
|
*/
|
|
481
|
-
|
|
470
|
+
export const AlignmentType = Object.freeze({ Both:0,"0":"Both",Center:1,"1":"Center",Distribute:2,"2":"Distribute",Start:3,"3":"Start",End:4,"4":"End",Left:5,"5":"Left",Right:6,"6":"Right",Justified:7,"7":"Justified",Unsupported:8,"8":"Unsupported", });
|
|
482
471
|
/**
|
|
483
|
-
* Specifies that the horizontal positioning shall be
|
|
484
|
-
* relative to the page margins.
|
|
485
472
|
*/
|
|
486
|
-
|
|
473
|
+
export const HyperlinkType = Object.freeze({ Anchor:0,"0":"Anchor",External:1,"1":"External", });
|
|
487
474
|
/**
|
|
488
|
-
* Specifies that the horizontal positioning shall be
|
|
489
|
-
* relative to the outside margin of the current page (the
|
|
490
|
-
* right margin on odd pages, left on even pages).
|
|
491
475
|
*/
|
|
492
|
-
|
|
476
|
+
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", });
|
|
493
477
|
/**
|
|
494
|
-
* Specifies that the horizontal positioning shall be
|
|
495
|
-
* relative to the edge of the page.
|
|
496
478
|
*/
|
|
497
|
-
|
|
479
|
+
export const VMergeType = Object.freeze({ Continue:0,"0":"Continue",Restart:1,"1":"Restart",Unsupported:2,"2":"Unsupported", });
|
|
498
480
|
/**
|
|
499
|
-
* Specifies that the horizontal positioning shall be
|
|
500
|
-
* relative to the right margin of the page.
|
|
501
481
|
*/
|
|
502
|
-
|
|
482
|
+
export const FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1":"Separate",End:2,"2":"End",Unsupported:3,"3":"Unsupported", });
|
|
503
483
|
/**
|
|
504
484
|
*/
|
|
505
|
-
export const
|
|
485
|
+
export const PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
|
|
506
486
|
/**
|
|
507
487
|
*/
|
|
508
|
-
export const
|
|
488
|
+
export const SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Hanging:1,"1":"Hanging", });
|
|
509
489
|
/**
|
|
510
490
|
*/
|
|
511
|
-
export const
|
|
491
|
+
export const TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
|
|
512
492
|
/**
|
|
513
493
|
*/
|
|
514
|
-
export const
|
|
494
|
+
export const FontPitchType = Object.freeze({ Default:0,"0":"Default",Fixed:1,"1":"Fixed",Variable:2,"2":"Variable", });
|
|
515
495
|
/**
|
|
516
496
|
*/
|
|
517
|
-
export const
|
|
497
|
+
export const SectionType = Object.freeze({ NextPage:0,"0":"NextPage",NextColumn:1,"1":"NextColumn",Continuous:2,"2":"Continuous",EvenPage:3,"3":"EvenPage",OddPage:4,"4":"OddPage", });
|
|
518
498
|
/**
|
|
519
499
|
*/
|
|
520
|
-
export const
|
|
500
|
+
export const TableBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",InsideH:4,"4":"InsideH",InsideV:5,"5":"InsideV", });
|
|
521
501
|
/**
|
|
522
502
|
*/
|
|
523
|
-
export const
|
|
503
|
+
export const TableCellBorderPosition = Object.freeze({ Left:0,"0":"Left",Right:1,"1":"Right",Top:2,"2":"Top",Bottom:3,"3":"Bottom",InsideH:4,"4":"InsideH",InsideV:5,"5":"InsideV",Tl2br:6,"6":"Tl2br",Tr2bl:7,"7":"Tr2bl", });
|
|
524
504
|
/**
|
|
525
505
|
*/
|
|
526
|
-
export const
|
|
506
|
+
export const StyleType = Object.freeze({ Paragraph:0,"0":"Paragraph",Character:1,"1":"Character",Numbering:2,"2":"Numbering",Table:3,"3":"Table",Unsupported:4,"4":"Unsupported", });
|
|
527
507
|
/**
|
|
528
508
|
*/
|
|
529
|
-
export const
|
|
509
|
+
export const TableLayoutType = Object.freeze({ Fixed:0,"0":"Fixed",Autofit:1,"1":"Autofit", });
|
|
530
510
|
/**
|
|
531
511
|
*/
|
|
532
|
-
export const
|
|
512
|
+
export const WidthType = Object.freeze({ Dxa:0,"0":"Dxa",Auto:1,"1":"Auto",Pct:2,"2":"Pct",Nil:3,"3":"Nil",Unsupported:4,"4":"Unsupported", });
|
|
533
513
|
/**
|
|
534
514
|
*/
|
|
535
|
-
export const
|
|
515
|
+
export const DocGridType = Object.freeze({ Default:0,"0":"Default",Lines:1,"1":"Lines",LinesAndChars:2,"2":"LinesAndChars",SnapToChars:3,"3":"SnapToChars", });
|
|
536
516
|
/**
|
|
537
517
|
*/
|
|
538
|
-
export const
|
|
518
|
+
export const RelativeFromHType = Object.freeze({
|
|
539
519
|
/**
|
|
520
|
+
* Specifies that the horizontal positioning shall be
|
|
521
|
+
* relative to the position of the anchor within its run
|
|
522
|
+
* content.
|
|
540
523
|
*/
|
|
541
|
-
|
|
524
|
+
Character:0,"0":"Character",
|
|
542
525
|
/**
|
|
526
|
+
* Specifies that the horizontal positioning shall be
|
|
527
|
+
* relative to the extents of the column which contains its
|
|
528
|
+
* anchor.
|
|
543
529
|
*/
|
|
544
|
-
|
|
530
|
+
Column:1,"1":"Column",
|
|
545
531
|
/**
|
|
532
|
+
* Specifies that the horizontal positioning shall be
|
|
533
|
+
* relative to the inside margin of the current page (the
|
|
534
|
+
* left margin on odd pages, right on even pages).
|
|
546
535
|
*/
|
|
547
|
-
|
|
536
|
+
InsideMargin:2,"2":"InsideMargin",
|
|
548
537
|
/**
|
|
538
|
+
* Specifies that the horizontal positioning shall be
|
|
539
|
+
* relative to the left margin of the page.
|
|
549
540
|
*/
|
|
550
|
-
|
|
541
|
+
LeftMargin:3,"3":"LeftMargin",
|
|
551
542
|
/**
|
|
543
|
+
* Specifies that the horizontal positioning shall be
|
|
544
|
+
* relative to the page margins.
|
|
552
545
|
*/
|
|
553
|
-
|
|
546
|
+
Margin:4,"4":"Margin",
|
|
554
547
|
/**
|
|
548
|
+
* Specifies that the horizontal positioning shall be
|
|
549
|
+
* relative to the outside margin of the current page (the
|
|
550
|
+
* right margin on odd pages, left on even pages).
|
|
555
551
|
*/
|
|
556
|
-
|
|
552
|
+
OutsizeMargin:5,"5":"OutsizeMargin",
|
|
557
553
|
/**
|
|
554
|
+
* Specifies that the horizontal positioning shall be
|
|
555
|
+
* relative to the edge of the page.
|
|
558
556
|
*/
|
|
559
|
-
|
|
557
|
+
Page:6,"6":"Page",
|
|
560
558
|
/**
|
|
559
|
+
* Specifies that the horizontal positioning shall be
|
|
560
|
+
* relative to the right margin of the page.
|
|
561
561
|
*/
|
|
562
|
-
|
|
562
|
+
RightMargin:7,"7":"RightMargin", });
|
|
563
563
|
/**
|
|
564
564
|
*/
|
|
565
|
-
export const
|
|
565
|
+
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", });
|
|
566
566
|
/**
|
|
567
567
|
*/
|
|
568
|
-
export const
|
|
568
|
+
export const TabValueType = Object.freeze({ Bar:0,"0":"Bar",Center:1,"1":"Center",Clear:2,"2":"Clear",Decimal:3,"3":"Decimal",End:4,"4":"End",Right:5,"5":"Right",Num:6,"6":"Num",Start:7,"7":"Start",Left:8,"8":"Left", });
|
|
569
569
|
/**
|
|
570
570
|
*/
|
|
571
571
|
export class AbstractNumbering {
|
|
Binary file
|
|
@@ -38,7 +38,6 @@ export function __wbg_footer_free(a: number): void;
|
|
|
38
38
|
export function createFooter(): number;
|
|
39
39
|
export function footer_add_paragraph(a: number, b: number): number;
|
|
40
40
|
export function footer_add_table(a: number, b: number): number;
|
|
41
|
-
export function __wbg_header_free(a: number): void;
|
|
42
41
|
export function createHeader(): number;
|
|
43
42
|
export function header_add_paragraph(a: number, b: number): number;
|
|
44
43
|
export function header_add_table(a: number, b: number): number;
|
|
@@ -60,6 +59,7 @@ export function table_cell_margin_top(a: number, b: number, c: number): number;
|
|
|
60
59
|
export function table_cell_margin_right(a: number, b: number, c: number): number;
|
|
61
60
|
export function table_cell_margin_bottom(a: number, b: number, c: number): number;
|
|
62
61
|
export function table_cell_margin_left(a: number, b: number, c: number): number;
|
|
62
|
+
export function __wbg_header_free(a: number): void;
|
|
63
63
|
export function __wbg_abstractnumbering_free(a: number): void;
|
|
64
64
|
export function createAbstractNumbering(a: number): number;
|
|
65
65
|
export function abstractnumbering_add_level(a: number, b: number): number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docx-wasm",
|
|
3
|
-
"version": "0.0.278-
|
|
3
|
+
"version": "0.0.278-rc2",
|
|
4
4
|
"main": "dist/node/index.js",
|
|
5
5
|
"browser": "dist/web/index.js",
|
|
6
6
|
"author": "bokuweb <bokuweb12@gmail.com>",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"prepublishOnly": "npm run build"
|
|
23
23
|
},
|
|
24
24
|
"resolutions": {
|
|
25
|
-
"**/serialize-javascript": "6.0.
|
|
25
|
+
"**/serialize-javascript": "6.0.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/file-saver": "2.0.5",
|