@mermaid-editor-sdk/headless / appendSourceLines
Function: appendSourceLines()
appendSourceLines(
source,additions,diagramType):string
Defined in: source/source-document.ts:37
Appends diagram statements before trailing comments and whitespace.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to update. |
additions | readonly string[] | Statements to append. |
diagramType | DiagramType | Diagram type used to find the insertion point. |
Returns
string