@ledvance/ui-biz-bundle 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -98,7 +98,6 @@ export function dp2Obj(dp: string, isFan:boolean = false): SceneInfo {
|
|
|
98
98
|
hex = hex.slice(4);
|
|
99
99
|
const brightness = Math.round(hex2Int(hex.slice(0, 4)) / 10);
|
|
100
100
|
hex = hex.slice(4);
|
|
101
|
-
console.log(hex, '< --- hex')
|
|
102
101
|
const colorTemp = Math.round(hex2Int(hex.slice(0, 4)) / 10);
|
|
103
102
|
return {
|
|
104
103
|
switchingInterval,
|
|
@@ -193,7 +192,8 @@ export async function saveScene(
|
|
|
193
192
|
scene: SceneUIState,
|
|
194
193
|
transitionMode: SceneNodeTransitionMode,
|
|
195
194
|
transitionTime: number,
|
|
196
|
-
scenes: SceneUIState[]
|
|
195
|
+
scenes: SceneUIState[],
|
|
196
|
+
dpCodes: Record<string,string>
|
|
197
197
|
) {
|
|
198
198
|
if (transitionMode === SceneNodeTransitionMode.Static) {
|
|
199
199
|
scene.nodes = [scene.nodes[0]];
|
|
@@ -215,7 +215,7 @@ export async function saveScene(
|
|
|
215
215
|
const sceneTemp = s.id === scene.id ? scene : s;
|
|
216
216
|
return {
|
|
217
217
|
n: sceneTemp.name,
|
|
218
|
-
i: obj2Dp(sceneTemp),
|
|
218
|
+
i: obj2Dp(sceneTemp, isFanLamp(dpCodes)),
|
|
219
219
|
s: '',
|
|
220
220
|
t: 0,
|
|
221
221
|
e: false,
|