@galacean/engine-core 1.1.0-beta.22 → 1.1.0-beta.24

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 (57) hide show
  1. package/dist/main.js +10 -8
  2. package/dist/main.js.map +1 -1
  3. package/dist/miniprogram.js +11 -9
  4. package/dist/module.js +10 -8
  5. package/dist/module.js.map +1 -1
  6. package/package.json +3 -3
  7. package/types/2d/data/RenderData2D.d.ts +1 -0
  8. package/types/RenderPipeline/MeshRenderData.d.ts +17 -0
  9. package/types/RenderPipeline/MeshRenderElement.d.ts +19 -0
  10. package/types/RenderPipeline/SpriteElement.d.ts +15 -0
  11. package/types/RenderPipeline/SpriteMaskElement.d.ts +12 -0
  12. package/types/RenderPipeline/TextRenderElement.d.ts +8 -0
  13. package/types/asset/IRefObject.d.ts +2 -0
  14. package/types/asset/RefObject.d.ts +27 -0
  15. package/types/base/Event.d.ts +24 -0
  16. package/types/base/Util.d.ts +14 -0
  17. package/types/physics/PhysicsManager.d.ts +78 -0
  18. package/types/animation/AnimatorLayerMask.d.ts +0 -45
  19. package/types/animation/LayerPathMask.d.ts +0 -16
  20. package/types/xr/XRManager.d.ts +0 -94
  21. package/types/xr/feature/XRFeature.d.ts +0 -60
  22. package/types/xr/feature/XRFeatureManager.d.ts +0 -65
  23. package/types/xr/feature/XRFeatureType.d.ts +0 -15
  24. package/types/xr/feature/camera/XRCameraManager.d.ts +0 -34
  25. package/types/xr/feature/hitTest/TrackableType.d.ts +0 -12
  26. package/types/xr/feature/hitTest/XRHitTest.d.ts +0 -41
  27. package/types/xr/feature/hitTest/XRHitTestManager.d.ts +0 -38
  28. package/types/xr/feature/hitTest/XRHitTestType.d.ts +0 -16
  29. package/types/xr/feature/movementTracking/XRMovementTracking.d.ts +0 -18
  30. package/types/xr/feature/movementTracking/XRMovementTrackingManager.d.ts +0 -10
  31. package/types/xr/feature/movementTracking/XRMovementTrackingMode.d.ts +0 -5
  32. package/types/xr/feature/trackable/XRRequestTrackingState.d.ts +0 -11
  33. package/types/xr/feature/trackable/XRTrackableFeature.d.ts +0 -44
  34. package/types/xr/feature/trackable/XRTrackableManager.d.ts +0 -41
  35. package/types/xr/feature/trackable/anchor/XRAnchorTracking.d.ts +0 -29
  36. package/types/xr/feature/trackable/anchor/XRAnchorTrackingManager.d.ts +0 -20
  37. package/types/xr/feature/trackable/image/XRImageTracking.d.ts +0 -40
  38. package/types/xr/feature/trackable/image/XRImageTrackingManager.d.ts +0 -31
  39. package/types/xr/feature/trackable/image/XRReferenceImage.d.ts +0 -11
  40. package/types/xr/feature/trackable/plane/XRPlaneMode.d.ts +0 -13
  41. package/types/xr/feature/trackable/plane/XRPlaneTracking.d.ts +0 -20
  42. package/types/xr/feature/trackable/plane/XRPlaneTrackingManager.d.ts +0 -11
  43. package/types/xr/index.d.ts +0 -26
  44. package/types/xr/input/XRCamera.d.ts +0 -26
  45. package/types/xr/input/XRController.d.ts +0 -36
  46. package/types/xr/input/XRControllerPoseMode.d.ts +0 -9
  47. package/types/xr/input/XRInputButton.d.ts +0 -19
  48. package/types/xr/input/XRInputEvent.d.ts +0 -24
  49. package/types/xr/input/XRInputEventType.d.ts +0 -11
  50. package/types/xr/input/XRInputManager.d.ts +0 -57
  51. package/types/xr/input/XRInputType.d.ts +0 -23
  52. package/types/xr/input/XRTargetRayMode.d.ts +0 -12
  53. package/types/xr/input/XRTrackedUpdateFlag.d.ts +0 -11
  54. package/types/xr/input/XRTrackingState.d.ts +0 -11
  55. package/types/xr/session/XRSessionManager.d.ts +0 -57
  56. package/types/xr/session/XRSessionMode.d.ts +0 -8
  57. package/types/xr/session/XRSessionState.d.ts +0 -13
@@ -3528,9 +3528,9 @@ var rePropName$1 = RegExp(// Match anything that isn't a dot or bracket.
3528
3528
  if (relativeToLocal) {
3529
3529
  var _tempVec30 = Transform._tempVec30;
3530
3530
  miniprogram.Vector3.transformByQuat(translation, this.worldRotationQuaternion, _tempVec30);
3531
- this._worldPosition.add(_tempVec30);
3531
+ this.worldPosition.add(_tempVec30);
3532
3532
  } else {
3533
- this._worldPosition.add(translation);
3533
+ this.worldPosition.add(translation);
3534
3534
  }
3535
3535
  };
