@dra2020/baseclient 1.0.66 → 1.0.67
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/baseclient.js +22 -18
- package/dist/baseclient.js.map +1 -1
- package/package.json +11 -11
package/dist/baseclient.js
CHANGED
|
@@ -5296,7 +5296,7 @@ exports.makeConvexHullGrahamScan = makeConvexHullGrahamScan;
|
|
|
5296
5296
|
// it as an array if [x, y] points, in contrast to polyToExteriorPoints() which
|
|
5297
5297
|
// uses the packed format and the poly.ts-private point form.
|
|
5298
5298
|
function getExteriorPoints(poly) {
|
|
5299
|
-
let pp = poly_1.polyNormalize(poly);
|
|
5299
|
+
let pp = (0, poly_1.polyNormalize)(poly);
|
|
5300
5300
|
if (pp == null)
|
|
5301
5301
|
return null;
|
|
5302
5302
|
let points = [];
|
|
@@ -5687,7 +5687,7 @@ function polyMapToByCentroid(districts, centroids) {
|
|
|
5687
5687
|
let fIn = [];
|
|
5688
5688
|
fs.forEach((fDistrict, i) => {
|
|
5689
5689
|
if (BB.boundboxContains(bbDistricts[i], x, y))
|
|
5690
|
-
if (pointinpoly_1.polyContainsPoint(fDistrict, x, y))
|
|
5690
|
+
if ((0, pointinpoly_1.polyContainsPoint)(fDistrict, x, y))
|
|
5691
5691
|
fIn.push(i);
|
|
5692
5692
|
});
|
|
5693
5693
|
if (fIn.length == 1)
|
|
@@ -5985,7 +5985,7 @@ const M = __importStar(__webpack_require__(/*! ./matrix */ "./lib/poly/matrix.ts
|
|
|
5985
5985
|
const X = 0, Y = 1;
|
|
5986
5986
|
function minimumBoundingRectangle(poly) {
|
|
5987
5987
|
// Get the convex hull polygon in standard form
|
|
5988
|
-
const ch = poly_1.polyConvexHull(poly);
|
|
5988
|
+
const ch = (0, poly_1.polyConvexHull)(poly);
|
|
5989
5989
|
// Select the exterior points (outer ring = 0)
|
|
5990
5990
|
let chExt = ch[0];
|
|
5991
5991
|
// Close the loop (ring)
|
|
@@ -6593,7 +6593,7 @@ exports.polyToExteriorPoints = polyToExteriorPoints;
|
|
|
6593
6593
|
function polyConvexHull(poly, altAlgorithm) {
|
|
6594
6594
|
if (altAlgorithm !== undefined)
|
|
6595
6595
|
return makeConvexHullMonotoneChain2D(poly);
|
|
6596
|
-
return graham_scan_1.makeConvexHullGrahamScan(poly);
|
|
6596
|
+
return (0, graham_scan_1.makeConvexHullGrahamScan)(poly);
|
|
6597
6597
|
}
|
|
6598
6598
|
exports.polyConvexHull = polyConvexHull;
|
|
6599
6599
|
function makeConvexHullMonotoneChain2D(poly) {
|
|
@@ -7995,7 +7995,7 @@ function polySimplify(poly, tolerance = 0.0001) {
|
|
|
7995
7995
|
// p is polygon, array of rings, each ring is array of points which is what gets fed to underlying simplify routine.
|
|
7996
7996
|
let p = poly[i];
|
|
7997
7997
|
for (let j = 0; j < p.length; j++)
|
|
7998
|
-
p[j] = simplify_1.simplify(p[j], tolerance, true);
|
|
7998
|
+
p[j] = (0, simplify_1.simplify)(p[j], tolerance, true);
|
|
7999
7999
|
}
|
|
8000
8000
|
}
|
|
8001
8001
|
exports.polySimplify = polySimplify;
|
|
@@ -8129,7 +8129,7 @@ class QuadLevel {
|
|
|
8129
8129
|
if (!BB.boundboxContains(this.box, coord[0], coord[1]))
|
|
8130
8130
|
return null;
|
|
8131
8131
|
if (this.features) {
|
|
8132
|
-
let wp = this.features.find(wp => pointinpoly_1.polyContainsPoint(wp.p, coord[0], coord[1]));
|
|
8132
|
+
let wp = this.features.find(wp => (0, pointinpoly_1.polyContainsPoint)(wp.p, coord[0], coord[1]));
|
|
8133
8133
|
return wp ? wp.f : null;
|
|
8134
8134
|
}
|
|
8135
8135
|
else {
|
|
@@ -8971,7 +8971,7 @@ function topoSimplifyCollection(col, options) {
|
|
|
8971
8971
|
if (!bDecided) {
|
|
8972
8972
|
let pp = PP.polyPackTopoArcs(testtopo, arcs);
|
|
8973
8973
|
P.polyRewindRings(pp);
|
|
8974
|
-
if (shamos_1.selfIntersectFast(pp)) {
|
|
8974
|
+
if ((0, shamos_1.selfIntersectFast)(pp)) {
|
|
8975
8975
|
keepArcs(topo, oOld.arcs, keepweight);
|
|
8976
8976
|
nBad++;
|
|
8977
8977
|
}
|
|
@@ -10915,7 +10915,7 @@ exports.wrapLon = wrapLon;
|
|
|
10915
10915
|
\*******************************************/
|
|
10916
10916
|
/***/ ((module) => {
|
|
10917
10917
|
|
|
10918
|
-
module.exports = require("@dra2020/topojson-client")
|
|
10918
|
+
module.exports = require("@dra2020/topojson-client");
|
|
10919
10919
|
|
|
10920
10920
|
/***/ }),
|
|
10921
10921
|
|
|
@@ -10925,7 +10925,7 @@ module.exports = require("@dra2020/topojson-client");;
|
|
|
10925
10925
|
\*******************************************/
|
|
10926
10926
|
/***/ ((module) => {
|
|
10927
10927
|
|
|
10928
|
-
module.exports = require("@dra2020/topojson-server")
|
|
10928
|
+
module.exports = require("@dra2020/topojson-server");
|
|
10929
10929
|
|
|
10930
10930
|
/***/ }),
|
|
10931
10931
|
|
|
@@ -10935,7 +10935,7 @@ module.exports = require("@dra2020/topojson-server");;
|
|
|
10935
10935
|
\*********************************************/
|
|
10936
10936
|
/***/ ((module) => {
|
|
10937
10937
|
|
|
10938
|
-
module.exports = require("@dra2020/topojson-simplify")
|
|
10938
|
+
module.exports = require("@dra2020/topojson-simplify");
|
|
10939
10939
|
|
|
10940
10940
|
/***/ }),
|
|
10941
10941
|
|
|
@@ -10945,7 +10945,7 @@ module.exports = require("@dra2020/topojson-simplify");;
|
|
|
10945
10945
|
\***********************************/
|
|
10946
10946
|
/***/ ((module) => {
|
|
10947
10947
|
|
|
10948
|
-
module.exports = require("diff-match-patch")
|
|
10948
|
+
module.exports = require("diff-match-patch");
|
|
10949
10949
|
|
|
10950
10950
|
/***/ }),
|
|
10951
10951
|
|
|
@@ -10955,7 +10955,7 @@ module.exports = require("diff-match-patch");;
|
|
|
10955
10955
|
\***********************************/
|
|
10956
10956
|
/***/ ((module) => {
|
|
10957
10957
|
|
|
10958
|
-
module.exports = require("polygon-clipping")
|
|
10958
|
+
module.exports = require("polygon-clipping");
|
|
10959
10959
|
|
|
10960
10960
|
/***/ }),
|
|
10961
10961
|
|
|
@@ -10965,7 +10965,7 @@ module.exports = require("polygon-clipping");;
|
|
|
10965
10965
|
\****************************/
|
|
10966
10966
|
/***/ ((module) => {
|
|
10967
10967
|
|
|
10968
|
-
module.exports = require("splaytree")
|
|
10968
|
+
module.exports = require("splaytree");
|
|
10969
10969
|
|
|
10970
10970
|
/***/ }),
|
|
10971
10971
|
|
|
@@ -10975,7 +10975,7 @@ module.exports = require("splaytree");;
|
|
|
10975
10975
|
\****************************/
|
|
10976
10976
|
/***/ ((module) => {
|
|
10977
10977
|
|
|
10978
|
-
module.exports = require("tinyqueue")
|
|
10978
|
+
module.exports = require("tinyqueue");
|
|
10979
10979
|
|
|
10980
10980
|
/***/ })
|
|
10981
10981
|
|
|
@@ -10987,8 +10987,9 @@ module.exports = require("tinyqueue");;
|
|
|
10987
10987
|
/******/ // The require function
|
|
10988
10988
|
/******/ function __webpack_require__(moduleId) {
|
|
10989
10989
|
/******/ // Check if module is in cache
|
|
10990
|
-
/******/
|
|
10991
|
-
/******/
|
|
10990
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
10991
|
+
/******/ if (cachedModule !== undefined) {
|
|
10992
|
+
/******/ return cachedModule.exports;
|
|
10992
10993
|
/******/ }
|
|
10993
10994
|
/******/ // Create a new module (and put it into the cache)
|
|
10994
10995
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
@@ -11005,10 +11006,13 @@ module.exports = require("tinyqueue");;
|
|
|
11005
11006
|
/******/ }
|
|
11006
11007
|
/******/
|
|
11007
11008
|
/************************************************************************/
|
|
11008
|
-
/******/
|
|
11009
|
+
/******/
|
|
11009
11010
|
/******/ // startup
|
|
11010
11011
|
/******/ // Load entry module and return exports
|
|
11011
|
-
/******/
|
|
11012
|
+
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
11013
|
+
/******/ var __webpack_exports__ = __webpack_require__("./lib/all/all.ts");
|
|
11014
|
+
/******/
|
|
11015
|
+
/******/ return __webpack_exports__;
|
|
11012
11016
|
/******/ })()
|
|
11013
11017
|
;
|
|
11014
11018
|
});
|