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

d3

Package Overview
Dependencies
Maintainers
1
Versions
273
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3 - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

component.json
{
"name": "d3",
"version": "3.0.0",
"version": "3.0.1",
"main": "./d3.js"
}
{
"name": "d3",
"version": "3.0.0",
"version": "3.0.1",
"description": "A small, free JavaScript library for manipulating documents based on data.",

@@ -5,0 +5,0 @@ "keywords": [

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

d3 = {version: "3.0.0"}; // semver
d3 = {version: "3.0.1"}; // semver

@@ -3,0 +3,0 @@ var π = Math.PI,

@@ -21,3 +21,8 @@ d3.geo.centroid = function(object) {

var d3_geo_centroid = {
sphere: d3_noop,
sphere: function() {
if (d3_geo_centroidDimension < 2) {
d3_geo_centroidDimension = 2;
d3_geo_centroidW = d3_geo_centroidX = d3_geo_centroidY = d3_geo_centroidZ = 0;
}
},
point: d3_geo_centroidPoint,

@@ -27,3 +32,6 @@ lineStart: d3_geo_centroidLineStart,

polygonStart: function() {
d3_geo_centroidDimension = 2;
if (d3_geo_centroidDimension < 2) {
d3_geo_centroidDimension = 2;
d3_geo_centroidW = d3_geo_centroidX = d3_geo_centroidY = d3_geo_centroidZ = 0;
}
d3_geo_centroid.lineStart = d3_geo_centroidRingStart;

@@ -50,6 +58,2 @@ },

if (d3_geo_centroidDimension < 2) {
d3_geo_centroidDimension = 2;
d3_geo_centroidW = d3_geo_centroidX = d3_geo_centroidY = d3_geo_centroidZ = 0;
}
d3_geo_centroidDimension = 1;

@@ -73,7 +77,6 @@ d3_geo_centroidLineStart();

if (d3_geo_centroidDimension !== 1) {
if (d3_geo_centroidDimension < 1) {
d3_geo_centroidDimension = 1;
d3_geo_centroidW = d3_geo_centroidX = d3_geo_centroidY = d3_geo_centroidZ = 0;
} else return;
if (d3_geo_centroidDimension > 1) return;
if (d3_geo_centroidDimension < 1) {
d3_geo_centroidDimension = 1;
d3_geo_centroidW = d3_geo_centroidX = d3_geo_centroidY = d3_geo_centroidZ = 0;
}

@@ -80,0 +83,0 @@

@@ -22,6 +22,2 @@ d3.geo.stream = function(object, listener) {

while (++i < n) d3_geo_streamGeometry(features[i].geometry, listener);
},
GeometryCollection: function(object, listener) {
var geometries = object.geometries, i = -1, n = geometries.length;
while (++i < n) d3_geo_streamGeometry(geometries[i], listener);
}

@@ -55,2 +51,6 @@ };

while (++i < n) d3_geo_streamPolygon(coordinates[i], listener);
},
GeometryCollection: function(object, listener) {
var geometries = object.geometries, i = -1, n = geometries.length;
while (++i < n) d3_geo_streamGeometry(geometries[i], listener);
}

@@ -57,0 +57,0 @@ };

@@ -37,3 +37,4 @@ // Squarified Treemaps by Mark Bruls, Kees Huizing, and Jarke J. van Wijk

u = mode === "slice" ? rect.dx
: mode === "dice" || mode === "slice-dice" && node.depth & 1 ? rect.dy
: mode === "dice" ? rect.dy
: mode === "slice-dice" ? node.depth & 1 ? rect.dy : rect.dx
: Math.min(rect.dx, rect.dy), // initial orientation

@@ -40,0 +41,0 @@ n;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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