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

TextBlock alignment of Link changes after connecting it to port

$
0
0

@pawantarani wrote:

TB%20Port%20Issue

Code for Port:
$(go.Shape, “Circle”,

	{
		fill: "gray",
		name: "OUT",
		fromSpot: go.Spot.Right,
		toSpot: go.Spot.Right,
		alignment: go.Spot.Right,
		alignmentFocus: go.Spot.Right,
		desiredSize: new go.Size(8, 8),
		portId: "OUT",
		toMaxLinks: 1,
		cursor: "pointer"
	}
)

Code for TextBlock:
$(go.TextBlock, “Line”,

{
	segmentIndex: 0,
	segmentFraction: 0.5,
	segmentOffset: new go.Point(0, -8),
	alignment: go.Spot.Center,
	textAlign: "center",
	editable: true,
	name: "TB"
}

)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles