Got docx not crashing when adding image

This commit is contained in:
Dolan
2018-01-16 01:31:47 +00:00
parent f7c2072cff
commit 7c31b72f99
8 changed files with 101 additions and 4 deletions

View File

@ -1,4 +1,8 @@
// http://officeopenxml.com/drwPicInline.php
import { XmlComponent } from "file/xml-components";
import { DocProperties } from "./doc-properties/doc-properties";
import { EffectExtent } from "./effect-extent/effect-extent";
import { Extent } from "./extent/extent";
import { Graphic } from "./graphic";
import { GraphicFrameProperties } from "./graphic-frame/graphic-frame-properties";
import { InlineAttributes } from "./inline-attributes";
@ -15,6 +19,9 @@ export class Inline extends XmlComponent {
distR: 0,
}));
this.root.push(new Extent());
this.root.push(new EffectExtent());
this.root.push(new DocProperties());
this.root.push(new GraphicFrameProperties());
this.root.push(new Graphic(referenceId));
}