Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

@turf/transform-rotate

Package Overview
Dependencies
8
Maintainers
6
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.3.0 to 6.4.0

5

dist/es/index.js

@@ -11,8 +11,7 @@ import centroid from '@turf/centroid';

/**
* Rotates any geojson Feature or Geometry of a specified angle, around its `centroid` or a given `pivot` point;
* all rotations follow the right-hand rule: https://en.wikipedia.org/wiki/Right-hand_rule
* Rotates any geojson Feature or Geometry of a specified angle, around its `centroid` or a given `pivot` point.
*
* @name transformRotate
* @param {GeoJSON} geojson object to be rotated
* @param {number} angle of rotation (along the vertical axis), from North in decimal degrees, negative clockwise
* @param {number} angle of rotation in decimal degrees, positive clockwise
* @param {Object} [options={}] Optional parameters

@@ -19,0 +18,0 @@ * @param {Coord} [options.pivot='centroid'] point around which the rotation will be performed

@@ -15,8 +15,7 @@ 'use strict';

/**
* Rotates any geojson Feature or Geometry of a specified angle, around its `centroid` or a given `pivot` point;
* all rotations follow the right-hand rule: https://en.wikipedia.org/wiki/Right-hand_rule
* Rotates any geojson Feature or Geometry of a specified angle, around its `centroid` or a given `pivot` point.
*
* @name transformRotate
* @param {GeoJSON} geojson object to be rotated
* @param {number} angle of rotation (along the vertical axis), from North in decimal degrees, negative clockwise
* @param {number} angle of rotation in decimal degrees, positive clockwise
* @param {Object} [options={}] Optional parameters

@@ -23,0 +22,0 @@ * @param {Coord} [options.pivot='centroid'] point around which the rotation will be performed

22

package.json
{
"name": "@turf/transform-rotate",
"version": "6.3.0",
"version": "6.4.0",
"description": "turf transform-rotate module",

@@ -52,3 +52,3 @@ "author": "Turf Authors",

"devDependencies": {
"@turf/truncate": "^6.3.0",
"@turf/truncate": "^6.4.0",
"benchmark": "*",

@@ -62,12 +62,12 @@ "load-json-file": "*",

"dependencies": {
"@turf/centroid": "^6.3.0",
"@turf/clone": "^6.3.0",
"@turf/helpers": "^6.3.0",
"@turf/invariant": "^6.3.0",
"@turf/meta": "^6.3.0",
"@turf/rhumb-bearing": "^6.3.0",
"@turf/rhumb-destination": "^6.3.0",
"@turf/rhumb-distance": "^6.3.0"
"@turf/centroid": "^6.4.0",
"@turf/clone": "^6.4.0",
"@turf/helpers": "^6.4.0",
"@turf/invariant": "^6.4.0",
"@turf/meta": "^6.4.0",
"@turf/rhumb-bearing": "^6.4.0",
"@turf/rhumb-destination": "^6.4.0",
"@turf/rhumb-distance": "^6.4.0"
},
"gitHead": "57c8877e1e2d67effc2cdd23385c02b2a6615a49"
"gitHead": "1e62773cfc88c627cca8effcb5c14cfb65a905ac"
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc