发布

  • feat(studio): single-source manual offset + rotation via the GSAP timeline

    frostbyte_neo 发布于 2026-06-19 22:33:21 +00:00

    Dragging or rotating an element writes into the GSAP timeline (the single source of
    truth) instead of a parallel --hf-studio-offset / --hf-studio-rotation CSS var: static
    elements commit a tl.set (idempotent on re-edit), tweened elements edit keyframes, and
    the live preview moves via gsap.set so what you see equals what is written and renders.
    Removes the dual-channel CSS-var/transform reconciliation behind the
    fling / disappear / runaway / double-stack / wrong-start bug class — for BOTH position
    and rotation (gesture base read from the gsap transform, gsap.set live preview, tl.set/
    keyframe commit, dropped the handleDom*Commit CSS fallbacks).

    Subcompositions edit the same single-source way, which surfaced and fixes:

    • resolve a subcomp element's source file via the composition-id map (the runtime drops
      the source linkage when inlining the subcomposition);
    • a selected element's selection box AND motion path use basic visibility, not the
      occlusion heuristic (a backgroundless opacity-1 scene above it is not an opaque cover);
    • soft reload rebuilds ONLY the committed composition's timeline, leaving other
      compositions' timelines intact (no cross-composition revert);
    • read keyframes from the element's OWN composition timeline (scan all timelines, not
      the first unstable key);
    • delete-all uses a soft reload too, so editing no longer hard-reloads the iframe.
    下载附件