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
a3a6cc692c
Optimize code size for text-processing.ts ( #18263 )
2025-02-05 15:26:15 +08:00
James Chen
6409fdcbea
Optimize code size for sprite/sliced.ts, mesh-buffer.ts, scene/camera.ts ( #18273 )
2025-02-05 14:30:00 +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
sunxunle
1524ae1db2
chore: remove redundant words ( #18215 )
...
Signed-off-by: sunxunle <sunxunle@ampere.tech >
2025-01-22 15:27:32 +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
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
James Chen
13888fc2be
fixed #18139 : Bug: [Scene] frame should not be invalid, it may have been released. ( #18144 )
2025-01-10 16:49:04 +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
2230501562
[v3.8.6] Fix some type issues. ( #18145 )
2025-01-09 13:42:24 +08:00
NorhsArk
547469ab34
Enhancing the assembler code scalability for sprite and label. ( #18017 )
2025-01-08 13:39:49 +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
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
James Chen
32727868b0
Reduce the generated javascript code size ( #17491 )
2024-08-06 18:14:44 +08:00
yoki0805
b24bfc41fa
Reduce the frequency of looking up matrix elements within the loop, and reduce the division operations for color setup ( #17473 )
...
* Optimize 2d assembler
Reduce the frequency of looking up matrix elements within the loop.
* Reduce division operations for color
Reduce division operations for color.
2024-08-01 14:38:48 +08:00
James Chen
ff41269aff
[native] Fix a memory leak while changing label ( CacheMode: NONE) text. ( #17177 )
2024-06-19 11:37:23 +08:00
qiuguohua
580ffc3d81
Fix the problem that colorDirty of bmfont on web platform doesn't work. ( #17037 )
...
Co-authored-by: qiuguohua <guohua.qiu@cocos.com >
2024-05-23 17:10:43 +08:00
qiuguohua
596f3925dd
Fix the problem of not displaying after resize buffer ( #16854 )
...
Co-authored-by: qgh <>
2024-04-02 15:27:21 +08:00
qiuguohua
afa8e1313c
support char mode emoji and multibyte emoji like 👨👩👧👦 ( #16738 )
...
* support char mode emoji and multibyte emoji like 👨👩👧👦
https://github.com/cocos/cocos-engine/issues/15192
* 1. Optimize character expression processing
2. Add unit test
---------
Co-authored-by: ankye <shengxiehua@gmail.com >
Co-authored-by: qiuguohua <guohua.qiu@cocos.com >
2024-03-04 09:48:42 +08:00
ankye sheng
c900e93951
bug fixed label Problems with using stroke and shadow ( #16673 )
...
* bug fixed label Problems with using stroke and shadow
https://github.com/cocos/cocos-engine/issues/16666
* fixed only shadow filltext twice
* Remove useless code
2024-01-23 09:45:47 +08:00
qiuguohua
d4669f12dd
Fix chunk as null causing editor exception. ( #16686 )
...
* Fix chunk as null causing editor exception.
* Add a judgment at the very beginning of the function
* Remove redundant judgments
* Add security judgment for icount
* Modify the conditions of the judgment
---------
Co-authored-by: qiuguohua <guohua.qiu@cocos.com >
2024-01-12 18:11:42 +08:00
James Chen
118e50c8e8
Merge branch 'v3.8.2' of https://github.com/cocos/cocos-engine into v3.8.3
...
# Conflicts:
# package-lock.json
# package.json
2024-01-11 09:45:44 +08:00
qiuguohua
ee3bbcf48c
Fix the problem that bmfont font opacity is invalid. ( #16670 )
...
* Fix the problem that bmfont font opacity is invalid.
* Add comment
---------
Co-authored-by: qiuguohua <guohua.qiu@cocos.com >
2024-01-10 14:31:04 +08:00
qiuguohua
a5d091cb57
Fixed an issue where fntConfig may be null and report an error. ( #16618 )
...
Co-authored-by: qiuguohua <guohua.qiu@cocos.com >
2023-12-19 09:56:33 +08:00
Knox
d3b6a62aad
Fix label outline error causing ineffective outline. ( #16583 )
2023-12-08 17:26:50 +08:00
ChiaNing
d2d7623e9d
Integration of outline and shadow to label ( #16106 )
...
* Integration of outline and shadow to label
* add test
* change getter/setter
* name change & use assert
* test name change
* name change
* fix
* remove old attribute & add visible
* remove assert
* fix: gulp-build-h5-source
* Revert "fix: gulp-build-h5-source"
---------
Co-authored-by: PP_Pro <chinese1236@qq.com >
2023-09-20 11:14:42 +08:00
Santy-Wang
daa4a4ffbc
remove unnecessary code ( #15687 )
...
* Revert "Revert "remove useless code (#15682 )" (#15683 )"
This reverts commit b318b39eb9 .
* fix lint
* Revert "fix lint"
This reverts commit 269acd1715a93d59f61286d336afa9a03f07f805.
* revert some change
* fix lint
2023-08-18 14:40:26 +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
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
Santy-Wang
b318b39eb9
Revert "remove useless code ( #15682 )" ( #15683 )
...
This reverts commit 9f035047c7 .
2023-07-11 20:50:41 +08:00
Santy-Wang
9f035047c7
remove useless code ( #15682 )
2023-07-11 20:42:46 +08:00
ChiaNing
7f201a0ca3
fix label Precision ( #15594 )
2023-07-03 17:40:14 +08:00
minggo
7ef995b655
Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
...
Conflicts:
cocos/3d/lights/spot-light-component.ts
cocos/animation/event/event-emitter.ts
cocos/physics-2d/box2d/physics-contact.ts
cocos/physics-2d/box2d/physics-world.ts
cocos/physics-2d/box2d/platform/physics-contact-listener.ts
cocos/physics-2d/builtin/builtin-world.ts
cocos/physics/framework/components/constraints/configurable-constraint.ts
cocos/spine/assembler/simple.ts
cocos/spine/skeleton.ts
native/cocos/editor-support/spine-wasm/spine-model.cpp
native/cocos/editor-support/spine-wasm/spine-model.h
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/external-config.json
2023-07-03 15:25:13 +08:00
ChiaNing
8e5ea9342c
fix label limit canvas size bug ( #15514 )
...
* fix label limit canvas size bug
* limit recursion time
* fix
* fix
* move
* change
* change
* name change
2023-06-29 18:58:04 +08:00
minggo
e7c5b34e18
Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
...
Conflicts:
cocos/2d/assembler/label/text-processing.ts
cocos/physics/bullet/instantiated.ts
cocos/profiler/profiler.ts
cocos/rendering/custom/executor.ts
cocos/rendering/custom/index.ts
cocos/rendering/custom/web-pipeline.ts
cocos/rendering/pipeline-scene-data.ts
cocos/root.ts
cocos/spine/assembler/simple.ts
cocos/spine/lib/instantiated.ts
cocos/spine/lib/spine-define.ts
cocos/spine/skeleton.ts
2023-06-27 13:35:35 +08:00
ChiaNing
202e50ec55
fix bmfont render bug ( #15510 )
...
* fix bmfont render bug
* fix
2023-06-21 17:05:57 +08:00
ChiaNing
5edc55140d
Fix Android text truncation problem ( #15448 )
...
* Fix Android text truncation problem
* fix calculation bias
* move
* limit android
* Revert "limit android "
This reverts commit 12dfcd0b3ed82be0cf3cf16340859bfd444166d8.
* Revert "Revert "limit android ""
This reverts commit 2aaf4162ada7850672c532098e530636e593642f.
* remove round
* fix
2023-06-19 17:55:57 +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
ChiaNing
a88cdecadf
limit font scale to 1 ( #15367 )
...
* limit font scale to 1
* to fix 1
* move
2023-06-08 17:48:48 +08:00
ChiaNing
58299f0ef4
fix label auto Atlas bug ( #15356 )
2023-06-07 18:40:20 +08:00
May2nd
d962a3d374
- fix memory leak on tiled resized ( #15212 )
...
Co-authored-by: Viet <>
2023-06-07 18:18:38 +08:00
ChiaNing
2862b75391
fix bm font anchor bug ( #15353 )
2023-06-07 14:56:08 +08:00
ChiaNing
eb94bbaefe
fix font scale limit bug ( #15342 )
...
* fix font scale limit bug
* name change
2023-06-07 10:39:56 +08:00
ChiaNing
7b60d75daa
HD processing of ttf mode labels ( #15206 )
...
* Adding ttf is affected by dpr
* Adding Char mode is affected by dpr
* move dpr to style
* rebase & add max font size
* name change
* remove use less
* misc
2023-06-05 18:14:22 +08:00
ChiaNing
0796fb1e3d
Text Processing Refactoring ( #14739 )
...
* text processing file add
* processing String
* render & effect
* bmfont add
* char mode add
* code collate
* use less remove
* after rebase and change Sync
* add data class
* fix bm font clamp bug
* fix bitmap mode
* fix ci
* fix misc
* fix ci
* remove some code
* remove data class
* name change
* bug fix
2023-05-25 11:56:45 +08:00
minggo
a22d16bbe6
Merge branch 'v3.7.3' into merge_v3.7.3
2023-04-24 11:26:58 +08:00
May2nd
78b1fbfa83
- fix bmfont kerning scale ( #14776 )
...
Co-authored-by: Viet <>
2023-04-12 13:49:03 +08:00
minggo
60fa48ba7c
make UIRenderer._srcBlendFactor protected ( #14685 )
...
* make UIRenderer._srcBlendFactor public
2023-03-30 14:44:12 +08:00