(p: Record<string, number | string> | undefined)
| 120 | function isPositionTween(anim: GsapAnimation): boolean { |
| 121 | if (anim.propertyGroup === "position") return true; |
| 122 | const has = (p: Record<string, number | string> | undefined) => !!p && ("x" in p || "y" in p); |
| 123 | if (has(anim.properties) || has(anim.fromProperties)) return true; |
| 124 | return (anim.keyframes?.keyframes ?? []).some( |
| 125 | (kf) => "x" in kf.properties || "y" in kf.properties, |