fix: add missing if (#635)

main
bokuweb 2023-06-23 13:56:04 +09:00 committed by GitHub
parent cfe2887387
commit 1282686931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 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.278-rc9 (23. Jun, 2023)
- Support character space control function
## docx-rs@0.4.7 (23. Jun, 2023)
- Support character space control

View File

@ -7,7 +7,7 @@ import { AbstractNumbering } from "./abstract-numbering";
import { Numbering } from "./numbering";
import { BookmarkStart } from "./bookmark-start";
import { BookmarkEnd } from "./bookmark-end";
import { Settings } from "./settings";
import { CharacterSpacingValues, Settings } from "./settings";
import { DocProps } from "./doc-props";
import { Style } from "./style";
import { Styles } from "./styles";
@ -177,6 +177,11 @@ export class Docx {
return this;
}
characterSpacingControl(v: CharacterSpacingValues) {
this.settings._characterSpacingControl = v;
return this;
}
defaultSize(size: number) {
this.styles.defaultSize(size);
return this;

View File

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