| * @param color | * @param color | ||||
| */ | */ | ||||
| setBackgroundColor(color: string | number | Color | null) { | setBackgroundColor(color: string | number | Color | null) { | ||||
| this.backgroundColor = color ? new Color(color) : null | |||||
| this.backgroundColor = color || typeof color === 'number' ? new Color(color) : null | |||||
| } | } | ||||
| /** | /** |