Skip to content

Commit

Permalink
Prep v0.4.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
cpettitt committed Mar 31, 2015
1 parent 09dee08 commit 0ef7eda
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 16 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dagre-d3",
"version": "0.4.2",
"version": "0.4.3",
"main": [
"dist/dagre-d3.core.js",
"dist/dagre-d3.core.min.js"
Expand Down
11 changes: 8 additions & 3 deletions dist/dagre-d3.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,18 @@ function createEdgePaths(selection, g, arrows) {
util.applyTransition(svgPaths, g)
.style("opacity", 1);

// Save DOM element in the path group, and set ID
// Save DOM element in the path group, and set ID and class
svgPaths.each(function(e) {
var domEdge = d3.select(this);
var edge = g.edge(e);
edge.elem = this;

if (edge.id) {
d3.select(this).attr("id", edge.id);
domEdge.attr("id", edge.id);
}

util.applyClass(domEdge, edge["class"],
(domEdge.classed("update") ? "update " : "") + "edgePath");
});

svgPaths.selectAll("path.path")
Expand Down Expand Up @@ -1093,7 +1098,7 @@ function applyTransition(selection, g) {
}

},{"./lodash":20}],26:[function(require,module,exports){
module.exports = "0.4.2";
module.exports = "0.4.3";

},{}]},{},[1])(1)
});
2 changes: 1 addition & 1 deletion dist/dagre-d3.core.min.js

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions dist/dagre-d3.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,18 @@ function createEdgePaths(selection, g, arrows) {
util.applyTransition(svgPaths, g)
.style("opacity", 1);

// Save DOM element in the path group, and set ID
// Save DOM element in the path group, and set ID and class
svgPaths.each(function(e) {
var domEdge = d3.select(this);
var edge = g.edge(e);
edge.elem = this;

if (edge.id) {
d3.select(this).attr("id", edge.id);
domEdge.attr("id", edge.id);
}

util.applyClass(domEdge, edge["class"],
(domEdge.classed("update") ? "update " : "") + "edgePath");
});

svgPaths.selectAll("path.path")
Expand Down Expand Up @@ -1093,7 +1098,7 @@ function applyTransition(selection, g) {
}

},{"./lodash":20}],26:[function(require,module,exports){
module.exports = "0.4.2";
module.exports = "0.4.3";

},{}],27:[function(require,module,exports){
/*
Expand Down
10 changes: 5 additions & 5 deletions dist/dagre-d3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = "0.4.3-pre";
module.exports = "0.4.3";
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dagre-d3",
"version": "0.4.3-pre",
"version": "0.4.3",
"description": "A D3-based renderer for Dagre",
"author": "Chris Pettitt <chris@samsarin.com>",
"keywords": [
Expand Down Expand Up @@ -38,4 +38,4 @@
"url": "https://github.com/cpettitt/dagre-d3.git"
},
"license": "MIT"
}
}

0 comments on commit 0ef7eda

Please sign in to comment.