SVG shapes instead of stencils

别来无恙 提交于 2019-12-06 16:35:09

问题


I'm new in mxGraph world and trying to find out how to use SVG symbols with mxGraph in JS. I have a number of SVG files that I would like to use with mxGraph instead of converting each of these to stencils. Is there a way to do that? I have tried using SVG symbol as image in shapes but then I have the problem with connections not going all the way into the symbol.

Any suggestions? Thanx in advance.


回答1:


If you just want to use it as an image mxImage can help you.

If you want a special shape for your svg, define it by yourself as a custom shape

or use svg2xml to create a stencil xml.



来源:https://stackoverflow.com/questions/43785314/svg-shapes-instead-of-stencils

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!