layout not working?

0 votes
asked Jul 1, 2023 in Question / help by costateixeira (500 points)

1 Answer

0 votes
answered Jul 2, 2023 by The-Lu (73,540 points)

Hi C., and all,

From:

You can add just:

RR -r[hidden]- P 

And observe:

But the mean issue is:

CodeOutput
@startuml
allow_mixing

class a
class b

package "center" as p {
 class c
}

a->p
p->b
@enduml

If that can help,
Regards.

commented Jul 3, 2023 by The-Lu (73,540 points)

Here is a workaround using transparent rectangle, as:

CodeOutput
@startuml
hide circle
hide stereotype
allow_mixing
skinparam linetype ortho
<style>
rectangle {LineColor transparent}
</style>

skinparam class<<MD>> {
 BorderColor DarkSlateGray
 BackgroundColor WhiteSmoke
 HeaderBackgroundColor #909090
}

skinparam class<<TM>> {
 BorderColor #505090
 BackgroundColor APPLICATION
 HeaderBackgroundColor SkyBlue
}

Package "Package" as S {

rectangle {
class "**Right**" as DC<<TM>> {
...
}
}

Package "**Center**" as AR {
file "rules" as P
}

rectangle {
class "**Left**" as RR<<TM>> {
...
}
}
}

node "Implementation" as I {
circle "Left" as Req
component "Center" as AC
database "Right" as DB
}

Req -> AC 
AC -> DB 

P -d- AC
RR .d. Req
DC .d. DB
@enduml

If that can help,
Regards.

...