Using SVG in GWT

后端 未结 8 833
感动是毒
感动是毒 2021-02-05 12:31

I was wondering if it is possible to include SVG content inside a panel (or whatever would work in GWT), be able to add more to the SVG (like add a circle or a curve) programmat

8条回答
  •  北海茫月
    2021-02-05 12:56

    You might stuble about the html vs xhtml problem: inline SVG needs to be interpreted as XML/XHTML, but at least for me, I cannot persuade GWT to live with applicaton/xhtml+xml as a content type. For the local test you wonder about: try to save the file as .xhtml and load it into Firefox - then it works, because FF in this case interprets it as XHTML.

    See http://wiki.svg.org/Inline_SVG for background information.

    If you find a solution to the problem, please post. Regards, Axel

提交回复
热议问题