cljfx

https://github.com/cljfx/cljfx
joelkuiper 2021-02-15T12:54:59.034300Z

regarding webviews, I found it to be "mostly working until it doesn't" the WebKit version is rather outdated, if you don't mind (non affiliated) paying for a dependency https://jxbrowser-support.teamdev.com/ is an option that is trivially integrated in cljfx. Jxbrowser is a full up-to-date chromium renderer, not sure if better or worse in a lot of cases but it does work as advertised

vlaaad 2021-02-15T13:01:49.035500Z

@joelkuiper there is also โ€œcefโ€ that supposedly can be integrated into javafx https://bitbucket.org/chromiumembedded/java-cef/src/master/

vlaaad 2021-02-15T13:02:00.035800Z

I havenโ€™t checked neither of those projects ๐Ÿ™‚

joelkuiper 2021-02-15T13:05:01.038100Z

I'll check it out! Thanks! it shouldn't be too hard I reckon to build it from scratch based off of the webview source code (swap out the renderer, basically). But it would require a lot of knowledge of both the java, c/c++ and webkit implementation details, so it's probably better to leave that to someone else ๐Ÿ˜‰ Although JXbrowser "full speed" (rather than the off-canvas option) is a bit of a cheat, it just puts a window with the correct dimensions on top of your scene

vlaaad 2021-02-15T13:07:08.038600Z

I think @wilkerlucio had some success with trial version of jxbrowser

joelkuiper 2021-02-15T13:08:34.040500Z

I got it to work as well, only real issue was the google dependency thing for which deps.edn support is/was somewhat lacking, the difference between it and the webview was night and day though. It could actually render pdf.js without glitches or crashing the whole runtime ๐Ÿ˜›

wilkerlucio 2021-02-15T13:08:41.040800Z

@joelkuiper @vlaaad I remember having no big issues to do that, unfortunally I'm not finding the code (I think I deleted it once my trial license expired), if I find it out I'll be happy to share