PitchDimensions
Defined in: packages/core/src/dimensions/types.ts:41
Encodes a provider's coordinate system: extent, origin corner, y-axis direction, and whether coordinates are normalized (e.g. Opta's 0-100 scale), per docs/architecture.md#coordinates-and-pitch-types.
Display orientation (horizontal/vertical) is deliberately NOT part of this model — it's a Viewport/display concern, not a fact about the provider's coordinate system.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
length | readonly | number | Full pitch extent in provider units (along the x-axis). | packages/core/src/dimensions/types.ts:44 |
markings | readonly | PitchMarkings | - | packages/core/src/dimensions/types.ts:59 |
normalized | readonly | boolean | True for percentage-style normalized grids (e.g. Opta's 0-100). | packages/core/src/dimensions/types.ts:50 |
origin | readonly | PitchOrigin | - | packages/core/src/dimensions/types.ts:47 |
pitchType | readonly | PitchTypeId | - | packages/core/src/dimensions/types.ts:42 |
realLengthMeters | readonly | number | Approximate real-world pitch size this provider's grid is calibrated against. Used only for documentation / sanity-check conversions — not an exact per-axis scale for every provider (e.g. Opta's circle_diameter constant is not axis-aware, so width-axis conversions of circular markings are approximate by design). | packages/core/src/dimensions/types.ts:57 |
realWidthMeters | readonly | number | - | packages/core/src/dimensions/types.ts:58 |
width | readonly | number | Full pitch extent in provider units (along the y-axis). | packages/core/src/dimensions/types.ts:46 |
yDirection | readonly | YDirection | - | packages/core/src/dimensions/types.ts:48 |