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/),
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)
- Fixed a missed pkg.

View File

@ -90,7 +90,7 @@ writeFileSync("hello.docx", buffer);
- Node.js 16+
- 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)
### Examples
@ -174,6 +174,3 @@ $ yarn test -- --updateSnapshot
- [ ] Table of contents
- [ ] Section
## Requirements
- wasm-pack 0.9.1+

View File

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

View File

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