Constructor
# new BadgeRenderer(config)
Creates an instance of BadgeRenderer.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
config |
Object
|
|||
backgroundColor |
string
|
<optional> |
'#1E2025' | |
fontFamily |
string
|
<optional> |
'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"' | |
fontSize |
string
|
<optional> |
'14px' | |
fontWeight |
string
|
<optional> |
'bold' | |
position |
BadgePosition
|
<optional> |
BadgePosition.BOTTOM_LEFT | |
size |
Object
|
<optional> |
||
strokeColor |
string
|
<optional> |
||
strokeWidth |
number
|
<optional> |
0 | |
text |
string
|
<optional> |
||
textColor |
string
|
<optional> |
'#FCFCFC' |