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?
optionalbackground?: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?
optionalcolor?:string
Defined in: packages/sdvplot/src/react/three.tsx:149
The tube's colour, #rrggbb. Give this or team and league.
fallback?
optionalfallback?:string
Defined in: packages/sdvplot/src/react/three.tsx:160
The colour of a team that does not resolve. Default "#808080".
idSystem?
optionalidSystem?:IdSystem
Defined in: packages/sdvplot/src/react/three.tsx:154
league?
optionalleague?:"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?
optionalradialSegments?: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?
optionalrenderOrder?:number
Defined in: packages/sdvplot/src/react/three.tsx:162
The mesh's renderOrder. Default 0.
season?
optionalseason?:SeasonInput
Defined in: packages/sdvplot/src/react/three.tsx:153
team?
optionalteam?:unknown
Defined in: packages/sdvplot/src/react/three.tsx:151
The team whose colour the tube takes (abbreviation, name or id), with league.
which?
optionalwhich?:Which
Defined in: packages/sdvplot/src/react/three.tsx:156
"primary" (default) or "secondary".