Interface: G2HeadshotOptions
Defined in: packages/sdvplot/src/g2.ts:128
headshotMark options.
Extends
Shared
Properties
alpha?
optionalalpha?:number
Defined in: packages/sdvplot/src/g2.ts:106
Opacity in [0, 1]. Default 1.
Inherited from
Shared.alpha
embed?
optionalembed?:ReadonlyMap<string,string>
Defined in: packages/sdvplot/src/g2.ts:108
url → data URI map from embedSources, to inline the images.
Inherited from
Shared.embed
idSystem?
optionalidSystem?:HeadshotIdSystem
Defined in: packages/sdvplot/src/g2.ts:138
ESPN athlete ids, or nflverse gsis ids (needs loadGsis() first). Default "espn".
league
league:
"cfb"|"mbb"|"mlb"|"nba"|"nfl"|"nhl"|"wbb"|"wnba"
Defined in: packages/sdvplot/src/g2.ts:136
The league the players belong to, e.g. "nfl".
player
player:
string
Defined in: packages/sdvplot/src/g2.ts:134
Name of the row field holding the player id.
size?
optionalsize?:number
Defined in: packages/sdvplot/src/g2.ts:104
Image height in px, 1 or more (G2 sizes an image mark in px). Default 24.
Inherited from
Shared.size
x
x:
string
Defined in: packages/sdvplot/src/g2.ts:130
Name of the row field holding each headshot's x position.
y
y:
string
Defined in: packages/sdvplot/src/g2.ts:132
Name of the row field holding each headshot's y position.