From 9bbea5f8f17e9de9bbf7022ac675cd0526d28a2e Mon Sep 17 00:00:00 2001 From: "depfu[bot]" <23717796+depfu[bot]@users.noreply.github.com> Date: Wed, 22 Apr 2026 01:15:14 +0000 Subject: [PATCH] Update @turf/centroid to version 7.3.5 --- config/importmap.rb | 2 +- vendor/javascript/@turf--centroid.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/importmap.rb b/config/importmap.rb index db7d4408e..76a7ecaa8 100644 --- a/config/importmap.rb +++ b/config/importmap.rb @@ -84,7 +84,7 @@ pin "@turf/boolean-point-on-line", to: "@turf--boolean-point-on-line.js", preload: false # @7.3.5 pin "@turf/clean-coords", to: "@turf--clean-coords.js", preload: false # @7.3.4 pin "@turf/invariant", to: "@turf--invariant.js", preload: false # @7.3.5 -pin "@turf/centroid", to: "@turf--centroid.js", preload: false # @7.3.4 +pin "@turf/centroid", to: "@turf--centroid.js", preload: false # @7.3.5 pin "@turf/distance", to: "@turf--distance.js", preload: false # @7.3.5 pin "@turf/along", to: "@turf--along.js", preload: false # @7.3.4 pin "@turf/bearing", to: "@turf--bearing.js", preload: false # @7.3.4 diff --git a/vendor/javascript/@turf--centroid.js b/vendor/javascript/@turf--centroid.js index 8cb6988e0..6981df5a4 100644 --- a/vendor/javascript/@turf--centroid.js +++ b/vendor/javascript/@turf--centroid.js @@ -1,2 +1,2 @@ -import{point as t}from"@turf/helpers";import{coordEach as r}from"@turf/meta";function e(e,o={}){let f=0;let u=0;let p=0;r(e,(function(t){f+=t[0];u+=t[1];p++}),true);return t([f/p,u/p],o.properties)}var o=e;export{e as centroid,o as default}; +import{point as e}from"@turf/helpers";import{coordEach as t}from"@turf/meta";function n(n,r={}){let i=0,a=0,o=0;return t(n,function(e){i+=e[0],a+=e[1],o++},!0),e([i/o,a/o],r.properties)}var r=n;export{n as centroid,r as default};