forked from glaserL/viasp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In preparation for the zoom behavior, the animations are improved. The AnimationUpdater is responsible for keeping the connections between nodes responsive, i. e. the Edges and Arrows are updated when the nodes change. Nodes change due to expanding their height, expanding recursion or changing the width of the window. During those changes, the animation updater changes state, so that the Edges and Arrows rerender. Height: Whenever the nodes change height, the animationUpdater is started. It updates the bounding rect of the nodes in the Aminmation Updater's state variable until the stopAnimationUpdater is called. Width: a ResizeObserver is added, to handle changes to nodes, when they don't change height, but width. Resolves: #61 Contributes: #71
- Loading branch information
1 parent
70cc086
commit 7c97bcd
Showing
7 changed files
with
161 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.