"hide empty description" for composite states with only outputPin

0 votes
asked Oct 6, 2023 in Wanted features by sion-zenit (120 points)

Hi! It is possible to hide white space for composite states if they not contain inner states, except outputPin, inputPin, etc.? For example:

@startuml
hide empty description

state SimpleOutput {
    SimpleOutput: description
    state out <<outputPin>>
}

state SimpleInput {
    state in <<inputPin>>
}

out --> in
@enduml
I would like to hide white space in this diagram for composite states.

1 Answer

0 votes
answered Mar 12 by dickmaley (4,120 points)

This is the best I can do

image

@startuml
hide empty description

left to right direction

state SimpleOutput {
    SimpleOutput: description
    state out <<outputPin>>
}

state SimpleInput {
    state in <<inputPin>>
}

out --> in

@enduml

...