Skip to content

Commit

Permalink
refactor: import for Switch
Browse files Browse the repository at this point in the history
  • Loading branch information
xlsft committed Jul 9, 2023
1 parent e024315 commit f7a5c94
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib/inputs/Switch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import { getColor } from "$lib/assets/scripts/colors";
import type { Colors, Depths } from "$lib/assets/scripts/colors";
import { theme as theme_store } from "../stores";
import { tweened } from "svelte/motion";
import { cubicInOut } from "svelte/easing";
// ------------------ Apperance ------------------
Expand Down Expand Up @@ -65,9 +66,6 @@
// ------------------ Animation ------------------
import { tweened } from "svelte/motion";
import { cubicInOut } from "svelte/easing";
import type { IconList } from "$lib/assets/scripts/icons";
let anim = (dur: number) => { return tweened(5, { duration: dur, easing: cubicInOut }) };
let base_pos = { start: 5, end: 45 };
let knob_pos = anim(400), knob_shadow_1_pos = anim(455), knob_shadow_2_pos = anim(510);
Expand Down

0 comments on commit f7a5c94

Please sign in to comment.