Closed maartenbreddels closed 3 years ago
Merging #57 (249fdf5) into master (9d0a827) will decrease coverage by
8.00%
. The diff coverage is0.00%
.
@@ Coverage Diff @@
## master #57 +/- ##
==========================================
- Coverage 58.00% 50.00% -8.00%
==========================================
Files 5 6 +1
Lines 100 116 +16
==========================================
Hits 58 58
- Misses 42 58 +16
Impacted Files | Coverage Δ | |
---|---|---|
bqplot_image_gl/viewlistener.py | 0.00% <0.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 9d0a827...249fdf5. Read the comment docs.
Nice! I'll play with this to see if it works nicely for determining aspect ratios.
For bqplot, this seems to work well:
vl = ViewListener(widget=figure, css_selector=".svg-figure > g")
As you can see in the screenshot:
the second viewlistener has the correct dimensions.
Not sure why the JS exception occurs.
After some bug hunting and polishing, I think this is ready to go.
@astrofrog I did not test this a lot, but you can try out if this works as you expect: