Commit Graph

193 Commits

Author SHA1 Message Date
James Chen f23e5991fd Refactor 2d assembler (#17659)
* Refactor 2d assembler
2025-02-14 16:10:56 +08:00
James Chen a02ff06c19 UIRenderer.updateMaterial should not be marked as (#18320) 2025-02-12 10:46:05 +08:00
James Chen b7cc23d0ce Add support for rotational skew. (#18307)
Rotational Skew is also supported in Cocos2D-X.
See https://github.com/cocos2d/cocos2d-x/blob/v4/cocos/2d/CCNode.h#L638
2025-02-11 10:21:21 +08:00
James Chen cf945088ca Add more feature cropping settings for RichText, Mask, Graphics, UISkew, AffineTransform. (#18284)
* Add more feature cropping settings for RichText, Mask, Graphics, UISkew, AffineTransform.
2025-02-10 11:40:01 +08:00
James Chen 78b61b200c Fix wrong position and rectangle border of gizmo in editor. (#18280)
* Fix wrong position and rectangle border of gizmo in editor.
* Rename getParentWorldMatrixNoSkew to findSkewAndGetOriginalWorldMatrix.
2025-02-06 17:04:16 +08:00
James Chen 85c28aab1c Optimize code size: mark more properties as mangled. (#18265) 2025-02-05 15:55:30 +08:00
James Chen de0a107e69 Optimize code size by adding an internal API UIRenderer._markForUpdateRenderData (#18253)
* Optimize code size by adding an internal API UIRenderer._markForUpdateRenderData

* fix

* Add comments for why adding the internal method _markForUpdateRenderData

* Update graphics.ts

* Update comments in ui-mesh-renderer.ts too.
2025-02-05 14:16:17 +08:00
James Chen 1f6748026f Optimize code size for 2d module. (#18239) 2025-01-23 09:21:58 +08:00
James Chen aa841bd7f7 [v3.8.6] [2D Skew comes back] Add UISkew component support. (#18212) 2025-01-22 16:38:56 +08:00
James Chen 36d3d58268 [v3.8.6] Fix 'as any' in ui-component.ts which will lost type for UIComponent (#18218) 2025-01-21 10:35:08 +08:00
James Chen 835119f771 [v3.8.6] Mangle more static properties by configuration. (#18205) 2025-01-17 14:06:02 +08:00
James Chen a107d84826 [v3.8.6] Inline enum for particle 3d module. (#18193)
* [v3.8.6] Inline enum for particle 3d module.
* Fix a compilation error in shape-module.ts
2025-01-15 14:21:32 +08:00
James Chen 67a0736410 [v3.8.6] Optimize code size: Add an internal method ( Node.getUITransformComp ) which could be mangled to avoid invoking the code ._uiProps.uiTransformComp that could not be mangled. (#18165)
* [v3.8.6] Optimize code size: Add an internal Node.getUITransformComponent which could be mangled to avoid invoking the code `._uiProps.uiTransformComp` that could not be mangled.
2025-01-13 09:58:56 +08:00
GengineJS 08b5221e12 Fix the UI error issues caused by adjustments to the batching and splitting of UI elements. (#18052) 2024-12-25 10:45:46 +08:00
James Chen 32bf693992 Revert "Fix the issue where UI batching breaks under specific conditions. (#1…" (#18051)
This reverts commit 4eb1074833.
2024-12-18 11:03:22 +08:00
GengineJS 4eb1074833 Fix the issue where UI batching breaks under specific conditions. (#17900)
* Fix the issue where UI batching breaks under specific conditions.
2024-11-22 09:05:21 +08:00
Knox eac044e4fc Fix editor preview, canvas component calculates Camera invalidly (#17856) 2024-11-18 09:44:39 +08:00
Knox 43f16f1ded refine rich text and other i18n (#17802)
* refine rich text and other i18n
2024-11-04 16:04:20 +08:00
James Chen e77c0be21a [v3.8.5] cclegacy.xxx invocations should be converted to relevant type which will help refactoring and error reporting. (#17753)
* [v3.8.5] cclegacy.xxx invocations should be converted to relevant type which will help refactoring and error reporting.

* Update model.ts and pipeline-scene-data.ts

* Update @engineInternal comments.
2024-10-31 09:53:41 +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
qiuguohua 3e78462642 Canvas listens to design resolution changes (#17633)
Co-authored-by: qgh <>
2024-09-13 14:50:35 +08:00
James Chen 32727868b0 Reduce the generated javascript code size (#17491) 2024-08-06 18:14:44 +08:00
qiuguohua 6f630de1d1 Get the length of _dirtyRenderers directly (#17401)
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2024-07-23 11:35:25 +08:00
qiuguohua 0af983ca86 Listen for changes to the canvas (#17350)
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2024-07-11 10:09:56 +08:00
James Chen 96a1b61976 Fix an error of mesh.renderingSubMeshes is undefined (#16539)
* Fix an error of mesh.renderingSubMeshes is undefined

* Update renderingSubMeshes checking logic
2023-11-27 14:44:22 +08:00
Leslie Leigh (李的序) 3781d34b34 Label component inspector localization (#16234)
* Label component inspector localization

* Update editor/i18n/zh/modules/ui.js

* Update
2023-10-11 14:47:54 +08:00
ChiaNing f4a7b95767 fix sprite world matrix update bug (#15978)
* fix sprite world matrix  update bug

* fix by flag Changed Version

* add test

* CI & more test
2023-08-18 14:32:30 +08:00
pandamicro 9b08b34a2b Replace Renderer setMaterial with setSharedMaterial (#15980)
* Replace Renderer setMaterial with setSharedMaterial

* Fix all usage of Renderer.setMaterial

* Soft deprecate Renderer.setMaterial

* Remove unnecessary change
2023-08-17 13:15:21 +08:00
Jiujiang Liu f55abfa949 remove _fitDesignResolution function call in EVENT_AFTER_UPDATE (#15802)
* fix can't adjust the 2D camera in editor

* simple code

* update function name

* remove unused import function

* use anchorX

* update code
2023-08-09 10:05:39 +08:00
minggo 802a1f0959 Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
Conflicts:
	cocos/core/utils/x-deprecated.ts
	cocos/physics/bullet/instantiated.ts
	cocos/physics/framework/components/character-controllers/character-controller.ts
	cocos/render-scene/scene/shadows.ts
	cocos/rendering/render-shadow-map-batched-queue.ts
	cocos/spine/lib/instantiated.ts
	cocos/spine/lib/spine-define.ts
	cocos/spine/skeleton.ts
	native/cocos/editor-support/spine-wasm/AtlasAttachmentLoaderExtension.cpp
	native/cocos/editor-support/spine-wasm/spine-skeleton-instance.cpp
	native/cocos/editor-support/spine-wasm/spine-skeleton-instance.h
	native/cocos/editor-support/spine-wasm/spine-type-export.cpp
	native/cocos/editor-support/spine-wasm/spine-wasm.cpp
	native/external-config.json
2023-07-12 16:02:10 +08:00
ChiaNing 8d235204de add renderRoot2d help (#15644) 2023-07-07 12:01:58 +08:00
PP b8a96f0080 fix type in debug.ts (#15426)
* fix type in debug.ts
2023-06-14 11:33:00 +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
pandamicro c8d3be08a3 Fix issues in Node.updateWorldTransform and UITransform.getBoundingBoxTo[World] (#15273)
* Fix transform update issue when only rotation is set to root node

* Fix UITransform.getBoundingBoxTo and UITransform.getBoundingBoxToWorld

* Improve API and test

* Fix native Node::updateWorldTransform

* Fix UITransform.getBoundingBoxTo

* Fix getBoundingBoxTo by ensuring one time rect transform

* Ignore zero sized rect for bounding box calculation

* Improve API doc
2023-06-07 11:10:28 +08:00
minggo a22d16bbe6 Merge branch 'v3.7.3' into merge_v3.7.3 2023-04-24 11:26:58 +08:00
zxx43 fbbdab53a4 use getSharedMaterial to replace getMaterial (#14814)
* use getSharedMaterial to replace getMaterial

* call getSharedMaterial directly

* modify note
2023-04-19 11:07:46 +08:00
ChiaNing 36750fb4b2 spriteRenderer sort bug (#14785) 2023-04-18 10:19:02 +08:00
黄森斌 eefa3401ea fix bug: some enum props of material show error interface (#14767) 2023-04-13 16:39:46 +08:00
ChiaNing 281bf038ea remove blendFactor deprecated in UIRenderer (#14777) 2023-04-11 19:14:54 +08:00
minggo 60fa48ba7c make UIRenderer._srcBlendFactor protected (#14685)
* make UIRenderer._srcBlendFactor public
2023-03-30 14:44:12 +08:00
minggo 37f89f4cb0 make UIRenderer._renderData as protected (#14677)
* make UIRenderer._renderData as public
2023-03-29 11:07:13 +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 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
santy-wang 0a81bf445e Merge branch 'develop' of github.com:cocos-creator/engine into v3.7.2 2023-03-13 16:51:47 +08:00
PP 386ec2895a [cherry-pick] AOT-3: optimize uinstrict code (#14315) (#14523)
* AOT: optimize uinstrict code

- mark some unstrict code as TODO
- remove some unstrict code

* update comment

* remove ts-check
# Conflicts:
#	cocos/2d/framework/deprecated.ts
#	cocos/asset/assets/image-asset.jsb.ts
#	cocos/asset/assets/texture-base.ts
#	cocos/core/assets/image-asset.ts
#	cocos/core/math/rect.ts
#	cocos/core/scene-graph/scene-globals.jsb.ts
#	cocos/native-binding/impl.ts
#	cocos/scene-graph/node-dev.ts
#	cocos/scene-graph/scene-globals.ts
#	exports/sorting.ts
2023-03-10 13:36:45 +08:00
ChiaNing 82f11e00a1 update ui vb when renderFlag change by color (#14405) 2023-03-01 17:50:15 +08:00
王凯鹏 ecaafc853d [Bug] fix tween color cause console error in editor preview (#14412)
* [Bug]fix tween color console error in editor preview

* [Bug] 调整修改方式
2023-03-01 14:42:58 +08:00
ChiaNing b603baae23 Improve api doc (2d&UI) (#13898)
* Improve api doc (2d&UI)

* remove @internal

* msic

* remove eracut

* update doc

* Update

* fix

* misc
2023-02-08 14:25:48 +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
ChiaNing 3d3847f2d9 fix ui transform recursion bug (#13848) 2022-12-19 16:14:34 +08:00