File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " svelte-knobs" ,
3
3
"description" : " Svelte component library for building customizable knob controls." ,
4
- "version" : " 0.0.2 " ,
4
+ "version" : " 0.0.3 " ,
5
5
"repository" : {
6
6
"url" : " https://github.com/eye-wave/svelte-knobs"
7
7
},
Original file line number Diff line number Diff line change 25
25
$ : circleRadius = size * 0.32 ;
26
26
$ : lineWidth = size * 0.04 ;
27
27
28
- $ : rotationDegrees = spring (0 , { stiffness });
29
-
30
28
let isDragging = false ;
31
29
let startY: number ;
32
30
let startValue: number ;
50
48
51
49
$ : fixedSnapValues = completeFixedSnapValues (snapValues );
52
50
51
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
52
+ const rotationDegrees = spring (normalize (value as any , param as any ) * 270 - 135 , { stiffness });
53
+
53
54
// eslint-disable-next-line @typescript-eslint/no-explicit-any
54
55
$ : normalizedValue = normalize (value as any , param as any );
55
56
$ : rotationDegrees .set (normalizedValue * 270 - 135 );
You can’t perform that action at this time.
0 commit comments