Skip to content
This repository was archived by the owner on Mar 28, 2026. It is now read-only.

Commit 48ed19c

Browse files
Adds a Bucket shape.
1 parent 4df8301 commit 48ed19c

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- structurizr-dsl: Adds support for `iconPosition` on element styles (options are `Top`, `Bottom`, `Left`).
66
- structurizr-dsl: Adds support for defining element and relationship styles for light and dark mode.
7+
- structurizr-dsl: Adds a `Bucket` shape.
78

89
## v4.1.0 (28th May 2025)
910

structurizr-core/src/main/java/com/structurizr/view/Shape.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public enum Shape {
99
Hexagon,
1010
Diamond,
1111
Cylinder,
12+
Bucket,
1213
Pipe,
1314
Person,
1415
Robot,

structurizr-dsl/src/test/java/com/structurizr/dsl/ElementStyleParserTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void test_parseShape_ThrowsAnException_WhenThereAreTooManyTokens() {
8080
parser.parseShape(elementStyleDslContext(), tokens("shape", "shape", "extra"));
8181
fail();
8282
} catch (Exception e) {
83-
assertEquals("Too many tokens, expected: shape <Box|RoundedBox|Circle|Ellipse|Hexagon|Diamond|Cylinder|Pipe|Person|Robot|Folder|WebBrowser|Window|MobileDevicePortrait|MobileDeviceLandscape|Component>", e.getMessage());
83+
assertEquals("Too many tokens, expected: shape <Box|RoundedBox|Circle|Ellipse|Hexagon|Diamond|Cylinder|Bucket|Pipe|Person|Robot|Folder|WebBrowser|Window|MobileDevicePortrait|MobileDeviceLandscape|Component>", e.getMessage());
8484
}
8585
}
8686

@@ -90,7 +90,7 @@ void test_parseShape_ThrowsAnException_WhenTheShapeIsMissing() {
9090
parser.parseShape(elementStyleDslContext(), tokens("shape"));
9191
fail();
9292
} catch (Exception e) {
93-
assertEquals("Expected: shape <Box|RoundedBox|Circle|Ellipse|Hexagon|Diamond|Cylinder|Pipe|Person|Robot|Folder|WebBrowser|Window|MobileDevicePortrait|MobileDeviceLandscape|Component>", e.getMessage());
93+
assertEquals("Expected: shape <Box|RoundedBox|Circle|Ellipse|Hexagon|Diamond|Cylinder|Bucket|Pipe|Person|Robot|Folder|WebBrowser|Window|MobileDevicePortrait|MobileDeviceLandscape|Component>", e.getMessage());
9494
}
9595
}
9696

0 commit comments

Comments
 (0)