v20.0.0
版本发布时间: 2023-04-23 12:19:35
tweenjs/tween.js最新发布版本:v25.0.0(2024-07-26 12:51:38)
You won't be able to outrun the fox!
Fixes
- Fixed the video_and_time example which sometimes didn't play a video.
Breaking changes:
- By default, the "dynamic to" feature is no longer enabled. To enable it, you must now enable it with
tween.dynamic(true)
.Warning When
dynamic
is set tofalse
, Tween makes a copy of the object passed intotween.to()
and will never modify it (hence updating the original object from the outside is not dynamic). Whendynamic
istrue
, Tween uses the original object as the source of values during animation (every update reads the values, hence they can be modified dynamically) but note that in dynamic mode, Tween will modify any interpolation arrays of the object passed intotween.to()
which may cause side-effects on any external code that may also rely on the same object. We've added two new dynamic_to examples. In each example, when dynamic is disabled, the fox cannot catch any rabbits. When dynamic is enabled, the rabbits have no chance! -
tween.to()
now throws if it is called when a tween is started (even if paused). Calltween.stop()
first before setting a new.to()
value.