const height =
    Math.abs(endCoordinate.y - startCoordinate.y) +
    2 * radius +
    2 * lineWidth +
    margin * 2