react-svg-pan-zoom
react-svg-pan-zoom copied to clipboard
fitSelection centered
Bug reports:
Currently fitSelection
always fits the selection to the top left of the viewport. It should behave similar to fitToViewer
where you are able to pass the preferences as parameters. Right now there is no way to enforce that other than calculating it myself.
Thanks for your suggestion. Probably some lines of code can be copied from fitToViewer function. I'll include this feature in a future version (anyway any PR is appreciated).
Adjust your 'fitSelection' area equal to viewport's width/height ratio. This may be a workaround.
any update on this ? or is there any workaround that we can do first ?