mx3d 0.0.46 → 0.0.49
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.
- package/README.md +1 -1
- package/core/jsencrypt.min.js +2 -0
- package/index.d.ts +187 -202
- package/mx3d.js +1 -258
- package/mx3d.min.js +87 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
@author gzmaijing
|
|
3
3
|
@email mj@gzmaijing.com
|
|
4
4
|
*/
|
|
5
|
-
declare module MX3D{
|
|
6
|
-
export
|
|
5
|
+
declare module MX3D {
|
|
6
|
+
export class App {
|
|
7
7
|
canvas: HTMLCanvasElement;
|
|
8
8
|
engine: BABYLON.Engine;
|
|
9
9
|
scene: BABYLON.Scene;
|
|
@@ -16,19 +16,19 @@ export class App {
|
|
|
16
16
|
Project: Project;
|
|
17
17
|
ToolTips: ToolTips;
|
|
18
18
|
constructor(_config: {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
container: HTMLElement;
|
|
20
|
+
sl?: string;
|
|
21
|
+
rl?: string;
|
|
22
22
|
});
|
|
23
23
|
load(_config: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
pk: string;
|
|
25
|
+
progress?: Function;
|
|
26
|
+
complete?: Function;
|
|
27
27
|
}): Promise<void>;
|
|
28
28
|
dispose(): void;
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
30
|
|
|
31
|
-
export
|
|
31
|
+
export class Capacity {
|
|
32
32
|
anchor: IObject;
|
|
33
33
|
mesh: BABYLON.Mesh;
|
|
34
34
|
ratio: number;
|
|
@@ -36,25 +36,25 @@ export class Capacity {
|
|
|
36
36
|
textMesh: BABYLON.Mesh;
|
|
37
37
|
constructor(_object: IObject, _RATIO: number);
|
|
38
38
|
dispose(): void;
|
|
39
|
-
}
|
|
39
|
+
}
|
|
40
40
|
|
|
41
|
-
export
|
|
41
|
+
export class CapacityBuilder {
|
|
42
42
|
static createCapacity(_obj: IObject, _RATIO: number, _text: string, _fontSize?: string): void;
|
|
43
43
|
static createTextMesh(_obj: IObject, _text: string, _RATIO: number, _fontSize?: string, _color?: string): void;
|
|
44
|
-
}
|
|
44
|
+
}
|
|
45
45
|
|
|
46
|
-
export
|
|
46
|
+
export class EffectMgr {
|
|
47
47
|
static colors: {};
|
|
48
48
|
static init(): void;
|
|
49
|
-
}
|
|
49
|
+
}
|
|
50
50
|
|
|
51
|
-
export enum EffectType {
|
|
51
|
+
export enum EffectType {
|
|
52
52
|
Opaque = 0,
|
|
53
53
|
Flash = 1,
|
|
54
54
|
Transparent = 2
|
|
55
|
-
}
|
|
55
|
+
}
|
|
56
56
|
|
|
57
|
-
export
|
|
57
|
+
export class Environment {
|
|
58
58
|
app: App;
|
|
59
59
|
lights: any;
|
|
60
60
|
_color: BABYLON.Color4;
|
|
@@ -78,105 +78,113 @@ export class Environment {
|
|
|
78
78
|
hideFps(): void;
|
|
79
79
|
showDebug(): void;
|
|
80
80
|
setLightIntensity(_intensity?: number): void;
|
|
81
|
-
}
|
|
81
|
+
}
|
|
82
82
|
|
|
83
|
-
export enum EventType {
|
|
83
|
+
export enum EventType {
|
|
84
84
|
leftClick = "leftClick",
|
|
85
85
|
rightClick = "rightClick",
|
|
86
86
|
doubleClick = "doubleClick",
|
|
87
87
|
eover = "eover",
|
|
88
88
|
longPress = "longPress",
|
|
89
89
|
out = "out"
|
|
90
|
-
}
|
|
90
|
+
}
|
|
91
91
|
|
|
92
|
-
export
|
|
92
|
+
export class HeatMap implements BaseNode {
|
|
93
93
|
id: string;
|
|
94
|
-
|
|
95
|
-
anchor: string;
|
|
94
|
+
anchor: IObject;
|
|
96
95
|
mesh: BABYLON.Mesh;
|
|
96
|
+
displayValue: boolean;
|
|
97
97
|
texts: Array<BABYLON.GUI.TextBlock>;
|
|
98
98
|
constructor(_anchor: string);
|
|
99
99
|
isEnabled(_bool: boolean): void;
|
|
100
100
|
set displayValues(_value: boolean);
|
|
101
101
|
dispose(): void;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export
|
|
105
|
-
static
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
x: number;
|
|
115
|
-
y: number;
|
|
116
|
-
value: number;
|
|
117
|
-
}>;
|
|
118
|
-
};
|
|
119
|
-
displayValues: boolean;
|
|
120
|
-
height: number;
|
|
121
|
-
isLevelRender: boolean;
|
|
122
|
-
isAlpha: boolean;
|
|
123
|
-
isParticle: boolean;
|
|
124
|
-
radius: number;
|
|
125
|
-
range: {
|
|
126
|
-
max: number;
|
|
127
|
-
min: number;
|
|
128
|
-
};
|
|
129
|
-
}): void;
|
|
130
|
-
static createColumnarHeatMap(_data: {
|
|
131
|
-
anchor: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
132
|
-
FogTex: BABYLON.Texture;
|
|
133
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
134
|
-
config: Array<{
|
|
135
|
-
index: number;
|
|
136
|
-
value: number;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export class HeatMapBuilder {
|
|
105
|
+
static createMatrixCloud(_data: {
|
|
106
|
+
anchor: IObject;
|
|
107
|
+
value: {
|
|
108
|
+
maxX: number;
|
|
109
|
+
maxY: number;
|
|
110
|
+
data: Array<{
|
|
111
|
+
x: number;
|
|
112
|
+
y: number;
|
|
113
|
+
value: number;
|
|
137
114
|
}>;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
115
|
+
};
|
|
116
|
+
displayValues: boolean;
|
|
117
|
+
height: number;
|
|
118
|
+
isLevelRender: boolean;
|
|
119
|
+
isAlpha: boolean;
|
|
120
|
+
isParticle: boolean;
|
|
121
|
+
radius: number;
|
|
122
|
+
range: {
|
|
123
|
+
max: number;
|
|
124
|
+
min: number;
|
|
125
|
+
};
|
|
147
126
|
}): void;
|
|
148
|
-
|
|
127
|
+
static createPunctateCloud(_data: {
|
|
128
|
+
anchor: IObject;
|
|
129
|
+
value: number;
|
|
130
|
+
radius: number;
|
|
131
|
+
isLevelRender: boolean;
|
|
132
|
+
displayValues: boolean;
|
|
133
|
+
isAlpha: boolean;
|
|
134
|
+
isParticle: boolean;
|
|
135
|
+
range: {
|
|
136
|
+
max: number;
|
|
137
|
+
min: number;
|
|
138
|
+
};
|
|
139
|
+
}): void;
|
|
140
|
+
createColumnCloud(_data: {
|
|
141
|
+
anchor: IObject;
|
|
142
|
+
data: Array<{
|
|
143
|
+
index: number;
|
|
144
|
+
value: number;
|
|
145
|
+
}>;
|
|
146
|
+
isLevelRender: boolean;
|
|
147
|
+
displayValues: boolean;
|
|
148
|
+
isAlpha: boolean;
|
|
149
|
+
isParticle: boolean;
|
|
150
|
+
radius: number;
|
|
151
|
+
range: {
|
|
152
|
+
max: number;
|
|
153
|
+
min: number;
|
|
154
|
+
};
|
|
155
|
+
}): void;
|
|
156
|
+
}
|
|
149
157
|
|
|
150
|
-
export
|
|
158
|
+
export class Icon implements BaseNode {
|
|
151
159
|
id: string;
|
|
152
160
|
scene: BABYLON.Scene;
|
|
153
161
|
pint: BABYLON.Mesh;
|
|
154
162
|
rect: BABYLON.GUI.Rectangle;
|
|
155
163
|
onPointerClick: Function;
|
|
156
164
|
size: {
|
|
157
|
-
|
|
158
|
-
|
|
165
|
+
width: number;
|
|
166
|
+
height: number;
|
|
159
167
|
};
|
|
160
168
|
height: number;
|
|
161
169
|
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
162
170
|
constructor(_id: string, _scene: BABYLON.Scene);
|
|
163
171
|
set background(_url: string);
|
|
164
172
|
setTexts(_textArr: [{
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
173
|
+
text: string;
|
|
174
|
+
fontSize: string;
|
|
175
|
+
color: string;
|
|
176
|
+
top: number;
|
|
177
|
+
left: number;
|
|
170
178
|
}]): void;
|
|
171
179
|
line(_line: {
|
|
172
|
-
|
|
173
|
-
|
|
180
|
+
width: number;
|
|
181
|
+
color: string;
|
|
174
182
|
}): void;
|
|
175
183
|
dispose(): void;
|
|
176
184
|
isEnabled(_isEnabled: boolean): void;
|
|
177
|
-
}
|
|
185
|
+
}
|
|
178
186
|
|
|
179
|
-
export
|
|
187
|
+
export class IconFromMesh implements BaseNode {
|
|
180
188
|
id: string;
|
|
181
189
|
scene: BABYLON.Scene;
|
|
182
190
|
instance: BABYLON.Mesh;
|
|
@@ -187,38 +195,53 @@ export class IconFromMesh implements BaseNode {
|
|
|
187
195
|
addEventListener(_action: Function): void;
|
|
188
196
|
setColor(_color: string): void;
|
|
189
197
|
setContents(_textArr: [{
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
198
|
+
text: string;
|
|
199
|
+
fontSize: string;
|
|
200
|
+
top: number;
|
|
201
|
+
left: number;
|
|
202
|
+
color?: string;
|
|
195
203
|
}]): void;
|
|
196
204
|
dispose(): void;
|
|
197
205
|
isEnabled(_bool: boolean): void;
|
|
198
|
-
}
|
|
206
|
+
}
|
|
199
207
|
|
|
200
|
-
export
|
|
208
|
+
export class UI {
|
|
201
209
|
static createIconFromMesh(_id: string, _anchor: IObject, _url: string, _scaling: number, _height: number): void;
|
|
202
210
|
static createIcon(_id: string, _anchor: IObject, _size: {
|
|
203
|
-
|
|
204
|
-
|
|
211
|
+
width: number;
|
|
212
|
+
height: number;
|
|
205
213
|
}, _height: number): void;
|
|
206
|
-
|
|
214
|
+
static create2DLine(_id: string, _objs: Array<IObject>, _options?: {
|
|
215
|
+
_width: number;
|
|
216
|
+
_color: string;
|
|
217
|
+
isDotted: boolean;
|
|
218
|
+
}): void;
|
|
219
|
+
static create3DLine(_id: string, _objs: Array<IObject>, _options?: {
|
|
220
|
+
_width: number;
|
|
221
|
+
_color: string;
|
|
222
|
+
}): void;
|
|
223
|
+
}
|
|
207
224
|
|
|
208
|
-
export
|
|
225
|
+
export class HubService {
|
|
226
|
+
static connection: any;
|
|
227
|
+
static listener(_Url: string): Promise<void>;
|
|
228
|
+
static start(): Promise<void>;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export class Directional extends LightObject {
|
|
209
232
|
direction: BABYLON.Vector3;
|
|
210
233
|
position: BABYLON.Vector3;
|
|
211
234
|
light: BABYLON.DirectionalLight;
|
|
212
235
|
load(): void;
|
|
213
|
-
}
|
|
236
|
+
}
|
|
214
237
|
|
|
215
|
-
export
|
|
238
|
+
export class Hemispheric extends LightObject {
|
|
216
239
|
direction: BABYLON.Vector3;
|
|
217
240
|
light: BABYLON.HemisphericLight;
|
|
218
241
|
load(): void;
|
|
219
|
-
}
|
|
242
|
+
}
|
|
220
243
|
|
|
221
|
-
export
|
|
244
|
+
export interface ILightObject {
|
|
222
245
|
id: string;
|
|
223
246
|
sceneId: string;
|
|
224
247
|
name: string;
|
|
@@ -227,9 +250,9 @@ export interface ILightObject {
|
|
|
227
250
|
lightType: string;
|
|
228
251
|
intensity: number;
|
|
229
252
|
load: Function;
|
|
230
|
-
}
|
|
253
|
+
}
|
|
231
254
|
|
|
232
|
-
export
|
|
255
|
+
export class LightObject implements ILightObject {
|
|
233
256
|
id: string;
|
|
234
257
|
sceneId: string;
|
|
235
258
|
name: string;
|
|
@@ -241,23 +264,23 @@ export class LightObject implements ILightObject {
|
|
|
241
264
|
app: App;
|
|
242
265
|
constructor(_app: App);
|
|
243
266
|
load(): void;
|
|
244
|
-
}
|
|
267
|
+
}
|
|
245
268
|
|
|
246
|
-
export enum LightType {
|
|
269
|
+
export enum LightType {
|
|
247
270
|
Point = "Point",
|
|
248
271
|
Spot = "Spot",
|
|
249
272
|
Directional = "Directional",
|
|
250
273
|
Hemispheric = "Hemispheric"
|
|
251
|
-
}
|
|
274
|
+
}
|
|
252
275
|
|
|
253
|
-
export
|
|
276
|
+
export class Point extends LightObject {
|
|
254
277
|
position: BABYLON.Vector3;
|
|
255
278
|
light: BABYLON.PointLight;
|
|
256
279
|
range: number;
|
|
257
280
|
load(): void;
|
|
258
|
-
}
|
|
281
|
+
}
|
|
259
282
|
|
|
260
|
-
export
|
|
283
|
+
export class Spot extends LightObject {
|
|
261
284
|
direction: BABYLON.Vector3;
|
|
262
285
|
position: BABYLON.Vector3;
|
|
263
286
|
angle: number;
|
|
@@ -265,12 +288,12 @@ export class Spot extends LightObject {
|
|
|
265
288
|
range: number;
|
|
266
289
|
light: BABYLON.SpotLight;
|
|
267
290
|
load(): void;
|
|
268
|
-
}
|
|
291
|
+
}
|
|
269
292
|
|
|
270
|
-
export
|
|
271
|
-
}
|
|
293
|
+
export class CabinetObject extends DefaultObject {
|
|
294
|
+
}
|
|
272
295
|
|
|
273
|
-
export
|
|
296
|
+
export class ConduitObject extends DefaultObject {
|
|
274
297
|
alpha: number;
|
|
275
298
|
color: string;
|
|
276
299
|
bind(_m: any): void;
|
|
@@ -280,14 +303,14 @@ export class ConduitObject extends DefaultObject {
|
|
|
280
303
|
setFlash(_level?: number): void;
|
|
281
304
|
setOpaque(): void;
|
|
282
305
|
setTransparent(_alpha?: number): void;
|
|
283
|
-
}
|
|
306
|
+
}
|
|
284
307
|
|
|
285
|
-
export
|
|
308
|
+
export class CornerObject extends DefaultObject {
|
|
286
309
|
height: number;
|
|
287
310
|
bind(_m: any): void;
|
|
288
|
-
}
|
|
311
|
+
}
|
|
289
312
|
|
|
290
|
-
export
|
|
313
|
+
export class DefaultObject implements IObject {
|
|
291
314
|
app: App;
|
|
292
315
|
id: string;
|
|
293
316
|
name: string;
|
|
@@ -320,29 +343,27 @@ export class DefaultObject implements IObject {
|
|
|
320
343
|
setTransparent(_alpha?: number): void;
|
|
321
344
|
play(): void;
|
|
322
345
|
stop(): void;
|
|
323
|
-
|
|
324
|
-
focus(): void;
|
|
325
|
-
}
|
|
346
|
+
}
|
|
326
347
|
|
|
327
|
-
export
|
|
348
|
+
export class DoorObject extends DefaultObject {
|
|
328
349
|
height: number;
|
|
329
350
|
bind(_m: any): void;
|
|
330
|
-
}
|
|
351
|
+
}
|
|
331
352
|
|
|
332
|
-
export
|
|
353
|
+
export class FloorObject extends DefaultObject {
|
|
333
354
|
height: number;
|
|
334
355
|
bind(_m: any): void;
|
|
335
|
-
}
|
|
356
|
+
}
|
|
336
357
|
|
|
337
|
-
export
|
|
358
|
+
export interface IBase {
|
|
338
359
|
app: App;
|
|
339
360
|
id: string;
|
|
340
361
|
name: string;
|
|
341
362
|
parentId: string;
|
|
342
363
|
objectType: string;
|
|
343
|
-
}
|
|
364
|
+
}
|
|
344
365
|
|
|
345
|
-
export
|
|
366
|
+
export interface IObject extends IBase {
|
|
346
367
|
customNumber: string;
|
|
347
368
|
customType: string;
|
|
348
369
|
modelId: string;
|
|
@@ -360,66 +381,32 @@ export interface IObject extends IBase {
|
|
|
360
381
|
removeEventListener(type: string): any;
|
|
361
382
|
play(isloop: boolean): any;
|
|
362
383
|
stop(): any;
|
|
363
|
-
flyTo(): any;
|
|
364
|
-
focus(): any;
|
|
365
384
|
computeView(): any;
|
|
366
|
-
}
|
|
385
|
+
}
|
|
367
386
|
|
|
368
|
-
export
|
|
387
|
+
export class LeakWaterObject extends DefaultObject {
|
|
369
388
|
bind(_l: any): void;
|
|
370
389
|
computeView(): void;
|
|
371
390
|
addEventListener(_type: string, _callback: Function): void;
|
|
372
391
|
removeEventListener(_type: string): void;
|
|
373
|
-
}
|
|
392
|
+
}
|
|
374
393
|
|
|
375
|
-
export enum ObjectType {
|
|
376
|
-
|
|
377
|
-
Building = "Building",
|
|
378
|
-
Scene = "Scene",
|
|
379
|
-
Humiture = "Humiture",
|
|
380
|
-
Battery = "Battery",
|
|
381
|
-
PowerCabinet = "PowerCabinet",
|
|
394
|
+
export enum ObjectType {
|
|
395
|
+
Region = "Region",
|
|
382
396
|
Cabinet = "Cabinet",
|
|
383
|
-
AirCondition = "AirCondition",
|
|
384
|
-
UPS = "UPS",
|
|
385
|
-
Camera = "Camera",
|
|
386
|
-
NewWindMachine = "NewWindMachine",
|
|
387
|
-
SmokeDetector = "SmokeDetector",
|
|
388
|
-
AudibleVisualAlarm = "AudibleVisualAlarm",
|
|
389
|
-
LeakWater = "LeakWater",
|
|
390
|
-
Wall = "Wall",
|
|
391
|
-
Floor = "Floor",
|
|
392
|
-
Window = "Window",
|
|
393
|
-
Door = "Door",
|
|
394
|
-
AirFlow = "AirFlow",
|
|
395
397
|
Corner = "Corner",
|
|
396
|
-
FireFighting = "FireFighting",
|
|
397
|
-
Lighting = "Lighting",
|
|
398
|
-
Enclosure = "Enclosure",
|
|
399
|
-
ParkingLot = "ParkingLot",
|
|
400
|
-
Elevator = "Elevator",
|
|
401
398
|
Other = "Other",
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
OutDoorScene = "OutDoorScene",
|
|
406
|
-
Infrared = "Infrared",
|
|
407
|
-
SkyBox = "SkyBox",
|
|
399
|
+
Door = "Door",
|
|
400
|
+
Floor = "Floor",
|
|
401
|
+
LeakWater = "LeakWater",
|
|
408
402
|
UI3D = "UI3D",
|
|
409
|
-
ColdTongDoor = "ColdTongDoor",
|
|
410
403
|
VirtualBox = "VirtualBox",
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
MapModel = "MapModel",
|
|
416
|
-
radiator = "radiator",
|
|
417
|
-
Conduit = "Conduit",
|
|
418
|
-
Region = "Region",
|
|
419
|
-
optimizedWall = "optimizedWall"
|
|
420
|
-
}
|
|
404
|
+
Wall = "Wall",
|
|
405
|
+
Window = "Window",
|
|
406
|
+
Conduit = "Conduit"
|
|
407
|
+
}
|
|
421
408
|
|
|
422
|
-
export
|
|
409
|
+
export class Project {
|
|
423
410
|
app: App;
|
|
424
411
|
id: string;
|
|
425
412
|
root: IObject;
|
|
@@ -438,9 +425,9 @@ export class Project {
|
|
|
438
425
|
findObjectByCustomNumber(): void;
|
|
439
426
|
findObjectsByCustomType(): void;
|
|
440
427
|
switchLevel(_id?: string, _isFocus?: boolean, _includeSub?: boolean): void;
|
|
441
|
-
}
|
|
428
|
+
}
|
|
442
429
|
|
|
443
|
-
export
|
|
430
|
+
export class RegionObject extends DefaultObject {
|
|
444
431
|
index: number;
|
|
445
432
|
height: number;
|
|
446
433
|
constructor(app: App, _storey: any);
|
|
@@ -451,40 +438,39 @@ export class RegionObject extends DefaultObject {
|
|
|
451
438
|
setEnabled(_value: boolean): void;
|
|
452
439
|
getBounding(): void;
|
|
453
440
|
dispose(): void;
|
|
454
|
-
}
|
|
441
|
+
}
|
|
455
442
|
|
|
456
|
-
export
|
|
443
|
+
export class UI3DTextObject extends DefaultObject {
|
|
457
444
|
bind(_u: any): void;
|
|
458
|
-
}
|
|
445
|
+
}
|
|
459
446
|
|
|
460
|
-
export
|
|
447
|
+
export class VirtualBoxObject extends DefaultObject {
|
|
461
448
|
bind(_m: any): Promise<void>;
|
|
462
|
-
}
|
|
449
|
+
}
|
|
463
450
|
|
|
464
|
-
export
|
|
451
|
+
export class WallObject extends DefaultObject {
|
|
465
452
|
nativeMaterial: BABYLON.StandardMaterial;
|
|
466
453
|
baseModel: any;
|
|
467
454
|
height: number;
|
|
468
455
|
bind(_w: any): void;
|
|
469
|
-
}
|
|
456
|
+
}
|
|
470
457
|
|
|
471
|
-
export
|
|
458
|
+
export class WindowObject extends DefaultObject {
|
|
472
459
|
height: number;
|
|
473
460
|
bind(_m: any): void;
|
|
474
|
-
}
|
|
461
|
+
}
|
|
475
462
|
|
|
476
|
-
export
|
|
463
|
+
export class ArrayEx<T> extends Array<T> {
|
|
477
464
|
remove(_val: any): void;
|
|
478
|
-
}
|
|
465
|
+
}
|
|
479
466
|
|
|
480
|
-
export
|
|
467
|
+
export interface BaseNode {
|
|
481
468
|
id: string;
|
|
482
|
-
scene: BABYLON.Scene;
|
|
483
469
|
dispose(): any;
|
|
484
470
|
isEnabled(bool: boolean): any;
|
|
485
|
-
}
|
|
471
|
+
}
|
|
486
472
|
|
|
487
|
-
export
|
|
473
|
+
export class Camera {
|
|
488
474
|
app: App;
|
|
489
475
|
camera: BABYLON.ArcRotateCamera;
|
|
490
476
|
frustrum: number;
|
|
@@ -494,14 +480,14 @@ export class Camera {
|
|
|
494
480
|
perspective(): void;
|
|
495
481
|
flyTo(_visualAngle: Sight, _sheep?: number): void;
|
|
496
482
|
getSightJson(): void;
|
|
497
|
-
|
|
483
|
+
lookToTheFront(_object: IObject, _sheep?: number): void;
|
|
498
484
|
computeCameraView(): void;
|
|
499
485
|
_wheel(_p: any): void;
|
|
500
|
-
}
|
|
486
|
+
}
|
|
501
487
|
|
|
502
|
-
export
|
|
488
|
+
export class Dictionary<T> {
|
|
503
489
|
map: {
|
|
504
|
-
|
|
490
|
+
[key: string]: T;
|
|
505
491
|
};
|
|
506
492
|
constructor();
|
|
507
493
|
add(_key: string, _value: T): void;
|
|
@@ -511,13 +497,13 @@ export class Dictionary<T> {
|
|
|
511
497
|
showAll(): void;
|
|
512
498
|
count(): void;
|
|
513
499
|
clear(): void;
|
|
514
|
-
}
|
|
500
|
+
}
|
|
515
501
|
|
|
516
|
-
export
|
|
502
|
+
export class GUID {
|
|
517
503
|
static getGUID(_length: number): void;
|
|
518
|
-
}
|
|
504
|
+
}
|
|
519
505
|
|
|
520
|
-
export
|
|
506
|
+
export class Resources {
|
|
521
507
|
app: App;
|
|
522
508
|
walls: Dictionary<BABYLON.AbstractMesh>;
|
|
523
509
|
resources: Dictionary<BABYLON.AssetContainer>;
|
|
@@ -536,9 +522,9 @@ export class Resources {
|
|
|
536
522
|
GetMergeMaterial(_textureData: any, _scene: BABYLON.Scene): void;
|
|
537
523
|
delete(_isAll?: boolean): void;
|
|
538
524
|
GetWalls(_url: string, _projectId: string): Promise<void>;
|
|
539
|
-
}
|
|
525
|
+
}
|
|
540
526
|
|
|
541
|
-
export
|
|
527
|
+
export class Sight {
|
|
542
528
|
alpha: number;
|
|
543
529
|
focus: BABYLON.Vector3;
|
|
544
530
|
radius: number;
|
|
@@ -551,9 +537,9 @@ export class Sight {
|
|
|
551
537
|
toString(): void;
|
|
552
538
|
setLimit(_miniLimit: number, _maxiLimit: number): void;
|
|
553
539
|
setBeta(_minBeta: number, _maxBeta: number): void;
|
|
554
|
-
}
|
|
540
|
+
}
|
|
555
541
|
|
|
556
|
-
export
|
|
542
|
+
export class Tools {
|
|
557
543
|
static vector3ToJson(_old: BABYLON.Vector3): any;
|
|
558
544
|
static vector3ARRToJson(_olds: BABYLON.Vector3[]): void;
|
|
559
545
|
static ToVector3(_old: any): void;
|
|
@@ -570,9 +556,9 @@ export class Tools {
|
|
|
570
556
|
static getAngleFromVector2(_startV: BABYLON.Vector2, _coreV: BABYLON.Vector2, _endV: BABYLON.Vector2): void;
|
|
571
557
|
static getAngleFromVector3(_startV: BABYLON.Vector3, _coreV: BABYLON.Vector3, _endV: BABYLON.Vector3): void;
|
|
572
558
|
static RandomNumBoth(_Min: any, _Max: any): void;
|
|
573
|
-
}
|
|
559
|
+
}
|
|
574
560
|
|
|
575
|
-
export
|
|
561
|
+
export class ToolTips {
|
|
576
562
|
app: App;
|
|
577
563
|
url: string;
|
|
578
564
|
ele: HTMLDivElement;
|
|
@@ -585,6 +571,5 @@ export class ToolTips {
|
|
|
585
571
|
close(): void;
|
|
586
572
|
setBackground(_url: string): void;
|
|
587
573
|
dispose(): void;
|
|
574
|
+
}
|
|
588
575
|
}
|
|
589
|
-
|
|
590
|
-
}
|