Commit Graph

123 Commits

Author SHA1 Message Date
PP 4999d0c315 ensure running audio context (#11996) 2022-07-15 10:03:03 +08:00
Santy-Wang ecb8d5f706 Avoid tick multiple times (#11991) 2022-07-14 17:55:50 +08:00
PP d47f220164 fix wechat cc plugin import scriptPackages (#11967) 2022-07-14 15:11:10 +08:00
Santy-Wang dab024b47b fix stop pacer failed (#11835) 2022-07-04 17:24:24 +08:00
Santy-Wang 7bc135e1c7 adjust initialization process (#11143)
* adjust init process

* fix bugs

* restructure

* tweak

* delete useless code

* fix ci

* support more platform and fix some bugs

* mark internal

* tweak

* add docs

* add docs and little adjustment

* fix bugs

* adjust decorator execute order

fix mesh error

* fix bugs

* revert some change

* revert auto-generated code

* revert auto-generated code
2022-07-03 21:16:09 +08:00
PP 613addca36 play web audio after context get running (#11708)
* play web audio after context get running

update

* update
2022-07-01 14:46:44 +08:00
PP 1fccb90926 support audio PCMData and sampleRate getter (#11470)
* support audio buffer and sampleRate getter

update comment

update interface

update

update comment

update jsb.d.ts

update

* support getPCMData

update

support on native

support on miningame

update

* update comment

* add example doc
2022-06-29 13:39:05 +08:00
PP affbf7b90d fix mouse button in MouseMove Event (#11661) 2022-06-27 11:58:14 +08:00
PP ebb9b800b3 remove canvas access warning in Editor (#11709) 2022-06-27 11:50:48 +08:00
王凯鹏 d0a8a4fbc4 support gameview (#11514) 2022-06-20 13:36:34 +08:00
PP c03e261851 remove audioTimer for minigame platform (#11351) 2022-06-20 10:41:50 +08:00
mmyduckx df1594c8d8 Gameview editor macro (#11568)
* GameView related EDITOR macro modify

* remove debug code

* fix ci

* fix review

* fix review
2022-06-20 10:05:29 +08:00
PP 7b3a08c923 fix webp support detect on Safari 14+ (#11552) 2022-06-16 20:03:53 +08:00
PP e5511822eb support game.end() on Minigame (#11473) 2022-06-14 16:13:51 +08:00
PP e44fcbc581 use windowSize instead of screenSize for minigame platforms (#11468) 2022-06-14 16:12:25 +08:00
PP d0bd6b7376 support input dispatch event for Editor (#11471)
* support input dispatch event for Editor

* update internal

* fix eslint

* fix bug

* update
2022-06-14 16:10:18 +08:00
PP d65e8efe8b revert package-lock.json (#11422)
* revert to original lock file

* update

* Revert "ESLint Fix"

This reverts commit 5ad729903d810ae9847073dc4fe454a58709f1bf.
2022-06-08 22:40:56 +08:00
PP c0734c9420 downgrade lock (#11419)
* downgrade lock

* fix ci

* update lock
2022-06-08 20:50:30 +08:00
PP 14cb8d60ce optimize audiosource playing (#11104)
* remove invalid audio operation before setting clip

* skip invalid audio seeking on minigame platform
2022-05-24 10:42:56 +08:00
PP a124dd313d release _innerAudioContext after playOneShot ended (#10763)
* release _innerAudioContext after playOneShot ended

* fix ci
2022-04-14 17:04:20 +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
PP d749bbe1c4 remove legacyPublic tag (#10702) 2022-04-08 19:41:20 +08:00
PP 2b806c6a5a fix screen size && touch event on Alipay platform (#10666) 2022-04-06 16:22:22 +08:00
santy-wang 10349e567d Merge branch 'v3.4.2' of https://gitlab.cocos.net/publics/engine into v3.5.0 2022-03-08 10:21:39 +08:00
PP 36df8185ca cache system info on ByteDance platform (#10218) 2022-03-02 19:58:40 +08:00
pandamicro 1446db89e7 Merge branch 'v3.4.2' into v3.5.0
# Conflicts:
#	cocos/2d/components/sprite.ts
#	cocos/2d/framework/ui-transform.ts
#	cocos/2d/renderer/render-uniform-buffer.ts
#	cocos/core/builtin/effects.ts
#	cocos/core/builtin/shader-sources/glsl1.ts
#	cocos/core/builtin/shader-sources/glsl3.ts
#	cocos/core/builtin/shader-sources/glsl4.ts
#	cocos/dragon-bones/ArmatureDisplay.ts
#	cocos/spine/skeleton.ts
#	editor/assets/chunks/cc-sprite-fs-gpu.chunk
#	editor/assets/chunks/cc-sprite-fs-gpu.chunk.meta
#	editor/assets/chunks/cc-sprite-vs-gpu.chunk
#	editor/assets/chunks/cc-sprite-vs-gpu.chunk.meta
#	editor/assets/default_skybox.meta
#	editor/assets/effects/builtin-sprite-gpu.effect.meta
2022-02-28 17:24:02 +08:00
PP fa20eb69e1 optimize multi-touch on ByteDance platform (#10086) 2022-02-11 18:18:37 +08:00
santy-wang 995f5b2d41 Merge branch 'v3.4.2' of https://gitlab.cocos.net/publics/engine into v3.5-merge 2022-01-24 15:56:49 +08:00
PP bc0f912279 fix keyboard event listening on mobile (#9935)
* fix keyboard event listening on mobile

* update deprecation info
2022-01-06 23:05:56 +08:00
PP 1300cb8ab7 fix audio buffer memory leak on ByteDance and Web platform (#9933) 2022-01-06 18:27:26 +08:00
alpha e5040dc3ee [3.4.1] Fix bug multi touch (#9917)
* 🐛 fix multi touch can not disable

* Update pal/input/touch-manager.ts

Co-authored-by: PP <chinese1236@qq.com>

* Update pal/input/touch-manager.ts

Co-authored-by: PP <chinese1236@qq.com>

Co-authored-by: PP <chinese1236@qq.com>
2022-01-06 18:22:32 +08:00
santy-wang 7ffe1bc031 Merge branch 'v3.4.1' of https://gitlab.cocos.net/publics/engine into v3.5.0 2022-01-06 14:41:28 +08:00
PP fbde8d1e90 use lagacyPublic to marked deprecated public interface (#9859)
* use lagacy-public

* publish beta6

* remove jsDoc tag from constructor

* use legacyPublic

* publish beta 7
2021-12-28 11:48:10 +08:00
PP 1f58fbff6c cache systemInfo on Cocos Play platform (#9856)
* cache systemInfo on Cocos Play platform

* resize swapChain
2021-12-23 11:40:00 +08:00
pandamicro decf7e92fa Merge pull request #9853 from holycanvas/v3.5.0-sync
sync v3.4.1
2021-12-22 16:01:31 +08:00
PP cc01fad918 support internal interface filter (#9797)
* support interface filter

* publish build-engine@4.2.20-beta.1

* update

* fix other type of statement

* publish @cocos/build-engine 4.2.20

* update lock

* remove `@internal` from constructor documentation

* change to internal_cc tag

* support target tag in interface-filter

* publish  4.2.21-beta.1

* remove `@private_cc` tag

* remove public internal interface

* remove public internal getter setter

* remove public declare internal property

* update

* remove `__editorExtrasTag__`

* remove public internal interface on `js`

* pulish @cocos/build-engine 4.2.21-beta.2

* change tag to `@deprecated_to_user`

* support `@deprecated_to_user`

* publish 4.2.21-beta.3

* finish change request

* change to marked_as_engine_private

* publish 4.2.21-beta.5
2021-12-22 12:55:45 +08:00
PP 10634ea544 resctrict DPR on Web platform (#9850) 2021-12-21 17:21:25 +08:00
PP b11686b4dc compability for undefined game frame (#9830) 2021-12-16 19:18:16 +08:00
PP 6f89f4f4ef fix safe area on vivo platform (#9742) 2021-12-01 13:23:09 +08:00
PP cea8818c5f remove warnning: Failed to set shading scale, pipelineSceneData is invalid (#9720) 2021-11-24 16:48:33 +08:00
PP 55299dc7fa start audioSourceBufferNode before running audio context (#9660)
* start audioSourceBufferNode before running audio context

* remove test
2021-11-15 11:37:29 +08:00
timlyeee e0d8758fcb [temp hack] use simple flag to pause splashScreen (#9606)
* use simple flag to control framemove

* Pause splashScreen for native platform as windows

* .

* remove unused include

* rename functions
2021-11-12 14:39:53 +08:00
PP 1abbc90c23 compability for PROPORTIONAL_TO_FRAME container strategy (#9642)
* support isProportionalToFrame field on screen-adapter

update

stash

* rename _setupContainer to _setupCanvas

* optimize view.setResolutionPolicy()

* remove TIME_OUT to handle resize event

* compability for PROPORTIONAL_TO_FRAME container strategy

comp

update

* add NOTE

* optimize 'window-resize'

resize

* deprecate game.frame && game.container

deprecate

game

* close screen.resolutionScale interface

close

* fix npm test

* fix view unit test

* space
2021-11-11 19:24:39 +08:00
PP dea48a404c remove DPR hack on vivo platform (#9625) 2021-11-04 23:07:48 +08:00
PP 14a34d2c17 reset currentTime when stop native audio (#9604) 2021-11-03 16:41:34 +08:00
PP 51989a1b76 get exactFitScreen option from game initialization (#9594)
* get exactFitScreen option from game initialization

* set HTML5 as true by default

* optimize editor scene resize
2021-11-02 10:25:49 +08:00
PP 1ed2a9833e optimize screen adaption on Web platform (#9580)
* optimize screen._init

* support WindowType on Web platform

* optimize fullscreen adaption

* optimize frame resize

update

* set timeout to handle screen event

* fix esLint

* fix esLint

* fix spelling

* fix number type

* EVENT_TIMEOUT

* fix esLint

* revert naming 'OrientationMap'
2021-11-01 00:01:49 +08:00
PP 40b39ca7f5 fix screen size on Alipay && optimize DPR on vivo platform (#9560)
* fix screen size on Alipay

stash

* optimize DPR on vivo platform

* optimize code
2021-10-29 11:09:05 +08:00
PP a5a5ff9d38 fix cached currentTime on native audio ended (#9509) 2021-10-22 11:51:22 +08:00
PP f99bddaf38 fix undefined addEventListener on MediaQueryList (#9508) 2021-10-22 11:38:11 +08:00