Commit Graph

451 Commits

Author SHA1 Message Date
James Chen 70d53ac9ca issue #18056: [v3.8.6] Support to mangle private properties. (#18087) 2024-12-27 18:54:22 +08:00
James Chen be8fefa217 [v3.8.6] Fix toString for math types (#18060) 2024-12-24 09:28:40 +08:00
minggo 52af1141b7 Merge pull request #18003 from cocos/v3.8.5
V3.8.5
2024-12-05 11:04:27 +08:00
James Chen 0ec0ec3597 fixed #18000: [v3.8.5][bug] Nested tween with different target in parallel action could not work correctly. (#18001)
* fixed #18000: [v3.8.5][bug] Nested tween with different target in parallel action could not work correctly.

* Update action-interval.ts

* Reset the length of the temporary action array to zero after being used.
2024-12-05 09:17:16 +08:00
James Chen f0f2b7e411 Merge branch 'v3.8.5' into v3.8.6
# Conflicts:
#	cocos/gfx/webgl/webgl-swapchain.ts
2024-11-25 15:55:20 +08:00
James Chen 42384e20f1 385 revert $ (#17912)
* Remove dollar suffix for private property definition.

* (\._[a-z][a-zA-Z0-9]{3,})\$ to \1

* (protected _[a-z][a-zA-Z0-9]{3,})\$ and (public _[a-z][a-zA-Z0-9]{3,})\$ to \1

* ( _[a-z][a-zA-Z0-9]{3,})\$([^0-9]) to \1\2

* Remove $ suffix manually for gfx-webgl backend.

* (public [a-z][a-zA-Z0-9]{3,})\$ to \1

* (\.[a-z][a-zA-Z0-9]{3,})\$ to \1


* Remove mangle hack.
2024-11-25 13:47:56 +08:00
James Chen 667005fe44 [v3.8.6] Continue to remove unused platforms support. (#17902)
* Continue to remove unused platforms support.
2024-11-22 10:30:47 +08:00
James Chen 21e6d0c47e fixed #17833: [v3.8.5] Add an ability to load wasm/asmjs module manually (#17844) 2024-11-13 17:17:38 +08:00
James Chen d9daaae301 [v3.8.5] Remove unused exports/wait-for-ammon-instantiation.ts (#17834) 2024-11-12 18:21:46 +08:00
minggo 3046336575 revert Node setter behavior as v3.8.3 (#17754)
* revert Node setter behavior as v3.8.3

* update snap file
2024-10-22 09:32:20 +08:00
hyde zhou 408425c59e fix sampler info packing (#17726) 2024-10-16 15:38:57 +08:00
James Chen f4ccf3a8bb [v3.8.5] Support inline enum and mangle private variables to reduce engine size. (#17703) 2024-10-15 10:17:16 +08:00
James Chen 11f3bef63a fixed #17606: node.setWorldScale(0, 0, 0) causes NaN issue in scale and worldMatrix properties (#17607) 2024-09-13 17:06:41 +08:00
minggo 1ad692caa5 remove wrong commennt (#17610) 2024-09-06 15:13:09 +08:00
Knox 53ac71d5ea Improved min and max modifiers, support for func (#17522)
* Improved min and max modifiers, support for functio

* add min and max test

---------

Co-authored-by: cocos <cocos@cocosdeMacBook-Pro.local>
2024-08-14 11:09:31 +08:00
hyde zhou 8106f8677d add legacy-pipeline culling (#17260) 2024-07-29 16:45:31 +08:00
WingStone 6f7c011942 typo fixed (#17253) 2024-07-19 16:40:12 +08:00
James Chen 08d95c5ea4 Add a tween unit test that parallel with two call tweens (#17357) 2024-07-12 08:29:05 +08:00
James Chen b029f9a99a fixed #17207: Add Tween.updateUntil low-level tween API (#17254) 2024-07-02 10:23:47 +08:00
minggo e7f8a9c4ac return correct angle (#17219)
* return correct angle

* fix native implementation

* add test case
2024-06-25 16:22:58 +08:00
James Chen d9bd3c3dc0 [tween] Add bezier / catmullrom support (#17216) 2024-06-25 15:41:15 +08:00
minggo 211337a30c fix logic error when removing an array element in loop (#17215)
* fix logic error when removing an array element in loop
2024-06-25 09:31:38 +08:00
James Chen 61837784c1 Some type renaming in Tween module: TTweenCustomProperty to ITweenCustomProperty since it's an interface, remove T prefix. (#17198) 2024-06-24 11:18:58 +08:00
James Chen d21946f763 [tween] on/off node events in action-manager.ts only when target node is valid. (#17190) 2024-06-20 10:30:30 +08:00
James Chen e9d3e8dd08 Add tween.running getter and use it in the new added unit tests for tween.stopAll (#17193)
* Add tween.running getter and use it in the new added unit tests for tween.stopAll

* Add comment for running getter

* Add Tween.getRunningCount static method
2024-06-20 09:55:03 +08:00
James Chen 0115af0866 fixed #17186: [bug] Tween property type was changed to plain object (#17188) 2024-06-19 17:50:05 +08:00
James Chen 58ceb5ffe0 fixed #17110: [tween] Support to tween string and customize 'progress' for object. (#17154) 2024-06-17 11:34:42 +08:00
James Chen 35877f4765 [tween] Add missing types for custom progress or easing in props. (#17140) 2024-06-14 14:55:56 +08:00
James Chen e2a6d51fd3 [tween] fixed #3d-tasks/issues/9430: Automatic pause and resume Node tweens when Node active changes (#17141)
* fixed #3d-tasks/issues/9430: Automatic pause and resume Node tweens when Node active changes

* Fix Tween.clone()

* More unittest for tween.

* Fix comment in action-manager.ts

* Remove unused ActionManager.purgeSharedManager.

* Add more unit test for tween.

* Fix error TS2322: Type 'Tween<T | NonNullable<U>>' is not assignable to type 'Tween<T | U>'. Types of property 'to' are incompatible.

* Add Tween.getTarget()
2024-06-14 13:44:33 +08:00
James Chen 8e7aa0fdb1 [v3.8.5] Fix timeScale could not work for repeatForever. (#17118)
* Don't step if speed is 0.

* Fix timeScale could not work for repeatForever.

* RepeatForever's duration is Infinity.

* Add unit test.

* Add timeScale(0) test
2024-06-07 17:47:31 +08:00
James Chen fd47685c86 Merge Tween.startAt(time) and Tween.start() to Tween.start(time) , and don't export the internal option ITweenOption.relative. (#17115) 2024-06-07 10:31:00 +08:00
James Chen 06a6ae65b7 Add Tween.startAt(time) API and add more unit test. (#17105) 2024-06-05 14:25:28 +08:00
James Chen 99183fd2e4 Add Tween.update API. (#17099)
* And make ActionInterval.reverse  abstract.
2024-06-04 16:07:12 +08:00
James Chen d0fc74f113 [feature] Add Tween.pause/resume/pauseAllByTarget/resumeAllByTarget method. (#17094)
* Make Action.step/update abstract.

* Add Tween.pause/resume method.

* Add more unit tests for pause/resume/pauseAllByTarget/resumeAllByTarget.

* Add API comments for Tween.pause/resume/pauseAllByTarget/resumeAllByTarget.

* More unit tests for tween.pause/resume.
2024-06-04 14:23:31 +08:00
James Chen 1114b1bd77 Add Tween.timeScale(scale) method and Tween.duration getter (#17088)
* And Fix a repeatForever issue and add more unit test for repeatForever.
2024-06-03 21:14:46 +08:00
James Chen 5a08884c5b Add Tween.reverse and some features for Tween (#17071)
* Add action.setId/getId, Sequence.findAction, Spawn.findAction.

* tween clone needs to consider id

* Add Tween.id() method

* Tween.union  supports to union from a specific action id.

* Add Tween.reverse

* Tween.clone() doesn't have to pass in a target parameter, make it optional.

* Add more unit test
2024-06-03 13:49:49 +08:00
minggo 7b2ffc9eda fix logic error of set world rotation/position/scale (#17079)
* fix logic error of set world rotation/position/scale
2024-06-03 09:51:35 +08:00
minggo 4009668e5d fix color multiply error (#17069)
* fix color multiply error
2024-05-31 10:05:58 +08:00
minggo f993d5e763 use Uint8ClampedArray to save memory (#17047)
* use Uint8ClampedArray to save memory
2024-05-28 14:46:22 +08:00
minggo bc6c2d4d6a Color val delete (#17021)
* remove Color._val, use r, g, b, a instead
2024-05-24 10:18:11 +08:00
James Chen bfeedd3a0d The public method Tween.union() should not update workerTarget. (#17020)
* The public method `Tween.union()` should not update workerTarget.
Add more unit test for tween.

* Revert
2024-05-23 14:29:01 +08:00
James Chen 0a7b11708c [v3.8.5] Support difference targets in sequence and parallel chain (#16979) 2024-05-21 13:54:42 +08:00
minggo e7620a32e4 use array pool instead of shared array (#16988)
* use array pool instead of shared array
shared array will have problem if dispatching and event in a event call back function and the event type is propagationStopped
2024-05-21 13:36:19 +08:00
minggo 6a04c0cea0 Some setter improve (#16959)
* only update position when the value is changed
* update rotation as needed
2024-05-10 10:19:32 +08:00
minggo 28784be4b3 only update scale when the value is changed (#16956) 2024-05-08 18:53:03 +08:00
minggo 80294f7f78 Fix pool shrink (#16941)
* update engine version

* fix shrink logic error
2024-05-06 14:23:45 +08:00
James Chen 4d752400cd Fix divide zero issue in mat4.toSRT which causes node._lrot with NaN values. (#16935) 2024-04-29 11:24:23 +08:00
minggo cde48d1750 add Vec2.toVec3() and Vec3.toVec2() (#16906)
* add Vec2.toVec3() and Vec3.toVec2()
2024-04-17 14:00:59 +08:00
qiuguohua 7d08288e6a Fix the problem that atlas will create an extra one (#16861)
* Fix the problem that atlas will create an extra one

---------

Co-authored-by: qgh <>
2024-04-10 09:28:46 +08:00
minggo bb74373708 Merge pull request #16843 from cocos/v3.8.3
merge v3.8.3 to v3.8.4
2024-03-29 11:40:18 +08:00