We have released version 6.4 of FlowChart.NET. It contains the following new features and improvements:
Free-form nodesA FreeFormNode collects all points from users' mouse or touch input and displays them as node's outline. To let users draw free-form nodes interactively, set DiagramView.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 poly-line. If the distance between first and last points drawn by user is shorter than Diagram.AutoCloseDistance, the node's Closed property is automatically set to true. AutoCloseDistance default value is Float.MaxValue, so free-form nodes are always closed.
Additional drawing modes, convenient for touch input, convert FreeFormNode objects drawn by user to ShapeNode objects with most similar shape. To enable them, set Behavior to DrawFreeShapes or LinkFreeShapes. The shapes against which the user's input is matched are set via diagram's FreeFormTargets property. By default it contains Rectangle, Decision and Ellipse shapes.
LinkLabel edit eventsLinkTextEditing and LinkTextEdited events are now raised also when the user edits a LinkLabel. The Label property of the respective event-arguments class identifies the LinkLabel that is being edited. Label is a null reference if the user is editing link's Text value. You can prevent users from editing Text and let them edit only labels by handling LinkTextEditing like this:
void OnLinkTextEditing(object sender, LinkValidationEventArgs e)
{
e.Cancel = e.Label == null;
}
Fixed bugs~ The distance required to move mouse pointer in order to resize TableNode columns and rows was dependent on MeasureUnit, making it difficult to start resizing when using large units.
~ Text outside of node boundaries was not repainted correctly after loading custom shape library from XML.
~ Missing collapse / expand icon of expandable ControlNodes.
~ TreeViewNode scrollbar arrow buttons did not scroll correctly in some situations.
Installer for the latest version can be downloaded here, or from the
clients area on our site:
https://www.mindfusion.eu/FCNetDemo.zipUpdated assemblies are also available as
MindFusion.Diagramming NuGet package.
Enjoy!