Add enum to lineRule and create demo

This commit is contained in:
Dolan
2021-03-15 19:23:40 +00:00
parent 93ec9eed7a
commit 4fe2973473
5 changed files with 54 additions and 11 deletions

View File

@ -1,11 +1,18 @@
// http://officeopenxml.com/WPspacing.php
import { Attributes, XmlAttributeComponent, XmlComponent } from "file/xml-components";
export enum LineRuleType {
AT_LEAST = "atLeast",
EXACTLY = "exactly",
AUTO = "auto",
}
export interface ISpacingProperties {
readonly after?: number;
readonly before?: number;
readonly line?: number;
readonly lineRule?: string;
readonly lineRule?: LineRuleType;
readonly beforeAutoSpacing?: boolean;
readonly afterAutoSpacing?: boolean;
}
class SpacingAttributes extends XmlAttributeComponent<ISpacingProperties> {