mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-17 15:24:19 +00:00
Five new exported functions for in-place AST manipulation of native GSAP percentage keyframes: - addKeyframeToScript: insert at sorted position, replace if exists - removeKeyframeFromScript: remove by percentage, collapse to flat if <2 remain - updateKeyframeInScript: replace properties at an existing percentage - convertToKeyframesInScript: convert flat to/from/fromTo to keyframes format - removeAllKeyframesFromScript: collapse all keyframes to flat tween (last kf) All follow the existing recast-based mutation pattern: parse AST, find target animation by stable ID, modify nodes in place, reprint preserving formatting.