Repository navigation
Conversation
The AST axes were rebuilt by a debounced timer after each view change and then repainted, so every zoom, pan or resize rendered the whole figure twice and briefly showed the previous view's axes in the new view. A single artist on the axes now draws the AST artists and rebuilds them first whenever the view limits, axes size or dpi have changed, so one render shows the new view with axes laid out for it. The grf measures text with a renderer of its own, since some versions of it measure a string by drawing it, and the rebuild does not mark the figure stale, which would make interactive backends draw it again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The AST artists are no longer among the axes' lines and texts, so erase can remove all of those without checking for them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rebuilding the AST axes in every frame of a drag-pan makes each frame slower than the render alone and lets the kernel fall behind the mouse. While a button is held the existing axes now move with the view, and releasing the button (or leaving the figure, since a release outside it sends no event) requests the draw that rebuilds them. The navigation toolbar requests a draw at the end of a drag too, and interactive backends combine the two, so the rebuild costs no extra render. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
timj
force-pushed
the
tickets/DM-57317
branch
from
December 1, 2026 23:30
2a4a1b2 to
549f869
Compare
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.
No description provided.