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