mx3d 0.0.35 → 0.0.39

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 (83) hide show
  1. package/core/mx3d.kernel.min.js +2 -16
  2. package/core/mx3d.loaders.min.js +7 -49
  3. package/index.d.ts +2304 -26
  4. package/mx3d.js +112 -10121
  5. package/mx3d.min.js +6 -6
  6. package/package.json +1 -1
  7. package/core/mx3d.dazzle.min.js +0 -85
  8. package/docs/.nojekyll +0 -0
  9. package/docs/README.md +0 -24
  10. package/docs/_sidebar.md +0 -18
  11. package/docs/camera.md +0 -24
  12. package/docs/css/dark.css +0 -979
  13. package/docs/css/local.google.fonts.css +0 -295
  14. package/docs/css/vue.css +0 -1025
  15. package/docs/fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2 +0 -0
  16. package/docs/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlxdu.woff2 +0 -0
  17. package/docs/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu.woff2 +0 -0
  18. package/docs/gui/2D.md +0 -53
  19. package/docs/gui/3D.md +0 -46
  20. package/docs/gui/test1.png +0 -0
  21. package/docs/gui/test2.png +0 -0
  22. package/docs/gui/test3.png +0 -0
  23. package/docs/heatMap/heatMap.md +0 -115
  24. package/docs/heatMap/test1.png +0 -0
  25. package/docs/heatMap/test2.png +0 -0
  26. package/docs/index.html +0 -50
  27. package/docs/js/docsify@4.min.js +0 -1
  28. package/docs/models/modelmgr.md +0 -251
  29. package/docs/project/projectmgr.md +0 -73
  30. package/docs/project/scenetree.jpg +0 -0
  31. package/docs/started/environment.md +0 -42
  32. package/docs/started/quickstart.md +0 -89
  33. package/lib/App.d.ts +0 -45
  34. package/lib/ArrayEx.d.ts +0 -3
  35. package/lib/Builder/BaseNode.d.ts +0 -9
  36. package/lib/Builder/Builder.d.ts +0 -0
  37. package/lib/Builder/HeatMap.d.ts +0 -0
  38. package/lib/Builder/Icon.d.ts +0 -0
  39. package/lib/Builder/IconFromMesh.d.ts +0 -0
  40. package/lib/Camera.d.ts +0 -18
  41. package/lib/Cryptojs.d.ts +0 -3
  42. package/lib/Dictionary.d.ts +0 -13
  43. package/lib/EffectControls.d.ts +0 -42
  44. package/lib/EffectMgr.d.ts +0 -10
  45. package/lib/EffectType.d.ts +0 -5
  46. package/lib/Environment.d.ts +0 -22
  47. package/lib/EventType.d.ts +0 -8
  48. package/lib/GUID.d.ts +0 -3
  49. package/lib/HeatMapMgr.d.ts +0 -2
  50. package/lib/Optimized/OptimizedRegion.d.ts +0 -11
  51. package/lib/ReadJSON.d.ts +0 -3
  52. package/lib/Resources.d.ts +0 -23
  53. package/lib/TipsTool.d.ts +0 -15
  54. package/lib/ToolTip.d.ts +0 -0
  55. package/lib/Tools.d.ts +0 -19
  56. package/lib/UI.d.ts +0 -9
  57. package/lib/VisualAngle.d.ts +0 -13
  58. package/lib/components/AirFlowObject.d.ts +0 -10
  59. package/lib/components/BuildingObject.d.ts +0 -5
  60. package/lib/components/CabinetObject.d.ts +0 -3
  61. package/lib/components/ConduitObject.d.ts +0 -10
  62. package/lib/components/CornerObject.d.ts +0 -5
  63. package/lib/components/DefaultObject.d.ts +0 -46
  64. package/lib/components/DoorObject.d.ts +0 -5
  65. package/lib/components/FloorObject.d.ts +0 -5
  66. package/lib/components/IObject.d.ts +0 -27
  67. package/lib/components/Ibase.d.ts +0 -8
  68. package/lib/components/LeakWaterObject.d.ts +0 -7
  69. package/lib/components/ObjectType.d.ts +0 -47
  70. package/lib/components/OptimizedWallObject.d.ts +0 -5
  71. package/lib/components/Project.d.ts +0 -29
  72. package/lib/components/Region.d.ts +0 -14
  73. package/lib/components/UI3DTextObject.d.ts +0 -4
  74. package/lib/components/VirtualBoxObject.d.ts +0 -4
  75. package/lib/components/WallObject.d.ts +0 -7
  76. package/lib/components/WindowObject.d.ts +0 -5
  77. package/lib/lights/Directional.d.ts +0 -7
  78. package/lib/lights/Hemispheric.d.ts +0 -6
  79. package/lib/lights/ILightObject.d.ts +0 -10
  80. package/lib/lights/LightObject.d.ts +0 -15
  81. package/lib/lights/LightType.d.ts +0 -8
  82. package/lib/lights/Point.d.ts +0 -7
  83. package/lib/lights/Spot.d.ts +0 -10
