MAIDR JavaScript API
    Preparing search index...

    Interface SequenceMessage

    One message of a sequence diagram, in the order time runs down the page.

    { from: 'Alice', to: 'Bob', text: 'Hello Bob', kind: 'sync', fragments: ['loop Every minute'] }
    
    interface SequenceMessage {
        from: string | number;
        to: string | number;
        text?: string;
        kind?: SequenceMessageKind;
        fragments?: string[];
        number?: string | number;
    }
    Index

    Properties

    from: string | number

    The participant it leaves.

    to: string | number

    The participant it arrives at -- the same as from for a message to oneself, or for a note over one participant. A note spanning several participants names the last of them here.

    text?: string

    What the arrow is labelled with.

    What the arrow is. Defaults to sync.

    fragments?: string[]

    The combined fragments it sits in, outermost first, each as the diagram labels it: loop Every minute, alt is sick. Omitted or [] outside every fragment.

    A later section of a fragment -- an else, a par's and, a critical's option -- is written as the fragment's label, a comma and the section: alt is sick, else. It is then announced with what it is the alternative of, and counted with its fragment rather than as one of its own.

    number?: string | number

    The number the diagram prints beside it, when it numbers its messages: a count, as a Mermaid sequence diagram's autonumber prints one, or text, as ZenUML prints 1.2.1 for a call made inside the second statement of the first one.