murongqimiao / DAG-diagram

VUE plugin for DAG graph , u can use it 4 flow diagram or machine learning visualization
https://murongqimiao.github.io/DAG-diagram/#/example
MIT License
402 stars 124 forks source link

Duplicate arrows allowed #7

Open KomeijiSatori opened 5 years ago

KomeijiSatori commented 5 years ago

multiple arrows between two nodes are allowed, which is not cool, you may fix it.

murongqimiao commented 5 years ago

multiple arrows between two nodes are allowed, which is not cool, you may fix it.
the lasted guild is https://murongqimiao.github.io/DAGBoard/#/example u can intercept the multiple arrows when the SVG data changes, and check that if there is some duplicated arrows, then forbid user to update the data.

I suppose , in this way , it will be more flexible to adopt the codes into your own project.

murongqimiao commented 5 years ago

multiple arrows between two nodes are allowed, which is not cool, you may fix it.

by the way, if u have QQ, welcome the group 793841737 ^_^

KomeijiSatori commented 5 years ago

Oh, so you consider it as a feature? That's ok. By the way, you may abstract nodes and edges as components, your index.vue seems too heavy, and you may use vue's computed mechanism to replace your inline element properties, that may be easier to read. 😄

murongqimiao commented 5 years ago

Oh, so you consider it as a feature? That's ok. By the way, you may abstract nodes and edges as components, your index.vue seems too heavy, and you may use vue's computed mechanism to replace your inline element properties, that may be easier to read. 😄

appreciate ! thank u 4 your help ! i will change it next version on npmjs