I\'m searching for a solution of the question that I expected to be solved already. But I saw only big projects with a lot of features but no simple solution.
Actually I
Use a library, like JSPlumb: https://jsplumbtoolkit.com/