@hi-ashleyj/llama 0.12.3 → 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.
|
@@ -4,8 +4,8 @@ import { KEYBOARD_ACTION } from "../controllers/keyboard.js";
|
|
|
4
4
|
const context = getGame();
|
|
5
5
|
export let key = "f";
|
|
6
6
|
export let usesShift = true;
|
|
7
|
-
export let usesCtrl =
|
|
8
|
-
export let usesAlt =
|
|
7
|
+
export let usesCtrl = false;
|
|
8
|
+
export let usesAlt = false;
|
|
9
9
|
export let wrapper;
|
|
10
10
|
onMount(() => {
|
|
11
11
|
return context.onKeyboardEvent(key, KEYBOARD_ACTION.DOWN, () => {
|
|
@@ -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>;
|