Skip to main content

Interface: TrajectoryProps

Defined in: packages/sdvplot/src/react/three.tsx:141

<Trajectory> props: the path, the tube's radius in world units, and its colour or team.

Properties​

background?​

optional background?: string

Defined in: packages/sdvplot/src/react/three.tsx:158

What the tube is seen against: the colour keeps 3:1 contrast against it (teamColorPalette).


color?​

optional color?: string

Defined in: packages/sdvplot/src/react/three.tsx:149

The tube's colour, #rrggbb. Give this or team and league.


fallback?​

optional fallback?: string

Defined in: packages/sdvplot/src/react/three.tsx:160

The colour of a team that does not resolve. Default "#808080".


idSystem?​

optional idSystem?: IdSystem

Defined in: packages/sdvplot/src/react/three.tsx:154


league?​

optional league?: "aaf" | "ahl" | "ajhl" | "bchl" | "cchl" | "cebl" | "cfb" | "cfl" | "chl" | "cricket" | "easl" | "echl" | "f1" | "fiba" | "gojhl" | "iihf" | "kijhl" | "lba" | "mbb" | "mhl" | "milb" | "mjhl" | "mlb" | "nba" | "nbagl" | "nbl" | "ncaa_baseball" | "ncaa_mhockey" | "ncaa_softball" | "ncaa_whockey" | "nfl" | "nhl" | "nojhl" | "ohl" | "ojhl" | "phf" | "pwhl" | "qmjhl" | "sjhl" | "soccer" | "sphl" | "ufl" | "usfl" | "ushl" | "vijhl" | "wbb" | "whl" | "wnba" | "xfl"

Defined in: packages/sdvplot/src/react/three.tsx:152


points​

points: readonly readonly [number, number, number][]

Defined in: packages/sdvplot/src/react/three.tsx:143

The path, [x, y, z] points in world units (statcastPitchPath gives a pitch's).


radialSegments?​

optional radialSegments?: number

Defined in: packages/sdvplot/src/react/three.tsx:147

Vertices round each ring, 3 or more. Default 12.


radius​

radius: number

Defined in: packages/sdvplot/src/react/three.tsx:145

The tube's radius in the points' world units, not px (a baseball's is 0.121 ft).


renderOrder?​

optional renderOrder?: number

Defined in: packages/sdvplot/src/react/three.tsx:162

The mesh's renderOrder. Default 0.


season?​

optional season?: SeasonInput

Defined in: packages/sdvplot/src/react/three.tsx:153


team?​

optional team?: unknown

Defined in: packages/sdvplot/src/react/three.tsx:151

The team whose colour the tube takes (abbreviation, name or id), with league.


which?​

optional which?: Which

Defined in: packages/sdvplot/src/react/three.tsx:156

"primary" (default) or "secondary".