@glowjs/core 2025.7.8 → 2025.7.19

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
  /**
@@ -117,8 +117,8 @@ export declare class Entity extends Base {
117
117
  /**
118
118
  * 获取或设置可见性
119
119
  */
120
- get visable(): boolean;
121
- set visable(value: boolean);
120
+ get visible(): boolean;
121
+ set visible(value: boolean);
122
122
  /**
123
123
  * 获取或设置观察视角
124
124
  */
@@ -50,7 +50,7 @@ export declare class POI extends Entity {
50
50
  private _pointerUpObserver;
51
51
  private _mesh;
52
52
  private _showBoundingBox;
53
- private _visable;
53
+ private _visible;
54
54
  private _pivot;
55
55
  /**
56
56
  * 上一次点击的时间点,用于计算双击事件
@@ -61,8 +61,8 @@ export declare class POI extends Entity {
61
61
  * @param app 应用
62
62
  */
63
63
  constructor(app: App);
64
- get visable(): boolean;
65
- set visable(value: boolean);
64
+ get visible(): boolean;
65
+ set visible(value: boolean);
66
66
  /**
67
67
  * 获取或设置轴心点
68
68
  */
@@ -12,7 +12,7 @@ export declare class VideoFusion extends Entity {
12
12
  private _opacityTexture;
13
13
  private _videoTexture;
14
14
  private _smoothing;
15
- private _visable;
15
+ private _visible;
16
16
  /**
17
17
  * 是否默认隐藏
18
18
  */
@@ -34,8 +34,8 @@ export declare class VideoFusion extends Entity {
34
34
  * @param app 应用实例
35
35
  */
36
36
  constructor(app: App);
37
- get visable(): boolean;
38
- set visable(value: boolean);
37
+ get visible(): boolean;
38
+ set visible(value: boolean);
39
39
  /**
40
40
  * 获取是否允许被冻结材质
41
41
  */
@@ -18,8 +18,8 @@ export declare class ArchiveDoor extends Component {
18
18
  /**
19
19
  * 获取或设置可见性
20
20
  */
21
- get visable(): boolean;
22
- set visable(value: boolean);
21
+ get visible(): boolean;
22
+ set visible(value: boolean);
23
23
  private _nearst;
24
24
  /**
25
25
  * 获取最近的密集架列
@@ -61,7 +61,7 @@ export declare class POIPlus extends Entity {
61
61
  private _pointerUpObserver;
62
62
  private _mesh;
63
63
  private _showBoundingBox;
64
- private _visable;
64
+ private _visible;
65
65
  private _pivot;
66
66
  /**
67
67
  * 上一次点击的时间点,用于计算双击事件
@@ -72,8 +72,8 @@ export declare class POIPlus extends Entity {
72
72
  * @param app 应用
73
73
  */
74
74
  constructor(app: App);
75
- get visable(): boolean;
76
- set visable(value: boolean);
75
+ get visible(): boolean;
76
+ set visible(value: boolean);
77
77
  /**
78
78
  * 获取或设置轴心点
79
79
  */
@@ -70,8 +70,8 @@ export declare class Billboard extends EventDispatcher {
70
70
  /**
71
71
  * 获取或设置可见性
72
72
  */
73
- get visable(): boolean;
74
- set visable(value: boolean);
73
+ get visible(): boolean;
74
+ set visible(value: boolean);
75
75
  /**
76
76
  * 获取或设置指针样式
77
77
  */
@@ -82,8 +82,8 @@ export declare class InfoListPanel extends EventDispatcher {
82
82
  /**
83
83
  * 获取或设置可见性
84
84
  */
85
- get visable(): boolean;
86
- set visable(value: boolean);
85
+ get visible(): boolean;
86
+ set visible(value: boolean);
87
87
  /**
88
88
  * 获取或设置指针样式
89
89
  */
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 运行异步任务
3
+ * @param tasks 任务列表
4
+ */
5
+ export declare function runAsyncTasks(tasks: (() => Promise<void>)[]): Promise<void>;
@@ -59,7 +59,7 @@ export declare class ResPool extends Base {
59
59
  getRes(id: string, optimized?: boolean, archiveGrid?: boolean): Promise<Texture | InstantiatedEntries | NodeMaterial | any>;
60
60
  private _cloneEntires;
61
61
  private _loadModel;
62
- private _loadTexture;
62
+ private _getTexture;
63
63
  private _loadMaterial;
64
64
  private _loadParticle;
65
65
  private _getResType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glowjs/core",
3
- "version": "2025.07.08",
3
+ "version": "2025.07.19",
4
4
  "description": "GlowJS数字孪生引擎核心库。",
5
5
  "main": "./dist/glow.core.js",
6
6
  "types": "./dist/typings/index.d.ts",