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

Porting Link connection from ports to nodes

$
0
0

@Tany wrote:

Hi,
My application connects links via ports, namely, link.data has { to, from, toPort,fromPort }.
The toPort and fromPort are port keys in the to/from nodes respectively.

I was asked to connect the link directly to the node but still maintain the port list in each node.
So,

  1. for each link i deleted the toPort/fromPort attributes, (setDataPorporety to null).
  2. Deleted the fromLinkable, toLinkable in the node template
  3. Set the diagram.model. linkFromPortIdProretpy and linkToPortIdProretpy to “” ;

What else needs to be done ?

Posts: 10

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles