@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
19 lines (18 loc) • 761 B
TypeScript
import { HitTestManager } from "./HitTestManager";
import { IHitTestResult } from "./IHitTestResult";
import { PointF } from "@aurigma/design-atoms-model/Math";
import { SelectionHandler } from "./Selection/SelectionHandler";
export declare class SelectionHitTestManager {
private _selectionHandler;
private _hitTestManager;
constructor(_selectionHandler: SelectionHandler, _hitTestManager: HitTestManager);
hitTest(point: PointF): ISelectionHitTestResult;
private _getEdgeResize;
private _getCornerResize;
}
export interface ISelectionHitTestResult extends IHitTestResult {
arbitraryResize?: boolean;
cornerArbitraryResize?: boolean;
proportionalResize?: boolean;
cornerProportionalResize?: boolean;
}