diff --git a/config/importmap.rb b/config/importmap.rb index 20bf11f4..e0e4731e 100644 --- a/config/importmap.rb +++ b/config/importmap.rb @@ -95,7 +95,7 @@ pin "@turf/bearing", to: "@turf--bearing.js", preload: false # @7.3.5 pin "@turf/destination", to: "@turf--destination.js", preload: false # @7.3.5 pin "@turf/length", to: "@turf--length.js", preload: false # @7.4.0 -pin "@turf/area", to: "@turf--area.js", preload: false # @7.3.5 +pin "@turf/area", to: "@turf--area.js", preload: false # @7.4.0 pin "@turf/buffer", to: "@turf--buffer.js", preload: false # @7.3.5 pin "@turf/bbox", to: "@turf--bbox.js", preload: false # @7.3.5 pin "@turf/center", to: "@turf--center.js", preload: false # @7.3.5 diff --git a/vendor/javascript/@turf--area.js b/vendor/javascript/@turf--area.js index e35e5276..1723cbcb 100644 --- a/vendor/javascript/@turf--area.js +++ b/vendor/javascript/@turf--area.js @@ -1,4 +1,2 @@ -// @turf/area@7.4.0 downloaded from https://ga.jspm.io/npm:@turf/area@7.4.0/dist/esm/index.js - import{earthRadius as e}from"@turf/helpers";import{geomReduce as t}from"@turf/meta";function n(e){return t(e,(e,t)=>e+r(t),0)}function r(e){let t=0,n;switch(e.type){case`Polygon`:return i(e.coordinates);case`MultiPolygon`:for(n=0;n0){t+=Math.abs(s(e[0]));for(let n=1;n=t?(r+2)%t:r+2],c=i[0]*o,l=a[1]*o,u=s[0]*o;n+=(u-c)*Math.sin(l),r++}return n*a}var c=n;export{n as area,c as default};