Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagramming for JavaScript, V4.5.1 (Read 47 times)
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 709
Joined: Apr 6th, 2003
Diagramming for JavaScript, V4.5.1
Jan 9th, 2025 at 7:23am
Print Post  
We have released version 4.5.1 of MindFusion JavaScript Diagram library. It contains the following new features and improvements:

Node constraints
The DiagramNode.constraints property lets you apply size and direction constraints to a node. It returns a NodeConstraints object with following properties:
  • keepRatio: a bool value indicating whether the initial width/height ratio of a node should be preserved.
  • maxHeight: the maximum node height allowed.
  • maxWidth: the maximum node width allowed.
  • minHeight: the minimum node height allowed.
  • minWidth: the minimum node width allowed.
  • moveDirection: a member of the DirectionConstraint enumeration. Set it to Horizontal or Vertical to let users move a node only in specified direction.

These constraints are considered when a user modifies the node interactively. They are ignored if node placement is changed programmatically by using API methods and properties.

Miscellaneous
  • TabbedDiagramView now keeps separate zoom level and scroll position per tab.
  • TabbedDiagramView.find method returns view instance by DOM id.
  • shapeLibraryLoaded event raised when library XML file is loaded and its shape definitions are available for use.
  • fixed undo / redo of text in-place edit operations.
  • fix for item hover events of DiagramDocument not raised by TabbedDiagramView.


Distribution for the latest version can be downloaded here, or from the clients area on our site:
https://mindfusion.eu/JsDiagram.zip

Updated scripts are also available as @mindfusion/diagramming NPM package.

Enjoy!
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint