Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[react-svg-pan-zoom] Documentation of the Value object #176

Open
kasbah opened this issue May 29, 2020 · 1 comment
Open

[react-svg-pan-zoom] Documentation of the Value object #176

kasbah opened this issue May 29, 2020 · 1 comment

Comments

@kasbah
Copy link
Contributor

kasbah commented May 29, 2020

Making use of react-svg-pan-zoom (thank you very much for an amazing library!) I find myself working quite a bit with the Value object but as far as I could see it's not really documented. I had to guess that Value.a seems to represent the zoom factor for instance. It would be nice to have some documentation of what all the fields in this object represent.

@chrvadala chrvadala changed the title Documentation of the Value object [react-svg-pan-zoom] Documentation of the Value object Aug 23, 2022
@WouterrV
Copy link

WouterrV commented Jun 27, 2023

What I figured out so far:

const zoomLevel = zoomPanValues.a;
const xTranslation = zoomPanValues.e;
const yTranslation = zoomPanValues.f;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants