Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Version 2.2 beta (Read 244 times)
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3534
Joined: Oct 19th, 2005
Version 2.2 beta
Oct 5th, 2026 at 2:47pm
Print Post  
Version 2.2 of MindFusion.Diagramming for Blazor contains the following new features and improvements -

Auto-routing improvements
  • Enable the MinimizeCrossings property of PatternRouter to make it select routes with fewer crossings. Note that this adds an additional loop to the algorithm, which may affect performance for large diagrams.
  • New EvaluateFarPoints property of RoutingOptions, considered by PatternRouter and GridRouter, selects the best route from the possible start/end point combinations of the link's incident nodes. Note that this adds an additional loop to the algorithms, which may affect performance for large diagrams.
  • Set the MinLinkSpacing property of CompositeRouter to specify the padding between nearby links.
  • This screenshot demonstrates the effects of EvaluateFarPoints and MinimizeCrossings properties:



Custom lasso tools
If you set the Behavior property of DiagramView to DrawLasso, the control lets users draw selection lasso without changing actual Selection. You could use that in conjunction with InitializeLasso and LassoDrawn events to implement custom tools or selection logic, such as:
  • Opening a custom context menu or UI panel styled for bulk operations.
  • Creating a visual screenshot / export of only the selected region.
  • Implementing custom selection logic or filters (e.g. select nodes of a specific type, or select only links).
  • Bookmarking the selected area (adding it to Bookmarks).

Serialization improvements
  • Json element added to SaveToStringFormat enumeration, and can be used with SaveToString and LoadFromString methods.
  • For naming consistency with XML serialization methods, JSON methods (SaveToJsonFile, SaveToJsonObject, etc) have been renamed to SaveToJson and LoadFromJson, along with corresponding async versions.
  • JSON serialization methods extended to provide full set of Stream overloads.
  • XML serialization methods extended to provide full set of Stream overloads (previously missing altogether from DiagramDocument and missing async versions in Diagram).
  • AutoDeleteItems now saved in JSON format.
  • LaneGrid cell border styling now saved in JSON format.
  • LaneGrid header fonts now saved in JSON format.
  • The order of OutgoingLinks and IncomingLinks is now preserved in JSON format.

API changes
  • Attention: LoadFromJson(string) parameter now specifies file name. Call LoadFromString to load from JSON data string instead. Replace SaveToJson -> String calls with SaveToString(SaveToStringFormat.Json);
  • SaveToJsonFile and SaveToJsonObject replaced by SaveToJson overloads.
  • LoadFromJsonFile and LoadFromJsonObject replaced by LoadFromJson overloads.
  • ZoomBehavior class renamed to LassoBehavior (it now implements both DrawLasso and Zoom behaviors).

If anyone is interested in trying the beta version, please install this (preview mode) nuget package -
https://www.nuget.org/packages/MindFusion.Diagramming.Blazor/2.2.0-beta1

Any comments, questions and general feedback are welcome.
« Last Edit: Oct 6th, 2026 at 12:02pm by Slavcho »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint