Skip to content

Commit

Permalink
Truncate circle output
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Sep 16, 2017
1 parent 162b94d commit e825fb1
Show file tree
Hide file tree
Showing 9 changed files with 789 additions and 781 deletions.
1 change: 1 addition & 0 deletions packages/turf-nearest-point-to-line/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"devDependencies": {
"@turf/circle": "^4.7.3",
"@turf/helpers": "4.7.1",
"@turf/truncate": "^4.7.3",
"benchmark": "^2.1.4",
"load-json-file": "^2.0.0",
"tape": "^4.6.3",
Expand Down
3 changes: 2 additions & 1 deletion packages/turf-nearest-point-to-line/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const path = require('path');
const load = require('load-json-file');
const write = require('write-json-file');
const circle = require('@turf/circle');
const truncate = require('@turf/truncate');
const {geometryCollection, featureCollection, point, lineString, round} = require('@turf/helpers');
const nearestPointToLine = require('./');

Expand Down Expand Up @@ -32,7 +33,7 @@ test('turf-nearest-point-to-line', t => {
'marker-size': 'large',
'marker-symbol': 'star'
});
const distanceCircle = circle(nearest, distance || 1, null, units, {fill: '#F00'});
const distanceCircle = truncate(circle(nearest, distance || 1, null, units, {fill: '#F00'}));
const results = featureCollection([points, nearest, line, distanceCircle]);

if (process.env.REGEN) write.sync(directories.out + filename, results);
Expand Down
Loading

0 comments on commit e825fb1

Please sign in to comment.