bumbu / svg-pan-zoom

JavaScript library that enables panning and zooming of an SVG in an HTML document, with mouse events or custom JavaScript hooks
https://github.com/ariutta/svg-pan-zoom#demos
BSD 2-Clause "Simplified" License
1.76k stars 388 forks source link

Add missing `x`, `y` fields to the typescript `Sizes` type declaration. #447

Closed aleofreddi closed 9 months ago

aleofreddi commented 9 months ago

As documented in public-api, the getSizes() method returns a viewBox that contains both width/height as well as x/y fields; however the Typescript type only contain the former.

This PR adds the missing fields.

aleofreddi commented 9 months ago

hi @bumbu @ariutta! It seems to me that this project is lagging for maintenance, maybe I can help with that?

bumbu commented 9 months ago

Thank you @aleofreddi for the PR, appreciate your help! Right now the project is in maintenance mode, but if you're interested in helping revive the project - that would be welcome.