@galacean/engine-core 1.1.0-beta.10 → 1.1.0-beta.11

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 (97) hide show
  1. package/dist/main.js +31 -31
  2. package/dist/main.js.map +1 -1
  3. package/dist/miniprogram.js +31 -31
  4. package/dist/module.js +31 -31
  5. package/dist/module.js.map +1 -1
  6. package/package.json +3 -3
  7. package/types/RenderPipeline/RenderElementX.d.ts +12 -0
  8. package/types/SafeLoopArray.d.ts +37 -0
  9. package/types/Ticker.d.ts +30 -0
  10. package/types/animation/internal/AnimationCurveOwnerLayerData.d.ts +1 -0
  11. package/types/graphic/PrimitiveVertexBinding.d.ts +1 -0
  12. package/types/particle/ParticleData.d.ts +1 -0
  13. package/types/particle/ParticleMesh.d.ts +289 -0
  14. package/types/particle/ParticleShaderDeclaration.d.ts +1 -0
  15. package/types/particle/ParticleShaderMacro.d.ts +1 -0
  16. package/types/particle/ParticleShaderProperty.d.ts +1 -0
  17. package/types/particle/ParticleSystem.d.ts +41 -0
  18. package/types/particle/ParticleVertexElements.d.ts +1 -0
  19. package/types/particle/ParticleVertexUtils.d.ts +1 -0
  20. package/types/particle/enum/ParticleAnimationRowMode.d.ts +9 -0
  21. package/types/particle/enum/ParticleAnimationType.d.ts +9 -0
  22. package/types/particle/enum/ParticleCurveMode.d.ts +13 -0
  23. package/types/particle/enum/ParticleGradientMode.d.ts +13 -0
  24. package/types/particle/enum/ParticleRenderMode.d.ts +17 -0
  25. package/types/particle/enum/ParticleScaleMode.d.ts +11 -0
  26. package/types/particle/enum/ParticleShapeMultiModeValue.d.ts +9 -0
  27. package/types/particle/enum/ParticleShapeType.d.ts +15 -0
  28. package/types/particle/enum/ParticleSimulationSpace.d.ts +9 -0
  29. package/types/particle/enum/index.d.ts +9 -0
  30. package/types/particle/module/Burst.d.ts +38 -0
  31. package/types/particle/module/ColorGradient.d.ts +75 -0
  32. package/types/particle/module/ColorOverLifetimeModule.d.ts +20 -0
  33. package/types/particle/module/EmissionModule.d.ts +63 -0
  34. package/types/particle/module/FrameOverTime.d.ts +73 -0
  35. package/types/particle/module/ParticleCurve.d.ts +37 -0
  36. package/types/particle/module/RotationOverLifetimeModule.d.ts +21 -0
  37. package/types/particle/module/RotationVelocityGradient.d.ts +184 -0
  38. package/types/particle/module/SizeGradient.d.ts +151 -0
  39. package/types/particle/module/SizeOverLifetimeModule.d.ts +21 -0
  40. package/types/particle/module/StartFrame.d.ts +46 -0
  41. package/types/particle/module/TextureSheetAnimationModule.d.ts +37 -0
  42. package/types/particle/module/VelocityGradient.d.ts +110 -0
  43. package/types/particle/module/VelocityOverLifetimeModule.d.ts +22 -0
  44. package/types/particle/module/index.d.ts +15 -0
  45. package/types/particle/module/shape/BaseShape.d.ts +26 -0
  46. package/types/particle/module/shape/BoxShape.d.ts +20 -0
  47. package/types/particle/module/shape/CircleShape.d.ts +27 -0
  48. package/types/particle/module/shape/ConeShape.d.ts +35 -0
  49. package/types/particle/module/shape/HemisphereShape.d.ts +23 -0
  50. package/types/particle/module/shape/ShapeUtils.d.ts +1 -0
  51. package/types/particle/module/shape/SphereShape.d.ts +23 -0
  52. package/types/particle/module/shape/index.d.ts +5 -0
  53. package/types/particle/modules/ShapeModule.d.ts +9 -0
  54. package/types/particle/modules/shape/enums/ParticleShapeMultiModeValue.d.ts +9 -0
  55. package/types/particle/moudules/Burst.d.ts +25 -0
  56. package/types/particle/moudules/Emission.d.ts +47 -0
  57. package/types/particle/moudules/EmissionModule.d.ts +49 -0
  58. package/types/particle/moudules/MainModule.d.ts +59 -0
  59. package/types/particle/moudules/ParticleCurve.d.ts +27 -0
  60. package/types/particle/moudules/ParticleGradient.d.ts +28 -0
  61. package/types/particle/moudules/ShapeModule.d.ts +7 -0
  62. package/types/particle/moudules/shape/BaseShape.d.ts +28 -0
  63. package/types/particle/moudules/shape/BoxShape.d.ts +20 -0
  64. package/types/particle/moudules/shape/CircleShape.d.ts +27 -0
  65. package/types/particle/moudules/shape/ConeShape.d.ts +35 -0
  66. package/types/particle/moudules/shape/HemisphereShape.d.ts +23 -0
  67. package/types/particle/moudules/shape/ShapeUtils.d.ts +1 -0
  68. package/types/particle/moudules/shape/SphereShape.d.ts +23 -0
  69. package/types/particle/moudules/shape/enums/ParticleShapeMultiModeValue.d.ts +9 -0
  70. package/types/particle/moudules/shape/enums/ParticleShapeType.d.ts +15 -0
  71. package/types/particle/moudules/shape/index.d.ts +5 -0
  72. package/types/shadow/PipelinePass.d.ts +16 -0
  73. package/types/utils/BoolUpdateFlag.d.ts +12 -0
  74. package/types/utils/DisorderedArray.d.ts +18 -0
  75. package/types/utils/UpdateFlag.d.ts +20 -0
  76. package/types/utils/UpdateFlagManager.d.ts +1 -0
  77. package/types/utils/Utils.d.ts +31 -0
  78. package/types/xr/XRManager.d.ts +31 -0
  79. package/types/xr/component/XRPoseDriver.d.ts +10 -0
  80. package/types/xr/data/XRCamera.d.ts +6 -0
  81. package/types/xr/data/XRDevice.d.ts +9 -0
  82. package/types/xr/data/XRHandle.d.ts +10 -0
  83. package/types/xr/enum/EnumXRButton.d.ts +5 -0
  84. package/types/xr/enum/EnumXRDevicePhase.d.ts +4 -0
  85. package/types/xr/enum/EnumXRFeature.d.ts +9 -0
  86. package/types/xr/enum/EnumXRInputSource.d.ts +8 -0
  87. package/types/xr/enum/EnumXRMode.d.ts +7 -0
  88. package/types/xr/enum/EnumXRSubsystem.d.ts +4 -0
  89. package/types/xr/enum/EnumXRTrackingMode.d.ts +7 -0
  90. package/types/xr/feature/XRCameraManager.d.ts +21 -0
  91. package/types/xr/feature/XRFeature.d.ts +29 -0
  92. package/types/xr/feature/XRImageTrackManager.d.ts +10 -0
  93. package/types/xr/feature/XRInputManager.d.ts +16 -0
  94. package/types/xr/index.d.ts +18 -0
  95. package/types/xr/provider/XRProvider.d.ts +19 -0
  96. package/types/xr/subsystem/XRInputSubsystem.d.ts +5 -0
  97. package/types/xr/subsystem/XRSubsystem.d.ts +30 -0
