Closed lbrutti closed 3 years ago
Not sure if npm package of mxgraph has entire functionality, but if you are uisng Angular , what you can do is copy mxgraph project to somewhere in assets folder
Add below code in TS file,
const script = '
Add mxClient.js to Scripts array in angular.json
Hello, I'm building a graph editor application and i'd like to use the grapheditor example as a starting point. I tried to bundle it with webpack but seems like I have to expose a lot of global variable in the window object:
For example:
Yet it's not enough to make thinks work.
Is there a beste way or a webpackable fork?
Thanks in advance