headless-studio / leptos-leaflet

MIT License
25 stars 16 forks source link

regex package removed, fixed image and video overlay and made them public #28

Closed Houski closed 5 months ago

Houski commented 5 months ago

Implemented a new Bounds struct in bounds.rs, inspired by Leaflet's bounds functionality (see Leaflet Bounds Reference). This struct includes methods such as .get_center() to facilitate geographical positioning and boundary calculations. These methods are straightforward and, while largely untested, are expected to function correctly due to their simplicity.

Updated the ImageOverlay and VideoOverlay components to utilize the new Bounds struct. These components are now public and can be imported without causing WASM errors, enhancing usability and integration in projects.

Removed the regex dependency from Cargo.toml. The updates I've made serve the same purpose as what the regex handled. Comprehensive testing has not been performed, but the changes are anticipated to replicate the previous functionality effectively.

dgsantana commented 5 months ago

Awesome. Thanks for the PR. I will do minor version increment, since bounds can break previous users.