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

Function cleanProps

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

Source from the content-addressed store, hash-verified

171
172// Drop internal / non-visual keys so they don't pollute the surfaced keyframes.
173function cleanProps(props: Record<string, number | string>): Record<string, number | string> {
174 const out: Record<string, number | string> = {};
175 for (const [k, v] of Object.entries(props)) {
176 if (k === "data" || k === "ease") continue;
177 out[k] = v;
178 }
179 return out;
180}
181
182function surfaceTween(anim: GsapAnimation): SurfacedTween {
183 const start =

Callers 1

surfaceTweenFunction · 0.85

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected