Changes
April 12, 2020 ยท View on GitHub
0.2.2 (2020-04-11)
- Add top-level
:classfield to viz component.
0.2.1-1 (2018-03-05)
- Same as 0.2.1, but made functions public
0.2.1 (2018-03-05)
- Same as 0.2.1-alpha2
0.2.1-alpha2 (2018-02-26)
- Add support for
:gupto the:elem-with-datapiece, which can be used instead of using:did-mountand:did-update.
gup, allow you to explicitly set attributes and add transitions in the :enter-init, :enter, :update, and :exit parts of the general update pattern.
As an aside, the traditional :did-mount and :did-update only give you access to the update part of the general update pattern (with a sane way of handling enter and exit for you).
- Add
rid3->macro to api. To include it:
(ns foo.bar
(:require [rid3.core :as rid3 :refer [rid3->]]))
The purpose of rid3-> is to be able to use a hiccup-like attribute map when setting attributes on a node. For example
(fn [node ratom]
(rid3-> node
{:fill "grey"
:text-anchor "middle"
:style {:font-weight 400}}
(.text "some text")))
would be the same as
(fn [node ratom]
(-> node
(.attr "fill" "grey")
(.attr "text-anchor" "middle")
(.style "font-weight" 400)
(.text "some text")))
0.2.1-alpha (2018-02-25)
Don't use this version ... it had introduced an api that was decided against.
0.2.0 (2017-09-27)
- add
:key-fnto:elem-with-datapiece - remove
:childrenfrom:elempiece - remove top-level
:prepare-dataset
Migrating from 0.1.0-alpha-3?
- If you were using the top-level
:prepare-dataset, you will need to move it inside all of the:elem-with-datapieces. - If you were using
:childrenfrom within an:elempiece, add a:containerpiece and use its:childreninstead
0.1.0-alpha-3 (2017-06-14)
- fix broken demo
- move resources to dev-resources, fixes #3
0.1.0-alpha-2 (2017-05-29)
- rename "main-container" class to "rid3-main-container" to avoid conflicts
0.1.0-alpha (2017-05-17)
- initial release