Commit Graph

21 Commits

Author SHA1 Message Date
James Chen b0b7dfb953 [v3.8.6] Inline enums for CCObjectFlags. (#18190) 2025-01-17 11:44:07 +08:00
James Chen f4cca397f8 [v3.8.6] Strip jsb-utils.ts (#18161)
* [v3.8.6] Strip jsb-utils.ts
2025-01-15 09:39:12 +08:00
James Chen cc2ff78078 [v3.8.6] Fix some type issues and warnings. (#18147)
* [v3.8.6] Fix some type issues and warnings.

* Continue to fix warnings in instantiate-jit.ts
2025-01-14 10:24:17 +08:00
James Chen 515244bd87 [v3.8.6] Optimize code size by defining Constructor explicitly. (#18119)
* [v3.8.6] Optimize code size by defining Constructor explicitly.
2025-01-13 17:37:45 +08:00
James Chen e400883bd4 [v3.8.6] Use array.forEach instead of for of to optimize code size (#18112) 2025-01-10 14:42:56 +08:00
James Chen 70d53ac9ca issue #18056: [v3.8.6] Support to mangle private properties. (#18087) 2024-12-27 18:54:22 +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 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 32727868b0 Reduce the generated javascript code size (#17491) 2024-08-06 18:14:44 +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
Leslie Leigh (李的序) 592432c70e [Optimize] compiled deserialization related code (#15892)
* Typing compiled deserialize

* Optimize code structure

* Rename

* Tweak

* Tweak

* Update
2023-08-08 18:40:38 +08:00
Leslie Leigh (李的序) ff40e7402e Tweak deserialization code (#15630)
* Tweak deserialization code
2023-07-06 14:34:03 +08:00
PP 4c0f664960 [AOT] add type for AOT engine (#15527)
* fix object

* fix action

* fix type in instantiate.ts

* fix type for NodeEventProcessor

node_event_processor

* fix type in input.ts

* fix particle system

* fix color type

* fix CI

* add tracking issue
2023-06-28 11:24:40 +08:00
PP 491c0cf688 [AOT] fix type for AOT engine (#15526)
* fix type

* fix readonly

fix readonly

* fix get/set type

* fix switch type

* fix eslint

* update

* optimize type in state-machine-eval
2023-06-27 15:56:32 +08:00
PP 509d73b27d merge branch v3.8.0-aot (#15421)
* PR1: add explicit function return type (#15311)

* PR4: add explicit function return type (#15314)

* [ci skip][AUTO]: Automated code generating update: 8843bfe54cd3f8e6f84432948716c8d130ecb233  (#15314) (#15357)

Co-authored-by: cocos-robot <cocos-robot@cocos.com>

* add function return type

* fix version checking

* fix return type

---------

Co-authored-by: Cocos Robot <48829427+cocos-robot@users.noreply.github.com>
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-06-13 18:08:45 +08:00
PP e01ac3ee05 add tracking issue for TODO item (#14638)
* issue 14637

* issue 14640: animation module

* issue 14642: serialize deserialize hack

* issue 7519: pal/image

* issue 14643: dynamic inject

* mark as NOTE

* issue 14644: native only

* issue 7512: pal/fs
2023-03-23 16:42:46 +08:00
PP 3cb698c8aa add more jsb interface info && fix some types (#14628)
* add jsb interface info

* mark TODO

workaround

* fix type

* remove some new ts-expect-error

* fix type in strict mode
2023-03-22 15:22:09 +08:00
PP fa51b804b5 remove and ban @ts-expect-error (#14572)
* remove ts-expect-error usage in engine

* deprecate Scheduler interface

* remove JavaScriptCore

* set some engineInternal public property as getter setter

* fix build-declaration

* fix releaseManager export name conflict

* update scriptEngineType

* fix and update some comment

* remove  w_mat, w_pos, w_rot, w_scale

* update renderer

* fix setRootBufferDirty not binding on native

* optimize floatToHashString

* mark NOTE
2023-03-20 13:48:26 +08:00
pandamicro afd22296b4 MIT license update and to new year 2023 (#13927)
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
minggo 5334b73a7d fix missing exports (#13212) 2022-11-02 11:16:40 +08:00
minggo 2e29bce9c3 Adjust serialization (#13201)
* move serialization related file into cocos/serialization
2022-11-01 17:10:12 +08:00