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.
- package/dist/node/pkg/docx_wasm.d.ts +31 -27
- package/dist/node/pkg/docx_wasm.js +302 -268
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +331 -327
- package/dist/node/run-property.d.ts +1 -1
- package/dist/node/style.d.ts +8 -0
- package/dist/node/style.js +32 -0
- package/dist/node/style.js.map +1 -1
- package/dist/node/table.d.ts +1 -1
- package/dist/web/pkg/docx_wasm.d.ts +31 -27
- package/dist/web/pkg/docx_wasm_bg.js +301 -267
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +331 -327
- package/dist/web/pkg/package.json +1 -2
- package/dist/web/run-property.d.ts +1 -1
- package/dist/web/style.d.ts +8 -0
- package/dist/web/style.js +32 -0
- package/dist/web/style.js.map +1 -1
- package/dist/web/table.d.ts +1 -1
- package/js/style.ts +40 -0
- package/package.json +3 -3
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function
|
|
3
|
+
export function createParagraph(): Paragraph;
|
|
4
4
|
export function createPositionalTab(alignment: PositionalTabAlignmentType, relative_to: PositionalTabRelativeTo, leader: TabLeaderType): PositionalTab;
|
|
5
|
-
export function
|
|
6
|
-
export function
|
|
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
|
|
12
|
-
export function
|
|
13
|
-
export function
|
|
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
|
|
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
|
|
21
|
-
export function
|
|
22
|
-
export function
|
|
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
|
|
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
|
|
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
|
|
36
|
-
export function
|
|
37
|
-
export function
|
|
38
|
-
export function
|
|
39
|
-
export function
|
|
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;
|