progress on clean up file/paragraph

This commit is contained in:
Tom Hunkapiller
2021-05-24 17:12:10 +03:00
parent 4466145d00
commit 7bfe8f26f0
8 changed files with 80 additions and 396 deletions

View File

@ -1,5 +1,4 @@
import { Run } from "file/paragraph/run";
import { Style } from "file/paragraph/run/style";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
export class FootNoteReferenceRunAttributes extends XmlAttributeComponent<{
@ -24,9 +23,7 @@ export class FootnoteReference extends XmlComponent {
export class FootnoteReferenceRun extends Run {
constructor(id: number) {
super({});
this.properties.push(new Style("FootnoteReference"));
super({ style: "FootnoteReference" });
this.root.push(new FootnoteReference(id));
}