parent
b4be4bbe9b
commit
69e5654872
|
@ -4,6 +4,15 @@ 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-rc11 (25. Aug, 2022)
|
||||
|
||||
- [Breaking] change table row `hightRule` to `auto` in reader.
|
||||
|
||||
## docx-wasm@0.0.276-rc10 (25. Aug, 2022)
|
||||
|
||||
- Support `adjustLineHeightInTable` in document setting
|
||||
|
||||
## docx-rs@0.4.2 (25. Aug, 2022)
|
||||
|
||||
- [Breaking] Hyperlink interface.
|
||||
|
|
|
@ -19,7 +19,7 @@ impl ElementReader for TableRow {
|
|||
let mut row_height = None;
|
||||
let mut del = None;
|
||||
let mut ins = None;
|
||||
let mut height_rule = Some(HeightRule::AtLeast);
|
||||
let mut height_rule = Some(HeightRule::Auto);
|
||||
loop {
|
||||
let e = r.next();
|
||||
match e {
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -228,6 +228,11 @@ export class Docx {
|
|||
return this;
|
||||
}
|
||||
|
||||
adjustLineHeightInTable() {
|
||||
this.sectionProperty.adjustLineHeightInTable();
|
||||
return this;
|
||||
}
|
||||
|
||||
defaultSize(size: number) {
|
||||
this.styles.defaultSize(size);
|
||||
return this;
|
||||
|
|
|
@ -24,6 +24,7 @@ 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;
|
||||
|
@ -51,6 +52,11 @@ export class SectionProperty {
|
|||
return this;
|
||||
}
|
||||
|
||||
adjustLineHeightInTable() {
|
||||
this._adjustLineHeightInTable = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
firstHeader(header: Header) {
|
||||
this._firstHeader = header;
|
||||
return this;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "docx-wasm",
|
||||
"version": "0.0.276-rc7",
|
||||
"version": "0.0.276-rc11",
|
||||
"main": "dist/node/index.js",
|
||||
"browser": "dist/web/index.js",
|
||||
"author": "bokuweb <bokuweb12@gmail.com>",
|
||||
|
|
|
@ -8407,7 +8407,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": 970,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -8583,7 +8583,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": 1,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": 55,
|
||||
"widthAfter": 1065,
|
||||
"widthBefore": null,
|
||||
|
@ -8759,7 +8759,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": 1,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": 675,
|
||||
"widthAfter": 1065,
|
||||
"widthBefore": null,
|
||||
|
@ -8933,7 +8933,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": 2,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": 397,
|
||||
"widthAfter": 3717,
|
||||
"widthBefore": null,
|
||||
|
@ -9107,7 +9107,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": 2,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": 397,
|
||||
"widthAfter": 3717,
|
||||
"widthBefore": null,
|
||||
|
@ -9360,7 +9360,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": 2,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": 397,
|
||||
"widthAfter": 3717,
|
||||
"widthBefore": null,
|
||||
|
@ -9613,7 +9613,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": 2,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": 397,
|
||||
"widthAfter": 3717,
|
||||
"widthBefore": null,
|
||||
|
@ -9854,7 +9854,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": 2,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": 397,
|
||||
"widthAfter": 3717,
|
||||
"widthBefore": null,
|
||||
|
@ -10107,7 +10107,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": 2,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": 397,
|
||||
"widthAfter": 3717,
|
||||
"widthBefore": null,
|
||||
|
@ -20020,7 +20020,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": null,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -20100,7 +20100,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": null,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -20178,7 +20178,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": null,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -20258,7 +20258,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": null,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -26905,7 +26905,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": null,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -27187,7 +27187,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": null,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -27453,7 +27453,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": null,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -27719,7 +27719,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": null,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -27979,7 +27979,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": null,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -28245,7 +28245,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": null,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -28511,7 +28511,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": null,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -45187,7 +45187,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": null,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -45331,7 +45331,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": null,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -45475,7 +45475,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": null,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -52176,7 +52176,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": 730,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
@ -52324,7 +52324,7 @@ Object {
|
|||
"property": Object {
|
||||
"gridAfter": null,
|
||||
"gridBefore": null,
|
||||
"heightRule": "atLeast",
|
||||
"heightRule": "auto",
|
||||
"rowHeight": null,
|
||||
"widthAfter": null,
|
||||
"widthBefore": null,
|
||||
|
|
Loading…
Reference in New Issue