parent
a89036258c
commit
ca6e24179d
|
@ -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-rc32 (1. Nov, 2022)
|
||||||
|
|
||||||
|
- Fix TableProperty json types.
|
||||||
|
|
||||||
## docx-wasm@0.0.276-rc31 (1. Nov, 2022)
|
## docx-wasm@0.0.276-rc31 (1. Nov, 2022)
|
||||||
|
|
||||||
- Support `specVanish`.
|
- Support `specVanish`.
|
||||||
|
|
|
@ -19,8 +19,9 @@ impl FromXML for Styles {
|
||||||
let e = XMLElement::from_str(&name.local_name).unwrap();
|
let e = XMLElement::from_str(&name.local_name).unwrap();
|
||||||
match e {
|
match e {
|
||||||
XMLElement::Style => {
|
XMLElement::Style => {
|
||||||
let s = Style::read(&mut parser, &attributes)?;
|
if let Ok(s) = Style::read(&mut parser, &attributes) {
|
||||||
styles = styles.add_style(s);
|
styles = styles.add_style(s);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
XMLElement::DocDefaults => {
|
XMLElement::DocDefaults => {
|
||||||
|
|
|
@ -24,7 +24,6 @@ export type TableCellPropertyJSON = {
|
||||||
verticalMerge: "restart" | "continue" | null;
|
verticalMerge: "restart" | "continue" | null;
|
||||||
verticalAlign: "top" | "center" | "bottom" | null;
|
verticalAlign: "top" | "center" | "bottom" | null;
|
||||||
textDirection: TextDirectionType | null;
|
textDirection: TextDirectionType | null;
|
||||||
hasNumbering: boolean;
|
|
||||||
shading: ShadingJSON | null;
|
shading: ShadingJSON | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -70,21 +69,21 @@ export type TablePropertyJSON = {
|
||||||
widthType: WidthType;
|
widthType: WidthType;
|
||||||
} | null;
|
} | null;
|
||||||
justification: "left" | "center" | "right";
|
justification: "left" | "center" | "right";
|
||||||
borders: {
|
borders?: {
|
||||||
top: BorderJSON;
|
top?: BorderJSON | null;
|
||||||
left: BorderJSON;
|
left?: BorderJSON | null;
|
||||||
bottom: BorderJSON;
|
bottom?: BorderJSON | null;
|
||||||
right: BorderJSON;
|
right?: BorderJSON | null;
|
||||||
insideH: BorderJSON;
|
insideH?: BorderJSON | null;
|
||||||
insideV: BorderJSON;
|
insideV?: BorderJSON | null;
|
||||||
} | null;
|
} | null;
|
||||||
margins: TableCellMarginsJSON | null;
|
margins: TableCellMarginsJSON | null;
|
||||||
indent: {
|
indent?: {
|
||||||
width: number;
|
width: number;
|
||||||
widthType: WidthType;
|
widthType: WidthType;
|
||||||
};
|
} | null;
|
||||||
style: string | null;
|
style?: string | null;
|
||||||
layout: TableLayoutType | null;
|
layout?: TableLayoutType | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TableJSON = {
|
export type TableJSON = {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "docx-wasm",
|
"name": "docx-wasm",
|
||||||
"version": "0.0.276-rc31",
|
"version": "0.0.276-rc32",
|
||||||
"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