@galacean/engine-core 1.6.7 → 1.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (403) hide show
  1. package/package.json +3 -3
  2. package/dist/main.js +0 -37541
  3. package/dist/main.js.map +0 -1
  4. package/dist/module.js +0 -37259
  5. package/dist/module.js.map +0 -1
  6. package/types/2d/assembler/ISpriteAssembler.d.ts +0 -11
  7. package/types/2d/assembler/ISpriteRenderer.d.ts +0 -16
  8. package/types/2d/assembler/SimpleSpriteAssembler.d.ts +0 -13
  9. package/types/2d/assembler/SlicedSpriteAssembler.d.ts +0 -15
  10. package/types/2d/assembler/TiledSpriteAssembler.d.ts +0 -17
  11. package/types/2d/atlas/FontAtlas.d.ts +0 -1
  12. package/types/2d/atlas/SpriteAtlas.d.ts +0 -32
  13. package/types/2d/atlas/types.d.ts +0 -69
  14. package/types/2d/enums/FontStyle.d.ts +0 -11
  15. package/types/2d/enums/SpriteDrawMode.d.ts +0 -11
  16. package/types/2d/enums/SpriteMaskInteraction.d.ts +0 -11
  17. package/types/2d/enums/SpriteModifyFlags.d.ts +0 -23
  18. package/types/2d/enums/SpriteTileMode.d.ts +0 -11
  19. package/types/2d/enums/TextAlignment.d.ts +0 -22
  20. package/types/2d/enums/TextOverflow.d.ts +0 -9
  21. package/types/2d/index.d.ts +0 -16
  22. package/types/2d/sprite/Sprite.d.ts +0 -106
  23. package/types/2d/sprite/SpriteMask.d.ts +0 -70
  24. package/types/2d/sprite/SpriteRenderer.d.ts +0 -95
  25. package/types/2d/sprite/index.d.ts +0 -3
  26. package/types/2d/text/CharInfo.d.ts +0 -1
  27. package/types/2d/text/CharRenderInfo.d.ts +0 -1
  28. package/types/2d/text/Font.d.ts +0 -21
  29. package/types/2d/text/ITextRenderer.d.ts +0 -8
  30. package/types/2d/text/SubFont.d.ts +0 -1
  31. package/types/2d/text/TextRenderer.d.ts +0 -122
  32. package/types/2d/text/TextUtils.d.ts +0 -1
  33. package/types/2d/text/index.d.ts +0 -5
  34. package/types/Background.d.ts +0 -53
  35. package/types/BasicResources.d.ts +0 -2
  36. package/types/BoolUpdateFlag.d.ts +0 -12
  37. package/types/Camera.d.ts +0 -321
  38. package/types/Canvas.d.ts +0 -19
  39. package/types/Component.d.ts +0 -27
  40. package/types/ComponentsDependencies.d.ts +0 -25
  41. package/types/ComponentsManager.d.ts +0 -52
  42. package/types/Engine.d.ts +0 -150
  43. package/types/EngineSettings.d.ts +0 -5
  44. package/types/Entity.d.ts +0 -171
  45. package/types/Layer.d.ts +0 -73
  46. package/types/Platform.d.ts +0 -15
  47. package/types/Polyfill.d.ts +0 -1
  48. package/types/RenderPipeline/BasicRenderPipeline.d.ts +0 -55
  49. package/types/RenderPipeline/BatchUtils.d.ts +0 -1
  50. package/types/RenderPipeline/BatcherManager.d.ts +0 -1
  51. package/types/RenderPipeline/Blitter.d.ts +0 -28
  52. package/types/RenderPipeline/CullingResults.d.ts +0 -1
  53. package/types/RenderPipeline/DepthOnlyPass.d.ts +0 -1
  54. package/types/RenderPipeline/MaskManager.d.ts +0 -1
  55. package/types/RenderPipeline/OpaqueTexturePass.d.ts +0 -1
  56. package/types/RenderPipeline/PipelinePass.d.ts +0 -16
  57. package/types/RenderPipeline/PipelineUtils.d.ts +0 -1
  58. package/types/RenderPipeline/PrimitiveChunk.d.ts +0 -1
  59. package/types/RenderPipeline/PrimitiveChunkManager.d.ts +0 -1
  60. package/types/RenderPipeline/RenderContext.d.ts +0 -1
  61. package/types/RenderPipeline/RenderElement.d.ts +0 -12
  62. package/types/RenderPipeline/RenderQueue.d.ts +0 -1
  63. package/types/RenderPipeline/SubPrimitiveChunk.d.ts +0 -1
  64. package/types/RenderPipeline/SubRenderElement.d.ts +0 -22
  65. package/types/RenderPipeline/VertexArea.d.ts +0 -1
  66. package/types/RenderPipeline/enums/PipelineStage.d.ts +0 -11
  67. package/types/RenderPipeline/enums/RenderQueueMaskType.d.ts +0 -1
  68. package/types/RenderPipeline/index.d.ts +0 -5
  69. package/types/Renderer.d.ts +0 -135
  70. package/types/Scene.d.ts +0 -183
  71. package/types/SceneManager.d.ts +0 -51
  72. package/types/Script.d.ts +0 -144
  73. package/types/SystemInfo.d.ts +0 -27
  74. package/types/Transform.d.ts +0 -304
  75. package/types/UpdateFlag.d.ts +0 -20
  76. package/types/UpdateFlagManager.d.ts +0 -1
  77. package/types/Utils.d.ts +0 -37
  78. package/types/VirtualCamera.d.ts +0 -1
  79. package/types/animation/AnimationClip.d.ts +0 -87
  80. package/types/animation/AnimationClipCurveBinding.d.ts +0 -31
  81. package/types/animation/AnimationEvent.d.ts +0 -11
  82. package/types/animation/Animator.d.ts +0 -154
  83. package/types/animation/AnimatorCondition.d.ts +0 -13
  84. package/types/animation/AnimatorController.d.ts +0 -72
  85. package/types/animation/AnimatorControllerLayer.d.ts +0 -21
  86. package/types/animation/AnimatorControllerParameter.d.ts +0 -14
  87. package/types/animation/AnimatorLayerMask.d.ts +0 -45
  88. package/types/animation/AnimatorState.d.ts +0 -69
  89. package/types/animation/AnimatorStateMachine.d.ts +0 -85
  90. package/types/animation/AnimatorStateTransition.d.ts +0 -59
  91. package/types/animation/AnimatorStateTransitionCollection.d.ts +0 -1
  92. package/types/animation/Keyframe.d.ts +0 -20
  93. package/types/animation/LayerPathMask.d.ts +0 -16
  94. package/types/animation/StateMachineScript.d.ts +0 -32
  95. package/types/animation/animationCurve/AnimationArrayCurve.d.ts +0 -7
  96. package/types/animation/animationCurve/AnimationBoolCurve.d.ts +0 -7
  97. package/types/animation/animationCurve/AnimationColorCurve.d.ts +0 -8
  98. package/types/animation/animationCurve/AnimationCurve.d.ts +0 -39
  99. package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +0 -11
  100. package/types/animation/animationCurve/AnimationFloatCurve.d.ts +0 -7
  101. package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +0 -8
  102. package/types/animation/animationCurve/AnimationRectCurve.d.ts +0 -8
  103. package/types/animation/animationCurve/AnimationRefCurve.d.ts +0 -8
  104. package/types/animation/animationCurve/AnimationStringCurve.d.ts +0 -7
  105. package/types/animation/animationCurve/AnimationVector2Curve.d.ts +0 -8
  106. package/types/animation/animationCurve/AnimationVector3Curve.d.ts +0 -8
  107. package/types/animation/animationCurve/AnimationVector4Curve.d.ts +0 -8
  108. package/types/animation/animationCurve/index.d.ts +0 -13
  109. package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +0 -1
  110. package/types/animation/enums/AnimatorConditionMode.d.ts +0 -17
  111. package/types/animation/enums/AnimatorCullingMode.d.ts +0 -9
  112. package/types/animation/enums/AnimatorLayerBlendingMode.d.ts +0 -4
  113. package/types/animation/enums/AnimatorStatePlayState.d.ts +0 -1
  114. package/types/animation/enums/InterpolationType.d.ts +0 -13
  115. package/types/animation/enums/LayerState.d.ts +0 -15
  116. package/types/animation/enums/PlayState.d.ts +0 -13
  117. package/types/animation/enums/WrapMode.d.ts +0 -9
  118. package/types/animation/index.d.ts +0 -25
  119. package/types/animation/internal/AnimationCurveLayerOwner.d.ts +0 -1
  120. package/types/animation/internal/AnimationEventHandler.d.ts +0 -1
  121. package/types/animation/internal/AnimatorLayerData.d.ts +0 -1
  122. package/types/animation/internal/AnimatorStateData.d.ts +0 -1
  123. package/types/animation/internal/AnimatorStatePlayData.d.ts +0 -1
  124. package/types/animation/internal/AnimatorTempValue.d.ts +0 -1
  125. package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +0 -5
  126. package/types/animation/internal/animationCurveOwner/assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +0 -1
  127. package/types/animation/internal/animationCurveOwner/assembler/IAnimationCurveOwnerAssembler.d.ts +0 -1
  128. package/types/animation/internal/animationCurveOwner/assembler/PositionAnimationCurveOwnerAssembler.d.ts +0 -1
  129. package/types/animation/internal/animationCurveOwner/assembler/RotationAnimationCurveOwnerAssembler.d.ts +0 -1
  130. package/types/animation/internal/animationCurveOwner/assembler/ScaleAnimationCurveOwnerAssembler.d.ts +0 -1
  131. package/types/animation/internal/animationCurveOwner/assembler/UniversalAnimationCurveOwnerAssembler.d.ts +0 -1
  132. package/types/asset/AssetPromise.d.ts +0 -88
  133. package/types/asset/AssetType.d.ts +0 -66
  134. package/types/asset/ContentRestorer.d.ts +0 -17
  135. package/types/asset/GraphicsResource.d.ts +0 -9
  136. package/types/asset/IReferable.d.ts +0 -2
  137. package/types/asset/LoadItem.d.ts +0 -40
  138. package/types/asset/Loader.d.ts +0 -37
  139. package/types/asset/ReferResource.d.ts +0 -23
  140. package/types/asset/ResourceManager.d.ts +0 -121
  141. package/types/asset/request.d.ts +0 -36
  142. package/types/audio/AudioClip.d.ts +0 -24
  143. package/types/audio/AudioManager.d.ts +0 -1
  144. package/types/audio/AudioSource.d.ts +0 -72
  145. package/types/audio/index.d.ts +0 -3
  146. package/types/base/Constant.d.ts +0 -116
  147. package/types/base/EngineObject.d.ts +0 -25
  148. package/types/base/EventDispatcher.d.ts +0 -66
  149. package/types/base/Logger.d.ts +0 -11
  150. package/types/base/StaticInterfaceImplement.d.ts +0 -5
  151. package/types/base/Time.d.ts +0 -44
  152. package/types/base/index.d.ts +0 -5
  153. package/types/clone/CloneManager.d.ts +0 -31
  154. package/types/clone/ComponentCloner.d.ts +0 -17
  155. package/types/clone/enums/CloneMode.d.ts +0 -13
  156. package/types/enums/ActiveChangeFlag.d.ts +0 -6
  157. package/types/enums/AntiAliasing.d.ts +0 -7
  158. package/types/enums/BackgroundMode.d.ts +0 -9
  159. package/types/enums/BackgroundTextureFillMode.d.ts +0 -8
  160. package/types/enums/CameraClearFlags.d.ts +0 -13
  161. package/types/enums/CameraModifyFlags.d.ts +0 -17
  162. package/types/enums/CameraType.d.ts +0 -1
  163. package/types/enums/DepthTextureMode.d.ts +0 -7
  164. package/types/enums/Downsampling.d.ts +0 -11
  165. package/types/enums/EntityModifyFlags.d.ts +0 -9
  166. package/types/enums/FogMode.d.ts +0 -13
  167. package/types/enums/MSAASamples.d.ts +0 -13
  168. package/types/enums/ReplacementFailureStrategy.d.ts +0 -9
  169. package/types/enums/SpriteMaskLayer.d.ts +0 -73
  170. package/types/env-probe/CubeProbe.d.ts +0 -27
  171. package/types/env-probe/Probe.d.ts +0 -52
  172. package/types/env-probe/index.d.ts +0 -2
  173. package/types/graphic/Buffer.d.ts +0 -114
  174. package/types/graphic/BufferUtil.d.ts +0 -12
  175. package/types/graphic/IndexBufferBinding.d.ts +0 -21
  176. package/types/graphic/Mesh.d.ts +0 -58
  177. package/types/graphic/Primitive.d.ts +0 -1
  178. package/types/graphic/SubMesh.d.ts +0 -8
  179. package/types/graphic/SubPrimitive.d.ts +0 -19
  180. package/types/graphic/VertexBufferBinding.d.ts +0 -20
  181. package/types/graphic/VertexElement.d.ts +0 -48
  182. package/types/graphic/enums/BufferBindFlag.d.ts +0 -9
  183. package/types/graphic/enums/BufferUsage.d.ts +0 -11
  184. package/types/graphic/enums/IndexFormat.d.ts +0 -11
  185. package/types/graphic/enums/MeshTopology.d.ts +0 -19
  186. package/types/graphic/enums/SetDataOptions.d.ts +0 -9
  187. package/types/graphic/enums/VertexElementFormat.d.ts +0 -37
  188. package/types/graphic/index.d.ts +0 -15
  189. package/types/index.d.ts +0 -67
  190. package/types/input/InputManager.d.ts +0 -65
  191. package/types/input/enums/Keys.d.ts +0 -398
  192. package/types/input/enums/PointerButton.d.ts +0 -33
  193. package/types/input/enums/PointerPhase.d.ts +0 -15
  194. package/types/input/index.d.ts +0 -8
  195. package/types/input/interface/IInput.d.ts +0 -10
  196. package/types/input/keyboard/KeyboardManager.d.ts +0 -1
  197. package/types/input/pointer/Pointer.d.ts +0 -31
  198. package/types/input/pointer/PointerEventData.d.ts +0 -12
  199. package/types/input/pointer/PointerManager.d.ts +0 -9
  200. package/types/input/pointer/emitter/IHitResult.d.ts +0 -1
  201. package/types/input/pointer/emitter/PhysicsPointerEventEmitter.d.ts +0 -1
  202. package/types/input/pointer/emitter/PointerEventEmitter.d.ts +0 -30
  203. package/types/input/wheel/WheelManager.d.ts +0 -1
  204. package/types/lighting/AmbientLight.d.ts +0 -70
  205. package/types/lighting/DirectLight.d.ts +0 -32
  206. package/types/lighting/KHR_lights.d.ts +0 -4
  207. package/types/lighting/Light.d.ts +0 -45
  208. package/types/lighting/LightManager.d.ts +0 -12
  209. package/types/lighting/PointLight.d.ts +0 -26
  210. package/types/lighting/SpotLight.d.ts +0 -45
  211. package/types/lighting/ambientOcclusion/AmbientOcclusion.d.ts +0 -79
  212. package/types/lighting/ambientOcclusion/ScalableAmbientObscurancePass.d.ts +0 -1
  213. package/types/lighting/ambientOcclusion/index.d.ts +0 -2
  214. package/types/lighting/enums/AmbientOcclusionQuality.d.ts +0 -11
  215. package/types/lighting/enums/DiffuseMode.d.ts +0 -13
  216. package/types/lighting/index.d.ts +0 -7
  217. package/types/material/BaseMaterial.d.ts +0 -88
  218. package/types/material/BlinnPhongMaterial.d.ts +0 -68
  219. package/types/material/Material.d.ts +0 -52
  220. package/types/material/PBRMaterial.d.ts +0 -311
  221. package/types/material/UnlitMaterial.d.ts +0 -33
  222. package/types/material/enums/BlendMode.d.ts +0 -9
  223. package/types/material/enums/Refraction.d.ts +0 -9
  224. package/types/material/enums/RenderFace.d.ts +0 -11
  225. package/types/material/enums/TextureCoordinate.d.ts +0 -13
  226. package/types/material/index.d.ts +0 -9
  227. package/types/material/utils/PrefilteredDFG.d.ts +0 -7
  228. package/types/mesh/BlendShape.d.ts +0 -39
  229. package/types/mesh/BlendShapeFrame.d.ts +0 -44
  230. package/types/mesh/BlendShapeManager.d.ts +0 -1
  231. package/types/mesh/BufferMesh.d.ts +0 -59
  232. package/types/mesh/MeshRenderer.d.ts +0 -25
  233. package/types/mesh/ModelMesh.d.ts +0 -254
  234. package/types/mesh/PrimitiveMesh.d.ts +0 -112
  235. package/types/mesh/PrimitiveMeshRestorer.d.ts +0 -1
  236. package/types/mesh/Skin.d.ts +0 -35
  237. package/types/mesh/SkinnedMeshRenderer.d.ts +0 -50
  238. package/types/mesh/enums/VertexAttribute.d.ts +0 -33
  239. package/types/mesh/index.d.ts +0 -9
  240. package/types/particle/ParticleBufferUtils.d.ts +0 -1
  241. package/types/particle/ParticleGenerator.d.ts +0 -94
  242. package/types/particle/ParticleMaterial.d.ts +0 -38
  243. package/types/particle/ParticleRenderer.d.ts +0 -47
  244. package/types/particle/enums/ParticleCurveMode.d.ts +0 -9
  245. package/types/particle/enums/ParticleGradientMode.d.ts +0 -9
  246. package/types/particle/enums/ParticleRandomSubSeeds.d.ts +0 -1
  247. package/types/particle/enums/ParticleRenderMode.d.ts +0 -17
  248. package/types/particle/enums/ParticleScaleMode.d.ts +0 -11
  249. package/types/particle/enums/ParticleSimulationSpace.d.ts +0 -9
  250. package/types/particle/enums/ParticleStopMode.d.ts +0 -6
  251. package/types/particle/enums/attributes/BillboardParticleVertexAttribute.d.ts +0 -1
  252. package/types/particle/enums/attributes/MeshParticleVertexAttribute.d.ts +0 -5
  253. package/types/particle/enums/attributes/ParticleInstanceVertexAttribute.d.ts +0 -1
  254. package/types/particle/index.d.ts +0 -22
  255. package/types/particle/modules/Burst.d.ts +0 -14
  256. package/types/particle/modules/ColorOverLifetimeModule.d.ts +0 -20
  257. package/types/particle/modules/EmissionModule.d.ts +0 -48
  258. package/types/particle/modules/ForceOverLifetimeModule.d.ts +0 -51
  259. package/types/particle/modules/MainModule.d.ts +0 -104
  260. package/types/particle/modules/ParticleCompositeCurve.d.ts +0 -81
  261. package/types/particle/modules/ParticleCompositeGradient.d.ts +0 -55
  262. package/types/particle/modules/ParticleCurve.d.ts +0 -63
  263. package/types/particle/modules/ParticleGeneratorModule.d.ts +0 -17
  264. package/types/particle/modules/ParticleGradient.d.ts +0 -114
  265. package/types/particle/modules/RotationOverLifetimeModule.d.ts +0 -34
  266. package/types/particle/modules/SizeOverLifetimeModule.d.ts +0 -52
  267. package/types/particle/modules/TextureSheetAnimationModule.d.ts +0 -39
  268. package/types/particle/modules/VelocityOverLifetimeModule.d.ts +0 -54
  269. package/types/particle/modules/shape/BaseShape.d.ts +0 -22
  270. package/types/particle/modules/shape/BoxShape.d.ts +0 -17
  271. package/types/particle/modules/shape/CircleShape.d.ts +0 -35
  272. package/types/particle/modules/shape/ConeShape.d.ts +0 -45
  273. package/types/particle/modules/shape/HemisphereShape.d.ts +0 -14
  274. package/types/particle/modules/shape/MeshShape.d.ts +0 -21
  275. package/types/particle/modules/shape/ShapeUtils.d.ts +0 -1
  276. package/types/particle/modules/shape/SphereShape.d.ts +0 -14
  277. package/types/particle/modules/shape/enums/ParticleShapeArcMode.d.ts +0 -9
  278. package/types/particle/modules/shape/enums/ParticleShapeType.d.ts +0 -17
  279. package/types/particle/modules/shape/index.d.ts +0 -8
  280. package/types/physics/CharacterController.d.ts +0 -51
  281. package/types/physics/Collider.d.ts +0 -43
  282. package/types/physics/Collision.d.ts +0 -22
  283. package/types/physics/ContactPoint.d.ts +0 -14
  284. package/types/physics/DynamicCollider.d.ts +0 -192
  285. package/types/physics/HitResult.d.ts +0 -18
  286. package/types/physics/PhysicsMaterial.d.ts +0 -42
  287. package/types/physics/PhysicsScene.d.ts +0 -276
  288. package/types/physics/StaticCollider.d.ts +0 -7
  289. package/types/physics/enums/ColliderShapeChangeFlag.d.ts +0 -1
  290. package/types/physics/enums/ColliderShapeUpAxis.d.ts +0 -11
  291. package/types/physics/enums/ControllerCollisionFlag.d.ts +0 -11
  292. package/types/physics/enums/ControllerNonWalkableMode.d.ts +0 -9
  293. package/types/physics/enums/HingeJointFlag.d.ts +0 -1
  294. package/types/physics/enums/PhysicsMaterialCombineMode.d.ts +0 -13
  295. package/types/physics/enums/index.d.ts +0 -4
  296. package/types/physics/index.d.ts +0 -12
  297. package/types/physics/joint/FixedJoint.d.ts +0 -4
  298. package/types/physics/joint/HingeJoint.d.ts +0 -61
  299. package/types/physics/joint/Joint.d.ts +0 -81
  300. package/types/physics/joint/JointLimits.d.ts +0 -39
  301. package/types/physics/joint/JointMotor.d.ts +0 -32
  302. package/types/physics/joint/SpringJoint.d.ts +0 -38
  303. package/types/physics/joint/index.d.ts +0 -6
  304. package/types/physics/shape/BoxColliderShape.d.ts +0 -16
  305. package/types/physics/shape/CapsuleColliderShape.d.ts +0 -27
  306. package/types/physics/shape/ColliderShape.d.ts +0 -61
  307. package/types/physics/shape/PlaneColliderShape.d.ts +0 -9
  308. package/types/physics/shape/SphereColliderShape.d.ts +0 -14
  309. package/types/physics/shape/index.d.ts +0 -5
  310. package/types/postProcess/FinalPass.d.ts +0 -1
  311. package/types/postProcess/PostProcess.d.ts +0 -64
  312. package/types/postProcess/PostProcessEffect.d.ts +0 -26
  313. package/types/postProcess/PostProcessEffectParameter.d.ts +0 -119
  314. package/types/postProcess/PostProcessManager.d.ts +0 -38
  315. package/types/postProcess/PostProcessPass.d.ts +0 -50
  316. package/types/postProcess/PostProcessUberPass.d.ts +0 -25
  317. package/types/postProcess/effects/BloomEffect.d.ts +0 -50
  318. package/types/postProcess/effects/TonemappingEffect.d.ts +0 -25
  319. package/types/postProcess/effects/index.d.ts +0 -2
  320. package/types/postProcess/index.d.ts +0 -8
  321. package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +0 -7
  322. package/types/renderingHardwareInterface/IPlatformRenderTarget.d.ts +0 -20
  323. package/types/renderingHardwareInterface/IPlatformTexture.d.ts +0 -36
  324. package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +0 -37
  325. package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +0 -40
  326. package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +0 -41
  327. package/types/renderingHardwareInterface/index.d.ts +0 -6
  328. package/types/shader/Shader.d.ts +0 -119
  329. package/types/shader/ShaderData.d.ts +0 -350
  330. package/types/shader/ShaderMacro.d.ts +0 -26
  331. package/types/shader/ShaderMacroCollection.d.ts +0 -1
  332. package/types/shader/ShaderPart.d.ts +0 -46
  333. package/types/shader/ShaderPass.d.ts +0 -25
  334. package/types/shader/ShaderPool.d.ts +0 -1
  335. package/types/shader/ShaderProgram.d.ts +0 -1
  336. package/types/shader/ShaderProgramPool.d.ts +0 -1
  337. package/types/shader/ShaderProperty.d.ts +0 -20
  338. package/types/shader/ShaderTagKey.d.ts +0 -16
  339. package/types/shader/ShaderUniform.d.ts +0 -1
  340. package/types/shader/ShaderUniformBlock.d.ts +0 -1
  341. package/types/shader/SubShader.d.ts +0 -18
  342. package/types/shader/enums/BlendFactor.d.ts +0 -32
  343. package/types/shader/enums/BlendOperation.d.ts +0 -16
  344. package/types/shader/enums/ColorWriteMask.d.ts +0 -18
  345. package/types/shader/enums/CompareFunction.d.ts +0 -22
  346. package/types/shader/enums/CullMode.d.ts +0 -12
  347. package/types/shader/enums/RenderQueueType.d.ts +0 -11
  348. package/types/shader/enums/RenderStateElementKey.d.ts +0 -60
  349. package/types/shader/enums/ShaderDataGroup.d.ts +0 -15
  350. package/types/shader/enums/ShaderLanguage.d.ts +0 -9
  351. package/types/shader/enums/ShaderPropertyType.d.ts +0 -27
  352. package/types/shader/enums/StencilOperation.d.ts +0 -22
  353. package/types/shader/index.d.ts +0 -19
  354. package/types/shader/state/BlendState.d.ts +0 -16
  355. package/types/shader/state/DepthState.d.ts +0 -14
  356. package/types/shader/state/RasterState.d.ts +0 -13
  357. package/types/shader/state/RenderState.d.ts +0 -21
  358. package/types/shader/state/RenderTargetBlendState.d.ts +0 -24
  359. package/types/shader/state/StencilState.d.ts +0 -34
  360. package/types/shader/state/index.d.ts +0 -6
  361. package/types/shaderlib/ShaderFactory.d.ts +0 -20
  362. package/types/shaderlib/ShaderLib.d.ts +0 -73
  363. package/types/shaderlib/index.d.ts +0 -1
  364. package/types/shaderlib/particle/index.d.ts +0 -15
  365. package/types/shaderlib/pbr/index.d.ts +0 -11
  366. package/types/shaderlib/shadow/index.d.ts +0 -8
  367. package/types/shadow/CascadedShadowCasterPass.d.ts +0 -45
  368. package/types/shadow/ShadowSliceData.d.ts +0 -1
  369. package/types/shadow/ShadowUtils.d.ts +0 -1
  370. package/types/shadow/enum/ShadowCascadesMode.d.ts +0 -11
  371. package/types/shadow/enum/ShadowResolution.d.ts +0 -13
  372. package/types/shadow/enum/ShadowType.d.ts +0 -13
  373. package/types/shadow/index.d.ts +0 -3
  374. package/types/sky/Sky.d.ts +0 -22
  375. package/types/sky/SkyBoxMaterial.d.ts +0 -43
  376. package/types/sky/SkyProceduralMaterial.d.ts +0 -72
  377. package/types/sky/index.d.ts +0 -3
  378. package/types/texture/RenderTarget.d.ts +0 -91
  379. package/types/texture/Texture.d.ts +0 -87
  380. package/types/texture/Texture2D.d.ts +0 -71
  381. package/types/texture/Texture2DArray.d.ts +0 -82
  382. package/types/texture/TextureCube.d.ts +0 -71
  383. package/types/texture/TextureUtils.d.ts +0 -1
  384. package/types/texture/enums/RenderBufferDepthFormat.d.ts +0 -23
  385. package/types/texture/enums/TextureCubeFace.d.ts +0 -17
  386. package/types/texture/enums/TextureDepthCompareFunction.d.ts +0 -21
  387. package/types/texture/enums/TextureFilterMode.d.ts +0 -11
  388. package/types/texture/enums/TextureFormat.d.ts +0 -87
  389. package/types/texture/enums/TextureUsage.d.ts +0 -9
  390. package/types/texture/enums/TextureWrapMode.d.ts +0 -11
  391. package/types/texture/index.d.ts +0 -13
  392. package/types/trail/TrailMaterial.d.ts +0 -5
  393. package/types/trail/TrailRenderer.d.ts +0 -35
  394. package/types/trail/index.d.ts +0 -2
  395. package/types/ui/IUICanvas.d.ts +0 -1
  396. package/types/ui/UIUtils.d.ts +0 -12
  397. package/types/utils/ClearableObjectPool.d.ts +0 -16
  398. package/types/utils/DisorderedArray.d.ts +0 -70
  399. package/types/utils/ObjectPool.d.ts +0 -16
  400. package/types/utils/ReturnableObjectPool.d.ts +0 -16
  401. package/types/utils/SafeLoopArray.d.ts +0 -46
  402. package/types/utils/index.d.ts +0 -4
  403. package/types/xr/XRManager.d.ts +0 -5
