Skip to main content

IHitTestManager

Interfaces

IHitTestManager

Methods

findItemByHitTest()
findItemByHitTest(point, coordinateSystem?): Item;

Returns item from current container that contains specified point. If more than one item matches the point, then this method returns first selected item, if any. If there is no selected item, this method returns first item by the z order.

Parameters
ParameterTypeDescription
pointPointFthe point.
coordinateSystem?CoordinateSystemthe coordinate system in which point is defined. If value of the coordinateSystem is not provided then page is used as coordinateSystem.
Returns

Item

Item.

getItemHandlersByHitTest()
getItemHandlersByHitTest(point, coordinateSystem?): BaseRectangleItemHandler[];

Returns all item handlers from current container that can be selected and that contain specified point.

Parameters
ParameterTypeDescription
pointPointFthe point.
coordinateSystem?CoordinateSystemthe coordinate system in which point is defined. If value of the coordinateSystem is not provided then page is used as coordinateSystem.
Returns

BaseRectangleItemHandler[]

array of ItemHandlers.

hitTestSelection()
hitTestSelection(
rect,
workspacePoint,
onlyWidthResizeEnabled?,
tolerance?): IHitTestResult;
Parameters
ParameterType
rectRotatedRectangleF
workspacePointPointF
onlyWidthResizeEnabled?boolean
tolerance?number
Returns

IHitTestResult

Was this page helpful?