docx-wasm 0.4.20-rc0 → 0.4.20-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/json/bindings/FitText.d.ts +4 -0
- package/dist/node/json/bindings/FitText.js +4 -0
- package/dist/node/json/bindings/FitText.js.map +1 -0
- package/dist/node/json/bindings/RunProperty.d.ts +2 -0
- package/dist/node/json/run.d.ts +5 -0
- package/dist/node/paragraph-property.d.ts +1 -1
- package/dist/node/pkg/docx_wasm.d.ts +31 -24
- package/dist/node/pkg/docx_wasm.js +253 -190
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +329 -322
- package/dist/node/run-property.d.ts +7 -1
- package/dist/node/run-property.js +10 -0
- package/dist/node/run-property.js.map +1 -1
- package/dist/node/run.d.ts +1 -0
- package/dist/node/run.js +6 -0
- package/dist/node/run.js.map +1 -1
- package/dist/node/style.d.ts +9 -0
- package/dist/node/style.js +36 -0
- package/dist/node/style.js.map +1 -1
- package/dist/node/table.d.ts +1 -1
- package/dist/web/json/bindings/FitText.d.ts +4 -0
- package/dist/web/json/bindings/FitText.js +3 -0
- package/dist/web/json/bindings/FitText.js.map +1 -0
- package/dist/web/json/bindings/RunProperty.d.ts +2 -0
- package/dist/web/json/run.d.ts +5 -0
- package/dist/web/paragraph-property.d.ts +1 -1
- package/dist/web/pkg/docx_wasm.d.ts +31 -24
- package/dist/web/pkg/docx_wasm_bg.js +252 -189
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +329 -322
- package/dist/web/run-property.d.ts +7 -1
- package/dist/web/run-property.js +10 -0
- package/dist/web/run-property.js.map +1 -1
- package/dist/web/run.d.ts +1 -0
- package/dist/web/run.js +6 -0
- package/dist/web/run.js.map +1 -1
- package/dist/web/style.d.ts +9 -0
- package/dist/web/style.js +36 -0
- package/dist/web/style.js.map +1 -1
- package/dist/web/table.d.ts +1 -1
- package/js/json/bindings/FitText.ts +6 -0
- package/js/json/bindings/RunProperty.ts +2 -1
- package/js/json/run.ts +6 -0
- package/js/run-property.ts +19 -0
- package/js/run.ts +6 -0
- package/js/style.ts +45 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FitText.js","sourceRoot":"","sources":["../../../../js/json/bindings/FitText.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
|
|
@@ -4,6 +4,7 @@ import type { Caps } from "./Caps";
|
|
|
4
4
|
import type { CharacterSpacing } from "./CharacterSpacing";
|
|
5
5
|
import type { Color } from "./Color";
|
|
6
6
|
import type { Delete } from "./Delete";
|
|
7
|
+
import type { FitText } from "./FitText";
|
|
7
8
|
import type { Highlight } from "./Highlight";
|
|
8
9
|
import type { Insert } from "./Insert";
|
|
9
10
|
import type { Italic } from "./Italic";
|
|
@@ -34,6 +35,7 @@ export interface RunProperty {
|
|
|
34
35
|
vanish?: Vanish;
|
|
35
36
|
specVanish?: SpecVanish;
|
|
36
37
|
characterSpacing?: CharacterSpacing;
|
|
38
|
+
fitText?: FitText;
|
|
37
39
|
fonts?: RunFonts;
|
|
38
40
|
textBorder?: TextBorder;
|
|
39
41
|
del?: Delete;
|
package/dist/node/json/run.d.ts
CHANGED
|
@@ -26,6 +26,10 @@ export type RunFontsJSON = {
|
|
|
26
26
|
csTheme?: string;
|
|
27
27
|
hint?: string;
|
|
28
28
|
};
|
|
29
|
+
export type FitTextJSON = {
|
|
30
|
+
val: number;
|
|
31
|
+
id?: number;
|
|
32
|
+
};
|
|
29
33
|
export type RunPropertyJSON = {
|
|
30
34
|
style?: string | null;
|
|
31
35
|
sz?: number | null;
|
|
@@ -43,6 +47,7 @@ export type RunPropertyJSON = {
|
|
|
43
47
|
vanish?: boolean | null;
|
|
44
48
|
specVanish?: boolean | null;
|
|
45
49
|
characterSpacing?: number | null;
|
|
50
|
+
fitText?: FitTextJSON | null;
|
|
46
51
|
textBorder?: TextBorderJSON | null;
|
|
47
52
|
ins?: InsertJSONData | null;
|
|
48
53
|
del?: DeleteJSONData | null;
|
|
@@ -91,5 +91,5 @@ export declare class ParagraphPropertyChange {
|
|
|
91
91
|
numbering(id: number, level: number): this;
|
|
92
92
|
}
|
|
93
93
|
export declare const buildLineSpacing: (p: ParagraphProperty) => wasm.LineSpacing | null;
|
|
94
|
-
export declare const setParagraphProperty: <T extends wasm.
|
|
94
|
+
export declare const setParagraphProperty: <T extends wasm.Style | wasm.Paragraph>(target: T, property: ParagraphProperty) => T;
|
|
95
95
|
export declare const createParagraphProperty: (property: ParagraphProperty) => wasm.ParagraphProperty;
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function
|
|
3
|
+
export function createFrameProperty(): FrameProperty;
|
|
4
|
+
export function createLevelOverride(level: number): LevelOverride;
|
|
5
|
+
export function createParagraphPropertyChange(): ParagraphPropertyChange;
|
|
6
|
+
export function createParagraphProperty(): ParagraphProperty;
|
|
4
7
|
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;
|
|
10
8
|
export function createLineSpacing(): LineSpacing;
|
|
11
|
-
export function
|
|
12
|
-
export function
|
|
13
|
-
export function
|
|
9
|
+
export function createStyle(style_id: string, style_type: StyleType): Style;
|
|
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;
|
|
13
|
+
export function createDelete(run: Run): Delete;
|
|
18
14
|
export function createLevel(id: number, start: number, format: string, text: string, jc: string): Level;
|
|
19
15
|
export function createPageNum(): PageNum;
|
|
20
16
|
export function createTable(): Table;
|
|
21
17
|
export function createTableOfContents(): TableOfContents;
|
|
22
18
|
export function createTableOfContentsWithInstrText(s: string): TableOfContents;
|
|
23
|
-
export function createComment(id: number): Comment;
|
|
24
|
-
export function createNumbering(id: number, abstract_num_id: number): Numbering;
|
|
25
|
-
export function createPic(buf: Uint8Array): Pic;
|
|
26
19
|
export function createHeader(): Header;
|
|
27
|
-
export function createStyle(style_id: string, style_type: StyleType): Style;
|
|
28
|
-
export function createAbstractNumbering(id: number): AbstractNumbering;
|
|
29
20
|
export function readDocx(buf: Uint8Array): string;
|
|
30
21
|
export function readXML(xml: string): string;
|
|
31
22
|
export function createRunProperty(): RunProperty;
|
|
32
|
-
export function
|
|
33
|
-
export function
|
|
23
|
+
export function createAbstractNumbering(id: number): AbstractNumbering;
|
|
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 createFooter(): Footer;
|
|
30
|
+
export function createParagraph(): Paragraph;
|
|
31
|
+
export function createPic(buf: Uint8Array): Pic;
|
|
32
|
+
export function createInsert(run: Run): Insert;
|
|
33
|
+
export function createPageNumType(start?: number | null, chap_style?: string | null): PageNumType;
|
|
34
|
+
export function createRun(): Run;
|
|
35
|
+
export function createTableCellBorder(position: TableCellBorderPosition): TableCellBorder;
|
|
36
|
+
export function createTableOfContentsItem(): TableOfContentsItem;
|
|
37
|
+
export function createTableRow(): TableRow;
|
|
38
|
+
export function createNumbering(id: number, abstract_num_id: number): Numbering;
|
|
39
|
+
export function createComment(id: number): Comment;
|
|
40
40
|
export enum AlignmentType {
|
|
41
41
|
Both = 0,
|
|
42
42
|
Center = 1,
|
|
@@ -656,6 +656,7 @@ export class Run {
|
|
|
656
656
|
vanish(): Run;
|
|
657
657
|
fonts(f: RunFonts): Run;
|
|
658
658
|
character_spacing(spacing: number): Run;
|
|
659
|
+
fit_text(val: number, id?: number | null): Run;
|
|
659
660
|
vert_align(a: VertAlignType): Run;
|
|
660
661
|
shading(t: string, color: string, fill: string): Run;
|
|
661
662
|
text_border(border_type: BorderType, size: number, space: number, color: string): Run;
|
|
@@ -691,6 +692,7 @@ export class RunProperty {
|
|
|
691
692
|
vanish(): RunProperty;
|
|
692
693
|
spec_vanish(): RunProperty;
|
|
693
694
|
character_spacing(spacing: number): RunProperty;
|
|
695
|
+
fit_text(val: number, id?: number | null): RunProperty;
|
|
694
696
|
vert_align(a: VertAlignType): RunProperty;
|
|
695
697
|
delete(author: string, date: string): RunProperty;
|
|
696
698
|
insert(author: string, date: string): RunProperty;
|
|
@@ -704,6 +706,10 @@ export class Style {
|
|
|
704
706
|
free(): void;
|
|
705
707
|
name(name: string): Style;
|
|
706
708
|
based_on(base: string): Style;
|
|
709
|
+
q_format(q_format: boolean): Style;
|
|
710
|
+
ui_priority(ui_priority: number): Style;
|
|
711
|
+
semi_hidden(): Style;
|
|
712
|
+
unhide_when_used(): Style;
|
|
707
713
|
size(size: number): Style;
|
|
708
714
|
color(color: string): Style;
|
|
709
715
|
highlight(color: string): Style;
|
|
@@ -718,6 +724,7 @@ export class Style {
|
|
|
718
724
|
caps(): Style;
|
|
719
725
|
fonts(f: RunFonts): Style;
|
|
720
726
|
character_spacing(spacing: number): Style;
|
|
727
|
+
fit_text(val: number, id?: number | null): Style;
|
|
721
728
|
vert_align(a: VertAlignType): Style;
|
|
722
729
|
text_border(border_type: BorderType, size: number, space: number, color: string): Style;
|
|
723
730
|
align(alignment_type: AlignmentType): Style;
|