projectOrNull()
function projectOrNull(
project,
x,
y
): readonly [number | null, number | null];Defined in: packages/data-providers/src/skillcorner/coordinates.ts:62
Applies a projection to a possibly-missing coordinate pair. Returns nulls unless both halves are real numbers — half a coordinate is not a position.
Parameters
| Parameter | Type |
|---|---|
project | PitchProjection |
x | number | null | undefined |
y | number | null | undefined |
Returns
readonly [number | null, number | null]