@hpcc-js/map 2.79.1 → 2.79.2

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.es6.js CHANGED
@@ -21,8 +21,8 @@ function _mergeNamespaces(n, m) {
21
21
  }
22
22
 
23
23
  var PKG_NAME = "@hpcc-js/map";
24
- var PKG_VERSION = "2.79.1";
25
- var BUILD_VERSION = "2.108.2";
24
+ var PKG_VERSION = "2.79.2";
25
+ var BUILD_VERSION = "2.108.6";
26
26
 
27
27
  /******************************************************************************
28
28
  Copyright (c) Microsoft Corporation.
@@ -1077,7 +1077,7 @@ var boundsStream$2 = {
1077
1077
  boundsStream$2.lineEnd = boundsLineEnd;
1078
1078
  if (areaRingSum$1 < 0) lambda0$1 = -(lambda1 = 180), phi0 = -(phi1 = 90);
1079
1079
  else if (deltaSum > epsilon) phi1 = 90;
1080
- else if (deltaSum < -1e-6) phi0 = -90;
1080
+ else if (deltaSum < -epsilon) phi0 = -90;
1081
1081
  range[0] = lambda0$1, range[1] = lambda1;
1082
1082
  },
1083
1083
  sphere: function() {
@@ -1724,7 +1724,7 @@ function polygonContains(polygon, point) {
1724
1724
  // from the point to the South pole. If it is zero, then the point is the
1725
1725
  // same side as the South pole.
1726
1726
 
1727
- return (angle < -1e-6 || angle < epsilon && sum < -1e-6) ^ (winding & 1);
1727
+ return (angle < -epsilon || angle < epsilon && sum < -epsilon) ^ (winding & 1);
1728
1728
  }
1729
1729
 
1730
1730
  function clip(pointVisible, clipLine, interpolate, start) {
@@ -2175,7 +2175,7 @@ function clipLine(a, b, x0, y0, x1, y1) {
2175
2175
  return true;
2176
2176
  }
2177
2177
 
2178
- var clipMax = 1e9, clipMin = -1e9;
2178
+ var clipMax = 1e9, clipMin = -clipMax;
2179
2179
 
2180
2180
  // TODO Use d3-polygon’s polygonContains here for the ring check?
2181
2181
  // TODO Eliminate duplicate buffering in clipBuffer and polygon.push?
@@ -7674,7 +7674,7 @@ OpenStreet.prototype._class += " map_OpenStreet";
7674
7674
  OpenStreet.prototype.publish("tileProvider", "OpenStreetMap", "set", "Tile Provider", ["OpenStreetMap", "OpenStreetMap Hot", "MapQuest", "MapQuest Sat", "Stamen Watercolor", "OpenCycleMap"], { tags: ["Basic", "Shared"] });
7675
7675
  function stringify(scale, translate) {
7676
7676
  var k = scale / 256;
7677
- return "translate(" + -4096 / 2 + "," + -4096 / 2 + ") scale(" + k + ")";
7677
+ return "translate(" + -constScale / 2 + "," + -constScale / 2 + ") scale(" + k + ")";
7678
7678
  }
7679
7679
 
7680
7680
  var TestHeatMap = /** @class */ (function (_super) {
@@ -29264,28 +29264,28 @@ svg.leaflet-image-layer.leaflet-interactive path {
29264
29264
  /* harmony export */ Z: () => (/* binding */ LeafletLayer2),
29265
29265
  /* harmony export */ _: () => (/* binding */ HeatLayer)
29266
29266
  /* harmony export */ });
29267
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(608);
29268
- /* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(902);
29269
- /* harmony import */ var simpleheat__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(900);
29270
- /* harmony import */ var simpleheat__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(simpleheat__WEBPACK_IMPORTED_MODULE_1__);
29267
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(608);
29268
+ /* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(902);
29269
+ /* harmony import */ var simpleheat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(900);
29270
+ /* harmony import */ var simpleheat__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(simpleheat__WEBPACK_IMPORTED_MODULE_2__);
29271
29271
 
29272
29272
 
29273
29273
 
29274
- var simpleheat = window.simpleheat || (simpleheat__WEBPACK_IMPORTED_MODULE_1__ && (simpleheat__WEBPACK_IMPORTED_MODULE_1___default())) || simpleheat__WEBPACK_IMPORTED_MODULE_1__;
29274
+ var simpleheat = window.simpleheat || (simpleheat__WEBPACK_IMPORTED_MODULE_2__ && (simpleheat__WEBPACK_IMPORTED_MODULE_2___default())) || simpleheat__WEBPACK_IMPORTED_MODULE_2__;
29275
29275
  /* Ported from https://github.com/Leaflet/Leaflet.heat
29276
29276
  Changes:
29277
29277
  * Ported to TypeScript
29278
29278
  */
29279
29279
  var LeafletLayer2 = /** @class */ (function (_super) {
29280
- (0, tslib__WEBPACK_IMPORTED_MODULE_2__/* .__extends */ .C6)(LeafletLayer2, _super);
29280
+ (0, tslib__WEBPACK_IMPORTED_MODULE_0__/* .__extends */ .C6)(LeafletLayer2, _super);
29281
29281
  function LeafletLayer2() {
29282
29282
  return _super !== null && _super.apply(this, arguments) || this;
29283
29283
  }
29284
29284
  return LeafletLayer2;
29285
- }(leaflet__WEBPACK_IMPORTED_MODULE_0__.Layer));
29285
+ }(leaflet__WEBPACK_IMPORTED_MODULE_1__.Layer));
29286
29286
 
