Update component bounds using a provided function that determines the box around all point positions. This unifies how the bounds are calculated while keeping the calculation of the box around all point positions generic.