Returns a point of the alignment grid nearest to the one passed as an argument.
Namespace: MindFusion.Diagramming
File: Diagram.js
JavaScript Copy Code |
---|
function alignPointToGrid (point) |
Point. A point specified in diagram coordinates.
Point. A point from the alignment grid.
The control aligns items to the alignment grid only during user interaction. This method lets you align coordinates of programmatically created or modified items.
JavaScript Pack Programmer's Guide | © 2024 MindFusion |