StatPanelElementViewerContext

Description

A StatPanelElementViewerContext is an interface that defines a ViewerContext that is used in the context of a stat panel element.

Properties

Property

Type

Description

type

ViewerContextType.StatPanelElement

The type of the ViewerContext.

value

StatResult

The result of the stat calculation.

format

Formatter

The format to apply to the stat value.

statConfiguration

ReadonlyStatConfiguration

The associated StatConfiguration.

Functions

Function

Argument(s)

Output

Description

getText

key: string

string | undefined

Returns the text defined in the TextDefinitionCollection for the provided key; undefined if the key is not found.