@turf/unkink-polygon
Advanced tools
Comparing version
@@ -0,8 +1,9 @@ | ||
import { flattenEach, featureEach } from '@turf/meta'; | ||
import { polygon, featureCollection } from '@turf/helpers'; | ||
import rbush from 'rbush'; | ||
import area from '@turf/area'; | ||
import { featureCollection, polygon } from '@turf/helpers'; | ||
import booleanPointInPolygon from '@turf/boolean-point-in-polygon'; | ||
import { flattenEach, featureEach } from '@turf/meta'; | ||
// Find self-intersections in geojson polygon (possibly with interior rings) | ||
function isects (feature, filterFn, useSpatialIndex) { | ||
@@ -754,3 +755,3 @@ if (feature.geometry.type !== "Polygon") | ||
for (var i = 0, l = array.length; i < l; ++i) { | ||
if (u.hasOwnProperty(array[i])) { | ||
if (Object.prototype.hasOwnProperty.call(u, array[i])) { | ||
isUnique = 0; | ||
@@ -757,0 +758,0 @@ break; |
'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var rbush = _interopDefault(require('rbush')); | ||
var area = _interopDefault(require('@turf/area')); | ||
var meta = require('@turf/meta'); | ||
var helpers = require('@turf/helpers'); | ||
var booleanPointInPolygon = _interopDefault(require('@turf/boolean-point-in-polygon')); | ||
var meta = require('@turf/meta'); | ||
var rbush = require('rbush'); | ||
var area = require('@turf/area'); | ||
var booleanPointInPolygon = require('@turf/boolean-point-in-polygon'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var rbush__default = /*#__PURE__*/_interopDefaultLegacy(rbush); | ||
var area__default = /*#__PURE__*/_interopDefaultLegacy(area); | ||
var booleanPointInPolygon__default = /*#__PURE__*/_interopDefaultLegacy(booleanPointInPolygon); | ||
// Find self-intersections in geojson polygon (possibly with interior rings) | ||
function isects (feature, filterFn, useSpatialIndex) { | ||
@@ -29,3 +34,3 @@ if (feature.geometry.type !== "Polygon") | ||
} | ||
var tree = rbush(); | ||
var tree = rbush__default['default'](); | ||
tree.load(allEdgesAsRbushTreeItems); | ||
@@ -377,3 +382,3 @@ } | ||
} | ||
var isectRbushTree = rbush(); | ||
var isectRbushTree = rbush__default['default'](); | ||
isectRbushTree.load(allIsectsAsIsectRbushTreeItem); | ||
@@ -616,3 +621,3 @@ | ||
if ( | ||
booleanPointInPolygon( | ||
booleanPointInPolygon__default['default']( | ||
output.features[featuresWithoutParent[i]].geometry | ||
@@ -624,3 +629,3 @@ .coordinates[0][0], | ||
) { | ||
if (area(output.features[j]) < parentArea) { | ||
if (area__default['default'](output.features[j]) < parentArea) { | ||
parent = j; | ||
@@ -762,3 +767,3 @@ } | ||
for (var i = 0, l = array.length; i < l; ++i) { | ||
if (u.hasOwnProperty(array[i])) { | ||
if (Object.prototype.hasOwnProperty.call(u, array[i])) { | ||
isUnique = 0; | ||
@@ -799,1 +804,2 @@ break; | ||
module.exports = unkinkPolygon; | ||
module.exports.default = unkinkPolygon; |
{ | ||
"name": "@turf/unkink-polygon", | ||
"version": "6.4.0", | ||
"version": "6.5.0", | ||
"description": "turf unkink-polygon module", | ||
@@ -15,2 +15,3 @@ "author": "Turf Authors", | ||
}, | ||
"funding": "https://opencollective.com/turf", | ||
"publishConfig": { | ||
@@ -50,3 +51,3 @@ "access": "public" | ||
"devDependencies": { | ||
"@turf/kinks": "^6.4.0", | ||
"@turf/kinks": "^6.5.0", | ||
"benchmark": "*", | ||
@@ -60,9 +61,9 @@ "load-json-file": "*", | ||
"dependencies": { | ||
"@turf/area": "^6.4.0", | ||
"@turf/boolean-point-in-polygon": "^6.4.0", | ||
"@turf/helpers": "^6.4.0", | ||
"@turf/meta": "^6.4.0", | ||
"@turf/area": "^6.5.0", | ||
"@turf/boolean-point-in-polygon": "^6.5.0", | ||
"@turf/helpers": "^6.5.0", | ||
"@turf/meta": "^6.5.0", | ||
"rbush": "^2.0.1" | ||
}, | ||
"gitHead": "1e62773cfc88c627cca8effcb5c14cfb65a905ac" | ||
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e" | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
69021
0.57%1512
0.27%0
-100%Updated
Updated
Updated