We are starting beta tests of JsDiagram V1.3. The new features are:
Attaching and grouping itemsJsDiagram allows attaching a node to another node, establishing a subordinate - master relationship between them. The easiest way to attach nodes is to call the attachTo method. When a master node is moved, all of its subordinates follow it, so that the initial distance between them stays constant. This happens both when a user moves the master node around, and when the node's position is changed using a method or a property.
Collapse and expand tree branchesIf a diagram represents a tree structure, the tree branch starting from a node can be collapsed or expanded again in order to hide or display hierarchy details. To enable this, call the setExpandable method. There is a [±] button displayed beside an expandable node to allow users to collapse or expand the tree branch starting there. By default, pressing that button automatically toggles the Expanded property of the node and raises the TreeExpanded or TreeCollapsed events.
Miscellaneous~ The Visible property specifies whether an item should be shown on screen.
~ Validation events added: nodeCreating, linkCreating, nodeDeleting, linkDeleting, nodeModifying and linkModifying.
~ The ScrollX and ScrollY properties and scrollTo method lets you set the diagram's scroll position.
~ getViewport returns the currently visible part of the diagram.
~ setZoomFactorPivot sets the zoom level in such way that the pivot point's screen position does not change.
~ zoomToRect zooms and scrolls the view to fit the specified document rectangle in the Diagram's visible area.
~ zoomToFit zooms the view to fit the document contents into the current view size.
~ getContentBounds returns the smallest rectangle that bounds all diagram objects.
~ keepGroupLayout indicates whether to treat each group of attached nodes as a single vertex in the arranged graph.
If anyone is interested in trying the beta, please download this archive, which includes updated script and help files:
https://mindfusion.eu/_beta/JsDiagram.1.3.zip