Skip to content

Commit 0619b76

Browse files
committed
fix: 'var' as default
1 parent 4c767c3 commit 0619b76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/svelte/src/animate/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export function flip(node, { from, to }, params = {}) {
2626
var dy = (from.top + dsy * oy - (to.top + oy)) / zoom;
2727
var { delay = 0, duration = (d) => Math.sqrt(d) * 120, easing = cubicOut } = params;
2828

29-
const rf = Math.atan2(m.m21, m.m11) + Math.atan2(from.bottom - from.top, from.right - from.left);
30-
const rt = Math.atan2(to.bottom - to.top, to.right - to.left);
29+
var rf = Math.atan2(m.m21, m.m11) + Math.atan2(from.bottom - from.top, from.right - from.left);
30+
var rt = Math.atan2(to.bottom - to.top, to.right - to.left);
3131

32-
const rn = normalize_angle(rf - rt);
32+
var rn = normalize_angle(rf - rt);
3333

3434
return {
3535
delay,

0 commit comments

Comments
 (0)