Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activity diagram, Case statement, arrow label missing #1401

Open
helmut-jacob opened this issue Apr 26, 2023 · 2 comments
Open

Activity diagram, Case statement, arrow label missing #1401

helmut-jacob opened this issue Apr 26, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@helmut-jacob
Copy link

helmut-jacob commented Apr 26, 2023

Describe the bug
A clear and concise description of what the bug is.

To Reproduce

Render the following diagram:

@startuml
switch (decision)
case (a)
    :a;
    ->X;
case (b)
    :b;
    ->Y;
case (c)
    :c;
    ->Z;
endswitch
@enduml

Or simply follow this link:
http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuIekpon9pb3GI4bDpYpEpC_Jv4fEB4vLq4ZKv5800gj4Qp2jQnTX3PL9WieamMGYOJB9K9bac4oKDLTgNWh42Yu781Da8m00

Expected behavior
The right-most arrow should have the label "z" on it.

Screenshots

image

Desktop (please complete the following information):

  • OS: Linux
  • Browser Firefox
  • Reproducible using the plantuml server

Additional context
Add any other context about the problem here.

@The-Lum
Copy link
Collaborator

The-Lum commented Apr 26, 2023

Hi all,
It seems a defect.

See also pseudo-similar requests (on the same topics) here:

Regards.

arnaudroques added a commit that referenced this issue May 7, 2023
@The-Lum
Copy link
Collaborator

The-Lum commented Sep 11, 2023

Hello @helmut-jacob, @arnaudroques, all,

It seems to be partially corrected (with the mentioned commit), the label is now present but there are some overlapping of labels, see example here:

@startuml
switch (decision)
case (a\na a\na a a)
    :a;
    ->X\nX X\nX X X;
case (b\nb b\nb b b)
    :b;
    ->Y\nY Y\nY Y Y;
case (c\nc c\nc c c)
    :c;
    -><back:red>Z\n<back:red>Z Z\n<back:red>Z Z Z;
endswitch
@enduml

@startuml
switch (decision)
case (a\na a\na a a)
    :a;
    ->X\nX X\nX X X;
case (b\nb b\nb b b)
    :b;
    ->Y\nY Y\nY Y Y;
case (b\nb b\nb b b)
    :b;
    -><back:green>Y\n<back:green>Y Y\n<back:green>Y Y Y;
case (c\nc c\nc c c)
    :c;
    -><back:red>Z\n<back:red>Z Z\n<back:red>Z Z Z;
endswitch
@enduml

See also similar issues here:

[If that can help, for debugging purpose...]
Regards,
Th.

@The-Lum The-Lum added enhancement New feature or request and removed triage labels Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants