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

@ -6,7 +6,7 @@ import { PicAttributes } from "./pic-attributes";
import { ShapeProperties } from "./shape-properties/shape-properties";
export class Pic extends XmlComponent {
constructor(referenceId: number) {
constructor(referenceId: number, x: number, y: number) {
super("pic:pic");
this.root.push(new PicAttributes({
@ -14,6 +14,6 @@ export class Pic extends XmlComponent {
}));
this.root.push(new NonVisualPicProperties());
this.root.push(new BlipFill(referenceId));
this.root.push(new ShapeProperties());
this.root.push(new ShapeProperties(x, y));
}
}