@daign/2d-graphics
Version:
Two dimensional graphics library that implements the daign-2d-pipeline.
23 lines (22 loc) • 858 B
TypeScript
import { Vector2 } from '@daign/math';
import { ControlObject } from '../control-elements';
import { IControlModifier } from './iControlModifier';
/**
* Follow along modifier.
* The movement of the specified point is applied to all following points also.
*/
export declare class FollowAlongModifier implements IControlModifier {
enabled: boolean;
/**
* Constructor.
*/
constructor();
/**
* Modify the position change that has been requested for a control object.
* @param updatedPoints - The array of updated points.
* @param pointIndex - The index of the point that initiated the change.
* @param controlObject - The corresponding control object.
* @returns The modified array of points.
*/
modifyPoints(updatedPoints: Vector2[], pointIndex: number, controlObject: ControlObject): Vector2[];
}