Skip to content

Commit

Permalink
Add new modules & missing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Apr 10, 2017
1 parent 9cebb21 commit a88d77a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
19 changes: 17 additions & 2 deletions packages/turf/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -143,6 +151,9 @@ export {
feature,
featureCollection,
geometryCollection,
radiansToDistance,
distanceToRadians,
distanceToDegrees,
getCoord,
geojsonType,
featureOf,
Expand All @@ -163,5 +174,9 @@ export {
unkinkPolygon,
greatCircle,
lineSegment,
lineSplit
lineSplit,
lineArc,
polygonToLineString,
bboxClip,
lineOverlap
};
7 changes: 7 additions & 0 deletions packages/turf/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions packages/turf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit a88d77a

Please sign in to comment.