Commit e1bbecde authored by Mike Bostock's avatar Mike Bostock
Browse files

Merge branch 'fix-closing-point'

parents 91d35b42 f598ed5b
{
"name": "d3",
"version": "3.1.3",
"version": "3.1.4",
"main": "./d3.js"
}
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]);
......
This diff is collapsed.
{
"name": "d3",
"version": "3.1.3",
"version": "3.1.4",
"description": "A small, free JavaScript library for manipulating documents based on data.",
"keywords": [
"dom",
......
......@@ -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.
......
d3 = (function(){
var d3 = {version: "3.1.3"}; // semver
var d3 = {version: "3.1.4"}; // semver
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment