Skip to content

Commit

Permalink
Add pointToLineDistance to @turf/turf
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Sep 4, 2017
1 parent 00216b5 commit 431ea85
Show file tree
Hide file tree
Showing 6 changed files with 200 additions and 416 deletions.
296 changes: 88 additions & 208 deletions packages/turf/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
export {
default as helpers,
point,
polygon,
lineString,
Expand All @@ -19,7 +20,8 @@ import {
convertDistance,
convertArea,
isNumber} from '@turf/helpers';
import {
export {
default as invariant,
getGeom,
getGeomType,
getCoord,
Expand All @@ -28,7 +30,8 @@ import {
featureOf,
collectionOf,
containsNumber} from '@turf/invariant';
import {
export {
default as meta,
coordEach,
coordReduce,
propEach,
Expand All @@ -42,208 +45,85 @@ import {
flattenReduce,
segmentEach,
segmentReduce} from '@turf/meta';
import * as isolines from '@turf/isolines';
import * as convex from '@turf/convex';
import * as within from '@turf/within';
import * as concave from '@turf/concave';
import * as difference from '@turf/difference';
import * as dissolve from '@turf/dissolve';
import * as collect from '@turf/collect';
import * as flip from '@turf/flip';
import * as simplify from '@turf/simplify';
import * as bezier from '@turf/bezier';
import * as tag from '@turf/tag';
import * as sample from '@turf/sample';
import * as envelope from '@turf/envelope';
import * as square from '@turf/square';
import * as circle from '@turf/circle';
import * as midpoint from '@turf/midpoint';
import * as buffer from '@turf/buffer';
import * as center from '@turf/center';
import * as centerOfMass from '@turf/center-of-mass';
import * as centroid from '@turf/centroid';
import * as combine from '@turf/combine';
import * as distance from '@turf/distance';
import * as explode from '@turf/explode';
import * as bbox from '@turf/bbox';
import * as tesselate from '@turf/tesselate';
import * as bboxPolygon from '@turf/bbox-polygon';
import * as inside from '@turf/inside';
import * as intersect from '@turf/intersect';
import * as nearest from '@turf/nearest';
import * as planepoint from '@turf/planepoint';
import * as random from '@turf/random';
import * as tin from '@turf/tin';
import * as union from '@turf/union';
import * as bearing from '@turf/bearing';
import * as destination from '@turf/destination';
import * as kinks from '@turf/kinks';
import * as pointOnSurface from '@turf/point-on-surface';
import * as area from '@turf/area';
import * as along from '@turf/along';
import * as lineDistance from '@turf/line-distance';
import * as lineSlice from '@turf/line-slice';
import * as lineSliceAlong from '@turf/line-slice-along';
import * as pointOnLine from '@turf/point-on-line';
import * as pointGrid from '@turf/point-grid';
import * as squareGrid from '@turf/square-grid';
import * as triangleGrid from '@turf/triangle-grid';
import * as hexGrid from '@turf/hex-grid';
import * as idw from '@turf/idw';
import * as truncate from '@turf/truncate';
import * as flatten from '@turf/flatten';
import * as lineIntersect from '@turf/line-intersect';
import * as mask from '@turf/mask';
import * as lineChunk from '@turf/line-chunk';
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 lineStringToPolygon from '@turf/linestring-to-polygon';
import * as bboxClip from '@turf/bbox-clip';
import * as lineOverlap from '@turf/line-overlap';
import * as sector from '@turf/sector';
import * as rhumbBearing from '@turf/rhumb-bearing';
import * as rhumbDistance from '@turf/rhumb-distance';
import * as rhumbDestination from '@turf/rhumb-destination';
import * as polygonTangents from '@turf/polygon-tangents';
import * as rewind from '@turf/rewind';
import * as isobands from '@turf/isobands';
import * as transformRotate from '@turf/transform-rotate';
import * as transformScale from '@turf/transform-scale';
import * as transformTranslate from '@turf/transform-translate';
import * as lineOffset from '@turf/line-offset';
import * as polygonize from '@turf/polygonize';
import * as booleanDisjoint from '@turf/boolean-disjoint';
import * as booleanContains from '@turf/boolean-contains';
import * as booleanCrosses from '@turf/boolean-crosses';
import * as booleanClockwise from '@turf/boolean-clockwise';
import * as booleanEqual from '@turf/boolean-equal';
import * as clone from '@turf/clone';
import * as cleanCoords from '@turf/clean-coords';
export {
isolines,
convex,
within,
concave,
difference,
dissolve,
collect,
flip,
simplify,
bezier,
tag,
sample,
envelope,
square,
circle,
midpoint,
buffer,
center,
centerOfMass,
centroid,
combine,
distance,
explode,
bbox,
tesselate,
bboxPolygon,
inside,
intersect,
nearest,
planepoint,
random,
tin,
union,
bearing,
destination,
kinks,
pointOnSurface,
area,
along,
lineDistance,
lineSlice,
lineSliceAlong,
pointOnLine,
pointGrid,
squareGrid,
triangleGrid,
hexGrid,
idw,
point,
polygon,
lineString,
multiPoint,
multiPolygon,
multiLineString,
feature,
geometry,
featureCollection,
geometryCollection,
radiansToDistance,
distanceToRadians,
distanceToDegrees,
getCoord,
getCoords,
getGeom,
getGeomType,
geojsonType,
featureOf,
collectionOf,
containsNumber,
truncate,
flatten,
coordEach,
coordReduce,
propEach,
propReduce,
featureEach,
coordAll,
geomEach,
lineIntersect,
mask,
lineChunk,
unkinkPolygon,
greatCircle,
lineSegment,
lineSplit,
lineArc,
polygonToLineString,
lineStringToPolygon,
bboxClip,
lineOverlap,
sector,
rhumbBearing,
rhumbDistance,
rhumbDestination,
polygonTangents,
rewind,
isobands,
radians2degrees,
degrees2radians,
round,
flattenEach,
flattenReduce,
convertDistance,
convertArea,
transformRotate,
transformScale,
transformTranslate,
lineOffset,
polygonize,
bearingToAngle,
featureReduce,
geomReduce,
booleanDisjoint,
booleanContains,
booleanCrosses,
booleanClockwise,
booleanEqual,
clone,
segmentEach,
segmentReduce,
cleanCoords,
isNumber
};
export {default as isolines} from '@turf/isolines';
export {default as convex} from '@turf/convex';
export {default as within} from '@turf/within';
export {default as concave} from '@turf/concave';
export {default as difference} from '@turf/difference';
export {default as dissolve} from '@turf/dissolve';
export {default as collect} from '@turf/collect';
export {default as flip} from '@turf/flip';
export {default as simplify} from '@turf/simplify';
export {default as bezier} from '@turf/bezier';
export {default as tag} from '@turf/tag';
export {default as sample} from '@turf/sample';
export {default as envelope} from '@turf/envelope';
export {default as square} from '@turf/square';
export {default as circle} from '@turf/circle';
export {default as midpoint} from '@turf/midpoint';
export {default as buffer} from '@turf/buffer';
export {default as center} from '@turf/center';
export {default as centerOfMass} from '@turf/center-of-mass';
export {default as centroid} from '@turf/centroid';
export {default as combine} from '@turf/combine';
export {default as distance} from '@turf/distance';
export {default as explode} from '@turf/explode';
export {default as bbox} from '@turf/bbox';
export {default as tesselate} from '@turf/tesselate';
export {default as bboxPolygon} from '@turf/bbox-polygon';
export {default as inside} from '@turf/inside';
export {default as intersect} from '@turf/intersect';
export {default as nearest} from '@turf/nearest';
export {default as planepoint} from '@turf/planepoint';
export {default as random} from '@turf/random';
export {default as tin} from '@turf/tin';
export {default as union} from '@turf/union';
export {default as bearing} from '@turf/bearing';
export {default as destination} from '@turf/destination';
export {default as kinks} from '@turf/kinks';
export {default as pointOnSurface} from '@turf/point-on-surface';
export {default as area} from '@turf/area';
export {default as along} from '@turf/along';
export {default as lineDistance} from '@turf/line-distance';
export {default as lineSlice} from '@turf/line-slice';
export {default as lineSliceAlong} from '@turf/line-slice-along';
export {default as pointOnLine} from '@turf/point-on-line';
export {default as pointGrid} from '@turf/point-grid';
export {default as squareGrid} from '@turf/square-grid';
export {default as triangleGrid} from '@turf/triangle-grid';
export {default as hexGrid} from '@turf/hex-grid';
export {default as idw} from '@turf/idw';
export {default as truncate} from '@turf/truncate';
export {default as flatten} from '@turf/flatten';
export {default as lineIntersect} from '@turf/line-intersect';
export {default as mask} from '@turf/mask';
export {default as lineChunk} from '@turf/line-chunk';
export {default as unkinkPolygon} from '@turf/unkink-polygon';
export {default as greatCircle} from '@turf/great-circle';
export {default as lineSegment} from '@turf/line-segment';
export {default as lineSplit} from '@turf/line-split';
export {default as lineArc} from '@turf/line-arc';
export {default as polygonToLineString} from '@turf/polygon-to-linestring';
export {default as lineStringToPolygon} from '@turf/linestring-to-polygon';
export {default as bboxClip} from '@turf/bbox-clip';
export {default as lineOverlap} from '@turf/line-overlap';
export {default as sector} from '@turf/sector';
export {default as rhumbBearing} from '@turf/rhumb-bearing';
export {default as rhumbDistance} from '@turf/rhumb-distance';
export {default as rhumbDestination} from '@turf/rhumb-destination';
export {default as polygonTangents} from '@turf/polygon-tangents';
export {default as rewind} from '@turf/rewind';
export {default as isobands} from '@turf/isobands';
export {default as transformRotate} from '@turf/transform-rotate';
export {default as transformScale} from '@turf/transform-scale';
export {default as transformTranslate} from '@turf/transform-translate';
export {default as lineOffset} from '@turf/line-offset';
export {default as polygonize} from '@turf/polygonize';
export {default as booleanDisjoint} from '@turf/boolean-disjoint';
export {default as booleanContains} from '@turf/boolean-contains';
export {default as booleanCrosses} from '@turf/boolean-crosses';
export {default as booleanClockwise} from '@turf/boolean-clockwise';
export {default as booleanEqual} from '@turf/boolean-equal';
export {default as clone} from '@turf/clone';
export {default as cleanCoords} from '@turf/clean-coords';
export {default as pointToLineDistance} from '@turf/point-to-line-distance';
1 change: 1 addition & 0 deletions packages/turf/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ var turf = {
interpolate: require('@turf/interpolate'), // v4.6.0
clustersDbscan: require('@turf/clusters-dbscan'), // v4.6.0
clustersKmeans: require('@turf/clusters-kmeans'), // v4.6.0
pointToLineDistance: require('@turf/point-to-line-distance'), // v4.7.0
getCluster: clusters.getCluster, // v4.6.0
clusterEach: clusters.clusterEach, // v4.6.0
clusterReduce: clusters.clusterReduce, // v4.6.0
Expand Down
Loading

1 comment on commit 431ea85

@DenisCarriere
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#925 Add module to @turf/turf

Please sign in to comment.