@hyperframes/parsers 0.7.52 → 0.7.54
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/gsapWriterAcorn.js
CHANGED
|
@@ -1103,8 +1103,11 @@ function buildTweenStatementCode(timelineVar, anim) {
|
|
|
1103
1103
|
if (anim.method !== "set" && anim.duration !== void 0) props.duration = anim.duration;
|
|
1104
1104
|
if (anim.ease) props.ease = anim.ease;
|
|
1105
1105
|
const entries = Object.entries(props).map(([k, v]) => `${safeKey(k)}: ${valueToCode(v)}`);
|
|
1106
|
+
const emitted = new Set(Object.keys(props));
|
|
1106
1107
|
if (anim.extras) {
|
|
1107
1108
|
for (const [k, v] of Object.entries(anim.extras)) {
|
|
1109
|
+
if (emitted.has(k)) continue;
|
|
1110
|
+
emitted.add(k);
|
|
1108
1111
|
entries.push(`${safeKey(k)}: ${valueToCode(v)}`);
|
|
1109
1112
|
}
|
|
1110
1113
|
}
|
|
@@ -1228,10 +1231,13 @@ function reconcileEditableProps(ms, objNode, source, newProps, nonEditableOverri
|
|
|
1228
1231
|
const overrides = nonEditableOverrides ?? {};
|
|
1229
1232
|
const { entries, keys } = preservedEntries(objNode, source, isEditableVarKey, overrides);
|
|
1230
1233
|
for (const [key, value] of Object.entries(overrides)) {
|
|
1231
|
-
if (!keys.has(key))
|
|
1234
|
+
if (!keys.has(key)) {
|
|
1235
|
+
keys.add(key);
|
|
1236
|
+
entries.push(`${safeKey(key)}: ${valueToCode(value)}`);
|
|
1237
|
+
}
|
|
1232
1238
|
}
|
|
1233
1239
|
for (const [key, value] of Object.entries(newProps)) {
|
|
1234
|
-
entries.push(`${safeKey(key)}: ${valueToCode(value)}`);
|
|
1240
|
+
if (!keys.has(key)) entries.push(`${safeKey(key)}: ${valueToCode(value)}`);
|
|
1235
1241
|
}
|
|
1236
1242
|
ms.overwrite(objNode.start, objNode.end, `{ ${entries.join(", ")} }`);
|
|
1237
1243
|
}
|