juba / pyobsplot

Observable Plot in Jupyter notebooks and Quarto documents
https://juba.github.io/pyobsplot/
MIT License
203 stars 7 forks source link

Interactions and static tips not possible with `jsdom` renderer #16

Open juba opened 1 year ago

juba commented 1 year ago

For the moment "static" plots generated as HTML or SVG by the jsdom renderer cannot have pointer interactions.

harrylojames commented 6 months ago

Hi @juba,

Thank you for adding this issue.

If the typst renderer is added this issue will mean that plots such as this can't be exported to png etc.. I encountered this today whilst testing the pull request and can see others encountering this more frequently once exporting to png requires using the jsdom/typst renderer. Not sure what this would involve to fix but would getting static annotations with the tip mark to work require the same changes?

FYI @wirhabenzeit in reply to your comment on the PNG issue about what features are supported

juba commented 5 months ago

Indeed, you're right, as static annotations use the same mark as dynamic tips, they are not supported by the jsdom renderer. This may be because jsdom doesn't support pointer interactions,

Unfortunately I'm not sure what I may do about it.