You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this really nice module on a container with a transparent popup on the side which allows to zoom to certain locations. This works really nice with zoomToElement. However, because of the pop-up taking up half of the screen it feels off to have the element in the center of the screen. It would be nice for me if the zoomToElement optionally accepts an xOffset and yOffset so I can zoom to the element with a small offset.
Another possibility for me to solve this problem would be if there was a function that allows me to get the position of an element as a transform state, maybe something like getPositionOfElement(scale) that returns a {xPosition, yPosition, scale}.
These functions already kind of exist in the code I see, but they are not currently exported.
Thanks for considering!
The text was updated successfully, but these errors were encountered:
I'm using this really nice module on a container with a transparent popup on the side which allows to zoom to certain locations. This works really nice with zoomToElement. However, because of the pop-up taking up half of the screen it feels off to have the element in the center of the screen. It would be nice for me if the zoomToElement optionally accepts an xOffset and yOffset so I can zoom to the element with a small offset.
Another possibility for me to solve this problem would be if there was a function that allows me to get the position of an element as a transform state, maybe something like getPositionOfElement(scale) that returns a {xPosition, yPosition, scale}.
These functions already kind of exist in the code I see, but they are not currently exported.
Thanks for considering!
The text was updated successfully, but these errors were encountered: