如何利用angular2客户端库集成JavaScript编辑器?
我已经尝试过了,
因此,我想知道如何将my图形编辑器集成到我的angular2应用程序中。
发布于 2019-05-14 11:10:41
如果有人仍然在角形4/5/6的角度上挣扎于mxGraph集成,那么下面是完整的解决方案:
很少有关于不同mxGraph Repos的详细信息:
Repo-1: https://github.com/jgraph/mxgraph
This is an official release repo of mxGraph. With npm issues.
Repo-2: https://bitbucket.org/jgraph/mxgraph2
This is an official development repo of mxGraph. With npm issues.
If anyone wants to see what npm issues with these above repos(i.e. Repo-1 and Repo-2), then check these following issues:
- https://github.com/jgraph/mxgraph/issues/169
- https://github.com/jgraph/mxgraph/issues/175
Repo-3: https://bitbucket.org/lgleim/mxgraph2
Fork of Repo-2. With npm fixes.
Repo-4: https://github.com/ViksYelapale/mxgraph2
Fork of Repo-2. Merged npm fixes from Repo-3 as well. Added changes(i.e. required for local installation of mxGraph) to this repo.步骤:
$ cd mxgraph2
$ npm install$ npm install /path/to/mxgraph2
例如npm install /home/user/workspace/mxgraph2
它将在您的package.json文件中添加类似的条目如下:
"mxgraph": "file:../mxgraph2"$ npm install$ npm install lgleim/mxgraph-typings --save<div id="graphContainer"></div>希望这会有帮助。
https://stackoverflow.com/questions/44648326
复制相似问题