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

What is Framer? Join the Community
Return to index
Muhammad Athar
Posted Jul 09 - Read on Facebook

Hi Guys. Can someone tell me a practical scenario where the following 3 functions will be useful.
layer.convertPointToCanvas(point)
layer.convertPointToScreen(point)
layer.convertPointToLayer(point)
Thanks in advance!

2 Comments

Jonas Treub

Converting points is necessary to project points from the main context onto layers. It's especially cool when working with 3D rotated layers. Here is an example: https://framer.cloud/sjZCi

Muhammad Athar

Really Appreciate the Help...

Read the entire post on Facebook