Descriptionly:stencil-rotate appeared to rotate the stencil's contents correctly around some given point, but the rotation of the bounding box was so broken that I had a hard time understanding what was happening at all and what the code was supposed to do. In the end, I simply reimplemented that calculation from scratch, also adding a function ly:stencil-rotate-absolute-coordinates, which takes the point of rotation in absolute coordinates.
I will need this for always rotating a stencil around the point (0,0), no matter what the stencil's extents are.
Patch Set 1 #Patch Set 2 : Re-add some debug boxes #
MessagesTotal messages: 2
|