How does js dynamically generate a custom topology diagram?

want to implement a topology diagram where children can be dynamically added or deleted at the topmost parent, and children can be dynamically switched.

found some plug-ins that can be generated quickly, but failed to add and remove such features dynamically.

do you have any good ideas and references for implementation?

the prototype is as follows:


change the plug-in yourself, nothing more than the addition, deletion, modification and rendering of multiple trees

Menu