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

@turf/line-slice-along

Package Overview
Dependencies
Maintainers
6
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/line-slice-along - npm Package Compare versions

Comparing version 6.4.0 to 6.5.0

2

dist/es/index.js
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"
}
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