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

15 lines
327 B
TypeScript

import { XmlComponent } from "file/xml-components";
import { ExtentAttributes } from "./extent-attributes";
export class Extent extends XmlComponent {
constructor(x: number, y: number) {
super("wp:extent");
this.root.push(new ExtentAttributes({
cx: x,
cy: y,
}));
}
}