Add both (#87)

* feat: Add both to jc

* 0.0.86
main
bokuweb 2020-06-15 18:41:29 +09:00 committed by GitHub
parent 2237ece46d
commit 146a6d799c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -227,6 +227,10 @@ export class Docx {
paragraph = paragraph.align(wasm.AlignmentType.Distribute); paragraph = paragraph.align(wasm.AlignmentType.Distribute);
break; break;
} }
case "both": {
paragraph = paragraph.align(wasm.AlignmentType.Both);
break;
}
case "end": { case "end": {
paragraph = paragraph.align(wasm.AlignmentType.End); paragraph = paragraph.align(wasm.AlignmentType.End);
break; break;

View File

@ -19,6 +19,7 @@ export type AlignmentType =
| "center" | "center"
| "left" | "left"
| "right" | "right"
| "both"
| "justified" | "justified"
| "distribute" | "distribute"
| "end"; | "end";

View File

@ -1,6 +1,6 @@
{ {
"name": "docx-wasm", "name": "docx-wasm",
"version": "0.0.81", "version": "0.0.86",
"main": "dist/node/index.js", "main": "dist/node/index.js",
"browser": "dist/web/index.js", "browser": "dist/web/index.js",
"author": "bokuweb <bokuweb12@gmail.com>", "author": "bokuweb <bokuweb12@gmail.com>",