Skip to main content

Interface: UnovisIcons()<T>

Defined in: packages/sdvplot/src/unovis.ts:154

Images for a Graph's node icons: call it from nodeIcon with the team (or player) the node holds.

Type Parameters​

T​

T = unknown

UnovisIcons(value): string | undefined

Defined in: packages/sdvplot/src/unovis.ts:156

#<symbol id> of the image of value (by any value naming the same team or player), else undefined.

Parameters​

value​

unknown

Returns​

string | undefined

Properties​

domain​

readonly domain: readonly T[]

Defined in: packages/sdvplot/src/unovis.ts:158

The values that have an image, as given (numbers stay numbers), each once and in order.


range​

readonly range: readonly string[]

Defined in: packages/sdvplot/src/unovis.ts:160

Their #<symbol id>s, in the same order.


svgDefs​

readonly svgDefs: string

Defined in: packages/sdvplot/src/unovis.ts:162

One <symbol> per image: the chart container's svgDefs (join two sets' with +).