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

Group from spot to spot not consistent

$
0
0

@cobolstinks wrote:

I have rectangular groups and i want links to them to connect to the top of the rectangle group, and links from them to exit the rectangle from the bottom.

Here is my group code:

myDiagram.groupTemplate =
            $(go.Group, "Auto",
                { layout: $(go.GridLayout, { wrappingColumn: 1 }) },
                $(go.Shape, "Rectangle",  // surrounds the Vertical panel
                    {
                        fill: "rgba(128,128,128,0.33)",
                        fromSpot: go.Spot.Top,
                        toSpot: go.Spot.Bottom
                    }
                ),
                $(go.Panel, "Vertical",
                    $(go.TextBlock,         // group title
                        { font: "Bold 12pt Sans-Serif", margin: 10 },
                        new go.Binding("text", "label")
                    ),
                    $(go.Placeholder,    // represents the area of all member parts,
                        { padding: 5 }       // with some extra padding around them
                    )
                )
            );

The link connections are consistent. Here is an example of what they produce:

How do i change the group configuration so the links consistently enter the top and exit the bottom?

Thanks
Chris

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6969

Trending Articles