Commit Graph

13 Commits

Author SHA1 Message Date
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
ChiaNing c5b60cb5be fix export api bug (#14409) 2023-02-28 18:36:47 +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 7294de16f6 Adjust core import (#13230)
* fix import style of core module
* fix decorator usage
2022-11-07 15:01:31 +08:00
Tuan Do Minh 9fd0d64842 Fix word wrap for Vietnamese characters (#10925)
Co-authored-by: tuandm7 <tuandm7@vng.com.vn>
2022-05-14 14:13:37 +08:00
PP a3f997dfda optimize text baseline on runtime platform (#10751)
* optimize text baseline on runtime platform

* move into minigame module
2022-04-14 16:42:40 +08:00
Santy-Wang ab82e1b42d remove hidden (#10414)
* remove hidden

* fix typo

* fix unit-test

* turn on auto fix
2022-03-22 15:11:16 +08:00
Zhang mingzhen 8d0108807e Rich Text Optimization (#9601)
* split long string into short pieces

* Add '\n' toughly, to be optimized.

* Unified offset of rendering label of ttf and bmfont

* remove chinese or redundant explanations

* step1.optimize truncate long string

* step2: add details

* optimization of tough switching line

* 1. add condition if maxWdith is over 2048.
2. add a ErrorOffset to avoid a little characters will overstep these designed lines.

* remove log

* remove rebundant code and rename the method

* resolve bug: complete english words are truncated

* revert "remove annotations"

* Revert "Unified offset of rendering label of ttf and bmfont"

This reverts commit 37d6a57d820ad5be09a90510526e85e8cca77c5a.

* optimize split algorithm

* consider one char step condition (for chinese characters)

* update conditions causing many bugs

* remove rebundant code

* add two optimizations
1. split with '\n' earlier, excute the method less;
2. when the left string size is less than 2048, the method can finish.

* remove annotated code

* resolve confict

* add internal annotation

* replace "internal" by "engineInternal"

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-03-10 16:21:47 +08:00
Zhang mingzhen b2e497adc5 update richtext truncation condition (new) (#10252)
* update richtext truncation condition

(cherry picked from commit 585eab687a039e5e6caa76ac465b4285f3711710)

* remove rebundant condition

(cherry picked from commit a04bef01fbe8ff61ae3aebc1daf8fe5bda2d58cf)

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-03-09 16:09:00 +08:00
pandamicro c6dad8c494 Merge render scene and improve naming for 2d render (#8142)
* format and tweek

* Refactor renderer: UI to 2D naming

* refactor root.ui to root.batcher2D

* Refactor UIBatchView to BatchView2D

* Fix issues

* Merge UI render scene to main render scene

* Improve camera scene check in forward pipeline

* Fix eslint ci

* skip js files
2021-01-15 11:43:09 +08:00
Leslie Leigh (李的序) 9bd9baac12 Eslint autofix all (#8108)
* Eslint autofix all

* Manual fix
2021-01-09 11:41:10 +08:00
JoneLau fc62709146 remove padding display, and fix safeMeasureText code hint (#8012) 2020-12-24 19:23:07 +08:00
Santy-Wang ad4bff3988 Restructure Module (#7968)
* module restructure

* refine

* restructure module

* merge

* revert

* fix ci

* update import path of unit-test

* split 2d and ui

* add more module

* change audio adapter

* rename primitive

* config wechat plugin

* merge

* add category config

* merge

* merge
2020-12-24 19:07:26 +08:00