Files
docx-js/src/file/drawing/inline/extent/extent.ts

15 lines
327 B
TypeScript
Raw Normal View History

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