Version 1.4.9

Version 1.4.9 is now available.

There is now a Search box at samples/index.html, so you can easily search the sample sources.

Changes since 1.4.8:

  • Added Introduction page for Legends and Titles.
  • Fixed LayoutNetwork.addParts to treat links between nodes nested more than one Group deep as if they were connecting the outer Groups.
  • Fixed case where making some changes, setting Diagram.isModified to false, undoing, and then making a new change (thereby discarding some Transaction history), resulted in isModified becoming false when it should have remained true.
  • Fixed the invalidation of Layout when adding or removing a Link even though the link's Part.layoutConditions did not include Part.LayoutAdded or Part.LayoutRemoved.
  • No longer give warnings when a Picture source fails to load.
  • Fixed some sizing issues in IE9 when CSS box-sizing is applied to all HTML elements.
The major new feature in 1.4 is support for animation, mostly layout animation and animation of expanding trees and subgraphs. You can disable this animation by setting Diagram.animationManager.isEnabled = false. It is turned on by default. You can also control its duration, by setting Diagram.animationManager.duration, in milliseconds.

Major new features:

•Added the AnimationManager class and the Diagram.animationManager property.
•Added the Part.isAnimated property (default is true).
•Added Diagram.highlighteds collection and Diagram.highlight, Diagram.highlightCollection, and Diagram.clearHighlighteds methods.
•Added Part.isHighlighted
property, a standard way of declaring that a Part is highlighted. Use
data binding to change the appearance of your parts, e.g.:

new go.Binding(“stroke”, “isHighlighted”, function (h) { return h ? “red” : “black”; }).ofObject()
•Added TextBlock.overflow
property and TextBlock.OverflowEllipsis and TextBlock.OverflowClip enum
values; clipping is the default behavior when there is not enough room
to draw all of the text.
•Added TreeLayout.layerStyle
property; when set to the new enum value TreeLayout.LayerUniform, all
nodes at the same layer level will be aligned. The default value,
TreeLayout.LayerIndividual, produces the original behavior where each
node only takes up as much depth as it needs, causing its children not
necessarily to be aligned with its siblings’ children.
•Added TreeLayout.commitLayers and LayeredDigraphLayout.commitLayers
overridable methods, for getting information about the size and
position of the “bands” (layout layers) cutting across the diagram,
which is useful when positioning labels or putting rectangular areas
behind each band.
•Added Iterator.any, List.any, Set.any, and Map.any
methods that take a predicate function as an argument and return true
if the predicate is true for at least one item in the collection.
•Added
Iterator.all, List.all, Set.all, and Map.all methods that take a
predicate function as an argument and return false if the predicate is
false for at least one item in the collection.
•Added Iterator.each,
List.each, Set.each, and Map.each methods that take a function as an
argument and call it on each item in the collection.

A full list of changes is available in the Change Log.