package/dist/main.js CHANGED
@@ -15876,6 +15876,7 @@ __decorate([
15876
15876
  case "pointercancel":
15877
15877
  pointer.phase = exports.PointerPhase.Leave;
15878
15878
  pointer._firePointerExitAndEnter(null);
15879
+ break;
15879
15880
  }
15880
15881
  }
15881
15882
  events.length = 0;
@@ -16003,7 +16004,7 @@ __decorate([
16003
16004
  var point = PointerManager._tempPoint, ray = PointerManager._tempRay, hitResult = PointerManager._tempHitResult;
16004
16005
  for(var i = scenes.length - 1; i >= 0; i--){
16005
16006
  var scene = scenes[i];
16006
- if (scene.destroyed) {
16007
+ if (!scene.isActive || scene.destroyed) {
16007
16008
  continue;
16008
16009
  }
16009
16010
  var cameras = scene._activeCameras;
@@ -16744,57 +16745,56 @@ ShaderPool.init();
16744
16745
  this._textRenderDataPool.resetPool();
16745
16746
  var _this = this, inputManager = _this.inputManager, physicsInitialized = _this._physicsInitialized;
16746
16747
  inputManager._update();
16747
- var loopScenes = this._sceneManager._scenes.getLoopArray();
16748
- var sceneCount = loopScenes.length;
16748
+ var scenes = this._sceneManager._scenes.getLoopArray();
16749
+ var sceneCount = scenes.length;
16749
16750
  // Sort cameras and fire script `onStart`
16750
16751
  for(var i = 0; i < sceneCount; i++){
16751
- var scene = loopScenes[i];
16752
- if (scene.destroyed) continue;
16752
+ var scene = scenes[i];
16753
+ if (!scene.isActive || scene.destroyed) continue;
16753
16754
  scene._cameraNeedSorting && scene._sortCameras();
16754
16755
  scene._componentsManager.callScriptOnStart();
16755
16756
  }
16756
16757
  // Update physics and fire `onPhysicsUpdate`
16757
16758
  if (physicsInitialized) {
16758
16759
  for(var i1 = 0; i1 < sceneCount; i1++){
16759
- var scene1 = loopScenes[i1];
16760
- if (scene1.destroyed) continue;
16760
+ var scene1 = scenes[i1];
16761
+ if (!scene1.isActive || scene1.destroyed) continue;
16761
16762
  scene1.physics._update(deltaTime);
16762
16763
  }
16763
16764
  }
16764
16765
  // Fire `onPointerXX`
16765
- physicsInitialized && inputManager._firePointerScript(loopScenes);
16766
+ physicsInitialized && inputManager._firePointerScript(scenes);
16766
16767
  // Fire `onUpdate`
16767
16768
  for(var i2 = 0; i2 < sceneCount; i2++){
16768
- var scene2 = loopScenes[i2];
16769
- if (scene2.destroyed) continue;
16769
+ var scene2 = scenes[i2];
16770
+ if (!scene2.isActive || scene2.destroyed) continue;
16770
16771
  scene2._componentsManager.callScriptOnUpdate(deltaTime);
16771
16772
  }
16772
16773
  // Update `Animator` logic
16773
16774
  for(var i3 = 0; i3 < sceneCount; i3++){
16774
- var scene3 = loopScenes[i3];
16775
- if (scene3.destroyed) continue;
16775
+ var scene3 = scenes[i3];
16776
+ if (!scene3.isActive || scene3.destroyed) continue;
16776
16777
  scene3._componentsManager.callAnimationUpdate(deltaTime);
16777
16778
  }
16778
16779
  // Fire `onLateUpdate`
16779
16780
  for(var i4 = 0; i4 < sceneCount; i4++){
16780
- var scene4 = loopScenes[i4];
16781
- if (scene4.destroyed) continue;
16781
+ var scene4 = scenes[i4];
16782
+ if (!scene4.isActive || scene4.destroyed) continue;
16782
16783
  scene4._componentsManager.callScriptOnLateUpdate(deltaTime);
16783
16784
  }
16784
16785
  // Render scene and fire `onBeginRender` and `onEndRender`
16785
16786
  if (!this._isDeviceLost) {
16786
- this._render(loopScenes);
16787
- }
16788
- // Handling invalid scripts and fire `onDestroy`
16789
- for(var i5 = 0; i5 < sceneCount; i5++){
16790
- var scene5 = loopScenes[i5];
16791
- if (scene5.destroyed) continue;
16792
- if (!this._waitingDestroy) {
16793
- scene5._componentsManager.handlingInvalidScripts();
16794
- }
16787
+ this._render(scenes);
16795
16788
  }
16796
16789
  if (this._waitingDestroy) {
16797
16790
  this._destroy();
16791
+ } else {
16792
+ // Handling invalid scripts and fire `onDestroy`
16793
+ for(var i5 = 0; i5 < sceneCount; i5++){
16794
+ var scene5 = scenes[i5];
16795
+ if (!scene5.isActive || scene5.destroyed) continue;
16796
+ scene5._componentsManager.handlingInvalidScripts();
16797
+ }
16798
16798
  }
16799
16799
  if (this._waitingGC) {
16800
16800
  this._gc();
@@ -16873,19 +16873,19 @@ ShaderPool.init();
16873
16873
  };
16874
16874
  /**
16875
16875
  * @internal
16876
- */ _proto._render = function _render(loopScenes) {
16876
+ */ _proto._render = function _render(scenes) {
16877
16877
  // Update `Renderer` logic and shader data
16878
- for(var i = 0, n = loopScenes.length; i < n; i++){
16879
- var scene = loopScenes[i];
16880
- if (scene.destroyed) continue;
16881
- var deltaTime = this.time.deltaTime;
16878
+ var deltaTime = this.time.deltaTime;
16879
+ for(var i = 0, n = scenes.length; i < n; i++){
16880
+ var scene = scenes[i];
16881
+ if (!scene.isActive || scene.destroyed) continue;
16882
16882
  scene._componentsManager.callRendererOnUpdate(deltaTime);
16883
16883
  scene._updateShaderData();
16884
16884
  }
16885
16885
  // Fire script `onBeginRender` and `onEndRender`
16886
- for(var i1 = 0, n1 = loopScenes.length; i1 < n1; i1++){
16887
- var scene1 = loopScenes[i1];
16888
- if (scene1.destroyed) continue;
16886
+ for(var i1 = 0, n1 = scenes.length; i1 < n1; i1++){
16887
+ var scene1 = scenes[i1];
16888
+ if (!scene1.isActive || scene1.destroyed) continue;
16889
16889
  var cameras = scene1._activeCameras;
16890
16890
  var cameraCount = cameras.length;
16891
16891
  if (cameraCount > 0) {