Version 1.4.3

<table =“tableborder”="" cellpadding=“3” cellspacing=“1” align=“center”><tr =“msgablerow”="" style=“height:200px;min-height:200px;”><td =“msglinedevider”="" valign=“top”>

Version 1.4.3 is now available.

1.4.3 includes a Search box at samples/index.html.

Changes since 1.4.2:

  • Animations no longer continuously update the Diagram.documentBounds.
  • Fixed window resizing accidentally invalidating (viewport-size-dependent) layouts on fixed-size diagrams.
  • Diagram.makeSVG now includes a clipping region to fix IE's SVG behavior, which does not clip to its SVG viewport by default.
  • New option for Diagram.makeImage and Diagram.makeSVG: document, which accepts an optional HTML Document in lieu of window.document. This can be useful when opening generated SVG or Images in a new window.
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.