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