Element line style not applied in usecase diagram

0 votes
asked May 18 in Bug by anonymous

In usecase diagram element style notation (like 'usecase c #line.dashed') is not applied and always rendered as solid line.

I can reproduce this behavior in 1.2022.5 and following puml, or in official documentation (https://plantuml.com/en/use-case-diagram#ded8ac71cf351121)

@startuml

usecase c #line.dashed

@enduml

1 Answer

0 votes
answered May 18 by The-Lu (45,820 points)
 
Best answer

Hello A.,

Yes, there are some regressions on the latest versions...

KO on Usecases, on Class, 

@startuml
usecase c #palegreen;line:green;line.dashed;text:green
usecase d #aliceblue;line:blue;line.dotted;text:blue
@enduml

@startuml
abstract   abstract
annotation annotation #pink;line:red;line.bold;text:red
class      class      #palegreen;line:green;line.dashed;text:green
interface  interface  #aliceblue;line:blue;line.dotted;text:blue
@enduml

OK on deployment:

@startuml
node node0
node node1 #pink;line:red;line.bold;text:red
node node2 #palegreen;line:green;line.dashed;text:green
node node3 #aliceblue;line:blue;line.dotted;text:blue
@enduml

A possible workaround is to use style and stereotype,as:

@startuml
hide stereotype

<style>
usecase {
  .test {
    linestyle 10
  }
}
</style>

usecase c #line.dashed
usecase d <<test>>
@enduml

If that can help,
Regards.

commented May 18 by anonymous
Thank you! I'll try that workaround.
commented May 22 by plantuml (276,340 points)

We have started to fix some of these of last online version.

We're going to have a look on remaining issues...

Thanks for your help!

commented May 27 by plantuml (276,340 points)
Those should be fixed with last online version and last snapshot.

Tell us if it's not :-)

Thanks again!
commented May 27 by The-Lu (45,820 points)

Thanks a lot. yes 

Regards.

commented May 31 by The-Lu (45,820 points)

Hello PlantUML team,

We observe the same issue on State, here is the KO test:

@startuml
state s1 : s1 description
state s2 #pink;line:red;line.bold;text:red : s2 description
state s3 #palegreen;line:green;line.dashed;text:green : s3 description
state s4 #aliceblue;line:blue;line.dotted;text:blue   : s4 description
@enduml

Thanks for your works.

commented May 31 by plantuml (276,340 points)
Many thanks for the feedback.

Should be fixed in last online version and last snapshot.

Best regards,
commented May 31 by The-Lu (45,820 points)

Thanks a lot. yes 

Regards.

...