json line (arrow) style

0 votes
asked Jul 2 in Question / help by anonymous
I am trying to highlight a line/arrow for JSON that follows the path of highlighted elements, something similar to below, any help would be greatly appreciated.

@startjson

<style>

.hline {

LineColor green

LineThickness 3

LineStyle 2-5

}

</style>

#highlight "externalLabels"

#highlight "externalLabels" / "*" <<hline>>

#highlight "externalLabels" / "*" / "sourceName"

#highlight "externalLabels" / "*" / "sourceType"
commented Jul 3 by The-Lu (74,900 points)

Hello A.,

Currently that seems not possible. It is currently a global style, as:

@startjson

<style>
'.hline {
  arrow {
    LineColor green
    LineThickness 3
    LineStyle 2-5
  }
'}
</style>

#highlight "externalLabels"
#highlight "externalLabels" / "*" <<hline>>
#highlight "externalLabels" / "*" / "sourceName"
#highlight "externalLabels" / "*" / "sourceType"

{"externalLabels": {"a":1,
"b":2,
"c": {"sourceName": ["a", "b"]},
"d": {"sourceType": [1,2,3]}
}}
@endjson

But your request will be a good wanted feature...

To PlantUML team:

  • How to color a specific arrow on a JSON/YAML diagram?

Regards,
Th.

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.
...