@galacean/engine-core 0.0.0-experimental-1.3-xr.4 → 0.0.0-experimental-1.3-xr.9
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.
- package/dist/main.js +10 -0
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +10 -0
- package/dist/module.js +10 -1
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/index.d.ts +0 -1
- package/types/utils/SafeLoopArray.d.ts +5 -0
- package/types/utils/index.d.ts +1 -0
package/dist/main.js
CHANGED
|
@@ -18950,6 +18950,15 @@ var SafeLoopArray = /*#__PURE__*/ function() {
|
|
|
18950
18950
|
this._loopArrayDirty = true;
|
|
18951
18951
|
};
|
|
18952
18952
|
/**
|
|
18953
|
+
* Remove item from array that pass the specified comparison function.
|
|
18954
|
+
* @param filter - The comparison function
|
|
18955
|
+
*/ _proto.findAndRemove = function findAndRemove(filter) {
|
|
18956
|
+
var array = this._array;
|
|
18957
|
+
for(var i = array.length - 1; i >= 0; i--){
|
|
18958
|
+
filter(array[i]) && this.removeByIndex(i);
|
|
18959
|
+
}
|
|
18960
|
+
};
|
|
18961
|
+
/**
|
|
18953
18962
|
* The index of the item.
|
|
18954
18963
|
* @param item - The item which want to get the index
|
|
18955
18964
|
* @returns Index of the item
|
|
@@ -34279,6 +34288,7 @@ exports.RenderTargetBlendState = RenderTargetBlendState;
|
|
|
34279
34288
|
exports.ResourceManager = ResourceManager;
|
|
34280
34289
|
exports.ReturnableObjectPool = ReturnableObjectPool;
|
|
34281
34290
|
exports.RotationOverLifetimeModule = RotationOverLifetimeModule;
|
|
34291
|
+
exports.SafeLoopArray = SafeLoopArray;
|
|
34282
34292
|
exports.Scene = Scene;
|
|
34283
34293
|
exports.SceneManager = SceneManager;
|
|
34284
34294
|
exports.Script = Script;
|