Commit Graph

207 Commits

Author SHA1 Message Date
santy-wang 91c884362d Merge branch 'v3.6.2' of github.com:cocos-creator/engine into v3.6.1-sync 2022-10-11 20:12:14 +08:00
minggo 95a76235b6 Adjust some files (#12910)
`cocos/core` should not depend other modules, so move some files out of `cocos/core`:
- move some files from `cocos/core` to `cocos/game`
  - director.ts
  - splash-screen.ts
  - game.ts
 - move `cocos/core/root.ts` to `cocos/root.ts` as there is not better module to contain `root.ts`.
 - move `cocos/core/platform/view.ts` to `cocos/ui/view.ts` as screen related logic is moved to `cocos/core/platform/screen.ts`
2022-09-28 09:34:35 +08:00
minggo 0d7c5c8f56 move cocos/core/scene-graph to cocos/scene-graph (#12868)
* move `cocos/core/scene-graph` to `cocos/scene-graph`
* move some files in `cocos/core/components` to `cocos/scene-graph`:
  - component.ts
  - component-event-handler.ts
  - component-event-handler-schema.ts
* move some files in `cocos/core/components` to `cocos/misc`: 
  - missing-script.ts
  - model-renderer.ts
  - renderer.ts
  - camera-component.ts
* move  `cocos/core/components/system.ts` to ``cocos/core/system.ts``
2022-09-26 11:02:22 +08:00
pandamicro 9f89b0ef24 New module division (#5285)
* Temp

* temp

* move ui core

* Arrange ui and terrain

* Fix import path for all modules except core

* Move primitives into core

* Fix debug.getError

* Move audio-downloader to audio module

* export game from game.ts

* Migrate load-pipeline to ts

* Fix core modules and cleanup

* Move animation into core

* Fix module exports

* Fix director issue

* Remove most cc.director usage

* Fix ts issues

* Fix issues for unit test and editor running

* Revert removing deprecated import

* tweaks

* tweaks

* Fix ci

* Fix ci

* Add modules in module division

* Upgrade coordinates-converts-utils
2019-08-30 11:35:22 +08:00
Yun Hsiao Wu b893dfce67 share frame ID UBO across sub skinning models (#5269)
* fix batcher

* misc perf opt

* share frame ID UBO across sub skinning models

* suppress type error
2019-08-28 22:32:51 -05:00
Weiliang Wang 595680aa70 fix node layer data (#5254)
* add transformAffine()

* remove duplicate code

* fix layer data of node
2019-08-26 21:34:53 -05:00
Weiliang Wang 981a381295 use node.layer for visibility test (#5251)
* add transformAffine()

* remove duplicate code

* use node.layer for visibility test
2019-08-26 05:16:08 -05:00
Yun Hsiao Wu ca0cbd9bdb fix node set world scale (#5245) 2019-08-26 00:57:57 -05:00
ChiaNing 7d872ad7d0 api doc modify (#5239) 2019-08-23 17:38:57 +08:00
Weiliang Wang a492f59b17 modify visibility test (#5226)
* add transformAffine()

* modify visibility test

* remove duplicate code
2019-08-22 05:48:40 -05:00
JoneLau 96fa98da8b adjust eventtouch (#5189) 2019-08-21 14:09:02 +08:00
Yun Hsiao Wu ff19a901c1 refine details (#5164)
* effect adapt

* restore tslint

* refine math constants
2019-08-15 21:52:32 -05:00
jiaxin.lai 274baef85d remove deprecatedWrapper && add customGetter/Setter (#5149) 2019-08-13 00:40:11 -05:00
Yun Hsiao Wu 517f9af36e fix anim comp duration & node setWorldScale (#5150)
* fix anim clip speed & duration

* fix setWorldScale
2019-08-13 00:38:17 -05:00
Yun Hsiao Wu ef1d274ac7 calc world transform using matrix for skeletal animation (#5139) 2019-08-12 04:29:21 -05:00
pandamicro 02b9da42a6 Fix sibling index update (#5142)
* Fix children count deprecation

* Remove _localZOrder

* Fix sibling index update
2019-08-09 19:54:33 +08:00
pandamicro 8367e8b036 Fix EventManager listener order issue (#5127)
* Remove useless base node apis to reduce properties

* Add BaseNode _siblingIndex to avoid indexOf check

* Fix EventManager listener order issue

* Fix  ci

* Fix node removal issue

* Fix siblingIndex for deserialized node
2019-08-09 16:58:45 +08:00
Yun Hsiao Wu 5f651dad6f fix circular ref (#5131)
* fix circular ref

* remove tslint usage
2019-08-08 21:25:54 -05:00
pandamicro cfddd96656 Fix some ts apis (#5108) 2019-08-06 20:11:39 +08:00
jiaxin.lai c6dc5b4ba9 fix haschangedFlags typing error in interface of INode (#5101) 2019-08-06 17:09:06 +08:00
Leslie Leigh 5ff61545b3 fix eventManager (#5103) 2019-08-06 16:32:46 +08:00
Yun Hsiao Wu 75aa882aca refine node & model dirty (#5102) 2019-08-06 16:07:40 +08:00
Yun Hsiao Wu c100ad41e9 fix node dirty bit (#5083) 2019-08-05 14:52:16 +08:00
ChiaNing c31e03e599 divide fix & API add (#5082) 2019-08-05 13:30:37 +08:00
Yun Hsiao Wu b134b8db10 node shearing support & detail improve (#5078)
* joints texture free interface

* better socket interaction

* workaround UBO size align bug

* better socket query

* fix playground

* node transform include shearing now

* finer dirty mechanism for node
2019-08-05 10:13:39 +08:00
Weiliang Wang d9fba5fb8a remove divideScalar() (#5080)
* remove divideScalar()
2019-08-05 10:00:11 +08:00
ChiaNing 9da70cce0b math function add (#5076)
* math function add

* rebase
2019-08-05 09:44:25 +08:00
ChiaNing a3ed39df86 math function abbreviation delete (#5041)
* math funtion abbreviation delete

* magnitude change
2019-08-01 14:25:39 +08:00
ChiaNing c855545cf3 BaseNode cleanup remove (#5011)
* BaseNode cleanup remove

* BaseNode cleanup remove
2019-07-30 15:51:07 +08:00
ChiaNing 4bc2739786 Vmath (#4987)
* Vmath (#4895)

* vmath refactor

* value-type API change

* vmath change update

* conflict fix

* value types change

* translate modify (#4917)

* value types bug fixed (#4940)

* playground update (#4946)

* bug fixed

* bug fixed

* bug fixed

* bug fix

* util modify

* create remove & ccenum rename

* export by cc.math

* Rename value-types to math

* util funtion deprecated warn

* value-types change

* color test fix

* color API change
2019-07-29 11:50:51 +08:00
jiaxin.lai faa7094cf8 add some typing to interface of INode (#4984)
* add some typing to interface of INode

* fix INode childern typing

* add Mutable type, for change Readonly type

* decouple node with ui relative component

* add missed ui component, and decouple node

* add more typing to IBaseNode and INode
2019-07-26 17:56:55 +08:00
pandamicro 1380e46c34 Unittest (#4973)
* unit test for ts

* Fix ts-jest warnings

* Remove puppeteer for now

* fix physics define and jest config for windows

* Replace Node ref with INode ref

* Fix ci issue

* Fix

* tweak

* tweak

* Fix vscode launcher

* now physics framework export all physics component (#28)

* tweaks
2019-07-25 17:15:20 +08:00
Weiliang Wang cdcacebfd2 fix translate() & rotate() bug (#4959)
fix translate() & rotate()
2019-07-24 12:11:24 +08:00
Yun Hsiao Wu 948255083c UI vertex calc opt 2019-07-24 10:17:58 +08:00
yinkaile 4837a6a0b0 Revert "refine node.updateWorldTransform" (#4931)
This reverts commit 654e850409950651ee49286060794df78ca2edf7.
2019-07-21 16:05:27 +08:00
yinkaile 345ee7ed85 3d v1.0.0 (#4929)
* refine node.updateWorldTransform

* refine sprite simple assembler
2019-07-20 16:50:26 +08:00
pandamicro b1ec962a9b Remove reorder logic during walk (#4926)
* Move _uiComp from base-node to node

* Do not reorder during walk, reorder within ui component

* tweaks
2019-07-20 16:06:58 +08:00
pandamicro 2763dfc060 Remove 'for of' for array and add node._uiComp for caching (#4923) 2019-07-20 14:17:46 +08:00
ChiaNing 634aefb50f EventManger update (#4919) 2019-07-20 11:23:11 +08:00
Weiliang Wang f189f9fc00 remove fuzzy comparison of floating uniform (#4871)
* remove fuzzy comparison of floating uniform

* remove constget import
2019-07-12 14:46:56 +08:00
Weiliang Wang f3f4745d80 remove @constget (#4860) 2019-07-11 11:13:15 +08:00
JoneLau 6b1b79cc12 replace example (#4846) 2019-07-09 18:10:37 +08:00
ChiaNing 00c904d6cb api-doc modfiy (#4803) 2019-07-03 16:07:49 +08:00
pandamicro ec9e639293 Refactor valuetypes (#4798)
* Some value-types change

* value-type change

* Refactor valuetypes
2019-07-03 09:31:43 +08:00
Yun Hsiao Wu b995626f0c missing sampler & circular ref issue (#4787)
* fix missing sampler issue

* fix references
2019-07-02 11:18:22 +08:00
JoneLau 87036c4660 add constget to the valuetype in the component (link: 4733) (#4769) 2019-07-01 18:24:28 +08:00
JoneLau 5d37db9868 cancel check dependency and change it to the editor to manipulate the data in redo undo (#4770) 2019-07-01 18:23:56 +08:00
Yun Hsiao Wu a24c149a33 misc fixes (#4771)
* comments on mat quat conversion

* fix IBL update

* misc ccclass fixes
2019-07-01 16:39:03 +08:00
JoneLau 261f6a15c4 remove eventlistener in node being destroyed (#4752) 2019-07-01 09:36:38 +08:00
ChiaNing 9b3858a3e7 API-Doc format modify (#4761) 2019-07-01 09:33:24 +08:00