Prevent un-labelled edges that are left of the left-most vertex from being cut off the diagram

This commit is contained in:
Adrian Hall
2020-04-02 15:29:12 +01:00
parent 933cc333cc
commit 9d5303c59d
2 changed files with 16 additions and 8 deletions

View File

@@ -640,4 +640,16 @@ describe('Flowchart', () => {
{ flowchart: { htmlLabels: false } }
);
});
it('31: should not slice off edges that are to the left of the left-most vertex', () => {
imgSnapshotTest(
`graph TD
work --> sleep
sleep --> work
eat --> sleep
work --> eat
`,
{ flowchart: { htmlLabels: false } }
);
});
});