Files
docx-js/src/file/drawing/inline/graphic/graphic-data/graphic-data.ts
2018-01-22 20:42:57 +00:00

17 lines
493 B
TypeScript

import { XmlComponent } from "file/xml-components";
import { GraphicDataAttributes } from "./graphic-data-attribute";
import { Pic } from "./pic";
export class GraphicData extends XmlComponent {
constructor(referenceId: number, x: number, y: number) {
super("a:graphicData");
this.root.push(new GraphicDataAttributes({
uri: "http://schemas.openxmlformats.org/drawingml/2006/picture",
}));
this.root.push(new Pic(referenceId, x, y));
}
}