https://pantsbuild.org/ logo
#pex
Title
# pex
b

blue-leather-89370

09/27/2018, 6:38 PM
Selections in kubed support data joins, so you can do the following:
Copy code
root.selectAll<Circle>()
    .data(listOf(100.0, 200.0, 300.0))
    .enter()
    .append { d, _, _ -> Circle(d, d, 10.0) }
root
is initially an empty
Group
. The enter subselection contains place holders for each new datum bound to the selection, append replaces those placeholders with nodes (in this case
Circle
instances).
e

enough-analyst-54434

09/27/2018, 6:38 PM