@@ -1,251 +0,0 @@
1
- ## 获取对象
2
-
3
- ```javascript
4
- /// <summary>
5
- /// 全局查询
6
- /// </summary>
7
- /// <param name="_id">对象标识</param>
8
- /// <param name="type">对象类型</param>
9
- /// <param name="current">是否当前楼层</param>
10
- query(_id?: string, type?: ObjectType, current?: boolean)
11
- ```
12
-
13
- ## 基础属性
14
-
15
- ```javascript
16
- id: string;//唯一id
17
- name: string;//名称
18
- objectType: string;//对象类型
19
- isMonitor: boolean;//是否监听
20
- parent: IObject;//父物体
21
- children: ArrayEx<IObject>;//子物体
22
- visible: boolean;//是否显示
23
- visualAngle:VisualAngle;//视场角度
24
- childNodes:Dictionary<BaseNode>;//附带物体
25
- delete();//删除
26
- dispose();//销毁
27
- transparent: boolean;//是否透明
28
- showBoundingBox: boolean;//显示边缘
29
- setFlash(level:number)//设置闪烁
30
- addEventListener(type: string, callback: Function);//添加对象事件
31
- removeEventListener(type: string)//删除对象事件
32
- play(isloop: boolean);//播放对象动画
33
- stop();//暂停对象动画
34
- flyTo();//相机飞向对象
35
- focus();//聚焦当前
36
- switch();//切换到当前
37
- ```
38
-
39
- ## 特殊对象属性
40
-
41
- ### 暖气片
42
-
43
- ```javascript
44
- airFlowDisplay((isDisplay: boolean = true)) //是否显示隐藏暖气片
45
- ```
46
-
47
- ## 事件
48
-
49
- addEventListener() 方法为指定对象指定事件处理程序。
50
-
51
- ### 语法
52
-
53
- ```javascript
54
- obj.addEventListener(event, function);
55
- ```
56
-
57
- 第一个参数是事件的类型(可选 "leftClick:左键点击" , "rightClick:右键点击" , "longPress:长按" , "doubleClick:双击" , "eover:经过" , "out:移出")。
58
-
59
- 第二个参数是当事件发生时我们需要调用的函数。
60
-
61
- ### 事件实例
62
-
63
- 当用户左键点击某个对象时浏览器控制台输出此对象:
64
-
65
- ```javascript
66
- obj.addEventListener(Mviot.EventType.leftClick, function(e) {
67
- console.log(e)
68
- })
69
- ```
70
-
71
- ## 事件删除
72
-
73
- removeEventListener() 方法
74
-
75
- removeEventListener() 方法会删除已通过 addEventListener() 方法附加的事件处理程序:
76
-
77
- ### 实例
78
-
79
- ```javascript
80
- obj.removeEventListener(Mviot.EventType.leftClick)
81
- ```
82
-
83
- ## 对象类型
84
-
85
- ```javascript
86
- //引用方式
87
- Mviot.ObjectType.Cabinet
88
- ```
89
-
90
- ```javascript
91
- /// <summary>
92
- /// 园区
93
- /// </summary>
94
- Campus,
95
- /// <summary>
96
- /// 大楼
97
- /// </summary>
98
- Building,
99
- /// <summary>
100
- /// 楼层
101
- /// </summary>
102
- Scene,
103
- /// <summary>
104
- /// 温湿度
105
- /// </summary>
106
- Humiture,
107
- /// <summary>
108
- /// 电池
109
- /// </summary>
110
- Battery,
111
- /// <summary>
112
- /// 配电柜
113
- /// </summary>
114
- PowerCabinet,
115
- /// <summary>
116
- /// 机柜
117
- /// </summary>
118
- Cabinet,
119
- /// <summary>
120
- /// 空调
121
- /// </summary>
122
- AirCondition,
123
- /// <summary>
124
- /// UPS
125
- /// </summary>
126
- UPS,
127
- /// <summary>
128
- /// 摄像头
129
- /// </summary>
130
- Camera,
131
- /// <summary>
132
- /// 新风机
133
- /// </summary>
134
- NewWindMachine,
135
- /// <summary>
136
- /// 烟感
137
- /// </summary>
138
- SmokeDetector,
139
- /// <summary>
140
- /// 声光报警
141
- /// </summary>
142
- AudibleVisualAlarm,
143
- /// <summary>
144
- /// 漏水线
145
- /// </summary>
146
- LeakWater,
147
- /// <summary>
148
- /// 墙
149
- /// </summary>
150
- Wall,
151
- /// <summary>
152
- /// 地板
153
- /// </summary>
154
- Floor,
155
- /// <summary>
156
- /// 窗户
157
- /// </summary>
158
- Window,
159
- /// <summary>
160
- /// 门
161
- /// </summary>
162
- Door,
163
- /// <summary>
164
- /// 气流模拟
165
- /// </summary>
166
- AirFlow,
167
- /// <summary>
168
- /// 墙角
169
- /// </summary>
170
- Corner,
171
- /// <summary>
172
- /// 消防设备
173
- /// </summary>
174
- FireFighting,
175
- /// <summary>
176
- /// 照明设备
177
- /// </summary>
178
- Lighting,
179
- /// <summary>
180
- /// 电子围栏
181
- /// </summary>
182
- Enclosure,
183
- /// <summary>
184
- /// 车位
185
- /// </summary>
186
- ParkingLot,
187
- /// <summary>
188
- /// 电梯
189
- /// </summary>
190
- Elevator,
191
- /// <summary>
192
- /// 其他
193
- /// </summary>
194
- Other,
195
- /// <summary>
196
- /// 架式设备
197
- /// </summary>
198
- InrackAsset,
199
- /// <summary>
200
- /// 气体检测
201
- /// </summary>
202
- GasDetection,
203
- /// <summary>
204
- /// 安防设备
205
- /// </summary>
206
- Security,
207
- /// <summary>
208
- /// 外景
209
- /// </summary>
210
- OutDoorScene,
211
- /// <summary>
212
- /// 红外
213
- /// </summary>
214
- Infrared,
215
- /// <summary>
216
- /// 天空盒
217
- /// </summary>
218
- SkyBox,
219
- /// <summary>
220
- /// UI
221
- /// </summary>
222
- UI3D,
223
- /// <summary>
224
- /// 冷通道门
225
- /// </summary>
226
- ColdTongDoor,
227
- /// <summary>
228
- /// 虚拟盒子
229
- /// </summary>
230
- VirtualBox,
231
- /// <summary>
232
- /// 漫游盒子
233
- /// </summary>
234
- PathPint,
235
- /// <summary>
236
- /// 端口
237
- /// </summary>
238
- Port,
239
- /// <summary>
240
- /// 定位接收器
241
- /// </summary>
242
- Positioner,
243
- /// <summary>
244
- /// 自动动画
245
- /// </summary>
246
- AutoAnimation,
247
- /// <summary>
248
- /// 地图
249
- /// </summary>
250
- MapModel
251
- ```
@@ -1,73 +0,0 @@
1
- ## 加载场景
2
-
3
- 如下代码所示
4
-
5
- ```javascript
6
- //加载内景
7
- app
8
- .create({
9
- fileUrl: './mviotjs/Project.json', //场景文件 必须
10
- libraryUrl: './mviotjs', //模型库路径 必须
11
- rotation: null, //旋转 可选
12
- parent: null, //父节点对象 可选(楼栋物体)
13
- })
14
- .then((_scenes: any) => {
15
- _scenes[0].switch()
16
- })
17
- ```
18
-
19
- ```javascript
20
- //园区,内景集成加载
21
- app
22
- .create({
23
- fileUrl: './mviotjs/campus.json',
24
- libraryUrl: './mviotjs',
25
- })
26
- .then((_campus: any) => {
27
- app
28
- .create({
29
- fileUrl: './mviotjs/Project.json',
30
- libraryUrl: './mviotjs',
31
- rotation: { x: 0, y: Math.PI / 2, z: 0 }, //为弧度制
32
- parent: _campus[0].children[8], //某一栋大楼
33
- })
34
- .then((_scenes: any) => {
35
- console.log(_scenes)
36
- })
37
- _campus[0].switch() //聚焦
38
- })
39
- ```
40
-
41
- ## 场景层级树
42
-
43
- 层级树如下图所示:
44
-
45
- ![tree](./scenetree.jpg 'mviotjs-tree')
46
-
47
- 默认场景层级为:园区》楼栋》楼层》房间》物体
48
-
49
- 每层以 children 获取子物体,以 parent 获取父物体
50
-
51
- ## 销毁场景
52
-
53
- ```javascript
54
- app.root.delete()
55
- ```
56
-
57
- ### 销毁自身
58
-
59
- ```javascript
60
- obj.delete()
61
- ```
62
-
63
- ## 切换层级
64
-
65
- ```javascript
66
- obj.focus()
67
- ```
68
-
69
- ## 层级回退
70
-
71
- ```javascript
72
- app.root.goBack()
73
- ```
Binary file
@@ -1,42 +0,0 @@
1
- 在使用以下代码创建场景实例后即可进行 3d 场景的环境配置
2
-
3
- ```javascript
4
- var app = new Mviot.App(container)
5
- ```
6
-
7
- ## 背景颜色
8
-
9
- ```javascript
10
- //rgba(0-1);
11
- app.environment.color = { r: 0, g: 0.0588, b: 0.1176, a: 1 }
12
- ```
13
-
14
- ## 背景图片
15
-
16
- ```javascript
17
- app.environment.setBackground('./res/bg.png')
18
- ```
19
-
20
- ## 场景反射
21
-
22
- ```javascript
23
- app.environment.reflex('./res/environment.env', 0.5)
24
- ```
25
-
26
- ## 显示 fps(帧率)
27
-
28
- ```javascript
29
- //cssText(可选):样式字符串,默认为:"position: fixed;left: 5px;bottom: 5px;z-index:999999999; font-size: 10px;color: rgb(0, 255, 0);text-shadow:rgba(0, 0, 0, 0.2) 1px 1px 0;"
30
- app.environment.showFps()
31
- ```
32
-
33
- ## 节点材质
34
-
35
- ```javascript
36
- const nodeMats = [
37
- { id: 'B1', url: './mviotjs/ndoemats/B1.json' },
38
- { id: 'hLine', url: './mviotjs/ndoemats/hLine.json' },
39
- { id: 'vLine', url: './mviotjs/ndoemats/vLine.json' },
40
- ]
41
- await app.environment.loadNodeMats(nodeMats) //必须使用await强制同步加载,防止不生效
42
- ```
@@ -1,89 +0,0 @@
1
- # npm 安装
2
-
3
- 推荐使用 npm 的方式安装,它能更好地和 webpack 打包工具配合使用。
4
-
5
- ``` js
6
- npm i mx3d
7
- ```
8
- 采用 nodejs 开发时,需配置 webpack 排除 mx3d 打包进工程代码
9
-
10
- # CDN
11
-
12
- 目前可以通过 [unpkg.com/mx3d](https://unpkg.com/mx3d/) 获取到最新版本的资源,在页面上引入 js文件即可开始使用。
13
-
14
- ``` js
15
- <!-- 引入组件库 -->
16
- <script src="https://www.unpkg.com/mx3d/core/mx3d.seat.min.js"></script>
17
- <script src="https://www.unpkg.com/mx3d/core/mx3d.kernel.min.js"></script>
18
- <script src="https://www.unpkg.com/mx3d/core/mx3d.loaders.min.js"></script>
19
- <script src="https://www.unpkg.com/mx3d/core/mx3d.dazzle.min.js"></script>
20
- <script src="https://www.unpkg.com/mx3d/mx3d.min.js"></script>
21
- ```
22
-
23
- 我们建议使用 CDN 引入 mx3d 的用户在链接地址上锁定版本,以免将来 mx3d 升级时受到非兼容性更新的影响。锁定版本的方法请查看 [unpkg.com](https://unpkg.com/)。
24
-
25
- # Hello mx3djs
26
-
27
- 通过 CDN 的方式我们可以很容易地使用 mx3d 写出一个 Hello mx3djs 页面。[在线演示](http://docs.wodashijie.com/script?scrId=5939cb6568424d7d8821ece31420966b)
28
-
29
- ``` html
30
- <!DOCTYPE html>
31
- <html lang="zh-CN" data-theme="dark">
32
- <head>
33
- <meta charset="utf-8">
34
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
35
- <meta name="renderer" content="webkit">
36
- <meta name="viewport" content="width=1920,user-scalable=no, viewport-fit=cover">
37
- <style>
38
- * {
39
- margin: 0;
40
- padding: 0;
41
- }
42
-
43
- html,
44
- body {
45
- width: 100%;
46
- height: 100%;
47
- margin: 0;
48
- padding: 0;
49
- overflow: hidden;
50
- }
51
-
52
- #container {
53
- width: 100%;
54
- height: 100%;
55
- }
56
- </style>
57
- <script src="https://www.unpkg.com/mx3d/core/mx3d.seat.min.js"></script>
58
- <script src="https://www.unpkg.com/mx3d/core/mx3d.kernel.min.js"></script>
59
- <script src="https://www.unpkg.com/mx3d/core/mx3d.loaders.min.js"></script>
60
- <script src="https://www.unpkg.com/mx3d/core/mx3d.dazzle.min.js"></script>
61
- <script src="https://www.unpkg.com/mx3d/mx3d.min.js"></script>
62
- <title>Hello world</title>
63
- </head>
64
- <body>
65
- <div id="container"></div>
66
- <!-- built files will be auto injected -->
67
- </body>
68
- <script>
69
- var container = document.getElementById("container");
70
- var app = new MX3D.App(container);
71
- app.showFps();
72
- var _t = new Date().getTime();
73
- app.create({
74
- fileUrl: "http://h5.wodashijie.com/api/OpenScene/GetProject?id=nLfqWnZyD5zAdSg9", //场景文件
75
- libraryUrl: null, //模型库路径
76
- complete: null,
77
- progress: (_x) => {
78
- //加载进度
79
- console.log(_x)
80
- }
81
- }).then((data) => {
82
- app.Project.show();
83
- console.log(parseInt(new Date().getTime() - _t) / 1000);
84
- })
85
- </script>
86
- </html>
87
- ```
88
-
89
- 如果是通过 npm 安装,并希望配合 webpack 使用,请阅读下一节:快速上手。
package/lib/App.d.ts DELETED
@@ -1,45 +0,0 @@
1
- import Camera from "./Camera";
2
- import Environment from "./Environment";
3
- import Project from "./components/Project";
4
- import Resources from "./Resources";
5
- import TipsTool from "./TipsTool";
6
- export default class App {
7
- canvas: HTMLCanvasElement;
8
- engine: BABYLON.Engine;
9
- scene: BABYLON.Scene;
10
- highlightLayer: BABYLON.HighlightLayer;
11
- Glow: BABYLON.GlowLayer;
12
- index: number;
13
- container: BABYLON.GUI.AdvancedDynamicTexture;
14
- highQualityMode: boolean;
15
- rootUrl: string;
16
- fps: HTMLDivElement;
17
- Resources: Resources;
18
- Environment: Environment;
19
- camera: Camera;
20
- project: Project;
21
- tipsTool: TipsTool;
22
- constructor(_canvas: HTMLElement, _rootUrl?: string);
23
- create(_config: {
24
- fileUrl: string;
25
- libraryUrl?: string;
26
- highQualityMode?: boolean;
27
- complete?: Function;
28
- progress?: Function;
29
- }): Promise<unknown>;
30
- optimized(_config: {
31
- file: string;
32
- fileUrl: string;
33
- libraryUrl?: string;
34
- _isOptimized?: boolean;
35
- complete?: Function;
36
- progress?: Function;
37
- }): Promise<unknown>;
38
- outGltf(call?: Function): Promise<void>;
39
- showTips(): void;
40
- showFps(cssText?: string): void;
41
- showMonitoringParameters(): void;
42
- hideFps(): void;
43
- dispose(): void;
44
- showDebug(): void;
45
- }
package/lib/ArrayEx.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export default class ArrayEx<T> extends Array<T> {
2
- remove(val: any): void;
3
- }
@@ -1,9 +0,0 @@
1
- import App from "../App";
2
- import IObject from "../components/IObject";
3
- export default interface BaseNode {
4
- id: string;
5
- app: App;
6
- anchor: IObject;
7
- dispose(): any;
8
- isEnabled(bool: boolean): any;
9
- }
File without changes
File without changes
File without changes
File without changes
package/lib/Camera.d.ts DELETED
@@ -1,18 +0,0 @@
1
- import VisualAngle from "./VisualAngle";
2
- import App from './App';
3
- export default class Camera {
4
- app: App;
5
- camera: BABYLON.ArcRotateCamera;
6
- frustrum: number;
7
- isOverLook: boolean;
8
- private tw_camera;
9
- private tw_target;
10
- constructor(_app: App);
11
- orthographic(): void;
12
- perspective(): void;
13
- focusingFromProperty(_visualAngle: VisualAngle): void;
14
- flyTo(_visualAngle: VisualAngle, _sheep?: number): void;
15
- translation(_visualAngle: VisualAngle, _sheep?: number): void;
16
- computeCameraView(): void;
17
- _wheel(p: any): void;
18
- }
package/lib/Cryptojs.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export default class Crypto {
2
- static de(str: string): string;
3
- }
@@ -1,13 +0,0 @@
1
- export default class Dictionary<T> {
2
- map: {
3
- [key: string]: T;
4
- };
5
- constructor();
6
- add(key: string, value: T): void;
7
- find(key: string): T;
8
- remove(key: string): void;
9
- termRemove(callback: Function): void;
10
- showAll(): void;
11
- count(): number;
12
- clear(): void;
13
- }
@@ -1,42 +0,0 @@
1
- import IObject from "./components/IObject";
2
- import * as Dazzle from '../dazzle/Module';
3
- export default class EffectControls {
4
- static createCapacity(_object: IObject, RATIO: number, _text?: string, _fontSize?: string): Dazzle.Capacity;
5
- static createMatrixHeatMap(_anchor: IObject, //地板对象
6
- _data: {
7
- config: {
8
- maxX: number;
9
- maxY: number;
10
- data: Array<{
11
- x: number;
12
- y: number;
13
- value: number;
14
- }>;
15
- };
16
- displayValues?: boolean;
17
- height?: number;
18
- isAlpha?: boolean;
19
- isLevelRender?: boolean;
20
- isParticle?: boolean;
21
- radius?: number;
22
- range: {
23
- max: number;
24
- min: number;
25
- };
26
- }): Dazzle.HeatMap;
27
- static createColumnarHeatMap(_anchor: IObject, _data: {
28
- config: Array<{
29
- index: number;
30
- value: number;
31
- }>;
32
- displayValues: boolean;
33
- isAlpha: boolean;
34
- isLevelRender?: boolean;
35
- isParticle: boolean;
36
- radius: number;
37
- range: {
38
- max: number;
39
- min: number;
40
- };
41
- }): Dazzle.HeatMap;
42
- }
@@ -1,10 +0,0 @@
1
- export default class EffectMgr {
2
- colors: {
3
- 1: BABYLON.Color3;
4
- 2: BABYLON.Color3;
5
- 3: BABYLON.Color3;
6
- 4: BABYLON.Color3;
7
- 5: BABYLON.Color3;
8
- };
9
- constructor();
10
- }
@@ -1,5 +0,0 @@
1
- export declare enum EffectType {
2
- Opaque = 0,
3
- Flash = 1,
4
- Transparent = 2
5
- }
@@ -1,22 +0,0 @@
1
- import App from "./App";
2
- import Dictionary from "./Dictionary";
3
- import LightObject from "./lights/LightObject";
4
- export default class Environment {
5
- app: App;
6
- _color: BABYLON.Color4;
7
- lights: Dictionary<LightObject>;
8
- background: BABYLON.Layer;
9
- reflexEnabled: boolean;
10
- reflexIntensity: number;
11
- constructor(_app: App);
12
- set fogDistance(_value: number);
13
- set color(_value: BABYLON.Color4);
14
- reflex(url: string, intensity: number): void;
15
- setBackground(url: string): void;
16
- setReflexEnabled(_reflexEnabled: boolean): void;
17
- setFlexIntensity(_intensity: number): void;
18
- defaultLights(): void;
19
- offAllLight(): void;
20
- openAllLight(): void;
21
- loadLight(Lights: Array<any>): void;
22
- }
@@ -1,8 +0,0 @@
1
- export declare enum EventType {
2
- leftClick = "leftClick",
3
- rightClick = "rightClick",
4
- doubleClick = "doubleClick",
5
- eover = "eover",
6
- longPress = "longPress",
7
- out = "out"
8
- }
package/lib/GUID.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export default class GUID {
2
- static getGUID(length: number): string;
3
- }
@@ -1,2 +0,0 @@
1
- export default class HeatMapMgr {
2
- }
@@ -1,11 +0,0 @@
1
- import App from "../App";
2
- import DefaultObject from "../components/DefaultObject";
3
- export default class OptimizedRegion extends DefaultObject {
4
- index: number;
5
- height: number;
6
- constructor(app: App, _storey: any);
7
- bind(_storey: any, _isOptimized?: boolean): void;
8
- focus(): void;
9
- setEnabled(_value: boolean): void;
10
- restVisualAngle(): void;
11
- }
package/lib/ReadJSON.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export default class ReadJSON {
2
- static read(method: any, url: any): Promise<unknown>;
3
- }