plumper

Makes your polyline look fat using routeboxer algorithm

npm install plumper
1 downloads in the last day
5 downloads in the last week
9 downloads in the last month

Build Status NPM version

plumper

Makes your polyline look fat using routeboxer algorithm

API

// polyline is a set of points
var polyline = [[0,2], [3,4], [7,8]];
// fat is a factor corresponding to the width of the polyline
var fat = 5;
// polygon is an array of points outlining a polygon that completely encompasses a line
var polygon = plumper(polyline, fat);

License

The MIT License (MIT)

Copyright (c) 2013 code42day.com

npm loves you