@galacean/engine-core 0.9.20 → 0.9.22

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 (147) hide show
  1. package/dist/main.js +10 -4
  2. package/dist/main.js.map +1 -1
  3. package/dist/miniprogram.js +10 -4
  4. package/dist/module.js +10 -4
  5. package/dist/module.js.map +1 -1
  6. package/package.json +3 -3
  7. package/types/RenderPipeline/CullingResults.d.ts +1 -0
  8. package/types/RenderPipeline/DepthOnlyPass.d.ts +1 -0
  9. package/types/RenderPipeline/PipelinePass.d.ts +16 -0
  10. package/types/RenderPipeline/PipelineUtils.d.ts +1 -0
  11. package/types/RenderPipeline/RenderElementX.d.ts +12 -0
  12. package/types/SafeLoopArray.d.ts +37 -0
  13. package/types/Ticker.d.ts +30 -0
  14. package/types/animation/animationCurve/AnimationRectCurve.d.ts +8 -0
  15. package/types/animation/animationCurve/AnimationRefCurve.d.ts +8 -0
  16. package/types/animation/internal/AnimationCurveOwnerLayerData.d.ts +1 -0
  17. package/types/enums/ActiveChangeFlag.d.ts +6 -0
  18. package/types/enums/DepthTextureMode.d.ts +7 -0
  19. package/types/graphic/Primitive.d.ts +1 -0
  20. package/types/graphic/PrimitiveVertexBinding.d.ts +1 -0
  21. package/types/graphic/SubPrimitive.d.ts +9 -0
  22. package/types/particle/ParticleBufferUtils.d.ts +1 -0
  23. package/types/particle/ParticleData.d.ts +1 -0
  24. package/types/particle/ParticleGenerator.d.ts +72 -0
  25. package/types/particle/ParticleMaterial.d.ts +28 -0
  26. package/types/particle/ParticleMesh.d.ts +289 -0
  27. package/types/particle/ParticleShaderDeclaration.d.ts +1 -0
  28. package/types/particle/ParticleShaderMacro.d.ts +1 -0
  29. package/types/particle/ParticleShaderProperty.d.ts +1 -0
  30. package/types/particle/ParticleSystem.d.ts +41 -0
  31. package/types/particle/ParticleVertexElements.d.ts +1 -0
  32. package/types/particle/ParticleVertexUtils.d.ts +1 -0
  33. package/types/particle/enum/ParticleAnimationRowMode.d.ts +9 -0
  34. package/types/particle/enum/ParticleAnimationType.d.ts +9 -0
  35. package/types/particle/enum/ParticleCurveMode.d.ts +13 -0
  36. package/types/particle/enum/ParticleGradientMode.d.ts +13 -0
  37. package/types/particle/enum/ParticleRenderMode.d.ts +17 -0
  38. package/types/particle/enum/ParticleScaleMode.d.ts +11 -0
  39. package/types/particle/enum/ParticleShapeMultiModeValue.d.ts +9 -0
  40. package/types/particle/enum/ParticleShapeType.d.ts +15 -0
  41. package/types/particle/enum/ParticleSimulationSpace.d.ts +9 -0
  42. package/types/particle/enum/index.d.ts +9 -0
  43. package/types/particle/enums/ParticleCurveMode.d.ts +9 -0
  44. package/types/particle/enums/ParticleGradientMode.d.ts +9 -0
  45. package/types/particle/enums/ParticleRandomSubSeeds.d.ts +1 -0
  46. package/types/particle/enums/ParticleRenderMode.d.ts +17 -0
  47. package/types/particle/enums/ParticleScaleMode.d.ts +11 -0
  48. package/types/particle/enums/ParticleSimulationSpace.d.ts +9 -0
  49. package/types/particle/enums/ParticleStopMode.d.ts +6 -0
  50. package/types/particle/enums/attributes/BillboardParticleVertexAttribute.d.ts +1 -0
  51. package/types/particle/enums/attributes/MeshParticleVertexAttribute.d.ts +5 -0
  52. package/types/particle/enums/attributes/ParticleInstanceVertexAttribute.d.ts +1 -0
  53. package/types/particle/module/Burst.d.ts +38 -0
  54. package/types/particle/module/ColorGradient.d.ts +75 -0
  55. package/types/particle/module/ColorOverLifetimeModule.d.ts +20 -0
  56. package/types/particle/module/EmissionModule.d.ts +63 -0
  57. package/types/particle/module/FrameOverTime.d.ts +73 -0
  58. package/types/particle/module/ParticleCurve.d.ts +37 -0
  59. package/types/particle/module/RotationOverLifetimeModule.d.ts +21 -0
  60. package/types/particle/module/RotationVelocityGradient.d.ts +184 -0
  61. package/types/particle/module/SizeGradient.d.ts +151 -0
  62. package/types/particle/module/SizeOverLifetimeModule.d.ts +21 -0
  63. package/types/particle/module/StartFrame.d.ts +46 -0
  64. package/types/particle/module/TextureSheetAnimationModule.d.ts +37 -0
  65. package/types/particle/module/VelocityGradient.d.ts +110 -0
  66. package/types/particle/module/VelocityOverLifetimeModule.d.ts +22 -0
  67. package/types/particle/module/index.d.ts +15 -0
  68. package/types/particle/module/shape/BaseShape.d.ts +26 -0
  69. package/types/particle/module/shape/BoxShape.d.ts +20 -0
  70. package/types/particle/module/shape/CircleShape.d.ts +27 -0
  71. package/types/particle/module/shape/ConeShape.d.ts +35 -0
  72. package/types/particle/module/shape/HemisphereShape.d.ts +23 -0
  73. package/types/particle/module/shape/ShapeUtils.d.ts +1 -0
  74. package/types/particle/module/shape/SphereShape.d.ts +23 -0
  75. package/types/particle/module/shape/index.d.ts +5 -0
  76. package/types/particle/modules/Burst.d.ts +14 -0
  77. package/types/particle/modules/ColorOverLifetimeModule.d.ts +20 -0
  78. package/types/particle/modules/EmissionModule.d.ts +45 -0
  79. package/types/particle/modules/MainModule.d.ts +70 -0
  80. package/types/particle/modules/ParticleCompositeCurve.d.ts +56 -0
  81. package/types/particle/modules/ParticleCompositeGradient.d.ts +55 -0
  82. package/types/particle/modules/ParticleCurve.d.ts +56 -0
  83. package/types/particle/modules/ParticleGeneratorModule.d.ts +12 -0
  84. package/types/particle/modules/ParticleGradient.d.ts +94 -0
  85. package/types/particle/modules/RotationOverLifetimeModule.d.ts +34 -0
  86. package/types/particle/modules/ShapeModule.d.ts +9 -0
  87. package/types/particle/modules/SizeOverLifetimeModule.d.ts +34 -0
  88. package/types/particle/modules/TextureSheetAnimationModule.d.ts +38 -0
  89. package/types/particle/modules/VelocityOverLifetimeModule.d.ts +34 -0
  90. package/types/particle/modules/shape/BaseShape.d.ts +12 -0
  91. package/types/particle/modules/shape/BoxShape.d.ts +11 -0
  92. package/types/particle/modules/shape/CircleShape.d.ts +17 -0
  93. package/types/particle/modules/shape/ConeShape.d.ts +28 -0
  94. package/types/particle/modules/shape/HemisphereShape.d.ts +9 -0
  95. package/types/particle/modules/shape/ShapeUtils.d.ts +1 -0
  96. package/types/particle/modules/shape/SphereShape.d.ts +9 -0
  97. package/types/particle/modules/shape/enums/ParticleShapeArcMode.d.ts +9 -0
  98. package/types/particle/modules/shape/enums/ParticleShapeMultiModeValue.d.ts +9 -0
  99. package/types/particle/modules/shape/enums/ParticleShapeType.d.ts +15 -0
  100. package/types/particle/modules/shape/index.d.ts +6 -0
  101. package/types/particle/moudules/Burst.d.ts +25 -0
  102. package/types/particle/moudules/Emission.d.ts +47 -0
  103. package/types/particle/moudules/EmissionModule.d.ts +49 -0
  104. package/types/particle/moudules/MainModule.d.ts +59 -0
  105. package/types/particle/moudules/ParticleCurve.d.ts +27 -0
  106. package/types/particle/moudules/ParticleGradient.d.ts +28 -0
  107. package/types/particle/moudules/ShapeModule.d.ts +7 -0
  108. package/types/particle/moudules/shape/BaseShape.d.ts +28 -0
  109. package/types/particle/moudules/shape/BoxShape.d.ts +20 -0
  110. package/types/particle/moudules/shape/CircleShape.d.ts +27 -0
  111. package/types/particle/moudules/shape/ConeShape.d.ts +35 -0
  112. package/types/particle/moudules/shape/HemisphereShape.d.ts +23 -0
  113. package/types/particle/moudules/shape/ShapeUtils.d.ts +1 -0
  114. package/types/particle/moudules/shape/SphereShape.d.ts +23 -0
  115. package/types/particle/moudules/shape/enums/ParticleShapeMultiModeValue.d.ts +9 -0
  116. package/types/particle/moudules/shape/enums/ParticleShapeType.d.ts +15 -0
  117. package/types/particle/moudules/shape/index.d.ts +5 -0
  118. package/types/physics/PhysicsScene.d.ts +79 -0
  119. package/types/shader/enums/RenderStateElementKey.d.ts +60 -0
  120. package/types/shaderlib/particle/index.d.ts +14 -0
  121. package/types/shadow/PipelinePass.d.ts +16 -0
  122. package/types/utils/BoolUpdateFlag.d.ts +12 -0
  123. package/types/utils/DisorderedArray.d.ts +18 -0
  124. package/types/utils/SafeLoopArray.d.ts +41 -0
  125. package/types/utils/UpdateFlag.d.ts +20 -0
  126. package/types/utils/UpdateFlagManager.d.ts +1 -0
  127. package/types/utils/Utils.d.ts +31 -0
  128. package/types/xr/XRManager.d.ts +31 -0
  129. package/types/xr/component/XRPoseDriver.d.ts +10 -0
  130. package/types/xr/data/XRCamera.d.ts +6 -0
  131. package/types/xr/data/XRDevice.d.ts +9 -0
  132. package/types/xr/data/XRHandle.d.ts +10 -0
  133. package/types/xr/enum/EnumXRButton.d.ts +5 -0
  134. package/types/xr/enum/EnumXRDevicePhase.d.ts +4 -0
  135. package/types/xr/enum/EnumXRFeature.d.ts +9 -0
  136. package/types/xr/enum/EnumXRInputSource.d.ts +8 -0
  137. package/types/xr/enum/EnumXRMode.d.ts +7 -0
  138. package/types/xr/enum/EnumXRSubsystem.d.ts +4 -0
  139. package/types/xr/enum/EnumXRTrackingMode.d.ts +7 -0
  140. package/types/xr/feature/XRCameraManager.d.ts +21 -0
  141. package/types/xr/feature/XRFeature.d.ts +29 -0
  142. package/types/xr/feature/XRImageTrackManager.d.ts +10 -0
  143. package/types/xr/feature/XRInputManager.d.ts +16 -0
  144. package/types/xr/index.d.ts +18 -0
  145. package/types/xr/provider/XRProvider.d.ts +19 -0
  146. package/types/xr/subsystem/XRInputSubsystem.d.ts +5 -0
  147. package/types/xr/subsystem/XRSubsystem.d.ts +30 -0
