@turf/explode 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 +3 -3
package/README.md CHANGED
@@ -11,14 +11,7 @@ Takes a feature or set of features and returns all positions as [points](http://
11
11
  **Examples**
12
12
 
13
13
  ```javascript
14
- var polygon = {
15
- "type": "Feature",
16
- "properties": {},
17
- "geometry": {
18
- "type": "Polygon",
19
- "coordinates": [[[-81, 41], [-88, 36], [-84, 31], [-80, 33], [-77, 39], [-81, 41]]]
20
- }
21
- };
14
+ var polygon = turf.polygon([[[-81, 41], [-88, 36], [-84, 31], [-80, 33], [-77, 39], [-81, 41]]]);
22
15
 
23
16
  var explode = turf.explode(polygon);
24
17
 
package/index.js CHANGED
@@ -13,14 +13,7 @@ var featureCollection = helpers.featureCollection;
13
13
  * @returns {FeatureCollection<point>} points representing the exploded input features
14
14
  * @throws {Error} if it encounters an unknown geometry type
15
15
  * @example
16
- * var polygon = {
17
- * "type": "Feature",
18
- * "properties": {},
19
- * "geometry": {
20
- * "type": "Polygon",
21
- * "coordinates": [[[-81, 41], [-88, 36], [-84, 31], [-80, 33], [-77, 39], [-81, 41]]]
22
- * }
23
- * };
16
+ * var polygon = turf.polygon([[[-81, 41], [-88, 36], [-84, 31], [-80, 33], [-77, 39], [-81, 41]]]);
24
17
  *
25
18
  * var explode = turf.explode(polygon);
26
19
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/explode",
3
- "version": "4.5.2",
3
+ "version": "4.7.3",
4
4
  "description": "turf explode module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -36,7 +36,7 @@
36
36
  "write-json-file": "^2.0.0"
37
37
  },
38
38
  "dependencies": {
39
- "@turf/helpers": "^4.5.2",
40
- "@turf/meta": "^4.5.2"
39
+ "@turf/helpers": "^4.7.3",
40
+ "@turf/meta": "^4.7.3"
41
41
  }
42
42
  }