MindFusion.Diagramming for JavaScript 4.5

Released: Dec 1, 2024

4.5 中的更新

特性

  • Shape design enhancements
    • The anchorPattern shape property lets you associate anchor points with shape definitions. That pattern is shared between all nodes of same shape, but can be overridden by setting a node's own anchorPattern.
    • Individual segments of a shape's geometry can be styled independently by setting stroke and fill attributes.
    • MindFusion have replaced the Microsoft Windows-only shape designer tool with an online editor.
    • The shape editor is implemented as a reusable ShapeDesigner control, which can be integrated into your own applications.
  • New event system
    • Event emitter objects are now exposed as properties of Diagram and DiagramView, and you can register handlers by calling their addEventListener method.
    • Legacy event handling syntax will remain supported for compatibility with old code.
  • Collapse and expand table rows
    • Table rows can be assigned to distinct sections of a table. Each section can be collapsed or expanded, hiding or showing all rows in the section except the header.
  • Miscellaneous
    • dividerStroke properties added to ContainerNode, TableNode and TreeViewNode classes. These let you customize the appearance of the divider line drawn between a node's caption bar and content area.
    • Removed an eval call used for creating custom components from CompositeNode Json templates, allowing for stricter Content Security Policy rules. Now custom components must be registered by calling registerComponent method to allow instantiating them from a template.
    • linkRouted event raised when links are modified by automatic routing.
  • API changes
    • To allow for stricter Content Security Policy rules, the library no longer loads CSS scripts automatically. If you use components from the Diagramming.Controls package, you must now explicitly link the common-ui.css file from distribution's themes folder.