d3-rails 4.1.0 → 4.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 116018ec5d739f94fb042b3933af724f751df5c7
4
- data.tar.gz: 8d00e13fdd210e0421ad2d7133b173f65689eafe
3
+ metadata.gz: 36071632015bcf9b9c74738ace485be9aeae5d08
4
+ data.tar.gz: ea93f4ae103847a4f3a9da0be1df097af7151640
5
5
  SHA512:
6
- metadata.gz: e8fa97c9011441a4fe61c7b403aa67b9c4e977694269c1dc4474fe7cdb494c51626a3bd499560e9fb93c07a0d77f54bf80a9d6d9ac395790bcc0eb10d82dea81
7
- data.tar.gz: 952d225ca7b85da5eb883d0faba00ff36a1298750fbc32d9b81d633c772c3bfba4767619d9c42b9effc9400b21fda379ac87be6dfb817faf9c7ed43dc36a7b02
6
+ metadata.gz: 315a9727bd34fa037f2f9617437e6effe874e9865cb6bc4b75d88d4a15207e2da4a7575c1b8f19cdad26b991bcaa33f707e40026540107401f530393f64a6028
7
+ data.tar.gz: c74ddd5c68f02ab5ca8d48379d6b63bfbaa894a7d04f0616e982a0425b19e72fe048eea24198549a9baa96e31482f8fc040ae6d44d233729ec74c89765060156
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 4.2.2 (16 August 2016)
2
+ * Upgrade D3 to 4.2.2
3
+
1
4
  ## 4.1.0 (7 July 2016)
2
5
  * Upgrade D3 to 4.1.0
3
6
  * Keep D3.v3 at 3.5.17
data/README.md CHANGED
@@ -8,7 +8,7 @@ d3-rails provides D3 for Rails 3.1 and higher.
8
8
 
9
9
  ## Version
10
10
 
11
- d3-rails comes with version 4.1.0 of D3.js. The d3-rails version will
11
+ d3-rails comes with version 4.2.2 of D3.js. The d3-rails version will
12
12
  always mirror the version of D3. If you need a newer version of
13
13
  d3-rails, see section Development (below).
14
14
 
@@ -1,11 +1,11 @@
1
- // https://d3js.org Version 4.1.0. Copyright 2016 Mike Bostock.
1
+ // https://d3js.org Version 4.2.2. Copyright 2016 Mike Bostock.
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
4
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
5
5
  (factory((global.d3 = global.d3 || {})));
