Turn Run into a declaritive API
This commit is contained in:
@ -3,7 +3,7 @@ import { ContinuationSeperator } from "./continuation-seperator";
|
||||
|
||||
export class ContinuationSeperatorRun extends Run {
|
||||
constructor() {
|
||||
super();
|
||||
super({});
|
||||
|
||||
this.root.push(new ContinuationSeperator());
|
||||
}
|
||||
|
@ -3,9 +3,10 @@ import { FootnoteRef } from "./footnote-ref";
|
||||
|
||||
export class FootnoteRefRun extends Run {
|
||||
constructor() {
|
||||
super();
|
||||
super({
|
||||
style: "FootnoteReference",
|
||||
});
|
||||
|
||||
this.style("FootnoteReference");
|
||||
this.root.push(new FootnoteRef());
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ export class FootnoteReference extends XmlComponent {
|
||||
|
||||
export class FootnoteReferenceRun extends Run {
|
||||
constructor(id: number) {
|
||||
super();
|
||||
super({});
|
||||
|
||||
this.properties.push(new Style("FootnoteReference"));
|
||||
|
||||
|
@ -3,7 +3,7 @@ import { Seperator } from "./seperator";
|
||||
|
||||
export class SeperatorRun extends Run {
|
||||
constructor() {
|
||||
super();
|
||||
super({});
|
||||
|
||||
this.root.push(new Seperator());
|
||||
}
|
||||
|
Reference in New Issue
Block a user