Map object alias is broken when styled

0 votes
asked Feb 18, 2022 in Question / help by JEBoothjr (120 points)

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

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...