@daign/2d-graphics
Version:
Two dimensional graphics library that implements the daign-2d-pipeline.
21 lines (20 loc) • 706 B
TypeScript
import { Observable } from '@daign/observable';
import { Vector2 } from '@daign/math';
import { ControlObject } from '../control-elements';
/**
* Class that manages the current selected control object and control point.
*/
export declare class SelectionManager extends Observable {
activeObject: ControlObject | null;
activePoint: Vector2 | null;
/**
* Constructor.
*/
constructor();
/**
* Set the current selection.
* @param activeObject - The currently active control object or null.
* @param activePoint - The currently active control point vector or null.
*/
setSelection(activeObject: ControlObject | null, activePoint: Vector2 | null): void;
}