style.setEdgeShapes
setEdgeShapes(edgeIds: string[], shape: EdgeShape): Promise<void>Set the shape of a specific subset of edges.
All SetEdgeShape commands are wrapped in a single labeled transaction —
one undo step (commit f150a9fea). Does not emit "style:changed".
edgeIds | string[] | Ids of the edges to modify. |
shape | EdgeShape | The edge shape to apply. |
Returns: Promise<void>
Example
await api.style.setEdgeShapes(["e1", "e2"], "dashed");