parent
f8928f0c77
commit
0ab5869343
|
@ -10,6 +10,7 @@ pub enum AlignmentType {
|
|||
Both,
|
||||
Center,
|
||||
Distribute,
|
||||
Start,
|
||||
End,
|
||||
Left,
|
||||
Right,
|
||||
|
@ -24,6 +25,7 @@ impl fmt::Display for AlignmentType {
|
|||
AlignmentType::Left => write!(f, "left"),
|
||||
AlignmentType::Distribute => write!(f, "distribute"),
|
||||
AlignmentType::Right => write!(f, "right"),
|
||||
AlignmentType::Start => write!(f, "start"),
|
||||
AlignmentType::End => write!(f, "end"),
|
||||
AlignmentType::Both => write!(f, "both"),
|
||||
AlignmentType::Justified => write!(f, "justified"),
|
||||
|
@ -41,6 +43,7 @@ impl FromStr for AlignmentType {
|
|||
"distribute" => Ok(AlignmentType::Distribute),
|
||||
"center" => Ok(AlignmentType::Center),
|
||||
"both" => Ok(AlignmentType::Both),
|
||||
"start" => Ok(AlignmentType::Start),
|
||||
"end" => Ok(AlignmentType::End),
|
||||
"justified" => Ok(AlignmentType::Justified),
|
||||
_ => Ok(AlignmentType::Unsupported),
|
||||
|
|
|
@ -35,7 +35,15 @@ export type ParagraphPropertyJSON = {
|
|||
runProperty: RunPropertyJSON;
|
||||
style?: string | null;
|
||||
numberingProperty?: NumberingPropertyJSON | null;
|
||||
alignment?: "left" | "center" | "right" | "justified" | "both";
|
||||
alignment?:
|
||||
| "left"
|
||||
| "center"
|
||||
| "right"
|
||||
| "justified"
|
||||
| "both"
|
||||
| "start"
|
||||
| "end"
|
||||
| "unsupported";
|
||||
indent?: IndentJSON | null;
|
||||
lineSpacing?: LineSpacingJSON | null;
|
||||
divId?: string | null;
|
||||
|
@ -91,17 +99,17 @@ export type DeleteJSON = {
|
|||
export type HyperlinkJSON = {
|
||||
type: "hyperlink";
|
||||
data:
|
||||
| {
|
||||
type: "external";
|
||||
rid: string;
|
||||
children: HyperlinkChildJSON[];
|
||||
history: number | null;
|
||||
}
|
||||
| {
|
||||
type: "anchor";
|
||||
anchor: string;
|
||||
children: HyperlinkChildJSON[];
|
||||
};
|
||||
| {
|
||||
type: "external";
|
||||
rid: string;
|
||||
children: HyperlinkChildJSON[];
|
||||
history: number | null;
|
||||
}
|
||||
| {
|
||||
type: "anchor";
|
||||
anchor: string;
|
||||
children: HyperlinkChildJSON[];
|
||||
};
|
||||
};
|
||||
|
||||
export type DeleteChildJSON =
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "docx-wasm",
|
||||
"version": "0.0.276-rc34",
|
||||
"version": "0.0.276-rc35",
|
||||
"main": "dist/node/index.js",
|
||||
"browser": "dist/web/index.js",
|
||||
"author": "bokuweb <bokuweb12@gmail.com>",
|
||||
|
|
Loading…
Reference in New Issue