You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// See https://github.com/tweenjs/tween.js/graphs/contributors for the full list of contributors.
@@ -120,6 +118,8 @@
120
118
// anim.setCallbackAtTime(v, f) // registers a callback function on the first frame that v >= t (or v <= t if playing reversed). only 1 callback is supported at this time. call without arguments to clear. v: the linear animation time (0-1) at which to call this callback. f: the function to call.
121
119
// anim.start(atTime, skipDelay) // start the animation. atTime: (optional) time ratio (0-1) to start playing from. skipDelay: (optional) ignore the delay value.
122
120
// anim.stop(callEndFunction) // stop the animation. callEndFunction: (optional) whether to call the .endFunction (if animation was still playing), default is false.
121
+
// anim.pause() // pause amimation (if playing)
122
+
// anim.resume() // resume amimation (if paused)
123
123
//
124
124
// Example, smoothly animating transform 'trf' one unit to the right (default duration is 1 second)
125
125
//
@@ -293,10 +293,12 @@
293
293
// delayed.byTime(10) // this will call the function in 10 seconds (function is called instantly if no argument given or if arg is '0') - the DoDelay instance is returned
294
294
// delayed.now() // call the function with the given arguments now
295
295
// delayed.stop() // this will cancel the scheduled function
296
-
// delayed.isWaiting() // returns true if currently counting down to call the function
296
+
// delayed.pause() // pause (if running)
297
+
// delayed.resume() // resume (if paused)
298
+
// delayed.isRunning() // returns true if currently counting down to call the function
297
299
// delayed.createdAtTime // the time at which this instance was created
298
300
// delayed.getTimeLeft() // get the time left before the function is called (null if unused)
299
-
// delayed.getFramesLeft() // the frames left before the function is called (null if unused)
301
+
// delayed.getFramesLeft() // get the frames left before the function is called (null if unused)
300
302
// delayed.getGivenTime() // get the amount of time that was last given to wait (null if none yet)
301
303
// delayed.getGivenFrames() // get the amount of frames that was last given to wait (null if none yet)
302
304
//
@@ -306,8 +308,8 @@
306
308
//
307
309
//
308
310
//
309
-
// stopAllDelays() : DoDelay array
310
-
// Instantly stops all delays created using 'DoDelay'. This is useful if you want to create a quick reset function for your lens without managing all the created delays throughout your project.
311
+
// getAllDelays() : DoDelay array
312
+
// Returns all delays created using 'DoDelay'. This includes expired delays.
311
313
//
312
314
//
313
315
//
@@ -328,8 +330,8 @@
328
330
//
329
331
//
330
332
//
331
-
// stopAllSoundInstances() : AudioComponent array
332
-
// Instantly stops all sound instances created using 'instSound'. This is useful if you want to create a quick reset function for your lens without managing all the created sounds throughout your project.
333
+
// getAllSoundInstances() : AudioComponent array
334
+
// Returns all sound instances created using 'instSound'.
0 commit comments