Added layout hints config option to class diagrams

This commit is contained in:
Bartek Kryza
2022-02-08 22:19:38 +01:00
parent ed5e8e4e2d
commit fd7d916e3e
4 changed files with 94 additions and 0 deletions

View File

@@ -65,6 +65,15 @@ struct filter {
std::vector<common::model::scope_t> scopes;
};
enum class hint_t { up, down, left, right, hidden };
struct layout_hint {
hint_t hint;
std::string entity;
};
using layout_hints = std::map<std::string, std::vector<layout_hint>>;
std::string to_string(const diagram_type t);
struct inheritable_diagram_options {
@@ -109,6 +118,7 @@ struct class_diagram : public diagram {
diagram_type type() const override;
option<std::vector<std::string>> classes{"classes"};
option<layout_hints> layout{"layout"};
bool has_class(std::string clazz);
};