Repository navigation
Allow to override non-visual glyph data properties - #13554
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## branch-3.4 #13554 +/- ##
===========================================
Coverage 92.57% 92.57%
===========================================
Files 322 323 +1
Lines 20461 20463 +2
===========================================
+ Hits 18941 18944 +3
+ Misses 1520 1519 -1 |
👏 👏 👏 |
|
Also, just FYI, IIRC there are some explicit admonitions in the docs about non-visual props not working on sub-glyphs, so it would be go to go through and remove those as well, once this PR is closer to completion. |
5f3f2b0 to
ba5d553
Compare
|
Although tests pass, I expect there will be a long tail of small tweaks needed as a follow-up, to handle corner cases and unlock full potential of this change in all glyphs. I would like this to be merged soon though, given the extent of changes in this PR. |
bryevdv
left a comment
There was a problem hiding this comment.
OK, I had a very brief look, mostly just scanning for any copy-pasta in the bulk updates. I won't claim to fully understand the details of the the new glyph inheritance. If you have a chance to write a couple of paragraphs about the design, that would be appreciated.
Agree it's best to get this in sooner rather than later in 3.4 cycle. I'd like to see the following things along with this PR:
- new issue for 3.4 to update docs and choose some examples to show this new capability off with
- a dev build as soon as feasible so we can do a quick scan over rendered docs
ba5d553 to
6b1c22d
Compare
* Simplify CircleView._map_data()
* Include ScreenSizeSpec in max_* attrs processing
* Add data attribute inference for all properties
* Infer data attributes in all glyphs
* Move *Data types under glyphs' namespaces
* Robustify data overrides in glyph render methods
* Update glyphs in custom extensions
* Rename coordinate attrs from e.g. _x to x
* Allow to inherit data properties
* Rename RaggedArray.{array->data}
* Allow to inherit mapped attributes
* Add conditional mapping in _{set,map}_data()
* Don't duplicate _map_data() in {H,V}Area* glyphs
* More conditional mapping in _map_data()
* Resolve nullablity of ImageBaseView.image_data
* Update unit tests in test_glyphs.py
* Update bokeh's examples
* Protect against not implemented equality
* Fix code quality in {h,v}area_step.ts
* Fix definition of HAreaStep.x2 property
* Improve ImageURL's regression unit tests
* Inherit data/mapped data in ImageURL
* Force correct API usage with 'readonly' properties
* Finalize property inheritance in _map_data()
* Remove warnings about non-visual overrides
* Add release notes
|
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. |
This PR has the following goals:
set_data(),set_visuals()andmap_data()), by removing all definitions that can auto-generated, fixing any issues and bugs along the way.Example of a derived hover glyph with 2x the radius:
Screencast.from.28.11.2023.21.38.10.webm
and with selection glyph unrelated to the base glyph:
Example usage:
fixes #2367