Releases: mapbox/cheap-ruler
Releases 路 mapbox/cheap-ruler
v3.0.1
Minor fixes to the list of published files for v3.
v3.0.0
- Breaking: changed the API from
cheapRuler(...)
to new CheapRuler(...)
(more idiomatic for ES).
- Switched to ES and exposed as a ES module. CommonJS/browser builds remain ES5-compatible.
- Added
pointToSegmentDistance(p, a, b)
method.
- Fixed all methods to work across the date line.
- Breaking: switched from FCC formulas (based on Clarke ellipsoid) to a more modern WGS84 Ellipsoid model of the Earth, so the values calculated may change slightly.
v2.5.1
- Fixed and documented
pointOnLine
t
result property #30
- Added default export for use with ES modules setups
- Added minified build to the package
- Added
offset
method to TypeScript typings
v2.5.0
- Added
ruler.offset(point, dx, dy)
method.
- Added TypeScript definition.
v2.4.1
- 5x faster ruler creation #15
v2.4.0
- Exposed unit conversion constants in
cheapRuler.units
.
- Improved error handling for invalid units.
v2.3.0
- Fixed broken conversion to
miles
.
- Added more units:
meters
, yards
, feet
, inches
, nauticalmiles
.
- Added
flow
types.
v2.2.0
Made all methods much more precise by using an FCC-approved formula for ellipsoidal Earth projection. #13
v2.1.0
Added ruler.lineSliceAlong
.
v2.0.0
- Added
ruler.lineSlice
- Added
ruler.destination
- breaking: Changed
ruler.pointOnLine
return value from point
to object {point, index, t}