@mermaid-editor-sdk/headless / setClassRelation
Function: setClassRelation()
setClassRelation(
source,relation,patch):string
Defined in: source/class-mutations.ts:220
Updates one class relationship.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to inspect or update. |
relation | ClassRelation | Relationship to update or delete. |
patch | Partial<Pick<ClassRelation, "source" | "target" | "operator">> | Properties to apply to the element. |
Returns
string