style

style.setEdgeDashed

setEdgeDashed(edgeIds: string[], dashed: boolean): Promise<void>

Set whether the given edges are rendered with a dashed stroke.

All SetEdgeDashed 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.
dashedbooleantrue to render dashed, false for solid.

Returns: Promise<void>

Example

await api.style.setEdgeDashed(["e1", "e2"], true);