Improve line spacing json (#373)

* fix: def

* fix
main
bokuweb 2021-11-26 19:07:10 +09:00 committed by GitHub
parent 48b4017b32
commit 6c1d4a99d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 12 deletions

View File

@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# docx-wasm@0.0.215 (26. November, 2021)
- Add before/afterLines to LineSpacingJSON.
# docx-wasm@0.0.214 (26. November, 2021) # docx-wasm@0.0.214 (26. November, 2021)
- Fixed a missed pkg. - Fixed a missed pkg.

View File

@ -90,7 +90,7 @@ writeFileSync("hello.docx", buffer);
- Node.js 16+ - Node.js 16+
- yarn 1+ - yarn 1+
- wasm-pack (https://rustwasm.github.io/wasm-pack/) - wasm-pack0.10.1 (https://rustwasm.github.io/wasm-pack/)
- insta (https://github.com/mitsuhiko/insta) - insta (https://github.com/mitsuhiko/insta)
### Examples ### Examples
@ -174,6 +174,3 @@ $ yarn test -- --updateSnapshot
- [ ] Table of contents - [ ] Table of contents
- [ ] Section - [ ] Section
## Requirements
- wasm-pack 0.9.1+

View File

@ -1,9 +1,11 @@
export type LineSpacingJSON = { export type LineSpacingJSON = {
before: number | null; before?: number | null;
after: number | null; after?: number | null;
line: number | null; beforeLines?: number | null;
lineRule: { afterLines?: number | null;
type: "atLeast" | "auto" | "exact"; line?: number | null;
val: number; lineRule?: {
} | null; type: "atLeast" | "auto" | "exact";
val: number;
} | null;
}; };

View File

@ -1,6 +1,6 @@
{ {
"name": "docx-wasm", "name": "docx-wasm",
"version": "0.0.214", "version": "0.0.215",
"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>",