Jump to content


Restrict Scaling

Recommended Posts

Is there a way with Transform Manager to restrict the scaling from say 0.25 - 2 ? I can't see anything in the API but this would be a very important feature to have.

Link to comment
Share on other sites

Absolutely. There are maxScaleX, minScaleX, maxScaleY, and minScaleY properties. And there is a setScaleConstraints() method that allows you to set those all in one easy step.

Link to comment
Share on other sites

I only looked in the TransformManager API (as I assumed it would be a global thing) and not TransformItem.


I guess it makes more sense to be able to set different values per item.


Thanks ;)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.