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

Unable to relink to same port

$
0
0

@TheChroniQ wrote:

Hello there,

I am trying to relink a link to a certain port, but it is not working...
Even though having set properties to port:

                toLinkableDuplicates: true,
                fromLinkableDuplicates: true,
                fromMaxLinks: 50,
                toMaxLinks: 50,

Here is the behaviour I obtain

It happens when the selected link has duplicates (same fromport/toport), having said that if I select another link that has no duplicates it behaves correctly.

Now, I am wondering if its due to:
- duplicates having same key/id in the nodeDataArray
or
- its an issue regarding the selection itself, while thinking I am selecting only one link, I am in fact selecting multiple duplicates links. Consequently, I have added a listener but it's seems that single link is selected on click.

I am thinking of affecting unique key to each links even though they have same path and so are duplicates.

Any thoughts?

EDIT: Even though links having different id's, it still does not work
EDIT2: Setting property maxSelectionCount to 1, does not change the behaviour either

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6977

Latest Images

Trending Articles



Latest Images