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

Different Position from getBBox(); #641

Open
richardlowenthal opened this issue Sep 28, 2020 · 1 comment
Open

Different Position from getBBox(); #641

richardlowenthal opened this issue Sep 28, 2020 · 1 comment

Comments

@richardlowenthal
Copy link

richardlowenthal commented Sep 28, 2020

We're trying to get the position of a svg element using getbbox().

For example, we have an elementLogo at x y = 484, 247.

When I use this:

var logoSnapNew = Snap(elementLogo); var cBoxLogoNew = logoSnapNew.getBBox();

It returns 247, 117 instead and the elementLogo is placed a different location. Appreciate any help.

@richardlowenthal richardlowenthal changed the title Different Position from logoSnapNew.getBBox(); Different Position from getBBox(); Sep 28, 2020
@ibrierley
Copy link
Collaborator

Maybe create a minimal jsfiddle highlighting the question.

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