style.setEdgeColor
setEdgeColor(edgeId: string, color: string): Promise<void>Set the display color of a single edge.
Recorded in history as "SetEdgeColor". Does not emit "style:changed".
edgeId | string | Id of the edge to color. |
color | string | CSS color string (e.g. "#4363d8"). |
Returns: Promise<void>
Example
await api.style.setEdgeColor("e1", "#4363d8");