@turf/line-slice-along
Advanced tools
Comparing version 6.4.0 to 6.5.0
import bearing from '@turf/bearing'; | ||
import distance from '@turf/distance'; | ||
import destination from '@turf/destination'; | ||
import { lineString, isObject } from '@turf/helpers'; | ||
import { isObject, lineString } from '@turf/helpers'; | ||
@@ -6,0 +6,0 @@ /** |
'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var bearing = _interopDefault(require('@turf/bearing')); | ||
var distance = _interopDefault(require('@turf/distance')); | ||
var destination = _interopDefault(require('@turf/destination')); | ||
var bearing = require('@turf/bearing'); | ||
var distance = require('@turf/distance'); | ||
var destination = require('@turf/destination'); | ||
var helpers = require('@turf/helpers'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var bearing__default = /*#__PURE__*/_interopDefaultLegacy(bearing); | ||
var distance__default = /*#__PURE__*/_interopDefaultLegacy(distance); | ||
var destination__default = /*#__PURE__*/_interopDefaultLegacy(destination); | ||
/** | ||
@@ -56,4 +60,4 @@ * Takes a {@link LineString|line}, a specified distance along the line to a start {@link Point}, | ||
} | ||
direction = bearing(coords[i], coords[i - 1]) - 180; | ||
interpolated = destination(coords[i], overshot, direction, options); | ||
direction = bearing__default['default'](coords[i], coords[i - 1]) - 180; | ||
interpolated = destination__default['default'](coords[i], overshot, direction, options); | ||
slice.push(interpolated.geometry.coordinates); | ||
@@ -68,4 +72,4 @@ } | ||
} | ||
direction = bearing(coords[i], coords[i - 1]) - 180; | ||
interpolated = destination(coords[i], overshot, direction, options); | ||
direction = bearing__default['default'](coords[i], coords[i - 1]) - 180; | ||
interpolated = destination__default['default'](coords[i], overshot, direction, options); | ||
slice.push(interpolated.geometry.coordinates); | ||
@@ -83,3 +87,3 @@ return helpers.lineString(slice); | ||
travelled += distance(coords[i], coords[i + 1], options); | ||
travelled += distance__default['default'](coords[i], coords[i + 1], options); | ||
} | ||
@@ -95,1 +99,2 @@ | ||
module.exports = lineSliceAlong; | ||
module.exports.default = lineSliceAlong; |
{ | ||
"name": "@turf/line-slice-along", | ||
"version": "6.4.0", | ||
"version": "6.5.0", | ||
"description": "turf line-slice-along module", | ||
@@ -15,2 +15,3 @@ "author": "Turf Authors", | ||
}, | ||
"funding": "https://opencollective.com/turf", | ||
"publishConfig": { | ||
@@ -47,3 +48,3 @@ "access": "public" | ||
"devDependencies": { | ||
"@turf/along": "^6.4.0", | ||
"@turf/along": "^6.5.0", | ||
"benchmark": "*", | ||
@@ -56,8 +57,8 @@ "load-json-file": "*", | ||
"dependencies": { | ||
"@turf/bearing": "^6.4.0", | ||
"@turf/destination": "^6.4.0", | ||
"@turf/distance": "^6.4.0", | ||
"@turf/helpers": "^6.4.0" | ||
"@turf/bearing": "^6.5.0", | ||
"@turf/destination": "^6.5.0", | ||
"@turf/distance": "^6.5.0", | ||
"@turf/helpers": "^6.5.0" | ||
}, | ||
"gitHead": "1e62773cfc88c627cca8effcb5c14cfb65a905ac" | ||
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e" | ||
} |
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
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
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
11804
172
0
Updated@turf/bearing@^6.5.0
Updated@turf/destination@^6.5.0
Updated@turf/distance@^6.5.0
Updated@turf/helpers@^6.5.0