Skip to content

Commit cdfff2a

Browse files
Copilotjongalloway
andauthored
Fix z-order: zero-pad rect group IDs with D4 to avoid lexicographic sort issue
Agent-Logs-Url: https://github.com/jongalloway/DiagramForge/sessions/13043ef8-b29c-4823-8897-5e634ff57d78 Co-authored-by: jongalloway <68539+jongalloway@users.noreply.github.com>
1 parent c46385d commit cdfff2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DiagramForge/Parsers/Mermaid/MermaidSequenceParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Node GetOrCreateParticipant(string id)
9999
var colorSpec = line["rect ".Length..].Trim();
100100
if (TryParseRectColor(colorSpec, out var normalizedColor))
101101
{
102-
var groupId = $"sequence:rect:{rectIndex++}";
102+
var groupId = $"sequence:rect:{rectIndex++:D4}";
103103
var group = new Group(groupId, string.Empty);
104104
group.FillColor = normalizedColor;
105105
group.Metadata["sequence:rectGroup"] = true;

0 commit comments

Comments
 (0)