Search
ContainerNode.hitTest Method
See Also
 





Returns the diagram item that contains the specified point.

Namespace: MindFusion.Diagramming
File: ContainerNode.js

 Syntax

JavaScript  Copy Code

function hitTest (point, [threshold, onlyNodes, onlyInteractive])

 Parameters

point

Point. A Point value specifying the logical coordinates of a diagram point.

threshold
Optional.

Number. Specifies the size of the area around the item outlines where the point is still considered inside the item.

onlyNodes

Boolean. true to exclude child links from the search.

onlyInteractive

Boolean. true to exclude locked items from the search.

 Return Value

DiagramItem. The item that contains the specified point.

 See Also