UNPKG

trassel

Version:
20 lines (19 loc) 1.01 kB
/** * Moves a node from its current position to a provided destination * Note that this component uses fx and fy, which could create conflicts with things like pinning mechanisms * targetX and targetY coordinates can be set on specific nodes, or component global values can be provided. * @param {number=} xDestination - Destination X coordinate * @param {number=} yDestination - Destination Y coordinate * @param {number=} strength - The strength of the pull * @param {number=} removeForceOnDestination - If true the component will be removed from the layout when animation is completed */ export default class Animation extends LayoutComponent { constructor(xDestination?: number, yDestination?: number, strength?: number, removeForceOnDestination?: boolean); xDestination: number; yDestination: number; strength: number; removeForceOnDestination: boolean; initialize(...args: any[]): void; execute(alpha: any): void; } import LayoutComponent from "./layoutcomponent";