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

Arrowhead bug?

$
0
0

@jpro wrote:

i'm seeing strange arrowhead behavior. using segmentOrientation and segmentOffset works correctly sometimes. yet sometimes not:

here is my link template:

$(go.Link, {
	selectable: false,
	curve: go.Link.Bezier
},

$(go.Shape, {
	name: "SHAPE",
	stroke: DISPLAY.linkColor,
	strokeWidth: 1,
}),

$(go.Shape, {
		name: "TOARROW",
		stroke: DISPLAY.highlightColor,
		fill: DISPLAY.highlightColor,
		segmentOffset: new go.Point(-20,0),
		segmentOrientation: go.Link.OrientAlong
	},
	new go.Binding("toArrow", "toEnd")
),

$(go.Shape, {
		name: "FROMARROW",
		stroke: DISPLAY.highlightColor,
		fill: DISPLAY.highlightColor,
		segmentOffset: new go.Point(20,0),
		segmentOrientation: go.Link.OrientAlong,
	},
	new go.Binding("fromArrow", "fromEnd")))

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles