Repository navigation
Restore Show Animation in instance details #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,9 +9,9 @@ script(src="/javascripts/jquery.isloading.min.js") | |
| script(src="/javascripts/workflow.js") | ||
| script(src="/javascripts/processEditor.js") | ||
| script(src="/javascripts/jsonHelper.js") | ||
| //- GSAP (instance-viewer "Show Animation"); load before SVGHelper. Decorations work without it. | ||
| script(src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js") | ||
| script(src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/MotionPathPlugin.min.js") | ||
| //- Load animation dependencies once before SVGHelper. | ||
| script(src="/vendor/gsap/gsap.min.js") | ||
| script(src="/vendor/gsap/MotionPathPlugin.min.js") | ||
| script(src="/javascripts/SVGHelper.js") | ||
|
Comment on lines
+13
to
15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
On deployments that replace an existing release, returning browsers can continue using the old Useful? React with 👍 / 👎. |
||
| link(rel="stylesheet" type="text/css" href="/stylesheets/bootstrap.min.css") | ||
| link(rel="stylesheet" type="text/css" href="/stylesheets/bootstrap-theme.min.css") | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When Show Animation is clicked again before the previous effects have settled,
tl.kill()only cancels animations and callbacks owned by this timeline. The callbacks inanimateFlow,activateTask, andendAnimationlaunch independentgsap.totweens, including a 10-second fill tween, and killing a partially progressed first-element tween does not restore its original transform. Those effects can therefore continue modifying the diagram during the new replay or leave the first node enlarged; track these tweens in the timeline/a GSAP context and revert or kill them before resetting the state.Useful? React with 👍 / 👎.