Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Removing node does not update related nodes

$
0
0

@arjun-now wrote:

Hello! This is my first post here. I tried googling but can not see anyone else asking this same question so here we go. In a tree diagram with nodes and links, I removed a node and its link. The other nodes that lost dependency do not update/refresh. This is the issue I am trying to solve. Below is an example.

eg:
Original Diagram: A* -> B*
After removing node B and link: A*
Expected diagram after removing node B and link: A

A: is a node with no links
A* is a node that has a link

psuedo code:
startTransaction
removeNodeData
removeLinkDataCollection [removes link between A and B]
addLinkDataCollection [add a link with ‘from’ as node A and ‘to’ as undefined]
endTransaction

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles