Class HitTestManager
Constructors
(constructor)(_canvas)
Constructs a new instance of the HitTestManager class
Declaration
constructor(_canvas: Canvas);
Parameters
| Type |
Name |
Description |
| Canvas |
_canvas |
|
Methods
findItemByHitTest(point, coordinateSystem)
Declaration
findItemByHitTest(point: PointF, coordinateSystem?: CoordinateSystem): Item;
Parameters
Returns
getDeltaFromSelectionCenterToRotateCenter(rotationGripSize, selectionHeight, selectionWidth, contentAngle, mul)
Get delta from selection center to rotate center. Without angle!
Declaration
static getDeltaFromSelectionCenterToRotateCenter(rotationGripSize: number, selectionHeight: number, selectionWidth: number, contentAngle: number, mul?: number): PointF;
Parameters
| Type |
Name |
Description |
| number |
rotationGripSize |
|
| number |
selectionHeight |
|
| number |
selectionWidth |
|
| number |
contentAngle |
|
| number |
mul |
|
Returns
getFirstHandlerByHitTest(workspacePoint)
Declaration
getFirstHandlerByHitTest(workspacePoint: PointF): BaseRectangleItemHandler;
Parameters
| Type |
Name |
Description |
| PointF |
workspacePoint |
|
Returns
getItemHandlersByHitTest(point, coordinateSystem)
Declaration
getItemHandlersByHitTest(point: PointF, coordinateSystem?: CoordinateSystem): BaseRectangleItemHandler[];
Parameters
Returns
hitTestSelection(rect, workspacePoint, onlyWidthResizeEnabled, tolerance)
Declaration
hitTestSelection(rect: RotatedRectangleF, workspacePoint: PointF, onlyWidthResizeEnabled?: boolean, tolerance?: any): IHitTestResult;
Parameters
Returns