stathissideris / dali

dali is a Clojure library for representing, exporting and manipulating the SVG graphics format.
295 stars 16 forks source link

Clojurescript support #4

Open kennyjwilli opened 8 years ago

kennyjwilli commented 8 years ago

This library would be the perfect fit for Clojurescript. My use case is creating complex tree graphs.

stathissideris commented 8 years ago

Most definitely, I'm actually planning to do this, but because ClojureScript support ideally also means interactivity, I would like it to support React out of the box, so I need to plan this properly. Having interactive visualisations means that it's no longer a simple matter of translating the syntax and measuring/laying out the elements.

Btw, if you've already created any tree graphs with the Clojure version, would you be able to donate an example? I could add it to the documentation (with credit!)

kennyjwilli commented 8 years ago

I have not used it in Clojure. We had to write a custom solution for creating tree graphs in Clojurescript. It looks like dali would make creating these sorts of graphs a lot easier.

BTW, I suggest you look into Rum for adding Clojurescript support as it allows the developer to control how they want to manage state.

jmiskovic commented 4 years ago

Lot of time has passed since this issue was opened, hopefully someone is still around to provide some overview. Is the work that @stathissideris has done on cljs branch still relevant? What issues prevent dali from being used in Clojurescript?

I'm interested to use dali as hiccup -> SVG transformer, and layout features look very useful. I'm not that interested in interactivity and out-of-box support for React framework as there are too many different ones.