Files
docx-js/src/file/drawing/inline/inline.ts

14 lines
397 B
TypeScript
Raw Normal View History

2018-01-11 01:47:09 +00:00
import { XmlComponent } from "file/xml-components";
import { Graphic } from "./graphic";
import { GraphicFrameProperties } from "./graphic-frame/graphic-frame-properties";
export class Inline extends XmlComponent {
constructor(referenceId: number) {
super("wp:inline");
this.root.push(new GraphicFrameProperties());
this.root.push(new Graphic(referenceId));
}
}