-
Notifications
You must be signed in to change notification settings - Fork 105
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
support for reftree #165
Comments
@stanch https://scastie.scala-lang.org/MasseGuillaume/fNDpQ9AgRbKA4KEvP3NaeQ/1 I added a For some reason, animations throw an Exception. |
Very cool! Let me see if I can run the docker container and dig around it to find the issue with animations. I guess it’s also time for me to stop relying on Consolas... |
take a look at https://github.com/scalacenter/scastie/blob/master/CONTRIBUTING.md#contributing
|
So after about 2 hours of debugging I finally traced it to a problem with text rendering. Converting SVG to Searching for “java alpine linux text rendering” lead me into this thread: docker-library/openjdk#73 (comment). With
I am happy to say that running I will send a PR with these changes. |
Diagram: Animation: The animation shows as a static image. also
|
Not sure I understand, doesn’t the problem have to do with the reader? Also scrimage already has a class like that, I am using it to generate those gifs ;) |
ImageIO does not read the animation part of the gif. basically what we need is to read the gif data and convert it to base64 so it can be sent to the client. |
Actually I am not sure if |
Since this is closed, should I open a new issue for correct rendering of non-PNG images? Edit: I meant animated images, or anything else not fully supported by |
Oh indeed this was still pending. Reopening this issue. |
fix parts of #158 - select *-core frist
/cc @stanch
reftree is a really nice way to visualize data structures. it would be nice to use it in scastie.
85de620 adds graphviz to the docker container running the sbt instances. I only need to redeploy this change.
The scrimage demo (https://github.com/scalacenter/scastie/blob/master/demo/scrimage.scala#L1) shows how we can render an image in the jvm and send it back to the browser.
The text was updated successfully, but these errors were encountered: