Skip to main content

Interface: TanstackHeadshotOptions<X, Y>

Defined in: packages/sdvplot/src/tanstack.ts:134

headshotDots options.

Extends​

  • Shared

Type Parameters​

X​

X extends string = string

Y​

Y extends string = string

Properties​

alpha?​

optional alpha?: number

Defined in: packages/sdvplot/src/tanstack.ts:106

Opacity in [0, 1]: the dot's fillOpacity. Default 1.

Inherited from​

Shared.alpha


embed?​

optional embed?: ReadonlyMap<string, string>

Defined in: packages/sdvplot/src/tanstack.ts:108

url → data URI map from embedSources, to inline the images (needed for an image export).

Inherited from​

Shared.embed


id?​

optional id?: string

Defined in: packages/sdvplot/src/tanstack.ts:114

The start of each dot mark's id and pattern id. Default "sdv-logo", "sdv-wordmark" or "sdv-headshot"; give another when a chart draws the same images twice (TanStack needs each mark id once). Letters, digits, _ and - only (it becomes an SVG id); anything else throws InputError.

Inherited from​

Shared.id


idSystem?​

optional idSystem?: HeadshotIdSystem

Defined in: packages/sdvplot/src/tanstack.ts:145

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/tanstack.ts:143

The league the players belong to, e.g. "nfl".


player​

player: string

Defined in: packages/sdvplot/src/tanstack.ts:141

Name of the row field holding the player id.


size?​

optional size?: number

Defined in: packages/sdvplot/src/tanstack.ts:104

Image height in px, 1 or more. Default 24.

Inherited from​

Shared.size


x​

x: X

Defined in: packages/sdvplot/src/tanstack.ts:137

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


y​

y: Y

Defined in: packages/sdvplot/src/tanstack.ts:139

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