Hi,
I need to implement ports in the following device template :
For each port hole (marked with blue arrow) i would like to implement a yellow rectangle “port”
I started with two ports, as shown below, but i’m having problems locating them on the exact spot :
I tried to use Table panel with alignment and Spots values, as follows, (sorry, forgot how to format the code) :
(go.Panel, "Table", (go.RowColumnDefinition, { row: 0, alignment: go.Spot.Left }),
{ alignment: new go.Spot(0.34, 0.66) },
(go.Panel, "Horizontal", { column: 0, row: 0, }, (go.Shape,
{ width: 50, height: 35, portId: “A”, fill: “yellow” })
),
(go.Panel, "Horizontal", { column: 1, row: 0 }, (go.Shape,
{ width: 50, height: 35, portId: “B”, fill: “yellow” })
),
)
But i have the feeling, there’s a simple way…