JavaScript library that builds concave hulls (shapes) by set of points
npm install @openagent/hull-concavityHull-convex.js - JavaScript library that builds concave hull by set of points.
var points = [ [236, 126], [234, 115], [238, 109], [247, 102], ... ];
hull(points, 50); // returns points of the hull (in clockwise order)
[[x1, y1], [x2, y2], ..., [xn, yn]];1 - thin shape. Infinity - convex hull. By default 20;['.lng', '.lat'] if you have {lng: x, lat: y} points. By default you can use [x, y] points.new Set(null), Set#add, Set#haslet, constMath.trunc (if available)You may use polyfills for Set and compile with babel to continue to support old browsers.