mapbox / cheap-ruler

Fast approximations for common geodesic measurements 🌐
https://www.mapbox.com/blog/cheap-ruler/
ISC License
418 stars 32 forks source link

A missed API definition (pointToSegmentDistance) published on https://www.npmjs.com/ #50

Closed geonoon closed 2 years ago

geonoon commented 2 years ago

Currently the latest version (3.0.1) of the cheap-ruler library code at https://github.com/mapbox/cheap-ruler and at https://www.npmjs.com/package/cheap-ruler are a little bit different. There is an error at the latter.

As to the file cheap-ruler.d.ts, the API pointToSegmentDistance() is missed at https://www.npmjs.com/package/cheap-ruler.

Please fix this error as soon as possible.

mourner commented 2 years ago

Published as 3.0.2.