Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make RangeTool respect Range.{min,max}_interval #13561

Merged
merged 5 commits into from
Jan 26, 2024

Conversation

mattpap
Copy link
Contributor

@mattpap mattpap commented Nov 30, 2023

Makes RangeTool respect its x_range and y_range limits. Also adds support for {min,max}_{width,height} constraints to BoxAnnotation. These constraints work, but overall the support is cumbersome in edge cases and will require additional work in a future PR, to polish the behavior. This PR also adds View.on_transitive_change for connecting change signals of transitive models in a view. I originally added this in PR #13538, but it's useful here as well and harder to miss in a much smaller PR. This approach is generic enough to later be used in all other context where previously we either had custom code or no signal reconnect/cleanup at all.

fixes #13483

@mattpap mattpap added status: WIP grant: CZI R5 Funded by CZI Round 5 grant labels Nov 30, 2023
@mattpap mattpap added this to the 3.4 milestone Nov 30, 2023
@mattpap mattpap force-pushed the mattpap/13483_respect_max_interval branch from 07cfeb0 to c868b58 Compare November 30, 2023 12:56
Copy link

codecov bot commented Nov 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6e5faa8) 92.57% compared to head (2a05459) 92.58%.
Report is 8 commits behind head on branch-3.4.

Additional details and impacted files
@@             Coverage Diff             @@
##           branch-3.4   #13561   +/-   ##
===========================================
  Coverage       92.57%   92.58%           
===========================================
  Files             323      323           
  Lines           20525    20530    +5     
===========================================
+ Hits            19002    19007    +5     
  Misses           1523     1523           

Copy link
Contributor

@philippjfr philippjfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@mattpap mattpap force-pushed the mattpap/13483_respect_max_interval branch from 3006e9f to 43e7883 Compare January 23, 2024 21:40
@mattpap mattpap force-pushed the mattpap/13483_respect_max_interval branch from 43e7883 to 2a05459 Compare January 23, 2024 22:20
@mattpap mattpap merged commit 57f77ac into branch-3.4 Jan 26, 2024
29 of 30 checks passed
@mattpap mattpap deleted the mattpap/13483_respect_max_interval branch January 26, 2024 21:04
Chiemezuo pushed a commit to Chiemezuo/bokeh that referenced this pull request Aug 27, 2024
* Make RangeTool respect Range.{min,max}_interval

* Replace custom code with View.on_transitive_change()

* Add visual integration tests

* Simplify usage of View.on_transitive_change()

* Update unit tests
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
grant: CZI R5 Funded by CZI Round 5 grant status: accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] RangeTool does not respect target max_interval
2 participants