I am trying to create ports for groups, but it looks off. Please help. I want the ports on topcenter, botton, left and right of the group box
dia.groupTemplate =
$(go.Group, "Vertical",
{ ungroupable: true }, // allow Ctrl-Shift-G to ungroup a selected Group.
$(go.Panel, 'Auto',
$(go.TextBlock,
{ font: "bold 12pt sans-serif" },
new go.Binding("text")),
$(go.Panel, "Auto",
$(go.Shape, { fill: "transparent" }),
$(go.Placeholder, { padding: 10 })
),
),
// Ports
makePort('t', go.Spot.TopCenter),
makePort('l', go.Spot.Left),
makePort('r', go.Spot.Right),
makePort('b', go.Spot.BottomCenter)
);