import type { CommandExecutionContext, SModelElementImpl, SModelRootImpl } from "sprotty"; import { CancelableAnimation } from "./cancelableAnimation.js"; import type { LinearAnimatable } from "./model.js"; /** * Linear interpolation animation */ export declare class LinearInterpolationAnimation extends CancelableAnimation { readonly elementAnimations: ElmentLinearInterpolationAnimation[]; /** * Creates a new LinearInterpolationAnimation * * @param newModel the model which is returned, all elementAnimations must be part of this model * @param elementAnimations element animations * @param context required context */ constructor(newModel: SModelRootImpl, elementAnimations: ElmentLinearInterpolationAnimation[], context: CommandExecutionContext); tweenInternal(t: number, _context: CommandExecutionContext): SModelRootImpl; } /** * Defines linear interpolatin animations for an element */ export interface ElmentLinearInterpolationAnimation { /** * The element to animate */ element: SModelElementImpl & LinearAnimatable; /** * Animations, map of field name to [from, to] pair */ interpolations: Map; } //# sourceMappingURL=linearInterpolationAnimation.d.ts.map