I have
<object
data="${content}"
type="image/svg+xml"
></object>
Where content is a svg.
Currently i am trying to figure this on elm.
object
[ Attr.attribute "data" "${content}"
, Attr.type_ "image/svg+xml"
]
[]
QUESTION: how can i find the width of the svg?
I tried in elm on "load"
but it does not fire. Javascript or elm solution welcomed, but i prefer elm
I tried on elm
on "change" decodeImgLoad
or
on "load" decodeImgLoad
but they do not get called at all.
When i used img instead of object it worked, but i want to have the svg set up correctly on the dom and not just as image.
In elm i can not reference the svg directly, i need img or object or to convert it into elm svg. (to convert it into elm svg is not possible, as the svg is large)