docs: function enlargeClipPoint(centroidX, centroidY, x, y) {
    const dX = x - centroidX;
    const dY = y - centroidY;
    const distance = Math.sqrt(dX * dX + dY * dY);
    return [Math.round(x + dX / distance), Math.round(y + dY / distance)];
  }