Interface: D3HeadshotOptions
Defined in: packages/sdvplot/src/d3/index.ts:37
Face options for appendHeadshots (blazing-the-nets main scatter "faces", lib/charts/scatterChart.ts:139-191).
Extends
Frame.FaceOptions
Properties
alpha?
optionalalpha?:number
Defined in: packages/sdvplot/src/d3/index.ts:24
Inherited from
Frame.alpha
ariaLabel?
optionalariaLabel?: (value,i) =>string
Defined in: packages/sdvplot/src/d3/index.ts:29
Each image's accessible name from its input value and index; default the team ("KC logo", whatever id system the values use) or the player id ("3139477 headshot").
Parameters
value
i
number
Returns
string
Inherited from
Frame.ariaLabel
clip?
optionalclip?:"circle"
Defined in: packages/sdvplot/src/d3/faces.ts:10
"circle": the headshot inside a circle whose diameter is height × frameHeight. The image is drawn 2.3 R tall
so the head fills the circle, so drawnMarks reports 1.15 × height for a face.
Inherited from
frameHeight
frameHeight:
number
Defined in: packages/sdvplot/src/d3/index.ts:22
Inherited from
Frame.frameHeight
height?
optionalheight?:number
Defined in: packages/sdvplot/src/d3/index.ts:23
Inherited from
Frame.height
idSystem?
optionalidSystem?:HeadshotIdSystem
Defined in: packages/sdvplot/src/d3/index.ts:40
"espn" (default) or "gsis". "gsis" needs loadGsis() to have run first, else this throws InputError.
league
league:
"cfb"|"mbb"|"mlb"|"nba"|"nfl"|"nhl"|"wbb"|"wnba"
Defined in: packages/sdvplot/src/d3/index.ts:38
placeholder?
optionalplaceholder?:string| ((id) =>string)
Defined in: packages/sdvplot/src/d3/faces.ts:14
A disc behind the face at 0.35 opacity, still there if the image fails (:169-172). Default none.
Inherited from
ring?
optionalring?:string| ((id) =>string)
Defined in: packages/sdvplot/src/d3/faces.ts:12
Ring colour per player id (e.g. the team colour; :183-188, 1.5 px). Default none.
Inherited from
x
x: (
v) =>number
Defined in: packages/sdvplot/src/d3/index.ts:20
Parameters
v
Returns
number
Inherited from
Frame.x
y
y: (
v) =>number
Defined in: packages/sdvplot/src/d3/index.ts:21
Parameters
v
Returns
number
Inherited from
Frame.y