Skip to content

Commit 9815d3f

Browse files
committed
precision 1 pixel
1 parent a209461 commit 9815d3f

File tree

2 files changed

+154
-154
lines changed

2 files changed

+154
-154
lines changed

src/transforms/centroid.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function poi({geometry = identity, ...options} = {}) {
6161
path(G[i]);
6262
for (const h of holes) polygons.find(([ring]) => polygonContains(ring, h[0]))?.push(h);
6363
const a = greatest(
64-
polygons.map((d) => polylabel(d, 0.01)),
64+
polygons.map((d) => polylabel(d)),
6565
(d) => d.distance
6666
);
6767
[X[i], Y[i]] = a ? [a[0], -a[1] / alpha] : path.centroid(G[i]);

0 commit comments

Comments
 (0)