Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Add on_toggle method instead of enable/disable in ToolToggleBase#18332
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Thanks for the PR. I'll leave it to others to decide whether we do want the API change first, or at least comment on it, before looking at the actual implementation. |
Since this Pull Request has not been updated in 60 days, it has been marked "inactive." This does not mean that it will be closed, though it may be moved to a "Draft" state. This helps maintainers prioritize their reviewing efforts. You can pick the PR back up anytime - please ping us if you need a review or guidance to move the PR forward! If you do not plan on continuing the work, please let us know so that we can either find someone to take the PR over, or close it. |
I'll rebase and finish fixing that PR, but that'll go on top of#26580 as it turns out some tools shouldn't be toggles after all. |
Since this Pull Request has not been updated in 60 days, it has been marked "inactive." This does not mean that it will be closed, though it may be moved to a "Draft" state. This helps maintainers prioritize their reviewing efforts. You can pick the PR back up anytime - please ping us if you need a review or guidance to move the PR forward! If you do not plan on continuing the work, please let us know so that we can either find someone to take the PR over, or close it. |
Still blocked by#26580, but the idea is correct I think. |
Related to#18331 .
PR Summary
Changed
trigger
inToolToggleBase
to callon_toggle(state, event)
whenever the state ofself._toggled
changes. Also it is backward compatible withenable(event)
anddisable(event)
. Additionally I changedToolFullScreen
,AxisScaleBase
andZoomPanBase
to use the newon_toggle
method.PR Checklist