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

Can't move node

$
0
0

@julio.sampaio wrote:

Hello,

We have a node template that should be "fromLinkable" and "toLinkable", but when these properties are true the node won't move. Is it possible to have this node to be "fromLinkable", "toLinkable" and still "movable" ?

Here is the node template:

var personNodeTeamplate = $(go.Node, "Vertical",
            {
                "fromLinkable": true,
                "toLinkable": true,
                "locationSpot": go.Spot.Center,
                "locationObjectName": "ICON",
                "fromLinkableDuplicates": true,
                "toLinkableDuplicates": true,
                "movable": true,                
            },
            $(go.Panel, "Auto", {name: "ICON"},
                $(go.Shape, shape, {
                        "width": width,
                        "height": height,
                        "strokeWidth": 2,
                        "fill": "white",
                        "portId": "mainShape"
                    }
                ),
                $(go.TextBlock,
                    new go.Binding("text", "age") 
                )
            ),
            $(go.TextBlock,
                {margin: 5},
                new go.Binding("text", "name") 
            )
        );

Thank you.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6976

Trending Articles