6
- }(this, function (exports) { 'use strict';
6
+ }(this, (function (exports) { 'use strict';
7
7
 
8
- var version = "4.1.0";
8
+ var version = "4.2.2";
9
9
 
10
10
  function ascending(a, b) {
11
11
  return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
@@ -4808,15 +4808,15 @@ var tau$1 = 2 * pi$1;
4808
4808
 
4809
4809
  // If callback is non-null, it will be used for error and load events.
4810
4810
  send: function(method, data, callback) {
4811
- if (!callback && typeof data === "function") callback = data, data = null;
4812
- if (callback && callback.length === 1) callback = fixCallback(callback);
4813
4811
  xhr.open(method, url, true, user, password);
4814
4812
  if (mimeType != null && !headers.has("accept")) headers.set("accept", mimeType + ",*/*");
4815
4813
  if (xhr.setRequestHeader) headers.each(function(value, name) { xhr.setRequestHeader(name, value); });
4816
4814
  if (mimeType != null && xhr.overrideMimeType) xhr.overrideMimeType(mimeType);
4817
4815
  if (responseType != null) xhr.responseType = responseType;
4818
4816
  if (timeout > 0) xhr.timeout = timeout;
4819
- if (callback) request.on("error", callback).on("load", function(xhr) { callback(null, xhr); });
4817
+ if (callback == null && typeof data === "function") callback = data, data = null;
4818
+ if (callback != null && callback.length === 1) callback = fixCallback(callback);
4819
+ if (callback != null) request.on("error", callback).on("load", function(xhr) { callback(null, xhr); });
4820
4820
  event.call("beforesend", request, xhr);
4821
4821
  xhr.send(data == null ? null : data);
4822
4822
  return request;
@@ -4833,9 +4833,12 @@ var tau$1 = 2 * pi$1;
4833
4833
  }
4834
4834
  };
4835
4835
 
4836
- return callback
4837
- ? request.get(callback)
4838
- : request;
4836
+ if (callback != null) {
4837
+ if (typeof callback !== "function") throw new Error("invalid callback: " + callback);
4838
+ return request.get(callback);
4839
+ }
4840
+
4841
+ return request;
4839
4842
  }
4840
4843
 
4841
4844
  function fixCallback(callback) {
@@ -4854,7 +4857,11 @@ var tau$1 = 2 * pi$1;
4854
4857
  function type(defaultMimeType, response) {
4855
4858
  return function(url, callback) {
4856
4859
  var r = request(url).mimeType(defaultMimeType).response(response);
4857
- return callback ? r.get(callback) : r;
4860
+ if (callback != null) {
4861
+ if (typeof callback !== "function") throw new Error("invalid callback: " + callback);
4862
+ return r.get(callback);
4863
+ }
4864
+ return r;
4858
4865
  };
4859
4866
  }
4860
4867
 
@@ -5620,9 +5627,6 @@ var t1$1 = new Date;
5620
5627
  }
5621
5628
 
5622
5629
  var locale;
5623
- exports.format;
5624
- exports.formatPrefix;
5625
-
5626
5630
  defaultLocale({
5627
5631
  decimal: ".",
5628
5632
  thousands: ",",
@@ -6178,11 +6182,6 @@ var t1$1 = new Date;
6178
6182
  }
6179
6183
 
6180
6184
  var locale$1;
6181
- exports.timeFormat;
6182
- exports.timeParse;
6183
- exports.utcFormat;
6184
- exports.utcParse;
6185
-
6186
6185
  defaultLocale$1({
6187
6186
  dateTime: "%x, %X",
6188
6187
  date: "%-m/%-d/%Y",
@@ -8815,9 +8814,10 @@ var epsilon$2 = 1e-6;
8815
8814
  }
8816
8815
 
8817
8816
  function center(scale) {
8818
- var width = scale.bandwidth() / 2;
8817
+ var offset = scale.bandwidth() / 2;
8818
+ if (scale.round()) offset = Math.round(offset);
8819
8819
  return function(d) {
8820
- return scale(d) + width;
8820
+ return scale(d) + offset;
8821
8821
  };
8822
8822
  }
8823
8823
 
@@ -8868,7 +8868,7 @@ var epsilon$2 = 1e-6;
8868
8868
  .attr("fill", "#000")
8869
8869
  .attr(x, k * spacing)
8870
8870
  .attr(y, 0.5)
8871
- .attr("dy", orient === top ? "0em" : orient === bottom ? ".71em" : ".32em"));
8871
+ .attr("dy", orient === top ? "0em" : orient === bottom ? "0.71em" : "0.32em"));
8872
8872
 
8873
8873
  if (context !== selection) {
8874
8874
  path = path.transition(context);
@@ -11948,7 +11948,7 @@ var keyPrefix$1 = "$";
11948
11948
  };
11949
11949
 
11950
11950
  voronoi.size = function(_) {
11951
- return arguments.length ? (extent = _ == null ? null : [[0, 0], [+_[0], +_[1]]], voronoi) : extent && [extent[1][0], extent[1][1]];
11951
+ return arguments.length ? (extent = _ == null ? null : [[0, 0], [+_[0], +_[1]]], voronoi) : extent && [extent[1][0] - extent[0][0], extent[1][1] - extent[0][1]];
11952
11952
  };
11953
11953
 
11954
11954
  return voronoi;
@@ -12060,13 +12060,9 @@ var keyPrefix$1 = "$";
12060
12060
  duration = 250,
12061
12061
  gestures = [],
12062
12062
  listeners = dispatch("start", "zoom", "end"),
12063
- mousemoving,
12064
- mousePoint,
12065
- mouseLocation,
12066
12063
  touchstarting,
12067
12064
  touchending,
12068
12065
  touchDelay = 500,
12069
- wheelTimer,
12070
12066
  wheelDelay = 150;
12071
12067
 
12072
12068
  function zoom(selection) {
@@ -12180,6 +12176,7 @@ var keyPrefix$1 = "$";
12180
12176
  this.args = args;
12181
12177
  this.index = -1;
12182
12178
  this.active = 0;
12179
+ this.extent = extent.apply(that, args);
12183
12180
  }
12184
12181
 
12185
12182
  Gesture.prototype = {
@@ -12191,7 +12188,7 @@ var keyPrefix$1 = "$";
12191
12188
  return this;
12192
12189
  },
12193
12190
  zoom: function(key, transform) {
12194
- if (mousePoint && key !== "mouse") mouseLocation = transform.invert(mousePoint);
12191
+ if (this.mouse && key !== "mouse") this.mouse[1] = transform.invert(this.mouse[0]);
12195
12192
  if (this.touch0 && key !== "touch") this.touch0[1] = transform.invert(this.touch0[0]);
12196
12193
  if (this.touch1 && key !== "touch") this.touch1[1] = transform.invert(this.touch1[0]);
12197
12194
  this.that.__zoom = transform;
@@ -12201,7 +12198,6 @@ var keyPrefix$1 = "$";
12201
12198
  end: function() {
12202
12199
  if (--this.active === 0) {
12203
12200
  gestures.splice(this.index, 1);
12204
- mousePoint = mouseLocation = null;
12205
12201
  this.index = -1;
12206
12202
  this.emit("end");
12207
12203
  }
@@ -12216,16 +12212,16 @@ var keyPrefix$1 = "$";
12216
12212
  if (!filter.apply(this, arguments)) return;
12217
12213
  var g = gesture(this, arguments),
12218
12214
  t = this.__zoom,
12219
- k = Math.max(k0, Math.min(k1, t.k * Math.pow(2, -exports.event.deltaY * (exports.event.deltaMode ? 120 : 1) / 500)));
12215
+ k = Math.max(k0, Math.min(k1, t.k * Math.pow(2, -exports.event.deltaY * (exports.event.deltaMode ? 120 : 1) / 500))),
12216
+ p = mouse(this);
12220
12217
 
12221
12218
  // If the mouse is in the same location as before, reuse it.
12222
12219
  // If there were recent wheel events, reset the wheel idle timeout.
12223
- if (wheelTimer) {
12224
- var point = mouse(this);
12225
- if (mousePoint[0] !== point[0] || mousePoint[1] !== point[1]) {
12226
- mouseLocation = t.invert(mousePoint = point);
12220
+ if (g.wheel) {
12221
+ if (g.mouse[0][0] !== p[0] || g.mouse[0][1] !== p[1]) {
12222
+ g.mouse[1] = t.invert(g.mouse[0] = p);
12227
12223
  }
12228
- clearTimeout(wheelTimer);
12224
+ clearTimeout(g.wheel);
12229
12225
  }
12230
12226
 
12231
12227
  // If this wheel event won’t trigger a transform change, ignore it.
@@ -12233,18 +12229,17 @@ var keyPrefix$1 = "$";
12233
12229
 
12234
12230
  // Otherwise, capture the mouse point and location at the start.
12235
12231
  else {
12236
- g.extent = extent.apply(this, arguments);
12237
- mouseLocation = t.invert(mousePoint = mouse(this));
12232
+ g.mouse = [p, t.invert(p)];
12238
12233
  interrupt(this);
12239
12234
  g.start();
12240
12235
  }
12241
12236
 
12242
12237
  noevent$1();
12243
- wheelTimer = setTimeout(wheelidled, wheelDelay);
12244
- g.zoom("mouse", constrain(translate(scale(t, k), mousePoint, mouseLocation), g.extent));
12238
+ g.wheel = setTimeout(wheelidled, wheelDelay);
12239
+ g.zoom("mouse", constrain(translate(scale(t, k), g.mouse[0], g.mouse[1]), g.extent));
12245
12240
 
12246
12241
  function wheelidled() {
12247
- wheelTimer = null;
12242
+ g.wheel = null;
12248
12243
  g.end();
12249
12244
  }
12250
12245
  }
@@ -12252,25 +12247,24 @@ var keyPrefix$1 = "$";
12252
12247
  function mousedowned() {
12253
12248
  if (touchending || !filter.apply(this, arguments)) return;
12254
12249
  var g = gesture(this, arguments),
12255
- v = select(exports.event.view).on("mousemove.zoom", mousemoved, true).on("mouseup.zoom", mouseupped, true);
12250
+ v = select(exports.event.view).on("mousemove.zoom", mousemoved, true).on("mouseup.zoom", mouseupped, true),
12251
+ p = mouse(this);
12256
12252
 
12257
12253
  dragDisable(exports.event.view);
12258
12254
  nopropagation$1();
12259
- mousemoving = false;
12260
- g.extent = extent.apply(this, arguments);
12261
- mouseLocation = this.__zoom.invert(mousePoint = mouse(this));
12255
+ g.mouse = [p, this.__zoom.invert(p)];
12262
12256
  interrupt(this);
12263
12257
  g.start();
12264
12258
 
12265
12259
  function mousemoved() {
12266
12260
  noevent$1();
12267
- mousemoving = true;
12268
- g.zoom("mouse", constrain(translate(g.that.__zoom, mousePoint = mouse(g.that), mouseLocation), g.extent));
12261
+ g.moved = true;
12262
+ g.zoom("mouse", constrain(translate(g.that.__zoom, g.mouse[0] = mouse(g.that), g.mouse[1]), g.extent));
12269
12263
  }
12270
12264
 
12271
12265
  function mouseupped() {
12272
12266
  v.on("mousemove.zoom mouseup.zoom", null);
12273
- dragEnable(exports.event.view, mousemoving);
12267
+ dragEnable(exports.event.view, g.moved);
12274
12268
  noevent$1();
12275
12269
  g.end();
12276
12270
  }
@@ -12309,7 +12303,6 @@ var keyPrefix$1 = "$";
12309
12303
  if (exports.event.touches.length === n) {
12310
12304
  touchstarting = setTimeout(function() { touchstarting = null; }, touchDelay);
12311
12305
  interrupt(this);
12312
- g.extent = extent.apply(this, arguments);
12313
12306
  g.start();
12314
12307
  }
12315
12308
  }
@@ -13294,7 +13287,7 @@ var keyPrefix$1 = "$";
13294
13287
  stream.polygonEnd();
13295
13288
  }
13296
13289
 
13297
- function stream(object, stream) {
13290
+ function geoStream(object, stream) {
13298
13291
  if (object && streamObjectType.hasOwnProperty(object.type)) {
13299
13292
  streamObjectType[object.type](object, stream);
13300
13293
  } else {
@@ -13302,9 +13295,9 @@ var keyPrefix$1 = "$";
13302
13295
  }
13303
13296
  }
13304
13297
 
13305
- var areaRingSum;
13298
+ var areaRingSum = adder();
13306
13299
 
13307
- var areaSum;
13300
+ var areaSum = adder();
13308
13301
  var lambda00;
13309
13302
  var phi00;
13310
13303
  var lambda0;
@@ -13366,9 +13359,8 @@ var keyPrefix$1 = "$";
13366
13359
  }
13367
13360
 
13368
13361
  function area$2(object) {
13369
- if (areaSum) areaSum.reset();
13370
- else areaSum = adder(), areaRingSum = adder();
13371
- stream(object, areaStream);
13362
+ areaSum.reset();
13363
+ geoStream(object, areaStream);
13372
13364
  return areaSum * 2;
13373
13365
  }
13374
13366
 
@@ -13412,7 +13404,7 @@ var lambda0$1;
13412
13404
  var lambda00$1;
13413
13405
  var phi00$1;
13414
13406
  var p0;
13415
- var deltaSum;
13407
+ var deltaSum = adder();
13416
13408
  var ranges;
13417
13409
  var range$1;
13418
13410
  var boundsStream = {
@@ -13542,11 +13534,9 @@ var range$1;
13542
13534
  function bounds(feature) {
13543
13535
  var i, n, a, b, merged, deltaMax, delta;
13544
13536
 
13545
- if (deltaSum) deltaSum.reset();
13546
- else deltaSum = adder();
13547
13537
  phi1 = lambda1 = -(lambda0$1 = phi0 = Infinity);
13548
13538
  ranges = [];
13549
- stream(feature, boundsStream);
13539
+ geoStream(feature, boundsStream);
13550
13540
 
13551
13541
  // First, sort ranges by their minimum longitudes.
13552
13542
  if (n = ranges.length) {
@@ -13707,7 +13697,7 @@ var phi00$2;
13707
13697
  X0 = Y0 = Z0 =
13708
13698
  X1 = Y1 = Z1 =
13709
13699
  X2 = Y2 = Z2 = 0;
13710
- stream(object, centroidStream);
13700
+ geoStream(object, centroidStream);
13711
13701
 
13712
13702
  var x = X2,
13713
13703
  y = Y2,
@@ -14257,7 +14247,7 @@ var phi00$2;
14257
14247
  };
14258
14248
  }
14259
14249
 
14260
- var lengthSum;
14250
+ var lengthSum = adder();
14261
14251
  var lambda0$2;
14262
14252
  var sinPhi0$1;
14263
14253
  var cosPhi0$1;
@@ -14300,9 +14290,8 @@ var cosPhi0$1;
14300
14290
  }
14301
14291
 
14302
14292
  function length$2(object) {
14303
- if (lengthSum) lengthSum.reset();
14304
- else lengthSum = adder();
14305
- stream(object, lengthStream);
14293
+ lengthSum.reset();
14294
+ geoStream(object, lengthStream);
14306
14295
  return +lengthSum;
14307
14296
  }
14308
14297
 
@@ -14734,23 +14723,23 @@ var y0$3;
14734
14723
  function path(object) {
14735
14724
  if (object) {
14736
14725
  if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments));
14737
- stream(object, projectionStream(contextStream));
14726
+ geoStream(object, projectionStream(contextStream));
14738
14727
  }
14739
14728
  return contextStream.result();
14740
14729
  }
14741
14730
 
14742
14731
  path.area = function(object) {
14743
- stream(object, projectionStream(areaStream$1));
14732
+ geoStream(object, projectionStream(areaStream$1));
14744
14733
  return areaStream$1.result();
14745
14734
  };
14746
14735
 
14747
14736
  path.bounds = function(object) {
14748
- stream(object, projectionStream(boundsStream$1));
14737
+ geoStream(object, projectionStream(boundsStream$1));
14749
14738
  return boundsStream$1.result();
14750
14739
  };
14751
14740
 
14752
14741
  path.centroid = function(object) {
14753
- stream(object, projectionStream(centroidStream$1));
14742
+ geoStream(object, projectionStream(centroidStream$1));
14754
14743
  return centroidStream$1.result();
14755
14744
  };
14756
14745
 
@@ -14783,6 +14772,8 @@ var y0$3;
14783
14772
  angle = 0,
14784
14773
  winding = 0;
14785
14774
 
14775
+ sum$2.reset();
14776
+
14786
14777
  for (var i = 0, n = polygon.length; i < n; ++i) {
14787
14778
  if (!(m = (ring = polygon[i]).length)) continue;
14788
14779
  var ring,
@@ -14834,9 +14825,7 @@ var y0$3;
14834
14825
  // from the point to the South pole. If it is zero, then the point is the
14835
14826
  // same side as the South pole.
14836
14827
 
14837
- var contains = (angle < -epsilon$4 || angle < epsilon$4 && sum$2 < -epsilon$4) ^ (winding & 1);
14838
- sum$2.reset();
14839
- return contains;
14828
+ return (angle < -epsilon$4 || angle < epsilon$4 && sum$2 < -epsilon$4) ^ (winding & 1);
14840
14829
  }
14841
14830
 
14842
14831
  function clip(pointVisible, clipLine, interpolate, start) {
@@ -15263,6 +15252,43 @@ var y0$3;
15263
15252
  polygonEnd: function() { this.stream.polygonEnd(); }
15264
15253
  };
15265
15254
 
15255
+ function fit(project, extent, object) {
15256
+ var w = extent[1][0] - extent[0][0],
15257
+ h = extent[1][1] - extent[0][1],
15258
+ clip = project.clipExtent && project.clipExtent();
15259
+
15260
+ project
15261
+ .scale(150)
15262
+ .translate([0, 0]);
15263
+
15264
+ if (clip != null) project.clipExtent(null);
15265
+
15266
+ geoStream(object, project.stream(boundsStream$1));
15267
+
15268
+ var b = boundsStream$1.result(),
15269
+ k = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])),
15270
+ x = +extent[0][0] + (w - k * (b[1][0] + b[0][0])) / 2,
15271
+ y = +extent[0][1] + (h - k * (b[1][1] + b[0][1])) / 2;
15272
+
15273
+ if (clip != null) project.clipExtent(clip);
15274
+
15275
+ return project
15276
+ .scale(k * 150)
15277
+ .translate([x, y]);
15278
+ }
15279
+
15280
+ function fitSize(project) {
15281
+ return function(size, object) {
15282
+ return fit(project, [[0, 0], size], object);
15283
+ };
15284
+ }
15285
+
15286
+ function fitExtent(project) {
15287
+ return function(extent, object) {
15288
+ return fit(project, extent, object);
15289
+ };
15290
+ }
15291
+
15266
15292
  var maxDepth = 16;
