@turf/point-on-feature 6.5.0 → 7.0.0-alpha.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/README.md CHANGED
@@ -6,15 +6,15 @@
6
6
 
7
7
  Takes a Feature or FeatureCollection and returns a [Point][1] guaranteed to be on the surface of the feature.
8
8
 
9
- - Given a [Polygon][2], the point will be in the area of the polygon
10
- - Given a [LineString][3], the point will be along the string
11
- - Given a [Point][1], the point will the same as the input
9
+ * Given a [Polygon][2], the point will be in the area of the polygon
10
+ * Given a [LineString][3], the point will be along the string
11
+ * Given a [Point][1], the point will the same as the input
12
12
 
13
- **Parameters**
13
+ ### Parameters
14
14
 
15
- - `geojson` **[GeoJSON][4]** any Feature or FeatureCollection
15
+ * `geojson` **[GeoJSON][4]** any Feature or FeatureCollection
16
16
 
17
- **Examples**
17
+ ### Examples
18
18
 
19
19
  ```javascript
20
20
  var polygon = turf.polygon([[
@@ -33,7 +33,7 @@ var pointOnPolygon = turf.pointOnFeature(polygon);
33
33
  var addToMap = [polygon, pointOnPolygon];
34
34
  ```
35
35
 
36
- Returns **[Feature][5]<[Point][6]>** a point on the surface of `input`
36
+ Returns **[Feature][5]<[Point][6]>** a point on the surface of `input`
37
37
 
38
38
  [1]: https://tools.ietf.org/html/rfc7946#section-3.1.2
39
39
 
package/dist/es/index.js CHANGED
File without changes
package/dist/js/index.js CHANGED
File without changes
package/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { Feature, Point, AllGeoJSON } from "@turf/helpers";
1
+ import { Feature, Point } from "geojson";
2
+ import { AllGeoJSON } from "@turf/helpers";
2
3
 
3
4
  /**
4
5
  * http://turfjs.org/docs/#pointonfeature
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/point-on-feature",
3
- "version": "6.5.0",
3
+ "version": "7.0.0-alpha.0",
4
4
  "description": "turf point-on-feature module",
5
5
  "author": "Turf Authors",
6
6
  "license": "MIT",
@@ -47,19 +47,19 @@
47
47
  "test:tape": "node -r esm test.js"
48
48
  },
49
49
  "devDependencies": {
50
- "@turf/meta": "^6.5.0",
51
- "@turf/truncate": "^6.5.0",
50
+ "@turf/meta": "^7.0.0-alpha.0",
51
+ "@turf/truncate": "^7.0.0-alpha.0",
52
52
  "benchmark": "*",
53
53
  "npm-run-all": "*",
54
54
  "rollup": "*",
55
55
  "tape": "*"
56
56
  },
57
57
  "dependencies": {
58
- "@turf/boolean-point-in-polygon": "^6.5.0",
59
- "@turf/center": "^6.5.0",
60
- "@turf/explode": "^6.5.0",
61
- "@turf/helpers": "^6.5.0",
62
- "@turf/nearest-point": "^6.5.0"
58
+ "@turf/boolean-point-in-polygon": "^7.0.0-alpha.0",
59
+ "@turf/center": "^7.0.0-alpha.0",
60
+ "@turf/explode": "^7.0.0-alpha.0",
61
+ "@turf/helpers": "^7.0.0-alpha.0",
62
+ "@turf/nearest-point": "^7.0.0-alpha.0"
63
63
  },
64
- "gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
64
+ "gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189"
65
65
  }