Commit Graph

56 Commits

Author SHA1 Message Date
pandamicro b162e21a93 Update license and API language declaration (#7750)
* Update licenses

* Update license for audio

* Update license for core/3d

* Update license for animation, assets, asset-manager, components, data

* update license for event, geometry, gfx

* update license for core modules

math, memop, pipeline, platform, primitive, renderer, scene-graph, utils, value-types

* Update license for core

* Update license for particle and particle-2d

* Update license for particle part2

* Update license for physics and physics-2d

* Update license for all modules in cocos

* Update license for exports

* Fix API doc language declaration
2020-11-10 17:36:31 +08:00
Yun Hsiao Wu 32598c25cb switch to eslint (#7727)
* switch to eslint

* eslint: extends airbnb
2020-11-09 10:19:12 +08:00
Jare Guo e2b740dd15 Finally merge runtime deserializer & asset manager (#7648)
* sync asset-manager

refine

refine

refine

* change director

* refine

* fix bugs

* commit

* refine and fix bugs

* refine docs

* fix bugs

* merge

* fix bugs

* fix bugs

* merge

* sync jsb-adapter

* fix ci

* adapt preloading process for new Deserializer

* adapt preloading process for new Deserializer

* fix bugs

* minor fix

* dump dependency of SpriteFrame explicitly (sync #6938)

* dump dependency of SpriteFrame explicitly (sync #6938)

* remove unused variable

* exporting should trigger uuid compression in serializer

* refine

* fix ci

Co-authored-by: Santy-Wang <wh19930829@qq.com>
2020-10-30 20:51:58 +08:00
Knox 37fec6341f sync 2d (Update the url links) (#7613) 2020-10-28 17:06:27 +08:00
PP 2821b3db1c fix circular dependency (#7570) 2020-10-22 11:40:30 +08:00
Jare Guo 0319477911 fix decorator warning of ValueTypes (#7553)
* fix decorator warning of ValueTypes (sync #6285)

* refresh copyright
2020-10-21 16:31:41 +08:00
PP baf39c51e6 migrate audio bug fix on 2D && support audio clone and AudioManager (#7192)
* try set web audio volume immediately

* fix web audio can't play after unpluging earphones

update

update

* support audio clone

destroy clip on ended when playing one shot

rename var

audio clone

* support audio manager

* update details

* Revert "update details"

This reverts commit 68b1245974d1f904f2698a50c2f33e438e101b23.

* Revert "support audio manager"

This reverts commit b21e3405cefc07729fb7c913ecac50402cf9c857.

* Revert "support audio clone"

This reverts commit 041744c8885a6b3bae6e7ca1fd96a3056360d286.

* rename var

rename

* support multiple playing for Dom Audio

* support multiple backend Audio Manager

* update

* move restart playing logic into player

* update maxAudioChannel

* details
2020-10-19 14:47:30 +08:00
pandamicro 7481303268 Merge branch '3d-v1.2' into 3d
# Conflicts:
#	cocos/core/3d/framework/camera-component.ts
#	cocos/core/assets/mesh.ts
#	cocos/core/components/component-event-handler.ts
#	cocos/core/game.ts
#	cocos/core/gfx/webgl/webgl-commands.ts
#	cocos/core/gfx/webgl2/webgl2-commands.ts
#	cocos/core/pipeline/define.ts
#	cocos/core/pipeline/forward/forward-pipeline.ts
#	cocos/core/pipeline/instanced-buffer.ts
#	cocos/core/pipeline/render-pipeline.ts
#	cocos/core/pipeline/shadow/shadow-flow.ts
#	cocos/core/renderer/scene/model.ts
#	cocos/core/renderer/scene/shadows.ts
#	cocos/core/renderer/scene/skybox.ts
#	cocos/core/splash-screen.ts
#	cocos/ui/components/button.ts
#	cocos/ui/components/editbox/edit-box-impl.ts
#	editor/assets/primitives.fbx
#	package-lock.json
#	package.json
2020-09-30 18:01:33 +08:00
ChiaNing 15a1806d18 API doc format change (#7456) 2020-09-28 16:52:52 +08:00
Yun Hsiao Wu 80461d1566 fix audio stop after interrupted (#7443)
* minor

* fix audio stop after interrupted
2020-09-23 15:56:14 +08:00
Leslie Leigh (李的序) 4e56acb851 Fix missed cc.* (#7282)
* Fix missed `cc.*`

* Fix
2020-09-02 19:04:38 +08:00
pandamicro 3240dba206 Component rename for new standard and 2d compatibility (#7103)
* Rename ui related components

* Rename files

* Remove Useless errors

* Fix sealed names

* Fix sealed global variables

* Fix circular reference

* Refactor more component names

* Rename particle and animation related component

* export scene and models sub module in renderer

* Rename ModelComponents to Model

* Refactor LightComponents to Light

* Refactor CameraComponent to Camera

* Refactor ConstraintComponents to Constraint and rename physics comps

* Cleanup and fix issues

* Small fixes

* Refactor Model to MeshRenderer

* Final touch

* Fix data class export

* Better deprecation to cover all old usage

* Simpler and better deprecation with js.setClassAlias

* Fix ci

* Fix editor issue
2020-09-02 15:31:49 +08:00
Leslie Leigh (李的序) bc5b531191 Add decorator @editable @serializable (#7178) 2020-09-02 11:44:12 +08:00
Leslie Leigh (李的序) 4f2eff842d Full optimize decorators (#7166)
* Full optimize decorators

* Conflicts

* Rename immutable -> readOnly

* Update

* Update

* Update
2020-08-18 19:10:34 +08:00
Leslie Leigh (李的序) 26df6fb1c0 Optimize editor decorators (#7002) 2020-08-05 10:36:52 +08:00
lsybblll 83d7133c4c fix audio sometimes not work in wkwebview (#6987)
fix audio wich use player-web sometimes not work in wkwebview

场景:打包web-mobile,在ios的wkwebview中加载。
问题1:预加载音频时,this._context.state为running,但是播放的时候this._context.state为interrupted。
问题2:切到后台再切回,this._context.state为interrupted。
解决方案:如果在播放的时候,如果状态为interrupted,强制resume一下。
相关信息:https://github.com/goldfire/howler.js/pull/928
2020-07-19 16:04:36 +08:00
SijieWang a9f3969245 Merge remote-tracking branch 'cocos-for-editor/3d-v1.1.1' into 3d
# Conflicts:
#	cocos/audio/assets/clip.ts
#	cocos/core/3d/builtin/effects.ts
#	cocos/core/3d/framework/batched-skinning-model-component.ts
#	cocos/core/3d/framework/editor-camera-component.ts
#	cocos/core/3d/framework/index.ts
#	cocos/core/3d/framework/model-component.ts
#	cocos/core/animation/animation-clip.ts
#	cocos/core/animation/animation-manager.ts
#	cocos/core/animation/animation-state.ts
#	cocos/core/animation/skeletal-animation-component.ts
#	cocos/core/animation/skeletal-animation-state.ts
#	cocos/core/assets/mesh.ts
#	cocos/core/assets/simple-texture.ts
#	cocos/core/assets/sprite-frame.ts
#	cocos/core/assets/texture-base.ts
#	cocos/core/data/class-decorator.ts
#	cocos/core/data/instantiate.ts
#	cocos/core/event/event-target.ts
#	cocos/core/game.ts
#	cocos/core/load-pipeline/CCLoader.ts
#	cocos/core/load-pipeline/plist-parser.ts
#	cocos/core/load-pipeline/unpackers.ts
#	cocos/core/load-pipeline/url.ts
#	cocos/core/math/deprecated.ts
#	cocos/core/renderer/scene/model.ts
#	cocos/core/scene-graph/base-node.ts
#	cocos/core/scene-graph/scene-globals.ts
#	cocos/terrain/terrain.ts
#	predefine.ts
2020-06-03 13:25:42 +08:00
Leslie Leigh (李的序) 2c1ef7941f Improve typing (#6751) 2020-05-27 11:03:56 +08:00
Leslie Leigh (李的序) 9306b0ba8f Allow some static member of class to be type (#6724) 2020-05-22 18:03:05 +08:00
Leslie Leigh (李的序) 5e2adea787 Rename internal usages of global variable 'cc' into 'legacyGlobalExpo… (#6680)
* Rename internal usages of global variable 'cc' into 'legacyGlobalExports'

* Fix CI

* Rename 'legacyGlobalExports' -> 'legacyCC'
2020-05-14 15:46:45 +08:00
Yun Hsiao Wu f534c9d516 fix typo (#6625) 2020-04-27 18:49:23 +08:00
pandamicro 276a7f200a Partial API translation for core and related tweaks (#6534)
* Event api translation

* Event manager API translation

* Macro cleanup and API doc improve

* Code cleanup and API translation in core/platform,

* Use macro.ENABLE_WEBGL_ANTIALIAS for initialization

* tweak

* Improve singleton ref in view

* Fix ci

* Export sys without default
2020-04-16 11:38:24 +08:00
黄森斌 5aaae03612 components add @help for editor show document url (#6428) 2020-03-26 18:42:08 +08:00
Yun Hsiao Wu edd1189518 flexible skinning model (#6131)
* flexible skinning model

* skinning shader works on non-skinning models

* more opts

* UBO default values

* more opts

* update default joint

* more opts

* more opts

* unified skeletal animation component

* misc opts

* fix batched skinning model

* fix mesh interfaces

* texture buffer pool alignment

* move switch to skeletal animation component

* in-shader joint offset

* minor
2020-02-26 11:32:38 +08:00
Yun Hsiao Wu c1c1a82946 API docs (#6174)
* API docs

* wording & tooltip

* update material
2020-02-21 10:20:29 +08:00
Yun Hsiao Wu f5652eee61 cleaner audio types (#6037)
* cleaner audio types

* clear unused binding
2020-01-06 16:51:54 +08:00
ChiaNing 51d9286f2a add JSB_AUDIO type in audioType (#5949)
* add JSB_AUDIO type

* change audio type
2019-12-24 10:57:26 +08:00
Yun Hsiao Wu 0cd08e8441 fix web audio stop before play (#5927) 2019-12-19 15:02:28 +08:00
Yun Hsiao Wu 9be38fa229 web audio can't play twice (#5869) 2019-12-09 17:09:15 +08:00
Yun Hsiao Wu bbdce1b684 fallback to renderbuffer if depth texture not supported (#5862) 2019-12-07 15:08:24 +08:00
ChiaNing 06ea953699 cc.audioplayer change (#5839) 2019-12-04 17:21:34 +08:00
ChiaNing fce470c9c9 alipay adapter & oppo adapter (#5813)
* adapter

* adapters useless remove

* bug fix

* clip getplayer

* alipay adapter update

* redefin remove

* log remove

* deprecated redefine fix

* predefine update

* AliPay console adapter

* prefab update
2019-12-02 15:34:39 +08:00
pandamicro 2c3082d879 Merge pull request #5712 from cocos-creator/3d-v1.0.1
Merge 3d v1.0.1
2019-11-08 15:46:50 +08:00
Yun Hsiao Wu eeacefc88f fix wx one shot audio doesn't restart (#5699) 2019-11-07 18:59:54 +08:00
ftershock fc359c8a7a add tooltip (#5663)
* Add tooltip

* add tooltip

* update spriteatlas

* add changeSpriteFrameFromAtlas
2019-11-06 18:30:12 +08:00
Yun Hsiao Wu f5d5a617ab wx audio volume control workaround (#5679) 2019-11-05 17:35:43 +08:00
Yun Hsiao Wu 7b72c70f64 clear DOM audio callback after any successful play (#5638) 2019-10-29 16:17:56 +08:00
Yun Hsiao Wu cb7d3b64a5 handle dom audio play without promise (#5637) 2019-10-29 13:43:28 +08:00
Yun Hsiao Wu e337ae33d9 one material instance for all kinds of models (#5608)
* one material instance for all kinds of models

* better pass organization

* linter fix & more opt TODOs

* PSOs store their hashes from now on

* store string pass phase

* fix sampler cache

* optimize pass resource init proc

* audio context compat improv
2019-10-28 16:09:39 +08:00
Yun Hsiao Wu d7de207d8b disable VAO on iOS wechat (#5624) 2019-10-25 18:43:09 +08:00
Yun Hsiao Wu 8a98afdf08 fix audio duration clamp & profiler ratio (#5475) 2019-09-26 16:39:43 +08:00
Yun Hsiao Wu abd0779c21 max texture size check (#5442)
* texture size check

* linter fix
2019-09-23 14:18:23 +08:00
Yun Hsiao Wu e0e24d2f69 clamp input on audio setCurrentTime (#5431) 2019-09-20 14:17:22 +08:00
Yun Hsiao Wu 7d697f0b25 audio handle hide & show events (#5426)
* minor

* remove avatar model component

* audio handle hide & show events
2019-09-20 09:40:47 +08:00
Yun Hsiao Wu a20481527b audio clip should listen to canvas events (#5401)
* minor

* audio clip should listen to canvas events
2019-09-17 14:05:34 +08:00
Yun Hsiao Wu 63eb7918b2 cleaner create component menu (#5396) 2019-09-16 17:21:52 +08:00
Yun Hsiao Wu ea923922ba partial handle & Pass.getUniform (#5356)
* linter fix

* partial handle & getUniform
2019-09-10 10:35:02 +08:00
James Chen 269282f348 Fix AudioBuffer checking code (#5355) 2019-09-09 18:24:16 +08:00
Yun Hsiao Wu fcd7855a53 fix wx audio (#5311) 2019-09-02 05:25:09 -05:00
Yun Hsiao Wu 0d4bf98f61 wx audio global callbacks (#5310)
* some linter fix

* wx audio global callbacks
2019-09-02 04:30:08 -05:00