108 Commits

Author SHA1 Message Date
Joe Pea
fbdd788bf8 chore: format code to updated prettier standard 2023-04-22 21:09:08 -07:00
Joe Pea
dec679d4ed chore: convert the project to type:module (ES Module mode); update prettier, typescript, and rollup; remove sinonjs because of too much complexity getting it to work in ESM mode and instead mock performance.now ourselves for our tests, which ends up being simpler anyway!; get browser tests in nodeunit.html working; party 🎉 2023-04-22 20:47:40 -07:00
Joe Pea
5767ff82b8 chore: convert test code to TypeScript
This is good for checking our own type definitions make sense. Some types were updated based on their usage in the tests.
2020-10-23 16:11:23 -07:00
Joe Pea
91a34c107c fix: get dynamic to working again (for simple objects), add tests
fixes #545
2020-10-21 17:38:27 -07:00
Joe Pea
b7bf53e9ae fix: some APIs didn't work with tweens having no groups
Added corresponding tests.
fixes #570
fixes #576
2020-10-21 14:36:08 -07:00
Joe Pea
5e4afc3d4e add tests for the last fixes 2020-10-20 16:33:55 -07:00
Joe Pea
03de96b847 fix: tween goin backwards in time wasn't working 2020-10-20 15:49:52 -07:00
Joe Pea
899a0e3a59 Merge branch 'master' into typescript
* master: (38 commits)
  update dist files
  rename some tests to better reflect what they test
  improve the conditional logic more so that values in nested arrays can also be animated
  add and example and test for animating values in an array
  start values aren't arrays, only to values are
  move _updateProperties function back out to a method
  fix yoyo with array values test
  temporary, move updateProperties function to make diff with master more clear
  move some code and update variable names to make mergin with master easier (less conflict)
  update dist
  improve state reset when stopping and starting a tween (fixes #512 where yoyo wouldn't restart properly)
  move value-swapping code for repeated tweens to a function (it will be re-used in an upcoming change)
  consolidate duplicate handling of relative values
  update dist files
  ignore VS Code's config folder
  small refactor to prevent update from doing anything when a tween has finished, yet still allow tweens to go back in time
  fix lint error
  rename _isFinished to _isComplete to match other wording
  add one more test for relative array values
  add editorconfig to settings editors can be consistently unique (because we use tabs so people can set their own tab width)
  ...
2020-06-03 01:29:51 -07:00
Joe Pea
bf4048706e format all files in the project now that we have prettier. Yay! 2020-06-02 23:29:00 -07:00
Joe Pea
31da082682 rename some tests to better reflect what they test 2020-05-31 14:50:01 -07:00
Joe Pea
6810c10b3e improve the conditional logic more so that values in nested arrays can also be animated 2020-05-31 14:49:41 -07:00
Joe Pea
b933dae58e add and example and test for animating values in an array 2020-05-31 10:31:22 -07:00
Joe Pea
9ec60444aa Merge branch 'nestedObject' into nested-objects
* nestedObject:
  grammar
  adding tween nested object
2020-05-31 09:38:51 -07:00
Joe Pea
3d7de626b0 Merge branch 'master' into nested-properties
* master: (22 commits)
  update dist
  improve state reset when stopping and starting a tween (fixes #512 where yoyo wouldn't restart properly)
  move value-swapping code for repeated tweens to a function (it will be re-used in an upcoming change)
  consolidate duplicate handling of relative values
  update dist files
  ignore VS Code's config folder
  small refactor to prevent update from doing anything when a tween has finished, yet still allow tweens to go back in time
  fix lint error
  rename _isFinished to _isComplete to match other wording
  add one more test for relative array values
  add editorconfig to settings editors can be consistently unique (because we use tabs so people can set their own tab width)
  add tests for .to() with relative array values, and implement it
  add unit tests for yoyo with relative values
  update yoyo example to test yoyo with relative values
  Revert "Remove stopChainedTweens test because it didn't test stopChainedTweens."
  delete Travis CI stuff, we now have free GitHub actions, easier to manage right here in the repo
  add GitHub Actions config for automated testing
  fixed issue with not stopping chained tweens when the head chain is not playing. Also works with cyclic chains.
  bug-fix: update function still be called after end();
  fixes #284; add tests for tweening to array
  ...
2020-05-30 21:03:06 -07:00
Joe Pea
f82ee2598e improve state reset when stopping and starting a tween (fixes #512 where yoyo wouldn't restart properly) 2020-05-30 18:50:54 -07:00
Joe Pea
b287d65ccd small refactor to prevent update from doing anything when a tween has finished, yet still allow tweens to go back in time 2020-05-30 00:24:46 -07:00
Joe Pea
cf5918d368 add one more test for relative array values 2020-05-29 22:46:07 -07:00
Joe Pea
7083435d66 add tests for .to() with relative array values, and implement it 2020-05-29 22:38:16 -07:00
Joe Pea
0c8210983b add unit tests for yoyo with relative values 2020-05-29 21:43:36 -07:00
Joe Pea
b5b1c7bc36
Merge branch 'master' into array-yoyo-fix 2020-05-29 20:30:57 -07:00
Joe Pea
f061625af1
Merge branch 'master' into array-yoyo-fix 2020-05-29 19:13:06 -07:00
Joe Pea
d2fbfda846 Revert "Remove stopChainedTweens test because it didn't test stopChainedTweens."
The test was in fact indirectly testing the stopChainedTweens method.

This reverts commit 5647a709394db9e3f4fd265a495d475126d2ee78.
2020-05-29 19:12:10 -07:00
Joe Pea
128d973b24 delete Travis CI stuff, we now have free GitHub actions, easier to manage right here in the repo 2020-05-29 19:06:33 -07:00
Joe Pea
32adbe001b
Merge branch 'master' into array-yoyo-fix 2020-05-29 18:48:14 -07:00
Juan Manuel Cruz
90e835cee7 Added tests to covers new features 2020-05-15 21:24:45 -03:00
mikebolt
681984b5ab Add timestamp parameters to pause and resume and improve the pause test. 2019-09-09 20:49:34 -07:00
Guillermo Q. Chavez
840d31bf10 Add functions to pause and resume a tween. 2019-09-09 19:29:09 -06:00
Michael Casebolt
4fd635da30 Test that tweens looped circularly with chain work correctly when the tween that will be started second is created first. 2019-09-09 01:05:18 -07:00
Michael Casebolt
b8721f6410 Reference the correct js file in nodeunit.html. 2019-09-09 00:38:55 -07:00
mikebolt
6d4d81c516 Replace jscs and jshint with eslint. 2019-09-02 11:54:52 -07:00
mikebolt
3ddd168ee7 Merge rollup branch with master. 2019-09-01 13:20:52 -07:00
mikebolt
8f84b214b4 Merge branch 'master' of github.com:tweenjs/tween.js into rollup-build 2019-08-24 14:38:10 -07:00
Michael Casebolt
b12f397415
fix: undo another merge mistake 2019-05-27 13:10:43 -07:00
Michael Casebolt
24d4ba3b92
fix: undo merge mistake 2019-05-27 13:05:32 -07:00
Michael Casebolt
7c614b7725
Merge branch 'master' into setDuration 2019-05-27 12:59:41 -07:00
Michael Casebolt
127dc42d1a
Merge branch 'master' into mikebolt-end-unmodified 2019-05-26 15:35:05 -07:00
Michael Casebolt
ed81f75382
remove TODO comment 2019-05-26 15:27:58 -07:00
Michael Casebolt
16ce52999a
Update tests.js 2019-05-26 15:24:53 -07:00
Michael Casebolt
498d98f502 Replace Object.assign in unit tests for IE compatibility 2019-05-25 20:10:02 -07:00
Michael Casebolt
9ab624a3a0 Fix test style. 2019-05-25 17:13:14 -07:00
Michael Casebolt
04d0dcce47 Don't modify the argument to to() 2019-05-25 17:11:00 -07:00
Tyler Larson
cb31671155
Merge branch 'master' into nestedObject 2018-09-26 10:15:51 -04:00
Kevin Peters
cb0895c4ee feat: include rollup to bundle library 2018-04-04 14:00:23 +02:00
Michael Casebolt
b2784e473e
Merge branch 'master' into zero-duration 2018-01-21 15:31:01 -08:00
Joe Pea
fa4e236c21
Fix indentation 2018-01-13 00:44:21 -08:00
Michael Casebolt
daec732aa6 Add a test for zero-duration case. 2017-10-29 11:24:24 -07:00
Michael Casebolt
7749efc0ce Add test for Tween.group. 2017-10-27 11:20:28 -07:00
Michael Casebolt
d2bfa1c2de Add test for duration method. 2017-10-27 10:59:37 -07:00
Michael Casebolt
68cfdc2cdd Add a test for tween removal during an update. 2017-09-15 14:45:40 -07:00
Tyler Larson
d337166b3b adding tween nested object 2017-08-30 15:16:09 -04:00