Skip to main content

Interface: HeadshotMarkProps

Defined in: packages/sdvplot/src/svelte-core.ts:31

<HeadshotMark> props: the shared headshot options (x, y, player, league, height, ...) plus the rows.

Extends​

Properties​

alpha?​

optional alpha?: number

Defined in: packages/sdvplot/src/_web.ts:55

Opacity in [0, 1]. Default 1.

Inherited from​

HeadshotOptions.alpha


data?​

optional data?: readonly Row[]

Defined in: packages/sdvplot/src/svelte-core.ts:33

The rows to mark. Default: the chart's own data.


embed?​

optional embed?: ReadonlyMap<string, string>

Defined in: packages/sdvplot/src/_web.ts:59

url → data URI map from embedSources, to inline the images.

Inherited from​

HeadshotOptions.embed


height?​

optional height?: number

Defined in: packages/sdvplot/src/_web.ts:53

Headshot height as a fraction of the plot area's height, in (0, 1]. Default 0.1.

Inherited from​

HeadshotOptions.height


idSystem?​

optional idSystem?: "espn" | "gsis"

Defined in: packages/sdvplot/src/_web.ts:57

What the player ids are: ESPN athlete ids, or nflverse gsis ids (needs loadGsis() first). Default "espn".

Inherited from​

HeadshotOptions.idSystem


league​

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/_web.ts:51

The league the teams (or players) belong to, e.g. "nfl".

Inherited from​

HeadshotOptions.league


player​

player: string

Defined in: packages/sdvplot/src/_web.ts:49

Name of the row column holding the player id.

Inherited from​

HeadshotOptions.player


x​

x: string

Defined in: packages/sdvplot/src/_web.ts:45

Name of the row column holding each headshot's x position.

Inherited from​

HeadshotOptions.x


y​

y: string

Defined in: packages/sdvplot/src/_web.ts:47

Name of the row column holding each headshot's y position.

Inherited from​

HeadshotOptions.y