2022-06-26 23:26:42 +01:00
|
|
|
import { XmlComponent } from "@file/xml-components";
|
2018-10-26 01:04:07 +01:00
|
|
|
|
2018-01-16 01:31:47 +00:00
|
|
|
import { ExtentAttributes } from "./extent-attributes";
|
|
|
|
|
|
|
|
export class Extent extends XmlComponent {
|
2018-08-07 01:38:15 +01:00
|
|
|
private readonly attributes: ExtentAttributes;
|
2018-03-24 19:06:10 +00:00
|
|
|
|
2022-08-31 07:52:27 +01:00
|
|
|
public constructor(x: number, y: number) {
|
2018-01-16 01:31:47 +00:00
|
|
|
super("wp:extent");
|
|
|
|
|
2018-03-24 19:06:10 +00:00
|
|
|
this.attributes = new ExtentAttributes({
|
|
|
|
cx: x,
|
|
|
|
cy: y,
|
|
|
|
});
|
|
|
|
|
|
|
|
this.root.push(this.attributes);
|
|
|
|
}
|
2018-01-16 01:31:47 +00:00
|
|
|
}
|