Method Summary
Public Methods | ||
public |
draw(context: CanvasRenderingContext2D) Draw the edge on the given canvas context. |
Inherited Summary
From class Edge | ||
public |
bezierPoint: * |
|
public |
destNode: * |
|
public |
destPoint: * |
|
public |
|
|
public |
label: * |
|
public |
partners: * |
|
public |
startNode: * |
|
public |
startPoint: * |
|
public |
containsPoint(x: number, y: number): boolean Check if the edge contains a given point (within a distance threshold). |
|
public |
detach() Remove the edge from all other graph objects associated with it. |
|
public abstract |
draw(context: CanvasRenderingContext2D) Draw the edge on the given canvas context. |
|
public |
drawArrow(context: CanvasRenderingContext2D) Draw an arrow on the destination side of the edge on the given context. |
|
public |
drawLabel(context: CanvasRenderingContext2D) Draw the Label object associated with this edge. |
|
public |
updateCurvedEdgeLabel(oldStartPoint2D: Point2D, oldBezierPoint2D: Point2D, oldDestPoint2D: Point2D, startPoint2D: Point2D, bezierPoint2D: Point2D, destPoint2D: Point2D) Update the position of the Label for a curved edge. |
|
public |
Update the endpoints of the edge. |
|
public |
Update endpoints for a normal edge. |
|
public |
Update endpoints for a self-loop edge. |
|
public |
updateSelfLoopLabel(oldBezierPoint: Object) Update the position of the Label for a self-loop edge. |
|
public |
updateStraightEdgeLabel(oldStartPoint2D: Point2D, oldBezierPoint2D: Point2D, oldDestPoint2D: Point2D, startPoint2D: Point2D, bezierPoint2D: Point2D, destPoint2D: Point2D) Update the position of the Label for a straight edge. |
Public Methods
public draw(context: CanvasRenderingContext2D) source
Draw the edge on the given canvas context.
Override:
Edge#drawParams:
Name | Type | Attribute | Description |
context | CanvasRenderingContext2D | Canvas 2D context. |