MCPcopy
hub / github.com/protectwise/troika / _syncTweens

Method _syncTweens

packages/troika-animation/src/MultiTween.js:30–39  ·  view source on GitHub ↗
(time)

Source from the content-addressed store, hash-verified

28 }
29
30 _syncTweens(time) {
31 // NOTE: forward iteration is important here so the tweens are evaluated in order
32 // of when they end; that way later tweens will take precedence over earlier ones.
33 // TODO would be nice to ignore tweens past their totalElapsed entirely, but have to
34 // figure out how to do that while ensuring they don't get stuck with a value that is
35 // slightly prior to their end state.
36 for (let i = 0, len = this.tweens.length; i < len; i++) {
37 this.tweens[i].gotoElapsedTime(time)
38 }
39 }
40}
41
42function endTimeComparator(a, b) {

Callers

nothing calls this directly

Calls 1

gotoElapsedTimeMethod · 0.45

Tested by

no test coverage detected