line cant be hidden correctly

0 votes
asked Mar 9, 2024 in Question / help by doge
edited Mar 9, 2024

I want to draw a hidden line to tie two classes, however the hidden line still show a half

@startuml

hide circle

hide empty members

skinparam groupInheritance 2

class Component{

Operation()

}

class ConcreteComponent{

Operation()

}

class Decorator{

Operation()

}

class ConcreteDecoratorA{

Operation()

addedState

}

class ConcreteDecoratorB{

Operation()

AddedBehavior()

}

ConcreteComponent -up-|> Component

Decorator -up-|> Component

ConcreteDecoratorA -up-|> Decorator

ConcreteDecoratorB -up-|> Decorator

ConcreteComponent -[hidden]right- Decorator

ConcreteDecoratorA -[hidden]> ConcreteDecoratorB

note right of Decorator::Operation

component->Operation()

end note

note right of ConcreteDecoratorB::Operation

Decorator::Operation();

AddedBehavior();

end note

@enduml

www.plantuml.com/plantuml/png/ZP6nJiCm48RdkwVm24CNnbQgci32nC2868nzD1RnsJfVa13mxYYW9YsE2cFYxxx_ztbNr8eEiSSkU38kYEi9uVk3OjOt4oa-aHI4yX8uMx7Hx2KD-POxag2M7Pah10JNsrBCTOevCR6-8y1T9h4Q4bzS8dpE23iXfN-WD-IIM4tojsr2cue5wptvUxLAvmRRUh0P1rlgx6j8yXEBKFKtgo6lFhRptH4cwS9PtVW0JNyMeBQ25fiyTC5xuiVpikOOhACGWPEIaR3lrAJdsRLUJmj207V8NMrFzaRipIZuhQcJJdrrpEZRr0-nEShO4ViXzby0

commented Mar 9, 2024 by kirchsth (7,760 points)

The problem is 'skinparam groupInheritance 2' related.

If you remove the line the it work without any problems (you could use it as workaround)


BR
Helmut
 

1 Answer

0 votes
answered Mar 12, 2024 by The-Lu (88,340 points)
 
Best answer

Hello D., and all,

Here is another workaround, keeping `skinparam groupInheritance 2`, with:

'ConcreteComponent -[#red]r- Decorator
ConcreteDecoratorA -[hidden]u> ConcreteComponent

Enjoy,
Regards,
Th.

...