style

style.setEdgeScale

setEdgeScale(scale: number): Promise<void>

Set the global edge scale multiplier applied to all edge widths.

Updates the in-memory _edgeScale field and dispatches a SetEdgeScaleCommand through the executor (undoable). Does not emit "style:changed".

scalenumberMultiplier applied globally to edge widths (default: 1).

Returns: Promise<void>

Example

await api.style.setEdgeScale(2); // double all edge widths