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.4 to 0.0.5

index.js

5

CHANGELOG.md

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

v0.0.5
======
* Pull in dagre v0.3.4, which includes a fix for the demos with IE.
v0.0.4

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

3

lib/Renderer.js
var layout = require('dagre').layout;
var d3;
try { d3 = require('d3'); } catch (_) { d3 = window.d3; }
module.exports = Renderer;

@@ -4,0 +7,0 @@

2

lib/util.js

@@ -23,3 +23,3 @@ /*

if (!f(xs[i])) {
return false;
return false;
}

@@ -26,0 +26,0 @@ }

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

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

@@ -15,3 +15,5 @@ "keywords": [

"graphlib-dot": "0.4.8",
"jshint": "~2.3.0",
"mocha": "1.12.x",
"phantomjs": "~1.9.2-2",
"semver": "2.1.x",

@@ -22,4 +24,5 @@ "uglify-js": "1.2.3"

"cp-data": "1.1.0",
"graphlib": "0.7.0",
"dagre": "0.3.3"
"dagre": "0.3.4",
"d3": "~3.3.8",
"graphlib": "0.7.0"
},

@@ -29,3 +32,3 @@ "author": "Chris Pettitt <chris@samsarin.com>",

"type": "git",
"url": "https://github.com/cpettitt/dagre.git"
"url": "https://github.com/cpettitt/dagre-d3.git"
},

@@ -32,0 +35,0 @@ "license": "MIT",

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

<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://cpettitt.github.io/project/dagre-d3/latest/dagre-d3.min.js)"></script>
<script src="http://cpettitt.github.io/project/dagre-d3/latest/dagre-d3.min.js"></script>
```

@@ -88,3 +88,3 @@

<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://cpettitt.github.io/project/dagre-d3/v0.0.1/dagre-d3.min.js)"></script>
<script src="http://cpettitt.github.io/project/dagre-d3/v0.0.1/dagre-d3.min.js"></script>
```

@@ -147,2 +147,28 @@

We also need to add some basic style information to get a usable graph. These values can be tweaked, of course.
```css
<style>
rect {
fill: #fff;
}
.node rect {
stroke-width: 1.5px;
stroke: #333;
fill: none;
}
.edge rect {
fill: #fff;
}
.edge path {
fill: none;
stroke: #333;
stroke-width: 1.5px;
}
</style>
```
This produces the graph:

@@ -149,0 +175,0 @@

Sorry, the diff of this file is not supported yet

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