adobe-webplatform / Snap.svg

The JavaScript library for modern SVG graphics.
http://snapsvg.io
Apache License 2.0
13.91k stars 1.15k forks source link

Different Position from getBBox(); #641

Open richardlowenthal opened 3 years ago

richardlowenthal commented 3 years ago

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.

ibrierley commented 3 years ago

Maybe create a minimal jsfiddle highlighting the question.