@turf/line-segment 4.5.2 → 4.7.3

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.
Files changed (3) hide show
  1. package/README.md +1 -8
  2. package/index.js +1 -8
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -11,14 +11,7 @@ Creates a [FeatureCollection](http://geojson.org/geojson-spec.html#feature-colle
11
11
  **Examples**
12
12
 
13
13
  ```javascript
14
- var polygon = {
15
- "type": "Feature",
16
- "properties": {},
17
- "geometry": {
18
- "type": "Polygon",
19
- "coordinates": [[[-50, 5], [-40, -10], [-50, -10], [-40, 5], [-50, 5]]]
20
- }
21
- }
14
+ var polygon = turf.polygon([[[-50, 5], [-40, -10], [-50, -10], [-40, 5], [-50, 5]]]);
22
15
  var segments = turf.lineSegment(polygon);
23
16
 
24
17
  //addToMap
package/index.js CHANGED
@@ -11,14 +11,7 @@ var featureCollection = helpers.featureCollection;
11
11
  * @param {Geometry|FeatureCollection|Feature<LineString|MultiLineString|MultiPolygon|Polygon>} geojson GeoJSON Polygon or LineString
12
12
  * @returns {FeatureCollection<LineString>} 2-vertex line segments
13
13
  * @example
14
- * var polygon = {
15
- * "type": "Feature",
16
- * "properties": {},
17
- * "geometry": {
18
- * "type": "Polygon",
19
- * "coordinates": [[[-50, 5], [-40, -10], [-50, -10], [-40, 5], [-50, 5]]]
20
- * }
21
- * }
14
+ * var polygon = turf.polygon([[[-50, 5], [-40, -10], [-50, -10], [-40, 5], [-50, 5]]]);
22
15
  * var segments = turf.lineSegment(polygon);
23
16
  *
24
17
  * //addToMap
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/line-segment",
3
- "version": "4.5.2",
3
+ "version": "4.7.3",
4
4
  "description": "turf line-segment module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -34,8 +34,8 @@
34
34
  "write-json-file": "^2.0.0"
35
35
  },
36
36
  "dependencies": {
37
- "@turf/helpers": "^4.5.2",
38
- "@turf/invariant": "^4.5.2",
39
- "@turf/meta": "^4.5.2"
37
+ "@turf/helpers": "^4.7.3",
38
+ "@turf/invariant": "^4.7.3",
39
+ "@turf/meta": "^4.7.3"
40
40
  }
41
41
  }