@decidables/detectable-elements 0.2.9 → 0.2.11
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/CHANGELOG.md +16 -0
- package/lib/detectableElements.esm.js +12 -17
- package/lib/detectableElements.esm.js.map +1 -1
- package/lib/detectableElements.esm.min.js +31 -31
- package/lib/detectableElements.esm.min.js.map +1 -1
- package/lib/detectableElements.umd.js +12 -17
- package/lib/detectableElements.umd.js.map +1 -1
- package/lib/detectableElements.umd.min.js +31 -31
- package/lib/detectableElements.umd.min.js.map +1 -1
- package/package.json +4 -4
|
@@ -722,7 +722,6 @@
|
|
|
722
722
|
const ascendingBisect = bisector(ascending$2);
|
|
723
723
|
const bisectRight = ascendingBisect.right;
|
|
724
724
|
bisector(number$2).center;
|
|
725
|
-
var bisect = bisectRight;
|
|
726
725
|
|
|
727
726
|
function count(values, valueof) {
|
|
728
727
|
let count = 0;
|
|
@@ -996,7 +995,7 @@
|
|
|
996
995
|
} else {
|
|
997
996
|
for (i = 0; i < n; ++i) {
|
|
998
997
|
if ((x = values[i]) != null && x0 <= x && x <= x1) {
|
|
999
|
-
bins[
|
|
998
|
+
bins[bisectRight(tz, x, 0, m)].push(data[i]);
|
|
1000
999
|
}
|
|
1001
1000
|
}
|
|
1002
1001
|
}
|
|
@@ -5093,7 +5092,6 @@
|
|
|
5093
5092
|
function areaRingEnd() {
|
|
5094
5093
|
areaPoint(x00$2, y00$2);
|
|
5095
5094
|
}
|
|
5096
|
-
var pathArea = areaStream;
|
|
5097
5095
|
|
|
5098
5096
|
var x0$2 = Infinity,
|
|
5099
5097
|
y0$2 = x0$2,
|
|
@@ -5117,7 +5115,6 @@
|
|
|
5117
5115
|
if (y < y0$2) y0$2 = y;
|
|
5118
5116
|
if (y > y1) y1 = y;
|
|
5119
5117
|
}
|
|
5120
|
-
var boundsStream$1 = boundsStream;
|
|
5121
5118
|
|
|
5122
5119
|
// TODO Enforce positive area for exterior, negative area for interior?
|
|
5123
5120
|
|
|
@@ -5200,7 +5197,6 @@
|
|
|
5200
5197
|
Z2 += z * 3;
|
|
5201
5198
|
centroidPoint(x0$1 = x, y0$1 = y);
|
|
5202
5199
|
}
|
|
5203
|
-
var pathCentroid = centroidStream;
|
|
5204
5200
|
|
|
5205
5201
|
function PathContext(context) {
|
|
5206
5202
|
this._context = context;
|
|
@@ -5283,7 +5279,6 @@
|
|
|
5283
5279
|
lengthSum.add(sqrt(x0 * x0 + y0 * y0));
|
|
5284
5280
|
x0 = x, y0 = y;
|
|
5285
5281
|
}
|
|
5286
|
-
var pathMeasure = lengthStream;
|
|
5287
5282
|
|
|
5288
5283
|
// Simple caching for constant-radius points.
|
|
5289
5284
|
let cacheDigits, cacheAppend, cacheRadius, cacheCircle;
|
|
@@ -5385,20 +5380,20 @@
|
|
|
5385
5380
|
return contextStream.result();
|
|
5386
5381
|
}
|
|
5387
5382
|
path.area = function (object) {
|
|
5388
|
-
geoStream(object, projectionStream(
|
|
5389
|
-
return
|
|
5383
|
+
geoStream(object, projectionStream(areaStream));
|
|
5384
|
+
return areaStream.result();
|
|
5390
5385
|
};
|
|
5391
5386
|
path.measure = function (object) {
|
|
5392
|
-
geoStream(object, projectionStream(
|
|
5393
|
-
return
|
|
5387
|
+
geoStream(object, projectionStream(lengthStream));
|
|
5388
|
+
return lengthStream.result();
|
|
5394
5389
|
};
|
|
5395
5390
|
path.bounds = function (object) {
|
|
5396
|
-
geoStream(object, projectionStream(boundsStream
|
|
5397
|
-
return boundsStream
|
|
5391
|
+
geoStream(object, projectionStream(boundsStream));
|
|
5392
|
+
return boundsStream.result();
|
|
5398
5393
|
};
|
|
5399
5394
|
path.centroid = function (object) {
|
|
5400
|
-
geoStream(object, projectionStream(
|
|
5401
|
-
return
|
|
5395
|
+
geoStream(object, projectionStream(centroidStream));
|
|
5396
|
+
return centroidStream.result();
|
|
5402
5397
|
};
|
|
5403
5398
|
path.projection = function (_) {
|
|
5404
5399
|
if (!arguments.length) return projection;
|
|
@@ -5464,8 +5459,8 @@
|
|
|
5464
5459
|
var clip = projection.clipExtent && projection.clipExtent();
|
|
5465
5460
|
projection.scale(150).translate([0, 0]);
|
|
5466
5461
|
if (clip != null) projection.clipExtent(null);
|
|
5467
|
-
geoStream(object, projection.stream(boundsStream
|
|
5468
|
-
fitBounds(boundsStream
|
|
5462
|
+
geoStream(object, projection.stream(boundsStream));
|
|
5463
|
+
fitBounds(boundsStream.result());
|
|
5469
5464
|
if (clip != null) projection.clipExtent(clip);
|
|
5470
5465
|
return projection;
|
|
5471
5466
|
}
|
|
@@ -5662,7 +5657,7 @@
|
|
|
5662
5657
|
r[i] = interpolate(range[i], range[i + 1]);
|
|
5663
5658
|
}
|
|
5664
5659
|
return function (x) {
|
|
5665
|
-
var i =
|
|
5660
|
+
var i = bisectRight(domain, x, 1, j) - 1;
|
|
5666
5661
|
return r[i](d[i](x));
|
|
5667
5662
|
};
|
|
5668
5663
|
}
|