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

add an Observable version of boundingbox #4632

Open
aplavin opened this issue Nov 26, 2024 · 0 comments
Open

add an Observable version of boundingbox #4632

aplavin opened this issue Nov 26, 2024 · 0 comments
Labels
enhancement Feature requests and enhancements

Comments

@aplavin
Copy link
Contributor

aplavin commented Nov 26, 2024

Feature description

To draw background below a text label, one can do

t = text!(...)
translate!(t, 0,0,10)
poly!(boundingbox(t, :pixel), space=:pixel, ...)

but it only works for static plots. When anything changes in the plot, the boundingbox remains the same – it's a plain value, not an Observable.
It's also non-trivial to explicitly list the observables boundingbox depends on, they are both axis properties and the text properties.

Would be useful to have an observable version :)
I'd be happy to open a PR adding it, if someone can tell what exactly it should depend on...

@aplavin aplavin added the enhancement Feature requests and enhancements label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests and enhancements
Projects
None yet
Development

No branches or pull requests

1 participant