style.setRelationshipWidth
setRelationshipWidth(relationship: string, width: number): Promise<void>Set a uniform stroke width for all edges of the given relationship type.
All SetEdgeWidth commands are wrapped in a single labeled transaction —
one undo step. Emits "style:changed".
relationship | string | Relationship type name to target. |
width | number | Width in engine units. |
Returns: Promise<void>
Example
await api.style.setRelationshipWidth("KNOWS", 2);