@hi-ashleyj/llama 0.12.4 → 0.12.5
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.
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
<script>import {
|
|
1
|
+
<script>import { linear } from "svelte/easing";
|
|
2
|
+
import { tweened } from "svelte/motion";
|
|
2
3
|
export let duration = 200;
|
|
3
4
|
export let value = 0;
|
|
4
|
-
|
|
5
|
+
export let easing = linear;
|
|
6
|
+
const tweening = tweened(null, { duration, easing });
|
|
5
7
|
$:
|
|
6
|
-
tweening.set(value, { duration });
|
|
8
|
+
tweening.set(value, { duration, easing });
|
|
7
9
|
</script>
|
|
8
10
|
|
|
9
11
|
<slot smooth={$tweening} />
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { type TweenedOptions } from "svelte/motion";
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
duration?: number | undefined;
|
|
5
6
|
value?: number | undefined;
|
|
7
|
+
easing?: TweenedOptions<number>["easing"];
|
|
6
8
|
};
|
|
7
9
|
events: {
|
|
8
10
|
[evt: string]: CustomEvent<any>;
|