I'm looking at an application where the UI is specified in SVG with interactive elements (sliders, buttons). See example below, rendered with lunasvg.
There does not appear to be any API for getting the bounding box of an element. I'd have thought a simple mapping of element ID to a bounding rectangle that was optionally generated when rendering would do the trick. And without compromising the desire to keep the render tree implementation internal? Does this make sense?
A very useful library. Thank you.
I'm looking at an application where the UI is specified in SVG with interactive elements (sliders, buttons). See example below, rendered with lunasvg.
There does not appear to be any API for getting the bounding box of an element. I'd have thought a simple mapping of element ID to a bounding rectangle that was optionally generated when rendering would do the trick. And without compromising the desire to keep the render tree implementation internal? Does this make sense?
P.S. Did https://github.com/sammycage/lunasvg/issues/71 ever get implemented?