15267
15293
  var cosMinDistance = cos$1(30 * radians);
15268
15294
  // cos(minimum angular distance)
@@ -15431,6 +15457,10 @@ var y0$3;
15431
15457
  return arguments.length ? (projectResample = resample(projectTransform, delta2 = _ * _), reset()) : sqrt$1(delta2);
15432
15458
  };
15433
15459
 
15460
+ projection.fitExtent = fitExtent(projection);
15461
+
15462
+ projection.fitSize = fitSize(projection);
15463
+
15434
15464
  function recenter() {
15435
15465
  projectRotate = compose(rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma), project);
15436
15466
  var center = project(lambda, phi);
@@ -15485,8 +15515,8 @@ var y0$3;
15485
15515
 
15486
15516
  function conicEqualArea() {
15487
15517
  return conicProjection(conicEqualAreaRaw)
15488
- .scale(151)
15489
- .translate([480, 347]);
15518
+ .scale(155.424)
15519
+ .center([0, 33.6442]);
15490
15520
  }
15491
15521
 
15492
15522
  function albers() {
@@ -15513,8 +15543,9 @@ var y0$3;
15513
15543
  }
15514
15544
 
15515
15545
  // A composite projection for the United States, configured by default for
15516
- // 960×500. Also works quite well at 960×600 with scale 1285. The set of
15517
- // standard parallels for each region comes from USGS, which is published here:
15546
+ // 960×500. The projection also works quite well at 960×600 if you change the
15547
+ // scale to 1285 and adjust the translate accordingly. The set of standard
15548
+ // parallels for each region comes from USGS, which is published here:
15518
15549
  // http://egsc.usgs.gov/isb/pubs/MapProjections/projections.html#albers
