Closed hexaeder closed 2 months ago
boundingbox(plot, plot.markerspace[])
will give you a bounding box for the text plot with positions included, and string_boundingbox(glyph_collection, pos, rot) = unchecked_boundingbox(glyph_collection, pos, rot)
will give you one without if you set pos = Point3d(0)
. The former is public, the latter still internal.
Thank you! For now unchecked_boundingbox
is a working replacement. Of course it would be nice to go to the documented API. boundingbox(plot, plot.markerspace[])
will still give me a bounding box for the entire text plot. What I need specifically is the bounding box for each individual label. Am I missing something?
Closing as solved/answered
In GraphMakie on Makie@0.20 we used to use
to get the the bounding box of single elements within a textplot to draw node shapes around it in the correct size.
This solution (...which admittedly abused internals...) does not work anymore in Makie@0.21. Any suggestions on how to replace it?
xref https://github.com/MakieOrg/GraphMakie.jl/pull/183