mermaid.sequence.layout

mermaid.sequence

layout(script, compact) -> frame

Lay a sequence diagram out into a frame

script is what parse returns. With compact the participants stand closer and the texts wrap narrower.

The layout writes its sizes into the script's participants and events. Each layout writes every one anew, so a script may be laid out again.