Diagramming for JavaScript v4.5.1
Released: Jan 9, 2025
Diagramming for JavaScript v4.5.1 での更新項目
機能
- 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.
不具合の修正
- 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.