Refactor Vite server configuration by removing HMR host setting
This commit is contained in:
34
node_modules/.vite/deps/svelte_animate.js
generated
vendored
Normal file
34
node_modules/.vite/deps/svelte_animate.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
import {
|
||||
cubicOut
|
||||
} from "./chunk-ETWSND26.js";
|
||||
import {
|
||||
is_function
|
||||
} from "./chunk-TB4K45JM.js";
|
||||
import "./chunk-2GBBIY5G.js";
|
||||
import "./chunk-V6TY7KAL.js";
|
||||
|
||||
// node_modules/svelte/src/runtime/animate/index.js
|
||||
function flip(node, { from, to }, params = {}) {
|
||||
const style = getComputedStyle(node);
|
||||
const transform = style.transform === "none" ? "" : style.transform;
|
||||
const [ox, oy] = style.transformOrigin.split(" ").map(parseFloat);
|
||||
const dx = from.left + from.width * ox / to.width - (to.left + ox);
|
||||
const dy = from.top + from.height * oy / to.height - (to.top + oy);
|
||||
const { delay = 0, duration = (d) => Math.sqrt(d) * 120, easing = cubicOut } = params;
|
||||
return {
|
||||
delay,
|
||||
duration: is_function(duration) ? duration(Math.sqrt(dx * dx + dy * dy)) : duration,
|
||||
easing,
|
||||
css: (t, u) => {
|
||||
const x = u * dx;
|
||||
const y = u * dy;
|
||||
const sx = t + u * from.width / to.width;
|
||||
const sy = t + u * from.height / to.height;
|
||||
return `transform: ${transform} translate(${x}px, ${y}px) scale(${sx}, ${sy});`;
|
||||
}
|
||||
};
|
||||
}
|
||||
export {
|
||||
flip
|
||||
};
|
||||
//# sourceMappingURL=svelte_animate.js.map
|
Reference in New Issue
Block a user