Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'fix-closing-point'

  • Loading branch information...
commit e1bbecde2c58888c91ddd0a453c1e0467692467e 2 parents 91d35b4 + f598ed5
@mbostock authored
View
2  component.json
@@ -1,5 +1,5 @@
{
"name": "d3",
- "version": "3.1.3",
+ "version": "3.1.4",
"main": "./d3.js"
}
View
6 d3.js
@@ -1,6 +1,6 @@
d3 = function() {
var d3 = {
- version: "3.1.3"
+ version: "3.1.4"
};
if (!Date.now) Date.now = function() {
return +new Date();
@@ -2253,8 +2253,8 @@ d3 = function() {
function d3_geo_clipPolygon(segments, compare, inside, interpolate, listener) {
var subject = [], clip = [];
segments.forEach(function(segment) {
- if ((n = segment.length) <= 1) return;
- var n, p0 = segment[0], p1 = segment[n - 1];
+ if ((n = segment.length - 1) <= 0) return;
+ var n, p0 = segment[0], p1 = segment[n];
if (d3_geo_sphericalEqual(p0, p1)) {
listener.lineStart();
for (var i = 0; i < n; ++i) listener.point((p0 = segment[i])[0], p0[1]);
View
4 d3.min.js
2 additions, 2 deletions not shown
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "d3",
- "version": "3.1.3",
+ "version": "3.1.4",
"description": "A small, free JavaScript library for manipulating documents based on data.",
"keywords": [
"dom",
View
4 src/geo/clip-polygon.js
@@ -9,8 +9,8 @@ function d3_geo_clipPolygon(segments, compare, inside, interpolate, listener) {
clip = [];
segments.forEach(function(segment) {
- if ((n = segment.length) <= 1) return;
- var n, p0 = segment[0], p1 = segment[n - 1];
+ if ((n = segment.length - 1) <= 0) return;
+ var n, p0 = segment[0], p1 = segment[n];
// If the first and last points of a segment are coincident, then treat as
// a closed ring.
View
2  src/start.js
@@ -1,2 +1,2 @@
d3 = (function(){
- var d3 = {version: "3.1.3"}; // semver
+ var d3 = {version: "3.1.4"}; // semver
Please sign in to comment.
Something went wrong with that request. Please try again.