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

16 lines
361 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");
2018-01-23 01:33:12 +00:00
this.root.push(
new ExtentAttributes({
cx: x,
cy: y,
}),
);
}
}