#627 Add footnotes relationships
This commit is contained in:
@ -11,7 +11,7 @@ import {
|
||||
import { IPageMarginAttributes } from "./document/body/section-properties/page-margin/page-margin-attributes";
|
||||
import { IFileProperties } from "./file-properties";
|
||||
import { FooterWrapper, IDocumentFooter } from "./footer-wrapper";
|
||||
import { FootNotes } from "./footnotes";
|
||||
import { FootnotesWrapper } from "./footnotes-wrapper";
|
||||
import { Footer, Header } from "./header";
|
||||
import { HeaderWrapper, IDocumentHeader } from "./header-wrapper";
|
||||
import { Media } from "./media";
|
||||
@ -53,7 +53,7 @@ export class File {
|
||||
private readonly numbering: Numbering;
|
||||
private readonly media: Media;
|
||||
private readonly fileRelationships: Relationships;
|
||||
private readonly footNotes: FootNotes;
|
||||
private readonly footnotesWrapper: FootnotesWrapper;
|
||||
private readonly settings: Settings;
|
||||
private readonly contentTypes: ContentTypes;
|
||||
private readonly appProperties: AppProperties;
|
||||
@ -76,10 +76,9 @@ export class File {
|
||||
config: [],
|
||||
},
|
||||
);
|
||||
// this.documentWrapper.Relationships = new Relationships();
|
||||
this.fileRelationships = new Relationships();
|
||||
this.appProperties = new AppProperties();
|
||||
this.footNotes = new FootNotes();
|
||||
this.footnotesWrapper = new FootnotesWrapper();
|
||||
this.contentTypes = new ContentTypes();
|
||||
this.documentWrapper = new DocumentWrapper({ background: options.background || {} });
|
||||
this.settings = new Settings({
|
||||
@ -138,7 +137,7 @@ export class File {
|
||||
|
||||
if (options.footnotes) {
|
||||
for (const paragraph of options.footnotes) {
|
||||
this.footNotes.createFootNote(paragraph);
|
||||
this.footnotesWrapper.View.createFootNote(paragraph);
|
||||
}
|
||||
}
|
||||
|
||||
@ -305,8 +304,8 @@ export class File {
|
||||
return this.appProperties;
|
||||
}
|
||||
|
||||
public get FootNotes(): FootNotes {
|
||||
return this.footNotes;
|
||||
public get FootNotes(): FootnotesWrapper {
|
||||
return this.footnotesWrapper;
|
||||
}
|
||||
|
||||
public get Settings(): Settings {
|
||||
|
Reference in New Issue
Block a user