We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 461583b commit 16cce54Copy full SHA for 16cce54
app/components/basic-tree.js
@@ -87,9 +87,10 @@ export default Ember.Component.extend({
87
.nodeSize([6, 180]);
88
graph(root);
89
90
- g.selectAll(".link")
91
- .data(root.descendants().slice(1))
92
- .enter()
+ let link = g.selectAll(".link")
+ .data(root.descendants().slice(1));
+
93
+ link.enter()
94
.append("path")
95
.attr("class", "link")
96
.attr("d", function(d) {
@@ -100,7 +101,9 @@ export default Ember.Component.extend({
100
101
});
102
103
let node = g.selectAll(".node")
- .data(root.descendants())
104
+ .data(root.descendants());
105
106
+ let nodeEnter = node
107
.enter()
108
.append("g")
109
.attr("class", function(d) { return "node" + (d.children ? " node--internal" : " node--leaf"); })
0 commit comments