2023-12-27 20:20:45 +00:00
|
|
|
import { BuilderElement, XmlComponent } from "@file/xml-components";
|
2018-01-16 01:31:47 +00:00
|
|
|
|
2023-12-27 20:20:45 +00:00
|
|
|
export type EffectExtentAttributes = {
|
|
|
|
readonly top: number;
|
|
|
|
readonly right: number;
|
|
|
|
readonly bottom: number;
|
|
|
|
readonly left: number;
|
|
|
|
};
|
2018-01-16 01:31:47 +00:00
|
|
|
|
2023-12-27 20:20:45 +00:00
|
|
|
export const createEffectExtent = ({ top, right, bottom, left }: EffectExtentAttributes): XmlComponent =>
|
|
|
|
new BuilderElement<EffectExtentAttributes>({
|
|
|
|
name: "wp:effectExtent",
|
|
|
|
attributes: {
|
|
|
|
top: {
|
|
|
|
key: "t",
|
|
|
|
value: top,
|
|
|
|
},
|
|
|
|
right: {
|
|
|
|
key: "r",
|
|
|
|
value: right,
|
|
|
|
},
|
|
|
|
bottom: {
|
|
|
|
key: "b",
|
|
|
|
value: bottom,
|
|
|
|
},
|
|
|
|
left: {
|
|
|
|
key: "l",
|
|
|
|
value: left,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|