@mermaid-editor-sdk/headless / addGitgraphPaletteItem
Function: addGitgraphPaletteItem()
addGitgraphPaletteItem(
source,id):string
Defined in: source/gitgraph-mutations.ts:229
Adds a git graph palette item to the source.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to inspect or update. |
id | GitgraphPaletteItemId | Identifier of the diagram element. |
Returns
string