Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
test(sequence): accept few-participant pack width in late-legend check
tt-a1i1029cef5392c
diff --git a/test/edge-label-color.test.mjs b/test/edge-label-color.test.mjsindex 21a688b9..c874b31c 100644--- a/test/edge-label-color.test.mjs+++ b/test/edge-label-color.test.mjs@@ -164,7 +164,11 @@ test('sequence legend stays below a late message with a note', () => {assert.ok(end >= lateY && end <= legendTitle - 12, `lifeline end ${end}: last message ${lateY}, legend title ${legendTitle}`);}}- assert.ok(Number(fs.readFileSync(automatic.output, 'utf8').match(/<svg viewBox="0 0 920 (\d+)"/)[1]) > 760);+ // Few-participant automatic spread packs width (560); height still grows past+ // the old 760 floor so the legend clears the late note.+ const automaticViewBox = fs.readFileSync(automatic.output, 'utf8').match(/<svg viewBox="0 0 (\d+) (\d+)"/);+ assert.equal(Number(automaticViewBox[1]), 560);+ assert.ok(Number(automaticViewBox[2]) > 760, automaticViewBox[2]);});test('sequence repair height also holds a wrapped legend', () => {