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.0.1 to 0.0.2

5

CHANGELOG.md

@@ -0,1 +1,6 @@

v0.0.2
======
* Pull in dagre v0.3.1, which includes support for rank constraints.
v0.0.1

@@ -2,0 +7,0 @@ ======

3

lib/Renderer.js

@@ -107,3 +107,4 @@ var layout = require("dagre").layout;

.selectAll("g .node")
.data(graph.nodes())
// Only include non-subgraph nodes
.data(graph.nodes().filter(function(u) { return !graph.children(u).length; }))
.enter()

@@ -110,0 +111,0 @@ .append("g")

@@ -1,1 +0,1 @@

module.exports = '0.0.1';
module.exports = '0.0.2';
{
"name": "dagre-d3",
"version": "0.0.1",
"version": "0.0.2",
"description": "A D3-based renderer for Dagre",

@@ -14,3 +14,3 @@ "keywords": [

"chai": "1.7.x",
"graphlib-dot": "0.4.1",
"graphlib-dot": "0.4.8",
"mocha": "1.12.x",

@@ -21,4 +21,5 @@ "semver": "2.1.x",

"dependencies": {
"graphlib": "0.5.7",
"dagre": "0.3.x"
"cp-data": "1.1.0",
"graphlib": "0.7.0",
"dagre": "~0.3.1"
},

@@ -25,0 +26,0 @@ "author": "Chris Pettitt <chris@samsarin.com>",

@@ -122,3 +122,3 @@ # dagre-d3 - A D3-based renderer for Dagre

g.addEdge(null, "hford", "lwilson", { label: "Anchorman 2" });
g.addEdge(null, "oplat", "kbacon", { label: "Telling Lies in America" });
g.addEdge(null, "lwilson", "kbacon", { label: "Telling Lies in America" });
```

@@ -148,3 +148,3 @@

TBD
![oracle-of-bacon1.png](http://cpettitt.github.io/project/dagre-d3/static/oracle-of-bacon1.png)

@@ -166,5 +166,5 @@ ### Configuring the Layout

```js
var layout = dagre.layout()
.nodeSep(20)
.rankDir("LR");
var layout = dagreD3.layout()
.nodeSep(20)
.rankDir("LR");
render.layout(layout).run(g, d3.select("svg g"));

@@ -175,3 +175,3 @@ ```

TBD
![oracle-of-bacon2.png](http://cpettitt.github.io/project/dagre-d3/static/oracle-of-bacon2.png)

@@ -178,0 +178,0 @@ ## License

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