fix tsconfig.json (#9427)

* fix tsconfig.json

* prettier

* another apparently-necessary fix

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
pull/9428/head
Rich Harris 1 year ago committed by GitHub
parent 5768df1300
commit a990e5716a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,14 +83,14 @@ export function fly(
const target_opacity = +style.opacity; const target_opacity = +style.opacity;
const transform = style.transform === 'none' ? '' : style.transform; const transform = style.transform === 'none' ? '' : style.transform;
const od = target_opacity * (1 - opacity); const od = target_opacity * (1 - opacity);
const [xValue, xUnit] = split_css_unit(x); const [x_value, x_unit] = split_css_unit(x);
const [yValue, yUnit] = split_css_unit(y); const [y_value, y_unit] = split_css_unit(y);
return { return {
delay, delay,
duration, duration,
easing, easing,
css: (t, u) => ` css: (t, u) => `
transform: ${transform} translate(${(1 - t) * xValue}${xUnit}, ${(1 - t) * yValue}${yUnit}); transform: ${transform} translate(${(1 - t) * x_value}${x_unit}, ${(1 - t) * y_value}${y_unit});
opacity: ${target_opacity - od * u}` opacity: ${target_opacity - od * u}`
}; };
} }

@ -19,7 +19,7 @@
"svelte/action": ["./src/action/public.d.ts"], "svelte/action": ["./src/action/public.d.ts"],
"svelte/compiler": ["./src/compiler/public.d.ts"], "svelte/compiler": ["./src/compiler/public.d.ts"],
"svelte/internal": ["./src/internal/index.js"], "svelte/internal": ["./src/internal/index.js"],
"svelte/legacy": ["./src/legacy/public.d.ts"], "svelte/legacy": ["./src/legacy/legacy-client.js"],
"svelte/server": ["./src/server/index.js"], "svelte/server": ["./src/server/index.js"],
"svelte/store": ["./src/store/public.d.ts"], "svelte/store": ["./src/store/public.d.ts"],
"#compiler": ["./src/compiler/types/index.d.ts"] "#compiler": ["./src/compiler/types/index.d.ts"]

@ -22,4 +22,3 @@ To prevent something from being treated as an `$effect`/`$derived` dependency, u
}); });
</script> </script>
``` ```

Loading…
Cancel
Save