@hyperframes/parsers 0.7.52 → 0.7.53
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/gsapParser.js
CHANGED
|
@@ -1285,9 +1285,15 @@ function buildTweenStatementCode(timelineVar, anim) {
|
|
|
1285
1285
|
if (anim.method !== "set" && anim.duration !== void 0) props.duration = anim.duration;
|
|
1286
1286
|
if (anim.ease) props.ease = anim.ease;
|
|
1287
1287
|
const entries = Object.entries(props).map(([k, v]) => `${safeJsKey(k)}: ${serializeValue(v)}`);
|
|
1288
|
-
|
|
1288
|
+
const emitted = new Set(Object.keys(props));
|
|
1289
|
+
if (anim.method === "set" && !anim.global && !emitted.has("immediateRender") && !(anim.extras && "immediateRender" in anim.extras)) {
|
|
1290
|
+
entries.push("immediateRender: true");
|
|
1291
|
+
emitted.add("immediateRender");
|
|
1292
|
+
}
|
|
1289
1293
|
if (anim.extras) {
|
|
1290
1294
|
for (const [k, v] of Object.entries(anim.extras)) {
|
|
1295
|
+
if (emitted.has(k)) continue;
|
|
1296
|
+
emitted.add(k);
|
|
1291
1297
|
entries.push(`${safeJsKey(k)}: ${serializeValue(v)}`);
|
|
1292
1298
|
}
|
|
1293
1299
|
}
|