@hpcc-js/map 3.2.1 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -529,7 +529,7 @@ var lambda0$1, phi0, lambda1, phi1, lambda2, lambda00$1, phi00$1, p0, deltaSum =
529
529
  boundsStream$2.point = boundsRingPoint, boundsStream$2.lineStart = boundsRingStart, boundsStream$2.lineEnd = boundsRingEnd, deltaSum.reset(), areaStream$1.polygonStart();
530
530
  },
531
531
  polygonEnd: function() {
532
- areaStream$1.polygonEnd(), boundsStream$2.point = boundsPoint$2, boundsStream$2.lineStart = boundsLineStart, boundsStream$2.lineEnd = boundsLineEnd, areaRingSum$1 < 0 ? (lambda0$1 = -(lambda1 = 180), phi0 = -(phi1 = 90)) : deltaSum > epsilon ? phi1 = 90 : deltaSum < -epsilon && (phi0 = -90), range[0] = lambda0$1, range[1] = lambda1;
532
+ areaStream$1.polygonEnd(), boundsStream$2.point = boundsPoint$2, boundsStream$2.lineStart = boundsLineStart, boundsStream$2.lineEnd = boundsLineEnd, areaRingSum$1 < 0 ? (lambda0$1 = -(lambda1 = 180), phi0 = -(phi1 = 90)) : deltaSum > epsilon ? phi1 = 90 : deltaSum < -1e-6 && (phi0 = -90), range[0] = lambda0$1, range[1] = lambda1;
533
533
  },
534
534
  sphere: function() {
535
535
  lambda0$1 = -(lambda1 = 180), phi0 = -(phi1 = 90);
@@ -823,7 +823,7 @@ function polygonContains(polygon, point) {
823
823
  (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) && (winding += antimeridian ^ delta >= 0 ? 1 : -1);
824
824
  }
825
825
  }
826
- return (angle2 < -epsilon || angle2 < epsilon && sum < -epsilon) ^ winding & 1;
826
+ return (angle2 < -1e-6 || angle2 < epsilon && sum < -1e-6) ^ winding & 1;
827
827
  }
828
828
  function clip(pointVisible, clipLine2, interpolate2, start) {
829
829
  return function(sink) {
@@ -1022,7 +1022,7 @@ function clipLine(a, b, x02, y02, x12, y12) {
1022
1022
  }
1023
1023
  }
1024
1024
  }
1025
- var clipMax = 1e9, clipMin = -clipMax;
1025
+ var clipMax = 1e9, clipMin = -1e9;
1026
1026
  function clipRectangle(x02, y02, x12, y12) {
1027
1027
  function visible(x, y) {
1028
1028
  return x02 <= x && x <= x12 && y02 <= y && y <= y12;
@@ -4306,7 +4306,7 @@ OpenStreet.prototype._class += " map_OpenStreet";
4306
4306
  OpenStreet.prototype.publish("tileProvider", "OpenStreetMap", "set", "Tile Provider", ["OpenStreetMap", "OpenStreetMap Hot", "MapQuest", "MapQuest Sat", "Stamen Watercolor", "OpenCycleMap"], { tags: ["Basic", "Shared"] });
4307
4307
  function stringify(scale, translate) {
4308
4308
  const k = scale / 256;
4309
- return "translate(" + -constScale / 2 + "," + -constScale / 2 + ") scale(" + k + ")";
4309
+ return "translate(" + -4096 / 2 + "," + -4096 / 2 + ") scale(" + k + ")";
4310
4310
  }
4311
4311
  class TopoJSONChoropleth extends Choropleth {
4312
4312
  constructor() {