Replies: 1 comment 1 reply
-
Are there any bug right now on controls of objects inside groups? or are tl/tr/bl/br graphically misplaced if painted? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I was creating a custom group, if shape A is positioned relative to the top-left corner of group G and G is flipped horizontally, shape A will be positioned relative to the top-right corner of G.
In fact, A should always be positioned relative to G's tl (top-left corner), regardless of how G is flipped. However, the current calcACoords method does not account for flipping; it always represents the top-left corner of the shape.
The built-in controllers in Fabric also handle flipping with additional processing. If calcACoords takes flipping into account, these extra processing steps can be removed
I want the calcACoords method to work as follows: tl, tr, br, and bl no longer represent the four corners of the visible area but instead represent the four corners of the front face of the shape.
Beta Was this translation helpful? Give feedback.
All reactions