another question: is there a simple way to prevent an image sublayer to scale, when scaling its parent layer?
Lut Ze not a simple way (at least not that I' know of) What you can do is to create a function for the scaling, that removes the sublayer, scales, then put it back in ) of course the issue is: you have to put the sublayer in the perfect position while removing from it's parent
yeah, that would be a nice feature to add though. right now im scaling the sublayer with the inverse of the scale factor which scaled the parent layer.
You can have an event listen for a scale change on the parent. And when that's fired also do the inverse on the child.
It's not documented I don't think. When I get it my desk I'll get you that event handler.
parent.on "change:scale", => child.scale... etc
I hope that helps.