style

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".

edgeIdsstring[]Ids of the edges to modify.
shapeEdgeShapeThe edge shape to apply.

Returns: Promise<void>

Example

await api.style.setEdgeShapes(["e1", "e2"], "dashed");