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