import type { AbsolutePoint, Point } from "@hylimo/diagram-common"; import type { LinearAnimatable } from "../../features/animation/model.js"; import { SCanvasPoint } from "./sCanvasPoint.js"; /** * Animated fields for SAbsolutePoint */ const absolutePointAnimatedFields = new Set(["x", "y"]); /** * Model for AbsolutePoint */ export class SAbsolutePoint extends SCanvasPoint implements AbsolutePoint, Point, LinearAnimatable { override type!: typeof AbsolutePoint.TYPE; readonly animatedFields = absolutePointAnimatedFields; /** * The absolute x coordinate of the element */ x!: number; /** * The absolute y coordinate of the element */ y!: number; override get dependencies(): string[] { return []; } }