@turf/tesselate
Advanced tools
Comparing version 4.5.2 to 4.6.0
@@ -13,10 +13,3 @@ var polygon = require('@turf/helpers').polygon; | ||
* @example | ||
* var poly = { | ||
* "type": "Feature", | ||
* "properties": {}, | ||
* "geometry": { | ||
* "type": "Polygon", | ||
* "coordinates": [[[11, 0], [22, 4], [31, 0], [31, 11], [21, 15], [11, 11], [11, 0]]] | ||
* } | ||
* } | ||
* var poly = turf.polygon([[[11, 0], [22, 4], [31, 0], [31, 11], [21, 15], [11, 11], [11, 0]]]); | ||
* var triangles = turf.tesselate(poly); | ||
@@ -23,0 +16,0 @@ * |
{ | ||
"name": "@turf/tesselate", | ||
"version": "4.5.2", | ||
"version": "4.6.0", | ||
"description": "turf tesselate module", | ||
@@ -44,5 +44,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@turf/helpers": "^4.5.2", | ||
"@turf/helpers": "^4.6.0", | ||
"earcut": "^2.0.0" | ||
} | ||
} |
@@ -15,10 +15,3 @@ # @turf/tesselate | ||
```javascript | ||
var poly = { | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [[[11, 0], [22, 4], [31, 0], [31, 11], [21, 15], [11, 11], [11, 0]]] | ||
} | ||
} | ||
var poly = turf.polygon([[[11, 0], [22, 4], [31, 0], [31, 11], [21, 15], [11, 11], [11, 0]]]); | ||
var triangles = turf.tesselate(poly); | ||
@@ -25,0 +18,0 @@ |
5988
71
48
Updated@turf/helpers@^4.6.0