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

Create a root node that is fixed at 0,0

$
0
0

@RazorJack wrote:

Hi All,

I've been playing with GoJS apart of a programming class I'm taking.

For my final project, I've decided to create a mini diagramming website using a MEAN 2.0 stack, jQuery and GoJS. So far so good.

The only thing I can't figure out is how to make a diagram fixed at 0,0 while all other nodes can move, drag, copied, etc ...

In my startup routine, I'm simple creating:

diagram.add(
    $(go.Node, go.Panel.Auto,
        $(go.Shape,
            {
                figure: "RoundedRectangle",
                fill: "white",
                strokeWidth: 1
            }
        ),
        $(go.TextBlock,
            {
                text: "root node",
                margin: 15
            })
    ),
    {
        allowMove: false
    });

Of course, that's not working. Any ideas?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles