mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 07:50:13 +00:00
* feat(studio): drag and resize on an opaque preview start from one gesture-start read A gesture on a preview frame Studio cannot script read nothing from the frame as it started. A drag snapped to nothing; a layer GSAP holds moved by a CSS translate that its save then dropped; a resize grew from the overlay rect, the layer's GSAP scale included; and the pointer reached the element only through the canvas zoom. The runtime answers a new `gesture-start` request. For each pressed element it gives the overlay geometry, the transform-free layout size, how far the centre moves per px of translate (probed the way a draft draws it, every transform above it applied), and GSAP's x/y when GSAP owns its position, with whether a tween moves it. It also lists the boxes of the page the gesture can snap to, walked by the rule Studio's own snap collection now takes from core. On an opaque preview every press waits for that one read, on the existing waiting-press path, and the gesture starts from it: the snap targets, the move route and GSAP base (so the save writes GSAP's x plus the drag, not the drag alone), the pointer-to-offset matrix, and the resize's base size. A layer a tween moves is refused with a notice, since saving that move still reads the frame. Same-origin frames do not change: their presses start at once from the element, and their snap collection walks the same elements by the same rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(inspector): raise the packed size budget for the gesture-start runtime The inspector bundles core's preview runtime. Main alone packs to 866206 bytes, 420 under the 1% tolerance on the old 858046 budget; the gesture-start request adds 713 bytes (866919), which tipped the merge queue's Build over. Set the budget to 880000 to leave room for the remaining opaque-preview requests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
63 lines
1.2 KiB
JSON
63 lines
1.2 KiB
JSON
{
|
|
"@hyperframes/aws-lambda": {
|
|
"packed": 78851,
|
|
"unpacked": 290508
|
|
},
|
|
"@hyperframes/cli": {
|
|
"packed": 8577627,
|
|
"unpacked": 25159107
|
|
},
|
|
"@hyperframes/core": {
|
|
"packed": 1762752,
|
|
"unpacked": 4330000
|
|
},
|
|
"@hyperframes/engine": {
|
|
"packed": 490452,
|
|
"unpacked": 1620913
|
|
},
|
|
"@hyperframes/gcp-cloud-run": {
|
|
"packed": 49412,
|
|
"unpacked": 170124
|
|
},
|
|
"@hyperframes/inspector": {
|
|
"packed": 880000,
|
|
"unpacked": 3722000
|
|
},
|
|
"@hyperframes/lint": {
|
|
"packed": 191022,
|
|
"unpacked": 737342
|
|
},
|
|
"@hyperframes/parsers": {
|
|
"packed": 203731,
|
|
"unpacked": 885314
|
|
},
|
|
"@hyperframes/player": {
|
|
"packed": 157145,
|
|
"unpacked": 541601
|
|
},
|
|
"@hyperframes/producer": {
|
|
"packed": 890000,
|
|
"unpacked": 3245000
|
|
},
|
|
"@hyperframes/sdk": {
|
|
"packed": 90662,
|
|
"unpacked": 325069
|
|
},
|
|
"@hyperframes/shader-transitions": {
|
|
"packed": 212864,
|
|
"unpacked": 825937
|
|
},
|
|
"@hyperframes/share": {
|
|
"packed": 148738,
|
|
"unpacked": 575775
|
|
},
|
|
"@hyperframes/studio": {
|
|
"packed": 6589635,
|
|
"unpacked": 26703858
|
|
},
|
|
"@hyperframes/studio-server": {
|
|
"packed": 168500,
|
|
"unpacked": 654000
|
|
}
|
|
}
|