@@ -1,122 +0,0 @@
1
- import { BoundingBox, Color } from "@galacean/engine-math";
2
- import { Entity } from "../../Entity";
3
- import { RenderContext } from "../../RenderPipeline/RenderContext";
4
- import { Renderer } from "../../Renderer";
5
- import { TransformModifyFlags } from "../../Transform";
6
- import { FontStyle } from "../enums/FontStyle";
7
- import { SpriteMaskInteraction } from "../enums/SpriteMaskInteraction";
8
- import { TextHorizontalAlignment, TextVerticalAlignment } from "../enums/TextAlignment";
9
- import { OverflowMode } from "../enums/TextOverflow";
10
- import { Font } from "./Font";
11
- import { ITextRenderer } from "./ITextRenderer";
12
- import { SpriteMaskLayer } from "../../enums/SpriteMaskLayer";
13
- /**
14
- * Renders a text for 2D graphics.
15
- */
16
- export declare class TextRenderer extends Renderer implements ITextRenderer {
17
- private static _textureProperty;
18
- private static _tempVec30;
19
- private static _tempVec31;
20
- private static _worldPositions;
21
- private static _charRenderInfos;
22
- private _textChunks;
23
- private _color;
24
- private _text;
25
- private _width;
26
- private _height;
27
- private _localBounds;
28
- private _font;
29
- private _fontSize;
30
- private _fontStyle;
31
- private _lineSpacing;
32
- private _horizontalAlignment;
33
- private _verticalAlignment;
34
- private _enableWrapping;
35
- private _overflowMode;
36
- /**
37
- * Rendering color for the Text.
38
- */
39
- get color(): Color;
40
- set color(value: Color);
41
- /**
42
- * Rendering string for the Text.
43
- */
44
- get text(): string;
45
- set text(value: string);
46
- /**
47
- * The width of the TextRenderer (in 3D world coordinates).
48
- */
49
- get width(): number;
50
- set width(value: number);
51
- /**
52
- * The height of the TextRenderer (in 3D world coordinates).
53
- */
54
- get height(): number;
55
- set height(value: number);
56
- /**
57
- * The font of the Text.
58
- */
59
- get font(): Font;
60
- set font(value: Font);
61
- /**
62
- * The font size of the Text.
63
- */
64
- get fontSize(): number;
65
- set fontSize(value: number);
66
- /**
67
- * The style of the font.
68
- */
69
- get fontStyle(): FontStyle;
70
- set fontStyle(value: FontStyle);
71
- /**
72
- * The space between two lines (in pixels).
73
- */
74
- get lineSpacing(): number;
75
- set lineSpacing(value: number);
76
- /**
77
- * The horizontal alignment.
78
- */
79
- get horizontalAlignment(): TextHorizontalAlignment;
80
- set horizontalAlignment(value: TextHorizontalAlignment);
81
- /**
82
- * The vertical alignment.
83
- */
84
- get verticalAlignment(): TextVerticalAlignment;
85
- set verticalAlignment(value: TextVerticalAlignment);
86
- /**
87
- * Whether wrap text to next line when exceeds the width of the container.
88
- */
89
- get enableWrapping(): boolean;
90
- set enableWrapping(value: boolean);
91
- /**
92
- * The overflow mode.
93
- */
94
- get overflowMode(): OverflowMode;
95
- set overflowMode(value: OverflowMode);
96
- /**
97
- * Interacts with the masks.
98
- */
99
- get maskInteraction(): SpriteMaskInteraction;
100
- set maskInteraction(value: SpriteMaskInteraction);
101
- /**
102
- * The mask layer the sprite renderer belongs to.
103
- */
104
- get maskLayer(): SpriteMaskLayer;
105
- set maskLayer(value: SpriteMaskLayer);
106
- /**
107
- * The bounding volume of the TextRenderer.
108
- */
109
- get bounds(): BoundingBox;
110
- constructor(entity: Entity);
111
- protected _updateBounds(worldBounds: BoundingBox): void;
112
- protected _render(context: RenderContext): void;
113
- private _resetSubFont;
114
- private _updatePosition;
115
- private _updateColor;
116
- private _updateLocalData;
117
- protected _onTransformChanged(bit: TransformModifyFlags): void;
118
- private _isTextNoVisible;
119
- private _buildChunk;
120
- private _freeTextChunks;
121
- private _onColorChanged;
122
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- export { Font } from "./Font";
2
- export { TextRenderer } from "./TextRenderer";
3
- export { CharRenderInfo } from "./CharRenderInfo";
4
- export { SubFont } from "./SubFont";
5
- export { TextUtils } from "./TextUtils";
@@ -1,53 +0,0 @@
1
- import { Color } from "@galacean/engine-math";
2
- import { Engine } from "./Engine";
3
- import { BackgroundMode } from "./enums/BackgroundMode";
4
- import { BackgroundTextureFillMode } from "./enums/BackgroundTextureFillMode";
5
- import { Sky } from "./sky/Sky";
6
- import { Texture2D } from "./texture";
7
- /**
8
- * Background of scene.
9
- */
10
- export declare class Background {
11
- private _engine;
12
- /**
13
- * Background mode.
14
- * @defaultValue `BackgroundMode.SolidColor`
15
- * @remarks If using `BackgroundMode.Sky` mode and material or mesh of the `sky` is not defined, it will downgrade to `BackgroundMode.SolidColor`.
16
- */
17
- mode: BackgroundMode;
18
- /**
19
- * Background sky.
20
- * @remarks When `mode` is `BackgroundMode.Sky`, the property will take effects.
21
- */
22
- readonly sky: Sky;
23
- private _solidColor;
24
- private _texture;
25
- /**
26
- * Background solid color.
27
- * @defaultValue `new Color(0.05, 0.05, 0.05, 1.0)`
28
- * @remarks When `mode` is `BackgroundMode.SolidColor`, the property will take effects.
29
- */
30
- get solidColor(): Color;
31
- set solidColor(value: Color);
32
- /**
33
- * Background texture.
34
- * @remarks When `mode` is `BackgroundMode.Texture`, the property will take effects.
35
- */
36
- get texture(): Texture2D;
37
- set texture(value: Texture2D);
38
- /**
39
- * Background texture fill mode.
40
- * @remarks When `mode` is `BackgroundMode.Texture`, the property will take effects.
41
- * @defaultValue `BackgroundTextureFillMode.FitHeight`
42
- */
43
- get textureFillMode(): BackgroundTextureFillMode;
44
- set textureFillMode(value: BackgroundTextureFillMode);
45
- /**
46
- * Constructor of Background.
47
- * @param _engine Engine Which the background belongs to.
48
- */
49
- constructor(_engine: Engine);
50
- private _initMesh;
51
- private _initMaterial;
52
- private _createPlane;
53
- }
@@ -1,2 +0,0 @@
1
- import { RenderStateElementKey } from "./shader/enums/RenderStateElementKey";
2
- export type RenderStateElementMap = Record<RenderStateElementKey, number | boolean>;
@@ -1,12 +0,0 @@
1
- import { UpdateFlag } from "./UpdateFlag";
2
- /**
3
- * Bool update flag.
4
- */
5
- export declare class BoolUpdateFlag extends UpdateFlag {
6
- /** Bool flag. */
7
- flag: boolean;
8
- /**
9
- * @inheritdoc
10
- */
11
- dispatch(): void;
12
- }
package/types/Camera.d.ts DELETED
@@ -1,321 +0,0 @@
1
- import { Matrix, Ray, Rect, Vector2, Vector3, Vector4 } from "@galacean/engine-math";
2
- import { Component } from "./Component";
3
- import { Layer } from "./Layer";
4
- import { AntiAliasing } from "./enums/AntiAliasing";
5
- import { CameraClearFlags } from "./enums/CameraClearFlags";
6
- import { DepthTextureMode } from "./enums/DepthTextureMode";
7
- import { Downsampling } from "./enums/Downsampling";
8
- import { MSAASamples } from "./enums/MSAASamples";
9
- import { ReplacementFailureStrategy } from "./enums/ReplacementFailureStrategy";
10
- import { Shader } from "./shader/Shader";
11
- import { ShaderData } from "./shader/ShaderData";
12
- import { ShaderTagKey } from "./shader/ShaderTagKey";
13
- import { RenderTarget } from "./texture/RenderTarget";
14
- import { TextureCubeFace } from "./texture/enums/TextureCubeFace";
15
- /**
16
- * Camera component, as the entrance to the three-dimensional world.
17
- * @decorator `@dependentComponents(Transform, DependentMode.CheckOnly)`
18
- */
19
- export declare class Camera extends Component {
20
- private static _inverseViewMatrixProperty;
21
- private static _cameraPositionProperty;
22
- private static _cameraForwardProperty;
23
- private static _cameraUpProperty;
24
- private static _cameraDepthBufferParamsProperty;
25
- /** Whether to enable frustum culling, it is enabled by default. */
26
- enableFrustumCulling: boolean;
27
- /**
28
- * Determining what to clear when rendering by a Camera.
29
- *
30
- * @defaultValue `CameraClearFlags.All`
31
- */
32
- clearFlags: CameraClearFlags;
33
- /**
34
- * Culling mask - which layers the camera renders.
35
- * @remarks Support bit manipulation, corresponding to `Layer`.
36
- */
37
- cullingMask: Layer;
38
- /**
39
- * Determines which PostProcess to use.
40
- */
41
- postProcessMask: Layer;
42
- /**
43
- * Depth texture mode.
44
- * If `DepthTextureMode.PrePass` is used, the depth texture can be accessed in the shader using `camera_DepthTexture`.
45
- *
46
- * @defaultValue `DepthTextureMode.None`
47
- */
48
- depthTextureMode: DepthTextureMode;
49
- /**
50
- * Opacity texture down sampling.
51
- *
52
- * @defaultValue `Downsampling.TwoX`
53
- */
54
- opaqueTextureDownsampling: Downsampling;
55
- /**
56
- * The screen-space anti-aliasing mode applied after the camera renders the final image.
57
- * Unlike MSAA, it can smooth all pixels, including by shader-generated specular, alpha-cutoff edge.
58
- *
59
- * @defaultValue `AntiAliasing.None`
60
- */
61
- antiAliasing: AntiAliasing;
62
- /**
63
- * Determines whether to preserve the alpha channel in the output.
64
- * When set to true, the alpha channel is always preserved.
65
- * When set to false, the engine automatically decides whether to preserve it.
66
- *
67
- * @remarks
68
- * Set to true if you need to ensure the alpha channel is preserved, for example, when performing canvas transparent blending.
69
- *
70
- * @defaultValue `false`
71
- */
72
- isAlphaOutputRequired: boolean;
73
- private _priority;
74
- private _isCustomViewMatrix;
75
- private _isCustomProjectionMatrix;
76
- private _fieldOfView;
77
- private _orthographicSize;
78
- private _isProjectionDirty;
79
- private _isInvProjMatDirty;
80
- private _customAspectRatio;
81
- private _opaqueTextureEnabled;
82
- private _enableHDR;
83
- private _enablePostProcess;
84
- private _msaaSamples;
85
- private _renderTarget;
86
- private _updateFlagManager;
87
- private _frustumChangeFlag;
88
- private _isViewMatrixDirty;
89
- private _isInvViewProjDirty;
90
- private _shaderData;
91
- private _depthBufferParams;
92
- private _viewport;
93
- private _pixelViewport;
94
- private _inverseProjectionMatrix;
95
- private _invViewProjMat;
96
- /**
97
- * Whether to enable opaque texture.
98
- * If enabled, the opaque texture can be accessed in the shader using `camera_OpaqueTexture`.
99
- *
100
- * @defaultValue `false`
101
- */
102
- get opaqueTextureEnabled(): boolean;
103
- set opaqueTextureEnabled(value: boolean);
104
- /**
105
- * Shader data.
106
- */
107
- get shaderData(): ShaderData;
108
- /**
109
- * Near clip plane - the closest point to the camera when rendering occurs.
110
- */
111
- get nearClipPlane(): number;
112
- set nearClipPlane(value: number);
113
- /**
114
- * Far clip plane - the furthest point to the camera when rendering occurs.
115
- */
116
- get farClipPlane(): number;
117
- set farClipPlane(value: number);
118
- /**
119
- * The camera's view angle. activating when camera use perspective projection.
120
- */
121
- get fieldOfView(): number;
122
- set fieldOfView(value: number);
123
- /**
124
- * Aspect ratio. The default is automatically calculated by the viewport's aspect ratio. If it is manually set,
125
- * the manual value will be kept. Call resetAspectRatio() to restore it.
126
- */
127
- get aspectRatio(): number;
128
- set aspectRatio(value: number);
129
- /**
130
- * The viewport of the camera in normalized coordinates on the screen.
131
- * In normalized screen coordinates, the upper-left corner is (0, 0), and the lower-right corner is (1.0, 1.0).
132
- * @remarks Re-assignment is required after modification to ensure that the modification takes effect.
133
- */
134
- get viewport(): Vector4;
135
- set viewport(value: Vector4);
136
- /**
137
- * The viewport of the camera in pixel coordinates on the screen.
138
- * In pixel screen coordinates, the upper-left corner is (0, 0), and the lower-right corner is (1.0, 1.0).
139
- */
140
- get pixelViewport(): Rect;
141
- /**
142
- * Rendering priority, higher priority will be rendered on top of a camera with lower priority.
143
- */
144
- get priority(): number;
145
- set priority(value: number);
146
- /**
147
- * Whether it is orthogonal, the default is false. True will use orthographic projection, false will use perspective projection.
148
- */
149
- get isOrthographic(): boolean;
150
- set isOrthographic(value: boolean);
151
- /**
152
- * Half the size of the camera in orthographic mode.
153
- */
154
- get orthographicSize(): number;
155
- set orthographicSize(value: number);
156
- /**
157
- * View matrix.
158
- */
159
- get viewMatrix(): Readonly<Matrix>;
160
- set viewMatrix(value: Matrix);
161
- /**
162
- * The projection matrix is ​​calculated by the relevant parameters of the camera by default.
163
- * If it is manually set, the manual value will be maintained. Call resetProjectionMatrix() to restore it.
164
- */
165
- get projectionMatrix(): Readonly<Matrix>;
166
- set projectionMatrix(value: Matrix);
167
- /**
168
- * Whether to enable HDR.
169
- * @defaultValue `false`
170
- */
171
- get enableHDR(): boolean;
172
- set enableHDR(value: boolean);
173
- /**
174
- * Whether to enable post process.
175
- * @defaultValue `false`
176
- */
177
- get enablePostProcess(): boolean;
178
- set enablePostProcess(value: boolean);
179
- /**
180
- * RenderTarget. After setting, it will be rendered to the renderTarget. If it is empty, it will be rendered to the main canvas.
181
- */
182
- get renderTarget(): RenderTarget | null;
183
- set renderTarget(value: RenderTarget | null);
184
- /**
185
- * The number of samples used for hardware multisample anti-aliasing (MSAA) to smooth geometry edges during rasterization.
186
- * Higher sample counts (e.g., 2x, 4x, 8x) produce smoother edges.
187
- *
188
- * @defaultValue `MSAASamples.FourX`
189
- */
190
- get msaaSamples(): MSAASamples;
191
- set msaaSamples(value: MSAASamples);
192
- /**
193
- * Restore the view matrix to the world matrix of the entity.
194
- */
195
- resetViewMatrix(): void;
196
- /**
197
- * Restore the automatic calculation of projection matrix through fieldOfView, nearClipPlane and farClipPlane.
198
- */
199
- resetProjectionMatrix(): void;
200
- /**
201
- * Restore the automatic calculation of the aspect ratio through the viewport aspect ratio.
202
- */
203
- resetAspectRatio(): void;
204
- /**
205
- * Transform a point from world space to viewport space.
206
- * @param point - Point in world space
207
- * @param out - Point in viewport space, X and Y are the camera viewport space coordinates, Z is in world space units from the plane that camera forward is normal to
208
- * @returns Point in viewport space
209
- */
210
- worldToViewportPoint(point: Vector3, out: Vector3): Vector3;
211
- /**
212
- * Transform a point from viewport space to world space.
213
- * @param point - Point in viewport space, X and Y are the camera viewport space coordinates, Z is in world space units from the plane that camera forward is normal to
214
- * @param out - Point in world space
215
- * @returns Point in world space
216
- */
217
- viewportToWorldPoint(point: Vector3, out: Vector3): Vector3;
218
- /**
219
- * Generate a ray by a point in viewport.
220
- * @param point - Point in viewport space, X and Y are the camera viewport space coordinates
221
- * @param out - Ray
222
- * @returns Ray
223
- */
224
- viewportPointToRay(point: Vector2, out: Ray): Ray;
225
- /**
226
- * Transform the X and Y coordinates of a point from screen space to viewport space
227
- * @param point - Point in screen space
228
- * @param out - Point in viewport space
229
- * @returns Point in viewport space
230
- */
231
- screenToViewportPoint<T extends Vector2 | Vector3>(point: Vector3 | Vector2, out: T): T;
232
- /**
233
- * Transform the X and Y coordinates of a point from viewport space to screen space.
234
- * @param point - Point in viewport space
235
- * @param out - Point in screen space
236
- * @returns Point in screen space
237
- */
238
- viewportToScreenPoint<T extends Vector2 | Vector3 | Vector4>(point: T, out: T): T;
239
- /**
240
- * Transform a point from world space to screen space.
241
- *
242
- * @remarks
243
- * Screen space is defined in pixels, the left-top of the screen is (0,0), the right-top is (canvasPixelWidth,canvasPixelHeight).
244
- *
245
- * @param point - Point in world space
246
- * @param out - The result will be stored
247
- * @returns X and Y are the coordinates of the point in screen space, Z is the distance from the camera in world space
248
- */
249
- worldToScreenPoint(point: Vector3, out: Vector3): Vector3;
250
- /**
251
- * Transform a point from screen space to world space.
252
- *
253
- * @param point - Screen space point, the top-left of the screen is (0,0), the right-bottom is (pixelWidth,pixelHeight), The z position is in world units from the camera
254
- * @param out - Point in world space
255
- * @returns Point in world space
256
- */
257
- screenToWorldPoint(point: Vector3, out: Vector3): Vector3;
258
- /**
259
- * Generate a ray by a point in screen.
260
- * @param point - Point in screen space, the top-left of the screen is (0,0), the right-bottom is (pixelWidth,pixelHeight)
261
- * @param out - Ray
262
- * @returns Ray
263
- */
264
- screenPointToRay(point: Vector2, out: Ray): Ray;
265
- /**
266
- * Manually call the rendering of the camera.
267
- * @param cubeFace - Cube rendering surface collection
268
- * @param mipLevel - Set mip level the data want to write, only take effect in webgl2.0
269
- */
270
- render(cubeFace?: TextureCubeFace, mipLevel?: number): void;
271
- /**
272
- * Set the replacement shader.
273
- * @param shader - Replacement shader
274
- * @param replacementTagName - Sub shader tag name
275
- * @param failureStrategy - Replacement failure strategy, @defaultValue `ReplacementFailureStrategy.KeepOriginalShader`
276
- *
277
- * @remarks
278
- * If replacementTagName is not specified, the first sub shader will be replaced.
279
- * If replacementTagName is specified, the replacement shader will find the first sub shader which has the same tag value get by replacementTagKey. If failed to find the sub shader, the strategy will be determined by failureStrategy.
280
- */
281
- setReplacementShader(shader: Shader, replacementTagName?: string, failureStrategy?: ReplacementFailureStrategy): any;
282
- /**
283
- * Set the replacement shader.
284
- * @param shader - Replacement shader
285
- * @param replacementTag - Sub shader tag
286
- * @param failureStrategy - Replacement failure strategy, @defaultValue `ReplacementFailureStrategy.KeepOriginalShader`
287
- *
288
- * @remarks
289
- * If replacementTag is not specified, the first sub shader will be replaced.
290
- * If replacementTag is specified, the replacement shader will find the first sub shader which has the same tag value get by replacementTagKey. If failed to find the sub shader, the strategy will be determined by failureStrategy.
291
- */
292
- setReplacementShader(shader: Shader, replacementTag?: ShaderTagKey, failureStrategy?: ReplacementFailureStrategy): any;
293
- /**
294
- * Reset and clear the replacement shader.
295
- */
296
- resetReplacementShader(): void;
297
- /**
298
- * @inheritdoc
299
- */
300
- _onEnableInScene(): void;
301
- /**
302
- * @inheritdoc
303
- */
304
- _onDisableInScene(): void;
305
- private _updatePixelViewport;
306
- private _adjustPixelViewport;
307
- private _viewMatrixChange;
308
- private _projectionMatrixChange;
309
- private _innerViewportToWorldPoint;
310
- private _updateShaderData;
311
- /**
312
- * The inverse matrix of view projection matrix.
313
- */
314
- private _getInvViewProjMat;
315
- /**
316
- * The inverse of the projection matrix.
317
- */
318
- private _getInverseProjectionMatrix;
319
- private _onPixelViewportChanged;
320
- private _dispatchModify;
321
- }
package/types/Canvas.d.ts DELETED
@@ -1,19 +0,0 @@
1
- /**
2
- * Canvas.
3
- */
4
- export declare abstract class Canvas {
5
- private _width;
6
- private _height;
7
- /**
8
- * The width of the canvas.
9
- */
10
- get width(): number;
11
- set width(value: number);
12
- /**
13
- *The height of the canvas.
14
- */
15
- get height(): number;
16
- set height(value: number);
17
- protected abstract _onWidthChanged(value: number): void;
18
- protected abstract _onHeightChange(value: number): void;
19
- }
@@ -1,27 +0,0 @@
1
- import { IReferable } from "./asset/IReferable";
2
- import { EngineObject } from "./base";
3
- import { Entity } from "./Entity";
4
- import { Scene } from "./Scene";
5
- /**
6
- * The base class of the components.
7
- */
8
- export declare class Component extends EngineObject {
9
- protected _phasedActiveInScene: boolean;
10
- private _phasedActive;
11
- private _enabled;
12
- /**
13
- * Indicates whether the component is enabled.
14
- */
15
- get enabled(): boolean;
16
- set enabled(value: boolean);
17
- /**
18
- * The entity which the component belongs to.
19
- */
20
- get entity(): Entity;
21
- /**
22
- * The scene which the component's entity belongs to.
23
- */
24
- get scene(): Scene;
25
- constructor(entity: Entity);
26
- protected _addResourceReferCount(resource: IReferable, count: number): void;
27
- }
@@ -1,25 +0,0 @@
1
- import { Component } from "./Component";
2
- import { Entity } from "./Entity";
3
- type ComponentConstructor = new (entity: Entity) => Component;
4
- /**
5
- * Declare dependent component.
6
- * @param component - Dependent component
7
- * @param dependentMode - Dependent mode
8
- */
9
- export declare function dependentComponents(component: ComponentConstructor, dependentMode?: DependentMode): any;
10
- /**
11
- * Declare dependent components.
12
- * @param components - Dependent components
13
- * @param dependentMode - Dependent mode
14
- */
15
- export declare function dependentComponents(components: ComponentConstructor[], dependentMode?: DependentMode): any;
16
- /**
17
- * Dependent mode.
18
- */
19
- export declare enum DependentMode {
20
- /** Check only, throw error if dependent components do not exist. */
21
- CheckOnly = 0,
22
- /** Auto add if dependent components do not exist. */
23
- AutoAdd = 1
24
- }
25
- export {};
@@ -1,52 +0,0 @@
1
- import { Camera } from "./Camera";
2
- import { Component } from "./Component";
3
- import { Renderer } from "./Renderer";
4
- import { Script } from "./Script";
5
- import { Animator } from "./animation";
6
- import { IUICanvas } from "./ui/IUICanvas";
7
- /**
8
- * The manager of the components.
9
- */
10
- export declare class ComponentsManager {
11
- private _onStartScripts;
12
- private _onUpdateScripts;
13
- private _onLateUpdateScripts;
14
- private _onPhysicsUpdateScripts;
15
- private _pendingDestroyScripts;
16
- private _disposeDestroyScripts;
17
- private _onUpdateAnimations;
18
- private _onUpdateRenderers;
19
- private _componentsContainerPool;
20
- addCamera(camera: Camera): void;
21
- removeCamera(camera: Camera): void;
22
- sortCameras(): void;
23
- addRenderer(renderer: Renderer): void;
24
- removeRenderer(renderer: Renderer): void;
25
- addUICanvas(uiCanvas: IUICanvas, isOverlay: boolean): void;
26
- removeUICanvas(uiCanvas: IUICanvas, isOverlay: boolean): void;
27
- sortOverlayUICanvases(): void;
28
- addOnStartScript(script: Script): void;
29
- removeOnStartScript(script: Script): void;
30
- addOnUpdateScript(script: Script): void;
31
- removeOnUpdateScript(script: Script): void;
32
- addOnLateUpdateScript(script: Script): void;
33
- removeOnLateUpdateScript(script: Script): void;
34
- addOnPhysicsUpdateScript(script: Script): void;
35
- removeOnPhysicsUpdateScript(script: Script): void;
36
- addOnUpdateAnimations(animation: Animator): void;
37
- removeOnUpdateAnimations(animation: Animator): void;
38
- addOnUpdateRenderers(renderer: Renderer): void;
39
- removeOnUpdateRenderers(renderer: Renderer): void;
40
- addPendingDestroyScript(component: Script): void;
41
- callScriptOnStart(): void;
42
- callScriptOnUpdate(deltaTime: number): void;
43
- callScriptOnLateUpdate(deltaTime: number): void;
44
- callScriptOnPhysicsUpdate(): void;
45
- callAnimationUpdate(deltaTime: number): void;
46
- callRendererOnUpdate(deltaTime: number): void;
47
- handlingInvalidScripts(): void;
48
- callCameraOnBeginRender(camera: Camera): void;
49
- callCameraOnEndRender(camera: Camera): void;
50
- getActiveChangedTempList(): Component[];
51
- putActiveChangedTempList(componentContainer: Component[]): void;
52
- }