@@ -6,32 +6,47 @@ export default {
6
6
component : 'wokwi-stepper-motor' ,
7
7
argTypes : {
8
8
angle : { control : { type : 'range' , min : 0 , max : 360 } } ,
9
+ size : { control : { type : 'select' , options : [ 8 , 11 , 14 , 17 , 23 , 34 ] } } ,
9
10
arrow : { control : { type : 'color' } } ,
10
11
} ,
11
12
args : {
12
13
angle : 0 ,
13
14
arrow : '' ,
14
15
units : '' ,
15
16
value : '' ,
17
+ size : 23 ,
16
18
} ,
17
19
} ;
18
20
19
- const Template = ( { angle, arrow, units, value } ) =>
21
+ const Template = ( { angle, arrow, units, value, size } ) =>
20
22
html `< wokwi-stepper-motor
21
23
.angle =${ angle }
22
24
.arrow =${ arrow }
23
25
.units=${ units }
24
26
.value=${ value }
27
+ .size=${ size }
25
28
> </ wokwi-stepper-motor > ` ;
26
29
27
30
export const Default = Template . bind ( { } ) ;
28
31
Default . args = { } ;
29
32
30
33
export const Rotated90 = Template . bind ( { } ) ;
31
- Rotated90 . args = { angle : 90 , units : 'degrees' , value : '90' } ;
34
+ Rotated90 . args = { angle : 90 , units : 'degrees' , value : '90' , size : 14 } ;
32
35
33
36
export const Steps = Template . bind ( { } ) ;
34
- Steps . args = { angle : 180 , value : '52,500' , units : 'steps' } ;
37
+ Steps . args = { angle : 180 , value : '52,500' , units : 'steps' , size : 14 } ;
38
+
39
+ export const Degrees = Template . bind ( { } ) ;
40
+ Degrees . args = { angle : 180 , value : '180' , units : 'degrees' , size : 14 } ;
35
41
36
42
export const PurpleArrow = Template . bind ( { } ) ;
37
- PurpleArrow . args = { angle : 70 , arrow : '#4a36ba' } ;
43
+ PurpleArrow . args = { angle : 350 , arrow : '#4a36ba' , size : 14 } ;
44
+
45
+ export const Nema17 = Template . bind ( { } ) ;
46
+ Nema17 . args = { angle : 70 , arrow : '#4a36ba' , size : 17 } ;
47
+
48
+ export const Nema23 = Template . bind ( { } ) ;
49
+ Nema23 . args = { angle : 70 , arrow : '#4a36ba' , value : '1234' , units : 'steps' , size : 23 } ;
50
+
51
+ export const Nema34 = Template . bind ( { } ) ;
52
+ Nema34 . args = { angle : 70 , arrow : '#4a36ba' , value : '180' , units : 'degrees' , size : 34 } ;
0 commit comments