15519
15550
  function albersUsa() {
15520
15551
  var cache,
@@ -15580,6 +15611,10 @@ var y0$3;
15580
15611
  return albersUsa;
15581
15612
  };
15582
15613
 
15614
+ albersUsa.fitExtent = fitExtent(albersUsa);
15615
+
15616
+ albersUsa.fitSize = fitSize(albersUsa);
15617
+
15583
15618
  return albersUsa.scale(1070);
15584
15619
  }
15585
15620
 
@@ -15618,7 +15653,7 @@ var y0$3;
15618
15653
 
15619
15654
  function azimuthalEqualArea() {
15620
15655
  return projection(azimuthalEqualAreaRaw)
15621
- .scale(120)
15656
+ .scale(124.75)
15622
15657
  .clipAngle(180 - 1e-3);
15623
15658
  }
15624
15659
 
@@ -15632,7 +15667,7 @@ var y0$3;
15632
15667
 
15633
15668
  function azimuthalEquidistant() {
15634
15669
  return projection(azimuthalEquidistantRaw)
15635
- .scale(480 / tau$4)
15670
+ .scale(79.4188)
15636
15671
  .clipAngle(180 - 1e-3);
15637
15672
  }
15638
15673
 
@@ -15645,7 +15680,8 @@ var y0$3;
15645
15680
  };
