Added layout hints config option to class diagrams
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user