@hyperframes/studio-server 0.7.75 → 0.7.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1350,6 +1350,14 @@ function bakeVisibilityOnDelete(document, anim) {
1350
1350
  } catch {
1351
1351
  }
1352
1352
  }
1353
+ function resolveReplacementEaseEach(scriptText, request) {
1354
+ if (request.easeEach !== void 0) return request.easeEach;
1355
+ const original = parseGsapScriptAcorn(scriptText).animations.find(
1356
+ (animation) => animation.id === request.animationId
1357
+ );
1358
+ if (!original?.arcPath?.enabled) return void 0;
1359
+ return original?.keyframes?.easeEach ?? original?.ease;
1360
+ }
1353
1361
  var HOLD_SYNC_MUTATION_TYPES = /* @__PURE__ */ new Set([
1354
1362
  "add-keyframe",
1355
1363
  "update-keyframe",
@@ -1735,7 +1743,8 @@ function executeGsapMutationAcorn(body, block, respond) {
1735
1743
  body.position,
1736
1744
  body.duration,
1737
1745
  body.keyframes,
1738
- body.ease
1746
+ body.ease,
1747
+ resolveReplacementEaseEach(block.scriptText, body)
1739
1748
  );
1740
1749
  return added.script;
1741
1750
  }
@@ -2065,7 +2074,8 @@ async function executeGsapMutationRecast(body, block, respond) {
2065
2074
  body.position,
2066
2075
  body.duration,
2067
2076
  body.keyframes,
2068
- body.ease
2077
+ body.ease,
2078
+ resolveReplacementEaseEach(block.scriptText, body)
2069
2079
  );
2070
2080
  return added.script;
2071
2081
  }