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

Function num

packages/cli/src/commands/keyframes.ts:111–118  ·  view source on GitHub ↗
(v: number | string | undefined)

Source from the content-addressed store, hash-verified

109}
110
111function num(v: number | string | undefined): number | null {
112 if (typeof v === "number") return v;
113 if (typeof v === "string") {
114 const n = Number.parseFloat(v);
115 return Number.isFinite(n) ? n : null;
116 }
117 return null;
118}
119
120function isPositionTween(anim: GsapAnimation): boolean {
121 if (anim.propertyGroup === "position") return true;

Callers 4

surfaceTweenFunction · 0.70
positionPathFunction · 0.70
summarizeMotionFunction · 0.70
onionShotOptionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected