Why span the box not over all text in sequence diagramm?

0 votes
asked May 6 in Question / help by Martin

I'm using box in sequence diagrams. I'm using "self-calls" on the right most participant.  ==> The box doesn't span over all the text. Why?

My code:

@startuml

box #WhiteSmoke  

participant HI order 20

participant EC order 10

end box


== NMT startup ==


HI -> HI : Boot()

& EC -> EC : Boot()


HI -> HI ++ : Startup(EnterInitialisation_Init)

& EC -> EC ++ : Startup(EnterInitialisation_Init)

HI -> HI : Startup(InitCANopenDevice)

& EC -> EC : Startup(InitCANopenDevice)


@enduml
commented May 8 by The-Lu (44,040 points)

Here is a workaround, by old skinparam, as:

@startuml
skinparam sequenceParticipant {
  fontColor<<hidden>> transparent
  borderColor<<hidden>> transparent
}
skinparam sequenceLifeLineBorderColor<<hidden>> transparent

box #WhiteSmoke  
participant HI order 20
participant EC order 10
participant H  <<hidden>> order 30 #transparent
end box

== NMT startup ==

HI -> HI : Boot()
& EC -> EC : Boot()

HI -> HI ++ : Startup(EnterInitialisation_Init)
& EC -> EC ++ : Startup(EnterInitialisation_Init)

HI -> HI : Startup(InitCANopenDevice)
& EC -> EC : Startup(InitCANopenDevice)
@enduml

Adapted from:

If that can help,
Regards.

commented May 8 by The-Lu (44,040 points)

Or a workaround with style:

@startuml
<style>
.hidden {
  lineColor transparent
  Participant {
    fontColor transparent
    backGroundColor transparent
  }
}
</style>

box #WhiteSmoke  
participant HI order 20
participant EC order 10
participant H  <<hidden>> order 30
end box

== NMT startup ==

HI -> HI : Boot()
& EC -> EC : Boot()

HI -> HI ++ : Startup(EnterInitialisation_Init)
& EC -> EC ++ : Startup(EnterInitialisation_Init)

HI -> HI : Startup(InitCANopenDevice)
& EC -> EC : Startup(InitCANopenDevice)
@enduml

Regards.

commented May 8 by The-Lu (44,040 points)

Then a question to PlantUML team:

  • Why with `!pragma teoz true` the gray lifeLine remains?
Here is the example:
@startuml
!pragma teoz true
<style>
.hidden {
  lineColor transparent
  Participant {
    fontColor transparent
    backGroundColor transparent
  }
  lifeLine {
    lineColor transparent
  }
}
</style>

box #WhiteSmoke  
participant HI order 20
participant EC order 10
participant H  <<hidden>> order 30
end box

== NMT startup ==

HI -> HI : Boot()
& EC -> EC : Boot()

HI -> HI ++ : Startup(EnterInitialisation_Init)
& EC -> EC ++ : Startup(EnterInitialisation_Init)

HI -> HI : Startup(InitCANopenDevice)
& EC -> EC : Startup(InitCANopenDevice)
@enduml

  • Then how to change lifeline color when we use teoz?
KR.
commented May 9 by hessma (100 points)

That's a good approach thanks. Unfortunately either the participant text (skinparam) or the lifeline (style, pragma teoz) remains visiblesurprise when I decode it on my machine.
My command line looks like this:
java -jar C:\programs\plantuml\plantuml.1.2021.12.jar plantuml_boxIssue.txt -tsvg

Try to add picture...

commented May 9 by The-Lu (44,040 points)

Yes, (with pragma teoz) that is an issue.

See my last comment :

But for your test, perhaps you can upgrade your PlantUML version to V1.2022.2++, see:

Regards.
commented May 9 by hessma (100 points)

With plantuml-1.2022.5.jar it looks the same as with online version. Same issue as you mentioned with pragma teoz. 

Regards

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...