Skip to content

Repository files navigation

NPM versionBuild StatusDependency 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 pointsvarpolyline=[[0,2],[3,4],[7,8]];// fat is a factor corresponding to the width of the polylinevarfat=5;// polygon is an array of points outlining a polygon that completely encompasses a linevarpolygon=plumper(polyline,fat);// if you're OK with slighly larger number of polygons, but you care about speedvarpolygon=plumper(polyline,fat,false);

License

The MIT License (MIT)

Copyright (c) 2013 Damian Krzeminski

About

Makes your polyline look fat

Topics

Resources

Stars

4 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages