-2

How can I create a model with different input and output ports.

For example:

Inputs ports - triangles

Output ports - circles

Michael Vashchinsky
  • 2,137
  • 1
  • 17
  • 15

1 Answers1

1

I have figured that out, if anyone interested

I am using <path class="port-body"/>

and setting different d paths when creating a new cell:

// ...
'.inPorts .port-shape': {
   d: pathForInputPort
},
'.outPorts .port-shape': {
  d: pathForOutputPort
}
// ...

`

Michael Vashchinsky
  • 2,137
  • 1
  • 17
  • 15