MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / has

Function has

packages/cli/src/commands/keyframes.ts:122–122  ·  view source on GitHub ↗
(p: Record<string, number | string> | undefined)

Source from the content-addressed store, hash-verified

120function 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,

Callers 1

isPositionTweenFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected