-
Notifications
You must be signed in to change notification settings - Fork 46
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
Zoom to bounding box #23
Comments
@jlgrall It doesn't work 😢 Would you mind see this again? |
This worked for me, (please notice I removed the respect for maxScale):
|
I created a PR for the code integrated into the plugin as seen here: https://github.com/justin-hackin/snap.svg.zpd/tree/zoomToElement |
when I console.log(bbox) I get {x: , y: , width: , height: } I don't see any bbox.x2, bbox.y2, bbox.w or bbox.h. Can someone explain what x2 and y2 are supposed to be? |
its not working properly in mozilla firefox . can someone pls help. The rootSvg.clientWidth and rootSvg.clientHeight values are zero. var zoomToElement = function(el, filling, overrideScale, interval, ease, cb){ |
Here is a function to zoom to the bounding box of an element:
Notes:
The text was updated successfully, but these errors were encountered: