我正尝试使用JavaScript将mxGraph的XML图转换为SVG。有了XML字符串,我需要将它解析为SVG,以便进一步分发给html。 This post显示我需要做什么与solution implemented in Java。我可以将XML解析为图形,并且无法将图形渲染为SVG,似乎无法找到与mxCellRenderer.js中的drawCells()方法等效的方法。在mxGraph中将XML转换为SVG javascript
任何人都可以使用JavaScript(可用的mxGraph库)将XML转换为SVG吗?