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

Set initial points of link when using normal routing with reshapable set to true

$
0
0

@Dominic.Lerbs wrote:

Hi,
I am using normal routing with reshapable and resegmentable set to true.
When the user creates a new link, I want to set a custom shape to the link, let’s say not straight but having a 45° corner.

I thought I could modify the link and set custom points in the LinkDrawn event.
This works initially, the link is displayed with the new points but

  • No handle point is displayed at the corner even though reshapable is set to true
  • The link is reset to a straight line as soon as I move a node or something

How could I create such a custom link layout? I don’t think I should override computePoints as the points should only be set initially and the points shouldn’t be recalculated after the link as been drawn.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles