-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allows setting origin to any value between 0(top/left) and 1(bottom/right) #3098
Conversation
If is just this change, i m happy to include it. (style needs fixes) _resetCurrentTransform |
Ok, thank. Will have a look at the style and those 3 functions. |
OK, i have fixed style issues and those 3 functions should now support numeric origins as well. Please review and give me a heads up if somethings wrong. |
@asturur Ping! |
i watched the code a couple of time and i think made you change that other i need to download it and try, i very busy those days. On Jul 19, 2016 23:12, "Victor Hagsand" notifications@github.com wrote:
|
I just did as you said : p |
Don't forget, lol |
merged in a temporary branch so i can do tests. |
@virror i had to do some corrections, there were errors. If you can delete the changes in canvas.class.js and fix the errors in src/mixins/object_origin.mxin.js i will merge your PR. otherwise i will pull #3121 that is ready. |
When you open a PR you have to check that |
@asturur Maybe its easiest for you to just pull your branch since it has all the tests and stuff as well? |
ok i just wanted to give you credit for the contribution. i pull the other. |
I have been using this for quite a while at work with our current project and seems to work fine. Sometimes you need to be able to set another origin that just the predefined ones and then this is perfect. No issues with backwards compatibility, just adds on top.