@glowjs/core 2023.6.8 → 2023.6.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.
@@ -77,6 +77,10 @@ export declare class Thing extends Entity {
77
77
  * 颜色(与Entity冲突,待解决)
78
78
  */
79
79
  protected __color: any;
80
+ /**
81
+ * 是否加载密集架列的格子(层位)
82
+ */
83
+ private _loadArchiveGrid;
80
84
  /**
81
85
  * 实例化一个物体对象
82
86
  * @param {App} app 应用
@@ -5,6 +5,7 @@ import { Component } from '../Component';
5
5
  import { ArchiveCabinet } from './ArchiveCabinet';
6
6
  import { ArchiveCabinetGroupCount } from './ArchiveCabinetGroupCount';
7
7
  import { ArchiveCabinetGroupState } from './ArchiveCabinetGroupState';
8
+ import { ArchiveGrid } from './ArchiveGrid';
8
9
  /**
9
10
  * 密集架组(库区)
10
11
  */
@@ -63,6 +64,10 @@ export declare class ArchiveCabinetGroup extends Component {
63
64
  * 组告警变化事件
64
65
  */
65
66
  onAlarmChanged: (group: ArchiveCabinetGroup) => void;
67
+ /**
68
+ * 层位右键菜单事件
69
+ */
70
+ onGridRightMenu: (grid: ArchiveGrid, left: number, top: number) => void;
66
71
  /**
67
72
  * 实例化一个密集架组对象
68
73
  * @param entity 实体(组)
@@ -36,4 +36,8 @@ export declare class ArchiveGrid {
36
36
  * 获取层位在列的哪面,false=左,true=右
37
37
  */
38
38
  get side(): boolean;
39
+ /**
40
+ * 清理档案盒
41
+ */
42
+ removeArchiveBox(): void;
39
43
  }
@@ -33,7 +33,7 @@ export declare class ResPool extends Base {
33
33
  * @param id 编号
34
34
  * @param optimized 是否优化网格
35
35
  */
36
- getRes(id: string, optimized?: boolean): Promise<Texture | InstantiatedEntries | NodeMaterial | undefined>;
36
+ getRes(id: string, optimized?: boolean, archiveGrid?: boolean): Promise<Texture | InstantiatedEntries | NodeMaterial | undefined>;
37
37
  /**
38
38
  * 判断指定编号的的资源是否已缓存
39
39
  * @param id 编号
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glowjs/core",
3
- "version": "2023.06.08",
3
+ "version": "2023.06.19",
4
4
  "description": "GlowJS数字孪生引擎核心库。",
5
5
  "main": "./dist/glow.core.js",
6
6
  "types": "./dist/typings/index.d.ts",
@@ -45,11 +45,11 @@
45
45
  "license": "ISC",
46
46
  "dependencies": {
47
47
  "@babel/plugin-transform-runtime": "^7.18.10",
48
- "@babylonjs/core": "^5.50.1",
49
- "@babylonjs/gui": "^5.50.1",
50
- "@babylonjs/inspector": "^5.50.1",
51
- "@babylonjs/loaders": "^5.50.1",
52
- "@babylonjs/materials": "^5.50.1",
48
+ "@babylonjs/core": "^6.7.0",
49
+ "@babylonjs/gui": "^6.7.0",
50
+ "@babylonjs/inspector": "^6.7.0",
51
+ "@babylonjs/loaders": "^6.7.0",
52
+ "@babylonjs/materials": "^6.7.0",
53
53
  "@tweenjs/tween.js": "^18.6.4",
54
54
  "earcut": "^2.2.2",
55
55
  "heatmap.js": "^2.0.5",