-
Notifications
You must be signed in to change notification settings - Fork 58
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
Adding a button to create pictures from the current scene #532
Conversation
2236587
to
f2027bb
Compare
I'm not sure why the CI is failing here - it seems strange. I'll try to reproduce locally. |
This is now ready to be merged from my side. |
This looks useful @sponce - thanks! I have a few comments I added as a review. In addition, some more general comments. Firstly, did you see this warning: Some other comments (which perhaps we can address in a followup PR if you want to get this in soon):
|
Finally, I'm puzzled by the CI failures, but I could reproduce them so I'm pretty sure they're real. |
e3f3925
to
abf7070
Compare
I did. I have no clue what it means though. I'll have a look. It comes for sure from html2canvas when creating the info panel part of the picture.
Not sure we need an option, we should just display what is on the screen. But indeed, the overlay is not supported right now. To be worked on. Probably in another PR.
I must say I'm not a gui guy and I have a hard time finding out what will be easier to use for end users.
That was trivial enough that I've already done it :-)
I get no failure locally, so I'm not sure how to find out what's going wrong. It has to do with the ci environment. Or maybe the version of jsroot used ? |
This allows to create pictures of any size from the current view, thus not limited by the screen size as is the case with the screenshot mode.
This is a workaround to a bug in html2canvas where svg files with no width/height attributes are not rendered properly, at least under firefox. See niklasvh/html2canvas#1897
abf7070
to
6d504ab
Compare
I've now sorted out the javascript warnings in the console. |
And now I'm able to reproduce the failure locally. I was not launching the right tests. Looking into it |
I think it must be unrelated actually, since this is suffering too: :-( |
I'm lost with the one. I can reproduce it with my modifications, but when I remove them, the problem is still there. Of course, starting from a clean clone without my modifications works. So I conclude that there are some caches somewhere which get polluted. And actually I got another proof of it : I've rebased on main and then removed my stuff (so I have main) and it's failing but with different errors (and massively). So clearly there is hysteresis in the setup, which makes it really hard to debug |
Since the problem is unrelated, let’s just merge this one in. |
The goal is to be able to create pictures of any size (user can enter it) for the current scene. Unlike the screenshot mode, the new tool directly creates the picture respecting the size and type of fitting given.
Current features are :
There are a couple of minor issues right now :