Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
elfalem committed Nov 6, 2021
1 parent cf6bcc0 commit ace73f5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.9.1] - 2021-11-06
### Fixed
- Fix bug with empty curve when using canvas renderer #44

## [0.9.0] - 2021-11-03
### Added
- Add `getLatLngs` method (alias to `getPath`) #43
Expand Down Expand Up @@ -73,7 +77,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Ability to draw Bézier curves.

[Unreleased]: https://github.com/elfalem/Leaflet.curve/compare/v0.9.0...HEAD
[Unreleased]: https://github.com/elfalem/Leaflet.curve/compare/v0.9.1...HEAD
[0.9.1]: https://github.com/elfalem/Leaflet.curve/compare/v0.9.0...v0.9.1
[0.9.0]: https://github.com/elfalem/Leaflet.curve/compare/v0.8.1...v0.9.0
[0.8.1]: https://github.com/elfalem/Leaflet.curve/compare/v0.8.0...v0.8.1
[0.8.0]: https://github.com/elfalem/Leaflet.curve/compare/v0.7.0...v0.8.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@elfalem/leaflet-curve",
"version": "0.9.0",
"version": "0.9.1",
"description": "A Leaflet plugin for drawing Bézier curves and other complex shapes.",
"main": "dist/leaflet.curve.js",
"types": "types/leaflet.curve.d.ts",
Expand Down
6 changes: 4 additions & 2 deletions src/leaflet.curve.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Leaflet.curve v0.9.0 - a plugin for Leaflet mapping library. https://github.com/elfalem/Leaflet.curve
* Leaflet.curve v0.9.1 - a plugin for Leaflet mapping library. https://github.com/elfalem/Leaflet.curve
* (c) elfalem 2015-2021
*/
/*
Expand Down Expand Up @@ -293,7 +293,9 @@ L.Curve = L.Path.extend({

// Needed by the `Canvas` renderer for interactivity
_containsPoint: function(layerPoint) {
if (!this._bounds.isValid()) return false;
if (!this._bounds.isValid()) {
return false;
}
return this._bounds.contains(this._map.layerPointToLatLng(layerPoint));
},

Expand Down

0 comments on commit ace73f5

Please sign in to comment.