Files
docx-js/ts/docx/run/run-components/drawing/index.ts
2017-03-13 00:02:56 +00:00

14 lines
297 B
TypeScript

import { XmlComponent } from "../../../xml-components";
import { Inline } from "./inline";
export class Drawing extends XmlComponent {
constructor(imagePath: string) {
super("w:drawing");
// store in the document, then get Id
this.root.push(new Inline(5));
}
}