S
S
Semyon2021-02-11 11:36:01
JavaScript
Semyon, 2021-02-11 11:36:01

What are the libraries for adding elements to the graph by the user?

6024e9fe4d941562872750.png
For example, there is such a graph. The user clicks a button and an unattached element appears. The user transfers it to the connection of elements, say, A and B, and the element stands between them, that is, "A - element - B". Or the user can simply attach it to another element by creating a new link, say A - B - element. I found many libraries, but nowhere was it possible to embed a new element between two old ones.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profesor08, 2021-02-11
@Hitreno

I found many libraries, but nowhere was it possible to embed a new element between two old ones.

Because that's not possible. First you need to break the ties, and then form new ones, otherwise nothing will work. The library cannot know what you want from it, so you are provided with the functionality for displaying, and you yourself modify your graph as you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question