gwenaelp / vue-diagrams

Diagram component for vue.js, inspired by react-diagrams
MIT License
283 stars 64 forks source link

Make diagram read-only #8

Open buremba opened 4 years ago

buremba commented 4 years ago

Is there any way to make the diagram items draggable but disable the user to create new links?

gwenaelp commented 4 years ago

This is not possible yet. I started this library as a proof of concept and as it ended quite well I published it. I did not a lot of interesting proposals on it this year, but this is definitely one valuable idea. I'll probably work on it when I'll have some spare time. I'm working a lot on other projects right now, and sadly, publishing opensource libraries on github does not pay my bills (yet?).

If you want to try to implement it yourself, knock yourself out! And don't forget a pull request! If you start something, and you're having difficulties, we can arrange a call or a chat discussion. But at the moment I can't offer to provide some time implementing new features.

I'm planning to have some free time for open source development next year so if you're patient I'll probably implement it. But it will probably be next year, in march/april. Sorry!

buremba commented 4 years ago

Thanks for getting back to me @gwenaelp. It looks like there is no solution for Vue yet so started using react-diagrams. Luckily, the library just needs to be initialized with React and React-Dom but the configuration does not depend on it. We use Vue & React together and the rest of the app is powered by Vue now. I would also be willing to try this library out once you release a stable version. Thanks!

AndersonGuerra commented 4 years ago

@buremba could you give me a hint on how to do this implementation? I don't know much about react and I tried to use vuera to use react-diagrams, but with no success