64 Commits

Author SHA1 Message Date
mk965
bf50c1f529 docs(zh-CN): Update zh-CN documentation to v.20 2023-04-24 13:51:08 +08:00
Joe Pea
c35ad456db chore: update user_guide with isPlaying and isPaused 2023-04-23 12:16:06 -07:00
Joe Pea
4093972473 chore: update start() method docs, add startFromCurrentValues() doc 2023-04-23 12:05:53 -07:00
Joe Pea
06e35299e0 chore: update user guide 2023-04-22 21:09:02 -07:00
Joe Pea
81e13893a6 Merge branch 'fix-dynamic-to-with-array-values'
* fix-dynamic-to-with-array-values:
  WIP sync github pages
  chore: update examples list
  chore: re-order list of examples
  fix: the video example wasn't working sometimes
  breaking: add a dynamic option controls whether objects and arrays passed to `Tween.to()` can be dynamically modified during animation.
  unit tests and examples for #555
2023-04-22 09:43:41 -07:00
Joe Pea
a00426904e add language to code fence 2023-04-21 18:37:23 -07:00
Joe Pea
67526623f4 Revert "Cherry-pick from gh-pages to give @iangilman credit for pointing out the issue with the docs:" so that we will have the latest docs, then we will sync gh-pages and keep it in sync. Thanks @iangilman!
This reverts commit eef09f63919405a277b63926ca1b4281fd2033e6.
2023-04-21 18:36:19 -07:00
Ian Gilman
eef09f6391 Cherry-pick from gh-pages to give @iangilman credit for pointing out the issue with the docs:
Improved yoyo documentation

It wasn't clear from the documentation that I had to pass anything into the `yoyo` function. I had to go look at the yoyo example page to figure that out. Hopefully this change will make it clear to the next person.
2023-04-21 18:34:49 -07:00
Joe Pea
8bebe997ca rename onStartEvery() to onEveryStart() 2021-10-24 17:30:52 +03:00
Toby Harris
3ee5eedf4f onStartEvery documented in user guide 2021-10-05 10:31:15 +01:00
Joe Pea
28434d8ef5
Merge branch 'master' into PR-#611-document-for-generatePow 2021-08-01 23:08:17 -07:00
MasatoMakino
aa2cb879ec fix : file path of unit tests in documents
related : #583
2021-05-06 12:56:06 +09:00
MasatoMakino
efd849e286 add : documentation for TWEEN.Easing.generatePow() 2021-05-05 09:27:02 +09:00
Joe Pea
48c416d237
Merge branch 'master' into fix-dynamic-to-with-array-values 2021-04-26 20:59:59 -07:00
JackParkes1
53bb9096c4
Update yoyo function in user guide
The yoyo function currently has no code block example. This leaves it up to the user to guess whether calling the function sets yoyo to true or if a value needs to be passed in without referring to the code. Added lines to show that boolean values should be passed in to the function.
2020-11-02 14:14:55 +11:00
Joe Pea
98c8064a33 breaking: add a dynamic option controls whether objects and arrays passed to Tween.to() can be dynamically modified during animation.
Adds a new `dynamic` option to the `to()` method. If set to true, objects are passed in an used directly by Tween. This allows outside code to modify values dynamically during animation (including interpolated array values). Tween will modify the initial interpolation arrays. If `dynamic` is set to false, the object passed in will be copied and will never be modified, but in this case it is not possible to modify the object values dynamically during animation.

The breaking change is that, when dynamic is false, Tween makes a non-inheriting hard copy of the object passed into `to()` instead of making an prototypal "copy" that inherits values from the original object.

The reason for this breaking change is that now things are consistent: when `dynamic` is set to `false` (the default) no object passed into `Tween.to()` will ever be modified AND those objects can never be used for dynamic updates (whereas before, objects could be dynamic, but arrays were not). Likewise, when `dynamic` is `true`, then both objects and arrays can be modified on the outside and Tween will animate based on those changes.
2020-10-24 17:23:40 -07:00
Joe Pea
419765bc83 update contributor guide and publish scripts 2020-10-18 14:45:19 -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
9ec60444aa Merge branch 'nestedObject' into nested-objects
* nestedObject:
  grammar
  adding tween nested object
2020-05-31 09:38:51 -07:00
weiserhei
a3975fe4ee
Remove faulty semicolon
Removing the faulty semicolon again, as this code just doesnt work with it. Users copy-n-paste this code and have to debug 😿 

