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

@turf/point-on-surface

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/point-on-surface - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

11

index.js

@@ -20,13 +20,6 @@ var featureCollection = require('@turf/helpers').featureCollection;

*
* //=polygon
*
* var pointOnPolygon = turf.pointOnSurface(polygon);
*
* var resultFeatures = polygon.features.concat(pointOnPolygon);
* var result = {
* "type": "FeatureCollection",
* "features": resultFeatures
* };
*
* //=result
* //addToMap
* var addToMap = [polygon, pointOnPolygon];
*/

@@ -33,0 +26,0 @@ function pointOnSurface(fc) {

12

package.json
{
"name": "@turf/point-on-surface",
"version": "4.1.0",
"version": "4.2.0",
"description": "turf point-on-surface module",

@@ -38,8 +38,8 @@ "main": "index.js",

"dependencies": {
"@turf/center": "^4.1.0",
"@turf/distance": "^4.1.0",
"@turf/explode": "^4.1.0",
"@turf/inside": "^4.1.0",
"@turf/helpers": "^4.1.0"
"@turf/center": "^4.2.0",
"@turf/distance": "^4.2.0",
"@turf/explode": "^4.2.0",
"@turf/inside": "^4.2.0",
"@turf/helpers": "^4.2.0"
}
}

@@ -21,13 +21,6 @@ # @turf/point-on-surface

//=polygon
var pointOnPolygon = turf.pointOnSurface(polygon);
var resultFeatures = polygon.features.concat(pointOnPolygon);
var result = {
"type": "FeatureCollection",
"features": resultFeatures
};
//=result
//addToMap
var addToMap = [polygon, pointOnPolygon];
```

@@ -34,0 +27,0 @@

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