(anim: GsapAnimation, trackId: string)
| 302 | } |
| 303 | |
| 304 | function resolveTweenTiming(anim: GsapAnimation, trackId: string): { start: number; d: number } { |
| 305 | const fbStart = anim.resolvedStart ?? 0; |
| 306 | const fbDur = numOr(anim.duration as number | undefined, 0.4); |
| 307 | const el = comp ? comp.getElement(trackId) : null; |
| 308 | if (!el) return { start: fbStart, d: fbDur }; |
| 309 | return computeTiming(el.attributes["data-start"], el.attributes["data-end"], fbStart, fbDur); |
| 310 | } |
| 311 | |
| 312 | function buildTweenBlock( |
| 313 | anim: GsapAnimation, |
no test coverage detected