draw(ctx) {
    const values = this.getFormattingValues();
    if (values.hidden) {
      return;
    }

    // get the via node from the edge type
    const viaNode = this.edgeType.getViaNode();

    // draw line and label
    this.edgeType.drawLine(ctx, values, this.selected, this.hover, viaNode);
    this.drawLabel(ctx, viaNode);
  }
Redraw a edge
Draw this edge in the given canvas
The 2d context of a HTML canvas can be retrieved by canvas.getContext("2d");
@param {CanvasRenderingContext2D}   ctx