@cc-component/cc-core 1.2.9 → 1.3.0

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.
@@ -18,6 +18,7 @@ import { BundleConfigName, HttpType, IBundleConfig, IExtData, IHttpConfig, IInit
18
18
  import { LayerType } from "../config/LayerType";
19
19
  import { ELoggerLevel } from "../lib/logger/ELoggerLevel";
20
20
  import { SkeletonAnim } from "../home/BaseSkeleton";
21
+ import { Tools } from "../home/Tools";
21
22
 
22
23
  export class App {
23
24
  /**当前bundle */
@@ -536,6 +537,8 @@ s */
536
537
  }
537
538
  }
538
539
  }
540
+
541
+ static PromiseQueue<T>(promises: Promise<T>[], onProgress: (completed: number, total: number) => void): Promise<T[]> { return Tools.PromiseQueue(promises, onProgress) }
539
542
  }
540
543
 
541
544
  window.App = App;
@@ -143,7 +143,7 @@ declare global {
143
143
  // */
144
144
  // function RunParabolaTween(item: any, target_postion: Vec3, update: (ratio: number) => void, param?: { offset_ratio?: number, is_random?: boolean, time?: number, start_position?: Vec3 })
145
145
  // /**任务进度队列 */
146
- // function PromiseQueue<T>(promises: Promise<T>[], onProgress: (completed: number, total: number) => void): Promise<T[]>
146
+ function PromiseQueue<T>(promises: Promise<T>[], onProgress: (completed: number, total: number) => void): Promise<T[]>
147
147
  }
148
148
  }
149
149
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-core",
3
- "version": "1.2.9",
3
+ "version": "1.3.0",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",