Simplify run format properties, removing duplicate classes. Add values functions, which check and clean up values for specific defined types from the schema

This commit is contained in:
Tom Hunkapiller
2021-05-24 08:20:08 +03:00
parent 449e1ed963
commit ee105cdb83
13 changed files with 274 additions and 265 deletions

View File

@ -432,8 +432,8 @@ describe("TableCell", () => {
const cell = new TableCell({
children: [],
shading: {
fill: "red",
color: "blue",
fill: "FF0000",
color: "0000ff",
val: ShadingType.PERCENT_10,
},
});
@ -447,8 +447,8 @@ describe("TableCell", () => {
{
"w:shd": {
_attr: {
"w:color": "blue",
"w:fill": "red",
"w:color": "0000ff",
"w:fill": "FF0000",
"w:val": "pct10",
},
},