29287
29287
  var HeatLayer = /** @class */ (function (_super) {
29288
- (0, tslib__WEBPACK_IMPORTED_MODULE_2__/* .__extends */ .C6)(HeatLayer, _super);
29288
+ (0, tslib__WEBPACK_IMPORTED_MODULE_0__/* .__extends */ .C6)(HeatLayer, _super);
29289
29289
  // options: {
29290
29290
  // minOpacity: 0.05,
29291
29291
  // maxZoom: 18,
@@ -29319,7 +29319,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
29319
29319
  };
29320
29320
  HeatLayer.prototype.redraw = function () {
29321
29321
  if (this._heat && !this._frame && !this._map._animating) {
29322
- this._frame = leaflet__WEBPACK_IMPORTED_MODULE_0__.Util.requestAnimFrame(this._redraw, this);
29322
+ this._frame = leaflet__WEBPACK_IMPORTED_MODULE_1__.Util.requestAnimFrame(this._redraw, this);
29323
29323
  }
29324
29324
  return this;
29325
29325
  };
@@ -29330,7 +29330,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
29330
29330
  }
29331
29331
  map._panes.overlayPane.appendChild(this._canvas);
29332
29332
  map.on("moveend", this._reset, this);
29333
- if (map.options.zoomAnimation && leaflet__WEBPACK_IMPORTED_MODULE_0__.Browser.any3d) {
29333
+ if (map.options.zoomAnimation && leaflet__WEBPACK_IMPORTED_MODULE_1__.Browser.any3d) {
29334
29334
  map.on("zoomanim", this._animateZoom, this);
29335
29335
  }
29336
29336
  this._reset();
@@ -29349,14 +29349,14 @@ svg.leaflet-image-layer.leaflet-interactive path {
29349
29349
  return this;
29350
29350
  };
29351
29351
  HeatLayer.prototype._initCanvas = function () {
29352
- var canvas = this._canvas = leaflet__WEBPACK_IMPORTED_MODULE_0__.DomUtil.create("canvas", "leaflet-heatmap-layer leaflet-layer");
29353
- var originProp = leaflet__WEBPACK_IMPORTED_MODULE_0__.DomUtil.testProp(["transformOrigin", "WebkitTransformOrigin", "msTransformOrigin"]);
29352
+ var canvas = this._canvas = leaflet__WEBPACK_IMPORTED_MODULE_1__.DomUtil.create("canvas", "leaflet-heatmap-layer leaflet-layer");
29353
+ var originProp = leaflet__WEBPACK_IMPORTED_MODULE_1__.DomUtil.testProp(["transformOrigin", "WebkitTransformOrigin", "msTransformOrigin"]);
29354
29354
  canvas.style[originProp] = "50% 50%";
29355
29355
  var size = this._map.getSize();
29356
29356
  canvas.width = size.x;
29357
29357
  canvas.height = size.y;
29358
- var animated = this._map.options.zoomAnimation && leaflet__WEBPACK_IMPORTED_MODULE_0__.Browser.any3d;
29359
- leaflet__WEBPACK_IMPORTED_MODULE_0__.DomUtil.addClass(canvas, "leaflet-zoom-" + (animated ? "animated" : "hide"));
29358
+ var animated = this._map.options.zoomAnimation && leaflet__WEBPACK_IMPORTED_MODULE_1__.Browser.any3d;
29359
+ leaflet__WEBPACK_IMPORTED_MODULE_1__.DomUtil.addClass(canvas, "leaflet-zoom-" + (animated ? "animated" : "hide"));
29360
29360
  this._heat = simpleheat(canvas);
29361
29361
  this._updateOptions();
29362
29362
  };
@@ -29371,7 +29371,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
29371
29371
  };
