UNPKG

@daign/2d-graphics

Version:

Two dimensional graphics library that implements the daign-2d-pipeline.

23 lines (22 loc) 833 B
import { Vector2 } from '@daign/math'; import { ControlObject } from '../control-elements'; import { IControlModifier } from './iControlModifier'; /** * Orthogonal modifier. * The point has to be orthogonal to the previous point. */ export declare class OrthogonalModifier 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[]; }