@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,16 @@
1
+ export declare type ArchiveCabinetGroupCount = {
2
+ /**
3
+ * 库区ID
4
+ */
5
+ deviceId: string;
6
+ list: {
7
+ /**
8
+ * 列ID
9
+ */
10
+ columnId: string;
11
+ /**
12
+ * 使用率
13
+ */
14
+ useRate: number;
15
+ }[];
16
+ };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * 密集架状态
3
+ */
4
+ export declare enum ArchiveCabinetGroupState {
5
+ /**
6
+ * 默认
7
+ */
8
+ Default = 1,
9
+ /**
10
+ * 组
11
+ */
12
+ Group = 2,
13
+ /**
14
+ * 列
15
+ */
16
+ Column = 4,
17
+ /**
18
+ * 容量
19
+ */
20
+ Capacity = 8
21
+ }
@@ -1,5 +1,6 @@
1
+ import { Mesh } from '../../../runtime';
1
2
  import { ArchiveBox } from './ArchiveBox';
2
- import { IndependentArchive } from './IndependentArchive';
3
+ import { ArchiveCabinet } from './ArchiveCabinet';
3
4
  /**
4
5
  * 档案格(层位)
5
6
  */
@@ -9,8 +10,30 @@ export declare class ArchiveGrid {
9
10
  */
10
11
  readonly boxes: ArchiveBox[];
11
12
  /**
12
- * 独立档案列表
13
+ * 所属列
13
14
  */
14
- readonly independentArchives: IndependentArchive[];
15
- constructor();
15
+ readonly cabinet: ArchiveCabinet;
16
+ /**
17
+ * 节号
18
+ */
19
+ readonly sectionId: string;
20
+ /**
21
+ * 层号
22
+ */
23
+ readonly layerId: string;
24
+ /**
25
+ * 实例化档案格对象
26
+ * @param cabinet 所属列
27
+ * @param sectionId 节号
28
+ * @param layerId 层号
29
+ */
30
+ constructor(cabinet: ArchiveCabinet, sectionId: string, layerId: string);
31
+ /**
32
+ * 获取网格
33
+ */
34
+ get mesh(): Mesh;
35
+ /**
36
+ * 获取层位在列的哪面,false=左,true=右
37
+ */
38
+ get side(): boolean;
16
39
  }
@@ -1,6 +1,8 @@
1
+ import { ArchiveGrid } from '../../..';
1
2
  import { Entity } from '../../Entity';
2
3
  import { Component } from '../Component';
3
4
  import { ArchiveCabinetGroup } from './ArchiveCabinetGroup';
5
+ import { ArchiveCabinetGroupCount } from './ArchiveCabinetGroupCount';
4
6
  /**
5
7
  * 档案管理
6
8
  */
@@ -9,9 +11,26 @@ export declare class ArchiveMgr extends Component {
9
11
  * 密集架组(库区)列表
10
12
  */
11
13
  readonly groups: ArchiveCabinetGroup[];
14
+ /**
15
+ * 当前选中的密集架
16
+ */
17
+ _selected: ArchiveCabinetGroup;
18
+ /**
19
+ * 定位的层位
20
+ */
21
+ _tracked: ArchiveGrid;
12
22
  /**
13
23
  * 实例化一个档案管理对象
14
24
  * @param entity 实体(楼层或园区)
15
25
  */
16
26
  constructor(entity: Entity);
27
+ /**
28
+ * 显示容量
29
+ * @param countList 统计数据
30
+ */
31
+ showCapcity(countList: ArchiveCabinetGroupCount[]): void;
32
+ /**
33
+ * 重置
34
+ */
35
+ hideCapacity(): void;
17
36
  }
@@ -0,0 +1,6 @@
1
+ import { App } from '../../../core/App';
2
+ /**
3
+ * 创建档案格
4
+ * @param app 应用
5
+ */
6
+ export declare function createArchiveGrid(app: App): Promise<void>;
@@ -0,0 +1,6 @@
1
+ import { InstancedMesh } from '../../../runtime';
2
+ /**
3
+ * 创建列标识网格
4
+ * @param tag 标识
5
+ */
6
+ export declare function createColumnTag(tag: string): InstancedMesh;
@@ -0,0 +1,6 @@
1
+ import { EventArg } from '../../../../event/EventArg';
2
+ /**
3
+ * 应用的鼠标移动事件
4
+ * @param ev 事件参数
5
+ */
6
+ export declare function onAppMove(ev: EventArg): void;
@@ -0,0 +1,6 @@
1
+ import { EventArg } from '../../../../event/EventArg';
2
+ /**
3
+ * 应用右键双击事件
4
+ * @param ev 事件参数
5
+ */
6
+ export declare function onAppRightDoubleClick(ev: EventArg): void;
@@ -0,0 +1,8 @@
1
+ import { EventArg } from '../../../../event/EventArg';
2
+ import { ArchiveCabinetGroup } from '../ArchiveCabinetGroup';
3
+ /**
4
+ * 密集架左键双击事件
5
+ * @param this 密集架
6
+ * @param ev 事件参数
7
+ */
8
+ export declare function onGroupLeftDoubleClick(this: ArchiveCabinetGroup, ev: EventArg): void;
@@ -0,0 +1,6 @@
1
+ import { ArchiveCabinetGroup } from '../ArchiveCabinetGroup';
2
+ /**
3
+ * 密集架鼠标离开事件
4
+ * @param this 密集架对象
5
+ */
6
+ export declare function onGroupPointerLeave(this: ArchiveCabinetGroup): void;
@@ -0,0 +1,8 @@
1
+ import { EventArg } from '../../../../event/EventArg';
2
+ import { ArchiveCabinetGroup } from '../ArchiveCabinetGroup';
3
+ /**
4
+ * 密集架右键点击事件
5
+ * @param this 密集架对象
6
+ * @param ev 事件参数
7
+ */
8
+ export declare function onGroupRightClick(this: ArchiveCabinetGroup, ev: EventArg): void;
@@ -0,0 +1,8 @@
1
+ import { App } from '../../../../core/App';
2
+ import { ArchiveMgr } from '../ArchiveMgr';
3
+ /**
4
+ * 层级切换事件
5
+ * @param app 应用
6
+ * @param mgr 管理器
7
+ */
8
+ export declare function onLevelChanged(app: App, mgr: ArchiveMgr): void;
@@ -0,0 +1,6 @@
1
+ import { Mesh } from '../../../runtime';
2
+ /**
3
+ * 获取原始的容量盒子
4
+ * @param type 类型,1 <=25%,2 <=50%,3 <=75%,4 <=100%
5
+ */
6
+ export declare function getCapacityOriginBox(type: 1 | 2 | 3 | 4): Mesh;
@@ -1,22 +1,123 @@
1
1
  import { TransformNode } from '../../../runtime';
2
2
  import { Entity } from '../../Entity';
3
- import { Thing } from '../../Thing';
4
3
  import { Component } from '../Component';
4
+ import { CabinetCapacityData } from './CabinetCapacityData';
5
+ import { RackMounted } from './RackMounted';
5
6
  /**
6
7
  * 机柜
7
8
  */
8
9
  export declare class Cabinet extends Component {
9
10
  /**
10
- * 获取机柜基准点
11
+ * 机柜标签样式配置
11
12
  */
12
- static getBasePoint(thing: Thing): TransformNode;
13
+ static tagStyleConfig: {
14
+ show: boolean;
15
+ hasBackground: boolean;
16
+ backgroundColor: string;
17
+ fontSize: number;
18
+ fontColor: string;
19
+ };
20
+ private _eventIds;
21
+ private _tagMesh;
22
+ _showAssetId: string;
23
+ /**
24
+ * 数据
25
+ */
26
+ data: {
27
+ cabinet_id: string;
28
+ cabinet_name: string;
29
+ area_id: string;
30
+ };
31
+ /**
32
+ * 资产设备列表
33
+ */
34
+ readonly assets: RackMounted[];
35
+ /**
36
+ * 进入机柜事件
37
+ */
38
+ onEnterCabinet: (cabinet: Cabinet) => void;
39
+ /**
40
+ * 退出机柜事件
41
+ */
42
+ onExistCabinet: (cabinet: Cabinet) => void;
43
+ /**
44
+ * 机柜右键菜单事件
45
+ */
46
+ onCabinetRightMenu: (cabinet: Cabinet, left: number, top: number) => void;
13
47
  /**
14
48
  * 实例化一个机柜对象
15
49
  * @param entity 实体
16
50
  */
17
51
  constructor(entity: Entity);
18
52
  /**
19
- * 获取基准点
53
+ * 获取实体ID
54
+ */
55
+ get entityId(): string;
56
+ /**
57
+ * 获取机柜ID
58
+ */
59
+ get cabinetId(): string;
60
+ /**
61
+ * 获取机柜名称
62
+ */
63
+ get cabinetName(): string;
64
+ /**
65
+ * 显示容量
66
+ * @param data 容量数据
67
+ */
68
+ showCapacity(data: CabinetCapacityData): void;
69
+ /**
70
+ * 隐藏容量
71
+ */
72
+ hideCapacity(): void;
73
+ /**
74
+ * 隐藏
75
+ */
76
+ hide(): void;
77
+ /**
78
+ * 显示
79
+ */
80
+ show(): void;
81
+ /**
82
+ * 前面居中显示
83
+ * @param callback 回调函数
84
+ */
85
+ frontOn(callback?: () => void): void;
86
+ /**
87
+ * 后面居中显示
88
+ * @param callback 回调函数
89
+ */
90
+ backOn(callback?: () => void): void;
91
+ /**
92
+ * 获取挂接点
93
+ * @param flag 标记,true=前面,false=后面
94
+ */
95
+ getPoint(flag?: boolean): TransformNode;
96
+ /**
97
+ * 手动触发退出机柜事件
98
+ */
99
+ triggerExist(): void;
100
+ /**
101
+ * 添加编号
102
+ */
103
+ private _afterBuild;
104
+ /**
105
+ * 更新顶部编号标签
106
+ */
107
+ updateTag(): void;
108
+ /**
109
+ * 添加资产
110
+ * @param item 机架设备
111
+ * @param flag 挂接点标记,true=前面,false=后面
112
+ */
113
+ add(item: RackMounted, flag?: boolean): void;
114
+ /**
115
+ * 加载资产
116
+ * @param list 资产配置列表
117
+ */
118
+ loadAssets(list: any[]): Promise<void>;
119
+ /***
120
+ * 清理资产
20
121
  */
21
- get basePoint(): TransformNode;
122
+ clear(): void;
22
123
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * 机柜容量数据
3
+ */
4
+ export declare type CabinetCapacityData = {
5
+ /**
6
+ * 机柜ID
7
+ */
8
+ cabinet_id: string;
9
+ /**
10
+ * 百分比
11
+ */
12
+ percent: number;
13
+ /**
14
+ * 提示文本
15
+ */
16
+ tip: string;
17
+ };
@@ -0,0 +1,47 @@
1
+ import { Entity } from '../../Entity';
2
+ import { Component } from '../Component';
3
+ import { Cabinet } from './Cabinet';
4
+ import { CabinetCapacityData } from './CabinetCapacityData';
5
+ import { RackMounted } from './RackMounted';
6
+ /**
7
+ * 机柜管理器
8
+ */
9
+ export declare class CabinetMgr extends Component {
10
+ /**
11
+ * 资产模型配置字典
12
+ */
13
+ static readonly assetModelConfigDic: Map<string, any>;
14
+ /**
15
+ * 获取资产模型配置
16
+ * @param model_id 模型ID
17
+ * @param uheight U高
18
+ */
19
+ static getAssetModelConfig(model_id: string, uheight: number): any;
20
+ /**
21
+ * 当前场景机柜列表
22
+ */
23
+ readonly cabinets: Cabinet[];
24
+ _capacity: boolean;
25
+ /**
26
+ * 当前选中的机柜
27
+ */
28
+ _selected: Cabinet;
29
+ /**
30
+ * 定位的资产设备
31
+ */
32
+ _tracked: RackMounted;
33
+ /**
34
+ * 实例化一个机柜管理器对象
35
+ * @param entity 实体(楼层或园区)
36
+ */
37
+ constructor(entity: Entity);
38
+ /**
39
+ * 显示容量
40
+ * @param data 容量数据
41
+ */
42
+ showCapacity(data: CabinetCapacityData[]): void;
43
+ /**
44
+ * 隐藏容量
45
+ */
46
+ hideCapacity(): void;
47
+ }
@@ -1,6 +1,7 @@
1
1
  import { App } from '../../../core/App';
2
2
  import { Entity } from '../../Entity';
3
3
  import { ResImageSource } from './ResImageSource';
4
+ import { Cabinet } from '../../..';
4
5
  /**
5
6
  * 机架设备
6
7
  */
@@ -26,6 +27,11 @@ export declare class RackMounted extends Entity {
26
27
  private _frontImg;
27
28
  private _backImg;
28
29
  private _backgroundColor;
30
+ data: any;
31
+ /**
32
+ * 机柜
33
+ */
34
+ cabinet: Cabinet;
29
35
  /**
30
36
  * 实例化一个机架设备
31
37
  * @param app 应用
@@ -71,6 +77,10 @@ export declare class RackMounted extends Entity {
71
77
  */
72
78
  get backgroundColor(): string;
73
79
  set backgroundColor(value: string);
80
+ /**
81
+ * 居中显示
82
+ */
83
+ frontOn(): void;
74
84
  /**
75
85
  * 序列化成JSON对象
76
86
  */
@@ -89,4 +99,8 @@ export declare class RackMounted extends Entity {
89
99
  * 拆毁
90
100
  */
91
101
  unbuild(): void;
102
+ /**
103
+ * 释放
104
+ */
105
+ dispose(): void;
92
106
  }
@@ -0,0 +1,6 @@
1
+ import { EventArg } from '../../../../event/EventArg';
2
+ /**
3
+ * 应用的鼠标移动事件
4
+ * @param ev 事件参数
5
+ */
6
+ export declare function onAppMove(ev: EventArg): void;
@@ -0,0 +1,6 @@
1
+ import { EventArg } from '../../../../event/EventArg';
2
+ /**
3
+ * 应用右键双击事件
4
+ * @param ev 事件参数
5
+ */
6
+ export declare function onAppRightDoubleClick(ev: EventArg): void;
@@ -0,0 +1,7 @@
1
+ import { Cabinet } from '../Cabinet';
2
+ /**
3
+ * 机柜左键双击事件
4
+ * @param this 机柜
5
+ * @param ev 事件参数
6
+ */
7
+ export declare function onCabinetLeftDoubleClick(this: Cabinet): void;
@@ -0,0 +1,2 @@
1
+ import { Cabinet } from '../Cabinet';
2
+ export declare function onCabinetPointerLeave(this: Cabinet): void;
@@ -0,0 +1,3 @@
1
+ import { EventArg } from '../../../../event/EventArg';
2
+ import { Cabinet } from '../Cabinet';
3
+ export declare function onCabinetRightClick(this: Cabinet, ev: EventArg): void;
@@ -0,0 +1,8 @@
1
+ import { App } from '../../../../core/App';
2
+ import { CabinetMgr } from '../CabinetMgr';
3
+ /**
4
+ * 层级切换事件
5
+ * @param app 应用
6
+ * @param mgr 机柜管理器
7
+ */
8
+ export declare function onLevelChanged(app: App, mgr: CabinetMgr): void;
@@ -1,6 +1,7 @@
1
1
  import { EventArg } from '../../../event/EventArg';
2
2
  import { Point3D } from '../../../misc';
3
3
  import { Entity } from '../../Entity';
4
+ import { Path } from '../../Path';
4
5
  import { Component } from '../Component';
5
6
  /**
6
7
  * 漫游
@@ -11,7 +12,7 @@ export declare class Roaming extends Component {
11
12
  /**
12
13
  * 路径
13
14
  */
14
- private _path;
15
+ _path: Path;
15
16
  /**
16
17
  * 角色
17
18
  */
@@ -79,5 +80,8 @@ export declare class Roaming extends Component {
79
80
  private _setAppEvents;
80
81
  private _onLeftClick;
81
82
  private _onAfterFrame;
82
- private _onRightClick;
83
+ /**
84
+ * 结束路径编辑
85
+ */
86
+ endPathEdit(): Promise<void>;
83
87
  }
@@ -0,0 +1,48 @@
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 _index;
9
+ /**
10
+ * 路径点集合
11
+ */
12
+ readonly points: Point3D[];
13
+ /**
14
+ * 是否需要创建
15
+ */
16
+ needBuild: boolean;
17
+ /**
18
+ * 实例化一个路径对象
19
+ * @param app 应用
20
+ */
21
+ constructor(app: App);
22
+ /**
23
+ * 序列化成JSON对象
24
+ */
25
+ toJson(): any;
26
+ /**
27
+ * 从JSON对象反序列化(仅生成层级树)
28
+ * @param json JSON对象
29
+ */
30
+ fromJson(json: any): void;
31
+ /**
32
+ * 创建(仅当前层级可见对象)
33
+ * @param force 是否强制
34
+ */
35
+ build(force?: boolean): Promise<void>;
36
+ /**
37
+ * 拆毁(删掉网格,仅保留层级树
38
+ */
39
+ unbuild(): void;
40
+ /**
41
+ * 附加拖动功能
42
+ */
43
+ attachDrag(): void;
44
+ /**
45
+ * 移除拖动功能
46
+ */
47
+ detachDrag(): void;
48
+ }
@@ -0,0 +1,2 @@
1
+ import { Path } from './Path';
2
+ export declare function attachDrag(this: Path): void;
@@ -0,0 +1,3 @@
1
+ import { Point3D } from '../../misc';
2
+ import { MeshFaceData } from '../MeshFaceData';
3
+ export declare function createLineMeshData(p1: Point3D, p2: Point3D): MeshFaceData;
@@ -0,0 +1,5 @@
1
+ import { InstancedMesh } from '../../runtime';
2
+ /**
3
+ * 创建点材质
4
+ */
5
+ export declare function createPointInstance(): InstancedMesh;
@@ -0,0 +1,2 @@
1
+ import { Path } from './Path';
2
+ export declare function detachDrag(this: Path): void;
@@ -0,0 +1,9 @@
1
+ import { Point3D } from '../../misc';
2
+ import { Path } from './Path';
3
+ export declare const dragData: {
4
+ eventIds: string[];
5
+ dragging: boolean;
6
+ path: Path;
7
+ pointIndex: number;
8
+ oldPosition: Point3D;
9
+ };
@@ -0,0 +1,2 @@
1
+ import { PBRMaterial } from '../../runtime';
2
+ export declare function getLineMaterial(): PBRMaterial;
@@ -0,0 +1,9 @@
1
+ import { Mesh } from '../../runtime';
2
+ /**
3
+ * 获取盒模式的原始盒子
4
+ */
5
+ export declare function getOriginBox(): Mesh;
6
+ /**
7
+ * 获取盒模式的原始线
8
+ */
9
+ export declare function getOriginLine(): Mesh;
@@ -0,0 +1,7 @@
1
+ import { InstancedMesh, Scene } from '../../runtime';
2
+ /**
3
+ * 获取路径点网格
4
+ * @param name 路径点名称
5
+ * @param scene 场景
6
+ */
7
+ export declare function getPathIconMesh(name: string, scene: Scene): InstancedMesh;
@@ -0,0 +1,2 @@
1
+ import { InstancedMesh, Scene } from '../../runtime';
2
+ export declare function getPathLineMesh(name: string, scene: Scene): InstancedMesh;
@@ -0,0 +1,6 @@
1
+ import { App } from '../../core/App';
2
+ /**
3
+ * 隐藏所有包围盒
4
+ * @param app 应用
5
+ */
6
+ export declare function hideAllBoundingBox(app: App): void;
@@ -0,0 +1,7 @@
1
+ import { Vector3 } from '@babylonjs/core/Maths/math.vector';
2
+ /**
3
+ * 平滑管道
4
+ * @param path 管道路径
5
+ * @param radius 半径
6
+ */
7
+ export declare function smoothTube(path: Vector3[], radius: number): Vector3[];
@@ -26,7 +26,7 @@ export declare class EventMgr extends Base {
26
26
  * 热键字典
27
27
  */
28
28
  private _hotKeyMap;
29
- private _pressedKeys;
29
+ _pressedKeys: Set<KeyCode>;
30
30
  /**
31
31
  * 实例化一个事件管理器对象
32
32
  * @param app
@@ -50,5 +50,6 @@ export declare enum KeyCode {
50
50
  Left = 37,
51
51
  Up = 38,
52
52
  Right = 39,
53
- Down = 40
53
+ Down = 40,
54
+ Delete = 46
54
55
  }
@@ -1,4 +1,5 @@
1
1
  import { EventDispatcher } from '../event/EventDispatcher';
2
+ import { AdvancedDynamicTexture } from '../runtime';
2
3
  import { BillboardOptions } from './BillboardOptions';
3
4
  import { Point3D } from '../misc';
4
5
  /**
@@ -8,7 +9,7 @@ export declare class Billboard extends EventDispatcher {
8
9
  /**
9
10
  * 2D广告牌根
10
11
  */
11
- private static _root2d;
12
+ static _root2d: AdvancedDynamicTexture | null;
12
13
  private _data;
13
14
  /**
14
15
  * 锚点
@@ -79,6 +80,13 @@ export declare class Billboard extends EventDispatcher {
79
80
  */
80
81
  get data(): any;
81
82
  set data(value: any);
83
+ /**
84
+ * 设置颜色
85
+ * @param value 值
86
+ */
87
+ setColor(value: {
88
+ [key: string]: string;
89
+ }): void;
82
90
  private _observer;
83
91
  private _scale;
84
92
  private _direction;