* build(deps-dev): bump eslint from 8.57.1 to 9.13.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.57.1 to 9.13.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.57.1...v9.13.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Upgrade EsLint * Fix all new lint errors --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dolan Miu <dolan_miu@hotmail.com>
28 lines
804 B
TypeScript
28 lines
804 B
TypeScript
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<IAnchorAttributes> {
|
|
protected readonly xmlKeys = {
|
|
distT: "distT",
|
|
distB: "distB",
|
|
distL: "distL",
|
|
distR: "distR",
|
|
allowOverlap: "allowOverlap",
|
|
behindDoc: "behindDoc",
|
|
layoutInCell: "layoutInCell",
|
|
locked: "locked",
|
|
relativeHeight: "relativeHeight",
|
|
simplePos: "simplePos",
|
|
};
|
|
}
|