Search
Diagram.alignPointToGrid Method
See Also
 





Returns a point of the alignment grid nearest to the one passed as an argument.

Namespace: MindFusion.Diagramming
File: Diagram.js

 Syntax

JavaScript  Copy Code

function alignPointToGrid (point)

 Parameters

point

Point. A point specified in diagram coordinates.

 Return Value

Point. A point from the alignment grid.

 Remarks

The control aligns items to the alignment grid only during user interaction. This method lets you align coordinates of programmatically created or modified items.

 See Also