15646
15681
 
15647
15682
  function mercator() {
15648
- return mercatorProjection(mercatorRaw);
15683
+ return mercatorProjection(mercatorRaw)
15684
+ .scale(961 / tau$4);
15649
15685
  }
15650
15686
 
15651
15687
  function mercatorProjection(project) {
@@ -15666,14 +15702,15 @@ var y0$3;
15666
15702
  m.clipExtent = function(_) {
15667
15703
  if (!arguments.length) return clipAuto ? null : clipExtent();
15668
15704
  if (clipAuto = _ == null) {
15669
- var k = pi$4 * scale(), t = translate();
15705
+ var k = pi$4 * scale(),
15706
+ t = translate();
15670
15707
  _ = [[t[0] - k, t[1] - k], [t[0] + k, t[1] + k]];
15671
15708
  }
15672
15709
  clipExtent(_);
15673
15710
  return m;
15674
15711
  };
15675
15712
 
15676
- return m.clipExtent(null).scale(961 / tau$4);
15713
+ return m.clipExtent(null);
15677
15714
  }
15678
15715
 
15679
15716
  function tany(y) {
@@ -15703,7 +15740,9 @@ var y0$3;
15703
15740
  }
15704
15741
 
15705
15742
  function conicConformal() {
15706
- return conicProjection(conicConformalRaw);
15743
+ return conicProjection(conicConformalRaw)
15744
+ .scale(109.5)
15745
+ .parallels([30, 30]);
15707
15746
  }
