A FreeFormNode collects all points from users' mouse or touch input and displays them as node's outline.
Namespace: MindFusion.Diagramming
Package: FreeFormNode.js
JavaScript Copy Code |
---|
// class |
To let users draw free-form nodes interactively, set behavior to DrawFreeForms or LinkFreeForms. Use the points property of FreeFormNode to get or set outline points programmatically. If the closed property is set, the node is drawn as a closed shape and its interior filled, or otherwise the node is drawn as a polyline. If the distance between first and last points drawn by user is shorter than autoCloseDistance, the node's closed property is automatically set to true. autoCloseDistance default value is Number.MAX_VALUE, so free-form nodes are always closed.
MindFusion.Diagramming.DiagramItem
MindFusion.Diagramming.DiagramNode
MindFusion.Diagramming.FreeFormNode