How can change the postion of portin / portou?

0 votes
asked Oct 16, 2023 in Question / help by philcage (160 points)
In the example:

@startuml
[i]
component C {
  portin p1
  portin p2
  portin p3
  portout po1
  portout po2
  portout po3
  component c1
}
[o]
@enduml

Portin is on the TOP, portout is at the BOTTOM;

How can change the position of portin / portout? For example, make the portin at the LEFT, and portout at the RIGHT?

1 Answer

0 votes
answered Oct 16, 2023 by The-Lu (63,000 points)

Hello P., and all,

For that you can use:

left to right direction

As:

@startuml
left to right direction
[i]
component C {
  portin p1
  portin p2
  portin p3
  portout po1
  portout po2
  portout po3
  component c1
}
[o]

i --> p1

po1 --> o
@enduml

Enjoy,
 

See also some know issues here:

Regards,
Th.

commented Oct 17, 2023 by philcage (160 points)
got it. Thanks!
...