Interface: CyNode
Defined in: packages/sdvplot/src/cytoscape.ts:19
A player node. classes is "headshot" (its image drawn as the node) or "initials" (team colour and initials).
Properties
classes
classes:
"headshot"|"initials"
Defined in: packages/sdvplot/src/cytoscape.ts:34
data
data:
object
Defined in: packages/sdvplot/src/cytoscape.ts:20
id
id:
string
The player id, as text.
image?
optionalimage?:string
The headshot URL, on a headshot node only.
initials
initials:
string
The first letters of the name's first and last words, else the id.
label
label:
string
The player's name, else the id.
team?
optionalteam?:string
The resolved team id; absent when the team does not resolve (the node keeps the fallback colour).
position?
optionalposition?:object
Defined in: packages/sdvplot/src/cytoscape.ts:33
Where the player stood (with the x/y/xend/yend options): model px, y down.
x
x:
number
y
y:
number