react-svg-pan-zoom icon indicating copy to clipboard operation
react-svg-pan-zoom copied to clipboard

fitSelection centered

Open krnlde opened this issue 5 years ago • 3 comments

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.

krnlde avatar Nov 13 '19 15:11 krnlde

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).

chrvadala avatar Nov 16 '19 16:11 chrvadala

Adjust your 'fitSelection' area equal to viewport's width/height ratio. This may be a workaround.

wsd1 avatar Jun 13 '20 21:06 wsd1

any update on this ? or is there any workaround that we can do first ?

Rehre avatar Oct 13 '20 11:10 Rehre