fix: indent (#44)
parent
ff44dfb7fb
commit
d8ea19e7cf
|
@ -0,0 +1,8 @@
|
|||
export type IndentJSON = {
|
||||
start: number;
|
||||
end: number | null;
|
||||
specialIndent: {
|
||||
type: "firstLine" | "hanging";
|
||||
val: number;
|
||||
} | null;
|
||||
};
|
|
@ -1,6 +1,6 @@
|
|||
import { Styles } from "./styles";
|
||||
import { StylesJSON } from "./styles";
|
||||
import { DocumentJSON } from "./document";
|
||||
import { AbstractNumberingJSON, NumberingJSON } from "./numbering";
|
||||
import { NumberingsJSON } from "./numbering";
|
||||
|
||||
export type DocxJSON = {
|
||||
contentType: {
|
||||
|
@ -28,15 +28,12 @@ export type DocxJSON = {
|
|||
};
|
||||
};
|
||||
};
|
||||
styles: Styles;
|
||||
styles: StylesJSON;
|
||||
document: DocumentJSON;
|
||||
comments: {
|
||||
comments: any[];
|
||||
};
|
||||
numberings: {
|
||||
abstractNums: AbstractNumberingJSON[];
|
||||
numberings: NumberingJSON[];
|
||||
comments: any[]; // TODO:
|
||||
};
|
||||
numberings: NumberingsJSON;
|
||||
settings: {
|
||||
defaultTabStop: number;
|
||||
zoom: number;
|
||||
|
|
|
@ -21,3 +21,8 @@ export type NumberingJSON = {
|
|||
id: number;
|
||||
abstractNumId: number;
|
||||
};
|
||||
|
||||
export type NumberingsJSON = {
|
||||
abstractNums: AbstractNumberingJSON[];
|
||||
numberings: NumberingJSON[];
|
||||
};
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { RunJSON, RunChildJSON } from "./run";
|
||||
import { IndentJSON } from "./indent";
|
||||
|
||||
export type ParagraphChildJSON =
|
||||
| RunJSON
|
||||
|
@ -17,6 +18,7 @@ export type ParagraphPropertyJSON = {
|
|||
style: string | null;
|
||||
numberingProperty: NumberingPropertyJSON | null;
|
||||
alignment: "left" | "center" | "right" | "justified" | "both";
|
||||
indent: IndentJSON | null;
|
||||
};
|
||||
|
||||
export type ParagraphJSON = {
|
||||
|
|
|
@ -9,7 +9,7 @@ export type StyleJSON = {
|
|||
paragraphProperty: ParagraphPropertyJSON;
|
||||
};
|
||||
|
||||
export type Styles = {
|
||||
export type StylesJSON = {
|
||||
docDefaults: {
|
||||
runPropertyDefault: RunPropertyJSON;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "docx-wasm",
|
||||
"version": "0.0.35",
|
||||
"version": "0.0.37",
|
||||
"main": "dist/node/index.js",
|
||||
"browser": "dist/web/index.js",
|
||||
"author": "bokuweb <bokuweb12@gmail.com>",
|
||||
|
|
Loading…
Reference in New Issue