import { XmlAttributeComponent } from "@file/xml-components"; import { IDistance } from "../drawing"; export type IAnchorAttributes = { readonly allowOverlap?: "0" | "1"; readonly behindDoc?: "0" | "1"; readonly layoutInCell?: "0" | "1"; readonly locked?: "0" | "1"; readonly relativeHeight?: number; readonly simplePos?: "0" | "1"; } & IDistance; export class AnchorAttributes extends XmlAttributeComponent { protected readonly xmlKeys = { distT: "distT", distB: "distB", distL: "distL", distR: "distR", allowOverlap: "allowOverlap", behindDoc: "behindDoc", layoutInCell: "layoutInCell", locked: "locked", relativeHeight: "relativeHeight", simplePos: "simplePos", }; }