@turf/boolean-clockwise
Advanced tools
Comparing version 6.5.0 to 7.0.0-alpha.0
@@ -18,7 +18,7 @@ import { getCoords } from "@turf/invariant"; | ||
export default function booleanClockwise(line) { | ||
var ring = getCoords(line); | ||
var sum = 0; | ||
var i = 1; | ||
var prev; | ||
var cur; | ||
const ring = getCoords(line); | ||
let sum = 0; | ||
let i = 1; | ||
let prev; | ||
let cur; | ||
while (i < ring.length) { | ||
@@ -25,0 +25,0 @@ prev = cur || ring[0]; |
@@ -1,2 +0,2 @@ | ||
import { Feature, LineString, Position } from "@turf/helpers"; | ||
import { Feature, LineString, Position } from "geojson"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Takes a ring and return true or false whether or not the ring is clockwise or counter-clockwise. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var invariant_1 = require("@turf/invariant"); | ||
const invariant_1 = require("@turf/invariant"); | ||
/** | ||
@@ -20,7 +20,7 @@ * Takes a ring and return true or false whether or not the ring is clockwise or counter-clockwise. | ||
function booleanClockwise(line) { | ||
var ring = invariant_1.getCoords(line); | ||
var sum = 0; | ||
var i = 1; | ||
var prev; | ||
var cur; | ||
const ring = invariant_1.getCoords(line); | ||
let sum = 0; | ||
let i = 1; | ||
let prev; | ||
let cur; | ||
while (i < ring.length) { | ||
@@ -27,0 +27,0 @@ prev = cur || ring[0]; |
{ | ||
"name": "@turf/boolean-clockwise", | ||
"version": "6.5.0", | ||
"version": "7.0.0-alpha.0", | ||
"description": "turf boolean-clockwise module", | ||
@@ -65,6 +65,7 @@ "author": "Turf Authors", | ||
"dependencies": { | ||
"@turf/helpers": "^6.5.0", | ||
"@turf/invariant": "^6.5.0" | ||
"@turf/helpers": "^7.0.0-alpha.0", | ||
"@turf/invariant": "^7.0.0-alpha.0", | ||
"tslib": "^2.3.0" | ||
}, | ||
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e" | ||
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189" | ||
} |
@@ -9,7 +9,7 @@ # @turf/boolean-clockwise | ||
**Parameters** | ||
### Parameters | ||
- `line` **([Feature][1]<[LineString][2]> | [LineString][2] \| [Array][3]<[Array][3]<[number][4]>>)** to be evaluated | ||
* `line` **([Feature][1]<[LineString][2]> | [LineString][2] | [Array][3]<[Array][3]<[number][4]>>)** to be evaluated | ||
**Examples** | ||
### Examples | ||
@@ -16,0 +16,0 @@ ```javascript |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7160
3
1
+ Addedtslib@^2.3.0
+ Added@turf/helpers@7.1.0(transitive)
+ Added@turf/invariant@7.1.0(transitive)
+ Added@types/geojson@7946.0.15(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@turf/helpers@6.5.0(transitive)
- Removed@turf/invariant@6.5.0(transitive)
Updated@turf/helpers@^7.0.0-alpha.0