File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " m3-svelte" ,
3
- "version" : " 3.4.10 " ,
3
+ "version" : " 3.4.11 " ,
4
4
"license" : " Apache-2.0 OR GPL-3.0-only" ,
5
5
"repository" : " KTibow/m3-svelte" ,
6
6
"author" : {
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import type { HTMLAttributes , HTMLInputAttributes } from " svelte/elements" ;
3
- import { tweened } from " svelte/motion" ;
4
- import { easeEmphasized } from " $lib/misc/easing" ;
3
+ import { spring } from " svelte/motion" ;
5
4
6
5
export let extraWrapperOptions: HTMLAttributes <HTMLDivElement > = {};
7
6
export let extraOptions: HTMLInputAttributes = {};
15
14
return n .toFixed (0 );
16
15
};
17
16
18
- const valueDisplayed = tweened (value , { duration: 200 , easing: easeEmphasized });
17
+ const valueDisplayed = spring (value , { stiffness: 0.3 , damping: 1 });
19
18
const updateValue = (e : Event & { currentTarget: EventTarget & HTMLInputElement }) => {
20
19
const newValue = Number (e .currentTarget .value );
21
20
e .preventDefault ();
You can’t perform that action at this time.
0 commit comments