@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.
- package/dist/glow.core.d.ts +45 -3
- package/dist/glow.core.js +1 -1
- package/dist/typings/core/App.d.ts +4 -0
- package/dist/typings/effect/EffectMgr.d.ts +2 -3
- package/dist/typings/entity/path/createPointInstance.d.ts +2 -1
- package/dist/typings/gui/PerformancePanel.d.ts +2 -0
- package/dist/typings/misc/runAsyncTasks.d.ts +5 -0
- package/dist/typings/res/ResPool.d.ts +1 -0
- package/dist/typings/res/registerBufferAndSetEffect.d.ts +7 -0
- package/package.json +1 -1
- package/dist/typings/res/registerBuffer.d.ts +0 -6
package/dist/glow.core.d.ts
CHANGED
|
@@ -179,6 +179,43 @@ declare class EnvironmentTexture extends Base {
|
|
|
179
179
|
*/
|
|
180
180
|
setEnvEffect(): Promise<void>;
|
|
181
181
|
}
|
|
182
|
+
declare class Glow extends Base {
|
|
183
|
+
private _layer;
|
|
184
|
+
/**
|
|
185
|
+
* 实例化一个发光层对象
|
|
186
|
+
* @param app 应用
|
|
187
|
+
*/
|
|
188
|
+
constructor(app: App);
|
|
189
|
+
/**
|
|
190
|
+
* 获取或设置启用
|
|
191
|
+
*/
|
|
192
|
+
get enable(): boolean;
|
|
193
|
+
set enable(value: boolean);
|
|
194
|
+
/**
|
|
195
|
+
* 获取或设置强度
|
|
196
|
+
*/
|
|
197
|
+
get intensity(): number;
|
|
198
|
+
set intensity(value: number);
|
|
199
|
+
/**
|
|
200
|
+
* 获取或设置模糊系数
|
|
201
|
+
*/
|
|
202
|
+
get blurSize(): number;
|
|
203
|
+
set blurSize(value: number);
|
|
204
|
+
/**
|
|
205
|
+
* 添加网格
|
|
206
|
+
* @param mesh 网格
|
|
207
|
+
*/
|
|
208
|
+
addMesh(mesh: Mesh): void;
|
|
209
|
+
/**
|
|
210
|
+
* 移除网格
|
|
211
|
+
* @param mesh 网格
|
|
212
|
+
*/
|
|
213
|
+
removeMesh(mesh: Mesh): void;
|
|
214
|
+
/**
|
|
215
|
+
* 释放
|
|
216
|
+
*/
|
|
217
|
+
dispose(): void;
|
|
218
|
+
}
|
|
182
219
|
declare class ImageProcessing extends Base {
|
|
183
220
|
private _config;
|
|
184
221
|
/**
|
|
@@ -560,6 +597,8 @@ declare class PerformancePanel extends StackPanel {
|
|
|
560
597
|
private _heapTotal;
|
|
561
598
|
private _heapLimit;
|
|
562
599
|
private _deltaTimeValue;
|
|
600
|
+
private _activeFaces;
|
|
601
|
+
private _totalVertices;
|
|
563
602
|
private _sceneInstrumentation;
|
|
564
603
|
private _engineInstrumentation;
|
|
565
604
|
app: App;
|
|
@@ -741,6 +780,10 @@ export declare class Animator extends Component {
|
|
|
741
780
|
* 应用
|
|
742
781
|
*/
|
|
743
782
|
export declare class App extends EventDispatcher {
|
|
783
|
+
/**
|
|
784
|
+
* 加载并行限制,0表示不限制,可影响场景加载速度
|
|
785
|
+
*/
|
|
786
|
+
static loadLimit: number;
|
|
744
787
|
private _cursor;
|
|
745
788
|
version: string;
|
|
746
789
|
/**
|
|
@@ -2503,13 +2546,11 @@ export declare class EffectMgr extends Base {
|
|
|
2503
2546
|
/**
|
|
2504
2547
|
* 发光层
|
|
2505
2548
|
*/
|
|
2549
|
+
glow: Glow;
|
|
2506
2550
|
/**
|
|
2507
2551
|
* 灯光
|
|
2508
2552
|
*/
|
|
2509
2553
|
light: Light;
|
|
2510
|
-
/**
|
|
2511
|
-
* 高亮层
|
|
2512
|
-
*/
|
|
2513
2554
|
/**
|
|
2514
2555
|
* 图像处理
|
|
2515
2556
|
*/
|
|
@@ -4509,6 +4550,7 @@ export declare class ResPool extends Base {
|
|
|
4509
4550
|
* 资源列表
|
|
4510
4551
|
*/
|
|
4511
4552
|
readonly resList: ResOptions[];
|
|
4553
|
+
_cacheVertices: number;
|
|
4512
4554
|
/**
|
|
4513
4555
|
* 缓存
|
|
4514
4556
|
*/
|