Skip to content

Commit 0ef7eda

Browse files
committed
Prep v0.4.3 release
1 parent 09dee08 commit 0ef7eda

File tree

7 files changed

+26
-16
lines changed

7 files changed

+26
-16
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dagre-d3",
3-
"version": "0.4.2",
3+
"version": "0.4.3",
44
"main": [
55
"dist/dagre-d3.core.js",
66
"dist/dagre-d3.core.min.js"

dist/dagre-d3.core.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,18 @@ function createEdgePaths(selection, g, arrows) {
187187
util.applyTransition(svgPaths, g)
188188
.style("opacity", 1);
189189

190-
// Save DOM element in the path group, and set ID
190+
// Save DOM element in the path group, and set ID and class
191191
svgPaths.each(function(e) {
192+
var domEdge = d3.select(this);
192193
var edge = g.edge(e);
193194
edge.elem = this;
195+
194196
if (edge.id) {
195-
d3.select(this).attr("id", edge.id);
197+
domEdge.attr("id", edge.id);
196198
}
199+
200+
util.applyClass(domEdge, edge["class"],
201+
(domEdge.classed("update") ? "update " : "") + "edgePath");
197202
});
198203

199204
svgPaths.selectAll("path.path")
@@ -1093,7 +1098,7 @@ function applyTransition(selection, g) {
10931098
}
10941099

10951100
},{"./lodash":20}],26:[function(require,module,exports){
1096-
module.exports = "0.4.2";
1101+
module.exports = "0.4.3";
10971102

10981103
},{}]},{},[1])(1)
10991104
});

dist/dagre-d3.core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dagre-d3.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,18 @@ function createEdgePaths(selection, g, arrows) {
187187
util.applyTransition(svgPaths, g)
188188
.style("opacity", 1);
189189

190-
// Save DOM element in the path group, and set ID
190+
// Save DOM element in the path group, and set ID and class
191191
svgPaths.each(function(e) {
192+
var domEdge = d3.select(this);
192193
var edge = g.edge(e);
193194
edge.elem = this;
195+
194196
if (edge.id) {
195-
d3.select(this).attr("id", edge.id);
197+
domEdge.attr("id", edge.id);
196198
}
199+
200+
util.applyClass(domEdge, edge["class"],
201+
(domEdge.classed("update") ? "update " : "") + "edgePath");
197202
});
198203

199204
svgPaths.selectAll("path.path")
@@ -1093,7 +1098,7 @@ function applyTransition(selection, g) {
10931098
}
10941099

10951100
},{"./lodash":20}],26:[function(require,module,exports){
1096-
module.exports = "0.4.2";
1101+
module.exports = "0.4.3";
10971102

10981103
},{}],27:[function(require,module,exports){
10991104
/*

dist/dagre-d3.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = "0.4.3-pre";
1+
module.exports = "0.4.3";

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dagre-d3",
3-
"version": "0.4.3-pre",
3+
"version": "0.4.3",
44
"description": "A D3-based renderer for Dagre",
55
"author": "Chris Pettitt <chris@samsarin.com>",
66
"keywords": [
@@ -38,4 +38,4 @@
3838
"url": "https://github.com/cpettitt/dagre-d3.git"
3939
},
4040
"license": "MIT"
41-
}
41+
}

0 commit comments

Comments
 (0)