You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There currently exists no way to manipulate the transform of the tree after it has been rendered. When the SVG is given full page width/height, the tree is rendered to the top left of the screen.
For instance, to center the tree, marginLeft and marginTop can be used on initial creation, but unless you know ahead of time how big your tree is it is difficult to calculate the centerpoint. These functions also have no effect once the tree is already rendered, like when calling refresh() and providing a new settings. I would expect the new margin values to be respected.
Proposed Solution
Expose various functions to smoothly scroll to common key views:
Smoothly translate/zoom the tree so that the entire tree is in view and maximizes available screen/SVG dimensions
Smoothly translate to a specified Node at a configurable zoom
The text was updated successfully, but these errors were encountered:
Issue
There currently exists no way to manipulate the transform of the tree after it has been rendered. When the SVG is given full page width/height, the tree is rendered to the top left of the screen.
For instance, to center the tree,
marginLeft
andmarginTop
can be used on initial creation, but unless you know ahead of time how big your tree is it is difficult to calculate the centerpoint. These functions also have no effect once the tree is already rendered, like when callingrefresh()
and providing a new settings. I would expect the new margin values to be respected.Proposed Solution
Expose various functions to smoothly scroll to common key views:
The text was updated successfully, but these errors were encountered: