@turf/line-chunk
Advanced tools
Comparing version 6.4.0 to 6.5.0
import length from '@turf/length'; | ||
import lineSliceAlong from '@turf/line-slice-along'; | ||
import { flattenEach } from '@turf/meta'; | ||
import { featureCollection, isObject } from '@turf/helpers'; | ||
import { isObject, featureCollection } from '@turf/helpers'; | ||
@@ -6,0 +6,0 @@ /** |
'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var length = _interopDefault(require('@turf/length')); | ||
var lineSliceAlong = _interopDefault(require('@turf/line-slice-along')); | ||
var length = require('@turf/length'); | ||
var lineSliceAlong = require('@turf/line-slice-along'); | ||
var meta = require('@turf/meta'); | ||
var helpers = require('@turf/helpers'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var length__default = /*#__PURE__*/_interopDefaultLegacy(length); | ||
var lineSliceAlong__default = /*#__PURE__*/_interopDefaultLegacy(lineSliceAlong); | ||
/** | ||
@@ -68,3 +71,3 @@ * Divides a {@link LineString} into chunks of a specified length. | ||
function sliceLineSegments(line, segmentLength, units, callback) { | ||
var lineLength = length(line, { units: units }); | ||
var lineLength = length__default['default'](line, { units: units }); | ||
@@ -82,3 +85,3 @@ // If the line is shorter than the segment length then the orginal line is returned. | ||
for (var i = 0; i < numberOfSegments; i++) { | ||
var outline = lineSliceAlong( | ||
var outline = lineSliceAlong__default['default']( | ||
line, | ||
@@ -94,1 +97,2 @@ segmentLength * i, | ||
module.exports = lineChunk; | ||
module.exports.default = lineChunk; |
{ | ||
"name": "@turf/line-chunk", | ||
"version": "6.4.0", | ||
"version": "6.5.0", | ||
"description": "turf line-chunk module", | ||
@@ -21,2 +21,3 @@ "author": "Turf Authors", | ||
}, | ||
"funding": "https://opencollective.com/turf", | ||
"publishConfig": { | ||
@@ -56,3 +57,3 @@ "access": "public" | ||
"devDependencies": { | ||
"@turf/truncate": "^6.4.0", | ||
"@turf/truncate": "^6.5.0", | ||
"benchmark": "*", | ||
@@ -66,8 +67,8 @@ "load-json-file": "*", | ||
"dependencies": { | ||
"@turf/helpers": "^6.4.0", | ||
"@turf/length": "^6.4.0", | ||
"@turf/line-slice-along": "^6.4.0", | ||
"@turf/meta": "^6.4.0" | ||
"@turf/helpers": "^6.5.0", | ||
"@turf/length": "^6.5.0", | ||
"@turf/line-slice-along": "^6.5.0", | ||
"@turf/meta": "^6.5.0" | ||
}, | ||
"gitHead": "1e62773cfc88c627cca8effcb5c14cfb65a905ac" | ||
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e" | ||
} |
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
12081
181
0
Updated@turf/helpers@^6.5.0
Updated@turf/length@^6.5.0
Updated@turf/meta@^6.5.0