Adds a feature to focus on a group after it has been expanded or collapsed.
On expand the group will be shown in the view with the graph set to fit around the group so that the entire expansion can be viewed or be zoomed in on to emphasize the group.
On collapse, the view may be zoomed out so as not to show extra white space due to the collapsing of the group and the group will be centered in the view.
Note that a new method centerInView was added to the Graph interface and an optional parameter node to the fit method on the Graph interface. Any application that is current implementing these interfaces without extending the base implementation will need to adjust accordingly.
What
Closes #206
Description
Adds a feature to
focus
on a group after it has been expanded or collapsed.On expand the group will be shown in the view with the graph set to fit around the group so that the entire expansion can be viewed or be zoomed in on to emphasize the group.
On collapse, the view may be zoomed out so as not to show extra white space due to the collapsing of the group and the group will be centered in the view.
Note that a new method
centerInView
was added to theGraph
interface and an optional parameternode
to thefit
method on theGraph
interface. Any application that is current implementing these interfaces without extending the base implementation will need to adjust accordingly.Type of change