@glowjs/core 2026.3.12 → 2026.3.17-2
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 +46 -9
- package/dist/glow.core.js +1 -1
- package/package.json +1 -1
package/dist/glow.core.d.ts
CHANGED
|
@@ -908,6 +908,12 @@ export declare class App extends EventDispatcher {
|
|
|
908
908
|
* @returns 实体对象
|
|
909
909
|
*/
|
|
910
910
|
getEntityById(id: string): Entity | undefined;
|
|
911
|
+
/**
|
|
912
|
+
* 世界坐标转屏幕坐标
|
|
913
|
+
* @param world 世界坐标
|
|
914
|
+
* @returns 屏幕坐标
|
|
915
|
+
*/
|
|
916
|
+
worldToScreen(world: Point3D): Point2D;
|
|
911
917
|
/**
|
|
912
918
|
* 创建实体
|
|
913
919
|
* @param type 实体类型
|
|
@@ -1461,8 +1467,12 @@ export declare class Billboard extends EventDispatcher {
|
|
|
1461
1467
|
/**
|
|
1462
1468
|
* 获取或设置数据
|
|
1463
1469
|
*/
|
|
1464
|
-
get data():
|
|
1465
|
-
|
|
1470
|
+
get data(): {
|
|
1471
|
+
[key: string]: string;
|
|
1472
|
+
};
|
|
1473
|
+
set data(value: {
|
|
1474
|
+
[key: string]: string;
|
|
1475
|
+
});
|
|
1466
1476
|
/**
|
|
1467
1477
|
* 设置颜色
|
|
1468
1478
|
* @param value 值
|
|
@@ -1470,6 +1480,17 @@ export declare class Billboard extends EventDispatcher {
|
|
|
1470
1480
|
setColor(value: {
|
|
1471
1481
|
[key: string]: string;
|
|
1472
1482
|
}): void;
|
|
1483
|
+
/**
|
|
1484
|
+
* 获取指定顺序索引的图片地址
|
|
1485
|
+
* @param index 顺序索引,0、1、2...
|
|
1486
|
+
*/
|
|
1487
|
+
getImageUrlAt(index: number): string;
|
|
1488
|
+
/**
|
|
1489
|
+
* 设置指定顺序索引的图片地址
|
|
1490
|
+
* @param index 顺序索引,0、1、2...
|
|
1491
|
+
* @param value 图片地址
|
|
1492
|
+
*/
|
|
1493
|
+
setImageUrlAt(index: number, value: string): void;
|
|
1473
1494
|
private _observer;
|
|
1474
1495
|
private _scale;
|
|
1475
1496
|
private _direction;
|
|
@@ -1846,6 +1867,26 @@ export declare class CameraMgr extends Base {
|
|
|
1846
1867
|
* @param app 应用
|
|
1847
1868
|
*/
|
|
1848
1869
|
constructor(app: App);
|
|
1870
|
+
/**
|
|
1871
|
+
* 获取或设置左移键
|
|
1872
|
+
*/
|
|
1873
|
+
get keyLeft(): KeyCode;
|
|
1874
|
+
set keyLeft(value: KeyCode);
|
|
1875
|
+
/**
|
|
1876
|
+
* 获取或设置右移键
|
|
1877
|
+
*/
|
|
1878
|
+
get keyRight(): KeyCode;
|
|
1879
|
+
set keyRight(value: KeyCode);
|
|
1880
|
+
/**
|
|
1881
|
+
* 获取或设置上移键
|
|
1882
|
+
*/
|
|
1883
|
+
get keyUp(): KeyCode;
|
|
1884
|
+
set keyUp(value: KeyCode);
|
|
1885
|
+
/**
|
|
1886
|
+
* 获取或设置下移键
|
|
1887
|
+
*/
|
|
1888
|
+
get keyDown(): KeyCode;
|
|
1889
|
+
set keyDown(value: KeyCode);
|
|
1849
1890
|
get mapPanning(): boolean;
|
|
1850
1891
|
set mapPanning(value: boolean);
|
|
1851
1892
|
/** 当前层级Y轴世界坐标 */
|
|
@@ -4427,10 +4468,6 @@ export declare class Pipe extends Entity {
|
|
|
4427
4468
|
* 拆毁
|
|
4428
4469
|
*/
|
|
4429
4470
|
unbuild(): void;
|
|
4430
|
-
/**
|
|
4431
|
-
* 释放
|
|
4432
|
-
*/
|
|
4433
|
-
dispose(): void;
|
|
4434
4471
|
}
|
|
4435
4472
|
/**
|
|
4436
4473
|
* 管线管理器
|
|
@@ -4710,14 +4747,14 @@ export declare class ResPool extends Base {
|
|
|
4710
4747
|
/**
|
|
4711
4748
|
* 获取指定资源
|
|
4712
4749
|
* @param id 编号
|
|
4713
|
-
* @param
|
|
4750
|
+
* @param optimizedOrInvertY 是否优化网格或贴图Y方向翻转
|
|
4714
4751
|
* @param archiveGrid 是否包含档案格
|
|
4715
4752
|
* @param unionNodeName 联合体节点名称
|
|
4716
4753
|
*/
|
|
4717
|
-
getRes(id: string,
|
|
4754
|
+
getRes(id: string, optimizedOrInvertY?: boolean, archiveGrid?: boolean, unionNodeName?: string): Promise<Texture | InstantiatedEntries | NodeMaterial | any>;
|
|
4718
4755
|
private _cloneEntires;
|
|
4719
4756
|
private _loadModel;
|
|
4720
|
-
|
|
4757
|
+
_getTexture(info: ResOptions, invertY: boolean): Texture;
|
|
4721
4758
|
private _loadMaterial;
|
|
4722
4759
|
private _loadParticle;
|
|
4723
4760
|
private _getResType;
|