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

Centering the diagram based on node

$
0
0

@jkarhu wrote:

I try to center the diagram in the middle of the viewport based on the clicked node.

I have tried to achieve this by getting some values that I could use for proper calculation. Is there any way to get for example the node alignment in the viewport? Or in any other "container" (sorry if my terminology is bad, I try to absorb all of it still). For example

node.alignmentIn(parentPanel) // 0.4

or something similar?

Do you have any other ways for solving the initial problem?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles