simplepolygon 2.0.0 → 2.0.2

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
@@ -22,6 +22,8 @@ You can optionally build this package locally by running:
22
22
  npm run build
23
23
  ```
24
24
 
25
+ Commands for tests and benchmarking are included. Run `DEBUG=* pnpm run test` to run tests or other code with debugging logs.
26
+
25
27
  ## Usage
26
28
 
27
29
  ```js
package/dist/index.js CHANGED
@@ -47,7 +47,7 @@ export default function simplepolygon(feature) {
47
47
  const numvertices = vertices.length; // number of input ring vertices, with the last closing vertices not counted
48
48
  logger('Processing input');
49
49
  // Compute self-intersections
50
- const selfIsectsData = gpsi(feature.geometry.coordinates, {
50
+ const selfIsectsData = gpsi(feature, {
51
51
  callbackFunction: ({ isect, ring0, edge0, start0, end0, frac0, ring1, edge1, start1, end1, frac1, unique }) => {
52
52
  return [
53
53
  isect,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simplepolygon",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "author": {
5
5
  "name": "Manuel Claeys Bouuaert",
6
6
  "email": "manuel.claeys.b@gmail.com",
@@ -51,10 +51,8 @@
51
51
  "@turf/area": "7.3.1",
52
52
  "@turf/boolean-point-in-polygon": "7.3.1",
53
53
  "@turf/helpers": "7.3.1",
54
- "@turf/inside": "5.0.0",
55
- "@turf/within": "4.5.0",
56
54
  "geojson": "0.5.0",
57
- "geojson-polygon-self-intersections": "2.0.0",
55
+ "geojson-polygon-self-intersections": "3.0.0",
58
56
  "rbush": "4.0.1"
59
57
  },
60
58
  "devDependencies": {