Comparing version 0.1.4 to 0.1.5
@@ -0,1 +1,9 @@ | ||
v0.1.5 | ||
====== | ||
* Fixes to transitions: | ||
* Avoid overlapping transitions | ||
* Remove hack for adding an artificial control point because it breaks if | ||
edge interpolation changes. | ||
v0.1.4 | ||
@@ -2,0 +10,0 @@ ====== |
@@ -305,22 +305,5 @@ var layout = require('dagre').layout; | ||
this._transition(svgEdgePaths.filter('.enter').selectAll('path')) | ||
this._transition(svgEdgePaths.selectAll('path')) | ||
.attr('d', calcPoints) | ||
.style('opacity', 1); | ||
// When initiating a transition with 1 more control point than previously | ||
// present, the transition immediately sets the terminal control point to the | ||
// final position. This hack inserts an artificial control point. It's not | ||
// pretty, but better than the previous behavior. | ||
svgEdgePaths.selectAll('path') | ||
.filter(function(e) { | ||
var points = g.edge(e).points; | ||
return d3.select(this).attr('d').split('C').length - 2 < points.length; | ||
}) | ||
.attr('d', function(e) { | ||
var dSplit = d3.select(this).attr('d').split('C'); | ||
dSplit.splice(1, 0, dSplit[1]); | ||
return dSplit.join('C'); | ||
}); | ||
this._transition(svgEdgePaths.filter(':not(.enter)').selectAll('path')) | ||
.attr('d', calcPoints); | ||
} | ||
@@ -327,0 +310,0 @@ |
@@ -1,1 +0,1 @@ | ||
module.exports = '0.1.4'; | ||
module.exports = '0.1.5'; |
{ | ||
"name": "dagre-d3", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "A D3-based renderer for Dagre", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -154,3 +154,3 @@ # dagre-d3 - A D3-based renderer for Dagre | ||
stroke-width: 1.5px; | ||
fill: #ff; | ||
fill: #fff; | ||
} | ||
@@ -162,3 +162,3 @@ | ||
.edge path { | ||
.edgePath { | ||
stroke: #333; | ||
@@ -165,0 +165,0 @@ stroke-width: 1.5px; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27534
485