#3358 Fix for layout where a siebling has wider siize

This commit is contained in:
Knut Sveidqvist
2024-01-08 14:03:42 +01:00
parent 809c450164
commit 7043892e87
10 changed files with 147 additions and 56 deletions

View File

@@ -301,4 +301,39 @@ describe('Block diagram', () => {
{}
);
});
it('BL22: sizing - it should be possible to make a block wider', () => {
imgSnapshotTest(
`block-beta
A("rounded):2
B:2
C
`,
{}
);
});
it('BL23: sizing - it should be possieble to make a composite block wider', () => {
imgSnapshotTest(
`block-beta
block:2
A
end
B
`,
{}
);
});
it('BL23: sizing - it should be possieble to make a composite block wider', () => {
imgSnapshotTest(
`block-beta
block:2
A
end
B
`,
{}
);
});
});

View File

@@ -62,6 +62,52 @@
</style>
</head>
<body>
<pre id="diagram" class="mermaid">
block-beta
columns 3
space Browser space
space:3
A
B
C
space:3
space
db{{"This is the text in the box"}}
classDef green fill:#9f6,stroke:#333,stroke-width:2px;
style B fill:#f9F,stroke:#333,stroke-width:4px
class A green
Browser --> A
Browser --> B
Browser --> C
A --> db
B --> db
C--> db
block
D
E
end
</pre>
<pre id="diagram" class="mermaid">
block-beta
block
D
E
end
db("This is the text in the box")
</pre>
<pre id="diagram" class="mermaid">
block-beta
block
D
end
A["A: I am a wide one"]
</pre>
<pre id="diagram" class="mermaid2">
block-beta
A["square"]
@@ -78,7 +124,7 @@ block-beta
block-beta
A(["stadium"])
</pre>
<pre id="diagram" class="mermaid">
<pre id="diagram" class="mermaid2">
block-beta
%% A[["subroutine"]]
%% B[("cylinder")]