@decidables/detectable-elements 0.2.10 → 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 +8 -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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.2.11](https://github.com/decidables/decidables/compare/@decidables/detectable-elements@0.2.10...@decidables/detectable-elements@0.2.11) (2024-01-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @decidables/detectable-elements
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.2.10](https://github.com/decidables/decidables/compare/@decidables/detectable-elements@0.2.9...@decidables/detectable-elements@0.2.10) (2023-12-31)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @decidables/detectable-elements
|
|
@@ -716,7 +716,6 @@ function number$2(x) {
|
|
|
716
716
|
const ascendingBisect = bisector(ascending$2);
|
|
717
717
|
const bisectRight = ascendingBisect.right;
|
|
718
718
|
bisector(number$2).center;
|
|
719
|
-
var bisect = bisectRight;
|
|
720
719
|
|
|
721
720
|
function count(values, valueof) {
|
|
722
721
|
let count = 0;
|
|
@@ -990,7 +989,7 @@ function bin() {
|
|
|
990
989
|
} else {
|
|
991
990
|
for (i = 0; i < n; ++i) {
|
|
992
991
|
if ((x = values[i]) != null && x0 <= x && x <= x1) {
|
|
993
|
-
bins[
|
|
992
|
+
bins[bisectRight(tz, x, 0, m)].push(data[i]);
|
|
994
993
|
}
|
|
995
994
|
}
|
|
996
995
|
}
|
|
@@ -5087,7 +5086,6 @@ function areaPoint(x, y) {
|
|
|
5087
5086
|
function areaRingEnd() {
|
|
5088
5087
|
areaPoint(x00$2, y00$2);
|
|
5089
5088
|
}
|
|
5090
|
-
var pathArea = areaStream;
|
|
5091
5089
|
|
|
5092
5090
|
var x0$2 = Infinity,
|
|
5093
5091
|
y0$2 = x0$2,
|
|
@@ -5111,7 +5109,6 @@ function boundsPoint(x, y) {
|
|
|
5111
5109
|
if (y < y0$2) y0$2 = y;
|
|
5112
5110
|
if (y > y1) y1 = y;
|
|
5113
5111
|
}
|
|
5114
|
-
var boundsStream$1 = boundsStream;
|
|
5115
5112
|
|
|
5116
5113
|
// TODO Enforce positive area for exterior, negative area for interior?
|
|
5117
5114
|
|
|
@@ -5194,7 +5191,6 @@ function centroidPointRing(x, y) {
|
|
|
5194
5191
|
Z2 += z * 3;
|
|
5195
5192
|
centroidPoint(x0$1 = x, y0$1 = y);
|
|
5196
5193
|
}
|
|
5197
|
-
var pathCentroid = centroidStream;
|
|
5198
5194
|
|
|
5199
5195
|
function PathContext(context) {
|
|
5200
5196
|
this._context = context;
|
|
@@ -5277,7 +5273,6 @@ function lengthPoint(x, y) {
|
|
|
5277
5273
|
lengthSum.add(sqrt(x0 * x0 + y0 * y0));
|
|
5278
5274
|
x0 = x, y0 = y;
|
|
5279
5275
|
}
|
|
5280
|
-
var pathMeasure = lengthStream;
|
|
5281
5276
|
|
|
5282
5277
|
// Simple caching for constant-radius points.
|
|
5283
5278
|
let cacheDigits, cacheAppend, cacheRadius, cacheCircle;
|
|
@@ -5379,20 +5374,20 @@ function index (projection, context) {
|
|
|
5379
5374
|
return contextStream.result();
|
|
5380
5375
|
}
|
|
5381
5376
|
path.area = function (object) {
|
|
5382
|
-
geoStream(object, projectionStream(
|
|
5383
|
-
return
|
|
5377
|
+
geoStream(object, projectionStream(areaStream));
|
|
5378
|
+
return areaStream.result();
|
|
5384
5379
|
};
|
|
5385
5380
|
path.measure = function (object) {
|
|
5386
|
-
geoStream(object, projectionStream(
|
|
5387
|
-
return
|
|
5381
|
+
geoStream(object, projectionStream(lengthStream));
|
|
5382
|
+
return lengthStream.result();
|
|
5388
5383
|
};
|
|
5389
5384
|
path.bounds = function (object) {
|
|
5390
|
-
geoStream(object, projectionStream(boundsStream
|
|
5391
|
-
return boundsStream
|
|
5385
|
+
geoStream(object, projectionStream(boundsStream));
|
|
5386
|
+
return boundsStream.result();
|
|
5392
5387
|
};
|
|
5393
5388
|
path.centroid = function (object) {
|
|
5394
|
-
geoStream(object, projectionStream(
|
|
5395
|
-
return
|
|
5389
|
+
geoStream(object, projectionStream(centroidStream));
|
|
5390
|
+
return centroidStream.result();
|
|
5396
5391
|
};
|
|
5397
5392
|
path.projection = function (_) {
|
|
5398
5393
|
if (!arguments.length) return projection;
|
|
@@ -5458,8 +5453,8 @@ function fit(projection, fitBounds, object) {
|
|
|
5458
5453
|
var clip = projection.clipExtent && projection.clipExtent();
|
|
5459
5454
|
projection.scale(150).translate([0, 0]);
|
|
5460
5455
|
if (clip != null) projection.clipExtent(null);
|
|
5461
|
-
geoStream(object, projection.stream(boundsStream
|
|
5462
|
-
fitBounds(boundsStream
|
|
5456
|
+
geoStream(object, projection.stream(boundsStream));
|
|
5457
|
+
fitBounds(boundsStream.result());
|
|
5463
5458
|
if (clip != null) projection.clipExtent(clip);
|
|
5464
5459
|
return projection;
|
|
5465
5460
|
}
|
|
@@ -5656,7 +5651,7 @@ function polymap(domain, range, interpolate) {
|
|
|
5656
5651
|
r[i] = interpolate(range[i], range[i + 1]);
|
|
5657
5652
|
}
|
|
5658
5653
|
return function (x) {
|
|
5659
|
-
var i =
|
|
5654
|
+
var i = bisectRight(domain, x, 1, j) - 1;
|
|
5660
5655
|
return r[i](d[i](x));
|
|
5661
5656
|
};
|
|
5662
5657
|
}
|