Skip to main content

Function: drawStraightEdgeLabel()

drawStraightEdgeLabel<N, E, G>(context, edgeData, sourceData, targetData, settings): void

Defined in: sigma/src/rendering/edge-labels.ts:18

Type Parameters

N extends Attributes = Attributes

E extends Attributes = Attributes

G extends Attributes = Attributes

Parameters

context

CanvasRenderingContext2D

edgeData

PartialButFor<DisplayData, "label" | "color" | "size">

sourceData

PartialButFor<NodeDisplayData, "x" | "y" | "size">

targetData

PartialButFor<NodeDisplayData, "x" | "y" | "size">

settings

Settings<N, E, G>

Returns

void