This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Paolo Castillo
Posted Jul 15 - Read on Facebook

#SnapSVG #grouping #getBBox

Hello my friends,

I have a situation that I can't figure out.

p1 = s.path("#{myModule.crazyPath}")

g1 = s.group(p1)

print p1.getBBox()

# » {x:14, y:288, width:720, w:720, height:106, h:106, ...

print g1.getBBox()

# » {x:-0.8079986572265625, y:288, width:734.8079833984375, w:734.8079833984375, height:106, ...

Anybody could give me a clue on what's going on? I've tried doing the same thing with other paths and in both cases it prints out the same, as expected, but there's this one path that just won't! I wanna group several svgs and keep track of the bounding box but this one path is ruining everything :(

Cheers,
pablo

PS. It would be great to move this forum to a platform that could support threats, I would post this in the Framer/SnapSVG threat.

1 Comments

Koen Bok

I have seen this before. I'm not sure what causes it, but I think it's mathematically correct (technically) but just plain weird to us. If your paths are not too crazy, maybe you can calculate the bounds yourself.

Read the entire post on Facebook