reveal

Docs: https://vlaaad.github.io/reveal/ Source: https://github.com/vlaaad/reveal
wilkerlucio 2020-12-11T20:03:37.357700Z

vlaaad 2020-12-11T20:24:41.357900Z

love it!

😄 1
seancorfield 2020-12-11T20:31:47.359300Z

@wilkerlucio (or @vlaaad) can you give a bit more background on what the state change stuff does for the web view? I noticed there was an example in the cljfx(?) repo that also had that...

wilkerlucio 2020-12-11T20:46:48.359400Z

the way I understood it, the component props in JavaFX are the classic java beans style, and they have some observability capacity. and in cljfx we define some getters and setters that will change reactively to data coming to cljfx

wilkerlucio 2020-12-11T20:47:10.359600Z

so those, state changes are a bridge on that, hooking on properties and also on listener/callback mechanisms from JavaFX

wilkerlucio 2020-12-11T20:47:21.359800Z

but I believe @vlaaad can give a more accurate explanation

vlaaad 2020-12-11T20:52:37.360400Z

As I understood per JavaFX docs, state-change is basically a callback when web-page is loaded

vlaaad 2020-12-11T20:54:29.360600Z

there is no built in way in cljfx to listen for that state-change event, but cljfx is extensible enough for you to write custom props that allow bringing those event sources to cljfx event handling system

seancorfield 2020-12-11T21:28:10.360900Z

So if you just want to display a basic web page, click links to other pages, submit forms, that can be done with the basic web view, but any sort of SPA style app needs the extension for state changes? (if you want to browse it internal to Reveal)

vlaaad 2020-12-11T21:41:27.361100Z

You probably can browse SPA with basic web views as well. What's missing is a way to communicate between Reveal and the web page. I'm not sure this state change thing is enough for that. I want to explore this area soonish because I see a lot of leverage from being able to use and interact with browser visualizations

vlaaad 2020-12-11T21:42:35.361300Z

A bit concerning that javafx's webkit does not work well with that graph library...

wilkerlucio 2020-12-11T22:07:17.361500Z

yeah, I'm quite sad about that, but still, some comms with that can still cover a lot of cases