docx-wasm 0.4.19 → 0.4.20-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,42 +1,42 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function createPageNumType(start?: number | null, chap_style?: string | null): PageNumType;
3
+ export function createParagraph(): Paragraph;
4
4
  export function createPositionalTab(alignment: PositionalTabAlignmentType, relative_to: PositionalTabRelativeTo, leader: TabLeaderType): PositionalTab;
5
- export function createRun(): Run;
6
- export function createTableCellBorder(position: TableCellBorderPosition): TableCellBorder;
7
- export function createTableOfContentsItem(): TableOfContentsItem;
8
- export function createTableRow(): TableRow;
9
- export function createHyperlink(v: string, t: HyperlinkType): Hyperlink;
5
+ export function createFrameProperty(): FrameProperty;
6
+ export function createLevelOverride(level: number): LevelOverride;
10
7
  export function createLineSpacing(): LineSpacing;
11
- export function createTableCell(): TableCell;
12
- export function createTablePosition(): TablePositionProperty;
13
- export function createWebExtension(id: string, reference_id: string, version: string, store: string, store_type: string): WebExtension;
8
+ export function createParagraphPropertyChange(): ParagraphPropertyChange;
9
+ export function createParagraphProperty(): ParagraphProperty;
10
+ export function createDocx(): Docx;
11
+ export function createRunFonts(): RunFonts;
14
12
  export function createPageMargin(): PageMargin;
15
- export function createFooter(): Footer;
16
- export function createParagraph(): Paragraph;
17
- export function createInsert(run: Run): Insert;
18
- export function createLevel(id: number, start: number, format: string, text: string, jc: string): Level;
13
+ export function createHeader(): Header;
19
14
  export function createPageNum(): PageNum;
20
- export function createTable(): Table;
21
- export function createTableOfContents(): TableOfContents;
22
- export function createTableOfContentsWithInstrText(s: string): TableOfContents;
15
+ export function readDocx(buf: Uint8Array): string;
16
+ export function readXML(xml: string): string;
17
+ export function createRunProperty(): RunProperty;
23
18
  export function createComment(id: number): Comment;
24
19
  export function createNumbering(id: number, abstract_num_id: number): Numbering;
25
20
  export function createPic(buf: Uint8Array): Pic;
26
- export function createHeader(): Header;
21
+ export function createFooter(): Footer;
27
22
  export function createStyle(style_id: string, style_type: StyleType): Style;
28
23
  export function createAbstractNumbering(id: number): AbstractNumbering;
29
- export function readDocx(buf: Uint8Array): string;
30
- export function readXML(xml: string): string;
31
- export function createRunProperty(): RunProperty;
32
- export function createDelete(run: Run): Delete;
33
- export function createDocx(): Docx;
24
+ export function createHyperlink(v: string, t: HyperlinkType): Hyperlink;
34
25
  export function createNumPages(): NumPages;
35
- export function createFrameProperty(): FrameProperty;
36
- export function createLevelOverride(level: number): LevelOverride;
37
- export function createParagraphPropertyChange(): ParagraphPropertyChange;
38
- export function createParagraphProperty(): ParagraphProperty;
39
- export function createRunFonts(): RunFonts;
26
+ export function createTableCell(): TableCell;
27
+ export function createTablePosition(): TablePositionProperty;
28
+ export function createWebExtension(id: string, reference_id: string, version: string, store: string, store_type: string): WebExtension;
29
+ export function createInsert(run: Run): Insert;
30
+ export function createPageNumType(start?: number | null, chap_style?: string | null): PageNumType;
31
+ export function createRun(): Run;
32
+ export function createTableCellBorder(position: TableCellBorderPosition): TableCellBorder;
33
+ export function createTableOfContentsItem(): TableOfContentsItem;
34
+ export function createTableRow(): TableRow;
35
+ export function createDelete(run: Run): Delete;
36
+ export function createLevel(id: number, start: number, format: string, text: string, jc: string): Level;
37
+ export function createTable(): Table;
38
+ export function createTableOfContents(): TableOfContents;
39
+ export function createTableOfContentsWithInstrText(s: string): TableOfContents;
40
40
  export enum AlignmentType {
41
41
  Both = 0,
42
42
  Center = 1,
@@ -704,6 +704,10 @@ export class Style {
704
704
  free(): void;
705
705
  name(name: string): Style;
706
706
  based_on(base: string): Style;
707
+ q_format(q_format: boolean): Style;
708
+ ui_priority(ui_priority: number): Style;
709
+ semi_hidden(): Style;
710
+ unhide_when_used(): Style;
707
711
  size(size: number): Style;
708
712
  color(color: string): Style;
709
713
  highlight(color: string): Style;