add an ability to specify charSpace and type for DocumentGrid

This commit is contained in:
Katz Sakai
2021-11-30 21:11:06 +09:00
parent 75d62723b6
commit e08ad990a8
4 changed files with 50 additions and 4 deletions

View File

@ -112,7 +112,7 @@ export class SectionProperties extends XmlComponent {
borders,
textDirection,
} = {},
grid: { linePitch = 360 } = {},
grid: { linePitch = 360, charSpace, type: gridType } = {},
headerWrapperGroup = {},
footerWrapperGroup = {},
lineNumbers,
@ -159,7 +159,7 @@ export class SectionProperties extends XmlComponent {
this.root.push(new PageTextDirection(textDirection));
}
this.root.push(new DocumentGrid(linePitch));
this.root.push(new DocumentGrid(linePitch, charSpace, gridType));
}
private addHeaderFooterGroup(