@hyperframes/parsers 0.8.32 → 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
package/dist/gsapParser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as GsapAnimation, P as ParsedGsap, A as ArcPathConfig, a as ArcPathSegment } from './gsapSerialize-
|
|
2
|
-
export { n as GsapKeyframeFormat, b as GsapKeyframesData, c as GsapMethod, d as GsapPercentageKeyframe, j as getAnimationsForElementId, k as gsapAnimationsToKeyframes, l as keyframesToGsapAnimations, s as serializeGsapAnimations, v as validateCompositionGsap } from './gsapSerialize-
|
|
1
|
+
import { G as GsapAnimation, P as ParsedGsap, A as ArcPathConfig, a as ArcPathSegment } from './gsapSerialize-CqTuNW95.js';
|
|
2
|
+
export { n as GsapKeyframeFormat, b as GsapKeyframesData, c as GsapMethod, d as GsapPercentageKeyframe, j as getAnimationsForElementId, k as gsapAnimationsToKeyframes, l as keyframesToGsapAnimations, s as serializeGsapAnimations, v as validateCompositionGsap } from './gsapSerialize-CqTuNW95.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';
|
|
5
5
|
import './types-ewozML_N.js';
|
package/dist/gsapParser.js
CHANGED
|
@@ -131,7 +131,7 @@ function serializeGsapAnimations(animations, timelineVar = "tl", options) {
|
|
|
131
131
|
return aNum - bNum;
|
|
132
132
|
});
|
|
133
133
|
const lines = sorted.map((anim) => {
|
|
134
|
-
const selector =
|
|
134
|
+
const selector = JSON.stringify(anim.targetSelector);
|
|
135
135
|
const props = { ...anim.properties };
|
|
136
136
|
if (anim.duration !== void 0) props.duration = anim.duration;
|
|
137
137
|
if (anim.ease) props.ease = anim.ease;
|
|
@@ -144,7 +144,7 @@ function serializeGsapAnimations(animations, timelineVar = "tl", options) {
|
|
|
144
144
|
propsStr = propsStr.slice(0, -2) + `, ${extrasStr} }`;
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
const posStr =
|
|
147
|
+
const posStr = JSON.stringify(anim.position);
|
|
148
148
|
switch (anim.method) {
|
|
149
149
|
case "set":
|
|
150
150
|
return anim.global ? ` gsap.set(${selector}, ${propsStr});` : ` ${timelineVar}.set(${selector}, ${propsStr}, ${posStr});`;
|