See https://github.com/tweenjs/tween.js/pull/415 and this PR which re-added the semicolon: https://github.com/tweenjs/tween.js/pull/427
2019-08-19 19:09:33 +02:00
Michael Casebolt
3a1206f9d0
Merge branch 'master' into patch-1 2019-05-27 15:10:52 -07:00
Michael Casebolt
9f5fd074c2 docs: Add documentation for onRepeat in the user guide 2019-05-27 14:06:17 -07:00
Michael Casebolt
750c95593f
Merge branch 'master' into patch-1 2019-05-26 16:21:14 -07:00
Michael Casebolt
9e7572fda2
Merge branch 'master' into patch-1 2019-05-25 20:26:28 -07:00
Michael Casebolt
0a36274134
fix broken link 2019-05-25 20:23:46 -07:00
Michael Casebolt
a48e3053b8
Merge branch 'master' into mikebolt-patch-3 2019-01-14 11:36:00 -08:00
Michael Casebolt
8158e2be62
Add the repeatDelay section. 2019-01-10 22:10:54 -08:00
Michael Casebolt
fcf22260c1
Clarify when the onStart callback is called. 2019-01-10 21:58:49 -08:00
Tyler Larson
cb617c3587
grammar 2018-09-26 10:17:58 -04:00
Tyler Larson
cb31671155
Merge branch 'master' into nestedObject 2018-09-26 10:15:51 -04:00
Matthew Harris
c36aed8f45
user_guide.md - fixed typos and tweaked intro
spotted a spelling mistake, then fixed a few other issues, then tweaked the intro as there aren't any gaps or TODO sections in the docs any more.
2018-09-24 13:44:39 +07:00
蔳莼菂䒕黃苽
f222d280e7
missed a 'r' 2018-07-27 21:03:50 +08:00
weiserhei
44f3aa5637
Remove faulty semicolon from code in readme
This semicolon prevents this code from working for me in Firefox, you might want to remove it.
2018-05-22 01:47:21 +02:00
zhaoqize
70ec8cefe3 zh-CN version 2018-02-01 19:40:51 +08:00
Jeremy Tuloup
9f8eefa780 Fix link to the unit tests file in the user guide 2017-10-16 01:16:25 +02:00
Tyler Larson
d337166b3b adding tween nested object 2017-08-30 15:16:09 -04:00
Michael Casebolt
7d55f2af7f Correct user_guide.md 2017-07-27 11:33:38 -07:00
Michael Casebolt
1cef6ec51e Merge Group code. 2017-07-14 16:36:51 -07:00
Alex Burner
eb3e0a74eb Add docs for TWEEN.Group 2017-07-04 22:42:17 -07:00
Andreas Plesch
2418d7c3d5 [doc] clarify repeat behaviour 2017-07-04 15:24:56 -04:00
Michael Casebolt
4086b74f99 Add warning note about the chain method. 2017-06-15 13:10:29 -07:00
sole
ae8c25d12f Added note on where to get tokens from for npm and github. 2017-05-30 11:34:24 +01:00
sole
a4336dd468 docs: start contributor guide, document tests, continuous integration, how releases are made, semantic-release and travis. Closes #328 2017-05-30 11:34:24 +01:00
Michael Casebolt
624226ad26 Merge branch 'master' of https://github.com/fyyyyy/tween.js into callback-objects
Conflicts:
	src/Tween.js
2016-10-23 00:41:36 -07:00
thednp
dda03a277e Update user_guide.md
As explained <a href="https://github.com/tweenjs/tween.js/issues/153#issuecomment-143296203">here</a>, the `chain` method can also manage multiple tweens.
2015-10-25 06:48:52 +02:00
sole
09a72c3607 Merge pull request #182 from JoshuaSP/master
fix link to 04_simplest example
2015-09-29 22:38:51 +01:00
sole
42387a9466 docs: provide correct, non misleading usage of the onStart callback. Also clarify a bit the onStop paragraph. 2015-09-29 22:05:41 +01:00
Oli Evans
0159c29fa3 Fix user guide code example
One fewer semicolons in the world
:squirrel:
2015-08-18 12:25:22 +01:00
Joshua Penman
ffbb43b2fc fix link to 04_simplest example 2015-01-20 16:47:10 -08:00