docx-wasm 0.4.12-beta5 → 0.4.12-beta7

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.
Files changed (38) hide show
  1. package/dist/node/json/bindings/TextAlignmentType.d.ts +1 -0
  2. package/dist/node/json/bindings/TextAlignmentType.js +3 -0
  3. package/dist/node/json/bindings/TextAlignmentType.js.map +1 -0
  4. package/dist/node/json/paragraph.d.ts +3 -0
  5. package/dist/node/paragraph-property.d.ts +7 -1
  6. package/dist/node/paragraph-property.js +39 -1
  7. package/dist/node/paragraph-property.js.map +1 -1
  8. package/dist/node/paragraph.d.ts +3 -0
  9. package/dist/node/paragraph.js +8 -0
  10. package/dist/node/paragraph.js.map +1 -1
  11. package/dist/web/json/bindings/TextAlignmentType.d.ts +1 -0
  12. package/dist/web/json/bindings/TextAlignmentType.js +2 -0
  13. package/dist/web/json/bindings/TextAlignmentType.js.map +1 -0
  14. package/dist/web/json/paragraph.d.ts +3 -0
  15. package/dist/web/paragraph-property.d.ts +7 -1
  16. package/dist/web/paragraph-property.js +37 -0
  17. package/dist/web/paragraph-property.js.map +1 -1
  18. package/dist/web/paragraph.d.ts +3 -0
  19. package/dist/web/paragraph.js +8 -0
  20. package/dist/web/paragraph.js.map +1 -1
  21. package/js/json/bindings/TextAlignmentType.ts +2 -0
  22. package/js/json/paragraph.ts +3 -0
  23. package/js/paragraph-property.ts +47 -0
  24. package/js/paragraph.ts +11 -0
  25. package/package.json +1 -1
  26. package/dist/node/pkg/.gitignore +0 -1
  27. package/dist/node/pkg/docx_wasm.d.ts +0 -1949
  28. package/dist/node/pkg/docx_wasm.js +0 -3967
  29. package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
  30. package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +0 -317
  31. package/dist/node/pkg/package.json +0 -14
  32. package/dist/web/pkg/.gitignore +0 -1
  33. package/dist/web/pkg/docx_wasm.d.ts +0 -1949
  34. package/dist/web/pkg/docx_wasm.js +0 -2
  35. package/dist/web/pkg/docx_wasm_bg.js +0 -3930
  36. package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
  37. package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +0 -317
  38. package/dist/web/pkg/package.json +0 -19
