pb10005 / diagram-vue

A editable SVG-based diagram component for Vue
https://diagramvue.netlify.com
MIT License
105 stars 32 forks source link

Click event handler for Node and Link components. #39

Closed lesovsky closed 4 years ago

lesovsky commented 4 years ago

I'm trying to make block diagram (like this) and diagram-vue is the best component which I found.

I'd like to hide/show blocks (connected with links) when clicking on neighbor blocks. It would be great if node component has a something like "@click" event handler which allow to specify user-defined functions.

pb10005 commented 4 years ago

Thank you for the suggestion! I finished creating click events. see the commit below. https://github.com/pb10005/diagram-vue/commit/6c24851ee873be736cf256a446e336827d5bdff7

lesovsky commented 4 years ago

Thanks, it works!