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

@ -13,11 +13,11 @@ class GraphicAttributes extends XmlAttributeComponent<IGraphicProperties> {
export class Graphic extends XmlComponent {
constructor(referenceId: number) {
constructor(referenceId: number, x: number, y: number) {
super("a:graphic");
this.root.push(new GraphicAttributes({
a: "http://schemas.openxmlformats.org/drawingml/2006/main",
}));
this.root.push(new GraphicData(referenceId));
this.root.push(new GraphicData(referenceId, x, y));
}
}