1.2.0 • Published 2 months ago

plumper v1.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
2 months ago

NPM version Build Status Dependency Status

plumper

Makes your polyline look fat using routeboxer algorithm.

Check out the live demo.

Installation

Install with npm:

$ npm install plumper

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);


// if you're OK with slighly larger number of polygons, but you care about speed
var polygon = plumper(polyline, fat, false);

License

The MIT License (MIT)

Copyright (c) 2013 Damian Krzeminski

1.2.0

2 months ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.2

11 years ago

0.0.1

11 years ago