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


Danny White

Benjamin's original prototype:

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)

Jordan Robert Dobson

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

Read the entire post on Facebook