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

What is Framer? Join the Community
Return to index
Danny White
Posted Feb 06 - Read on Facebook

First time I've seen `Utils.convertPointFromContext`. Doesn't seem to exist in the docs or online anywhere. Anyone know what it does, and what parameters it takes? And the difference between it and what I wrote below it? Thanks

3 Comments

Danny White

Benjamin's original prototype: http://share.framerjs.com/p1ce6f4712d4/

Marc Krenn

"convert a point from the context level to a layer, with rootContext enabled you can make it cross from the top context"

Utils.convertFrameFromContext = (frame = {}, layer, rootContext=false, includeLayer=true)

https://github.com/koenbok/Framer/blob/1bc5caa840f4f60e92cfa7fa7fdb60346fe556c7/framer/Utils.coffee#L838

Jordan Robert Dobson

I think it's taking a point and making it relative to a layer?

Read the entire post on Facebook