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

Flowchart nodes gets disorder

$
0
0

@YogeshMohan wrote:

After dragging and dropping node on any link , my flowchart nodes gets disorder .Please see the image

Diagram Layout - LayeredDigraphLayout
GroupLayout - TreeLayout

Drop Code on link -

            var diagram = e.diagram;
            var tool = diagram.toolManager.linkingTool;
            var newnode = diagram.selection.first();
            var link = obj.part;
            var fromnode = link.fromNode;
            var fromport = link.fromPort;
            var tonode = link.toNode;
            var toport = link.toPort;
 diagram.remove(link);
            tool.insertLink(fromnode, fromport, newnode, newnode.port);
            tool.insertLink(newnode, newnode.port, tonode, toport);

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6974

Trending Articles