Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

extremityDiamond

extremityDiamond(options?): EdgeExtremity

Defined in: packages/sigma/src/rendering/edges/extremities/diamond.ts:26

Creates a diamond extremity (rhombus shape).

The diamond has its left vertex at x=0, right vertex at x=lengthRatio, and top/bottom vertices at ±widthRatio/2.

Parameters

options?

DiamondExtremityOptions

Returns

EdgeExtremity