@glowjs/core 2026.3.11 → 2026.3.12-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 +26 -0
- 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 实体类型
|
|
@@ -1846,6 +1852,26 @@ export declare class CameraMgr extends Base {
|
|
|
1846
1852
|
* @param app 应用
|
|
1847
1853
|
*/
|
|
1848
1854
|
constructor(app: App);
|
|
1855
|
+
/**
|
|
1856
|
+
* 获取或设置左移键
|
|
1857
|
+
*/
|
|
1858
|
+
get keyLeft(): KeyCode;
|
|
1859
|
+
set keyLeft(value: KeyCode);
|
|
1860
|
+
/**
|
|
1861
|
+
* 获取或设置右移键
|
|
1862
|
+
*/
|
|
1863
|
+
get keyRight(): KeyCode;
|
|
1864
|
+
set keyRight(value: KeyCode);
|
|
1865
|
+
/**
|
|
1866
|
+
* 获取或设置上移键
|
|
1867
|
+
*/
|
|
1868
|
+
get keyUp(): KeyCode;
|
|
1869
|
+
set keyUp(value: KeyCode);
|
|
1870
|
+
/**
|
|
1871
|
+
* 获取或设置下移键
|
|
1872
|
+
*/
|
|
1873
|
+
get keyDown(): KeyCode;
|
|
1874
|
+
set keyDown(value: KeyCode);
|
|
1849
1875
|
get mapPanning(): boolean;
|
|
1850
1876
|
set mapPanning(value: boolean);
|
|
1851
1877
|
/** 当前层级Y轴世界坐标 */
|