@glowjs/core 2025.7.18 → 2025.7.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.
@@ -19,6 +19,10 @@ import { PostProcessMgr } from '../postprocess/PostProcessMgr';
19
19
  * 应用
20
20
  */
21
21
  export declare class App extends EventDispatcher {
22
+ /**
23
+ * 加载并行限制,0表示不限制,可影响场景加载速度
24
+ */
25
+ static loadLimit: number;
22
26
  private _cursor;
23
27
  version: string;
24
28
  /**
@@ -2,6 +2,7 @@ import { Base } from '../base/Base';
2
2
  import { App } from '../core/App';
3
3
  import { EnvironmentTexture } from './EnvironmentTexture';
4
4
  import { Fog } from './Fog';
5
+ import { Glow } from './Glow';
5
6
  import { ImageProcessing } from './ImageProcessing';
6
7
  import { Light } from './Light';
7
8
  import { ColorCorrection } from './ColorCorrection';
@@ -27,13 +28,11 @@ export declare class EffectMgr extends Base {
27
28
  /**
28
29
  * 发光层
29
30
  */
31
+ glow: Glow;
30
32
  /**
31
33
  * 灯光
32
34
  */
33
35
  light: Light;
34
- /**
35
- * 高亮层
36
- */
37
36
  /**
38
37
  * 图像处理
39
38
  */
@@ -1,5 +1,6 @@
1
1
  import { InstancedMesh } from '../../runtime';
2
+ import { App } from '../../core/App';
2
3
  /**
3
4
  * 创建点材质
4
5
  */
5
- export declare function createPointInstance(): InstancedMesh;
6
+ export declare function createPointInstance(app: App): InstancedMesh;
@@ -25,6 +25,8 @@ export declare class PerformancePanel extends StackPanel {
25
25
  private _heapTotal;
26
26
  private _heapLimit;
27
27
  private _deltaTimeValue;
28
+ private _activeFaces;
29
+ private _totalVertices;
28
30
  private _sceneInstrumentation;
29
31
  private _engineInstrumentation;
30
32
  app: App;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 运行异步任务
3
+ * @param tasks 任务列表
4
+ */
5
+ export declare function runAsyncTasks(tasks: (() => Promise<void>)[]): Promise<void>;
@@ -12,6 +12,7 @@ export declare class ResPool extends Base {
12
12
  * 资源列表
13
13
  */
14
14
  readonly resList: ResOptions[];
15
+ _cacheVertices: number;
15
16
  /**
16
17
  * 缓存
17
18
  */
@@ -0,0 +1,7 @@
1
+ import { App } from '../core/App';
2
+ import { TransformNode } from '../runtime';
3
+ /**
4
+ * 注册缓冲区
5
+ * @param rootNode 根节点
6
+ */
7
+ export declare function registerBufferAndSetEffect(rootNode: TransformNode, app: App): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glowjs/core",
3
- "version": "2025.07.18",
3
+ "version": "2025.07.24",
4
4
  "description": "GlowJS数字孪生引擎核心库。",
5
5
  "main": "./dist/glow.core.js",
6
6
  "types": "./dist/typings/index.d.ts",
@@ -1,6 +0,0 @@
1
- import { TransformNode } from '../runtime';
2
- /**
3
- * 注册缓冲区
4
- * @param rootNode 根节点
5
- */
6
- export declare function registerBuffer(rootNode: TransformNode): void;