Search
Diagram.getNearestNode Method
See Also
 






Returns the node nearest to the specified point.

Namespace: MindFusion.Diagramming
File: Diagram.js

 Syntax

JavaScript  Copy Code

function getNearestNode (point, maxDistance, ignored)

 Parameters

point

Point. A point in the diagram.

maxDistance

Number. The maximum distance from the point at which to look for nodes.

ignored

DiagramNode. A node that should be ignored.

 Return Value

The DiagramNode nearest to the specified point.

 Remarks

The last argument is useful when calling this method from nodeCreated and nodeModified handlers and the affected node should not be included in the search.

 See Also