@galacean/engine-core 0.0.0-experimental-1.3-xr.5 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-core",
3
- "version": "0.0.0-experimental-1.3-xr.5",
3
+ "version": "0.0.0-experimental-1.3-xr.9",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -15,10 +15,10 @@
15
15
  "types/**/*"
16
16
  ],
17
17
  "dependencies": {
18
- "@galacean/engine-math": "0.0.0-experimental-1.3-xr.5"
18
+ "@galacean/engine-math": "0.0.0-experimental-1.3-xr.9"
19
19
  },
20
20
  "devDependencies": {
21
- "@galacean/engine-design": "0.0.0-experimental-1.3-xr.5"
21
+ "@galacean/engine-design": "0.0.0-experimental-1.3-xr.9"
22
22
  },
23
23
  "scripts": {
24
24
  "b:types": "tsc"
package/types/index.d.ts CHANGED
@@ -19,7 +19,6 @@ export { Loader } from "./asset/Loader";
19
19
  export { ContentRestorer } from "./asset/ContentRestorer";
20
20
  export { ResourceManager, resourceLoader } from "./asset/ResourceManager";
21
21
  export { AssetPromise } from "./asset/AssetPromise";
22
- export type { IReferable } from "./asset/IReferable";
23
22
  export type { LoadItem } from "./asset/LoadItem";
24
23
  export { AssetType } from "./asset/AssetType";
25
24
  export { ReferResource } from "./asset/ReferResource";
@@ -22,6 +22,11 @@ export declare class SafeLoopArray<T> {
22
22
  * @param index - The index of the array
23
23
  */
24
24
  removeByIndex(index: number): void;
25
+ /**
26
+ * Remove item from array that pass the specified comparison function.
27
+ * @param filter - The comparison function
28
+ */
29
+ findAndRemove(filter: (value: T) => boolean): void;
25
30
  /**
26
31
  * The index of the item.
27
32
  * @param item - The item which want to get the index
@@ -1,3 +1,4 @@
1
1
  export { ClearableObjectPool } from "./ClearableObjectPool";
2
2
  export type { IPoolElement } from "./ObjectPool";
3
3
  export { ReturnableObjectPool } from "./ReturnableObjectPool";
4
+ export { SafeLoopArray } from "./SafeLoopArray";