structurizr / ui

UI code for Structurizr Lite, on-premises, and cloud service.
https://docs.structurizr.com/ui
MIT License
38 stars 22 forks source link

Automatic layout isn't applied when Graphviz isn't installed #33

Closed feduke-nukem closed 9 months ago

feduke-nukem commented 9 months ago

Description

When I am trying to preview my diagram using lite in localhost of the my schema, I am not getting autoLayout applied for containers. But if I use https://www.structurizr.com/dsl - everything works correctly.

Steps to reproduce

  1. Install Structurizr Lite using README.
  2. Create some simple schema
  3. Go to localhost to preview diagram
  4. autoLayout isn't applied

Screenshot

lite: image

https://www.structurizr.com/dsl: image

Code sample

workspace {
    model {
        user = person "User"
        service = softwareSystem "Service" {
            api = container "Api" 
        }

        user -> api "Gets data"
    }

    views {
        systemContext service "Diagram1" {
            include *
            autoLayout lr
        }

        container service "Diagram2" {
            include *
            autoLayout lr
        }

        styles {
            element "Element" {
                background #3254a8
                color White
            }

            element "Person" {
                shape Person
            }
        }
    }
}


### Configuration

_No response_

### Severity

Minor

### Priority

Low

### Resolution

I have no budget and there's no rush, please fix this for free

### More information

_No response_