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

How to move a node at center of viewport?

$
0
0

@sangnv wrote:

I’m using genogram sample.

this’s my code:

const node = diagram.findNodeForKey(-43);
diagram.centerRect(node.actualBounds);

The node don’t center in the viewport. It should position the entry exactly center of viewport. Please help me for this case.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles