@hyperframes/parsers 0.8.33 → 0.8.34
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.d.ts +2 -2
- package/dist/gsapParser.js +2 -2
- package/dist/gsapParser.js.map +1 -1
- package/dist/gsapParserAcorn.d.ts +2 -2
- package/dist/gsapParserAcorn.js.map +1 -1
- package/dist/gsapParserExports.d.ts +1 -1
- package/dist/gsapParserExports.js +2 -2
- package/dist/gsapParserExports.js.map +1 -1
- package/dist/{gsapSerialize-DQW1kZ2G.d.ts → gsapSerialize-CqTuNW95.d.ts} +6 -0
- package/dist/gsapWriterAcorn.d.ts +1 -1
- package/dist/gsapWriterAcorn.js.map +1 -1
- package/dist/hfIds.d.ts +2 -1
- package/dist/hfIds.js +21 -16
- package/dist/hfIds.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +26 -21
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ArcPathConfig, a as ArcPathSegment, G as GsapAnimation, b as GsapKeyframesData, c as GsapMethod, d as GsapPercentageKeyframe, e as GsapProvenance, f as GsapProvenanceKind, K as KeyframeEditability, P as ParsedGsap, S as SourcedGsapPercentageKeyframe, g as SplitAnimationsOptions, h as SplitAnimationsResult, i as editabilityForProvenance, j as getAnimationsForElementId, k as gsapAnimationsToKeyframes, l as keyframesToGsapAnimations, s as serializeGsapAnimations, v as validateCompositionGsap } from './gsapSerialize-
|
|
1
|
+
export { A as ArcPathConfig, a as ArcPathSegment, G as GsapAnimation, b as GsapKeyframesData, c as GsapMethod, d as GsapPercentageKeyframe, e as GsapProvenance, f as GsapProvenanceKind, K as KeyframeEditability, P as ParsedGsap, S as SourcedGsapPercentageKeyframe, g as SplitAnimationsOptions, h as SplitAnimationsResult, i as editabilityForProvenance, j as getAnimationsForElementId, k as gsapAnimationsToKeyframes, l as keyframesToGsapAnimations, s as serializeGsapAnimations, v as validateCompositionGsap } from './gsapSerialize-CqTuNW95.js';
|
|
2
2
|
export { isStudioHoldSet } from './gsapParser.js';
|
|
3
3
|
export { PROPERTY_GROUPS, PropertyGroupName, SUPPORTED_EASES, SUPPORTED_PROPS, classifyPropertyGroup, classifyTweenPropertyGroup } from './gsapConstants.js';
|
|
4
4
|
export { SPRING_PRESETS, SpringPreset, generateSpringEaseData } from './springEase.js';
|
|
@@ -136,7 +136,7 @@ function serializeGsapAnimations(animations, timelineVar = "tl", options) {
|
|
|
136
136
|
return aNum - bNum;
|
|
137
137
|
});
|
|
138
138
|
const lines = sorted.map((anim) => {
|
|
139
|
-
const selector =
|
|
139
|
+
const selector = JSON.stringify(anim.targetSelector);
|
|
140
140
|
const props = { ...anim.properties };
|
|
141
141
|
if (anim.duration !== void 0) props.duration = anim.duration;
|
|
142
142
|
if (anim.ease) props.ease = anim.ease;
|
|
@@ -149,7 +149,7 @@ function serializeGsapAnimations(animations, timelineVar = "tl", options) {
|
|
|
149
149
|
propsStr = propsStr.slice(0, -2) + `, ${extrasStr} }`;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
const posStr =
|
|
152
|
+
const posStr = JSON.stringify(anim.position);
|
|
153
153
|
switch (anim.method) {
|
|
154
154
|
case "set":
|
|
155
155
|
return anim.global ? ` gsap.set(${selector}, ${propsStr});` : ` ${timelineVar}.set(${selector}, ${propsStr}, ${posStr});`;
|