PitchKit
API Reference@pitchkit/coreFunctions

cropForHalf()

function cropForHalf(dimensions): CropWindow;

Defined in: packages/core/src/transform/half.ts:11

Crop window for the attacking (right-hand) half of the pitch, in the provider's own coordinates. Every supported provider's x-axis increases left-to-right starting at 0 (see canonical.ts), so halving length is provider-agnostic; y is left full-height since createPixelTransform normalizes crop corners via the canonical frame regardless of yDirection.

Parameters

ParameterType
dimensionsPitchDimensions

Returns

CropWindow

On this page