@turf/turf 7.0.0-alpha.2 → 7.0.0
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/dist/cjs/index.cjs +231 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index.d.cts +124 -0
- package/dist/esm/index.d.ts +124 -0
- package/dist/esm/index.js +231 -0
- package/dist/esm/index.js.map +1 -0
- package/package.json +144 -128
- package/turf.min.js +31 -120
- package/dist/es/index.js +0 -118
- package/dist/es/package.json +0 -1
- package/dist/js/index.js +0 -896
- package/index.d.ts +0 -125
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
// index.ts
|
|
2
|
+
import { along } from "@turf/along";
|
|
3
|
+
import { angle } from "@turf/angle";
|
|
4
|
+
import { area } from "@turf/area";
|
|
5
|
+
import { bbox } from "@turf/bbox";
|
|
6
|
+
import { bboxClip } from "@turf/bbox-clip";
|
|
7
|
+
import { bboxPolygon } from "@turf/bbox-polygon";
|
|
8
|
+
import { bearing } from "@turf/bearing";
|
|
9
|
+
import { bezierSpline } from "@turf/bezier-spline";
|
|
10
|
+
import { booleanClockwise } from "@turf/boolean-clockwise";
|
|
11
|
+
import { booleanConcave } from "@turf/boolean-concave";
|
|
12
|
+
import { booleanContains } from "@turf/boolean-contains";
|
|
13
|
+
import { booleanCrosses } from "@turf/boolean-crosses";
|
|
14
|
+
import { booleanDisjoint } from "@turf/boolean-disjoint";
|
|
15
|
+
import { booleanEqual } from "@turf/boolean-equal";
|
|
16
|
+
import { booleanIntersects } from "@turf/boolean-intersects";
|
|
17
|
+
import { booleanOverlap } from "@turf/boolean-overlap";
|
|
18
|
+
import { booleanParallel } from "@turf/boolean-parallel";
|
|
19
|
+
import { booleanPointInPolygon } from "@turf/boolean-point-in-polygon";
|
|
20
|
+
import { booleanPointOnLine } from "@turf/boolean-point-on-line";
|
|
21
|
+
import { booleanTouches } from "@turf/boolean-touches";
|
|
22
|
+
import { booleanValid } from "@turf/boolean-valid";
|
|
23
|
+
import { booleanWithin } from "@turf/boolean-within";
|
|
24
|
+
import { buffer } from "@turf/buffer";
|
|
25
|
+
import { center } from "@turf/center";
|
|
26
|
+
import { centerMean } from "@turf/center-mean";
|
|
27
|
+
import { centerMedian } from "@turf/center-median";
|
|
28
|
+
import { centerOfMass } from "@turf/center-of-mass";
|
|
29
|
+
import { centroid } from "@turf/centroid";
|
|
30
|
+
import { circle } from "@turf/circle";
|
|
31
|
+
import { cleanCoords } from "@turf/clean-coords";
|
|
32
|
+
export * from "@turf/clone";
|
|
33
|
+
export * from "@turf/clusters";
|
|
34
|
+
import * as clusters from "@turf/clusters";
|
|
35
|
+
import { clustersDbscan } from "@turf/clusters-dbscan";
|
|
36
|
+
import { clustersKmeans } from "@turf/clusters-kmeans";
|
|
37
|
+
import { collect } from "@turf/collect";
|
|
38
|
+
import { combine } from "@turf/combine";
|
|
39
|
+
import { concave } from "@turf/concave";
|
|
40
|
+
import { convex } from "@turf/convex";
|
|
41
|
+
import { destination } from "@turf/destination";
|
|
42
|
+
import { difference } from "@turf/difference";
|
|
43
|
+
import { dissolve } from "@turf/dissolve";
|
|
44
|
+
import { distance } from "@turf/distance";
|
|
45
|
+
import { distanceWeight } from "@turf/distance-weight";
|
|
46
|
+
import { ellipse } from "@turf/ellipse";
|
|
47
|
+
import { envelope } from "@turf/envelope";
|
|
48
|
+
import { explode } from "@turf/explode";
|
|
49
|
+
import { flatten } from "@turf/flatten";
|
|
50
|
+
import { flip } from "@turf/flip";
|
|
51
|
+
import { geojsonRbush } from "@turf/geojson-rbush";
|
|
52
|
+
import { greatCircle } from "@turf/great-circle";
|
|
53
|
+
export * from "@turf/helpers";
|
|
54
|
+
import * as helpers from "@turf/helpers";
|
|
55
|
+
import { hexGrid } from "@turf/hex-grid";
|
|
56
|
+
import { interpolate } from "@turf/interpolate";
|
|
57
|
+
import { intersect } from "@turf/intersect";
|
|
58
|
+
export * from "@turf/invariant";
|
|
59
|
+
import * as invariant from "@turf/invariant";
|
|
60
|
+
import { isobands } from "@turf/isobands";
|
|
61
|
+
import { isolines } from "@turf/isolines";
|
|
62
|
+
import { kinks } from "@turf/kinks";
|
|
63
|
+
import { length } from "@turf/length";
|
|
64
|
+
import { lineArc } from "@turf/line-arc";
|
|
65
|
+
import { lineChunk } from "@turf/line-chunk";
|
|
66
|
+
import { lineIntersect } from "@turf/line-intersect";
|
|
67
|
+
import { lineOffset } from "@turf/line-offset";
|
|
68
|
+
import { lineOverlap } from "@turf/line-overlap";
|
|
69
|
+
import { lineSegment } from "@turf/line-segment";
|
|
70
|
+
import { lineSlice } from "@turf/line-slice";
|
|
71
|
+
import { lineSliceAlong } from "@turf/line-slice-along";
|
|
72
|
+
import { lineSplit } from "@turf/line-split";
|
|
73
|
+
import { lineToPolygon } from "@turf/line-to-polygon";
|
|
74
|
+
import { mask } from "@turf/mask";
|
|
75
|
+
export * from "@turf/meta";
|
|
76
|
+
import * as meta from "@turf/meta";
|
|
77
|
+
import { midpoint } from "@turf/midpoint";
|
|
78
|
+
import { moranIndex } from "@turf/moran-index";
|
|
79
|
+
export * from "@turf/nearest-neighbor-analysis";
|
|
80
|
+
import { nearestPoint } from "@turf/nearest-point";
|
|
81
|
+
import { nearestPointOnLine } from "@turf/nearest-point-on-line";
|
|
82
|
+
import { nearestPointToLine } from "@turf/nearest-point-to-line";
|
|
83
|
+
import { planepoint } from "@turf/planepoint";
|
|
84
|
+
import { pointGrid } from "@turf/point-grid";
|
|
85
|
+
import { pointOnFeature } from "@turf/point-on-feature";
|
|
86
|
+
import { pointsWithinPolygon } from "@turf/points-within-polygon";
|
|
87
|
+
import { pointToLineDistance } from "@turf/point-to-line-distance";
|
|
88
|
+
import { polygonize } from "@turf/polygonize";
|
|
89
|
+
import { polygonSmooth } from "@turf/polygon-smooth";
|
|
90
|
+
import { polygonTangents } from "@turf/polygon-tangents";
|
|
91
|
+
import { polygonToLine } from "@turf/polygon-to-line";
|
|
92
|
+
export * from "@turf/projection";
|
|
93
|
+
import * as projection from "@turf/projection";
|
|
94
|
+
export * from "@turf/quadrat-analysis";
|
|
95
|
+
export * from "@turf/random";
|
|
96
|
+
import * as random from "@turf/random";
|
|
97
|
+
import { rectangleGrid } from "@turf/rectangle-grid";
|
|
98
|
+
import { rewind } from "@turf/rewind";
|
|
99
|
+
import { rhumbBearing } from "@turf/rhumb-bearing";
|
|
100
|
+
import { rhumbDestination } from "@turf/rhumb-destination";
|
|
101
|
+
import { rhumbDistance } from "@turf/rhumb-distance";
|
|
102
|
+
import { sample } from "@turf/sample";
|
|
103
|
+
import { sector } from "@turf/sector";
|
|
104
|
+
import { shortestPath } from "@turf/shortest-path";
|
|
105
|
+
import { simplify } from "@turf/simplify";
|
|
106
|
+
import { square } from "@turf/square";
|
|
107
|
+
import { squareGrid } from "@turf/square-grid";
|
|
108
|
+
import { standardDeviationalEllipse } from "@turf/standard-deviational-ellipse";
|
|
109
|
+
import { tag } from "@turf/tag";
|
|
110
|
+
import { tesselate } from "@turf/tesselate";
|
|
111
|
+
import { tin } from "@turf/tin";
|
|
112
|
+
import { transformRotate } from "@turf/transform-rotate";
|
|
113
|
+
import { transformScale } from "@turf/transform-scale";
|
|
114
|
+
import { transformTranslate } from "@turf/transform-translate";
|
|
115
|
+
import { triangleGrid } from "@turf/triangle-grid";
|
|
116
|
+
import { truncate } from "@turf/truncate";
|
|
117
|
+
import { union } from "@turf/union";
|
|
118
|
+
import { unkinkPolygon } from "@turf/unkink-polygon";
|
|
119
|
+
import { voronoi } from "@turf/voronoi";
|
|
120
|
+
export {
|
|
121
|
+
along,
|
|
122
|
+
angle,
|
|
123
|
+
area,
|
|
124
|
+
bbox,
|
|
125
|
+
bboxClip,
|
|
126
|
+
bboxPolygon,
|
|
127
|
+
bearing,
|
|
128
|
+
bezierSpline,
|
|
129
|
+
booleanClockwise,
|
|
130
|
+
booleanConcave,
|
|
131
|
+
booleanContains,
|
|
132
|
+
booleanCrosses,
|
|
133
|
+
booleanDisjoint,
|
|
134
|
+
booleanEqual,
|
|
135
|
+
booleanIntersects,
|
|
136
|
+
booleanOverlap,
|
|
137
|
+
booleanParallel,
|
|
138
|
+
booleanPointInPolygon,
|
|
139
|
+
booleanPointOnLine,
|
|
140
|
+
booleanTouches,
|
|
141
|
+
booleanValid,
|
|
142
|
+
booleanWithin,
|
|
143
|
+
buffer,
|
|
144
|
+
center,
|
|
145
|
+
centerMean,
|
|
146
|
+
centerMedian,
|
|
147
|
+
centerOfMass,
|
|
148
|
+
centroid,
|
|
149
|
+
circle,
|
|
150
|
+
cleanCoords,
|
|
151
|
+
clusters,
|
|
152
|
+
clustersDbscan,
|
|
153
|
+
clustersKmeans,
|
|
154
|
+
collect,
|
|
155
|
+
combine,
|
|
156
|
+
concave,
|
|
157
|
+
convex,
|
|
158
|
+
destination,
|
|
159
|
+
difference,
|
|
160
|
+
dissolve,
|
|
161
|
+
distance,
|
|
162
|
+
distanceWeight,
|
|
163
|
+
ellipse,
|
|
164
|
+
envelope,
|
|
165
|
+
explode,
|
|
166
|
+
flatten,
|
|
167
|
+
flip,
|
|
168
|
+
geojsonRbush,
|
|
169
|
+
greatCircle,
|
|
170
|
+
helpers,
|
|
171
|
+
hexGrid,
|
|
172
|
+
interpolate,
|
|
173
|
+
intersect,
|
|
174
|
+
invariant,
|
|
175
|
+
isobands,
|
|
176
|
+
isolines,
|
|
177
|
+
kinks,
|
|
178
|
+
length,
|
|
179
|
+
lineArc,
|
|
180
|
+
lineChunk,
|
|
181
|
+
lineIntersect,
|
|
182
|
+
lineOffset,
|
|
183
|
+
lineOverlap,
|
|
184
|
+
lineSegment,
|
|
185
|
+
lineSlice,
|
|
186
|
+
lineSliceAlong,
|
|
187
|
+
lineSplit,
|
|
188
|
+
lineToPolygon,
|
|
189
|
+
mask,
|
|
190
|
+
meta,
|
|
191
|
+
midpoint,
|
|
192
|
+
moranIndex,
|
|
193
|
+
nearestPoint,
|
|
194
|
+
nearestPointOnLine,
|
|
195
|
+
nearestPointToLine,
|
|
196
|
+
planepoint,
|
|
197
|
+
pointGrid,
|
|
198
|
+
pointOnFeature,
|
|
199
|
+
pointToLineDistance,
|
|
200
|
+
pointsWithinPolygon,
|
|
201
|
+
polygonSmooth,
|
|
202
|
+
polygonTangents,
|
|
203
|
+
polygonToLine,
|
|
204
|
+
polygonize,
|
|
205
|
+
projection,
|
|
206
|
+
random,
|
|
207
|
+
rectangleGrid,
|
|
208
|
+
rewind,
|
|
209
|
+
rhumbBearing,
|
|
210
|
+
rhumbDestination,
|
|
211
|
+
rhumbDistance,
|
|
212
|
+
sample,
|
|
213
|
+
sector,
|
|
214
|
+
shortestPath,
|
|
215
|
+
simplify,
|
|
216
|
+
square,
|
|
217
|
+
squareGrid,
|
|
218
|
+
standardDeviationalEllipse,
|
|
219
|
+
tag,
|
|
220
|
+
tesselate,
|
|
221
|
+
tin,
|
|
222
|
+
transformRotate,
|
|
223
|
+
transformScale,
|
|
224
|
+
transformTranslate,
|
|
225
|
+
triangleGrid,
|
|
226
|
+
truncate,
|
|
227
|
+
union,
|
|
228
|
+
unkinkPolygon,
|
|
229
|
+
voronoi
|
|
230
|
+
};
|
|
231
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../index.ts"],"sourcesContent":["/**\n * Turf is a modular geospatial analysis engine written in JavaScript. It performs geospatial\n * processing tasks with GeoJSON data and can be run on a server or in a browser.\n *\n * @module turf\n * @summary Geospatial analysis for JavaScript\n */\nexport { along } from \"@turf/along\";\nexport { angle } from \"@turf/angle\";\nexport { area } from \"@turf/area\";\nexport { bbox } from \"@turf/bbox\";\nexport { bboxClip } from \"@turf/bbox-clip\";\nexport { bboxPolygon } from \"@turf/bbox-polygon\";\nexport { bearing } from \"@turf/bearing\";\nexport { bezierSpline } from \"@turf/bezier-spline\";\nexport { booleanClockwise } from \"@turf/boolean-clockwise\";\nexport { booleanConcave } from \"@turf/boolean-concave\";\nexport { booleanContains } from \"@turf/boolean-contains\";\nexport { booleanCrosses } from \"@turf/boolean-crosses\";\nexport { booleanDisjoint } from \"@turf/boolean-disjoint\";\nexport { booleanEqual } from \"@turf/boolean-equal\";\nexport { booleanIntersects } from \"@turf/boolean-intersects\";\nexport { booleanOverlap } from \"@turf/boolean-overlap\";\nexport { booleanParallel } from \"@turf/boolean-parallel\";\nexport { booleanPointInPolygon } from \"@turf/boolean-point-in-polygon\";\nexport { booleanPointOnLine } from \"@turf/boolean-point-on-line\";\nexport { booleanTouches } from \"@turf/boolean-touches\";\nexport { booleanValid } from \"@turf/boolean-valid\";\nexport { booleanWithin } from \"@turf/boolean-within\";\nexport { buffer } from \"@turf/buffer\"; // JSTS Module\nexport { center } from \"@turf/center\";\nexport { centerMean } from \"@turf/center-mean\";\nexport { centerMedian } from \"@turf/center-median\";\nexport { centerOfMass } from \"@turf/center-of-mass\";\nexport { centroid } from \"@turf/centroid\";\nexport { circle } from \"@turf/circle\";\nexport { cleanCoords } from \"@turf/clean-coords\";\nexport * from \"@turf/clone\";\nexport * from \"@turf/clusters\";\nexport * as clusters from \"@turf/clusters\";\nexport { clustersDbscan } from \"@turf/clusters-dbscan\";\nexport { clustersKmeans } from \"@turf/clusters-kmeans\";\nexport { collect } from \"@turf/collect\";\nexport { combine } from \"@turf/combine\";\nexport { concave } from \"@turf/concave\";\nexport { convex } from \"@turf/convex\";\nexport { destination } from \"@turf/destination\";\nexport { difference } from \"@turf/difference\"; // JSTS Module\nexport { dissolve } from \"@turf/dissolve\"; // JSTS Sub-Model\nexport { distance } from \"@turf/distance\";\nexport { distanceWeight } from \"@turf/distance-weight\";\nexport { ellipse } from \"@turf/ellipse\";\nexport { envelope } from \"@turf/envelope\";\nexport { explode } from \"@turf/explode\";\nexport { flatten } from \"@turf/flatten\";\nexport { flip } from \"@turf/flip\";\nexport { geojsonRbush } from \"@turf/geojson-rbush\";\nexport { greatCircle } from \"@turf/great-circle\";\nexport * from \"@turf/helpers\";\nexport * as helpers from \"@turf/helpers\";\nexport { hexGrid } from \"@turf/hex-grid\"; // JSTS Sub-Model\nexport { interpolate } from \"@turf/interpolate\"; // JSTS Sub-Model\nexport { intersect } from \"@turf/intersect\"; // JSTS Module\nexport * from \"@turf/invariant\";\nexport * as invariant from \"@turf/invariant\";\nexport { isobands } from \"@turf/isobands\";\nexport { isolines } from \"@turf/isolines\";\nexport { kinks } from \"@turf/kinks\";\nexport { length } from \"@turf/length\";\nexport { lineArc } from \"@turf/line-arc\";\nexport { lineChunk } from \"@turf/line-chunk\";\nexport { lineIntersect } from \"@turf/line-intersect\";\nexport { lineOffset } from \"@turf/line-offset\";\nexport { lineOverlap } from \"@turf/line-overlap\";\nexport { lineSegment } from \"@turf/line-segment\";\nexport { lineSlice } from \"@turf/line-slice\";\nexport { lineSliceAlong } from \"@turf/line-slice-along\";\nexport { lineSplit } from \"@turf/line-split\";\nexport { lineToPolygon } from \"@turf/line-to-polygon\";\nexport { mask } from \"@turf/mask\"; // JSTS Sub-Model\nexport * from \"@turf/meta\";\nexport * as meta from \"@turf/meta\";\nexport { midpoint } from \"@turf/midpoint\";\nexport { moranIndex } from \"@turf/moran-index\";\nexport * from \"@turf/nearest-neighbor-analysis\";\nexport { nearestPoint } from \"@turf/nearest-point\";\nexport { nearestPointOnLine } from \"@turf/nearest-point-on-line\";\nexport { nearestPointToLine } from \"@turf/nearest-point-to-line\";\nexport { planepoint } from \"@turf/planepoint\";\nexport { pointGrid } from \"@turf/point-grid\";\nexport { pointOnFeature } from \"@turf/point-on-feature\";\nexport { pointsWithinPolygon } from \"@turf/points-within-polygon\";\nexport { pointToLineDistance } from \"@turf/point-to-line-distance\";\nexport { polygonize } from \"@turf/polygonize\";\nexport { polygonSmooth } from \"@turf/polygon-smooth\";\nexport { polygonTangents } from \"@turf/polygon-tangents\";\nexport { polygonToLine } from \"@turf/polygon-to-line\";\nexport * from \"@turf/projection\";\nexport * as projection from \"@turf/projection\";\nexport * from \"@turf/quadrat-analysis\";\nexport * from \"@turf/random\";\nexport * as random from \"@turf/random\";\nexport { rectangleGrid } from \"@turf/rectangle-grid\"; // JSTS Sub-Model\nexport { rewind } from \"@turf/rewind\";\nexport { rhumbBearing } from \"@turf/rhumb-bearing\";\nexport { rhumbDestination } from \"@turf/rhumb-destination\";\nexport { rhumbDistance } from \"@turf/rhumb-distance\";\nexport { sample } from \"@turf/sample\";\nexport { sector } from \"@turf/sector\";\nexport { shortestPath } from \"@turf/shortest-path\";\nexport { simplify } from \"@turf/simplify\";\nexport { square } from \"@turf/square\";\nexport { squareGrid } from \"@turf/square-grid\"; // JSTS Sub-Model\nexport { standardDeviationalEllipse } from \"@turf/standard-deviational-ellipse\";\nexport { tag } from \"@turf/tag\";\nexport { tesselate } from \"@turf/tesselate\";\nexport { tin } from \"@turf/tin\";\nexport { transformRotate } from \"@turf/transform-rotate\";\nexport { transformScale } from \"@turf/transform-scale\";\nexport { transformTranslate } from \"@turf/transform-translate\";\nexport { triangleGrid } from \"@turf/triangle-grid\"; // JSTS Sub-Model\nexport { truncate } from \"@turf/truncate\";\nexport { union } from \"@turf/union\"; // JSTS Module\nexport { unkinkPolygon } from \"@turf/unkink-polygon\";\nexport { voronoi } from \"@turf/voronoi\";\n"],"mappings":";AAOA,SAAS,aAAa;AACtB,SAAS,aAAa;AACtB,SAAS,YAAY;AACrB,SAAS,YAAY;AACrB,SAAS,gBAAgB;AACzB,SAAS,mBAAmB;AAC5B,SAAS,eAAe;AACxB,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,oBAAoB;AAC7B,SAAS,yBAAyB;AAClC,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AACnC,SAAS,sBAAsB;AAC/B,SAAS,oBAAoB;AAC7B,SAAS,qBAAqB;AAC9B,SAAS,cAAc;AACvB,SAAS,cAAc;AACvB,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,oBAAoB;AAC7B,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAS,mBAAmB;AAC5B,cAAc;AACd,cAAc;AACd,YAAY,cAAc;AAC1B,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AACzB,SAAS,sBAAsB;AAC/B,SAAS,eAAe;AACxB,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAC5B,cAAc;AACd,YAAY,aAAa;AACzB,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAC5B,SAAS,iBAAiB;AAC1B,cAAc;AACd,YAAY,eAAe;AAC3B,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AACzB,SAAS,aAAa;AACtB,SAAS,cAAc;AACvB,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,mBAAmB;AAC5B,SAAS,iBAAiB;AAC1B,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,qBAAqB;AAC9B,SAAS,YAAY;AACrB,cAAc;AACd,YAAY,UAAU;AACtB,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,cAAc;AACd,SAAS,oBAAoB;AAC7B,SAAS,0BAA0B;AACnC,SAAS,0BAA0B;AACnC,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,SAAS,sBAAsB;AAC/B,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAChC,SAAS,qBAAqB;AAC9B,cAAc;AACd,YAAY,gBAAgB;AAC5B,cAAc;AACd,cAAc;AACd,YAAY,YAAY;AACxB,SAAS,qBAAqB;AAC9B,SAAS,cAAc;AACvB,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,qBAAqB;AAC9B,SAAS,cAAc;AACvB,SAAS,cAAc;AACvB,SAAS,oBAAoB;AAC7B,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAS,kBAAkB;AAC3B,SAAS,kCAAkC;AAC3C,SAAS,WAAW;AACpB,SAAS,iBAAiB;AAC1B,SAAS,WAAW;AACpB,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,0BAA0B;AACnC,SAAS,oBAAoB;AAC7B,SAAS,gBAAgB;AACzB,SAAS,aAAa;AACtB,SAAS,qBAAqB;AAC9B,SAAS,eAAe;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/turf",
|
|
3
|
-
"version": "7.0.0
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "a JavaScript library for performing geospatial operations with GeoJSON",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,152 +43,168 @@
|
|
|
43
43
|
"jenks",
|
|
44
44
|
"sample"
|
|
45
45
|
],
|
|
46
|
-
"
|
|
47
|
-
"
|
|
46
|
+
"type": "module",
|
|
47
|
+
"main": "dist/cjs/index.cjs",
|
|
48
|
+
"module": "dist/esm/index.js",
|
|
49
|
+
"types": "dist/esm/index.d.ts",
|
|
48
50
|
"exports": {
|
|
49
51
|
"./package.json": "./package.json",
|
|
50
52
|
".": {
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
"import": {
|
|
54
|
+
"types": "./dist/esm/index.d.ts",
|
|
55
|
+
"default": "./dist/esm/index.js"
|
|
56
|
+
},
|
|
57
|
+
"require": {
|
|
58
|
+
"types": "./dist/cjs/index.d.cts",
|
|
59
|
+
"default": "./dist/cjs/index.cjs"
|
|
60
|
+
}
|
|
54
61
|
}
|
|
55
62
|
},
|
|
56
63
|
"browser": "turf.min.js",
|
|
57
|
-
"types": "index.d.ts",
|
|
58
64
|
"sideEffects": false,
|
|
59
65
|
"files": [
|
|
60
66
|
"dist",
|
|
61
|
-
"index.d.ts",
|
|
62
67
|
"turf.min.js"
|
|
63
68
|
],
|
|
64
69
|
"scripts": {
|
|
65
|
-
"build": "
|
|
70
|
+
"build": "tsup --config ../../tsup.config.ts && rollup -c rollup.config.js",
|
|
66
71
|
"last-checks": "npm-run-all last-checks:testjs last-checks:example",
|
|
67
72
|
"last-checks:example": "tsx test.example.js",
|
|
68
|
-
"last-checks:testjs": "tsx test.
|
|
73
|
+
"last-checks:testjs": "tsx test.ts",
|
|
69
74
|
"test": "echo '@turf/turf tests run in the last-checks step'"
|
|
70
75
|
},
|
|
71
76
|
"devDependencies": {
|
|
72
|
-
"@babel/core": "^7.
|
|
73
|
-
"@babel/preset-env": "^7.
|
|
74
|
-
"@rollup/plugin-babel": "^
|
|
75
|
-
"@rollup/plugin-commonjs": "^
|
|
76
|
-
"@rollup/plugin-node-resolve": "^
|
|
77
|
-
"
|
|
77
|
+
"@babel/core": "^7.23.2",
|
|
78
|
+
"@babel/preset-env": "^7.23.2",
|
|
79
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
80
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
81
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
82
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
83
|
+
"@types/tape": "^4.2.32",
|
|
84
|
+
"camelcase": "^8.0.0",
|
|
78
85
|
"documentation": "^13.2.5",
|
|
79
|
-
"glob": "
|
|
80
|
-
"rollup": "^2.
|
|
81
|
-
"rollup-plugin-
|
|
82
|
-
"tape": "
|
|
83
|
-
"
|
|
86
|
+
"glob": "^10.3.10",
|
|
87
|
+
"rollup": "^2.79.1",
|
|
88
|
+
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
89
|
+
"tape": "^5.7.2",
|
|
90
|
+
"tsup": "^8.0.1",
|
|
91
|
+
"tsx": "^4.6.2",
|
|
92
|
+
"typescript": "^5.2.2"
|
|
84
93
|
},
|
|
85
94
|
"dependencies": {
|
|
86
|
-
"@turf/along": "^7.0.0
|
|
87
|
-
"@turf/angle": "^7.0.0
|
|
88
|
-
"@turf/area": "^7.0.0
|
|
89
|
-
"@turf/bbox": "^7.0.0
|
|
90
|
-
"@turf/bbox-clip": "^7.0.0
|
|
91
|
-
"@turf/bbox-polygon": "^7.0.0
|
|
92
|
-
"@turf/bearing": "^7.0.0
|
|
93
|
-
"@turf/bezier-spline": "^7.0.0
|
|
94
|
-
"@turf/boolean-clockwise": "^7.0.0
|
|
95
|
-
"@turf/boolean-
|
|
96
|
-
"@turf/boolean-
|
|
97
|
-
"@turf/boolean-
|
|
98
|
-
"@turf/boolean-
|
|
99
|
-
"@turf/boolean-
|
|
100
|
-
"@turf/boolean-
|
|
101
|
-
"@turf/boolean-
|
|
102
|
-
"@turf/boolean-
|
|
103
|
-
"@turf/boolean-point-
|
|
104
|
-
"@turf/boolean-
|
|
105
|
-
"@turf/boolean-
|
|
106
|
-
"@turf/
|
|
107
|
-
"@turf/
|
|
108
|
-
"@turf/
|
|
109
|
-
"@turf/center
|
|
110
|
-
"@turf/center-
|
|
111
|
-
"@turf/
|
|
112
|
-
"@turf/
|
|
113
|
-
"@turf/
|
|
114
|
-
"@turf/
|
|
115
|
-
"@turf/
|
|
116
|
-
"@turf/
|
|
117
|
-
"@turf/clusters
|
|
118
|
-
"@turf/
|
|
119
|
-
"@turf/
|
|
120
|
-
"@turf/
|
|
121
|
-
"@turf/
|
|
122
|
-
"@turf/
|
|
123
|
-
"@turf/
|
|
124
|
-
"@turf/
|
|
125
|
-
"@turf/
|
|
126
|
-
"@turf/
|
|
127
|
-
"@turf/
|
|
128
|
-
"@turf/
|
|
129
|
-
"@turf/
|
|
130
|
-
"@turf/
|
|
131
|
-
"@turf/
|
|
132
|
-
"@turf/
|
|
133
|
-
"@turf/
|
|
134
|
-
"@turf/
|
|
135
|
-
"@turf/
|
|
136
|
-
"@turf/
|
|
137
|
-
"@turf/
|
|
138
|
-
"@turf/
|
|
139
|
-
"@turf/
|
|
140
|
-
"@turf/
|
|
141
|
-
"@turf/
|
|
142
|
-
"@turf/
|
|
143
|
-
"@turf/
|
|
144
|
-
"@turf/
|
|
145
|
-
"@turf/line-
|
|
146
|
-
"@turf/line-
|
|
147
|
-
"@turf/line-
|
|
148
|
-
"@turf/line-
|
|
149
|
-
"@turf/line-
|
|
150
|
-
"@turf/line-
|
|
151
|
-
"@turf/line-
|
|
152
|
-
"@turf/
|
|
153
|
-
"@turf/
|
|
154
|
-
"@turf/
|
|
155
|
-
"@turf/
|
|
156
|
-
"@turf/
|
|
157
|
-
"@turf/
|
|
158
|
-
"@turf/
|
|
159
|
-
"@turf/
|
|
160
|
-
"@turf/point
|
|
161
|
-
"@turf/point-on-
|
|
162
|
-
"@turf/point-to-line
|
|
163
|
-
"@turf/
|
|
164
|
-
"@turf/
|
|
165
|
-
"@turf/
|
|
166
|
-
"@turf/
|
|
167
|
-
"@turf/
|
|
168
|
-
"@turf/
|
|
169
|
-
"@turf/
|
|
170
|
-
"@turf/
|
|
171
|
-
"@turf/
|
|
172
|
-
"@turf/
|
|
173
|
-
"@turf/
|
|
174
|
-
"@turf/
|
|
175
|
-
"@turf/
|
|
176
|
-
"@turf/
|
|
177
|
-
"@turf/
|
|
178
|
-
"@turf/
|
|
179
|
-
"@turf/
|
|
180
|
-
"@turf/
|
|
181
|
-
"@turf/
|
|
182
|
-
"@turf/
|
|
183
|
-
"@turf/
|
|
184
|
-
"@turf/
|
|
185
|
-
"@turf/
|
|
186
|
-
"@turf/
|
|
187
|
-
"@turf/
|
|
188
|
-
"@turf/
|
|
189
|
-
"@turf/
|
|
190
|
-
"@turf/
|
|
191
|
-
"@turf/
|
|
95
|
+
"@turf/along": "^7.0.0",
|
|
96
|
+
"@turf/angle": "^7.0.0",
|
|
97
|
+
"@turf/area": "^7.0.0",
|
|
98
|
+
"@turf/bbox": "^7.0.0",
|
|
99
|
+
"@turf/bbox-clip": "^7.0.0",
|
|
100
|
+
"@turf/bbox-polygon": "^7.0.0",
|
|
101
|
+
"@turf/bearing": "^7.0.0",
|
|
102
|
+
"@turf/bezier-spline": "^7.0.0",
|
|
103
|
+
"@turf/boolean-clockwise": "^7.0.0",
|
|
104
|
+
"@turf/boolean-concave": "^7.0.0",
|
|
105
|
+
"@turf/boolean-contains": "^7.0.0",
|
|
106
|
+
"@turf/boolean-crosses": "^7.0.0",
|
|
107
|
+
"@turf/boolean-disjoint": "^7.0.0",
|
|
108
|
+
"@turf/boolean-equal": "^7.0.0",
|
|
109
|
+
"@turf/boolean-intersects": "^7.0.0",
|
|
110
|
+
"@turf/boolean-overlap": "^7.0.0",
|
|
111
|
+
"@turf/boolean-parallel": "^7.0.0",
|
|
112
|
+
"@turf/boolean-point-in-polygon": "^7.0.0",
|
|
113
|
+
"@turf/boolean-point-on-line": "^7.0.0",
|
|
114
|
+
"@turf/boolean-touches": "^7.0.0",
|
|
115
|
+
"@turf/boolean-valid": "^7.0.0",
|
|
116
|
+
"@turf/boolean-within": "^7.0.0",
|
|
117
|
+
"@turf/buffer": "^7.0.0",
|
|
118
|
+
"@turf/center": "^7.0.0",
|
|
119
|
+
"@turf/center-mean": "^7.0.0",
|
|
120
|
+
"@turf/center-median": "^7.0.0",
|
|
121
|
+
"@turf/center-of-mass": "^7.0.0",
|
|
122
|
+
"@turf/centroid": "^7.0.0",
|
|
123
|
+
"@turf/circle": "^7.0.0",
|
|
124
|
+
"@turf/clean-coords": "^7.0.0",
|
|
125
|
+
"@turf/clone": "^7.0.0",
|
|
126
|
+
"@turf/clusters": "^7.0.0",
|
|
127
|
+
"@turf/clusters-dbscan": "^7.0.0",
|
|
128
|
+
"@turf/clusters-kmeans": "^7.0.0",
|
|
129
|
+
"@turf/collect": "^7.0.0",
|
|
130
|
+
"@turf/combine": "^7.0.0",
|
|
131
|
+
"@turf/concave": "^7.0.0",
|
|
132
|
+
"@turf/convex": "^7.0.0",
|
|
133
|
+
"@turf/destination": "^7.0.0",
|
|
134
|
+
"@turf/difference": "^7.0.0",
|
|
135
|
+
"@turf/dissolve": "^7.0.0",
|
|
136
|
+
"@turf/distance": "^7.0.0",
|
|
137
|
+
"@turf/distance-weight": "^7.0.0",
|
|
138
|
+
"@turf/ellipse": "^7.0.0",
|
|
139
|
+
"@turf/envelope": "^7.0.0",
|
|
140
|
+
"@turf/explode": "^7.0.0",
|
|
141
|
+
"@turf/flatten": "^7.0.0",
|
|
142
|
+
"@turf/flip": "^7.0.0",
|
|
143
|
+
"@turf/geojson-rbush": "^7.0.0",
|
|
144
|
+
"@turf/great-circle": "^7.0.0",
|
|
145
|
+
"@turf/helpers": "^7.0.0",
|
|
146
|
+
"@turf/hex-grid": "^7.0.0",
|
|
147
|
+
"@turf/interpolate": "^7.0.0",
|
|
148
|
+
"@turf/intersect": "^7.0.0",
|
|
149
|
+
"@turf/invariant": "^7.0.0",
|
|
150
|
+
"@turf/isobands": "^7.0.0",
|
|
151
|
+
"@turf/isolines": "^7.0.0",
|
|
152
|
+
"@turf/kinks": "^7.0.0",
|
|
153
|
+
"@turf/length": "^7.0.0",
|
|
154
|
+
"@turf/line-arc": "^7.0.0",
|
|
155
|
+
"@turf/line-chunk": "^7.0.0",
|
|
156
|
+
"@turf/line-intersect": "^7.0.0",
|
|
157
|
+
"@turf/line-offset": "^7.0.0",
|
|
158
|
+
"@turf/line-overlap": "^7.0.0",
|
|
159
|
+
"@turf/line-segment": "^7.0.0",
|
|
160
|
+
"@turf/line-slice": "^7.0.0",
|
|
161
|
+
"@turf/line-slice-along": "^7.0.0",
|
|
162
|
+
"@turf/line-split": "^7.0.0",
|
|
163
|
+
"@turf/line-to-polygon": "^7.0.0",
|
|
164
|
+
"@turf/mask": "^7.0.0",
|
|
165
|
+
"@turf/meta": "^7.0.0",
|
|
166
|
+
"@turf/midpoint": "^7.0.0",
|
|
167
|
+
"@turf/moran-index": "^7.0.0",
|
|
168
|
+
"@turf/nearest-neighbor-analysis": "^7.0.0",
|
|
169
|
+
"@turf/nearest-point": "^7.0.0",
|
|
170
|
+
"@turf/nearest-point-on-line": "^7.0.0",
|
|
171
|
+
"@turf/nearest-point-to-line": "^7.0.0",
|
|
172
|
+
"@turf/planepoint": "^7.0.0",
|
|
173
|
+
"@turf/point-grid": "^7.0.0",
|
|
174
|
+
"@turf/point-on-feature": "^7.0.0",
|
|
175
|
+
"@turf/point-to-line-distance": "^7.0.0",
|
|
176
|
+
"@turf/points-within-polygon": "^7.0.0",
|
|
177
|
+
"@turf/polygon-smooth": "^7.0.0",
|
|
178
|
+
"@turf/polygon-tangents": "^7.0.0",
|
|
179
|
+
"@turf/polygon-to-line": "^7.0.0",
|
|
180
|
+
"@turf/polygonize": "^7.0.0",
|
|
181
|
+
"@turf/projection": "^7.0.0",
|
|
182
|
+
"@turf/quadrat-analysis": "^7.0.0",
|
|
183
|
+
"@turf/random": "^7.0.0",
|
|
184
|
+
"@turf/rectangle-grid": "^7.0.0",
|
|
185
|
+
"@turf/rewind": "^7.0.0",
|
|
186
|
+
"@turf/rhumb-bearing": "^7.0.0",
|
|
187
|
+
"@turf/rhumb-destination": "^7.0.0",
|
|
188
|
+
"@turf/rhumb-distance": "^7.0.0",
|
|
189
|
+
"@turf/sample": "^7.0.0",
|
|
190
|
+
"@turf/sector": "^7.0.0",
|
|
191
|
+
"@turf/shortest-path": "^7.0.0",
|
|
192
|
+
"@turf/simplify": "^7.0.0",
|
|
193
|
+
"@turf/square": "^7.0.0",
|
|
194
|
+
"@turf/square-grid": "^7.0.0",
|
|
195
|
+
"@turf/standard-deviational-ellipse": "^7.0.0",
|
|
196
|
+
"@turf/tag": "^7.0.0",
|
|
197
|
+
"@turf/tesselate": "^7.0.0",
|
|
198
|
+
"@turf/tin": "^7.0.0",
|
|
199
|
+
"@turf/transform-rotate": "^7.0.0",
|
|
200
|
+
"@turf/transform-scale": "^7.0.0",
|
|
201
|
+
"@turf/transform-translate": "^7.0.0",
|
|
202
|
+
"@turf/triangle-grid": "^7.0.0",
|
|
203
|
+
"@turf/truncate": "^7.0.0",
|
|
204
|
+
"@turf/union": "^7.0.0",
|
|
205
|
+
"@turf/unkink-polygon": "^7.0.0",
|
|
206
|
+
"@turf/voronoi": "^7.0.0",
|
|
207
|
+
"tslib": "^2.6.2"
|
|
192
208
|
},
|
|
193
|
-
"gitHead": "
|
|
209
|
+
"gitHead": "3d3a7917025fbabe191dbddbc89754b86f9c7739"
|
|
194
210
|
}
|