Back to Website
Show / Hide Table of Contents

Class HitTestManager

Package: @aurigma/design-atoms

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
Type Name Description
PointF point
CoordinateSystem coordinateSystem
Returns
Type Description
Item

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
Type Description
PointF

getFirstHandlerByHitTest(workspacePoint)

Declaration
getFirstHandlerByHitTest(workspacePoint: PointF): BaseRectangleItemHandler;
Parameters
Type Name Description
PointF workspacePoint
Returns
Type Description
BaseRectangleItemHandler

getItemHandlersByHitTest(point, coordinateSystem)

Declaration
getItemHandlersByHitTest(point: PointF, coordinateSystem?: CoordinateSystem): BaseRectangleItemHandler[];
Parameters
Type Name Description
PointF point
CoordinateSystem coordinateSystem
Returns
Type Description
BaseRectangleItemHandler[]

hitTestSelection(rect, workspacePoint, onlyWidthResizeEnabled, tolerance)

Declaration
hitTestSelection(rect: RotatedRectangleF, workspacePoint: PointF, onlyWidthResizeEnabled?: boolean, tolerance?: any): IHitTestResult;
Parameters
Type Name Description
RotatedRectangleF rect
PointF workspacePoint
boolean onlyWidthResizeEnabled
any tolerance
Returns
Type Description
IHitTestResult
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback