Files
docx-js/ts/docx/run/run-components/drawing/index.ts

14 lines
297 B
TypeScript
Raw Normal View History

import { XmlComponent } from "../../../xml-components";
2017-03-13 00:02:56 +00:00
import { Inline } from "./inline";
export class Drawing extends XmlComponent {
2017-03-12 21:30:46 +00:00
constructor(imagePath: string) {
2017-03-11 18:21:31 +00:00
super("w:drawing");
2017-03-13 00:02:56 +00:00
// store in the document, then get Id
this.root.push(new Inline(5));
2017-03-11 18:21:31 +00:00
}
2017-03-12 21:30:46 +00:00
}