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
| Parameter | Type | Description |
|---|---|---|
point | PointF | the point. |
coordinateSystem? | CoordinateSystem | the 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
| Parameter | Type | Description |
|---|---|---|
point | PointF | the point. |
coordinateSystem? | CoordinateSystem | the coordinate system in which point is defined. If value of the coordinateSystem is not provided then page is used as coordinateSystem. |
Returns
array of ItemHandlers.
hitTestSelection()
hitTestSelection(
rect,
workspacePoint,
onlyWidthResizeEnabled?,
tolerance?): IHitTestResult;
Parameters
| Parameter | Type |
|---|---|
rect | RotatedRectangleF |
workspacePoint | PointF |
onlyWidthResizeEnabled? | boolean |
tolerance? | number |