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

What is Framer? Join the Community
Return to index
Ed Lea
Posted Jan 02 - Read on Facebook

A while back I created a module that extended Layer.coffee. I had the following code:

Layer::setWidth.call @, @width * @deviceRes

But that no longer works. I'm wondering what I can replace "setWidth" with?

Pastebin of module http://pastebin.com/T4MhKHG6

3 Comments

Krijn Rijshouwer

Did we change this for the Auto Code Animation release Niels van Hoorn?

Ed Lea

Krijn Rijshouwer did you hear back about this?

Niels van Hoorn

Yes, we removed the setter and getter functions from the layer property definitions. I've poked around a bit in the library, but currently there doesn't seem to be an easy way to do this. Here's an example of using an onChange handler: https://framer.cloud/zaIwv/ but that isn't ideal. Koen Bok, what do you think, should we add the setters again?

Read the entire post on Facebook