@@ -1,1949 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * @returns {ParagraphPropertyChange}
5
- */
6
- export function createParagraphPropertyChange(): ParagraphPropertyChange;
7
- /**
8
- * @returns {Paragraph}
9
- */
10
- export function createParagraph(): Paragraph;
11
- /**
12
- * @param {number} id
13
- * @returns {AbstractNumbering}
14
- */
15
- export function createAbstractNumbering(id: number): AbstractNumbering;
16
- /**
17
- * @returns {TableRow}
18
- */
19
- export function createTableRow(): TableRow;
20
- /**
21
- * @param {number} position
22
- * @returns {TableCellBorder}
23
- */
24
- export function createTableCellBorder(position: number): TableCellBorder;
25
- /**
26
- * @returns {TableOfContents}
27
- */
28
- export function createTableOfContents(): TableOfContents;
29
- /**
30
- * @param {string} s
31
- * @returns {TableOfContents}
32
- */
33
- export function createTableOfContentsWithInstrText(s: string): TableOfContents;
34
- /**
35
- * @param {number | undefined} start
36
- * @param {string | undefined} chap_style
37
- * @returns {PageNumType}
38
- */
39
- export function createPageNumType(start?: number, chap_style?: string): PageNumType;
40
- /**
41
- * @param {Uint8Array} buf
42
- * @returns {string}
43
- */
44
- export function readDocx(buf: Uint8Array): string;
45
- /**
46
- * @returns {TableOfContentsItem}
47
- */
48
- export function createTableOfContentsItem(): TableOfContentsItem;
49
- /**
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}
56
- */
57
- export function createWebExtension(id: string, reference_id: string, version: string, store: string, store_type: string): WebExtension;
58
- /**
59
- * @param {number} id
60
- * @returns {Comment}
61
- */
62
- export function createComment(id: number): Comment;
63
- /**
64
- * @param {number} id
65
- * @param {number} abstract_num_id
66
- * @returns {Numbering}
67
- */
68
- export function createNumbering(id: number, abstract_num_id: number): Numbering;
69
- /**
70
- * @param {string} style_id
71
- * @param {number} style_type
72
- * @returns {Style}
73
- */
74
- export function createStyle(style_id: string, style_type: number): Style;
75
- /**
76
- * @param {number} id
77
- * @param {number} start
78
- * @param {string} format
79
- * @param {string} text
80
- * @param {string} jc
81
- * @returns {Level}
82
- */
83
- export function createLevel(id: number, start: number, format: string, text: string, jc: string): Level;
84
- /**
85
- * @returns {PageMargin}
86
- */
87
- export function createPageMargin(): PageMargin;
88
- /**
89
- * @returns {LineSpacing}
90
- */
91
- export function createLineSpacing(): LineSpacing;
92
- /**
93
- * @returns {RunFonts}
94
- */
95
- export function createRunFonts(): RunFonts;
96
- /**
97
- * @returns {Table}
98
- */
99
- export function createTable(): Table;
100
- /**
101
- * @returns {TableCell}
102
- */
103
- export function createTableCell(): TableCell;
104
- /**
105
- * @param {Run} run
106
- * @returns {Delete}
107
- */
108
- export function createDelete(run: Run): Delete;
109
- /**
110
- * @returns {PageNum}
111
- */
112
- export function createPageNum(): PageNum;
113
- /**
114
- * @param {Uint8Array} buf
115
- * @returns {Pic}
116
- */
117
- export function createPic(buf: Uint8Array): Pic;
118
- /**
119
- * @returns {Footer}
120
- */
121
- export function createFooter(): Footer;
122
- /**
123
- * @returns {Header}
124
- */
125
- export function createHeader(): Header;
126
- /**
127
- * @param {string} v
128
- * @param {number} t
129
- * @returns {Hyperlink}
130
- */
131
- export function createHyperlink(v: string, t: number): Hyperlink;
132
- /**
133
- * @param {Run} run
134
- * @returns {Insert}
135
- */
136
- export function createInsert(run: Run): Insert;
137
- /**
138
- * @param {number} level
139
- * @returns {LevelOverride}
140
- */
141
- export function createLevelOverride(level: number): LevelOverride;
142
- /**
143
- * @returns {Run}
144
- */
145
- export function createRun(): Run;
146
- /**
147
- * @returns {Docx}
148
- */
149
- export function createDocx(): Docx;
150
- /**
151
- */
152
- export enum LineSpacingType {
153
- Auto,
154
- AtLeast,
155
- Exact,
156
- }
157
- /**
158
- */
159
- export enum PageOrientationType {
160
- Landscape,
161
- Portrait,
162
- }
163
- /**
164
- */
165
- export enum RelativeFromHType {
166
- /**
167
- * Specifies that the horizontal positioning shall be
168
- * relative to the position of the anchor within its run
169
- * content.
170
- */
171
- Character,
172
- /**
173
- * Specifies that the horizontal positioning shall be
174
- * relative to the extents of the column which contains its
175
- * anchor.
176
- */
177
- Column,
178
- /**
179
- * Specifies that the horizontal positioning shall be
180
- * relative to the inside margin of the current page (the
181
- * left margin on odd pages, right on even pages).
182
- */
183
- InsideMargin,
184
- /**
185
- * Specifies that the horizontal positioning shall be
186
- * relative to the left margin of the page.
187
- */
188
- LeftMargin,
189
- /**
190
- * Specifies that the horizontal positioning shall be
191
- * relative to the page margins.
192
- */
193
- Margin,
194
- /**
195
- * Specifies that the horizontal positioning shall be
196
- * relative to the outside margin of the current page (the
197
- * right margin on odd pages, left on even pages).
198
- */
199
- OutsizeMargin,
200
- /**
201
- * Specifies that the horizontal positioning shall be
202
- * relative to the edge of the page.
203
- */
204
- Page,
205
- /**
206
- * Specifies that the horizontal positioning shall be
207
- * relative to the right margin of the page.
208
- */
209
- RightMargin,
210
- }
211
- /**
212
- */
213
- export enum RelativeFromVType {
214
- BottomMargin,
215
- InsideMargin,
216
- Line,
217
- Margin,
218
- OutsizeMargin,
219
- Page,
220
- Paragraph,
221
- TopMargin,
222
- }
223
- /**
224
- */
225
- export enum VMergeType {
226
- Continue,
227
- Restart,
228
- Unsupported,
229
- }
230
- /**
231
- */
232
- export enum SectionType {
233
- NextPage,
234
- NextColumn,
235
- Continuous,
236
- EvenPage,
237
- OddPage,
238
- }
239
- /**
240
- */
241
- export enum StyleType {
242
- Paragraph,
243
- Character,
244
- Numbering,
245
- Table,
246
- Unsupported,
247
- }
248
- /**
249
- */
250
- export enum TextDirectionType {
251
- Lr,
252
- LrV,
253
- Rl,
254
- RlV,
255
- Tb,
256
- TbV,
257
- TbRlV,
258
- TbRl,
259
- BtLr,
260
- LrTbV,
261
- }
262
- /**
263
- */
264
- export enum DocGridType {
265
- Default,
266
- Lines,
267
- LinesAndChars,
268
- SnapToChars,
269
- }
270
- /**
271
- */
272
- export enum ShdType {
273
- Nil,
274
- Clear,
275
- Solid,
276
- HorzStripe,
277
- VertStripe,
278
- ReverseDiagStripe,
279
- DiagStripe,
280
- HorzCross,
281
- DiagCross,
282
- ThinHorzStripe,
283
- ThinVertStripe,
284
- ThinReverseDiagStripe,
285
- ThinDiagStripe,
286
- ThinHorzCross,
287
- ThinDiagCross,
288
- Pct5,
289
- Pct10,
290
- Pct12,
291
- Pct15,
292
- Pct20,
293
- Pct25,
294
- Pct30,
295
- Pct35,
296
- Pct37,
297
- Pct40,
298
- Pct45,
299
- Pct50,
300
- Pct55,
301
- Pct60,
302
- Pct62,
303
- Pct65,
304
- Pct70,
305
- Pct75,
306
- Pct80,
307
- Pct85,
308
- Pct87,
309
- Pct90,
310
- Pct95,
311
- }
312
- /**
313
- */
314
- export enum TabValueType {
315
- Bar,
316
- Center,
317
- Clear,
318
- Decimal,
319
- End,
320
- Right,
321
- Num,
322
- Start,
323
- Left,
324
- }
325
- /**
326
- */
327
- export enum TableBorderPosition {
328
- Left,
329
- Right,
330
- Top,
331
- Bottom,
332
- InsideH,
333
- InsideV,
334
- }
335
- /**
336
- */
337
- export enum TableCellBorderPosition {
338
- Left,
339
- Right,
340
- Top,
341
- Bottom,
342
- InsideH,
343
- InsideV,
344
- Tl2br,
345
- Tr2bl,
346
- }
347
- /**
348
- */
349
- export enum ParagraphBorderPosition {
350
- Left,
351
- Right,
352
- Top,
353
- Bottom,
354
- Between,
355
- Bar,
356
- }
357
- /**
358
- */
359
- export enum HyperlinkType {
360
- Anchor,
361
- External,
362
- }
363
- /**
364
- */
365
- export enum AlignmentType {
366
- Both,
367
- Center,
368
- Distribute,
369
- Start,
370
- End,
371
- Left,
372
- Right,
373
- Justified,
374
- Unsupported,
375
- }
376
- /**
377
- */
378
- export enum CharacterSpacingValues {
379
- DoNotCompress,
380
- CompressPunctuation,
381
- CompressPunctuationAndJapaneseKana,
382
- Unsupported,
383
- }
384
- /**
385
- */
386
- export enum TableAlignmentType {
387
- Center,
388
- Left,
389
- Right,
390
- }
391
- /**
392
- */
393
- export enum TableLayoutType {
394
- Fixed,
395
- Autofit,
396
- }
397
- /**
398
- */
399
- export enum BreakType {
400
- Page,
401
- Column,
402
- TextWrapping,
403
- Unsupported,
404
- }
405
- /**
406
- */
407
- export enum DrawingPositionType {
408
- Anchor,
409
- Inline,
410
- }
411
- /**
412
- */
413
- export enum PicAlign {
414
- Left,
415
- Right,
416
- Center,
417
- Bottom,
418
- Top,
419
- }
420
- /**
421
- */
422
- export enum VertAlignType {
423
- Baseline,
424
- SuperScript,
425
- SubScript,
426
- Unsupported,
427
- }
428
- /**
429
- */
430
- export enum VAlignType {
431
- Top,
432
- Center,
433
- Bottom,
434
- Unsupported,
435
- }
436
- /**
437
- */
438
- export enum BorderType {
439
- Nil,
440
- None,
441
- Single,
442
- Thick,
443
- Double,
444
- Dotted,
445
- Dashed,
446
- DotDash,
447
- DotDotDash,
448
- Triple,
449
- ThinThickSmallGap,
450
- ThickThinSmallGap,
451
- ThinThickThinSmallGap,
452
- ThinThickMediumGap,
453
- ThickThinMediumGap,
454
- ThinThickThinMediumGap,
455
- ThinThickLargeGap,
456
- ThickThinLargeGap,
457
- ThinThickThinLargeGap,
458
- Wave,
459
- DoubleWave,
460
- DashSmallGap,
461
- DashDotStroked,
462
- ThreeDEmboss,
463
- ThreeDEngrave,
464
- Outset,
465
- Inset,
466
- Apples,
467
- ArchedScallops,
468
- BabyPacifier,
469
- BabyRattle,
470
- }
471
- /**
472
- */
473
- export enum HeightRule {
474
- Auto,
475
- AtLeast,
476
- Exact,
477
- }
478
- /**
479
- */
480
- export enum LevelSuffixType {
481
- Nothing,
482
- Space,
483
- Tab,
484
- }
485
- /**
486
- */
487
- export enum TabLeaderType {
488
- Dot,
489
- Heavy,
490
- Hyphen,
491
- MiddleDot,
492
- None,
493
- Underscore,
494
- }
495
- /**
496
- */
497
- export enum FieldCharType {
498
- Begin,
499
- Separate,
500
- End,
501
- Unsupported,
502
- }
503
- /**
504
- */
505
- export enum FontPitchType {
506
- Default,
507
- Fixed,
508
- Variable,
509
- }
510
- /**
511
- */
512
- export enum WidthType {
513
- Dxa,
514
- Auto,
515
- Pct,
516
- Nil,
517
- Unsupported,
518
- }
519
- /**
520
- */
521
- export enum SpecialIndentKind {
522
- FirstLine,
523
- Hanging,
524
- }
525
- /**
526
- */
527
- export class AbstractNumbering {
528
- free(): void;
529
- /**
530
- * @param {Level} level
531
- * @returns {AbstractNumbering}
532
- */
533
- add_level(level: Level): AbstractNumbering;
534
- }
535
- /**
536
- */
537
- export class Comment {
538
- free(): void;
539
- /**
540
- * @param {string} author
541
- * @returns {Comment}
542
- */
543
- author(author: string): Comment;
544
- /**
545
- * @param {string} date
546
- * @returns {Comment}
547
- */
548
- date(date: string): Comment;
549
- /**
550
- * @param {Paragraph} p
551
- * @returns {Comment}
552
- */
553
- add_paragraph(p: Paragraph): Comment;
554
- /**
555
- * @param {number} id
556
- * @returns {Comment}
557
- */
558
- parent_comment_id(id: number): Comment;
559
- /**
560
- * @returns {number}
561
- */
562
- id(): number;
563
- }
564
- /**
565
- */
566
- export class Delete {
567
- free(): void;
568
- /**
569
- * @param {string} author
570
- * @returns {Delete}
571
- */
572
- author(author: string): Delete;
573
- /**
574
- * @param {string} date
575
- * @returns {Delete}
576
- */
577
- date(date: string): Delete;
578
- }
579
- /**
580
- */
581
- export class Docx {
582
- free(): void;
583
- /**
584
- * @param {Paragraph} p
585
- * @returns {Docx}
586
- */
587
- add_paragraph(p: Paragraph): Docx;
588
- /**
589
- * @param {TableOfContents} t
590
- * @returns {Docx}
591
- */
592
- add_table_of_contents(t: TableOfContents): Docx;
593
- /**
594
- * @param {number} id
595
- * @param {string} name
596
- * @returns {Docx}
597
- */
598
- add_bookmark_start(id: number, name: string): Docx;
599
- /**
600
- * @param {number} id
601
- * @returns {Docx}
602
- */
603
- add_bookmark_end(id: number): Docx;
604
- /**
605
- * @param {Table} t
606
- * @returns {Docx}
607
- */
608
- add_table(t: Table): Docx;
609
- /**
610
- * @param {AbstractNumbering} num
611
- * @returns {Docx}
612
- */
613
- add_abstract_numbering(num: AbstractNumbering): Docx;
614
- /**
615
- * @param {Numbering} num
616
- * @returns {Docx}
617
- */
618
- add_numbering(num: Numbering): Docx;
619
- /**
620
- * @param {string} date
621
- * @returns {Docx}
622
- */
623
- created_at(date: string): Docx;
624
- /**
625
- * @param {string} date
626
- * @returns {Docx}
627
- */
628
- updated_at(date: string): Docx;
629
- /**
630
- * @param {string} name
631
- * @param {string} item
632
- * @returns {Docx}
633
- */
634
- custom_property(name: string, item: string): Docx;
635
- /**
636
- * @param {string} id
637
- * @returns {Docx}
638
- */
639
- doc_id(id: string): Docx;
640
- /**
641
- * @param {string} name
642
- * @param {string} val
643
- * @returns {Docx}
644
- */
645
- add_doc_var(name: string, val: string): Docx;
646
- /**
647
- * @param {number} stop
648
- * @returns {Docx}
649
- */
650
- default_tab_stop(stop: number): Docx;
651
- /**
652
- * @returns {Docx}
653
- */
654
- set_adjust_line_height_in_table(): Docx;
655
- /**
656
- * @param {number} v
657
- * @returns {Docx}
658
- */
659
- character_spacing_control(v: number): Docx;
660
- /**
661
- * @param {Header} header
662
- * @returns {Docx}
663
- */
664
- header(header: Header): Docx;
665
- /**
666
- * @param {Header} header
667
- * @returns {Docx}
668
- */
669
- first_header(header: Header): Docx;
670
- /**
671
- * @param {Header} header
672
- * @returns {Docx}
673
- */
674
- even_header(header: Header): Docx;
675
- /**
676
- * @param {Footer} footer
677
- * @returns {Docx}
678
- */
679
- footer(footer: Footer): Docx;
680
- /**
681
- * @param {Footer} footer
682
- * @returns {Docx}
683
- */
684
- first_footer(footer: Footer): Docx;
685
- /**
686
- * @param {Footer} footer
687
- * @returns {Docx}
688
- */
689
- even_footer(footer: Footer): Docx;
690
- /**
691
- * @param {number} w
692
- * @param {number} h
693
- * @returns {Docx}
694
- */
695
- page_size(w: number, h: number): Docx;
696
- /**
697
- * @param {number} o
698
- * @returns {Docx}
699
- */
700
- page_orient(o: number): Docx;
701
- /**
702
- * @param {PageMargin} margin
703
- * @returns {Docx}
704
- */
705
- page_margin(margin: PageMargin): Docx;
706
- /**
707
- * @param {Style} s
708
- * @returns {Docx}
709
- */
710
- add_style(s: Style): Docx;
711
- /**
712
- * @param {number} size
713
- * @returns {Docx}
714
- */
715
- default_size(size: number): Docx;
716
- /**
717
- * @param {number} spacing
718
- * @returns {Docx}
719
- */
720
- default_spacing(spacing: number): Docx;
721
- /**
722
- * @param {RunFonts} font
723
- * @returns {Docx}
724
- */
725
- default_fonts(font: RunFonts): Docx;
726
- /**
727
- * @param {LineSpacing} spacing
728
- * @returns {Docx}
729
- */
730
- default_line_spacing(spacing: LineSpacing): Docx;
731
- /**
732
- * @returns {Docx}
733
- */
734
- taskpanes(): Docx;
735
- /**
736
- * @param {WebExtension} ext
737
- * @returns {Docx}
738
- */
739
- web_extension(ext: WebExtension): Docx;
740
- /**
741
- * @param {string} id
742
- * @param {string} xml
743
- * @returns {Docx}
744
- */
745
- add_custom_item(id: string, xml: string): Docx;
746
- /**
747
- * @param {PageNumType} p
748
- * @returns {Docx}
749
- */
750
- page_num_type(p: PageNumType): Docx;
751
- /**
752
- * @param {number} grid_type
753
- * @param {number | undefined} line_pitch
754
- * @param {number | undefined} char_space
755
- * @returns {Docx}
756
- */
757
- doc_grid(grid_type: number, line_pitch?: number, char_space?: number): Docx;
758
- /**
759
- * @param {boolean} has_numberings
760
- * @returns {Uint8Array}
761
- */
762
- build(has_numberings: boolean): Uint8Array;
763
- /**
764
- * @returns {string}
765
- */
766
- json_with_update_comments(): string;
767
- }
768
- /**
769
- */
770
- export class Footer {
771
- free(): void;
772
- /**
773
- * @param {Paragraph} p
774
- * @returns {Footer}
775
- */
776
- add_paragraph(p: Paragraph): Footer;
777
- /**
778
- * @param {Table} t
779
- * @returns {Footer}
780
- */
781
- add_table(t: Table): Footer;
782
- /**
783
- * @param {PageNum} t
784
- * @returns {Footer}
785
- */
786
- add_page_num(t: PageNum): Footer;
787
- }
788
- /**
789
- */
790
- export class Header {
791
- free(): void;
792
- /**
793
- * @param {Paragraph} p
794
- * @returns {Header}
795
- */
796
- add_paragraph(p: Paragraph): Header;
797
- /**
798
- * @param {Table} t
799
- * @returns {Header}
800
- */
801
- add_table(t: Table): Header;
802
- /**
803
- * @param {PageNum} t
804
- * @returns {Header}
805
- */
806
- add_page_num(t: PageNum): Header;
807
- }
808
- /**
809
- */
810
- export class Hyperlink {
811
- free(): void;
812
- /**
813
- * @param {Run} run
814
- * @returns {Hyperlink}
815
- */
816
- add_run(run: Run): Hyperlink;
817
- /**
818
- * @param {Insert} i
819
- * @returns {Hyperlink}
820
- */
821
- add_insert(i: Insert): Hyperlink;
822
- /**
823
- * @param {Delete} d
824
- * @returns {Hyperlink}
825
- */
826
- add_delete(d: Delete): Hyperlink;
827
- /**
828
- * @param {number} id
829
- * @param {string} name
830
- * @returns {Hyperlink}
831
- */
832
- add_bookmark_start(id: number, name: string): Hyperlink;
833
- /**
834
- * @param {number} id
835
- * @returns {Hyperlink}
836
- */
837
- add_bookmark_end(id: number): Hyperlink;
838
- /**
839
- * @param {Comment} comment
840
- * @returns {Hyperlink}
841
- */
842
- add_comment_start(comment: Comment): Hyperlink;
843
- /**
844
- * @param {number} id
845
- * @returns {Hyperlink}
846
- */
847
- add_comment_end(id: number): Hyperlink;
848
- }
849
- /**
850
- */
851
- export class Insert {
852
- free(): void;
853
- /**
854
- * @param {string} author
855
- * @returns {Insert}
856
- */
857
- author(author: string): Insert;
858
- /**
859
- * @param {string} date
860
- * @returns {Insert}
861
- */
862
- date(date: string): Insert;
863
- }
864
- /**
865
- */
866
- export class Level {
867
- free(): void;
868
- /**
869
- * @param {number} left
870
- * @param {number | undefined} special_indent_kind
871
- * @param {number | undefined} special_indent_size
872
- * @returns {Level}
873
- */
874
- indent(left: number, special_indent_kind?: number, special_indent_size?: number): Level;
875
- /**
876
- * @param {number} s
877
- * @returns {Level}
878
- */
879
- suffix(s: number): Level;
880
- /**
881
- * @param {number} size
882
- * @returns {Level}
883
- */
884
- size(size: number): Level;
885
- /**
886
- * @param {string} color
887
- * @returns {Level}
888
- */
889
- color(color: string): Level;
890
- /**
891
- * @param {string} color
892
- * @returns {Level}
893
- */
894
- highlight(color: string): Level;
895
- /**
896
- * @returns {Level}
897
- */
898
- bold(): Level;
899
- /**
900
- * @returns {Level}
901
- */
902
- italic(): Level;
903
- /**
904
- * @param {string} line_type
905
- * @returns {Level}
906
- */
907
- underline(line_type: string): Level;
908
- /**
909
- * @returns {Level}
910
- */
911
- vanish(): Level;
912
- /**
913
- * @param {RunFonts} f
914
- * @returns {Level}
915
- */
916
- fonts(f: RunFonts): Level;
917
- /**
918
- * @param {number} spacing
919
- * @returns {Level}
920
- */
921
- spacing(spacing: number): Level;
922
- }
923
- /**
924
- */
925
- export class LevelOverride {
926
- free(): void;
927
- /**
928
- * @param {number} start
929
- * @returns {LevelOverride}
930
- */
931
- start(start: number): LevelOverride;
932
- /**
933
- * @param {Level} level
934
- * @returns {LevelOverride}
935
- */
936
- level(level: Level): LevelOverride;
937
- }
938
- /**
939
- */
940
- export class LineSpacing {
941
- free(): void;
942
- /**
943
- * @param {number} t
944
- * @returns {LineSpacing}
945
- */
946
- line_rule(t: number): LineSpacing;
947
- /**
948
- * @param {number} before
949
- * @returns {LineSpacing}
950
- */
951
- before(before: number): LineSpacing;
952
- /**
953
- * @param {number} after
954
- * @returns {LineSpacing}
955
- */
956
- after(after: number): LineSpacing;
957
- /**
958
- * @param {number} before
959
- * @returns {LineSpacing}
960
- */
961
- before_lines(before: number): LineSpacing;
962
- /**
963
- * @param {number} after
964
- * @returns {LineSpacing}
965
- */
966
- after_lines(after: number): LineSpacing;
967
- /**
968
- * @param {number} line
969
- * @returns {LineSpacing}
970
- */
971
- line(line: number): LineSpacing;
972
- }
973
- /**
974
- */
975
- export class Numbering {
976
- free(): void;
977
- /**
978
- * @param {LevelOverride} o
979
- * @returns {Numbering}
980
- */
981
- add_override(o: LevelOverride): Numbering;
982
- }
983
- /**
984
- */
985
- export class PageMargin {
986
- free(): void;
987
- /**
988
- * @param {number} v
989
- * @returns {PageMargin}
990
- */
991
- top(v: number): PageMargin;
992
- /**
993
- * @param {number} v
994
- * @returns {PageMargin}
995
- */
996
- left(v: number): PageMargin;
997
- /**
998
- * @param {number} v
999
- * @returns {PageMargin}
1000
- */
1001
- bottom(v: number): PageMargin;
1002
- /**
1003
- * @param {number} v
1004
- * @returns {PageMargin}
1005
- */
1006
- right(v: number): PageMargin;
1007
- /**
1008
- * @param {number} v
1009
- * @returns {PageMargin}
1010
- */
1011
- header(v: number): PageMargin;
1012
- /**
1013
- * @param {number} v
1014
- * @returns {PageMargin}
1015
- */
1016
- footer(v: number): PageMargin;
1017
- /**
1018
- * @param {number} v
1019
- * @returns {PageMargin}
1020
- */
1021
- gutter(v: number): PageMargin;
1022
- }
1023
- /**
1024
- */
1025
- export class PageNum {
1026
- free(): void;
1027
- /**
1028
- * @param {string} wrap
1029
- * @returns {PageNum}
1030
- */
1031
- wrap(wrap: string): PageNum;
1032
- /**
1033
- * @param {string} anchor
1034
- * @returns {PageNum}
1035
- */
1036
- v_anchor(anchor: string): PageNum;
1037
- /**
1038
- * @param {string} anchor
1039
- * @returns {PageNum}
1040
- */
1041
- h_anchor(anchor: string): PageNum;
1042
- /**
1043
- * @param {string} r
1044
- * @returns {PageNum}
1045
- */
1046
- h_rule(r: string): PageNum;
1047
- /**
1048
- * @param {string} align
1049
- * @returns {PageNum}
1050
- */
1051
- x_align(align: string): PageNum;
1052
- /**
1053
- * @param {string} align
1054
- * @returns {PageNum}
1055
- */
1056
- y_align(align: string): PageNum;
1057
- /**
1058
- * @param {number} x
1059
- * @returns {PageNum}
1060
- */
1061
- h_space(x: number): PageNum;
1062
- /**
1063
- * @param {number} x
1064
- * @returns {PageNum}
1065
- */
1066
- v_space(x: number): PageNum;
1067
- /**
1068
- * @param {number} x
1069
- * @returns {PageNum}
1070
- */
1071
- x(x: number): PageNum;
1072
- /**
1073
- * @param {number} y
1074
- * @returns {PageNum}
1075
- */
1076
- y(y: number): PageNum;
1077
- /**
1078
- * @param {number} n
1079
- * @returns {PageNum}
1080
- */
1081
- width(n: number): PageNum;
1082
- /**
1083
- * @param {number} n
1084
- * @returns {PageNum}
1085
- */
1086
- height(n: number): PageNum;
1087
- }
1088
- /**
1089
- */
1090
- export class PageNumType {
1091
- free(): void;
1092
- }
1093
- /**
1094
- */
1095
- export class Paragraph {
1096
- free(): void;
1097
- /**
1098
- * @param {Run} run
1099
- * @returns {Paragraph}
1100
- */
1101
- add_run(run: Run): Paragraph;
1102
- /**
1103
- * @param {Hyperlink} link
1104
- * @returns {Paragraph}
1105
- */
1106
- add_hyperlink(link: Hyperlink): Paragraph;
1107
- /**
1108
- * @param {Insert} i
1109
- * @returns {Paragraph}
1110
- */
1111
- add_insert(i: Insert): Paragraph;
1112
- /**
1113
- * @param {Delete} d
1114
- * @returns {Paragraph}
1115
- */
1116
- add_delete(d: Delete): Paragraph;
1117
- /**
1118
- * @param {number} id
1119
- * @param {string} name
1120
- * @returns {Paragraph}
1121
- */
1122
- add_bookmark_start(id: number, name: string): Paragraph;
1123
- /**
1124
- * @param {number} id
1125
- * @returns {Paragraph}
1126
- */
1127
- add_bookmark_end(id: number): Paragraph;
1128
- /**
1129
- * @param {Comment} comment
1130
- * @returns {Paragraph}
1131
- */
1132
- add_comment_start(comment: Comment): Paragraph;
1133
- /**
1134
- * @param {number} id
1135
- * @returns {Paragraph}
1136
- */
1137
- add_comment_end(id: number): Paragraph;
1138
- /**
1139
- * @param {number} alignment_type
1140
- * @returns {Paragraph}
1141
- */
1142
- align(alignment_type: number): Paragraph;
1143
- /**
1144
- * @param {number} level
1145
- * @returns {Paragraph}
1146
- */
1147
- outline_lvl(level: number): Paragraph;
1148
- /**
1149
- * @param {string} style_id
1150
- * @returns {Paragraph}
1151
- */
1152
- style(style_id: string): Paragraph;
1153
- /**
1154
- * @param {number} left
1155
- * @param {number | undefined} special_indent_kind
1156
- * @param {number | undefined} special_indent_size
1157
- * @param {number | undefined} right
1158
- * @returns {Paragraph}
1159
- */
1160
- indent(left: number, special_indent_kind?: number, special_indent_size?: number, right?: number): Paragraph;
1161
- /**
1162
- * @param {number} id
1163
- * @param {number} level
1164
- * @returns {Paragraph}
1165
- */
1166
- numbering(id: number, level: number): Paragraph;
1167
- /**
1168
- * @param {number} size
1169
- * @returns {Paragraph}
1170
- */
1171
- size(size: number): Paragraph;
1172
- /**
1173
- * @returns {Paragraph}
1174
- */
1175
- bold(): Paragraph;
1176
- /**
1177
- * @returns {Paragraph}
1178
- */
1179
- italic(): Paragraph;
1180
- /**
1181
- * @param {RunFonts} f
1182
- * @returns {Paragraph}
1183
- */
1184
- fonts(f: RunFonts): Paragraph;
1185
- /**
1186
- * @param {LineSpacing} spacing
1187
- * @returns {Paragraph}
1188
- */
1189
- line_spacing(spacing: LineSpacing): Paragraph;
1190
- /**
1191
- * @param {number} spacing
1192
- * @returns {Paragraph}
1193
- */
1194
- character_spacing(spacing: number): Paragraph;
1195
- /**
1196
- * @param {boolean} v
1197
- * @returns {Paragraph}
1198
- */
1199
- keep_next(v: boolean): Paragraph;
1200
- /**
1201
- * @param {boolean} v
1202
- * @returns {Paragraph}
1203
- */
1204
- keep_lines(v: boolean): Paragraph;
1205
- /**
1206
- * @param {boolean} v
1207
- * @returns {Paragraph}
1208
- */
1209
- page_break_before(v: boolean): Paragraph;
1210
- /**
1211
- * @param {boolean} v
1212
- * @returns {Paragraph}
1213
- */
1214
- widow_control(v: boolean): Paragraph;
1215
- /**
1216
- * @param {string} author
1217
- * @param {string} date
1218
- * @returns {Paragraph}
1219
- */
1220
- delete(author: string, date: string): Paragraph;
1221
- /**
1222
- * @param {string} author
1223
- * @param {string} date
1224
- * @returns {Paragraph}
1225
- */
1226
- insert(author: string, date: string): Paragraph;
1227
- /**
1228
- * @param {ParagraphPropertyChange} p
1229
- * @returns {Paragraph}
1230
- */
1231
- paragraph_property_change(p: ParagraphPropertyChange): Paragraph;
1232
- }
1233
- /**
1234
- */
1235
- export class ParagraphPropertyChange {
1236
- free(): void;
1237
- /**
1238
- * @param {string} author
1239
- * @returns {ParagraphPropertyChange}
1240
- */
1241
- author(author: string): ParagraphPropertyChange;
1242
- /**
1243
- * @param {string} date
1244
- * @returns {ParagraphPropertyChange}
1245
- */
1246
- date(date: string): ParagraphPropertyChange;
1247
- /**
1248
- * @param {number} id
1249
- * @param {number} level
1250
- * @returns {ParagraphPropertyChange}
1251
- */
1252
- numbering(id: number, level: number): ParagraphPropertyChange;
1253
- /**
1254
- * @param {number} alignment_type
1255
- * @returns {ParagraphPropertyChange}
1256
- */
1257
- align(alignment_type: number): ParagraphPropertyChange;
1258
- /**
1259
- * @param {string} style_id
1260
- * @returns {ParagraphPropertyChange}
1261
- */
1262
- style(style_id: string): ParagraphPropertyChange;
1263
- /**
1264
- * @param {number} left
1265
- * @param {number | undefined} special_indent_kind
1266
- * @param {number | undefined} special_indent_size
1267
- * @returns {ParagraphPropertyChange}
1268
- */
1269
- indent(left: number, special_indent_kind?: number, special_indent_size?: number): ParagraphPropertyChange;
1270
- }
1271
- /**
1272
- */
1273
- export class Pic {
1274
- free(): void;
1275
- /**
1276
- * @param {number} w_emu
1277
- * @param {number} h_emu
1278
- * @returns {Pic}
1279
- */
1280
- size(w_emu: number, h_emu: number): Pic;
1281
- /**
1282
- * @param {number} deg
1283
- * @returns {Pic}
1284
- */
1285
- rotate(deg: number): Pic;
1286
- /**
1287
- * @returns {Pic}
1288
- */
1289
- floating(): Pic;
1290
- /**
1291
- * @param {number} x
1292
- * @returns {Pic}
1293
- */
1294
- offset_x(x: number): Pic;
1295
- /**
1296
- * @param {number} y
1297
- * @returns {Pic}
1298
- */
1299
- offset_y(y: number): Pic;
1300
- }
1301
- /**
1302
- */
1303
- export class Run {
1304
- free(): void;
1305
- /**
1306
- * @param {string} text
1307
- * @returns {Run}
1308
- */
1309
- add_text(text: string): Run;
1310
- /**
1311
- * @param {Pic} pic
1312
- * @returns {Run}
1313
- */
1314
- add_image(pic: Pic): Run;
1315
- /**
1316
- * @param {string} text
1317
- * @returns {Run}
1318
- */
1319
- add_delete_text(text: string): Run;
1320
- /**
1321
- * @returns {Run}
1322
- */
1323
- add_tab(): Run;
1324
- /**
1325
- * @param {number} break_type
1326
- * @returns {Run}
1327
- */
1328
- add_break(break_type: number): Run;
1329
- /**
1330
- * @param {string} style
1331
- * @returns {Run}
1332
- */
1333
- style(style: string): Run;
1334
- /**
1335
- * @param {number} size
1336
- * @returns {Run}
1337
- */
1338
- size(size: number): Run;
1339
- /**
1340
- * @param {string} color
1341
- * @returns {Run}
1342
- */
1343
- color(color: string): Run;
1344
- /**
1345
- * @param {string} color
1346
- * @returns {Run}
1347
- */
1348
- highlight(color: string): Run;
1349
- /**
1350
- * @returns {Run}
1351
- */
1352
- bold(): Run;
1353
- /**
1354
- * @returns {Run}
1355
- */
1356
- italic(): Run;
1357
- /**
1358
- * @returns {Run}
1359
- */
1360
- strike(): Run;
1361
- /**
1362
- * @param {string} line_type
1363
- * @returns {Run}
1364
- */
1365
- underline(line_type: string): Run;
1366
- /**
1367
- * @returns {Run}
1368
- */
1369
- vanish(): Run;
1370
- /**
1371
- * @param {RunFonts} f
1372
- * @returns {Run}
1373
- */
1374
- fonts(f: RunFonts): Run;
1375
- /**
1376
- * @param {number} spacing
1377
- * @returns {Run}
1378
- */
1379
- character_spacing(spacing: number): Run;
1380
- /**
1381
- * @param {number} a
1382
- * @returns {Run}
1383
- */
1384
- vert_align(a: number): Run;
1385
- /**
1386
- * @param {number} border_type
1387
- * @param {number} size
1388
- * @param {number} space
1389
- * @param {string} color
1390
- * @returns {Run}
1391
- */
1392
- text_border(border_type: number, size: number, space: number, color: string): Run;
1393
- }
1394
- /**
1395
- */
1396
- export class RunFonts {
1397
- free(): void;
1398
- /**
1399
- * @param {string} f
1400
- * @returns {RunFonts}
1401
- */
1402
- ascii(f: string): RunFonts;
1403
- /**
1404
- * @param {string} f
1405
- * @returns {RunFonts}
1406
- */
1407
- hi_ansi(f: string): RunFonts;
1408
- /**
1409
- * @param {string} f
1410
- * @returns {RunFonts}
1411
- */
1412
- cs(f: string): RunFonts;
1413
- /**
1414
- * @param {string} f
1415
- * @returns {RunFonts}
1416
- */
1417
- east_asia(f: string): RunFonts;
1418
- /**
1419
- * @param {string} f
1420
- * @returns {RunFonts}
1421
- */
1422
- ascii_theme(f: string): RunFonts;
1423
- /**
1424
- * @param {string} f
1425
- * @returns {RunFonts}
1426
- */
1427
- hi_ansi_theme(f: string): RunFonts;
1428
- /**
1429
- * @param {string} f
1430
- * @returns {RunFonts}
1431
- */
1432
- cs_theme(f: string): RunFonts;
1433
- /**
1434
- * @param {string} f
1435
- * @returns {RunFonts}
1436
- */
1437
- east_asia_theme(f: string): RunFonts;
1438
- /**
1439
- * @param {string} f
1440
- * @returns {RunFonts}
1441
- */
1442
- hint(f: string): RunFonts;
1443
- }
1444
- /**
1445
- */
1446
- export class Style {
1447
- free(): void;
1448
- /**
1449
- * @param {string} name
1450
- * @returns {Style}
1451
- */
1452
- name(name: string): Style;
1453
- /**
1454
- * @param {string} base
1455
- * @returns {Style}
1456
- */
1457
- based_on(base: string): Style;
1458
- /**
1459
- * @param {number} size
1460
- * @returns {Style}
1461
- */
1462
- size(size: number): Style;
1463
- /**
1464
- * @param {string} color
1465
- * @returns {Style}
1466
- */
1467
- color(color: string): Style;
1468
- /**
1469
- * @param {string} color
1470
- * @returns {Style}
1471
- */
1472
- highlight(color: string): Style;
1473
- /**
1474
- * @returns {Style}
1475
- */
1476
- bold(): Style;
1477
- /**
1478
- * @returns {Style}
1479
- */
1480
- italic(): Style;
1481
- /**
1482
- * @returns {Style}
1483
- */
1484
- strike(): Style;
1485
- /**
1486
- * @param {string} line_type
1487
- * @returns {Style}
1488
- */
1489
- underline(line_type: string): Style;
1490
- /**
1491
- * @param {string} link
1492
- * @returns {Style}
1493
- */
1494
- link(link: string): Style;
1495
- /**
1496
- * @returns {Style}
1497
- */
1498
- vanish(): Style;
1499
- /**
1500
- * @param {RunFonts} f
1501
- * @returns {Style}
1502
- */
1503
- fonts(f: RunFonts): Style;
1504
- /**
1505
- * @param {number} spacing
1506
- * @returns {Style}
1507
- */
1508
- character_spacing(spacing: number): Style;
1509
- /**
1510
- * @param {number} a
1511
- * @returns {Style}
1512
- */
1513
- vert_align(a: number): Style;
1514
- /**
1515
- * @param {number} border_type
1516
- * @param {number} size
1517
- * @param {number} space
1518
- * @param {string} color
1519
- * @returns {Style}
1520
- */
1521
- text_border(border_type: number, size: number, space: number, color: string): Style;
1522
- /**
1523
- * @param {number} alignment_type
1524
- * @returns {Style}
1525
- */
1526
- align(alignment_type: number): Style;
1527
- /**
1528
- * @param {number} left
1529
- * @param {number | undefined} special_indent_kind
1530
- * @param {number | undefined} special_indent_size
1531
- * @returns {Style}
1532
- */
1533
- indent(left: number, special_indent_kind?: number, special_indent_size?: number): Style;
1534
- /**
1535
- * @param {number} l
1536
- * @returns {Style}
1537
- */
1538
- outline_lvl(l: number): Style;
1539
- /**
1540
- * @param {number} id
1541
- * @param {number} level
1542
- * @returns {Style}
1543
- */
1544
- numbering(id: number, level: number): Style;
1545
- /**
1546
- * @param {LineSpacing} spacing
1547
- * @returns {Style}
1548
- */
1549
- line_spacing(spacing: LineSpacing): Style;
1550
- /**
1551
- * @param {boolean} v
1552
- * @returns {Style}
1553
- */
1554
- keep_next(v: boolean): Style;
1555
- /**
1556
- * @param {boolean} v
1557
- * @returns {Style}
1558
- */
1559
- keep_lines(v: boolean): Style;
1560
- /**
1561
- * @param {boolean} v
1562
- * @returns {Style}
1563
- */
1564
- page_break_before(v: boolean): Style;
1565
- /**
1566
- * @param {boolean} v
1567
- * @returns {Style}
1568
- */
1569
- widow_control(v: boolean): Style;
1570
- /**
1571
- * @param {TableProperty} p
1572
- * @returns {Style}
1573
- */
1574
- table_property(p: TableProperty): Style;
1575
- /**
1576
- * @param {TableCellProperty} p
1577
- * @returns {Style}
1578
- */
1579
- table_cell_property(p: TableCellProperty): Style;
1580
- /**
1581
- * @param {number} v
1582
- * @returns {Style}
1583
- */
1584
- table_indent(v: number): Style;
1585
- /**
1586
- * @param {number} v
1587
- * @returns {Style}
1588
- */
1589
- table_align(v: number): Style;
1590
- /**
1591
- * @param {number} top
1592
- * @param {number} right
1593
- * @param {number} bottom
1594
- * @param {number} left
1595
- * @returns {Style}
1596
- */
1597
- set_cell_margins(top: number, right: number, bottom: number, left: number): Style;
1598
- /**
1599
- * @param {number} v
1600
- * @param {number} t
1601
- * @returns {Style}
1602
- */
1603
- cell_margin_top(v: number, t: number): Style;
1604
- /**
1605
- * @param {number} v
1606
- * @param {number} t
1607
- * @returns {Style}
1608
- */
1609
- cell_margin_right(v: number, t: number): Style;
1610
- /**
1611
- * @param {number} v
1612
- * @param {number} t
1613
- * @returns {Style}
1614
- */
1615
- cell_margin_bottom(v: number, t: number): Style;
1616
- /**
1617
- * @param {number} v
1618
- * @param {number} t
1619
- * @returns {Style}
1620
- */
1621
- cell_margin_left(v: number, t: number): Style;
1622
- /**
1623
- * @param {number} t
1624
- * @returns {Style}
1625
- */
1626
- layout(t: number): Style;
1627
- }
1628
- /**
1629
- */
1630
- export class Table {
1631
- free(): void;
1632
- /**
1633
- * @param {TableRow} row
1634
- * @returns {Table}
1635
- */
1636
- add_row(row: TableRow): Table;
1637
- /**
1638
- * @param {Uint32Array} grid
1639
- * @returns {Table}
1640
- */
1641
- set_grid(grid: Uint32Array): Table;
1642
- /**
1643
- * @param {string} style_id
1644
- * @returns {Table}
1645
- */
1646
- style(style_id: string): Table;
1647
- /**
1648
- * @param {number} v
1649
- * @returns {Table}
1650
- */
1651
- indent(v: number): Table;
1652
- /**
1653
- * @param {number} v
1654
- * @returns {Table}
1655
- */
1656
- align(v: number): Table;
1657
- /**
1658
- * @param {number} w
1659
- * @returns {Table}
1660
- */
1661
- width(w: number): Table;
1662
- /**
1663
- * @param {number} t
1664
- * @returns {Table}
1665
- */
1666
- layout(t: number): Table;
1667
- /**
1668
- * @param {number} top
1669
- * @param {number} right
1670
- * @param {number} bottom
1671
- * @param {number} left
1672
- * @returns {Table}
1673
- */
1674
- set_cell_margins(top: number, right: number, bottom: number, left: number): Table;
1675
- /**
1676
- * @param {number} v
1677
- * @param {number} t
1678
- * @returns {Table}
1679
- */
1680
- cell_margin_top(v: number, t: number): Table;
1681
- /**
1682
- * @param {number} v
1683
- * @param {number} t
1684
- * @returns {Table}
1685
- */
1686
- cell_margin_right(v: number, t: number): Table;
1687
- /**
1688
- * @param {number} v
1689
- * @param {number} t
1690
- * @returns {Table}
1691
- */
1692
- cell_margin_bottom(v: number, t: number): Table;
1693
- /**
1694
- * @param {number} v
1695
- * @param {number} t
1696
- * @returns {Table}
1697
- */
1698
- cell_margin_left(v: number, t: number): Table;
1699
- }
1700
- /**
1701
- */
1702
- export class TableCell {
1703
- free(): void;
1704
- /**
1705
- * @param {Paragraph} p
1706
- * @returns {TableCell}
1707
- */
1708
- add_paragraph(p: Paragraph): TableCell;
1709
- /**
1710
- * @param {Table} t
1711
- * @returns {TableCell}
1712
- */
1713
- add_table(t: Table): TableCell;
1714
- /**
1715
- * @param {TableOfContents} t
1716
- * @returns {TableCell}
1717
- */
1718
- add_table_of_contents(t: TableOfContents): TableCell;
1719
- /**
1720
- * @param {number} t
1721
- * @returns {TableCell}
1722
- */
1723
- vertical_merge(t: number): TableCell;
1724
- /**
1725
- * @param {number} t
1726
- * @returns {TableCell}
1727
- */
1728
- vertical_align(t: number): TableCell;
1729
- /**
1730
- * @param {number} v
1731
- * @returns {TableCell}
1732
- */
1733
- grid_span(v: number): TableCell;
1734
- /**
1735
- * @param {number} v
1736
- * @returns {TableCell}
1737
- */
1738
- width(v: number): TableCell;
1739
- /**
1740
- * @param {string} t
1741
- * @param {string} color
1742
- * @param {string} fill
1743
- * @returns {TableCell}
1744
- */
1745
- shading(t: string, color: string, fill: string): TableCell;
1746
- /**
1747
- * @param {number} t
1748
- * @returns {TableCell}
1749
- */
1750
- text_direction(t: number): TableCell;
1751
- /**
1752
- * @param {TableCellBorder} border
1753
- * @returns {TableCell}
1754
- */
1755
- set_border(border: TableCellBorder): TableCell;
1756
- /**
1757
- * @param {number} position
1758
- * @returns {TableCell}
1759
- */
1760
- clear_border(position: number): TableCell;
1761
- /**
1762
- * @returns {TableCell}
1763
- */
1764
- clear_all_border(): TableCell;
1765
- }
1766
- /**
1767
- */
1768
- export class TableCellBorder {
1769
- free(): void;
1770
- /**
1771
- * @param {number} size
1772
- * @returns {TableCellBorder}
1773
- */
1774
- size(size: number): TableCellBorder;
1775
- /**
1776
- * @param {string} color
1777
- * @returns {TableCellBorder}
1778
- */
1779
- color(color: string): TableCellBorder;
1780
- /**
1781
- * @param {number} border_type
1782
- * @returns {TableCellBorder}
1783
- */
1784
- border_type(border_type: number): TableCellBorder;
1785
- /**
1786
- * @returns {number}
1787
- */
1788
- get_size(): number;
1789
- /**
1790
- * @returns {string}
1791
- */
1792
- get_color(): string;
1793
- /**
1794
- * @returns {number}
1795
- */
1796
- get_border_type(): number;
1797
- }
1798
- /**
1799
- */
1800
- export class TableCellProperty {
1801
- free(): void;
1802
- }
1803
- /**
1804
- */
1805
- export class TableOfContents {
1806
- free(): void;
1807
- /**
1808
- * @param {number} start
1809
- * @param {number} end
1810
- * @returns {TableOfContents}
1811
- */
1812
- heading_styles_range(start: number, end: number): TableOfContents;
1813
- /**
1814
- * @param {string} style
1815
- * @param {number} level
1816
- * @returns {TableOfContents}
1817
- */
1818
- add_style_with_level(style: string, level: number): TableOfContents;
1819
- /**
1820
- * @returns {TableOfContents}
1821
- */
1822
- hyperlink(): TableOfContents;
1823
- /**
1824
- * @param {string} a
1825
- * @returns {TableOfContents}
1826
- */
1827
- alias(a: string): TableOfContents;
1828
- /**
1829
- * @param {string} a
1830
- * @returns {TableOfContents}
1831
- */
1832
- page_ref_placeholder(a: string): TableOfContents;
1833
- /**
1834
- * @param {TableOfContentsItem} t
1835
- * @returns {TableOfContents}
1836
- */
1837
- add_item(t: TableOfContentsItem): TableOfContents;
1838
- /**
1839
- * @returns {TableOfContents}
1840
- */
1841
- auto(): TableOfContents;
1842
- /**
1843
- * @returns {TableOfContents}
1844
- */
1845
- dirty(): TableOfContents;
1846
- /**
1847
- * @returns {TableOfContents}
1848
- */
1849
- without_sdt(): TableOfContents;
1850
- /**
1851
- * @param {string} author
1852
- * @param {string} date
1853
- * @returns {TableOfContents}
1854
- */
1855
- delete(author: string, date: string): TableOfContents;
1856
- /**
1857
- * @param {Paragraph} p
1858
- * @returns {TableOfContents}
1859
- */
1860
- add_before_paragraph(p: Paragraph): TableOfContents;
1861
- /**
1862
- * @param {Paragraph} p
1863
- * @returns {TableOfContents}
1864
- */
1865
- add_after_paragraph(p: Paragraph): TableOfContents;
1866
- /**
1867
- * @param {Table} t
1868
- * @returns {TableOfContents}
1869
- */
1870
- add_before_table(t: Table): TableOfContents;
1871
- /**
1872
- * @param {Table} t
1873
- * @returns {TableOfContents}
1874
- */
1875
- add_after_table(t: Table): TableOfContents;
1876
- }
1877
- /**
1878
- */
1879
- export class TableOfContentsItem {
1880
- free(): void;
1881
- /**
1882
- * @param {string} a
1883
- * @returns {TableOfContentsItem}
1884
- */
1885
- text(a: string): TableOfContentsItem;
1886
- /**
1887
- * @param {string} a
1888
- * @returns {TableOfContentsItem}
1889
- */
1890
- toc_key(a: string): TableOfContentsItem;
1891
- /**
1892
- * @param {number} l
1893
- * @returns {TableOfContentsItem}
1894
- */
1895
- level(l: number): TableOfContentsItem;
1896
- /**
1897
- * @param {string} a
1898
- * @returns {TableOfContentsItem}
1899
- */
1900
- page_ref(a: string): TableOfContentsItem;
1901
- }
1902
- /**
1903
- */
1904
- export class TableProperty {
1905
- free(): void;
1906
- }
1907
- /**
1908
- */
1909
- export class TableRow {
1910
- free(): void;
1911
- /**
1912
- * @param {TableCell} cell
1913
- * @returns {TableRow}
1914
- */
1915
- add_cell(cell: TableCell): TableRow;
1916
- /**
1917
- * @param {number} h
1918
- * @returns {TableRow}
1919
- */
1920
- row_height(h: number): TableRow;
1921
- /**
1922
- * @param {number} r
1923
- * @returns {TableRow}
1924
- */
1925
- height_rule(r: number): TableRow;
1926
- /**
1927
- * @param {string} author
1928
- * @param {string} date
1929
- * @returns {TableRow}
1930
- */
1931
- delete(author: string, date: string): TableRow;
1932
- /**
1933
- * @param {string} author
1934
- * @param {string} date
1935
- * @returns {TableRow}
1936
- */
1937
- insert(author: string, date: string): TableRow;
1938
- }
1939
- /**
1940
- */
1941
- export class WebExtension {
1942
- free(): void;
1943
- /**
1944
- * @param {string} name
1945
- * @param {string} value
1946
- * @returns {WebExtension}
1947
- */
1948
- property(name: string, value: string): WebExtension;
1949
- }