-
Notifications
You must be signed in to change notification settings - Fork 1
Light
-
ArcheTypeResource
<Light
>↳
Light
- archeType
- brightness
- color
- colorTemperature
- gamut
- gradient
- id
- identifier
- manager
- maxColorTemperature
- maxGamutBlue
- maxGamutGreen
- maxGamutRed
- minBrightnessLevel
- minColorTemperature
- mode
- name
- _clone
- _patch
- _update
- colorInRange
- colorToRange
- edit
- effect
- isCapableOfColor
- isCapableOfColorTemperature
- isCapableOfDimming
- isCapableOfGradient
- isOn
- isType
- off
- on
- setArcheType
- setBrightness
- setColor
- setGradient
- setMirek
- setName
- timedEffect
- toggle
• new Light(bridge
, data
)
Name | Type |
---|---|
bridge |
Hue |
data |
LightGet & { metadata : { archetype : ArcheType ; name : string } } |
ArcheTypeResource<ResourceType.Light>.constructor
src/structures/ArcheTypeResource.ts:15
• data: LightGet
& { metadata
: { archetype
: ArcheType
; name
: string
} }
ArcheTypeResource.data
src/structures/ArcheTypeResource.ts:13
• Readonly
hue: Hue
ArcheTypeResource.hue
• type: ResourceType
= ResourceType.Light
ArcheTypeResource.type
• get
archeType(): ArcheType
ArcheTypeResource.archeType
src/structures/ArcheTypeResource.ts:20
• get
brightness(): undefined
| number
undefined
| number
• get
color(): undefined
| XyPoint
undefined
| XyPoint
• get
colorTemperature(): undefined
| number
undefined
| number
• get
gamut(): undefined
| Gamut
undefined
| Gamut
• get
gradient(): undefined
| XyPoint
[]
undefined
| XyPoint
[]
• get
id(): string
string
ArcheTypeResource.id
• get
identifier(): ResourceIdentifier
<ResourceType
>
ResourceIdentifier
<ResourceType
>
ArcheTypeResource.identifier
• get
manager(): LightManager
ArcheTypeResource.manager
• get
maxColorTemperature(): undefined
| number
undefined
| number
• get
maxGamutBlue(): undefined
| XyPoint
undefined
| XyPoint
• get
maxGamutGreen(): undefined
| XyPoint
undefined
| XyPoint
• get
maxGamutRed(): undefined
| XyPoint
undefined
| XyPoint
• get
minBrightnessLevel(): undefined
| number
undefined
| number
• get
minColorTemperature(): undefined
| number
undefined
| number
• get
mode(): LightMode
• get
name(): string
string
ArcheTypeResource.name
src/structures/NamedResource.ts:20
▸ _clone(): Light
ArcheTypeResource._clone
▸ _patch(data
): void
Name | Type |
---|---|
data |
Partial <LightGet > |
void
ArcheTypeResource._patch
▸ _update(data
): Light
Name | Type |
---|---|
data |
Partial <LightGet > |
ArcheTypeResource._update
▸ colorInRange(color
): undefined
| boolean
Name | Type |
---|---|
color |
XyPoint |
undefined
| boolean
▸ colorToRange(color
): undefined
| XyPoint
Name | Type |
---|---|
color |
XyPoint |
undefined
| XyPoint
▸ edit(options
): Promise
<void
>
Name | Type |
---|---|
options |
LightEditOptions |
Promise
<void
>
ArcheTypeResource.edit
▸ effect(effect
): Promise
<void
>
Name | Type |
---|---|
effect |
undefined | LightEffect
|
Promise
<void
>
▸ isCapableOfColor(): this is Light & LightIsCapableOfColor
this is Light & LightIsCapableOfColor
▸ isCapableOfColorTemperature(): this is Light & LightIsCapableOfColorTemperature
this is Light & LightIsCapableOfColorTemperature
▸ isCapableOfDimming(): this is Light & LightIsCapableOfDimming
this is Light & LightIsCapableOfDimming
▸ isCapableOfGradient(): this is Light & LightIsCapableOfGradient
this is Light & LightIsCapableOfGradient
▸ isOn(): boolean
boolean
▸ isType<T
>(type
): this is NarrowResource<T>
Name | Type |
---|---|
T |
extends ResourceType
|
Name | Type |
---|---|
type |
T |
this is NarrowResource<T>
ArcheTypeResource.isType
▸ off(duration?
): Promise
<void
>
Name | Type |
---|---|
duration? |
number |
Promise
<void
>
▸ on(duration?
): Promise
<void
>
Name | Type |
---|---|
duration? |
number |
Promise
<void
>
▸ setArcheType(archeType
): Promise
<void
>
Name | Type |
---|---|
archeType |
ArcheType |
Promise
<void
>
ArcheTypeResource.setArcheType
src/structures/ArcheTypeResource.ts:24
▸ setBrightness(brightness
, duration?
): Promise
<void
>
Name | Type |
---|---|
brightness |
undefined | number
|
duration? |
number |
Promise
<void
>
▸ setColor(color
, duration?
): Promise
<void
>
Name | Type |
---|---|
color |
undefined | XyPoint
|
duration? |
number |
Promise
<void
>
▸ setGradient(gradient
, duration?
): Promise
<void
>
Name | Type |
---|---|
gradient |
undefined | XyPoint [] |
duration? |
number |
Promise
<void
>
▸ setMirek(mirek
, duration?
): Promise
<void
>
Name | Type |
---|---|
mirek |
undefined | number
|
duration? |
number |
Promise
<void
>
▸ setName(name
): Promise
<void
>
Name | Type |
---|---|
name |
string |
Promise
<void
>
ArcheTypeResource.setName
src/structures/NamedResource.ts:28
▸ timedEffect(timedEffects
): Promise
<void
>
Name | Type |
---|---|
timedEffects |
undefined | { duration? : number ; effect? : LightTimedEffect } |
Promise
<void
>
▸ toggle(duration?
): Promise
<void
>
Name | Type |
---|---|
duration? |
number |
Promise
<void
>