Module: core/hatStyles
Interfaces
Type aliases
HatColor
Ƭ HatColor: typeof HAT_COLORS
[number
]
Defined in
core/hatStyles.ts:27
HatNonDefaultShape
Ƭ HatNonDefaultShape: typeof HAT_NON_DEFAULT_SHAPES
[number
]
Defined in
core/hatStyles.ts:29
HatShape
Ƭ HatShape: typeof HAT_SHAPES
[number
]
Defined in
core/hatStyles.ts:28
HatStyleName
Ƭ HatStyleName: HatColor
| `${HatColor}-${HatNonDefaultShape}`
Defined in
core/hatStyles.ts:30
Variables
HAT_COLORS
• HAT_COLORS: readonly ["default"
, "blue"
, "green"
, "red"
, "pink"
, "yellow"
, "userColor1"
, "userColor2"
]
Defined in
core/hatStyles.ts:1
HAT_NON_DEFAULT_SHAPES
• HAT_NON_DEFAULT_SHAPES: readonly ["ex"
, "fox"
, "wing"
, "hole"
, "frame"
, "curve"
, "eye"
, "play"
, "bolt"
, "crosshairs"
]
Defined in
core/hatStyles.ts:12
HAT_SHAPES
• HAT_SHAPES: readonly ["default"
, "ex"
, "fox"
, "wing"
, "hole"
, "frame"
, "curve"
, "eye"
, "play"
, "bolt"
, "crosshairs"
]
Defined in
core/hatStyles.ts:25
Functions
getStyleName
▸ getStyleName(color
, shape
): HatStyleName
Parameters
Name | Type |
---|---|
color | "default" | "blue" | "green" | "red" | "pink" | "yellow" | "userColor1" | "userColor2" |
shape | "default" | "ex" | "fox" | "wing" | "hole" | "frame" | "curve" | "eye" | "play" | "bolt" | "crosshairs" |
Returns
Defined in
core/hatStyles.ts:37