3536
3536
  _proto._rotateXYZ = function _rotateXYZ(x, y, z, relativeToLocal) {
@@ -6951,10 +6951,11 @@ __decorate([
6951
6951
  return this.getPropertyValue(property);
6952
6952
  };
6953
6953
  _proto.setTexture = function setTexture(property, value) {
6954
- if (this._getReferCount() > 0) {
6954
+ var refCount = this._refCount;
6955
+ if (refCount > 0) {
6955
6956
  var lastValue = this.getPropertyValue(property);
6956
- lastValue && lastValue._addReferCount(-1);
6957
- value && value._addReferCount(1);
6957
+ lastValue && lastValue._addReferCount(-refCount);
6958
+ value && value._addReferCount(refCount);
6958
6959
  }
6959
6960
  this._setPropertyValue(property, exports.ShaderPropertyType.Texture, value);
6960
6961
  };
@@ -6962,16 +6963,17 @@ __decorate([
6962
6963
  return this.getPropertyValue(property);
6963
6964
  };
6964
6965
  _proto.setTextureArray = function setTextureArray(property, value) {
6965
- if (this._getReferCount() > 0) {
6966
+ var refCount = this._refCount;
6967
+ if (refCount > 0) {
6966
6968
  var lastValue = this.getPropertyValue(property);
6967
6969
  if (lastValue) {
6968
6970
  for(var i = 0, n = lastValue.length; i < n; i++){
6969
- lastValue[i]._addReferCount(-1);
6971
+ lastValue[i]._addReferCount(-refCount);
6970
6972
  }
6971
6973
  }
6972
6974
  if (value) {
6973
6975
  for(var i1 = 0, n1 = value.length; i1 < n1; i1++){
6974
- value[i1]._addReferCount(1);
6976
+ value[i1]._addReferCount(refCount);
6975
6977
  }
6976
6978
  }
6977
6979
  }
@@ -13182,7 +13184,7 @@ var /** @internal */ PromiseState;
13182
13184
  };
13183
13185
  _proto._parseURL = function _parseURL(path) {
13184
13186
  var _path_split = path.split("?"), baseUrl = _path_split[0], searchStr = _path_split[1];
13185
- var searchParams = new URLSearchParams(searchStr);
13187
+ var searchParams = new engineMiniprogramAdapter.URLSearchParams(searchStr);
13186
13188
  var queryPath = searchParams.get("q");
13187
13189
  searchParams.delete("q");
13188
13190
  var assetBaseURL = searchParams.size > 0 ? baseUrl + "?" + searchParams.toString() : baseUrl;
package/dist/module.js CHANGED
@@ -3523,9 +3523,9 @@ var rePropName$1 = RegExp(// Match anything that isn't a dot or bracket.
3523
3523
  if (relativeToLocal) {
3524
3524
  var _tempVec30 = Transform._tempVec30;
3525
3525
  Vector3.transformByQuat(translation, this.worldRotationQuaternion, _tempVec30);
3526
- this._worldPosition.add(_tempVec30);
3526
+ this.worldPosition.add(_tempVec30);
3527
3527
  } else {
3528
- this._worldPosition.add(translation);
3528
+ this.worldPosition.add(translation);
3529
3529
  }
3530
3530
  };
3531
3531
  _proto._rotateXYZ = function _rotateXYZ(x, y, z, relativeToLocal) {
@@ -6946,10 +6946,11 @@ __decorate([
6946
6946
  return this.getPropertyValue(property);
6947
6947
  };
6948
6948
  _proto.setTexture = function setTexture(property, value) {
6949
- if (this._getReferCount() > 0) {
6949
+ var refCount = this._refCount;
6950
+ if (refCount > 0) {
6950
6951
  var lastValue = this.getPropertyValue(property);
6951
- lastValue && lastValue._addReferCount(-1);
6952
- value && value._addReferCount(1);
6952
+ lastValue && lastValue._addReferCount(-refCount);
6953
+ value && value._addReferCount(refCount);
6953
6954
  }
6954
6955
  this._setPropertyValue(property, ShaderPropertyType.Texture, value);
6955
6956
  };
@@ -6957,16 +6958,17 @@ __decorate([
6957
6958
  return this.getPropertyValue(property);
6958
6959
  };
6959
6960
  _proto.setTextureArray = function setTextureArray(property, value) {
6960
- if (this._getReferCount() > 0) {
6961
+ var refCount = this._refCount;
6962
+ if (refCount > 0) {
6961
6963
  var lastValue = this.getPropertyValue(property);
6962
6964
  if (lastValue) {
6963
6965
  for(var i = 0, n = lastValue.length; i < n; i++){
6964
- lastValue[i]._addReferCount(-1);
6966
+ lastValue[i]._addReferCount(-refCount);
6965
6967
  }
6966
6968
  }
6967
6969
  if (value) {
6968
6970
  for(var i1 = 0, n1 = value.length; i1 < n1; i1++){
6969
- value[i1]._addReferCount(1);
6971
+ value[i1]._addReferCount(refCount);
6970
6972
  }
6971
6973
  }
6972
6974
  }