Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
While disabling the plot animation during export is necessary to prevent conflicts with the manual frame-stepping logic, the original state of
animateshould be captured and restored once the export process completes.Currently, if a user has animation enabled in the UI, it will remain disabled after the export finishes. This should be handled similarly to how
quality(line 252/487) andDPR(line 253/488) are managed: capture the original value at the start of theuseEffectand restore it in both theAnimate().then()block and the static exportelseblock.