Skip to content

Conversation

@frankvp11
Copy link
Contributor

@frankvp11 frankvp11 commented Jun 26, 2025

This adds the ability to access the bounding boxes of shapes in GraphicSVG.
The Text case isn't perfect, mostly because the exact character size is unknown.
Let me know if there are any issues. This is what the test looks like:
image

@frankvp11
Copy link
Contributor Author

Found edge case of repeated rotations like this:

                    , roundedRect 40 20 5
                        |> filled green
                        -- |> skew 0.5 0
                        |> rotate (degrees 30)
                        |> rotate (degrees -30)
                        |> move (0, 40)
                       ```
Looking to fix now

@frankvp11
Copy link
Contributor Author

frankvp11 commented Jun 26, 2025

One of the things that I've learned is that you should inspect the element if it doesn't appear like its' correct.
For example, if we look at this test case:
image
It doesn't appear correct without inspecting it.
Same thing goes for this test case:
image
I've updated the PR and it works better now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant