mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-25 16:37:32 +00:00
* fix(studio): arrow keys nudge the selected element in a sealed preview A sealed preview's selection is a stand-in that is never in the page, so the nudge's check that the element is still there refused every key and nothing moved. It now uses the same check the selection publisher uses, which keeps a sealed selection until it is replaced. * fix(studio): a sealed nudge moves an animated element by its tween and saves where it was drawn A sealed preview's selected element is a stand-in with no animation or translate of its own, so a nudge guessed both from an empty page: it wrote a plain translate over the stylesheet's and the element landed elsewhere after a reload. The nudge now waits for the frame's gesture-start read, the one a press uses, and keys pressed meanwhile join the burst. * test(studio): pass the nudge its frame refs in the undo paint test * fix(studio): a sealed move on GSAP's route lands where it was drawn, not twice as far When a move ends, the sealed frame kept the translate the gesture drew. A move on GSAP's route saves the new position as GSAP's x and y, so the layer then showed the move twice until the frame loaded again. The frame now drops the drawn translate for those moves; a move saved as a plain translate still keeps it. * refactor(studio): split the sealed nudge key handler so each step reads on its own * fix(studio): a sealed nudge waiting on its frame gives way to a drag, selection or other edit * fix(studio): an arrow pressed while a canvas press waits on the preview does not start a nudge * fix(studio): a sealed resize on GSAP's route keeps the size it drew when it ends * refactor(studio): name the size-keeping draft end instead of commenting it * fix(studio): a sealed resize saved as GSAP scale drops the size it drew when it ends * fix(studio): a sealed resize keeps its drawn size unless its save wrote the size as scale * fix(studio): a whole-tween resize of a width/height tween says it saved the size, not scale * test(studio): cover the resize writer's held-size and unnamed-element returns * test(studio): reach the resize writer's no-selector refusal with an element no selector addresses
@hyperframes/studio
Browser-based composition editor UI for Hyperframes. Provides a visual timeline, code editor, and live preview for building video compositions.
Install
npm install @hyperframes/studio
What it does
The studio is a React application with:
- Visual timeline — drag, resize, and arrange elements on tracks
- Code editor — edit HTML and GSAP scripts with CodeMirror (syntax highlighting, autocomplete)
- Live preview — see changes in real time as you edit
- Composition inspector — view and modify element properties
Development
The studio is embedded in the hyperframes preview command. To develop the studio UI itself:
cd packages/studio
bun run dev # Start Vite dev server
bun run build # Build for production
bun run typecheck # Type-check
Tech stack
- React 19, Zustand 4/5 (state management; development uses Zustand 5)
- CodeMirror 6 (editor)
- Tailwind CSS (styling)
- Vite (bundler)
- Phosphor Icons
Documentation
Full documentation: hyperframes.heygen.com/packages/studio
Related packages
@hyperframes/core— types and parsers used by the editorhyperframes— CLI that serves the studio viahyperframes preview