@glowjs/core 2023.6.8 → 2023.6.26

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.
@@ -31,8 +31,4 @@ export declare class Group extends Entity {
31
31
  * @param {boolean} force 是否强制
32
32
  */
33
33
  build(force?: boolean): Promise<void>;
34
- /**
35
- * 设置子节点列表
36
- */
37
- setSubNodes(): void;
38
34
  }
@@ -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 应用
@@ -1,4 +1,4 @@
1
- import { InstancedMesh, TransformNode } from '../../../runtime';
1
+ import { InstancedMesh } from '../../../runtime';
2
2
  import { Entity } from '../../Entity';
3
3
  import { Component } from '../Component';
4
4
  import { ArchiveCabinetGroup } from './ArchiveCabinetGroup';
@@ -15,7 +15,6 @@ export declare class ArchiveCabinet extends Component {
15
15
  fontColor: string;
16
16
  };
17
17
  private _eventIds;
18
- _door: TransformNode;
19
18
  /**
20
19
  * 获取或设置数据
21
20
  */
@@ -57,11 +56,6 @@ export declare class ArchiveCabinet extends Component {
57
56
  * 获取面类型,1=左面柜,0=双面柜,2=右面柜
58
57
  */
59
58
  get sideType(): number;
60
- /**
61
- * 更新告警状态
62
- * @param value 告警状态
63
- */
64
- _updateAlarmStatus(value: boolean): void;
65
59
  /**
66
60
  * 显示层位
67
61
  */
@@ -5,6 +5,8 @@ import { Component } from '../Component';
5
5
  import { ArchiveCabinet } from './ArchiveCabinet';
6
6
  import { ArchiveCabinetGroupCount } from './ArchiveCabinetGroupCount';
7
7
  import { ArchiveCabinetGroupState } from './ArchiveCabinetGroupState';
8
+ import { ArchiveDoor } from './ArchiveDoor';
9
+ import { ArchiveGrid } from './ArchiveGrid';
8
10
  /**
9
11
  * 密集架组(库区)
10
12
  */
@@ -27,6 +29,10 @@ export declare class ArchiveCabinetGroup extends Component {
27
29
  * 密集架(列)列表
28
30
  */
29
31
  readonly cabinets: ArchiveCabinet[];
32
+ /**
33
+ * 密集架门列表
34
+ */
35
+ readonly doors: ArchiveDoor[];
30
36
  /**
31
37
  * 告警图标
32
38
  */
@@ -63,6 +69,10 @@ export declare class ArchiveCabinetGroup extends Component {
63
69
  * 组告警变化事件
64
70
  */
65
71
  onAlarmChanged: (group: ArchiveCabinetGroup) => void;
72
+ /**
73
+ * 层位右键菜单事件
74
+ */
75
+ onGridRightMenu: (grid: ArchiveGrid, left: number, top: number) => void;
66
76
  /**
67
77
  * 实例化一个密集架组对象
68
78
  * @param entity 实体(组)
@@ -81,6 +91,7 @@ export declare class ArchiveCabinetGroup extends Component {
81
91
  */
82
92
  get isAlarm(): boolean;
83
93
  set isAlarm(value: boolean);
94
+ private _positionTween;
84
95
  /**
85
96
  * 获取或设置列位置
86
97
  */
@@ -0,0 +1,28 @@
1
+ import { Entity } from '../../Entity';
2
+ import { Component } from '../Component';
3
+ import { ArchiveCabinet } from './ArchiveCabinet';
4
+ import { ArchiveCabinetGroup } from './ArchiveCabinetGroup';
5
+ /**
6
+ * 密集架门
7
+ */
8
+ export declare class ArchiveDoor extends Component {
9
+ /**
10
+ * 实例化一个密集架门对象
11
+ * @param entity 实体
12
+ */
13
+ constructor(entity: Entity);
14
+ /**
15
+ * 获取密集架对象
16
+ */
17
+ get group(): ArchiveCabinetGroup;
18
+ /**
19
+ * 获取或设置可见性
20
+ */
21
+ get visable(): boolean;
22
+ set visable(value: boolean);
23
+ private _nearst;
24
+ /**
25
+ * 获取最近的密集架列
26
+ */
27
+ get nearest(): ArchiveCabinet;
28
+ }
@@ -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.26",
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",