-
-
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
Ellipse radiuses, width, height problems #1062
Comments
in the ellipse class we can add something like that:
Pluse the getRx and getRy methods to behave like circle more or less. |
PR #1699 if we need this, circle has it, so it may have even ellipse. |
if think the problem is that rx should be only 'get' accessor. If there is width, why we need to set rx? Or width 'setter' should update rx and rx 'setter' should update width. The same for ry and height |
@Ifko Sorry a typo in my first comment made my comment meaningless. |
@kangax what do you think about this? |
If ellipse exists and rx or ry is set, the width and height is not set. On the opposite side, if width and height is set, the rx and ry stay on their same values. I think it is a bug. These properties should influence each other otherwise the object does not carry the proper information (either bounding box or radiuses are badly set) I fixed it in the class derived from ellipse, but I think I am not alone with this problem. This discussion addresse the problem as well: https://groups.google.com/forum/#!topic/fabricjs/lt6p-936Ko4
The text was updated successfully, but these errors were encountered: