Repository navigation
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #8200
Bug
With
ordering: 'traces first', the axis step runs with a duration of 0 after the traces. Its frame function computesMath.min(1, (t2 - t1) / transitionOpts.duration). When the first frame runs in the same millisecond the step was requested, that is0 / 0: the frame is drawn fromNaN, the axis range falls back to its default, and a second frame is needed to finish.Fix
With a duration of 0 the progress is 1, and the step completes as soon as the progress reaches 1.
The new test in
transition_test.jsfreezes the clock so the first frame runs in the same millisecond. It fails onmain.