28 const auto &inline_style = r.
style();
30 if (inline_style && !inline_style.value().empty()) {
31 if (inline_style && inline_style.value().back() ==
']')
32 style = *inline_style;
34 style = fmt::format(
"[{}]", inline_style.value());
37 if (style.empty() && cfg.
puml) {
38 if (
auto config_style = cfg.
puml().get_style(r.
type());
39 config_style.has_value()) {
40 style = config_style.value();
45 case relationship_t::kOwnership:
46 case relationship_t::kComposition:
47 return style.empty() ?
"*--" : fmt::format(
"*-{}-", style);
48 case relationship_t::kAggregation:
49 return style.empty() ?
"o--" : fmt::format(
"o-{}-", style);
50 case relationship_t::kContainment:
51 return style.empty() ?
"--+" : fmt::format(
"-{}-+", style);
52 case relationship_t::kAssociation:
53 return style.empty() ?
"-->" : fmt::format(
"-{}->", style);
54 case relationship_t::kInstantiation:
55 return style.empty() ?
"..|>" : fmt::format(
".{}.|>", style);
56 case relationship_t::kFriendship:
57 return style.empty() ?
"<.." : fmt::format(
"<.{}.", style);
58 case relationship_t::kDependency:
59 return style.empty() ?
"..>" : fmt::format(
".{}.>", style);
60 case relationship_t::kConstraint:
61 return style.empty() ?
"..>" : fmt::format(
".{}.>", style);
62 case relationship_t::kAlias:
63 return style.empty() ?
".." : fmt::format(
".{}.", style);
72 case access_t::kPublic:
74 case access_t::kProtected:
76 case access_t::kPrivate:
86 case message_t::kCall:
88 case message_t::kReturn: