Made index into barrel and made seperate drawing file

This commit is contained in:
Dolan Miu
2017-12-30 20:59:05 +00:00
parent eb71fc20e6
commit 998fe3f370
2 changed files with 17 additions and 16 deletions

View File

@ -0,0 +1,16 @@
import { IData } from "file/media";
import { XmlComponent } from "file/xml-components";
import { Inline } from "./inline";
export class Drawing extends XmlComponent {
constructor(imageData: IData) {
super("w:drawing");
if (imageData === undefined) {
throw new Error("imageData cannot be undefined");
}
this.root.push(new Inline(imageData.referenceId));
}
}

View File

@ -1,16 +1 @@
import { IData } from "file/media";
import { XmlComponent } from "file/xml-components";
import { Inline } from "./inline";
export class Drawing extends XmlComponent {
constructor(imageData: IData) {
super("w:drawing");
if (imageData === undefined) {
throw new Error("imageData cannot be undefined");
}
this.root.push(new Inline(imageData.referenceId));
}
}
export { Drawing } from "./drawing";