@glowjs/core 2026.3.5 → 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.
@@ -791,6 +791,10 @@ export declare class App extends EventDispatcher {
791
791
  * 实体字典
792
792
  */
793
793
  _entityMap: Map<string, Entity>;
794
+ /**
795
+ * 获取所有实体
796
+ */
797
+ get allEntities(): Entity[];
794
798
  /**
795
799
  * 所有组件对象
796
800
  */
@@ -904,6 +908,12 @@ export declare class App extends EventDispatcher {
904
908
  * @returns 实体对象
905
909
  */
906
910
  getEntityById(id: string): Entity | undefined;
911
+ /**
912
+ * 世界坐标转屏幕坐标
913
+ * @param world 世界坐标
914
+ * @returns 屏幕坐标
915
+ */
916
+ worldToScreen(world: Point3D): Point2D;
907
917
  /**
908
918
  * 创建实体
909
919
  * @param type 实体类型
@@ -1842,6 +1852,26 @@ export declare class CameraMgr extends Base {
1842
1852
  * @param app 应用
1843
1853
  */
1844
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);
1845
1875
  get mapPanning(): boolean;
1846
1876
  set mapPanning(value: boolean);
1847
1877
  /** 当前层级Y轴世界坐标 */