Skip to content

Commit af27e34

Browse files
committed
Prep v0.4.1 release
1 parent 7b0ee00 commit af27e34

7 files changed

+52
-14
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dagre-d3",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"main": [
55
"dist/dagre-d3.core.js",
66
"dist/dagre-d3.core.min.js"

dist/dagre-d3.core.js

+21-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ var util = require("./util");
3636
module.exports = {
3737
"default": normal,
3838
"normal": normal,
39-
"vee": vee
39+
"vee": vee,
40+
"undirected": undirected
4041
};
4142

4243
function normal(parent, id, edge, type) {
@@ -75,6 +76,24 @@ function vee(parent, id, edge, type) {
7576
util.applyStyle(path, edge[type + "Style"]);
7677
}
7778

79+
function undirected(parent, id, edge, type) {
80+
var marker = parent.append("marker")
81+
.attr("id", id)
82+
.attr("viewBox", "0 0 10 10")
83+
.attr("refX", 9)
84+
.attr("refY", 5)
85+
.attr("markerUnits", "strokeWidth")
86+
.attr("markerWidth", 8)
87+
.attr("markerHeight", 6)
88+
.attr("orient", "auto");
89+
90+
var path = marker.append("path")
91+
.attr("d", "M 0 5 L 10 5")
92+
.style("stroke-width", 1)
93+
.style("stroke-dasharray", "1,0");
94+
util.applyStyle(path, edge[type + "Style"]);
95+
}
96+
7897
},{"./util":25}],3:[function(require,module,exports){
7998
var util = require("./util");
8099

@@ -1050,7 +1069,7 @@ function applyTransition(selection, g) {
10501069
}
10511070

10521071
},{"./lodash":20}],26:[function(require,module,exports){
1053-
module.exports = "0.4.0";
1072+
module.exports = "0.4.1";
10541073

10551074
},{}]},{},[1])(1)
10561075
});

dist/dagre-d3.core.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dagre-d3.js

+21-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ var util = require("./util");
3636
module.exports = {
3737
"default": normal,
3838
"normal": normal,
39-
"vee": vee
39+
"vee": vee,
40+
"undirected": undirected
4041
};
4142

4243
function normal(parent, id, edge, type) {
@@ -75,6 +76,24 @@ function vee(parent, id, edge, type) {
7576
util.applyStyle(path, edge[type + "Style"]);
7677
}
7778

79+
function undirected(parent, id, edge, type) {
80+
var marker = parent.append("marker")
81+
.attr("id", id)
82+
.attr("viewBox", "0 0 10 10")
83+
.attr("refX", 9)
84+
.attr("refY", 5)
85+
.attr("markerUnits", "strokeWidth")
86+
.attr("markerWidth", 8)
87+
.attr("markerHeight", 6)
88+
.attr("orient", "auto");
89+
90+
var path = marker.append("path")
91+
.attr("d", "M 0 5 L 10 5")
92+
.style("stroke-width", 1)
93+
.style("stroke-dasharray", "1,0");
94+
util.applyStyle(path, edge[type + "Style"]);
95+
}
96+
7897
},{"./util":25}],3:[function(require,module,exports){
7998
var util = require("./util");
8099

@@ -1050,7 +1069,7 @@ function applyTransition(selection, g) {
10501069
}
10511070

10521071
},{"./lodash":20}],26:[function(require,module,exports){
1053-
module.exports = "0.4.0";
1072+
module.exports = "0.4.1";
10541073

10551074
},{}],27:[function(require,module,exports){
10561075
/*

dist/dagre-d3.min.js

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/version.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = "0.4.1-pre";
1+
module.exports = "0.4.1";

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dagre-d3",
3-
"version": "0.4.1-pre",
3+
"version": "0.4.1",
44
"description": "A D3-based renderer for Dagre",
55
"author": "Chris Pettitt <[email protected]>",
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)