Comparing version 3.0.0 to 3.0.1
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
701214
17505
0