@@ -21646,16 +21646,22 @@ AnimationCurveOwner.registerAssembler(Transform, "scale", ScaleAnimationCurveOwn
21646
21646
  /**
21647
21647
  * @internal
21648
21648
  */ var BlendShapeWeightsAnimationCurveOwnerAssembler = /*#__PURE__*/ function() {
21649
- function BlendShapeWeightsAnimationCurveOwnerAssembler() {}
21649
+ function BlendShapeWeightsAnimationCurveOwnerAssembler() {
21650
+ this._skinnedMeshRenderer = [];
21651
+ }
21650
21652
  var _proto = BlendShapeWeightsAnimationCurveOwnerAssembler.prototype;
21651
21653
  _proto.initialize = function initialize(owner) {
21652
- this._skinnedMeshRenderer = owner.target.getComponent(SkinnedMeshRenderer);
21654
+ // @todo: Compatible with multiple SkinnedMeshRenderer in a entity, optimize later.
21655
+ owner.target.getComponents(SkinnedMeshRenderer, this._skinnedMeshRenderer);
21653
21656
  };
21654
21657
  _proto.getTargetValue = function getTargetValue() {
21655
- return this._skinnedMeshRenderer.blendShapeWeights;
21658
+ return this._skinnedMeshRenderer[0].blendShapeWeights;
21656
21659
  };
21657
21660
  _proto.setTargetValue = function setTargetValue(value) {
21658
- this._skinnedMeshRenderer.blendShapeWeights = value;
21661
+ var skinnedMeshRenderer = this._skinnedMeshRenderer;
21662
+ for(var i = 0, n = skinnedMeshRenderer.length; i < n; i++){
21663
+ skinnedMeshRenderer[i].blendShapeWeights = value;
21664
+ }
21659
21665
  };
21660
21666
  return BlendShapeWeightsAnimationCurveOwnerAssembler;
21661
21667
  }();
package/dist/module.js CHANGED
@@ -21641,16 +21641,22 @@ AnimationCurveOwner.registerAssembler(Transform, "scale", ScaleAnimationCurveOwn
21641
21641
  /**
21642
21642
  * @internal
21643
21643
  */ var BlendShapeWeightsAnimationCurveOwnerAssembler = /*#__PURE__*/ function() {
21644
- function BlendShapeWeightsAnimationCurveOwnerAssembler() {}
21644
+ function BlendShapeWeightsAnimationCurveOwnerAssembler() {
21645
+ this._skinnedMeshRenderer = [];
21646
+ }
21645
21647
  var _proto = BlendShapeWeightsAnimationCurveOwnerAssembler.prototype;
21646
21648
  _proto.initialize = function initialize(owner) {
21647
- this._skinnedMeshRenderer = owner.target.getComponent(SkinnedMeshRenderer);
21649
+ // @todo: Compatible with multiple SkinnedMeshRenderer in a entity, optimize later.
21650
+ owner.target.getComponents(SkinnedMeshRenderer, this._skinnedMeshRenderer);
21648
21651
  };
21649
21652
  _proto.getTargetValue = function getTargetValue() {
21650
- return this._skinnedMeshRenderer.blendShapeWeights;
21653
+ return this._skinnedMeshRenderer[0].blendShapeWeights;
21651
21654
  };
21652
21655
  _proto.setTargetValue = function setTargetValue(value) {
21653
- this._skinnedMeshRenderer.blendShapeWeights = value;
21656
+ var skinnedMeshRenderer = this._skinnedMeshRenderer;
21657
+ for(var i = 0, n = skinnedMeshRenderer.length; i < n; i++){
21658
+ skinnedMeshRenderer[i].blendShapeWeights = value;
21659
+ }
21654
21660
  };
21655
21661
  return BlendShapeWeightsAnimationCurveOwnerAssembler;
21656
21662
  }();