Returns the node nearest to the specified point.
Namespace: MindFusion.Diagramming
File: Diagram.js
JavaScript Copy Code |
---|
function getNearestNode (point, maxDistance, ignored) |
Point. A point in the diagram.
Number. The maximum distance from the point at which to look for nodes.
DiagramNode. A node that should be ignored.
The DiagramNode nearest to the specified point.
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.
MindFusion.Diagramming for JavaScript Programmer's Guide | © 2024 MindFusion |