将mx-graph-editor的侧边栏和工具栏与react js集成

时间:2020-07-08 10:22:49

标签: reactjs mxgraph

我对此https://jgraph.github.io/mxgraph天真。 我想在react js中创建https://jgraph.github.io/mxgraph/javascript/examples/grapheditor/www/index.html编辑器。想要相同的工具栏和侧边栏。我检查了grapheditor(https://github.com/jgraph/mxgraph/tree/master/javascript/examples/grapheditor/www/js),但是这些js文件不能直接在react代码中使用。那么,有什么方法可以轻松地导入它们并创建此视图或其他实现此视图的东西?

我可以使用 mxgraph 库创建mxGraph的简单图形查看器。但是如何添加侧边栏和工具栏。我不想要任何自定义的东西。

谢谢。

0 个答案:

没有答案