Not sure if it's a bug, not supported or I'm doing it wrong. I'm trying to format a map object using a procedure while maintaining the connection ability. If you render the example below, you'll see the arrow from the "these" group object to the "those" group object is accurate. However, in the Key and Field procedures, if you uncomment the styled objects and comment out the "$name => $type" lines, it looks the way I want it, but the arrow is not working. It's not mapped to the objects anymore. I've tried various ways to alias it, but luck. Any ideas?
@startuml
!procedure Group($name)
map "<size:15><b>$name</b></size>" as $name
!endprocedure
!procedure Key($name, $type)
'<color:#b8861b><&key></color> <b>$name</b> => $type
$name => $type
!endprocedure
!procedure Field($name, $type)
'<color:#efefef><&media-record></color> $name => $type
$name => $type
!endprocedure
Group( these ) {
Key( id, int )
Field( name, string )
Field( those, int )
}
Group( those ) {
Key( id, int )
Field( name, string )
}
these::those -> those::id
@enduml
` Simpler Example
@startuml
map Foo {
'<b>abc</b> => 123
abc => 123
}
map Bar {
def => 456
}
Foo::abc => Bar::def
@enduml