-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
ParallelMidpointLocator doesn't rotate figures inside the label #255
Comments
I did this which rotates the figures:
But in my case, the locator is LeftLocator which uses setPosition which is absolute. Seems like there should be an applyConsiderRotation method (taken from PortLocator) that all locators use instead of setPosition. |
I tried to use applyConsiderRotation instead of setPosition in LeftLocator. It doesn't work. The reason is that it calculates the offset according to the parent's bounding box that is in absolute space. |
I ended up creating these patches to LeftLocator and TopLocator. I achieved them using trial & error, and they work only for a 90 angle rotation. LeftLocator:
TopLocator:
|
If I have a label and I add another figure to it. The label is rotated by the locator. But, the figure inside it remains in place (or, more likely, the locator associated with it, places it according to the old label placement).
I think that in general, the best approach is for each figure to have a local coordinate space and then child figures are placed in this space and to draw them globally, any matrix that applies to the figure is applied to them as well (and recursively if that figure is inside another)
The text was updated successfully, but these errors were encountered: