Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dagre-d3

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dagre-d3 - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

8

CHANGELOG.md

@@ -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 @@ ======

21

lib/Renderer.js

@@ -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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc