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

d3-layout-circle-graph

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3-layout-circle-graph - npm Package Compare versions

Comparing version 0.4.0 to 1.0.0

2

bower.json

@@ -32,3 +32,3 @@ {

},
"version": "0.4.0"
"version": "1.0.0"
}

@@ -29,7 +29,7 @@ (function(d3) {

function radiansToX(radians) {
return Math.round(Math.sin(radians) * radius * 100)/100;
return Math.sin(radians) * radius;
}
function radiansToY(radians) {
return Math.round(Math.cos(radians) * radius * 100)/100;
return Math.cos(radians) * -radius;
}

@@ -46,3 +46,3 @@

},
key: function(fn) {

@@ -55,3 +55,3 @@ if (fn) {

},
radius: function (r) {

@@ -73,3 +73,3 @@ if (typeof r === 'number') {

// calculate radians
n.radians = Math.PI - i * radianSeparation;
n.radians = i * radianSeparation;
n.degrees = radiansToDegrees(n.radians);

@@ -76,0 +76,0 @@

{
"name": "d3-layout-circle-graph",
"version": "0.4.0",
"version": "1.0.0",
"description": "A d3 layout generator for visualizing a graph using a circle of nodes and chords connecting them",

@@ -5,0 +5,0 @@ "main": "circleGraph.js",

@@ -43,3 +43,3 @@ d3.layout.circleGraph

The node objects will be endowed with `x`, `y`, `radians`, `radianRange`, and `degrees` properties. These can be used to visualize the graph as a circle.
The node objects will be endowed with `x`, `y`, `radians`, `radianRange`, and `degrees` properties. These can be used to visualize the graph as a circle. Note that 0° is assumed to be 12 o'clock, and increases going clockwise.

@@ -46,0 +46,0 @@ ### `node.x`, `node.y`

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