structurizr / dsl

Structurizr DSL
https://docs.structurizr.com/dsl
Apache License 2.0
1.41k stars 265 forks source link

Group Text fontSize and location #248

Closed ammarck closed 1 year ago

ammarck commented 1 year ago

Description

I have a system context diagram where we have groups and I wanted to make the group more clear by increasing the text size and maybe the group name top left (since I am putting it on a doc and people read from top to bottom when they scroll). However, AFAIK there isn't a way in the DSL to change these two properties in groups. The only thing that can be modified is icon and color

Priority

Low

Resolution

I'm willing to sponsor/donate to this feature (add details below)

More information

No response

simonbrowndotje commented 1 year ago

Changing the font size for groups is already supported -> https://structurizr.com/help/notation#elements

Example:

workspace {

    model {
        group "Group 1" {
            person "User 1"
        }
        group "Group 2" {
            person "User 2"
        }
    }

    views {
        systemLandscape {
            include *
            autoLayout
        }

        styles {
            element "Group:Group 1" {
                fontsize 40
            }
        }
    }

}

image

Changing the location isn't supported though.

goto1134 commented 1 year ago

@simonbrowndotje , do the diagram exporters support group properties?

ammarck commented 1 year ago

@simonbrowndotje that worked thanks!