From a88d77a3e7f76860b3c138a716da8b603a407c8e Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 10 Apr 2017 10:16:56 -0400 Subject: [PATCH] Add new modules & missing methods --- packages/turf/index.d.ts | 19 +++++++++++++++++-- packages/turf/index.js | 7 +++++++ packages/turf/package.json | 4 ++++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/packages/turf/index.d.ts b/packages/turf/index.d.ts index 3b04989ec4..6f7fda7be3 100644 --- a/packages/turf/index.d.ts +++ b/packages/turf/index.d.ts @@ -7,9 +7,13 @@ import { multiLineString, feature, featureCollection, - geometryCollection} from '@turf/helpers'; + geometryCollection, + radiansToDistance, + distanceToRadians, + distanceToDegrees} from '@turf/helpers'; import { getCoord, + getCoords, geojsonType, featureOf, collectionOf, @@ -84,6 +88,10 @@ import * as unkinkPolygon from '@turf/unkink-polygon'; import * as greatCircle from '@turf/great-circle'; import * as lineSegment from '@turf/line-segment'; import * as lineSplit from '@turf/line-split'; +import * as lineArc from '@turf/line-arc' +import * as polygonToLineString from '@turf/polygon-to-linestring' +import * as bboxClip from '@turf/bbox-clip' +import * as lineOverlap from '@turf/line-overlap' export { isolines, @@ -143,6 +151,9 @@ export { feature, featureCollection, geometryCollection, + radiansToDistance, + distanceToRadians, + distanceToDegrees, getCoord, geojsonType, featureOf, @@ -163,5 +174,9 @@ export { unkinkPolygon, greatCircle, lineSegment, - lineSplit + lineSplit, + lineArc, + polygonToLineString, + bboxClip, + lineOverlap }; diff --git a/packages/turf/index.js b/packages/turf/index.js index 6059f3e699..c17d0980cd 100644 --- a/packages/turf/index.js +++ b/packages/turf/index.js @@ -69,6 +69,10 @@ var turf = { greatCircle: require('@turf/great-circle'), lineSegment: require('@turf/line-segment'), lineSplit: require('@turf/line-split'), + lineArc: require('@turf/line-arc'), + polygonToLineString: require('@turf/polygon-to-linestring'), + bboxClip: require('@turf/bbox-clip'), + lineOverlap: require('@turf/line-overlap'), point: helpers.point, polygon: helpers.polygon, lineString: helpers.lineString, @@ -78,6 +82,9 @@ var turf = { feature: helpers.feature, featureCollection: helpers.featureCollection, geometryCollection: helpers.geometryCollection, + radiansToDistance: helpers.radiansToDistance, + distanceToRadians: helpers.distanceToRadians, + distanceToDegrees: helpers.distanceToDegrees, getCoord: invariant.getCoord, getCoords: invariant.getCoords, geojsonType: invariant.geojsonType, diff --git a/packages/turf/package.json b/packages/turf/package.json index 22a5b15d50..2e503dd5df 100644 --- a/packages/turf/package.json +++ b/packages/turf/package.json @@ -57,6 +57,7 @@ "@turf/along": "^4.0.1", "@turf/area": "^4.0.2", "@turf/bbox": "^4.0.2", + "@turf/bbox-clip": "^4.0.0", "@turf/bbox-polygon": "^4.0.1", "@turf/bearing": "^4.0.1", "@turf/bezier": "^4.0.1", @@ -86,9 +87,11 @@ "@turf/invariant": "^4.0.1", "@turf/isolines": "^4.0.2", "@turf/kinks": "^4.0.2", + "@turf/line-arc": "^4.0.0", "@turf/line-chunk": "^4.0.2", "@turf/line-distance": "^4.0.2", "@turf/line-intersect": "^4.0.2", + "@turf/line-overlap": "^4.0.0", "@turf/line-segment": "^4.0.2", "@turf/line-slice": "^4.0.2", "@turf/line-slice-along": "^4.0.1", @@ -101,6 +104,7 @@ "@turf/point-grid": "^4.0.2", "@turf/point-on-line": "^4.0.2", "@turf/point-on-surface": "^4.0.2", + "@turf/polygon-to-linestring": "^4.0.0", "@turf/random": "^4.0.2", "@turf/sample": "^4.0.1", "@turf/simplify": "^4.0.2",