Function: drawStraightEdgeLabel()
drawStraightEdgeLabel<
N
,E
,G
>(context
,edgeData
,sourceData
,targetData
,settings
):void
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