style

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

relationshipstringRelationship type name to target.
widthnumberWidth in engine units.

Returns: Promise<void>

Example

await api.style.setRelationshipWidth("KNOWS", 2);