Skip to content

Restore the previous view after fitting the graph - #218

Merged
vogelsgesang merged 2 commits into
mainfrom
animated-fit-view-restore
Oct 9, 2026
Merged

vogelsgesang merged 2 commits into
mainfrom
animated-fit-view-restore

Conversation

@vogelsgesang

Copy link
Copy Markdown
Collaborator

The fit-view control now remembers the viewport it replaced. While the fitted viewport remains unchanged, the control offers to restore the previous view on its next click. Any intervening viewport movement discards that stale restore point.

Animate both fitting and restoring according to the configured graph animation speed, including the browser's reduced-motion preference. Change the control's label and tooltip to make the restore action discoverable.

The fit-view control now remembers the viewport it replaced. While the fitted viewport remains unchanged, the control offers to restore the previous view on its next click. Any intervening viewport movement discards that stale restore point.

Animate both fitting and restoring according to the configured graph animation speed, including the browser's reduced-motion preference. Change the control's label and tooltip to make the restore action discoverable.
@vogelsgesang
vogelsgesang merged commit dee1fa8 into main Oct 9, 2026
5 checks passed
@vogelsgesang
vogelsgesang deleted the animated-fit-view-restore branch October 9, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant