Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Konvajs/Vue-Konva connect the shapes using the connector dynamically #177

Open
Aravinda93 opened this issue Nov 7, 2021 · 4 comments
Open

Comments

@Aravinda93
Copy link

Aravinda93 commented Nov 7, 2021

I am using Konvajs/Vue-Konva within my Vuejs/Nuxt application. Using Konva I am creating the Rect shape dynamically at run time. Now I would like to use some sort of Connectors to connect the different Rect Shapes so that I can have the logic of which is source Rect and which is Target Rect so as to build the Parent-Child relationship.

I am creating the connectors using the same approach as shapes but for some reason, it is not working as expected.

I have added my code sample here in CodeSandBox.

I am looking to build something like this, where I can draw the Nodes/Shapes and connect them using some sort of Connectors with Labels. Can someone please let me know how can I add the Connectors and build the logic to understand Rect/Shape that has been created using Vue-Konva

CPT2111081318-1890x906

@lavrton
Copy link
Member

lavrton commented Nov 8, 2021

Your code is too large. Make a small demo and ask a specific question.

What should we do with the demo? What exactly is not working?

@Aravinda93
Copy link
Author

@lavrton Thanks a lot for your response. I have edited my question and added an image to provide you with a better idea of what I am trying to do. If you get a chance can you please suggest me something?

@roydekleijn
Copy link

Any luck ?

@Aravinda93
Copy link
Author

@roydekleijn I used Drawflowlibrary and that worked perfectly for my requirement.
https://github.com/jerosoler/Drawflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants