@glowjs/core 2022.7.24 → 2023.4.4

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.
Files changed (74) hide show
  1. package/dist/glow.core.js +1 -1
  2. package/dist/typings/camera/AutoRotate.d.ts +36 -0
  3. package/dist/typings/camera/CameraMgr.d.ts +14 -4
  4. package/dist/typings/core/App.d.ts +10 -0
  5. package/dist/typings/core/AppOptions.d.ts +8 -2
  6. package/dist/typings/effect/EffectMgr.d.ts +1 -2
  7. package/dist/typings/effect/HighLight.d.ts +2 -1
  8. package/dist/typings/effect/SkyBox.d.ts +5 -0
  9. package/dist/typings/effect/SkyBoxSource.d.ts +4 -0
  10. package/dist/typings/entity/Entity.d.ts +18 -5
  11. package/dist/typings/entity/Floor.d.ts +1 -1
  12. package/dist/typings/entity/LeakLine.d.ts +3 -4
  13. package/dist/typings/entity/Path.d.ts +1 -45
  14. package/dist/typings/entity/Room.d.ts +5 -0
  15. package/dist/typings/entity/Thing.d.ts +2 -2
  16. package/dist/typings/entity/Tracker.d.ts +34 -0
  17. package/dist/typings/entity/component/Animator.d.ts +1 -1
  18. package/dist/typings/entity/component/Style.d.ts +1 -24
  19. package/dist/typings/entity/component/archive/ArchiveBox.d.ts +5 -2
  20. package/dist/typings/entity/component/archive/ArchiveCabinet.d.ts +82 -0
  21. package/dist/typings/entity/component/archive/ArchiveCabinetGroup.d.ts +118 -0
  22. package/dist/typings/entity/component/archive/ArchiveCabinetGroupCount.d.ts +16 -0
  23. package/dist/typings/entity/component/archive/ArchiveCabinetGroupState.d.ts +21 -0
  24. package/dist/typings/entity/component/archive/ArchiveGrid.d.ts +27 -4
  25. package/dist/typings/entity/component/archive/ArchiveMgr.d.ts +19 -0
  26. package/dist/typings/entity/component/archive/createArchiveGrid.d.ts +6 -0
  27. package/dist/typings/entity/component/archive/createColumnTag.d.ts +6 -0
  28. package/dist/typings/entity/component/archive/events/onAppMove.d.ts +6 -0
  29. package/dist/typings/entity/component/archive/events/onAppRightDoubleClick.d.ts +6 -0
  30. package/dist/typings/entity/component/archive/events/onGroupLeftDoubleClick.d.ts +8 -0
  31. package/dist/typings/entity/component/archive/events/onGroupPointerLeave.d.ts +6 -0
  32. package/dist/typings/entity/component/archive/events/onGroupRightClick.d.ts +8 -0
  33. package/dist/typings/entity/component/archive/events/onLevelChanged.d.ts +8 -0
  34. package/dist/typings/entity/component/archive/getCapacityOriginBox.d.ts +6 -0
  35. package/dist/typings/entity/component/cabinet/Cabinet.d.ts +106 -5
  36. package/dist/typings/entity/component/cabinet/CabinetCapacityData.d.ts +17 -0
  37. package/dist/typings/entity/component/cabinet/CabinetMgr.d.ts +47 -0
  38. package/dist/typings/entity/component/cabinet/RackMounted.d.ts +14 -0
  39. package/dist/typings/entity/component/cabinet/events/onAppMove.d.ts +6 -0
  40. package/dist/typings/entity/component/cabinet/events/onAppRightDoubleClick.d.ts +6 -0
  41. package/dist/typings/entity/component/cabinet/events/onCabinetLeftDoubleClick.d.ts +7 -0
  42. package/dist/typings/entity/component/cabinet/events/onCabinetPointerLeave.d.ts +2 -0
  43. package/dist/typings/entity/component/cabinet/events/onCabinetRightClick.d.ts +3 -0
  44. package/dist/typings/entity/component/cabinet/events/onLevelChanged.d.ts +8 -0
  45. package/dist/typings/entity/component/roaming/Roaming.d.ts +6 -2
  46. package/dist/typings/entity/path/Path.d.ts +48 -0
  47. package/dist/typings/entity/path/attachDrag.d.ts +2 -0
  48. package/dist/typings/entity/path/createLineMeshData.d.ts +3 -0
  49. package/dist/typings/entity/path/createPointInstance.d.ts +5 -0
  50. package/dist/typings/entity/path/detachDrag.d.ts +2 -0
  51. package/dist/typings/entity/path/dragData.d.ts +9 -0
  52. package/dist/typings/entity/path/getLineMaterial.d.ts +2 -0
  53. package/dist/typings/entity/util/box.d.ts +9 -0
  54. package/dist/typings/entity/util/getPathIconMesh.d.ts +7 -0
  55. package/dist/typings/entity/util/getPathLineMesh.d.ts +2 -0
  56. package/dist/typings/entity/util/hideAllBoundingBox.d.ts +6 -0
  57. package/dist/typings/entity/util/smoothTube.d.ts +7 -0
  58. package/dist/typings/event/EventMgr.d.ts +1 -1
  59. package/dist/typings/event/KeyCode.d.ts +2 -1
  60. package/dist/typings/gui/Billboard.d.ts +9 -1
  61. package/dist/typings/gui/GradientRectangle.d.ts +1 -1
  62. package/dist/typings/gui/LinkTip.d.ts +30 -0
  63. package/dist/typings/gui/getTextWidth.d.ts +6 -0
  64. package/dist/typings/index.d.ts +9 -4
  65. package/dist/typings/misc/SystemResId.d.ts +11 -3
  66. package/dist/typings/misc/math/vec/isClockwise.d.ts +6 -0
  67. package/dist/typings/res/ResOptions.d.ts +5 -0
  68. package/dist/typings/res/ResPool.d.ts +2 -2
  69. package/dist/typings/res/registerBuffer.d.ts +6 -0
  70. package/dist/typings/runtime/RunTime.d.ts +45 -0
  71. package/dist/typings/runtime/index.d.ts +1 -0
  72. package/package.json +8 -7
  73. package/dist/typings/entity/component/archive/Archive.d.ts +0 -6
  74. package/dist/typings/entity/component/archive/IndependentArchive.d.ts +0 -6
@@ -0,0 +1,36 @@
1
+ import { CameraMgr } from './CameraMgr';
2
+ /**
3
+ * 自动旋转
4
+ */
5
+ export declare class AutoRotate {
6
+ /**
7
+ * 管理器
8
+ */
9
+ readonly mgr: CameraMgr;
10
+ /**
11
+ * 获取或设置是否启用
12
+ */
13
+ enable: boolean;
14
+ /**
15
+ * 间隔时间
16
+ */
17
+ timeout: number;
18
+ /**
19
+ * 旋转速度
20
+ */
21
+ speed: number;
22
+ private _timeoutId;
23
+ private _mouseIndex;
24
+ private _cacheMouseIndex;
25
+ /**
26
+ * 实例化一个自动旋转对象
27
+ * @param mgr 管理器
28
+ */
29
+ constructor(mgr: CameraMgr);
30
+ private _update;
31
+ private _onMouseEvent;
32
+ /**
33
+ * 检查,true=无操作,false=有操作
34
+ */
35
+ private _check;
36
+ }
@@ -1,10 +1,11 @@
1
- import { ArcRotateCamera } from '../runtime';
1
+ import { ArcRotateCamera, BoundingInfo } from '../runtime';
2
2
  import { Base } from '../base/Base';
3
3
  import { App } from '../core/App';
4
4
  import { Entity } from '../entity/Entity';
5
5
  import { CameraMode } from './CameraMode';
6
6
  import { CameraPerson } from './CameraPerson';
7
7
  import { OrthographicView } from './OrthographicView';
8
+ import { AutoRotate } from './AutoRotate';
8
9
  /**
9
10
  * 相机管理器
10
11
  */
@@ -25,6 +26,10 @@ export declare class CameraMgr extends Base {
25
26
  * 获取或设置跟随对象
26
27
  */
27
28
  followObj: Entity;
29
+ /**
30
+ * 自动旋转
31
+ */
32
+ readonly autoRotate: AutoRotate;
28
33
  /**
29
34
  * 实例化一个相机管理器对象
30
35
  * @param app 应用
@@ -224,8 +229,6 @@ export declare class CameraMgr extends Base {
224
229
  */
225
230
  get allowUpsideDown(): boolean;
226
231
  set allowUpsideDown(value: boolean);
227
- get autoRotate(): boolean;
228
- set autoRotate(value: boolean);
229
232
  /**
230
233
  * 获取或设置相机的模式,0=透视,1=正交
231
234
  */
@@ -287,7 +290,14 @@ export declare class CameraMgr extends Base {
287
290
  * @param time 花费的时间,默认值500毫秒
288
291
  * @param callback 完成回调函数
289
292
  */
290
- fit(obj: Entity, time?: number, callback?: () => void): void;
293
+ fit(obj: Entity | BoundingInfo, time?: number, callback?: () => void): void;
294
+ /**
295
+ * 自适应观察指定物体数组
296
+ * @param arr 物体数组
297
+ * @param time 花费的时间,默认值500毫秒
298
+ * @param callback 完成回调函数
299
+ */
300
+ fitArray(arr: Entity[], time?: number, callback?: () => void): void;
291
301
  /**
292
302
  * 飞行
293
303
  * @param position 相机位置
@@ -12,6 +12,8 @@ import { Size } from './Size';
12
12
  import { MaterialMgr } from '../material/MaterialMgr';
13
13
  import { EntityType } from '../entity/EntityType';
14
14
  import { Component } from '../entity/component/Component';
15
+ import { Tracker } from '../entity/Tracker';
16
+ import { LinkMgr } from '../link/LinkMgr';
15
17
  /**
16
18
  * 应用
17
19
  */
@@ -90,6 +92,14 @@ export declare class App extends EventDispatcher {
90
92
  * 事件管理器
91
93
  */
92
94
  eventMgr: EventMgr;
95
+ /**
96
+ * 链路管理器
97
+ */
98
+ linkMgr: LinkMgr;
99
+ /**
100
+ * 跟踪器
101
+ */
102
+ tracker: Tracker;
93
103
  /**
94
104
  * 是否已加载
95
105
  */
@@ -1,3 +1,5 @@
1
+ import { EnvironmentTextureSource } from '../effect/EnvironmentTextureSource';
2
+ import { SkyBoxSource } from '../effect/SkyBoxSource';
1
3
  /**
2
4
  * App选项
3
5
  */
@@ -19,9 +21,13 @@ export declare type AppOptions = {
19
21
  */
20
22
  basePath?: string;
21
23
  /**
22
- * 是否启用天空盒子,默认启用
24
+ * 是否启用天空盒子,默认不启用
23
25
  */
24
- skyBox?: boolean;
26
+ skyBox?: SkyBoxSource;
27
+ /**
28
+ * 环境贴图
29
+ */
30
+ environmentTexture?: EnvironmentTextureSource;
25
31
  /**
26
32
  * 科技风建筑,默认false
27
33
  */
@@ -42,9 +42,8 @@ export declare class EffectMgr extends Base {
42
42
  /**
43
43
  * 实例化一个效果管理器对象
44
44
  * @param app 应用
45
- * @param skyBox 是否启用天空盒子
46
45
  */
47
- constructor(app: App, skyBox?: boolean);
46
+ constructor(app: App);
48
47
  /**
49
48
  * 获取或设置背景色
50
49
  */
@@ -1,3 +1,4 @@
1
+ import { HighlightLayer } from '../runtime';
1
2
  import { Entity } from '../entity/Entity';
2
3
  import { Base } from '../base/Base';
3
4
  import { App } from '../core/App';
@@ -5,7 +6,7 @@ import { App } from '../core/App';
5
6
  * 高亮层
6
7
  */
7
8
  export declare class HighLight extends Base {
8
- private _layer;
9
+ _layer: HighlightLayer;
9
10
  private _entites;
10
11
  /**
11
12
  * 实例化一个高亮层对象
@@ -18,6 +18,11 @@ export declare class SkyBox extends Base {
18
18
  * @param autoRotate 自动旋转
19
19
  */
20
20
  constructor(app: App, texture?: SkyBoxSource, autoRotate?: boolean);
21
+ /**
22
+ * 获取或设置可见性
23
+ */
24
+ get visible(): boolean;
25
+ set visible(value: boolean);
21
26
  /**
22
27
  * 获取或设置贴图
23
28
  */
@@ -2,6 +2,10 @@
2
2
  * 天空盒子资源枚举
3
3
  */
4
4
  export declare enum SkyBoxSource {
5
+ /**
6
+ * 无
7
+ */
8
+ None = "",
5
9
  /**
6
10
  * 黑色(适合科技风)
7
11
  */
@@ -2,7 +2,6 @@ import { Base } from '../base/Base';
2
2
  import { App } from '../core/App';
3
3
  import { AbstractMesh, TransformNode, BoundingInfo, Ray, Material, Mesh } from '../runtime';
4
4
  import { ViewInfo } from './ViewInfo';
5
- import { EnvironmentTextureSource } from '../effect/EnvironmentTextureSource';
6
5
  import { Point3D } from '../misc/Point3D';
7
6
  import { Point4D } from '../misc/Point4D';
8
7
  import { EntityType } from './EntityType';
@@ -18,6 +17,7 @@ export declare class Entity extends Base {
18
17
  protected _viewInfo: ViewInfo | null;
19
18
  protected _cursor: string;
20
19
  protected _boundingInfoNode: AbstractMesh;
20
+ protected _boxContainer: TransformNode;
21
21
  /**
22
22
  * 包围盒
23
23
  */
@@ -62,10 +62,6 @@ export declare class Entity extends Base {
62
62
  * 获取或设置路径动画移动速度
63
63
  */
64
64
  moveSpeed: number;
65
- /**
66
- * 环境贴图
67
- */
68
- environmentTexture: EnvironmentTextureSource;
69
65
  /**
70
66
  * 实体注册的应用事件ID列表,当实体销毁时自动移除集合中的事件
71
67
  */
@@ -235,6 +231,10 @@ export declare class Entity extends Base {
235
231
  * 获取所有子网格(递归获取子元素的网格)
236
232
  */
237
233
  getAllSubMeshes(): Mesh[];
234
+ /**
235
+ * 获取所有子网格(递归获取子元素的网格),含实例网格
236
+ */
237
+ _getAllSubMeshes2(): Mesh[];
238
238
  /**
239
239
  * 计算包围盒
240
240
  */
@@ -307,6 +307,19 @@ export declare class Entity extends Base {
307
307
  * @param type 组件类型
308
308
  */
309
309
  getComponent<T extends Component>(type: new (entity: Entity) => T): T | null;
310
+ /**
311
+ * 获取所属房间
312
+ */
313
+ get ownerRoom(): any;
314
+ /**
315
+ * 获取或设置是否显示为盒子模式
316
+ */
317
+ get showBox(): boolean;
318
+ set showBox(value: boolean);
319
+ /**
320
+ * 释放盒子
321
+ */
322
+ disposeBox(): void;
310
323
  /**
311
324
  * 标记节点
312
325
  * @param id 唯一ID
@@ -84,7 +84,7 @@ export declare class Floor extends Entity {
84
84
  /**
85
85
  * 创建合并的网格
86
86
  */
87
- buildMergedMesh(): Promise<void>;
87
+ buildMergedMesh(transparent?: boolean): Promise<void>;
88
88
  /**
89
89
  * 创建轮廓线
90
90
  */
@@ -31,13 +31,12 @@ export declare class LeakLine extends Entity {
31
31
  /**
32
32
  * 创建(仅当前层级可见对象)
33
33
  * @param force 是否强制
34
- * @param onlyLatest 只创建最后一段,编辑器用
35
34
  */
36
- build(force?: boolean, onlyLatest?: boolean): Promise<void>;
35
+ build(force?: boolean): Promise<void>;
37
36
  /**
38
- * 拆毁(删掉网格,仅保留层级树
37
+ * 拆毁
39
38
  */
40
- unbuild(onlyLatest?: boolean): void;
39
+ unbuild(): void;
41
40
  /**
42
41
  * 释放
43
42
  */
@@ -1,45 +1 @@
1
- import { App } from '../core/App';
2
- import { Point3D } from '../misc/Point3D';
3
- import { Entity } from './Entity';
4
- /**
5
- * 路径
6
- */
7
- export declare class Path extends Entity {
8
- private static _lineMaterial;
9
- private static _pointMaterial;
10
- private static _index;
11
- /**
12
- * 路径点集合
13
- */
14
- readonly points: Point3D[];
15
- /**
16
- * 是否需要创建
17
- */
18
- needBuild: boolean;
19
- /**
20
- * 实例化一个路径对象
21
- * @param app 应用
22
- */
23
- constructor(app: App);
24
- /**
25
- * 序列化成JSON对象
26
- */
27
- toJson(): any;
28
- /**
29
- * 从JSON对象反序列化(仅生成层级树)
30
- * @param json JSON对象
31
- */
32
- fromJson(json: any): void;
33
- /**
34
- * 创建(仅当前层级可见对象)
35
- * @param force 是否强制
36
- * @param onlyLatest 只创建最后一段,编辑器用
37
- */
38
- build(force?: boolean, onlyLatest?: boolean): Promise<void>;
39
- private _createPoint;
40
- private _createLine;
41
- /**
42
- * 拆毁(删掉网格,仅保留层级树
43
- */
44
- unbuild(onlyLatest?: boolean): void;
45
- }
1
+ export { Path } from './path/Path';
@@ -3,6 +3,7 @@ import { Corner } from './Corner';
3
3
  import { Entity } from './Entity';
4
4
  import { MeshFaceData } from './MeshFaceData';
5
5
  import { Point2D } from '../misc';
6
+ import { Placement } from '..';
6
7
  /**
7
8
  * 房间
8
9
  */
@@ -129,6 +130,10 @@ export declare class Room extends Entity {
129
130
  * @param point 二维点
130
131
  */
131
132
  isPointIn(point: Point2D): boolean;
133
+ /**
134
+ * 获取房间内部的摆件
135
+ */
136
+ get innerPlacements(): Placement[];
132
137
  /**
133
138
  * 获取面积
134
139
  */
@@ -59,9 +59,9 @@ export declare class Thing extends Entity {
59
59
  */
60
60
  properties: any;
61
61
  /**
62
- * 是否优化性能,1=强制优化,0=无动画时优化,其它=不优化
62
+ * 父物体计算包围盒时是否排除此物体
63
63
  */
64
- optimized: -1 | 0 | 1;
64
+ excludeBoundingBox: boolean;
65
65
  private _autoAnimationLoopIndex;
66
66
  /**
67
67
  * 获取或设置自动动画循环索引
@@ -0,0 +1,34 @@
1
+ import { Base } from '../base/Base';
2
+ import { App } from '../core/App';
3
+ import { BoundingBox } from '../runtime';
4
+ /**
5
+ * 跟踪器
6
+ */
7
+ export declare class Tracker extends Base {
8
+ private _initialized;
9
+ private _root;
10
+ private _timeoutId;
11
+ /**
12
+ * 实例化一个跟踪器对象
13
+ * @param app 应用
14
+ */
15
+ constructor(app: App);
16
+ /**
17
+ * 初始化
18
+ */
19
+ init(): Promise<void>;
20
+ /**
21
+ * 显示到指定包围盒
22
+ * @param boundingBox 包围盒
23
+ * @param time 显示时间,单位秒,不设置表示不限时间
24
+ */
25
+ show(boundingBox: BoundingBox, time?: number): void;
26
+ /**
27
+ * 隐藏
28
+ */
29
+ hide(): void;
30
+ /**
31
+ * 释放
32
+ */
33
+ dispose(): void;
34
+ }
@@ -18,7 +18,7 @@ export declare class Animator extends Component {
18
18
  * 获取动画组名称列表
19
19
  */
20
20
  get animationGroupNames(): string[];
21
- private _current;
21
+ _current: AnimationGroup;
22
22
  /**
23
23
  * 播放指定索引动画组一次(适用于常规播放一次的动话)
24
24
  * @param index 动画索引
@@ -4,6 +4,7 @@ import { Entity } from '../Entity';
4
4
  * 样式组件
5
5
  */
6
6
  export declare class Style extends Component {
7
+ private _buffer;
7
8
  /**
8
9
  * 实例化一个样式组件对象
9
10
  * @param entity 实体
@@ -15,30 +16,6 @@ export declare class Style extends Component {
15
16
  */
16
17
  get color(): string;
17
18
  set color(value: string);
18
- private _emissive;
19
- /**
20
- * 获取或设置发光颜色
21
- */
22
- get emissive(): string;
23
- set emissive(value: string);
24
- private _emissiveIntensity;
25
- /**
26
- * 获取或设置发光强度
27
- */
28
- get emissiveIntensity(): number;
29
- set emissiveIntensity(value: number);
30
- private _opacity;
31
- /**
32
- * 获取或设置透明度
33
- */
34
- get opacity(): number;
35
- set opacity(value: number);
36
- private _wireframe;
37
- /**
38
- * 获取或设置线框模式
39
- */
40
- get wireframe(): boolean;
41
- set wireframe(value: boolean);
42
19
  /**
43
20
  * 获取是否可以更新
44
21
  */
@@ -1,7 +1,6 @@
1
1
  import { App } from '../../../core/App';
2
2
  import { Entity } from '../../Entity';
3
3
  import { ResImageSource } from '../cabinet/ResImageSource';
4
- import { Archive } from './Archive';
5
4
  /**
6
5
  * 档案盒
7
6
  */
@@ -29,10 +28,14 @@ export declare class ArchiveBox extends Entity {
29
28
  private _backImg;
30
29
  private _sideImg;
31
30
  private _backgroundColor;
31
+ /**
32
+ * 数据
33
+ */
34
+ data: any;
32
35
  /**
33
36
  * 档案列表
34
37
  */
35
- archives: Archive[];
38
+ archives: any[];
36
39
  /**
37
40
  * 实例化一个档案盒
38
41
  * @param app 应用
@@ -1,10 +1,33 @@
1
+ import { InstancedMesh, Mesh } from '../../../runtime';
1
2
  import { Entity } from '../../Entity';
2
3
  import { Component } from '../Component';
4
+ import { ArchiveCabinetGroup } from './ArchiveCabinetGroup';
3
5
  import { ArchiveGrid } from './ArchiveGrid';
4
6
  /**
5
7
  * 密集架(列)
6
8
  */
7
9
  export declare class ArchiveCabinet extends Component {
10
+ static tagStyleConfig: {
11
+ show: boolean;
12
+ hasBackground: boolean;
13
+ backgroundColor: string;
14
+ fontSize: number;
15
+ fontColor: string;
16
+ };
17
+ private _eventIds;
18
+ _door: Mesh;
19
+ /**
20
+ * 获取或设置数据
21
+ */
22
+ data: any;
23
+ /**
24
+ * 标识网格
25
+ */
26
+ _tagMesh: InstancedMesh;
27
+ /**
28
+ * 固定列标识网格
29
+ */
30
+ _fixedMesh: InstancedMesh;
8
31
  /**
9
32
  * 档案格(层位)列表
10
33
  */
@@ -14,5 +37,64 @@ export declare class ArchiveCabinet extends Component {
14
37
  * @param entity 实体
15
38
  */
16
39
  constructor(entity: Entity);
40
+ /**
41
+ * 获取密集架对象
42
+ */
43
+ get group(): ArchiveCabinetGroup;
44
+ /**
45
+ * 获取列号
46
+ */
47
+ get columnId(): string;
48
+ /**
49
+ * 获取列类型,1=左活动列,0=固定列,2=右活动列
50
+ */
51
+ get columnType(): number;
52
+ /**
53
+ * 获取面类型,1=左面柜,0=双面柜,2=右面柜
54
+ */
55
+ get sideType(): number;
56
+ /**
57
+ * 更新告警状态
58
+ * @param value 告警状态
59
+ */
60
+ _updateAlarmStatus(value: boolean): void;
61
+ /**
62
+ * 显示层位
63
+ */
64
+ _showGrid(): void;
65
+ /**
66
+ * 隐藏层位
67
+ */
68
+ _hideGrid(): void;
17
69
  private _afterBuild;
70
+ /**
71
+ * 获取或设置显隐列标识
72
+ */
73
+ get showTag(): boolean;
74
+ set showTag(value: boolean);
75
+ /**
76
+ * 左面居中显示
77
+ */
78
+ leftOn(): void;
79
+ /**
80
+ * 右面居中显示
81
+ */
82
+ rightOn(): void;
83
+ /**
84
+ * 正面居中显示
85
+ */
86
+ frontOn(): void;
87
+ /**
88
+ * 显示容量
89
+ * @param useRate 使用率
90
+ */
91
+ showCapacity(useRate: number | undefined): void;
92
+ /**
93
+ * 隐藏容量
94
+ */
95
+ hideCapacity(): void;
96
+ /**
97
+ * 清理档案盒
98
+ */
99
+ removeArchiveBox(): void;
18
100
  }
@@ -1,17 +1,135 @@
1
+ import { EventArg } from '../../../event/EventArg';
2
+ import { Billboard } from '../../../gui/Billboard';
1
3
  import { Entity } from '../../Entity';
2
4
  import { Component } from '../Component';
3
5
  import { ArchiveCabinet } from './ArchiveCabinet';
6
+ import { ArchiveCabinetGroupCount } from './ArchiveCabinetGroupCount';
7
+ import { ArchiveCabinetGroupState } from './ArchiveCabinetGroupState';
4
8
  /**
5
9
  * 密集架组(库区)
6
10
  */
7
11
  export declare class ArchiveCabinetGroup extends Component {
12
+ /**
13
+ * 获取或设置数据
14
+ */
15
+ data: any;
16
+ private _cacheColumnPosition;
17
+ private _isAlarm;
18
+ /**
19
+ * 密集架当前的状态
20
+ */
21
+ _state: ArchiveCabinetGroupState;
22
+ /**
23
+ * 选中的列
24
+ */
25
+ _selected: ArchiveCabinet;
8
26
  /**
9
27
  * 密集架(列)列表
10
28
  */
11
29
  readonly cabinets: ArchiveCabinet[];
30
+ /**
31
+ * 告警图标
32
+ */
33
+ alarmIcon: Billboard;
34
+ /**
35
+ * 鼠标移动事件
36
+ */
37
+ onMouseMove: (group: ArchiveCabinetGroup, ev: EventArg) => void;
38
+ /**
39
+ * 组右键菜单事件
40
+ */
41
+ onGroupRightMenu: (group: ArchiveCabinetGroup, left: number, top: number) => void;
42
+ /**
43
+ * 进入组事件
44
+ */
45
+ onEnterGroup: (group: ArchiveCabinetGroup) => void;
46
+ /**
47
+ * 退出组事件
48
+ */
49
+ onExitGroup: (group: ArchiveCabinetGroup) => void;
50
+ /**
51
+ * 进入列
52
+ */
53
+ onEnterCabinet: (cabinet: ArchiveCabinet) => void;
54
+ /**
55
+ * 离开列
56
+ */
57
+ onExitCabinet: (cabinet: ArchiveCabinet) => void;
58
+ /**
59
+ * 列右键菜单事件
60
+ */
61
+ onCabinetRightMenu: (cabinet: ArchiveCabinet, left: number, top: number) => void;
62
+ /**
63
+ * 组告警变化事件
64
+ */
65
+ onAlarmChanged: (group: ArchiveCabinetGroup) => void;
12
66
  /**
13
67
  * 实例化一个密集架组对象
14
68
  * @param entity 实体(组)
15
69
  */
16
70
  constructor(entity: Entity);
71
+ /**
72
+ * 实体ID
73
+ */
74
+ get entityId(): string;
75
+ /**
76
+ * 获取密集架ID
77
+ */
78
+ get deviceId(): string;
79
+ /**
80
+ * 获取或设置是否告警
81
+ */
82
+ get isAlarm(): boolean;
83
+ set isAlarm(value: boolean);
84
+ /**
85
+ * 获取或设置列位置
86
+ */
87
+ get columnPosition(): number[];
88
+ set columnPosition(value: number[]);
89
+ /**
90
+ * 设置固定列标识
91
+ */
92
+ setFixedTag(): void;
93
+ /**
94
+ * 移除固定列标识
95
+ */
96
+ removeFixedTag(): void;
97
+ /**
98
+ * 在相机中居中显示
99
+ */
100
+ centerOn(): void;
101
+ /**
102
+ * 显示容量模式
103
+ * @param data 容量数据
104
+ */
105
+ showCapacity(data: ArchiveCabinetGroupCount): void;
106
+ /**
107
+ * 隐藏容量
108
+ */
109
+ hideCapacity(): void;
110
+ /**
111
+ * 隐藏
112
+ */
113
+ hide(): void;
114
+ /**
115
+ * 显示
116
+ */
117
+ show(): void;
118
+ /**
119
+ * 手动触发进入组
120
+ */
121
+ triggerEnterGroup(): void;
122
+ /**
123
+ * 手动触发进入列
124
+ * @param cabinet 列
125
+ */
126
+ triggerEnterCabinet(cabinet: ArchiveCabinet): void;
127
+ /**
128
+ * 手动离开组
129
+ */
130
+ triggerExistGroup(): void;
131
+ /**
132
+ * 手动触发离开列
133
+ */
134
+ triggerExistCabinet(): void;
17
135
  }