This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-09
Channels
- # aws (3)
- # bangalore-clj (3)
- # beginners (40)
- # boot (53)
- # cider (1)
- # cljs-dev (124)
- # cljsrn (22)
- # clojure (105)
- # clojure-italy (1)
- # clojure-nl (3)
- # clojure-russia (35)
- # clojure-spec (9)
- # clojure-uk (30)
- # clojurebridge (25)
- # clojurescript (107)
- # datomic (18)
- # dirac (21)
- # events (6)
- # hoplon (29)
- # leiningen (5)
- # off-topic (40)
- # om (17)
- # onyx (25)
- # parinfer (2)
- # pedestal (4)
- # perun (2)
- # planck (1)
- # protorepl (6)
- # re-frame (18)
- # reagent (15)
- # ring-swagger (4)
- # specter (2)
- # test-check (7)
- # testing (3)
- # untangled (45)
- # vim (2)
I want to draw and animate various html & svg components, before react & cljs I’d have used d3 but now I’m not so sure
I've never used svg with Reagent, but I have some friends who have, and they said there was nothing special to it. D3 also works pretty well with Reagent.
the benefit to D3 is primarily in transformations: scales, shapes & layouts, animation
@lsenta you might find this useful: https://gadfly361.github.io/gadfly-blog/2016-10-22-d3-in-reagent.html
@gadfly361 thanks, tbh I’ve been through http://zachcp.org/blog/2015/reagent-d3/ which is more straightforward (I know reagent, d3 & inc already)
@gadfly361 shouldn’t you use something like (select (reagent/dom-node this))
to avoid leaking your component with a global selector btw?
@lsenta when adding the bars, you wont be selecting this
, so for convenience i used a global selector. I do agree using dom-node
is really nice in many situations tho. As an aside, this is something to track: https://github.com/reagent-project/reagent/issues/251