15708
15747
 
15709
15748
  function equirectangularRaw(lambda, phi) {
@@ -15713,7 +15752,8 @@ var y0$3;
15713
15752
  equirectangularRaw.invert = equirectangularRaw;
15714
15753
 
15715
15754
  function equirectangular() {
15716
- return projection(equirectangularRaw).scale(480 / pi$4);
15755
+ return projection(equirectangularRaw)
15756
+ .scale(152.63);
15717
15757
  }
15718
15758
 
15719
15759
  function conicEquidistantRaw(y0, y1) {
@@ -15738,8 +15778,8 @@ var y0$3;
15738
15778
 
15739
15779
  function conicEquidistant() {
15740
15780
  return conicProjection(conicEquidistantRaw)
15741
- .scale(128)
15742
- .translate([480, 280]);
15781
+ .scale(131.154)
15782
+ .center([0, 13.9389]);
15743
15783
  }
15744
15784
 
15745
15785
  function gnomonicRaw(x, y) {
@@ -15751,7 +15791,7 @@ var y0$3;
15751
15791
 
15752
15792
  function gnomonic() {
15753
15793
  return projection(gnomonicRaw)
15754
- .scale(139)
15794
+ .scale(144.049)
15755
15795
  .clipAngle(60);
15756
15796
  }
15757
15797
 
@@ -15763,7 +15803,7 @@ var y0$3;
15763
15803
 
15764
15804
  function orthographic() {
15765
15805
  return projection(orthographicRaw)
15766
- .scale(240)
15806
+ .scale(249.5)
15767
15807
  .clipAngle(90 + epsilon$4);
15768
15808
  }
15769
15809
 
@@ -15773,12 +15813,12 @@ var y0$3;
15773
15813
  }
15774
15814
 
15775
15815
  stereographicRaw.invert = azimuthalInvert(function(z) {
15776
- return 2 + atan(z);
15816
+ return 2 * atan(z);
15777
15817
  });
15778
15818
 
15779
15819
  function stereographic() {
15780
15820
  return projection(stereographicRaw)
15781
- .scale(240)
15821
+ .scale(250)
15782
15822
  .clipAngle(142);
15783
15823
  }
15784
15824
 
@@ -15803,7 +15843,8 @@ var y0$3;
15803
15843
  return arguments.length ? rotate([_[0], _[1], _.length > 2 ? _[2] + 90 : 90]) : (_ = rotate(), [_[0], _[1], _[2] - 90]);
15804
15844
  };
15805
15845
 
15806
- return rotate([0, 0, 90]);
15846
+ return rotate([0, 0, 90])
15847
+ .scale(159.155);
15807
15848
  }
15808
15849
 
15809
15850
  exports.version = version;
@@ -16177,11 +16218,11 @@ var y0$3;
16177
16218
  exports.geoRotation = rotation;
16178
16219
  exports.geoStereographic = stereographic;
16179
16220
  exports.geoStereographicRaw = stereographicRaw;
16180
- exports.geoStream = stream;
16221
+ exports.geoStream = geoStream;
16181
16222
  exports.geoTransform = transform$1;
16182
16223
  exports.geoTransverseMercator = transverseMercator;
16183
16224
  exports.geoTransverseMercatorRaw = transverseMercatorRaw;
16184
16225
 
16185
16226
  Object.defineProperty(exports, '__esModule', { value: true });
16186
16227
 
16187
- }));
16228
+ })));