korbinzhao / mxgraph-editor

mxgraph-editor
MIT License
78 stars 31 forks source link

convert to reactjs project #7

Open dinesh-offl opened 5 years ago

dinesh-offl commented 5 years ago

i want to convert the https://github.com/jgraph/mxgraph project into reactjs completely and i dont know how to implement. i just want to import all JS files in a component that renders the graph. I hope you will respond me. Thanks in advance

PS: when i import all JS files, every function gets 'undefined'

davizucon commented 5 years ago

Try : https://codesandbox.io/s/github/eyupcolak/mxgraph-react https://github.com/eyupcolak/mxgraph-react

dinesh-offl commented 5 years ago

Thank you so much for considering ;) Actually, i need the same toolbar and sidebar which is available in the official mxgraph and that is the biggest problem to import now. is there any easy way to import the grapheditor/www/js/ files inside your react project?

Thanks in advance

mubarok-iqbal commented 4 years ago

Is this issue resolved?

SandeepRCH commented 4 years ago

Hi Dinesh, Actually I am also having the same problem. Are you able solve this issue. If yes can you also mention how you added the same toolbar and sidebar in your react project.

Thanks in advance.

RichaShah9 commented 4 years ago

Hello @SandeepRCH @dinesh-offl @davizucon , I wanted the same thing.. Any update about same toolbar and sidebar like https://jgraph.github.io/mxgraph/javascript/examples/grapheditor/www/index.html with react? Thank you in advance.

lbrutti commented 4 years ago

Hello, mee too i'm trying to webpack the grapheditor example. I'd like to avoid any particular framework and keep everything in plain js but unfortunately all questions and issue relate to Angular o react... any suggestion is appreciated ;)