@@ -4,28 +4,31 @@ import { ISensorProps, ISliderProps } from "../../../viewUtils";
44const CLUE_SLIDER_R : ISliderProps = {
55 axisLabel : "R" ,
66 maxLabel : "Max" ,
7- maxValue : 255 ,
7+ maxValue : 65535 ,
88 minLabel : "Min" ,
99 minValue : 0 ,
1010 type : SENSOR_LIST . LIGHT_R ,
11+ step : 1 ,
1112} ;
1213
1314const CLUE_SLIDER_G : ISliderProps = {
1415 axisLabel : "G" ,
1516 maxLabel : "Max" ,
16- maxValue : 255 ,
17+ maxValue : 65535 ,
1718 minLabel : "Min" ,
1819 minValue : 0 ,
1920 type : SENSOR_LIST . LIGHT_G ,
21+ step : 1 ,
2022} ;
2123
2224const CLUE_SLIDER_B : ISliderProps = {
2325 axisLabel : "B" ,
2426 maxLabel : "Max" ,
25- maxValue : 255 ,
27+ maxValue : 65535 ,
2628 minLabel : "Min" ,
2729 minValue : 0 ,
2830 type : SENSOR_LIST . LIGHT_B ,
31+ step : 1 ,
2932} ;
3033const CLUE_SLIDER_C : ISliderProps = {
3134 axisLabel : "C" ,
@@ -34,6 +37,7 @@ const CLUE_SLIDER_C: ISliderProps = {
3437 minLabel : "Min" ,
3538 minValue : 0 ,
3639 type : SENSOR_LIST . LIGHT_C ,
40+ step : 1 ,
3741} ;
3842
3943export const CLUE_LIGHT_PROPERTIES : ISensorProps = {
@@ -50,6 +54,7 @@ const CLUE_MAGNET_X: ISliderProps = {
5054 maxValue : 1000 ,
5155 minValue : - 1000 ,
5256 type : SENSOR_LIST . MAGNET_X ,
57+ step : 0.1 ,
5358} ;
5459const CLUE_MAGNET_Y : ISliderProps = {
5560 axisLabel : "Y" ,
@@ -58,6 +63,7 @@ const CLUE_MAGNET_Y: ISliderProps = {
5863 maxValue : 1000 ,
5964 minValue : - 1000 ,
6065 type : SENSOR_LIST . MAGNET_Y ,
66+ step : 0.1 ,
6167} ;
6268const CLUE_MAGNET_Z : ISliderProps = {
6369 axisLabel : "Z" ,
@@ -66,6 +72,7 @@ const CLUE_MAGNET_Z: ISliderProps = {
6672 maxValue : 1000 ,
6773 minValue : - 1000 ,
6874 type : SENSOR_LIST . MAGNET_Z ,
75+ step : 0.1 ,
6976} ;
7077
7178export const CLUE_MAGNET_PROPERTIES : ISensorProps = {
@@ -80,6 +87,7 @@ const CLUE_GYRO_X: ISliderProps = {
8087 maxValue : 1000 ,
8188 minValue : - 1000 ,
8289 type : SENSOR_LIST . GYRO_X ,
90+ step : 0.1 ,
8391} ;
8492const CLUE_GYRO_Y : ISliderProps = {
8593 axisLabel : "Y" ,
@@ -88,6 +96,7 @@ const CLUE_GYRO_Y: ISliderProps = {
8896 maxValue : 1000 ,
8997 minValue : - 1000 ,
9098 type : SENSOR_LIST . GYRO_Y ,
99+ step : 0.1 ,
91100} ;
92101const CLUE_GYRO_Z : ISliderProps = {
93102 axisLabel : "Z" ,
@@ -96,6 +105,7 @@ const CLUE_GYRO_Z: ISliderProps = {
96105 maxValue : 1000 ,
97106 minValue : - 1000 ,
98107 type : SENSOR_LIST . GYRO_Z ,
108+ step : 0.1 ,
99109} ;
100110
101111export const CLUE_GYRO_PROPERTIES : ISensorProps = {
@@ -114,6 +124,7 @@ export const CLUE_HUMIDITY_PROPERTIES: ISensorProps = {
114124 minLabel : "Min" ,
115125 minValue : 0 ,
116126 type : SENSOR_LIST . HUMIDITY ,
127+ step : 0.1 ,
117128 } ,
118129 ] ,
119130 unitLabel : "%" ,
@@ -128,6 +139,7 @@ export const CLUE__PROXIMITY_PROPERTIES: ISensorProps = {
128139 minLabel : "Min" ,
129140 minValue : 0 ,
130141 type : SENSOR_LIST . PROXIMITY ,
142+ step : 1 ,
131143 } ,
132144 ] ,
133145 unitLabel : "" ,
@@ -142,6 +154,7 @@ export const CLUE_PRESSURE_PROPERTIES: ISensorProps = {
142154 minLabel : "Min" ,
143155 minValue : 800 ,
144156 type : SENSOR_LIST . PRESSURE ,
157+ step : 0.1 ,
145158 } ,
146159 ] ,
147160 unitLabel : "hPa" ,
@@ -153,6 +166,7 @@ const MOTION_SLIDER_PROPS_X: ISliderProps = {
153166 minLabel : "Left" ,
154167 minValue : - 1023 ,
155168 type : SENSOR_LIST . MOTION_X ,
169+ step : 0.1 ,
156170} ;
157171
158172const MOTION_SLIDER_PROPS_Y : ISliderProps = {
@@ -162,6 +176,7 @@ const MOTION_SLIDER_PROPS_Y: ISliderProps = {
162176 minLabel : "Back" ,
163177 minValue : - 1023 ,
164178 type : SENSOR_LIST . MOTION_Y ,
179+ step : 0.1 ,
165180} ;
166181
167182const MOTION_SLIDER_PROPS_Z : ISliderProps = {
@@ -171,6 +186,7 @@ const MOTION_SLIDER_PROPS_Z: ISliderProps = {
171186 minLabel : "Up" ,
172187 minValue : - 1023 ,
173188 type : SENSOR_LIST . MOTION_Z ,
189+ step : 0.1 ,
174190} ;
175191
176192export const MOTION_SENSOR_PROPERTIES : ISensorProps = {
@@ -190,6 +206,7 @@ const TEMPERATURE_SLIDER_PROPS: ISliderProps = {
190206 minLabel : "Cold" ,
191207 minValue : - 55 ,
192208 type : SENSOR_LIST . TEMPERATURE ,
209+ step : 0.1 ,
193210} ;
194211
195212export const TEMPERATURE_SENSOR_PROPERTIES : ISensorProps = {
0 commit comments