@ledvance/group-ui-biz-bundle 1.0.23 → 1.0.24
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
|
@@ -340,12 +340,12 @@ const DynamicMoodEditorPage = () => {
|
|
|
340
340
|
state.mood.nodes.forEach(node => {
|
|
341
341
|
node.isColorNode = true
|
|
342
342
|
node.h = h
|
|
343
|
-
node.s = s
|
|
343
|
+
node.s = s || 1
|
|
344
344
|
node.v = v
|
|
345
345
|
})
|
|
346
346
|
} else {
|
|
347
347
|
state.currentNode.h = h
|
|
348
|
-
state.currentNode.s = s
|
|
348
|
+
state.currentNode.s = s || 1
|
|
349
349
|
state.currentNode.v = v
|
|
350
350
|
}
|
|
351
351
|
}}
|
|
@@ -354,12 +354,12 @@ const DynamicMoodEditorPage = () => {
|
|
|
354
354
|
state.mood.nodes.forEach(node => {
|
|
355
355
|
node.isColorNode = true
|
|
356
356
|
node.h = h
|
|
357
|
-
node.s = s
|
|
357
|
+
node.s = s || 1
|
|
358
358
|
node.v = v
|
|
359
359
|
})
|
|
360
360
|
} else {
|
|
361
361
|
state.currentNode.h = h
|
|
362
|
-
state.currentNode.s = s
|
|
362
|
+
state.currentNode.s = s || 1
|
|
363
363
|
state.currentNode.v = v
|
|
364
364
|
}
|
|
365
365
|
}}
|
|
@@ -11,7 +11,7 @@ import Card from '@ledvance/base/src/components/Card'
|
|
|
11
11
|
import Spacer from '@ledvance/base/src/components/Spacer'
|
|
12
12
|
import res from '@ledvance/base/src/res'
|
|
13
13
|
import TextButton from '@ledvance/base/src/components/TextButton'
|
|
14
|
-
import { useFanMaxSpeed
|
|
14
|
+
import { useFanMaxSpeed } from '@ledvance/base/src/models/modules/NativePropsSlice'
|
|
15
15
|
import { SceneNodeInfo, SceneUIState } from './SceneInfo'
|
|
16
16
|
import LampAdjustView from '@ledvance/base/src/components/LampAdjustView'
|
|
17
17
|
import FanAdjustView from '@ledvance/base/src/components/FanAdjustView'
|
|
@@ -45,7 +45,6 @@ const StaticMoodEditorPage = () => {
|
|
|
45
45
|
const routeParams = useRoute().params as StaticMoodEditorPageParams
|
|
46
46
|
const params = cloneDeep(routeParams)
|
|
47
47
|
const moduleParams = params.moduleParams
|
|
48
|
-
const role = useRole()
|
|
49
48
|
|
|
50
49
|
const state = useReactive<StaticMoodEditorPageState>({
|
|
51
50
|
headline: '',
|
|
@@ -152,12 +151,12 @@ const StaticMoodEditorPage = () => {
|
|
|
152
151
|
v={state.currentNode.v}
|
|
153
152
|
onHSVChange={(h, s, v) => {
|
|
154
153
|
state.currentNode.h = h
|
|
155
|
-
state.currentNode.s = s
|
|
154
|
+
state.currentNode.s = s || 1
|
|
156
155
|
state.currentNode.v = v
|
|
157
156
|
}}
|
|
158
157
|
onHSVChangeComplete={(h, s, v) => {
|
|
159
158
|
state.currentNode.h = h
|
|
160
|
-
state.currentNode.s = s
|
|
159
|
+
state.currentNode.s = s || 1
|
|
161
160
|
state.currentNode.v = v
|
|
162
161
|
}}
|
|
163
162
|
colorTemp={state.currentNode.colorTemp}
|