import type { Path, Point, Size } from "@hylimo/diagram-common"; import type { LinearAnimatable } from "../features/animation/model.js"; import { SShape } from "./sShape.js"; /** * Animated fields for SPath */ const pathAnimatedFields = new Set(SShape.defaultAnimatedFields); /** * Path model element */ export class SPath extends SShape implements Path, LinearAnimatable { override type!: typeof Path.TYPE; readonly animatedFields = pathAnimatedFields; /** * Defines the path */ path!: string; /** * Defines the view box of the path * Usually, a transformation is computed to fit the viewbox to the element's bounds */ viewBox!: Point & Size; }