Hi everyone, I’m new to Inkscape and I was hoping to get some help or advice, I am trying to write an extension and I need to get the visual bounding box of all selected objects, I know I can calculate the bounding box by:
self.svg.selection.bounding_box()
But this gives me the geometric bounding box, not the visual one, so it doesn’t take into account stroke-width
So my question is, is there a way to calculate the visual bounding box of the selected objects?
Or, while selecting the objects, the values for the visual bounding box do appear in the controls bar (of course as long as you have “Visual bounding box” selected on “Preferences”), is there a way to access those values so I can just grab them through the extension?
Hi everyone, I’m new to Inkscape and I was hoping to get some help or advice, I am trying to write an extension and I need to get the visual bounding box of all selected objects, I know I can calculate the bounding box by:
self.svg.selection.bounding_box()
But this gives me the geometric bounding box, not the visual one, so it doesn’t take into account stroke-width
So my question is, is there a way to calculate the visual bounding box of the selected objects?
Or, while selecting the objects, the values for the visual bounding box do appear in the controls bar (of course as long as you have “Visual bounding box” selected on “Preferences”), is there a way to access those values so I can just grab them through the extension?
Thanks in advance for any help or advice!