Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@turf/unkink-polygon

Package Overview
Dependencies
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/unkink-polygon - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

2

lib/geojson-polygon-self-intersections.js
// Find self-intersections in geojson polygon (possibly with interior rings)
var rbush = require('rbush');
import rbush from 'rbush';

@@ -4,0 +4,0 @@ export default function (feature, filterFn, useSpatialIndex) {

@@ -5,3 +5,3 @@ import isects from './geojson-polygon-self-intersections';

import booleanPointInPolygon from '@turf/boolean-point-in-polygon';
var rbush = require('rbush');
import rbush from 'rbush';

@@ -8,0 +8,0 @@ /**

@@ -7,2 +7,3 @@ 'use strict';

var helpers = require('@turf/helpers');
var rbush = _interopDefault(require('rbush'));
var area = _interopDefault(require('@turf/area'));

@@ -12,4 +13,2 @@ var booleanPointInPolygon = _interopDefault(require('@turf/boolean-point-in-polygon'));

// Find self-intersections in geojson polygon (possibly with interior rings)
var rbush$1 = require('rbush');
var isects = function (feature, filterFn, useSpatialIndex) {

@@ -31,3 +30,3 @@ if (feature.geometry.type !== 'Polygon') { throw new Error('The input feature must be a Polygon'); }

}
var tree = rbush$1();
var tree = rbush();
tree.load(allEdgesAsRbushTreeItems);

@@ -165,4 +164,2 @@ }

var rbush = require('rbush');
/**

@@ -169,0 +166,0 @@ * Takes a complex (i.e. self-intersecting) geojson polygon, and breaks it down into its composite simple, non-self-intersecting one-ring polygons.

{
"name": "@turf/unkink-polygon",
"version": "5.1.0",
"version": "5.1.1",
"description": "turf unkink-polygon module",

@@ -5,0 +5,0 @@ "main": "main.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc