Add image dimensions

This commit is contained in:
Dolan
2018-01-22 20:42:57 +00:00
parent d3bc784248
commit ef05024f2f
12 changed files with 58 additions and 21 deletions

View File

@ -4,13 +4,13 @@ import { Pic } from "./pic";
export class GraphicData extends XmlComponent {
constructor(referenceId: number) {
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));
this.root.push(new Pic(referenceId, x, y));
}
}