29372
29372
  HeatLayer.prototype._reset = function () {
29373
29373
  var topLeft = this._map.containerPointToLayerPoint([0, 0]);
29374
- leaflet__WEBPACK_IMPORTED_MODULE_0__.DomUtil.setPosition(this._canvas, topLeft);
29374
+ leaflet__WEBPACK_IMPORTED_MODULE_1__.DomUtil.setPosition(this._canvas, topLeft);
29375
29375
  var size = this._map.getSize();
29376
29376
  if (this._heat._width !== size.x) {
29377
29377
  this._canvas.width = this._heat._width = size.x;
@@ -29385,7 +29385,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
29385
29385
  var data = [];
29386
29386
  var r = this._heat._r;
29387
29387
  var size = this._map.getSize();
29388
- var bounds = new leaflet__WEBPACK_IMPORTED_MODULE_0__.Bounds(leaflet__WEBPACK_IMPORTED_MODULE_0__.point([-r, -r]), size.add([r, r]));
29388
+ var bounds = new leaflet__WEBPACK_IMPORTED_MODULE_1__.Bounds(leaflet__WEBPACK_IMPORTED_MODULE_1__.point([-r, -r]), size.add([r, r]));
29389
29389
  var max = this.options.max === undefined ? 1 : this.options.max;
29390
29390
  var maxZoom = this.options.maxZoom === undefined ? this._map.getMaxZoom() : this.options.maxZoom;
29391
29391
  var v = 1 / Math.pow(2, Math.max(0, Math.min(maxZoom - this._map.getZoom(), 12)));
@@ -29447,11 +29447,11 @@ svg.leaflet-image-layer.leaflet-interactive path {
29447
29447
  HeatLayer.prototype._animateZoom = function (e) {
29448
29448
  var scale = this._map.getZoomScale(e.zoom);
29449
29449
  var offset = this._map._getCenterOffset(e.center)._multiplyBy(-scale).subtract(this._map._getMapPanePos());
29450
- if (leaflet__WEBPACK_IMPORTED_MODULE_0__.DomUtil.setTransform) {
29451
- leaflet__WEBPACK_IMPORTED_MODULE_0__.DomUtil.setTransform(this._canvas, offset, scale);
29450
+ if (leaflet__WEBPACK_IMPORTED_MODULE_1__.DomUtil.setTransform) {
29451
+ leaflet__WEBPACK_IMPORTED_MODULE_1__.DomUtil.setTransform(this._canvas, offset, scale);
29452
29452
  }
29453
29453
  else {
29454
- this._canvas.style[leaflet__WEBPACK_IMPORTED_MODULE_0__.DomUtil.TRANSFORM] = leaflet__WEBPACK_IMPORTED_MODULE_0__.DomUtil.getTranslateString(offset) + " scale(" + scale + ")";
29454
+ this._canvas.style[leaflet__WEBPACK_IMPORTED_MODULE_1__.DomUtil.TRANSFORM] = leaflet__WEBPACK_IMPORTED_MODULE_1__.DomUtil.getTranslateString(offset) + " scale(" + scale + ")";
29455
29455
  }
29456
29456
  };
29457
29457
  return HeatLayer;
@@ -29582,7 +29582,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
29582
29582
  /******/
29583
29583
  /******/ /* webpack/runtime/jsonp chunk loading */
29584
29584
  /******/ (() => {
29585
- /******/ __webpack_require__.b = document.baseURI || self.location.href;
29585
+ /******/ __webpack_require__.b = (typeof document !== 'undefined' && document.baseURI) || self.location.href;
29586
29586
  /******/
29587
29587
  /******/ // no chunk on demand loading
29588
29588
  /******/