Hi,
I am using the makeUniqueLinkKeyFunction
on the go.GraphLinksModel
to create a link key
based on the the link data
. This works fine when I initialize the model and when I create new links. When creating a new link, the link data is filled based on the properties that I have set on the model:
linkFromKeyProperty
linkToKeyProperty
I am using these properties in the link data
to create the unique key in the makeUniqueLinkKeyFunction
function.
However, when I am copying nodes that have links, the makeUniqueLinkKeyFunction
is called with the old properties. So the properties from the source nodes that I am copying (instead of the newly created copied nodes). This results in a duplicated link key and therefore gojs appends a numeric value.
Would it be possible to received the copied node properties in the makeUniqueLinkKeyFunction
or how should I address this issue?
For clarification: my link key is simply: ${fromNode}-${toNode}
based on the linkFromKeyProperty
and linkToKeyProperty
properties in the linkdata
.