parent
3b0b7e7647
commit
47697f0fac
|
@ -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.276-rc37 (28. Nov, 2022)
|
||||
|
||||
- fixed a bug, `adjustLineHeightInTable` is not affected in js interface.
|
||||
|
||||
## docx-wasm@0.0.276-rc36 (16. Nov, 2022)
|
||||
|
||||
- fix lineRule ts type
|
||||
|
|
|
@ -182,7 +182,7 @@ export class Docx {
|
|||
}
|
||||
|
||||
adjustLineHeightInTable() {
|
||||
this.sectionProperty.adjustLineHeightInTable();
|
||||
this.settings.adjustLineHeightInTable();
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -765,6 +765,10 @@ export class Docx {
|
|||
docx = docx.doc_id(this.settings._docId);
|
||||
}
|
||||
|
||||
if (this.settings._adjustLineHeightInTable) {
|
||||
docx = docx.set_adjust_line_height_in_table();
|
||||
}
|
||||
|
||||
docx = docx.default_tab_stop(this.settings._defaultTabStop);
|
||||
|
||||
this.settings._docVars.forEach((v) => {
|
||||
|
|
|
@ -24,7 +24,6 @@ export class SectionProperty {
|
|||
_footer: Footer | null = null;
|
||||
_firstFooter: Footer | null = null;
|
||||
_evenFooter: Footer | null = null;
|
||||
_adjustLineHeightInTable: boolean = false;
|
||||
|
||||
pageSize(w: number, h: number) {
|
||||
this._pageSize.w = w;
|
||||
|
@ -52,11 +51,6 @@ export class SectionProperty {
|
|||
return this;
|
||||
}
|
||||
|
||||
adjustLineHeightInTable() {
|
||||
this._adjustLineHeightInTable = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
firstHeader(header: Header) {
|
||||
this._firstHeader = header;
|
||||
return this;
|
||||
|
|
|
@ -7,6 +7,7 @@ export class Settings {
|
|||
_docId: string | null = null;
|
||||
_docVars: DocVar[] = [];
|
||||
_defaultTabStop = 840;
|
||||
_adjustLineHeightInTable = false;
|
||||
|
||||
docId(id: string) {
|
||||
this._docId = id;
|
||||
|
@ -22,4 +23,9 @@ export class Settings {
|
|||
this._docVars.push({ name, val });
|
||||
return this;
|
||||
}
|
||||
|
||||
adjustLineHeightInTable() {
|
||||
this._adjustLineHeightInTable = true;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "docx-wasm",
|
||||
"version": "0.0.276-rc36",
|
||||
"version": "0.0.276-rc37",
|
||||
"main": "dist/node/index.js",
|
||||
"browser": "dist/web/index.js",
|
||||
"author": "bokuweb <bokuweb12@gmail.com>",
|
||||
|
|
Loading…
Reference in New Issue