Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Philip Bulley

EaselJS and transformOrigin

Recommended Posts

So I realise that transformOrigin is a CSS property and thus don't expect it to work when tweening scaleX and scaleY of an EaselJS Bitmap, but is there any way I can achieve the same ends? Tweening using a top left origin isn't always ideal. Thanks :)

Link to comment
Share on other sites

Thanks Jack. Being new to EaselJS, I wasn't yet aware of regX and regY, that indeed solves my problem :)

 

Do you think there could still be a benefit in implementing transformOrigin or TransformAroundPoint within the EaselJS plugin? You'd be able to keep your registration point at 0,0 and perform transforms around any co-ordinate without having to compensate when setting x,y position of your DisplayObject.

Link to comment
Share on other sites

We may eventually do something like that, but I'm not sure there's enough demand to justify the time (and kb) it'd take quite yet. If anyone else wants to chime in and vote for this, feel free. We're very busy working on other features too, rest assured :) We've just got to be wise with where we put our time, that's all. 

Link to comment
Share on other sites

Totally understand, "regX" and "regY" is certainly sufficient for now. As always, thanks and keep up the amazing work :)

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.
×