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