Remove id from media

This commit is contained in:
Dolan
2018-12-24 16:50:53 +00:00
parent d021a3995e
commit 8db52212ab
16 changed files with 181 additions and 120 deletions

View File

@ -13,7 +13,6 @@ import { IFileProperties } from "./file-properties";
import { FooterWrapper, IDocumentFooter } from "./footer-wrapper";
import { FootNotes } from "./footnotes";
import { HeaderWrapper, IDocumentHeader } from "./header-wrapper";
import { IOnCompile } from "./life-cycles";
import { Image, Media } from "./media";
import { Numbering } from "./numbering";
import { Bookmark, Hyperlink, Paragraph } from "./paragraph";
@ -26,7 +25,7 @@ import { DefaultStylesFactory } from "./styles/factory";
import { Table } from "./table";
import { TableOfContents } from "./table-of-contents";
export class File implements IOnCompile {
export class File {
// tslint:disable-next-line:readonly-keyword
private currentRelationshipId: number = 1;
@ -223,11 +222,6 @@ export class File implements IOnCompile {
}
}
public onCompile(): void {
// this.media.Array.forEach((media) => {
// });
}
private addHeaderToDocument(header: HeaderWrapper, type: HeaderReferenceType = HeaderReferenceType.DEFAULT): void {
this.headers.push({ header, type });
this.docRelationships.createRelationship(