mx3d 0.0.42 → 0.0.45
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/core/mx3d.kernel.min.js +1 -1
- package/index.d.ts +36 -2323
- package/mx3d.js +2 -0
- package/mx3d.min.js +3 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,585 +1,7 @@
|
|
|
1
|
-
/*
|
|
2
|
-
@author gzmaijing
|
|
3
|
-
@email mj@gzmaijing.com
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
module MX3D {
|
|
10
|
-
|
|
11
|
-
export class App {
|
|
12
|
-
canvas: HTMLCanvasElement;
|
|
13
|
-
engine: BABYLON.Engine;
|
|
14
|
-
scene: BABYLON.Scene;
|
|
15
|
-
Camera: Camera;
|
|
16
|
-
HighlightLayer: BABYLON.HighlightLayer;
|
|
17
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
18
|
-
fps: HTMLDivElement;
|
|
19
|
-
Resources: Resources;
|
|
20
|
-
Environment: Environment;
|
|
21
|
-
Project: Project;
|
|
22
|
-
ToolTips: ToolTips;
|
|
23
|
-
constructor(_config: {
|
|
24
|
-
container: HTMLElement;
|
|
25
|
-
pk: string;
|
|
26
|
-
sl?: string;
|
|
27
|
-
rl?: string;
|
|
28
|
-
});
|
|
29
|
-
load(_config: {
|
|
30
|
-
progress?: Function;
|
|
31
|
-
complete?: Function;
|
|
32
|
-
}): Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export class Camera {
|
|
36
|
-
app: App;
|
|
37
|
-
camera: BABYLON.ArcRotateCamera;
|
|
38
|
-
frustrum: number;
|
|
39
|
-
isOverLook: boolean;
|
|
40
|
-
constructor(_app: App);
|
|
41
|
-
orthographic(): void;
|
|
42
|
-
perspective(): void;
|
|
43
|
-
focusingFromProperty(_visualAngle: VisualAngle): void;
|
|
44
|
-
flyTo(_visualAngle: VisualAngle, _sheep?: number): void;
|
|
45
|
-
translation(_visualAngle: VisualAngle, _sheep?: number): void;
|
|
46
|
-
computeCameraView(): void;
|
|
47
|
-
_wheel(_p: any): void;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export class Capacity {
|
|
51
|
-
anchor: IObject;
|
|
52
|
-
mesh: BABYLON.Mesh;
|
|
53
|
-
ratio: number;
|
|
54
|
-
color: string;
|
|
55
|
-
textMesh: BABYLON.Mesh;
|
|
56
|
-
constructor(_object: IObject, _RATIO: number);
|
|
57
|
-
dispose(): void;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export class CapacityBuilder {
|
|
61
|
-
static createCapacity(_obj: IObject, _RATIO: number, _text: string, _fontSize?: string): void;
|
|
62
|
-
static createTextMesh(_obj: IObject, _text: string, _RATIO: number, _fontSize?: string, _color?: string): void;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export class Dictionary<T> {
|
|
66
|
-
map: {
|
|
67
|
-
[key: string]: T;
|
|
68
|
-
};
|
|
69
|
-
constructor();
|
|
70
|
-
add(_key: string, _value: T): void;
|
|
71
|
-
find(_key: string): void;
|
|
72
|
-
remove(_key: string): void;
|
|
73
|
-
termRemove(_callback: Function): void;
|
|
74
|
-
showAll(): void;
|
|
75
|
-
count(): void;
|
|
76
|
-
clear(): void;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export class EffectMgr {
|
|
80
|
-
static colors: {};
|
|
81
|
-
static init(): void;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export enum EffectType {
|
|
85
|
-
Opaque = 0,
|
|
86
|
-
Flash = 1,
|
|
87
|
-
Transparent = 2
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export class Environment {
|
|
91
|
-
app: App;
|
|
92
|
-
lights: any;
|
|
93
|
-
_color: BABYLON.Color4;
|
|
94
|
-
background: BABYLON.Layer;
|
|
95
|
-
reflexEnabled: boolean;
|
|
96
|
-
reflexIntensity: number;
|
|
97
|
-
constructor(_app: App);
|
|
98
|
-
set fogDistance(_value: number);
|
|
99
|
-
set color(_value: BABYLON.Color4);
|
|
100
|
-
reflex(_url: string, _intensity: number): void;
|
|
101
|
-
setBackground(_url: string): void;
|
|
102
|
-
setReflexEnabled(_reflexEnabled: boolean): void;
|
|
103
|
-
setFlexIntensity(_intensity: number): void;
|
|
104
|
-
Lights(): void;
|
|
105
|
-
offAllLight(): void;
|
|
106
|
-
openAllLight(): void;
|
|
107
|
-
loadLight(_Lights: Array<any>): void;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export enum EventType {
|
|
111
|
-
leftClick = "leftClick",
|
|
112
|
-
rightClick = "rightClick",
|
|
113
|
-
doubleClick = "doubleClick",
|
|
114
|
-
eover = "eover",
|
|
115
|
-
longPress = "longPress",
|
|
116
|
-
out = "out"
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export class HeatMap implements BaseNode {
|
|
120
|
-
id: string;
|
|
121
|
-
scene: BABYLON.Scene;
|
|
122
|
-
anchor: string;
|
|
123
|
-
mesh: BABYLON.Mesh;
|
|
124
|
-
texts: Array<BABYLON.GUI.TextBlock>;
|
|
125
|
-
constructor(_anchor: string);
|
|
126
|
-
isEnabled(_bool: boolean): void;
|
|
127
|
-
set displayValues(_value: boolean);
|
|
128
|
-
dispose(): void;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export class HeatMapBuilder {
|
|
132
|
-
static createMatrixHeatMap(_data: {
|
|
133
|
-
anchor: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
134
|
-
rootUrl: string;
|
|
135
|
-
FogTex: BABYLON.Texture;
|
|
136
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
137
|
-
config: {
|
|
138
|
-
maxX: number;
|
|
139
|
-
maxY: number;
|
|
140
|
-
data: Array<{
|
|
141
|
-
x: number;
|
|
142
|
-
y: number;
|
|
143
|
-
value: number;
|
|
144
|
-
}>;
|
|
145
|
-
};
|
|
146
|
-
displayValues: boolean;
|
|
147
|
-
height: number;
|
|
148
|
-
isLevelRender: boolean;
|
|
149
|
-
isAlpha: boolean;
|
|
150
|
-
isParticle: boolean;
|
|
151
|
-
radius: number;
|
|
152
|
-
range: {
|
|
153
|
-
max: number;
|
|
154
|
-
min: number;
|
|
155
|
-
};
|
|
156
|
-
}): void;
|
|
157
|
-
static createColumnarHeatMap(_data: {
|
|
158
|
-
anchor: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
159
|
-
FogTex: BABYLON.Texture;
|
|
160
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
161
|
-
config: Array<{
|
|
162
|
-
index: number;
|
|
163
|
-
value: number;
|
|
164
|
-
}>;
|
|
165
|
-
isLevelRender: boolean;
|
|
166
|
-
displayValues: boolean;
|
|
167
|
-
isAlpha: boolean;
|
|
168
|
-
isParticle: boolean;
|
|
169
|
-
radius: number;
|
|
170
|
-
range: {
|
|
171
|
-
max: number;
|
|
172
|
-
min: number;
|
|
173
|
-
};
|
|
174
|
-
}): void;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export class Icon implements BaseNode {
|
|
178
|
-
id: string;
|
|
179
|
-
scene: BABYLON.Scene;
|
|
180
|
-
pint: BABYLON.Mesh;
|
|
181
|
-
rect: BABYLON.GUI.Rectangle;
|
|
182
|
-
onPointerClick: Function;
|
|
183
|
-
size: {
|
|
184
|
-
width: number;
|
|
185
|
-
height: number;
|
|
186
|
-
};
|
|
187
|
-
height: number;
|
|
188
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
189
|
-
constructor(_id: string, _scene: BABYLON.Scene);
|
|
190
|
-
set background(_url: string);
|
|
191
|
-
setTexts(_textArr: [{
|
|
192
|
-
text: string;
|
|
193
|
-
fontSize: string;
|
|
194
|
-
color: string;
|
|
195
|
-
top: number;
|
|
196
|
-
left: number;
|
|
197
|
-
}]): void;
|
|
198
|
-
line(_line: {
|
|
199
|
-
width: number;
|
|
200
|
-
color: string;
|
|
201
|
-
}): void;
|
|
202
|
-
dispose(): void;
|
|
203
|
-
isEnabled(_isEnabled: boolean): void;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export class IconFromMesh implements BaseNode {
|
|
207
|
-
id: string;
|
|
208
|
-
scene: BABYLON.Scene;
|
|
209
|
-
instance: BABYLON.Mesh;
|
|
210
|
-
url: string;
|
|
211
|
-
scaling: number;
|
|
212
|
-
constructor(_id: string, _anchor: BABYLON.Vector3, _url: string, _scaling: number, _height: number, _scene: BABYLON.Scene);
|
|
213
|
-
setBackground(): void;
|
|
214
|
-
addEventListener(_action: Function): void;
|
|
215
|
-
setColor(_color: string): void;
|
|
216
|
-
setContents(_textArr: [{
|
|
217
|
-
text: string;
|
|
218
|
-
fontSize: string;
|
|
219
|
-
top: number;
|
|
220
|
-
left: number;
|
|
221
|
-
color?: string;
|
|
222
|
-
}]): void;
|
|
223
|
-
dispose(): void;
|
|
224
|
-
isEnabled(_bool: boolean): void;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export class Project {
|
|
228
|
-
app: App;
|
|
229
|
-
id: string;
|
|
230
|
-
root: IObject;
|
|
231
|
-
current: IObject;
|
|
232
|
-
visualAngle: VisualAngle;
|
|
233
|
-
objectDatas: Dictionary<IObject>;
|
|
234
|
-
constructor(_app: App);
|
|
235
|
-
delete(): void;
|
|
236
|
-
optimization(): void;
|
|
237
|
-
computeView(): void;
|
|
238
|
-
getChildNodes(_id: string): void;
|
|
239
|
-
getTrees(): void;
|
|
240
|
-
find(_id: string): void;
|
|
241
|
-
findFormObjectType(_type: ObjectType, _isCurent?: boolean): void;
|
|
242
|
-
show(): void;
|
|
243
|
-
getBounding(): void;
|
|
244
|
-
flyTo(): void;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export class UI {
|
|
248
|
-
static createIconFromMesh(_id: string, _anchor: IObject, _url: string, _scaling: number, _height: number): void;
|
|
249
|
-
static createIcon(_id: string, _anchor: IObject, _size: {
|
|
250
|
-
width: number;
|
|
251
|
-
height: number;
|
|
252
|
-
}, _height: number): void;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
export class Directional extends LightObject {
|
|
256
|
-
direction: BABYLON.Vector3;
|
|
257
|
-
position: BABYLON.Vector3;
|
|
258
|
-
light: BABYLON.DirectionalLight;
|
|
259
|
-
load(): void;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export class Hemispheric extends LightObject {
|
|
263
|
-
direction: BABYLON.Vector3;
|
|
264
|
-
light: BABYLON.HemisphericLight;
|
|
265
|
-
load(): void;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export interface ILightObject {
|
|
269
|
-
id: string;
|
|
270
|
-
sceneId: string;
|
|
271
|
-
name: string;
|
|
272
|
-
light: BABYLON.Light;
|
|
273
|
-
color: string;
|
|
274
|
-
lightType: string;
|
|
275
|
-
intensity: number;
|
|
276
|
-
load: Function;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export class LightObject implements ILightObject {
|
|
280
|
-
id: string;
|
|
281
|
-
sceneId: string;
|
|
282
|
-
name: string;
|
|
283
|
-
light: BABYLON.Light;
|
|
284
|
-
color: string;
|
|
285
|
-
objectType: string;
|
|
286
|
-
lightType: string;
|
|
287
|
-
intensity: number;
|
|
288
|
-
app: App;
|
|
289
|
-
constructor(_app: App);
|
|
290
|
-
load(): void;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
export enum LightType {
|
|
294
|
-
Point = "Point",
|
|
295
|
-
Spot = "Spot",
|
|
296
|
-
Directional = "Directional",
|
|
297
|
-
Hemispheric = "Hemispheric"
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
export class Point extends LightObject {
|
|
301
|
-
position: BABYLON.Vector3;
|
|
302
|
-
light: BABYLON.PointLight;
|
|
303
|
-
range: number;
|
|
304
|
-
load(): void;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
export class Spot extends LightObject {
|
|
308
|
-
direction: BABYLON.Vector3;
|
|
309
|
-
position: BABYLON.Vector3;
|
|
310
|
-
angle: number;
|
|
311
|
-
exponent: number;
|
|
312
|
-
range: number;
|
|
313
|
-
light: BABYLON.SpotLight;
|
|
314
|
-
load(): void;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
export class CabinetObject extends Object {
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
export class ConduitObject extends Object {
|
|
321
|
-
alpha: number;
|
|
322
|
-
color: string;
|
|
323
|
-
bind(_m: any): void;
|
|
324
|
-
setColor(_r: number, _b: number, _g: number): void;
|
|
325
|
-
reColor(): void;
|
|
326
|
-
computeView(): void;
|
|
327
|
-
setFlash(_level?: number): void;
|
|
328
|
-
setOpaque(): void;
|
|
329
|
-
setTransparent(_alpha?: number): void;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
export class CornerObject extends Object {
|
|
333
|
-
height: number;
|
|
334
|
-
bind(_m: any): void;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
export class Object implements IObject {
|
|
338
|
-
app: App;
|
|
339
|
-
id: string;
|
|
340
|
-
name: string;
|
|
341
|
-
parentId: string;
|
|
342
|
-
modelId: string;
|
|
343
|
-
instance: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
344
|
-
objectType: string;
|
|
345
|
-
modelType: string;
|
|
346
|
-
action: BABYLON.ActionManager;
|
|
347
|
-
executes: Dictionary<BABYLON.ExecuteCodeAction>;
|
|
348
|
-
clickEvents: Dictionary<Function>;
|
|
349
|
-
touchtime: number;
|
|
350
|
-
effectType: EffectType;
|
|
351
|
-
visualAngle: VisualAngle;
|
|
352
|
-
animation: boolean;
|
|
353
|
-
isloop: boolean;
|
|
354
|
-
isAutoPlay: boolean;
|
|
355
|
-
constructor(_app: App);
|
|
356
|
-
showBoundingBox: boolean;
|
|
357
|
-
setEnabled(_value: boolean): void;
|
|
358
|
-
bind(_m: any): void;
|
|
359
|
-
computeView(): void;
|
|
360
|
-
optimization(_isOptimization: boolean): void;
|
|
361
|
-
alwaysActive(): void;
|
|
362
|
-
addEventListener(_type: string, _callback: Function): void;
|
|
363
|
-
removeEventListener(_type: string): void;
|
|
364
|
-
setFlash(_level: number): void;
|
|
365
|
-
setOpaque(): void;
|
|
366
|
-
setTransparent(_alpha?: number): void;
|
|
367
|
-
play(): void;
|
|
368
|
-
stop(): void;
|
|
369
|
-
flyTo(): void;
|
|
370
|
-
focus(): void;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
export class DoorObject extends Object {
|
|
374
|
-
height: number;
|
|
375
|
-
bind(_m: any): void;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
export class FloorObject extends Object {
|
|
379
|
-
height: number;
|
|
380
|
-
bind(_m: any): void;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
export interface IBase {
|
|
384
|
-
app: App;
|
|
385
|
-
id: string;
|
|
386
|
-
name: string;
|
|
387
|
-
parentId: string;
|
|
388
|
-
objectType: string;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
export interface IObject extends IBase {
|
|
392
|
-
modelId: string;
|
|
393
|
-
instance: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
394
|
-
modelType: string;
|
|
395
|
-
visualAngle: VisualAngle;
|
|
396
|
-
effectType: EffectType;
|
|
397
|
-
bind(_m?: any): any;
|
|
398
|
-
optimization(isOptimization: boolean): any;
|
|
399
|
-
showBoundingBox: boolean;
|
|
400
|
-
setFlash(level: number): any;
|
|
401
|
-
setTransparent(): any;
|
|
402
|
-
setOpaque(): any;
|
|
403
|
-
setEnabled(isEnabled: any): any;
|
|
404
|
-
addEventListener(type: string, callback: Function): any;
|
|
405
|
-
removeEventListener(type: string): any;
|
|
406
|
-
play(isloop: boolean): any;
|
|
407
|
-
stop(): any;
|
|
408
|
-
flyTo(): any;
|
|
409
|
-
focus(): any;
|
|
410
|
-
computeView(): any;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
export class LeakWaterObject extends Object {
|
|
414
|
-
bind(_l: any): void;
|
|
415
|
-
computeView(): void;
|
|
416
|
-
addEventListener(_type: string, _callback: Function): void;
|
|
417
|
-
removeEventListener(_type: string): void;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
export enum ObjectType {
|
|
421
|
-
Campus = "Campus",
|
|
422
|
-
Building = "Building",
|
|
423
|
-
Scene = "Scene",
|
|
424
|
-
Humiture = "Humiture",
|
|
425
|
-
Battery = "Battery",
|
|
426
|
-
PowerCabinet = "PowerCabinet",
|
|
427
|
-
Cabinet = "Cabinet",
|
|
428
|
-
AirCondition = "AirCondition",
|
|
429
|
-
UPS = "UPS",
|
|
430
|
-
Camera = "Camera",
|
|
431
|
-
NewWindMachine = "NewWindMachine",
|
|
432
|
-
SmokeDetector = "SmokeDetector",
|
|
433
|
-
AudibleVisualAlarm = "AudibleVisualAlarm",
|
|
434
|
-
LeakWater = "LeakWater",
|
|
435
|
-
Wall = "Wall",
|
|
436
|
-
Floor = "Floor",
|
|
437
|
-
Window = "Window",
|
|
438
|
-
Door = "Door",
|
|
439
|
-
AirFlow = "AirFlow",
|
|
440
|
-
Corner = "Corner",
|
|
441
|
-
FireFighting = "FireFighting",
|
|
442
|
-
Lighting = "Lighting",
|
|
443
|
-
Enclosure = "Enclosure",
|
|
444
|
-
ParkingLot = "ParkingLot",
|
|
445
|
-
Elevator = "Elevator",
|
|
446
|
-
Other = "Other",
|
|
447
|
-
InrackAsset = "InrackAsset",
|
|
448
|
-
GasDetection = "GasDetection",
|
|
449
|
-
Security = "Security",
|
|
450
|
-
OutDoorScene = "OutDoorScene",
|
|
451
|
-
Infrared = "Infrared",
|
|
452
|
-
SkyBox = "SkyBox",
|
|
453
|
-
UI3D = "UI3D",
|
|
454
|
-
ColdTongDoor = "ColdTongDoor",
|
|
455
|
-
VirtualBox = "VirtualBox",
|
|
456
|
-
PathPint = "PathPint",
|
|
457
|
-
Port = "Port",
|
|
458
|
-
Positioner = "Positioner",
|
|
459
|
-
AutoAnimation = "AutoAnimation",
|
|
460
|
-
MapModel = "MapModel",
|
|
461
|
-
radiator = "radiator",
|
|
462
|
-
Conduit = "Conduit",
|
|
463
|
-
Region = "Region",
|
|
464
|
-
optimizedWall = "optimizedWall"
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
export class RegionObject extends Object {
|
|
468
|
-
index: number;
|
|
469
|
-
height: number;
|
|
470
|
-
constructor(app: App, _storey: any);
|
|
471
|
-
bind(_storey: any, _isOptimized?: boolean): void;
|
|
472
|
-
computeView(): void;
|
|
473
|
-
flyTo(): void;
|
|
474
|
-
focus(): void;
|
|
475
|
-
setEnabled(_value: boolean): void;
|
|
476
|
-
getBounding(): void;
|
|
477
|
-
dispose(): void;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
export class UI3DTextObject extends Object {
|
|
481
|
-
bind(_u: any): void;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
export class VirtualBoxObject extends Object {
|
|
485
|
-
bind(_m: any): Promise<void>;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
export class WallObject extends Object {
|
|
489
|
-
nativeMaterial: BABYLON.StandardMaterial;
|
|
490
|
-
baseModel: any;
|
|
491
|
-
height: number;
|
|
492
|
-
bind(_w: any): void;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
export class WindowObject extends Object {
|
|
496
|
-
height: number;
|
|
497
|
-
bind(_m: any): void;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
export class ArrayEx<T> extends Array<T> {
|
|
501
|
-
remove(_val: any): void;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
export interface BaseNode {
|
|
505
|
-
id: string;
|
|
506
|
-
scene: BABYLON.Scene;
|
|
507
|
-
dispose(): any;
|
|
508
|
-
isEnabled(bool: boolean): any;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
export class GUID {
|
|
512
|
-
static getGUID(_length: number): void;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
export class Resources {
|
|
516
|
-
app: App;
|
|
517
|
-
walls: Dictionary<BABYLON.AbstractMesh>;
|
|
518
|
-
resources: Dictionary<BABYLON.AssetContainer>;
|
|
519
|
-
ndoeMats: Dictionary<BABYLON.NodeMaterial>;
|
|
520
|
-
transparentBox: BABYLON.Mesh;
|
|
521
|
-
BOX: BABYLON.Mesh;
|
|
522
|
-
FogTex: BABYLON.Texture;
|
|
523
|
-
constructor(_app: App);
|
|
524
|
-
loadModelMesh(_baseModel: any): Promise<void>;
|
|
525
|
-
loadModelMeshAsync(_baseModel: any, _callback: Function): void;
|
|
526
|
-
Materials: Dictionary<BABYLON.StandardMaterial>;
|
|
527
|
-
Textures: Dictionary<BABYLON.Texture>;
|
|
528
|
-
GetMaterial(_textureData: any, _scene: BABYLON.Scene): void;
|
|
529
|
-
GetTexture(_textureData: any, _scene: BABYLON.Scene): void;
|
|
530
|
-
MergeMaterials: Dictionary<BABYLON.CustomMaterial>;
|
|
531
|
-
GetMergeMaterial(_textureData: any, _scene: BABYLON.Scene): void;
|
|
532
|
-
delete(_isAll?: boolean): void;
|
|
533
|
-
GetWalls(_url: string, _projectId: string): Promise<void>;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
export class Tools {
|
|
537
|
-
static vector3ToJson(_old: BABYLON.Vector3): any;
|
|
538
|
-
static vector3ARRToJson(_olds: BABYLON.Vector3[]): void;
|
|
539
|
-
static ToVector3(_old: any): void;
|
|
540
|
-
static ToARRVector3(_olds: any[]): void;
|
|
541
|
-
static computeBounds(_mscene: BABYLON.Mesh): void;
|
|
542
|
-
static computeBoundsToARR(_meshs: Array<BABYLON.Mesh>): void;
|
|
543
|
-
static Expand(_polygon: Array<BABYLON.Vector3>, _expand: number): void;
|
|
544
|
-
static norm(_x: number, _y: number): void;
|
|
545
|
-
static MergeMeshes(_meshes: Array<BABYLON.Mesh>, _app: App): void;
|
|
546
|
-
static DeconsTructMesh(_mesh: any, _height: any, _app: App): void;
|
|
547
|
-
static getVisualAngle(_bound: BABYLON.BoundingInfo, _app: App): void;
|
|
548
|
-
static pathTransformation(_oldPath: Array<BABYLON.Vector3>, _radius: number): void;
|
|
549
|
-
static createTube(_id: string, _paths: Array<BABYLON.Vector3>, _radius: number, _app: App): void;
|
|
550
|
-
static getAngleFromVector2(_startV: BABYLON.Vector2, _coreV: BABYLON.Vector2, _endV: BABYLON.Vector2): void;
|
|
551
|
-
static getAngleFromVector3(_startV: BABYLON.Vector3, _coreV: BABYLON.Vector3, _endV: BABYLON.Vector3): void;
|
|
552
|
-
static RandomNumBoth(_Min: any, _Max: any): void;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
export class ToolTips {
|
|
556
|
-
app: App;
|
|
557
|
-
url: string;
|
|
558
|
-
ele: HTMLDivElement;
|
|
559
|
-
time: number;
|
|
560
|
-
id: string;
|
|
561
|
-
isOK: boolean;
|
|
562
|
-
_text: string;
|
|
563
|
-
constructor(_parent: HTMLElement, _app: App);
|
|
564
|
-
update(_e: BABYLON.PointerInfo): void;
|
|
565
|
-
close(): void;
|
|
566
|
-
setBackground(_url: string): void;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
export class VisualAngle {
|
|
570
|
-
alpha: number;
|
|
571
|
-
focus: BABYLON.Vector3;
|
|
572
|
-
radius: number;
|
|
573
|
-
beta: number;
|
|
574
|
-
minimumLimit: number;
|
|
575
|
-
maximumLimit: number;
|
|
576
|
-
minBeta: number;
|
|
577
|
-
maxBeta: number;
|
|
578
|
-
setVisual(_visual: any): void;
|
|
579
|
-
setLimit(_miniLimit: number, _maxiLimit: number): void;
|
|
580
|
-
setBeta(_minBeta: number, _maxBeta: number): void;
|
|
581
|
-
}
|
|
582
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
@author gzmaijing
|
|
3
|
+
@email mj@gzmaijing.com
|
|
4
|
+
*/
|
|
583
5
|
|
|
584
6
|
export default class App {
|
|
585
7
|
canvas: HTMLCanvasElement;
|
|
@@ -603,6 +25,7 @@ export default class App {
|
|
|
603
25
|
progress?: Function;
|
|
604
26
|
complete?: Function;
|
|
605
27
|
}): Promise<void>;
|
|
28
|
+
dispose(): void;
|
|
606
29
|
}
|
|
607
30
|
|
|
608
31
|
export default class Capacity {
|
|
@@ -649,6 +72,12 @@ export default class Environment {
|
|
|
649
72
|
offAllLight(): void;
|
|
650
73
|
openAllLight(): void;
|
|
651
74
|
loadLight(_Lights: Array<any>): void;
|
|
75
|
+
showTips(): void;
|
|
76
|
+
closeTips(): void;
|
|
77
|
+
showFps(): void;
|
|
78
|
+
hideFps(): void;
|
|
79
|
+
showDebug(): void;
|
|
80
|
+
setLightIntensity(_intensity?: number): void;
|
|
652
81
|
}
|
|
653
82
|
|
|
654
83
|
export enum EventType {
|
|
@@ -768,26 +197,6 @@ export default class IconFromMesh implements BaseNode {
|
|
|
768
197
|
isEnabled(_bool: boolean): void;
|
|
769
198
|
}
|
|
770
199
|
|
|
771
|
-
export default class Project {
|
|
772
|
-
app: App;
|
|
773
|
-
id: string;
|
|
774
|
-
root: IObject;
|
|
775
|
-
current: IObject;
|
|
776
|
-
Sight: Sight;
|
|
777
|
-
objectDatas: Dictionary<IObject>;
|
|
778
|
-
constructor(_app: App);
|
|
779
|
-
delete(): void;
|
|
780
|
-
optimization(): void;
|
|
781
|
-
computeView(): void;
|
|
782
|
-
getChildNodes(_id: string): void;
|
|
783
|
-
getTrees(): void;
|
|
784
|
-
find(_id: string): void;
|
|
785
|
-
findFormObjectType(_type: ObjectType, _isCurent?: boolean): void;
|
|
786
|
-
show(): void;
|
|
787
|
-
getBounding(): void;
|
|
788
|
-
flyTo(): void;
|
|
789
|
-
}
|
|
790
|
-
|
|
791
200
|
export default class UI {
|
|
792
201
|
static createIconFromMesh(_id: string, _anchor: IObject, _url: string, _scaling: number, _height: number): void;
|
|
793
202
|
static createIcon(_id: string, _anchor: IObject, _size: {
|
|
@@ -899,6 +308,8 @@ export default class DefaultObject implements IObject {
|
|
|
899
308
|
isloop: boolean;
|
|
900
309
|
isAutoPlay: boolean;
|
|
901
310
|
constructor(_app: App);
|
|
311
|
+
customNumber: string;
|
|
312
|
+
customType: string;
|
|
902
313
|
showBoundingBox: boolean;
|
|
903
314
|
setEnabled(_value: boolean): void;
|
|
904
315
|
bind(_m: any): void;
|
|
@@ -935,6 +346,8 @@ export default interface IBase {
|
|
|
935
346
|
}
|
|
936
347
|
|
|
937
348
|
export default interface IObject extends IBase {
|
|
349
|
+
customNumber: string;
|
|
350
|
+
customType: string;
|
|
938
351
|
modelId: string;
|
|
939
352
|
instance: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
940
353
|
modelType: string;
|
|
@@ -1010,6 +423,27 @@ export enum ObjectType {
|
|
|
1010
423
|
optimizedWall = "optimizedWall"
|
|
1011
424
|
}
|
|
1012
425
|
|
|
426
|
+
export default class Project {
|
|
427
|
+
app: App;
|
|
428
|
+
id: string;
|
|
429
|
+
root: IObject;
|
|
430
|
+
current: IObject;
|
|
431
|
+
Sight: Sight;
|
|
432
|
+
objectDatas: Dictionary<IObject>;
|
|
433
|
+
constructor(_app: App);
|
|
434
|
+
clear(): void;
|
|
435
|
+
optimization(): void;
|
|
436
|
+
computeView(): void;
|
|
437
|
+
getChildsById(_id: string): void;
|
|
438
|
+
getSceneTree(): void;
|
|
439
|
+
findObjectById(_id: string): void;
|
|
440
|
+
findObjectsByType(_type: ObjectType): void;
|
|
441
|
+
getBounding(): void;
|
|
442
|
+
findObjectsByCustomNumber(): void;
|
|
443
|
+
findObjectsByCustomType(): void;
|
|
444
|
+
switchLevel(_id?: string, _isFocus?: boolean, _includeSub?: boolean): void;
|
|
445
|
+
}
|
|
446
|
+
|
|
1013
447
|
export default class RegionObject extends DefaultObject {
|
|
1014
448
|
index: number;
|
|
1015
449
|
height: number;
|
|
@@ -1153,1727 +587,6 @@ export default class ToolTips {
|
|
|
1153
587
|
update(_e: BABYLON.PointerInfo): void;
|
|
1154
588
|
close(): void;
|
|
1155
589
|
setBackground(_url: string): void;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
export default class App {
|
|
1159
|
-
canvas: HTMLCanvasElement;
|
|
1160
|
-
engine: BABYLON.Engine;
|
|
1161
|
-
scene: BABYLON.Scene;
|
|
1162
|
-
Camera: Camera;
|
|
1163
|
-
HighlightLayer: BABYLON.HighlightLayer;
|
|
1164
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
1165
|
-
fps: HTMLDivElement;
|
|
1166
|
-
Resources: Resources;
|
|
1167
|
-
Environment: Environment;
|
|
1168
|
-
Project: Project;
|
|
1169
|
-
ToolTips: ToolTips;
|
|
1170
|
-
constructor(_config: {
|
|
1171
|
-
container: HTMLElement;
|
|
1172
|
-
sl?: string;
|
|
1173
|
-
rl?: string;
|
|
1174
|
-
});
|
|
1175
|
-
load(_config: {
|
|
1176
|
-
pk: string;
|
|
1177
|
-
progress?: Function;
|
|
1178
|
-
complete?: Function;
|
|
1179
|
-
}): Promise<void>;
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
export default class Capacity {
|
|
1183
|
-
anchor: IObject;
|
|
1184
|
-
mesh: BABYLON.Mesh;
|
|
1185
|
-
ratio: number;
|
|
1186
|
-
color: string;
|
|
1187
|
-
textMesh: BABYLON.Mesh;
|
|
1188
|
-
constructor(_object: IObject, _RATIO: number);
|
|
1189
|
-
dispose(): void;
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
export default class CapacityBuilder {
|
|
1193
|
-
static createCapacity(_obj: IObject, _RATIO: number, _text: string, _fontSize?: string): void;
|
|
1194
|
-
static createTextMesh(_obj: IObject, _text: string, _RATIO: number, _fontSize?: string, _color?: string): void;
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
export default class EffectMgr {
|
|
1198
|
-
static colors: {};
|
|
1199
|
-
static init(): void;
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
export enum EffectType {
|
|
1203
|
-
Opaque = 0,
|
|
1204
|
-
Flash = 1,
|
|
1205
|
-
Transparent = 2
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
export default class Environment {
|
|
1209
|
-
app: App;
|
|
1210
|
-
lights: any;
|
|
1211
|
-
_color: BABYLON.Color4;
|
|
1212
|
-
background: BABYLON.Layer;
|
|
1213
|
-
reflexEnabled: boolean;
|
|
1214
|
-
reflexIntensity: number;
|
|
1215
|
-
constructor(_app: App);
|
|
1216
|
-
set fogDistance(_value: number);
|
|
1217
|
-
set color(_value: BABYLON.Color4);
|
|
1218
|
-
reflex(_url: string, _intensity: number): void;
|
|
1219
|
-
setBackground(_url: string): void;
|
|
1220
|
-
setReflexEnabled(_reflexEnabled: boolean): void;
|
|
1221
|
-
setFlexIntensity(_intensity: number): void;
|
|
1222
|
-
defaultLights(): void;
|
|
1223
|
-
offAllLight(): void;
|
|
1224
|
-
openAllLight(): void;
|
|
1225
|
-
loadLight(_Lights: Array<any>): void;
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
export enum EventType {
|
|
1229
|
-
leftClick = "leftClick",
|
|
1230
|
-
rightClick = "rightClick",
|
|
1231
|
-
doubleClick = "doubleClick",
|
|
1232
|
-
eover = "eover",
|
|
1233
|
-
longPress = "longPress",
|
|
1234
|
-
out = "out"
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
export default class HeatMap implements BaseNode {
|
|
1238
|
-
id: string;
|
|
1239
|
-
scene: BABYLON.Scene;
|
|
1240
|
-
anchor: string;
|
|
1241
|
-
mesh: BABYLON.Mesh;
|
|
1242
|
-
texts: Array<BABYLON.GUI.TextBlock>;
|
|
1243
|
-
constructor(_anchor: string);
|
|
1244
|
-
isEnabled(_bool: boolean): void;
|
|
1245
|
-
set displayValues(_value: boolean);
|
|
1246
590
|
dispose(): void;
|
|
1247
591
|
}
|
|
1248
592
|
|
|
1249
|
-
export default class HeatMapBuilder {
|
|
1250
|
-
static createMatrixHeatMap(_data: {
|
|
1251
|
-
anchor: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
1252
|
-
rootUrl: string;
|
|
1253
|
-
FogTex: BABYLON.Texture;
|
|
1254
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
1255
|
-
config: {
|
|
1256
|
-
maxX: number;
|
|
1257
|
-
maxY: number;
|
|
1258
|
-
data: Array<{
|
|
1259
|
-
x: number;
|
|
1260
|
-
y: number;
|
|
1261
|
-
value: number;
|
|
1262
|
-
}>;
|
|
1263
|
-
};
|
|
1264
|
-
displayValues: boolean;
|
|
1265
|
-
height: number;
|
|
1266
|
-
isLevelRender: boolean;
|
|
1267
|
-
isAlpha: boolean;
|
|
1268
|
-
isParticle: boolean;
|
|
1269
|
-
radius: number;
|
|
1270
|
-
range: {
|
|
1271
|
-
max: number;
|
|
1272
|
-
min: number;
|
|
1273
|
-
};
|
|
1274
|
-
}): void;
|
|
1275
|
-
static createColumnarHeatMap(_data: {
|
|
1276
|
-
anchor: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
1277
|
-
FogTex: BABYLON.Texture;
|
|
1278
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
1279
|
-
config: Array<{
|
|
1280
|
-
index: number;
|
|
1281
|
-
value: number;
|
|
1282
|
-
}>;
|
|
1283
|
-
isLevelRender: boolean;
|
|
1284
|
-
displayValues: boolean;
|
|
1285
|
-
isAlpha: boolean;
|
|
1286
|
-
isParticle: boolean;
|
|
1287
|
-
radius: number;
|
|
1288
|
-
range: {
|
|
1289
|
-
max: number;
|
|
1290
|
-
min: number;
|
|
1291
|
-
};
|
|
1292
|
-
}): void;
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
export default class Icon implements BaseNode {
|
|
1296
|
-
id: string;
|
|
1297
|
-
scene: BABYLON.Scene;
|
|
1298
|
-
pint: BABYLON.Mesh;
|
|
1299
|
-
rect: BABYLON.GUI.Rectangle;
|
|
1300
|
-
onPointerClick: Function;
|
|
1301
|
-
size: {
|
|
1302
|
-
width: number;
|
|
1303
|
-
height: number;
|
|
1304
|
-
};
|
|
1305
|
-
height: number;
|
|
1306
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
1307
|
-
constructor(_id: string, _scene: BABYLON.Scene);
|
|
1308
|
-
set background(_url: string);
|
|
1309
|
-
setTexts(_textArr: [{
|
|
1310
|
-
text: string;
|
|
1311
|
-
fontSize: string;
|
|
1312
|
-
color: string;
|
|
1313
|
-
top: number;
|
|
1314
|
-
left: number;
|
|
1315
|
-
}]): void;
|
|
1316
|
-
line(_line: {
|
|
1317
|
-
width: number;
|
|
1318
|
-
color: string;
|
|
1319
|
-
}): void;
|
|
1320
|
-
dispose(): void;
|
|
1321
|
-
isEnabled(_isEnabled: boolean): void;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
export default class IconFromMesh implements BaseNode {
|
|
1325
|
-
id: string;
|
|
1326
|
-
scene: BABYLON.Scene;
|
|
1327
|
-
instance: BABYLON.Mesh;
|
|
1328
|
-
url: string;
|
|
1329
|
-
scaling: number;
|
|
1330
|
-
constructor(_id: string, _anchor: BABYLON.Vector3, _url: string, _scaling: number, _height: number, _scene: BABYLON.Scene);
|
|
1331
|
-
setBackground(): void;
|
|
1332
|
-
addEventListener(_action: Function): void;
|
|
1333
|
-
setColor(_color: string): void;
|
|
1334
|
-
setContents(_textArr: [{
|
|
1335
|
-
text: string;
|
|
1336
|
-
fontSize: string;
|
|
1337
|
-
top: number;
|
|
1338
|
-
left: number;
|
|
1339
|
-
color?: string;
|
|
1340
|
-
}]): void;
|
|
1341
|
-
dispose(): void;
|
|
1342
|
-
isEnabled(_bool: boolean): void;
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
export default class Project {
|
|
1346
|
-
app: App;
|
|
1347
|
-
id: string;
|
|
1348
|
-
root: IObject;
|
|
1349
|
-
current: IObject;
|
|
1350
|
-
Sight: Sight;
|
|
1351
|
-
objectDatas: Dictionary<IObject>;
|
|
1352
|
-
constructor(_app: App);
|
|
1353
|
-
delete(): void;
|
|
1354
|
-
optimization(): void;
|
|
1355
|
-
computeView(): void;
|
|
1356
|
-
getChildNodes(_id: string): void;
|
|
1357
|
-
getTrees(): void;
|
|
1358
|
-
find(_id: string): void;
|
|
1359
|
-
findFormObjectType(_type: ObjectType, _isCurent?: boolean): void;
|
|
1360
|
-
show(): void;
|
|
1361
|
-
getBounding(): void;
|
|
1362
|
-
flyTo(): void;
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
export default class UI {
|
|
1366
|
-
static createIconFromMesh(_id: string, _anchor: IObject, _url: string, _scaling: number, _height: number): void;
|
|
1367
|
-
static createIcon(_id: string, _anchor: IObject, _size: {
|
|
1368
|
-
width: number;
|
|
1369
|
-
height: number;
|
|
1370
|
-
}, _height: number): void;
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
export default class Directional extends LightObject {
|
|
1374
|
-
direction: BABYLON.Vector3;
|
|
1375
|
-
position: BABYLON.Vector3;
|
|
1376
|
-
light: BABYLON.DirectionalLight;
|
|
1377
|
-
load(): void;
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
export default class Hemispheric extends LightObject {
|
|
1381
|
-
direction: BABYLON.Vector3;
|
|
1382
|
-
light: BABYLON.HemisphericLight;
|
|
1383
|
-
load(): void;
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
|
-
export default interface ILightObject {
|
|
1387
|
-
id: string;
|
|
1388
|
-
sceneId: string;
|
|
1389
|
-
name: string;
|
|
1390
|
-
light: BABYLON.Light;
|
|
1391
|
-
color: string;
|
|
1392
|
-
lightType: string;
|
|
1393
|
-
intensity: number;
|
|
1394
|
-
load: Function;
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
export default class LightObject implements ILightObject {
|
|
1398
|
-
id: string;
|
|
1399
|
-
sceneId: string;
|
|
1400
|
-
name: string;
|
|
1401
|
-
light: BABYLON.Light;
|
|
1402
|
-
color: string;
|
|
1403
|
-
objectType: string;
|
|
1404
|
-
lightType: string;
|
|
1405
|
-
intensity: number;
|
|
1406
|
-
app: App;
|
|
1407
|
-
constructor(_app: App);
|
|
1408
|
-
load(): void;
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
export enum LightType {
|
|
1412
|
-
Point = "Point",
|
|
1413
|
-
Spot = "Spot",
|
|
1414
|
-
Directional = "Directional",
|
|
1415
|
-
Hemispheric = "Hemispheric"
|
|
1416
|
-
}
|
|
1417
|
-
let typeFromat: Function;
|
|
1418
|
-
export default typeFromat;
|
|
1419
|
-
|
|
1420
|
-
export default class Point extends LightObject {
|
|
1421
|
-
position: BABYLON.Vector3;
|
|
1422
|
-
light: BABYLON.PointLight;
|
|
1423
|
-
range: number;
|
|
1424
|
-
load(): void;
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
export default class Spot extends LightObject {
|
|
1428
|
-
direction: BABYLON.Vector3;
|
|
1429
|
-
position: BABYLON.Vector3;
|
|
1430
|
-
angle: number;
|
|
1431
|
-
exponent: number;
|
|
1432
|
-
range: number;
|
|
1433
|
-
light: BABYLON.SpotLight;
|
|
1434
|
-
load(): void;
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
export default class CabinetObject extends DefaultObject {
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
export default class ConduitObject extends DefaultObject {
|
|
1441
|
-
alpha: number;
|
|
1442
|
-
color: string;
|
|
1443
|
-
bind(_m: any): void;
|
|
1444
|
-
setColor(_r: number, _b: number, _g: number): void;
|
|
1445
|
-
reColor(): void;
|
|
1446
|
-
computeView(): void;
|
|
1447
|
-
setFlash(_level?: number): void;
|
|
1448
|
-
setOpaque(): void;
|
|
1449
|
-
setTransparent(_alpha?: number): void;
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
export default class CornerObject extends DefaultObject {
|
|
1453
|
-
height: number;
|
|
1454
|
-
bind(_m: any): void;
|
|
1455
|
-
}
|
|
1456
|
-
|
|
1457
|
-
export default class DefaultObject implements IObject {
|
|
1458
|
-
app: App;
|
|
1459
|
-
id: string;
|
|
1460
|
-
name: string;
|
|
1461
|
-
parentId: string;
|
|
1462
|
-
modelId: string;
|
|
1463
|
-
instance: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
1464
|
-
objectType: string;
|
|
1465
|
-
modelType: string;
|
|
1466
|
-
action: BABYLON.ActionManager;
|
|
1467
|
-
executes: Dictionary<BABYLON.ExecuteCodeAction>;
|
|
1468
|
-
clickEvents: Dictionary<Function>;
|
|
1469
|
-
touchtime: number;
|
|
1470
|
-
effectType: EffectType;
|
|
1471
|
-
Sight: Sight;
|
|
1472
|
-
animation: boolean;
|
|
1473
|
-
isloop: boolean;
|
|
1474
|
-
isAutoPlay: boolean;
|
|
1475
|
-
constructor(_app: App);
|
|
1476
|
-
showBoundingBox: boolean;
|
|
1477
|
-
setEnabled(_value: boolean): void;
|
|
1478
|
-
bind(_m: any): void;
|
|
1479
|
-
computeView(): void;
|
|
1480
|
-
optimization(_isOptimization: boolean): void;
|
|
1481
|
-
alwaysActive(): void;
|
|
1482
|
-
addEventListener(_type: string, _callback: Function): void;
|
|
1483
|
-
removeEventListener(_type: string): void;
|
|
1484
|
-
setFlash(_level: number): void;
|
|
1485
|
-
setOpaque(): void;
|
|
1486
|
-
setTransparent(_alpha?: number): void;
|
|
1487
|
-
play(): void;
|
|
1488
|
-
stop(): void;
|
|
1489
|
-
flyTo(): void;
|
|
1490
|
-
focus(): void;
|
|
1491
|
-
}
|
|
1492
|
-
|
|
1493
|
-
export default class DoorObject extends DefaultObject {
|
|
1494
|
-
height: number;
|
|
1495
|
-
bind(_m: any): void;
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
export default class FloorObject extends DefaultObject {
|
|
1499
|
-
height: number;
|
|
1500
|
-
bind(_m: any): void;
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
export default interface IBase {
|
|
1504
|
-
app: App;
|
|
1505
|
-
id: string;
|
|
1506
|
-
name: string;
|
|
1507
|
-
parentId: string;
|
|
1508
|
-
objectType: string;
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
export default interface IObject extends IBase {
|
|
1512
|
-
modelId: string;
|
|
1513
|
-
instance: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
1514
|
-
modelType: string;
|
|
1515
|
-
Sight: Sight;
|
|
1516
|
-
effectType: EffectType;
|
|
1517
|
-
bind(_m?: any): any;
|
|
1518
|
-
optimization(isOptimization: boolean): any;
|
|
1519
|
-
showBoundingBox: boolean;
|
|
1520
|
-
setFlash(level: number): any;
|
|
1521
|
-
setTransparent(): any;
|
|
1522
|
-
setOpaque(): any;
|
|
1523
|
-
setEnabled(isEnabled: any): any;
|
|
1524
|
-
addEventListener(type: string, callback: Function): any;
|
|
1525
|
-
removeEventListener(type: string): any;
|
|
1526
|
-
play(isloop: boolean): any;
|
|
1527
|
-
stop(): any;
|
|
1528
|
-
flyTo(): any;
|
|
1529
|
-
focus(): any;
|
|
1530
|
-
computeView(): any;
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
export default class LeakWaterObject extends DefaultObject {
|
|
1534
|
-
bind(_l: any): void;
|
|
1535
|
-
computeView(): void;
|
|
1536
|
-
addEventListener(_type: string, _callback: Function): void;
|
|
1537
|
-
removeEventListener(_type: string): void;
|
|
1538
|
-
}
|
|
1539
|
-
|
|
1540
|
-
export enum ObjectType {
|
|
1541
|
-
Campus = "Campus",
|
|
1542
|
-
Building = "Building",
|
|
1543
|
-
Scene = "Scene",
|
|
1544
|
-
Humiture = "Humiture",
|
|
1545
|
-
Battery = "Battery",
|
|
1546
|
-
PowerCabinet = "PowerCabinet",
|
|
1547
|
-
Cabinet = "Cabinet",
|
|
1548
|
-
AirCondition = "AirCondition",
|
|
1549
|
-
UPS = "UPS",
|
|
1550
|
-
Camera = "Camera",
|
|
1551
|
-
NewWindMachine = "NewWindMachine",
|
|
1552
|
-
SmokeDetector = "SmokeDetector",
|
|
1553
|
-
AudibleVisualAlarm = "AudibleVisualAlarm",
|
|
1554
|
-
LeakWater = "LeakWater",
|
|
1555
|
-
Wall = "Wall",
|
|
1556
|
-
Floor = "Floor",
|
|
1557
|
-
Window = "Window",
|
|
1558
|
-
Door = "Door",
|
|
1559
|
-
AirFlow = "AirFlow",
|
|
1560
|
-
Corner = "Corner",
|
|
1561
|
-
FireFighting = "FireFighting",
|
|
1562
|
-
Lighting = "Lighting",
|
|
1563
|
-
Enclosure = "Enclosure",
|
|
1564
|
-
ParkingLot = "ParkingLot",
|
|
1565
|
-
Elevator = "Elevator",
|
|
1566
|
-
Other = "Other",
|
|
1567
|
-
InrackAsset = "InrackAsset",
|
|
1568
|
-
GasDetection = "GasDetection",
|
|
1569
|
-
Security = "Security",
|
|
1570
|
-
OutDoorScene = "OutDoorScene",
|
|
1571
|
-
Infrared = "Infrared",
|
|
1572
|
-
SkyBox = "SkyBox",
|
|
1573
|
-
UI3D = "UI3D",
|
|
1574
|
-
ColdTongDoor = "ColdTongDoor",
|
|
1575
|
-
VirtualBox = "VirtualBox",
|
|
1576
|
-
PathPint = "PathPint",
|
|
1577
|
-
Port = "Port",
|
|
1578
|
-
Positioner = "Positioner",
|
|
1579
|
-
AutoAnimation = "AutoAnimation",
|
|
1580
|
-
MapModel = "MapModel",
|
|
1581
|
-
radiator = "radiator",
|
|
1582
|
-
Conduit = "Conduit",
|
|
1583
|
-
Region = "Region",
|
|
1584
|
-
optimizedWall = "optimizedWall"
|
|
1585
|
-
}
|
|
1586
|
-
|
|
1587
|
-
export default class RegionObject extends DefaultObject {
|
|
1588
|
-
index: number;
|
|
1589
|
-
height: number;
|
|
1590
|
-
constructor(app: App, _storey: any);
|
|
1591
|
-
bind(_storey: any, _isOptimized?: boolean): void;
|
|
1592
|
-
computeView(): void;
|
|
1593
|
-
flyTo(): void;
|
|
1594
|
-
focus(): void;
|
|
1595
|
-
setEnabled(_value: boolean): void;
|
|
1596
|
-
getBounding(): void;
|
|
1597
|
-
dispose(): void;
|
|
1598
|
-
}
|
|
1599
|
-
|
|
1600
|
-
export default class UI3DTextObject extends DefaultObject {
|
|
1601
|
-
bind(_u: any): void;
|
|
1602
|
-
}
|
|
1603
|
-
|
|
1604
|
-
export default class VirtualBoxObject extends DefaultObject {
|
|
1605
|
-
bind(_m: any): Promise<void>;
|
|
1606
|
-
}
|
|
1607
|
-
|
|
1608
|
-
export default class WallObject extends DefaultObject {
|
|
1609
|
-
nativeMaterial: BABYLON.StandardMaterial;
|
|
1610
|
-
baseModel: any;
|
|
1611
|
-
height: number;
|
|
1612
|
-
bind(_w: any): void;
|
|
1613
|
-
}
|
|
1614
|
-
|
|
1615
|
-
export default class WindowObject extends DefaultObject {
|
|
1616
|
-
height: number;
|
|
1617
|
-
bind(_m: any): void;
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
|
-
export default class ArrayEx<T> extends Array<T> {
|
|
1621
|
-
remove(_val: any): void;
|
|
1622
|
-
}
|
|
1623
|
-
|
|
1624
|
-
export default interface BaseNode {
|
|
1625
|
-
id: string;
|
|
1626
|
-
scene: BABYLON.Scene;
|
|
1627
|
-
dispose(): any;
|
|
1628
|
-
isEnabled(bool: boolean): any;
|
|
1629
|
-
}
|
|
1630
|
-
|
|
1631
|
-
export default class Camera {
|
|
1632
|
-
app: App;
|
|
1633
|
-
camera: BABYLON.ArcRotateCamera;
|
|
1634
|
-
frustrum: number;
|
|
1635
|
-
isOverLook: boolean;
|
|
1636
|
-
constructor(_app: App);
|
|
1637
|
-
orthographic(): void;
|
|
1638
|
-
perspective(): void;
|
|
1639
|
-
focusingFromProperty(_visualAngle: Sight): void;
|
|
1640
|
-
flyTo(_visualAngle: Sight, _sheep?: number): void;
|
|
1641
|
-
translation(_visualAngle: Sight, _sheep?: number): void;
|
|
1642
|
-
computeCameraView(): void;
|
|
1643
|
-
_wheel(_p: any): void;
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
export default class Dictionary<T> {
|
|
1647
|
-
map: {
|
|
1648
|
-
[key: string]: T;
|
|
1649
|
-
};
|
|
1650
|
-
constructor();
|
|
1651
|
-
add(_key: string, _value: T): void;
|
|
1652
|
-
find(_key: string): void;
|
|
1653
|
-
remove(_key: string): void;
|
|
1654
|
-
termRemove(_callback: Function): void;
|
|
1655
|
-
showAll(): void;
|
|
1656
|
-
count(): void;
|
|
1657
|
-
clear(): void;
|
|
1658
|
-
}
|
|
1659
|
-
|
|
1660
|
-
export default class GUID {
|
|
1661
|
-
static getGUID(_length: number): void;
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
|
-
export default class Resources {
|
|
1665
|
-
app: App;
|
|
1666
|
-
walls: Dictionary<BABYLON.AbstractMesh>;
|
|
1667
|
-
resources: Dictionary<BABYLON.AssetContainer>;
|
|
1668
|
-
ndoeMats: Dictionary<BABYLON.NodeMaterial>;
|
|
1669
|
-
transparentBox: BABYLON.Mesh;
|
|
1670
|
-
BOX: BABYLON.Mesh;
|
|
1671
|
-
FogTex: BABYLON.Texture;
|
|
1672
|
-
constructor(_app: App);
|
|
1673
|
-
loadModelMesh(_baseModel: any): Promise<void>;
|
|
1674
|
-
loadModelMeshAsync(_baseModel: any, _callback: Function): void;
|
|
1675
|
-
Materials: Dictionary<BABYLON.StandardMaterial>;
|
|
1676
|
-
Textures: Dictionary<BABYLON.Texture>;
|
|
1677
|
-
GetMaterial(_textureData: any, _scene: BABYLON.Scene): void;
|
|
1678
|
-
GetTexture(_textureData: any, _scene: BABYLON.Scene): void;
|
|
1679
|
-
MergeMaterials: Dictionary<BABYLON.CustomMaterial>;
|
|
1680
|
-
GetMergeMaterial(_textureData: any, _scene: BABYLON.Scene): void;
|
|
1681
|
-
delete(_isAll?: boolean): void;
|
|
1682
|
-
GetWalls(_url: string, _projectId: string): Promise<void>;
|
|
1683
|
-
}
|
|
1684
|
-
|
|
1685
|
-
export default class Sight {
|
|
1686
|
-
alpha: number;
|
|
1687
|
-
focus: BABYLON.Vector3;
|
|
1688
|
-
radius: number;
|
|
1689
|
-
beta: number;
|
|
1690
|
-
minimumLimit: number;
|
|
1691
|
-
maximumLimit: number;
|
|
1692
|
-
minBeta: number;
|
|
1693
|
-
maxBeta: number;
|
|
1694
|
-
setVisual(_visual: any): void;
|
|
1695
|
-
setLimit(_miniLimit: number, _maxiLimit: number): void;
|
|
1696
|
-
setBeta(_minBeta: number, _maxBeta: number): void;
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
|
-
export default class Tools {
|
|
1700
|
-
static vector3ToJson(_old: BABYLON.Vector3): any;
|
|
1701
|
-
static vector3ARRToJson(_olds: BABYLON.Vector3[]): void;
|
|
1702
|
-
static ToVector3(_old: any): void;
|
|
1703
|
-
static ToARRVector3(_olds: any[]): void;
|
|
1704
|
-
static computeBounds(_mscene: BABYLON.Mesh): void;
|
|
1705
|
-
static computeBoundsToARR(_meshs: Array<BABYLON.Mesh>): void;
|
|
1706
|
-
static Expand(_polygon: Array<BABYLON.Vector3>, _expand: number): void;
|
|
1707
|
-
static norm(_x: number, _y: number): void;
|
|
1708
|
-
static MergeMeshes(_meshes: Array<BABYLON.Mesh>, _app: App): void;
|
|
1709
|
-
static DeconsTructMesh(_mesh: any, _height: any, _app: App): void;
|
|
1710
|
-
static getVisualAngle(_bound: BABYLON.BoundingInfo, _app: App): void;
|
|
1711
|
-
static pathTransformation(_oldPath: Array<BABYLON.Vector3>, _radius: number): void;
|
|
1712
|
-
static createTube(_id: string, _paths: Array<BABYLON.Vector3>, _radius: number, _app: App): void;
|
|
1713
|
-
static getAngleFromVector2(_startV: BABYLON.Vector2, _coreV: BABYLON.Vector2, _endV: BABYLON.Vector2): void;
|
|
1714
|
-
static getAngleFromVector3(_startV: BABYLON.Vector3, _coreV: BABYLON.Vector3, _endV: BABYLON.Vector3): void;
|
|
1715
|
-
static RandomNumBoth(_Min: any, _Max: any): void;
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
export default class ToolTips {
|
|
1719
|
-
app: App;
|
|
1720
|
-
url: string;
|
|
1721
|
-
ele: HTMLDivElement;
|
|
1722
|
-
time: number;
|
|
1723
|
-
id: string;
|
|
1724
|
-
isOK: boolean;
|
|
1725
|
-
_text: string;
|
|
1726
|
-
constructor(_parent: HTMLElement, _app: App);
|
|
1727
|
-
update(_e: BABYLON.PointerInfo): void;
|
|
1728
|
-
close(): void;
|
|
1729
|
-
setBackground(_url: string): void;
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
|
-
export default class App {
|
|
1733
|
-
canvas: HTMLCanvasElement;
|
|
1734
|
-
engine: BABYLON.Engine;
|
|
1735
|
-
scene: BABYLON.Scene;
|
|
1736
|
-
Camera: Camera;
|
|
1737
|
-
HighlightLayer: BABYLON.HighlightLayer;
|
|
1738
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
1739
|
-
fps: HTMLDivElement;
|
|
1740
|
-
Resources: Resources;
|
|
1741
|
-
Environment: Environment;
|
|
1742
|
-
Project: Project;
|
|
1743
|
-
ToolTips: ToolTips;
|
|
1744
|
-
constructor(_config: {
|
|
1745
|
-
container: HTMLElement;
|
|
1746
|
-
sl?: string;
|
|
1747
|
-
rl?: string;
|
|
1748
|
-
});
|
|
1749
|
-
load(_config: {
|
|
1750
|
-
pk: string;
|
|
1751
|
-
progress?: Function;
|
|
1752
|
-
complete?: Function;
|
|
1753
|
-
}): Promise<void>;
|
|
1754
|
-
}
|
|
1755
|
-
|
|
1756
|
-
export default class Capacity {
|
|
1757
|
-
anchor: IObject;
|
|
1758
|
-
mesh: BABYLON.Mesh;
|
|
1759
|
-
ratio: number;
|
|
1760
|
-
color: string;
|
|
1761
|
-
textMesh: BABYLON.Mesh;
|
|
1762
|
-
constructor(_object: IObject, _RATIO: number);
|
|
1763
|
-
dispose(): void;
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
export default class CapacityBuilder {
|
|
1767
|
-
static createCapacity(_obj: IObject, _RATIO: number, _text: string, _fontSize?: string): void;
|
|
1768
|
-
static createTextMesh(_obj: IObject, _text: string, _RATIO: number, _fontSize?: string, _color?: string): void;
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1771
|
-
export default class EffectMgr {
|
|
1772
|
-
static colors: {};
|
|
1773
|
-
static init(): void;
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
export enum EffectType {
|
|
1777
|
-
Opaque = 0,
|
|
1778
|
-
Flash = 1,
|
|
1779
|
-
Transparent = 2
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
export default class Environment {
|
|
1783
|
-
app: App;
|
|
1784
|
-
lights: any;
|
|
1785
|
-
_color: BABYLON.Color4;
|
|
1786
|
-
background: BABYLON.Layer;
|
|
1787
|
-
reflexEnabled: boolean;
|
|
1788
|
-
reflexIntensity: number;
|
|
1789
|
-
constructor(_app: App);
|
|
1790
|
-
set fogDistance(_value: number);
|
|
1791
|
-
set color(_value: BABYLON.Color4);
|
|
1792
|
-
reflex(_url: string, _intensity: number): void;
|
|
1793
|
-
setBackground(_url: string): void;
|
|
1794
|
-
setReflexEnabled(_reflexEnabled: boolean): void;
|
|
1795
|
-
setFlexIntensity(_intensity: number): void;
|
|
1796
|
-
defaultLights(): void;
|
|
1797
|
-
offAllLight(): void;
|
|
1798
|
-
openAllLight(): void;
|
|
1799
|
-
loadLight(_Lights: Array<any>): void;
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
export enum EventType {
|
|
1803
|
-
leftClick = "leftClick",
|
|
1804
|
-
rightClick = "rightClick",
|
|
1805
|
-
doubleClick = "doubleClick",
|
|
1806
|
-
eover = "eover",
|
|
1807
|
-
longPress = "longPress",
|
|
1808
|
-
out = "out"
|
|
1809
|
-
}
|
|
1810
|
-
|
|
1811
|
-
export default class HeatMap implements BaseNode {
|
|
1812
|
-
id: string;
|
|
1813
|
-
scene: BABYLON.Scene;
|
|
1814
|
-
anchor: string;
|
|
1815
|
-
mesh: BABYLON.Mesh;
|
|
1816
|
-
texts: Array<BABYLON.GUI.TextBlock>;
|
|
1817
|
-
constructor(_anchor: string);
|
|
1818
|
-
isEnabled(_bool: boolean): void;
|
|
1819
|
-
set displayValues(_value: boolean);
|
|
1820
|
-
dispose(): void;
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
export default class HeatMapBuilder {
|
|
1824
|
-
static createMatrixHeatMap(_data: {
|
|
1825
|
-
anchor: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
1826
|
-
rootUrl: string;
|
|
1827
|
-
FogTex: BABYLON.Texture;
|
|
1828
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
1829
|
-
config: {
|
|
1830
|
-
maxX: number;
|
|
1831
|
-
maxY: number;
|
|
1832
|
-
data: Array<{
|
|
1833
|
-
x: number;
|
|
1834
|
-
y: number;
|
|
1835
|
-
value: number;
|
|
1836
|
-
}>;
|
|
1837
|
-
};
|
|
1838
|
-
displayValues: boolean;
|
|
1839
|
-
height: number;
|
|
1840
|
-
isLevelRender: boolean;
|
|
1841
|
-
isAlpha: boolean;
|
|
1842
|
-
isParticle: boolean;
|
|
1843
|
-
radius: number;
|
|
1844
|
-
range: {
|
|
1845
|
-
max: number;
|
|
1846
|
-
min: number;
|
|
1847
|
-
};
|
|
1848
|
-
}): void;
|
|
1849
|
-
static createColumnarHeatMap(_data: {
|
|
1850
|
-
anchor: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
1851
|
-
FogTex: BABYLON.Texture;
|
|
1852
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
1853
|
-
config: Array<{
|
|
1854
|
-
index: number;
|
|
1855
|
-
value: number;
|
|
1856
|
-
}>;
|
|
1857
|
-
isLevelRender: boolean;
|
|
1858
|
-
displayValues: boolean;
|
|
1859
|
-
isAlpha: boolean;
|
|
1860
|
-
isParticle: boolean;
|
|
1861
|
-
radius: number;
|
|
1862
|
-
range: {
|
|
1863
|
-
max: number;
|
|
1864
|
-
min: number;
|
|
1865
|
-
};
|
|
1866
|
-
}): void;
|
|
1867
|
-
}
|
|
1868
|
-
|
|
1869
|
-
export default class Icon implements BaseNode {
|
|
1870
|
-
id: string;
|
|
1871
|
-
scene: BABYLON.Scene;
|
|
1872
|
-
pint: BABYLON.Mesh;
|
|
1873
|
-
rect: BABYLON.GUI.Rectangle;
|
|
1874
|
-
onPointerClick: Function;
|
|
1875
|
-
size: {
|
|
1876
|
-
width: number;
|
|
1877
|
-
height: number;
|
|
1878
|
-
};
|
|
1879
|
-
height: number;
|
|
1880
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
1881
|
-
constructor(_id: string, _scene: BABYLON.Scene);
|
|
1882
|
-
set background(_url: string);
|
|
1883
|
-
setTexts(_textArr: [{
|
|
1884
|
-
text: string;
|
|
1885
|
-
fontSize: string;
|
|
1886
|
-
color: string;
|
|
1887
|
-
top: number;
|
|
1888
|
-
left: number;
|
|
1889
|
-
}]): void;
|
|
1890
|
-
line(_line: {
|
|
1891
|
-
width: number;
|
|
1892
|
-
color: string;
|
|
1893
|
-
}): void;
|
|
1894
|
-
dispose(): void;
|
|
1895
|
-
isEnabled(_isEnabled: boolean): void;
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
export default class IconFromMesh implements BaseNode {
|
|
1899
|
-
id: string;
|
|
1900
|
-
scene: BABYLON.Scene;
|
|
1901
|
-
instance: BABYLON.Mesh;
|
|
1902
|
-
url: string;
|
|
1903
|
-
scaling: number;
|
|
1904
|
-
constructor(_id: string, _anchor: BABYLON.Vector3, _url: string, _scaling: number, _height: number, _scene: BABYLON.Scene);
|
|
1905
|
-
setBackground(): void;
|
|
1906
|
-
addEventListener(_action: Function): void;
|
|
1907
|
-
setColor(_color: string): void;
|
|
1908
|
-
setContents(_textArr: [{
|
|
1909
|
-
text: string;
|
|
1910
|
-
fontSize: string;
|
|
1911
|
-
top: number;
|
|
1912
|
-
left: number;
|
|
1913
|
-
color?: string;
|
|
1914
|
-
}]): void;
|
|
1915
|
-
dispose(): void;
|
|
1916
|
-
isEnabled(_bool: boolean): void;
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
|
-
export default class Project {
|
|
1920
|
-
app: App;
|
|
1921
|
-
id: string;
|
|
1922
|
-
root: IObject;
|
|
1923
|
-
current: IObject;
|
|
1924
|
-
Sight: Sight;
|
|
1925
|
-
objectDatas: Dictionary<IObject>;
|
|
1926
|
-
constructor(_app: App);
|
|
1927
|
-
delete(): void;
|
|
1928
|
-
optimization(): void;
|
|
1929
|
-
computeView(): void;
|
|
1930
|
-
getChildNodes(_id: string): void;
|
|
1931
|
-
getTrees(): void;
|
|
1932
|
-
find(_id: string): void;
|
|
1933
|
-
findFormObjectType(_type: ObjectType, _isCurent?: boolean): void;
|
|
1934
|
-
show(): void;
|
|
1935
|
-
getBounding(): void;
|
|
1936
|
-
flyTo(): void;
|
|
1937
|
-
}
|
|
1938
|
-
|
|
1939
|
-
export default class UI {
|
|
1940
|
-
static createIconFromMesh(_id: string, _anchor: IObject, _url: string, _scaling: number, _height: number): void;
|
|
1941
|
-
static createIcon(_id: string, _anchor: IObject, _size: {
|
|
1942
|
-
width: number;
|
|
1943
|
-
height: number;
|
|
1944
|
-
}, _height: number): void;
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
export default class Directional extends LightObject {
|
|
1948
|
-
direction: BABYLON.Vector3;
|
|
1949
|
-
position: BABYLON.Vector3;
|
|
1950
|
-
light: BABYLON.DirectionalLight;
|
|
1951
|
-
load(): void;
|
|
1952
|
-
}
|
|
1953
|
-
|
|
1954
|
-
export default class Hemispheric extends LightObject {
|
|
1955
|
-
direction: BABYLON.Vector3;
|
|
1956
|
-
light: BABYLON.HemisphericLight;
|
|
1957
|
-
load(): void;
|
|
1958
|
-
}
|
|
1959
|
-
|
|
1960
|
-
export default interface ILightObject {
|
|
1961
|
-
id: string;
|
|
1962
|
-
sceneId: string;
|
|
1963
|
-
name: string;
|
|
1964
|
-
light: BABYLON.Light;
|
|
1965
|
-
color: string;
|
|
1966
|
-
lightType: string;
|
|
1967
|
-
intensity: number;
|
|
1968
|
-
load: Function;
|
|
1969
|
-
}
|
|
1970
|
-
|
|
1971
|
-
export default class LightObject implements ILightObject {
|
|
1972
|
-
id: string;
|
|
1973
|
-
sceneId: string;
|
|
1974
|
-
name: string;
|
|
1975
|
-
light: BABYLON.Light;
|
|
1976
|
-
color: string;
|
|
1977
|
-
objectType: string;
|
|
1978
|
-
lightType: string;
|
|
1979
|
-
intensity: number;
|
|
1980
|
-
app: App;
|
|
1981
|
-
constructor(_app: App);
|
|
1982
|
-
load(): void;
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1985
|
-
export enum LightType {
|
|
1986
|
-
Point = "Point",
|
|
1987
|
-
Spot = "Spot",
|
|
1988
|
-
Directional = "Directional",
|
|
1989
|
-
Hemispheric = "Hemispheric"
|
|
1990
|
-
}
|
|
1991
|
-
let typeFromat: Function;
|
|
1992
|
-
export default typeFromat;
|
|
1993
|
-
|
|
1994
|
-
export default class Point extends LightObject {
|
|
1995
|
-
position: BABYLON.Vector3;
|
|
1996
|
-
light: BABYLON.PointLight;
|
|
1997
|
-
range: number;
|
|
1998
|
-
load(): void;
|
|
1999
|
-
}
|
|
2000
|
-
|
|
2001
|
-
export default class Spot extends LightObject {
|
|
2002
|
-
direction: BABYLON.Vector3;
|
|
2003
|
-
position: BABYLON.Vector3;
|
|
2004
|
-
angle: number;
|
|
2005
|
-
exponent: number;
|
|
2006
|
-
range: number;
|
|
2007
|
-
light: BABYLON.SpotLight;
|
|
2008
|
-
load(): void;
|
|
2009
|
-
}
|
|
2010
|
-
|
|
2011
|
-
export default class CabinetObject extends DefaultObject {
|
|
2012
|
-
}
|
|
2013
|
-
|
|
2014
|
-
export default class ConduitObject extends DefaultObject {
|
|
2015
|
-
alpha: number;
|
|
2016
|
-
color: string;
|
|
2017
|
-
bind(_m: any): void;
|
|
2018
|
-
setColor(_r: number, _b: number, _g: number): void;
|
|
2019
|
-
reColor(): void;
|
|
2020
|
-
computeView(): void;
|
|
2021
|
-
setFlash(_level?: number): void;
|
|
2022
|
-
setOpaque(): void;
|
|
2023
|
-
setTransparent(_alpha?: number): void;
|
|
2024
|
-
}
|
|
2025
|
-
|
|
2026
|
-
export default class CornerObject extends DefaultObject {
|
|
2027
|
-
height: number;
|
|
2028
|
-
bind(_m: any): void;
|
|
2029
|
-
}
|
|
2030
|
-
|
|
2031
|
-
export default class DefaultObject implements IObject {
|
|
2032
|
-
app: App;
|
|
2033
|
-
id: string;
|
|
2034
|
-
name: string;
|
|
2035
|
-
parentId: string;
|
|
2036
|
-
modelId: string;
|
|
2037
|
-
instance: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
2038
|
-
objectType: string;
|
|
2039
|
-
modelType: string;
|
|
2040
|
-
action: BABYLON.ActionManager;
|
|
2041
|
-
executes: Dictionary<BABYLON.ExecuteCodeAction>;
|
|
2042
|
-
clickEvents: Dictionary<Function>;
|
|
2043
|
-
touchtime: number;
|
|
2044
|
-
effectType: EffectType;
|
|
2045
|
-
Sight: Sight;
|
|
2046
|
-
animation: boolean;
|
|
2047
|
-
isloop: boolean;
|
|
2048
|
-
isAutoPlay: boolean;
|
|
2049
|
-
constructor(_app: App);
|
|
2050
|
-
showBoundingBox: boolean;
|
|
2051
|
-
setEnabled(_value: boolean): void;
|
|
2052
|
-
bind(_m: any): void;
|
|
2053
|
-
computeView(): void;
|
|
2054
|
-
optimization(_isOptimization: boolean): void;
|
|
2055
|
-
alwaysActive(): void;
|
|
2056
|
-
addEventListener(_type: string, _callback: Function): void;
|
|
2057
|
-
removeEventListener(_type: string): void;
|
|
2058
|
-
setFlash(_level: number): void;
|
|
2059
|
-
setOpaque(): void;
|
|
2060
|
-
setTransparent(_alpha?: number): void;
|
|
2061
|
-
play(): void;
|
|
2062
|
-
stop(): void;
|
|
2063
|
-
flyTo(): void;
|
|
2064
|
-
focus(): void;
|
|
2065
|
-
}
|
|
2066
|
-
|
|
2067
|
-
export default class DoorObject extends DefaultObject {
|
|
2068
|
-
height: number;
|
|
2069
|
-
bind(_m: any): void;
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2072
|
-
export default class FloorObject extends DefaultObject {
|
|
2073
|
-
height: number;
|
|
2074
|
-
bind(_m: any): void;
|
|
2075
|
-
}
|
|
2076
|
-
|
|
2077
|
-
export default interface IBase {
|
|
2078
|
-
app: App;
|
|
2079
|
-
id: string;
|
|
2080
|
-
name: string;
|
|
2081
|
-
parentId: string;
|
|
2082
|
-
objectType: string;
|
|
2083
|
-
}
|
|
2084
|
-
|
|
2085
|
-
export default interface IObject extends IBase {
|
|
2086
|
-
modelId: string;
|
|
2087
|
-
instance: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
2088
|
-
modelType: string;
|
|
2089
|
-
Sight: Sight;
|
|
2090
|
-
effectType: EffectType;
|
|
2091
|
-
bind(_m?: any): any;
|
|
2092
|
-
optimization(isOptimization: boolean): any;
|
|
2093
|
-
showBoundingBox: boolean;
|
|
2094
|
-
setFlash(level: number): any;
|
|
2095
|
-
setTransparent(): any;
|
|
2096
|
-
setOpaque(): any;
|
|
2097
|
-
setEnabled(isEnabled: any): any;
|
|
2098
|
-
addEventListener(type: string, callback: Function): any;
|
|
2099
|
-
removeEventListener(type: string): any;
|
|
2100
|
-
play(isloop: boolean): any;
|
|
2101
|
-
stop(): any;
|
|
2102
|
-
flyTo(): any;
|
|
2103
|
-
focus(): any;
|
|
2104
|
-
computeView(): any;
|
|
2105
|
-
}
|
|
2106
|
-
|
|
2107
|
-
export default class LeakWaterObject extends DefaultObject {
|
|
2108
|
-
bind(_l: any): void;
|
|
2109
|
-
computeView(): void;
|
|
2110
|
-
addEventListener(_type: string, _callback: Function): void;
|
|
2111
|
-
removeEventListener(_type: string): void;
|
|
2112
|
-
}
|
|
2113
|
-
|
|
2114
|
-
export enum ObjectType {
|
|
2115
|
-
Campus = "Campus",
|
|
2116
|
-
Building = "Building",
|
|
2117
|
-
Scene = "Scene",
|
|
2118
|
-
Humiture = "Humiture",
|
|
2119
|
-
Battery = "Battery",
|
|
2120
|
-
PowerCabinet = "PowerCabinet",
|
|
2121
|
-
Cabinet = "Cabinet",
|
|
2122
|
-
AirCondition = "AirCondition",
|
|
2123
|
-
UPS = "UPS",
|
|
2124
|
-
Camera = "Camera",
|
|
2125
|
-
NewWindMachine = "NewWindMachine",
|
|
2126
|
-
SmokeDetector = "SmokeDetector",
|
|
2127
|
-
AudibleVisualAlarm = "AudibleVisualAlarm",
|
|
2128
|
-
LeakWater = "LeakWater",
|
|
2129
|
-
Wall = "Wall",
|
|
2130
|
-
Floor = "Floor",
|
|
2131
|
-
Window = "Window",
|
|
2132
|
-
Door = "Door",
|
|
2133
|
-
AirFlow = "AirFlow",
|
|
2134
|
-
Corner = "Corner",
|
|
2135
|
-
FireFighting = "FireFighting",
|
|
2136
|
-
Lighting = "Lighting",
|
|
2137
|
-
Enclosure = "Enclosure",
|
|
2138
|
-
ParkingLot = "ParkingLot",
|
|
2139
|
-
Elevator = "Elevator",
|
|
2140
|
-
Other = "Other",
|
|
2141
|
-
InrackAsset = "InrackAsset",
|
|
2142
|
-
GasDetection = "GasDetection",
|
|
2143
|
-
Security = "Security",
|
|
2144
|
-
OutDoorScene = "OutDoorScene",
|
|
2145
|
-
Infrared = "Infrared",
|
|
2146
|
-
SkyBox = "SkyBox",
|
|
2147
|
-
UI3D = "UI3D",
|
|
2148
|
-
ColdTongDoor = "ColdTongDoor",
|
|
2149
|
-
VirtualBox = "VirtualBox",
|
|
2150
|
-
PathPint = "PathPint",
|
|
2151
|
-
Port = "Port",
|
|
2152
|
-
Positioner = "Positioner",
|
|
2153
|
-
AutoAnimation = "AutoAnimation",
|
|
2154
|
-
MapModel = "MapModel",
|
|
2155
|
-
radiator = "radiator",
|
|
2156
|
-
Conduit = "Conduit",
|
|
2157
|
-
Region = "Region",
|
|
2158
|
-
optimizedWall = "optimizedWall"
|
|
2159
|
-
}
|
|
2160
|
-
|
|
2161
|
-
export default class RegionObject extends DefaultObject {
|
|
2162
|
-
index: number;
|
|
2163
|
-
height: number;
|
|
2164
|
-
constructor(app: App, _storey: any);
|
|
2165
|
-
bind(_storey: any, _isOptimized?: boolean): void;
|
|
2166
|
-
computeView(): void;
|
|
2167
|
-
flyTo(): void;
|
|
2168
|
-
focus(): void;
|
|
2169
|
-
setEnabled(_value: boolean): void;
|
|
2170
|
-
getBounding(): void;
|
|
2171
|
-
dispose(): void;
|
|
2172
|
-
}
|
|
2173
|
-
|
|
2174
|
-
export default class UI3DTextObject extends DefaultObject {
|
|
2175
|
-
bind(_u: any): void;
|
|
2176
|
-
}
|
|
2177
|
-
|
|
2178
|
-
export default class VirtualBoxObject extends DefaultObject {
|
|
2179
|
-
bind(_m: any): Promise<void>;
|
|
2180
|
-
}
|
|
2181
|
-
|
|
2182
|
-
export default class WallObject extends DefaultObject {
|
|
2183
|
-
nativeMaterial: BABYLON.StandardMaterial;
|
|
2184
|
-
baseModel: any;
|
|
2185
|
-
height: number;
|
|
2186
|
-
bind(_w: any): void;
|
|
2187
|
-
}
|
|
2188
|
-
|
|
2189
|
-
export default class WindowObject extends DefaultObject {
|
|
2190
|
-
height: number;
|
|
2191
|
-
bind(_m: any): void;
|
|
2192
|
-
}
|
|
2193
|
-
|
|
2194
|
-
export default class ArrayEx<T> extends Array<T> {
|
|
2195
|
-
remove(_val: any): void;
|
|
2196
|
-
}
|
|
2197
|
-
|
|
2198
|
-
export default interface BaseNode {
|
|
2199
|
-
id: string;
|
|
2200
|
-
scene: BABYLON.Scene;
|
|
2201
|
-
dispose(): any;
|
|
2202
|
-
isEnabled(bool: boolean): any;
|
|
2203
|
-
}
|
|
2204
|
-
|
|
2205
|
-
export default class Camera {
|
|
2206
|
-
app: App;
|
|
2207
|
-
camera: BABYLON.ArcRotateCamera;
|
|
2208
|
-
frustrum: number;
|
|
2209
|
-
isOverLook: boolean;
|
|
2210
|
-
constructor(_app: App);
|
|
2211
|
-
orthographic(): void;
|
|
2212
|
-
perspective(): void;
|
|
2213
|
-
focusingFromProperty(_visualAngle: Sight): void;
|
|
2214
|
-
flyTo(_visualAngle: Sight, _sheep?: number): void;
|
|
2215
|
-
translation(_visualAngle: Sight, _sheep?: number): void;
|
|
2216
|
-
computeCameraView(): void;
|
|
2217
|
-
_wheel(_p: any): void;
|
|
2218
|
-
}
|
|
2219
|
-
|
|
2220
|
-
export default class Dictionary<T> {
|
|
2221
|
-
map: {
|
|
2222
|
-
[key: string]: T;
|
|
2223
|
-
};
|
|
2224
|
-
constructor();
|
|
2225
|
-
add(_key: string, _value: T): void;
|
|
2226
|
-
find(_key: string): void;
|
|
2227
|
-
remove(_key: string): void;
|
|
2228
|
-
termRemove(_callback: Function): void;
|
|
2229
|
-
showAll(): void;
|
|
2230
|
-
count(): void;
|
|
2231
|
-
clear(): void;
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
export default class GUID {
|
|
2235
|
-
static getGUID(_length: number): void;
|
|
2236
|
-
}
|
|
2237
|
-
|
|
2238
|
-
export default class Resources {
|
|
2239
|
-
app: App;
|
|
2240
|
-
walls: Dictionary<BABYLON.AbstractMesh>;
|
|
2241
|
-
resources: Dictionary<BABYLON.AssetContainer>;
|
|
2242
|
-
ndoeMats: Dictionary<BABYLON.NodeMaterial>;
|
|
2243
|
-
transparentBox: BABYLON.Mesh;
|
|
2244
|
-
BOX: BABYLON.Mesh;
|
|
2245
|
-
FogTex: BABYLON.Texture;
|
|
2246
|
-
constructor(_app: App);
|
|
2247
|
-
loadModelMesh(_baseModel: any): Promise<void>;
|
|
2248
|
-
loadModelMeshAsync(_baseModel: any, _callback: Function): void;
|
|
2249
|
-
Materials: Dictionary<BABYLON.StandardMaterial>;
|
|
2250
|
-
Textures: Dictionary<BABYLON.Texture>;
|
|
2251
|
-
GetMaterial(_textureData: any, _scene: BABYLON.Scene): void;
|
|
2252
|
-
GetTexture(_textureData: any, _scene: BABYLON.Scene): void;
|
|
2253
|
-
MergeMaterials: Dictionary<BABYLON.CustomMaterial>;
|
|
2254
|
-
GetMergeMaterial(_textureData: any, _scene: BABYLON.Scene): void;
|
|
2255
|
-
delete(_isAll?: boolean): void;
|
|
2256
|
-
GetWalls(_url: string, _projectId: string): Promise<void>;
|
|
2257
|
-
}
|
|
2258
|
-
|
|
2259
|
-
export default class Sight {
|
|
2260
|
-
alpha: number;
|
|
2261
|
-
focus: BABYLON.Vector3;
|
|
2262
|
-
radius: number;
|
|
2263
|
-
beta: number;
|
|
2264
|
-
minimumLimit: number;
|
|
2265
|
-
maximumLimit: number;
|
|
2266
|
-
minBeta: number;
|
|
2267
|
-
maxBeta: number;
|
|
2268
|
-
setVisual(_visual: any): void;
|
|
2269
|
-
setLimit(_miniLimit: number, _maxiLimit: number): void;
|
|
2270
|
-
setBeta(_minBeta: number, _maxBeta: number): void;
|
|
2271
|
-
}
|
|
2272
|
-
|
|
2273
|
-
export default class Tools {
|
|
2274
|
-
static vector3ToJson(_old: BABYLON.Vector3): any;
|
|
2275
|
-
static vector3ARRToJson(_olds: BABYLON.Vector3[]): void;
|
|
2276
|
-
static ToVector3(_old: any): void;
|
|
2277
|
-
static ToARRVector3(_olds: any[]): void;
|
|
2278
|
-
static computeBounds(_mscene: BABYLON.Mesh): void;
|
|
2279
|
-
static computeBoundsToARR(_meshs: Array<BABYLON.Mesh>): void;
|
|
2280
|
-
static Expand(_polygon: Array<BABYLON.Vector3>, _expand: number): void;
|
|
2281
|
-
static norm(_x: number, _y: number): void;
|
|
2282
|
-
static MergeMeshes(_meshes: Array<BABYLON.Mesh>, _app: App): void;
|
|
2283
|
-
static DeconsTructMesh(_mesh: any, _height: any, _app: App): void;
|
|
2284
|
-
static getVisualAngle(_bound: BABYLON.BoundingInfo, _app: App): void;
|
|
2285
|
-
static pathTransformation(_oldPath: Array<BABYLON.Vector3>, _radius: number): void;
|
|
2286
|
-
static createTube(_id: string, _paths: Array<BABYLON.Vector3>, _radius: number, _app: App): void;
|
|
2287
|
-
static getAngleFromVector2(_startV: BABYLON.Vector2, _coreV: BABYLON.Vector2, _endV: BABYLON.Vector2): void;
|
|
2288
|
-
static getAngleFromVector3(_startV: BABYLON.Vector3, _coreV: BABYLON.Vector3, _endV: BABYLON.Vector3): void;
|
|
2289
|
-
static RandomNumBoth(_Min: any, _Max: any): void;
|
|
2290
|
-
}
|
|
2291
|
-
|
|
2292
|
-
export default class ToolTips {
|
|
2293
|
-
app: App;
|
|
2294
|
-
url: string;
|
|
2295
|
-
ele: HTMLDivElement;
|
|
2296
|
-
time: number;
|
|
2297
|
-
id: string;
|
|
2298
|
-
isOK: boolean;
|
|
2299
|
-
_text: string;
|
|
2300
|
-
constructor(_parent: HTMLElement, _app: App);
|
|
2301
|
-
update(_e: BABYLON.PointerInfo): void;
|
|
2302
|
-
close(): void;
|
|
2303
|
-
setBackground(_url: string): void;
|
|
2304
|
-
}
|
|
2305
|
-
|
|
2306
|
-
export default class App {
|
|
2307
|
-
canvas: HTMLCanvasElement;
|
|
2308
|
-
engine: BABYLON.Engine;
|
|
2309
|
-
scene: BABYLON.Scene;
|
|
2310
|
-
Camera: Camera;
|
|
2311
|
-
HighlightLayer: BABYLON.HighlightLayer;
|
|
2312
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
2313
|
-
fps: HTMLDivElement;
|
|
2314
|
-
Resources: Resources;
|
|
2315
|
-
Environment: Environment;
|
|
2316
|
-
Project: Project;
|
|
2317
|
-
ToolTips: ToolTips;
|
|
2318
|
-
constructor(_config: {
|
|
2319
|
-
container: HTMLElement;
|
|
2320
|
-
sl?: string;
|
|
2321
|
-
rl?: string;
|
|
2322
|
-
});
|
|
2323
|
-
load(_config: {
|
|
2324
|
-
pk: string;
|
|
2325
|
-
progress?: Function;
|
|
2326
|
-
complete?: Function;
|
|
2327
|
-
}): Promise<void>;
|
|
2328
|
-
}
|
|
2329
|
-
|
|
2330
|
-
export default class Capacity {
|
|
2331
|
-
anchor: IObject;
|
|
2332
|
-
mesh: BABYLON.Mesh;
|
|
2333
|
-
ratio: number;
|
|
2334
|
-
color: string;
|
|
2335
|
-
textMesh: BABYLON.Mesh;
|
|
2336
|
-
constructor(_object: IObject, _RATIO: number);
|
|
2337
|
-
dispose(): void;
|
|
2338
|
-
}
|
|
2339
|
-
|
|
2340
|
-
export default class CapacityBuilder {
|
|
2341
|
-
static createCapacity(_obj: IObject, _RATIO: number, _text: string, _fontSize?: string): void;
|
|
2342
|
-
static createTextMesh(_obj: IObject, _text: string, _RATIO: number, _fontSize?: string, _color?: string): void;
|
|
2343
|
-
}
|
|
2344
|
-
|
|
2345
|
-
export default class EffectMgr {
|
|
2346
|
-
static colors: {};
|
|
2347
|
-
static init(): void;
|
|
2348
|
-
}
|
|
2349
|
-
|
|
2350
|
-
export enum EffectType {
|
|
2351
|
-
Opaque = 0,
|
|
2352
|
-
Flash = 1,
|
|
2353
|
-
Transparent = 2
|
|
2354
|
-
}
|
|
2355
|
-
|
|
2356
|
-
export default class Environment {
|
|
2357
|
-
app: App;
|
|
2358
|
-
lights: any;
|
|
2359
|
-
_color: BABYLON.Color4;
|
|
2360
|
-
background: BABYLON.Layer;
|
|
2361
|
-
reflexEnabled: boolean;
|
|
2362
|
-
reflexIntensity: number;
|
|
2363
|
-
constructor(_app: App);
|
|
2364
|
-
set fogDistance(_value: number);
|
|
2365
|
-
set color(_value: BABYLON.Color4);
|
|
2366
|
-
reflex(_url: string, _intensity: number): void;
|
|
2367
|
-
setBackground(_url: string): void;
|
|
2368
|
-
setReflexEnabled(_reflexEnabled: boolean): void;
|
|
2369
|
-
setFlexIntensity(_intensity: number): void;
|
|
2370
|
-
defaultLights(): void;
|
|
2371
|
-
offAllLight(): void;
|
|
2372
|
-
openAllLight(): void;
|
|
2373
|
-
loadLight(_Lights: Array<any>): void;
|
|
2374
|
-
}
|
|
2375
|
-
|
|
2376
|
-
export enum EventType {
|
|
2377
|
-
leftClick = "leftClick",
|
|
2378
|
-
rightClick = "rightClick",
|
|
2379
|
-
doubleClick = "doubleClick",
|
|
2380
|
-
eover = "eover",
|
|
2381
|
-
longPress = "longPress",
|
|
2382
|
-
out = "out"
|
|
2383
|
-
}
|
|
2384
|
-
|
|
2385
|
-
export default class HeatMap implements BaseNode {
|
|
2386
|
-
id: string;
|
|
2387
|
-
scene: BABYLON.Scene;
|
|
2388
|
-
anchor: string;
|
|
2389
|
-
mesh: BABYLON.Mesh;
|
|
2390
|
-
texts: Array<BABYLON.GUI.TextBlock>;
|
|
2391
|
-
constructor(_anchor: string);
|
|
2392
|
-
isEnabled(_bool: boolean): void;
|
|
2393
|
-
set displayValues(_value: boolean);
|
|
2394
|
-
dispose(): void;
|
|
2395
|
-
}
|
|
2396
|
-
|
|
2397
|
-
export default class HeatMapBuilder {
|
|
2398
|
-
static createMatrixHeatMap(_data: {
|
|
2399
|
-
anchor: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
2400
|
-
rootUrl: string;
|
|
2401
|
-
FogTex: BABYLON.Texture;
|
|
2402
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
2403
|
-
config: {
|
|
2404
|
-
maxX: number;
|
|
2405
|
-
maxY: number;
|
|
2406
|
-
data: Array<{
|
|
2407
|
-
x: number;
|
|
2408
|
-
y: number;
|
|
2409
|
-
value: number;
|
|
2410
|
-
}>;
|
|
2411
|
-
};
|
|
2412
|
-
displayValues: boolean;
|
|
2413
|
-
height: number;
|
|
2414
|
-
isLevelRender: boolean;
|
|
2415
|
-
isAlpha: boolean;
|
|
2416
|
-
isParticle: boolean;
|
|
2417
|
-
radius: number;
|
|
2418
|
-
range: {
|
|
2419
|
-
max: number;
|
|
2420
|
-
min: number;
|
|
2421
|
-
};
|
|
2422
|
-
}): void;
|
|
2423
|
-
static createColumnarHeatMap(_data: {
|
|
2424
|
-
anchor: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
2425
|
-
FogTex: BABYLON.Texture;
|
|
2426
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
2427
|
-
config: Array<{
|
|
2428
|
-
index: number;
|
|
2429
|
-
value: number;
|
|
2430
|
-
}>;
|
|
2431
|
-
isLevelRender: boolean;
|
|
2432
|
-
displayValues: boolean;
|
|
2433
|
-
isAlpha: boolean;
|
|
2434
|
-
isParticle: boolean;
|
|
2435
|
-
radius: number;
|
|
2436
|
-
range: {
|
|
2437
|
-
max: number;
|
|
2438
|
-
min: number;
|
|
2439
|
-
};
|
|
2440
|
-
}): void;
|
|
2441
|
-
}
|
|
2442
|
-
|
|
2443
|
-
export default class Icon implements BaseNode {
|
|
2444
|
-
id: string;
|
|
2445
|
-
scene: BABYLON.Scene;
|
|
2446
|
-
pint: BABYLON.Mesh;
|
|
2447
|
-
rect: BABYLON.GUI.Rectangle;
|
|
2448
|
-
onPointerClick: Function;
|
|
2449
|
-
size: {
|
|
2450
|
-
width: number;
|
|
2451
|
-
height: number;
|
|
2452
|
-
};
|
|
2453
|
-
height: number;
|
|
2454
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
2455
|
-
constructor(_id: string, _scene: BABYLON.Scene);
|
|
2456
|
-
set background(_url: string);
|
|
2457
|
-
setTexts(_textArr: [{
|
|
2458
|
-
text: string;
|
|
2459
|
-
fontSize: string;
|
|
2460
|
-
color: string;
|
|
2461
|
-
top: number;
|
|
2462
|
-
left: number;
|
|
2463
|
-
}]): void;
|
|
2464
|
-
line(_line: {
|
|
2465
|
-
width: number;
|
|
2466
|
-
color: string;
|
|
2467
|
-
}): void;
|
|
2468
|
-
dispose(): void;
|
|
2469
|
-
isEnabled(_isEnabled: boolean): void;
|
|
2470
|
-
}
|
|
2471
|
-
|
|
2472
|
-
export default class IconFromMesh implements BaseNode {
|
|
2473
|
-
id: string;
|
|
2474
|
-
scene: BABYLON.Scene;
|
|
2475
|
-
instance: BABYLON.Mesh;
|
|
2476
|
-
url: string;
|
|
2477
|
-
scaling: number;
|
|
2478
|
-
constructor(_id: string, _anchor: BABYLON.Vector3, _url: string, _scaling: number, _height: number, _scene: BABYLON.Scene);
|
|
2479
|
-
setBackground(): void;
|
|
2480
|
-
addEventListener(_action: Function): void;
|
|
2481
|
-
setColor(_color: string): void;
|
|
2482
|
-
setContents(_textArr: [{
|
|
2483
|
-
text: string;
|
|
2484
|
-
fontSize: string;
|
|
2485
|
-
top: number;
|
|
2486
|
-
left: number;
|
|
2487
|
-
color?: string;
|
|
2488
|
-
}]): void;
|
|
2489
|
-
dispose(): void;
|
|
2490
|
-
isEnabled(_bool: boolean): void;
|
|
2491
|
-
}
|
|
2492
|
-
|
|
2493
|
-
export default class Project {
|
|
2494
|
-
app: App;
|
|
2495
|
-
id: string;
|
|
2496
|
-
root: IObject;
|
|
2497
|
-
current: IObject;
|
|
2498
|
-
Sight: Sight;
|
|
2499
|
-
objectDatas: Dictionary<IObject>;
|
|
2500
|
-
constructor(_app: App);
|
|
2501
|
-
delete(): void;
|
|
2502
|
-
optimization(): void;
|
|
2503
|
-
computeView(): void;
|
|
2504
|
-
getChildNodes(_id: string): void;
|
|
2505
|
-
getTrees(): void;
|
|
2506
|
-
find(_id: string): void;
|
|
2507
|
-
findFormObjectType(_type: ObjectType, _isCurent?: boolean): void;
|
|
2508
|
-
show(): void;
|
|
2509
|
-
getBounding(): void;
|
|
2510
|
-
flyTo(): void;
|
|
2511
|
-
}
|
|
2512
|
-
|
|
2513
|
-
export default class UI {
|
|
2514
|
-
static createIconFromMesh(_id: string, _anchor: IObject, _url: string, _scaling: number, _height: number): void;
|
|
2515
|
-
static createIcon(_id: string, _anchor: IObject, _size: {
|
|
2516
|
-
width: number;
|
|
2517
|
-
height: number;
|
|
2518
|
-
}, _height: number): void;
|
|
2519
|
-
}
|
|
2520
|
-
|
|
2521
|
-
export default class Directional extends LightObject {
|
|
2522
|
-
direction: BABYLON.Vector3;
|
|
2523
|
-
position: BABYLON.Vector3;
|
|
2524
|
-
light: BABYLON.DirectionalLight;
|
|
2525
|
-
load(): void;
|
|
2526
|
-
}
|
|
2527
|
-
|
|
2528
|
-
export default class Hemispheric extends LightObject {
|
|
2529
|
-
direction: BABYLON.Vector3;
|
|
2530
|
-
light: BABYLON.HemisphericLight;
|
|
2531
|
-
load(): void;
|
|
2532
|
-
}
|
|
2533
|
-
|
|
2534
|
-
export default interface ILightObject {
|
|
2535
|
-
id: string;
|
|
2536
|
-
sceneId: string;
|
|
2537
|
-
name: string;
|
|
2538
|
-
light: BABYLON.Light;
|
|
2539
|
-
color: string;
|
|
2540
|
-
lightType: string;
|
|
2541
|
-
intensity: number;
|
|
2542
|
-
load: Function;
|
|
2543
|
-
}
|
|
2544
|
-
|
|
2545
|
-
export default class LightObject implements ILightObject {
|
|
2546
|
-
id: string;
|
|
2547
|
-
sceneId: string;
|
|
2548
|
-
name: string;
|
|
2549
|
-
light: BABYLON.Light;
|
|
2550
|
-
color: string;
|
|
2551
|
-
objectType: string;
|
|
2552
|
-
lightType: string;
|
|
2553
|
-
intensity: number;
|
|
2554
|
-
app: App;
|
|
2555
|
-
constructor(_app: App);
|
|
2556
|
-
load(): void;
|
|
2557
|
-
}
|
|
2558
|
-
|
|
2559
|
-
export enum LightType {
|
|
2560
|
-
Point = "Point",
|
|
2561
|
-
Spot = "Spot",
|
|
2562
|
-
Directional = "Directional",
|
|
2563
|
-
Hemispheric = "Hemispheric"
|
|
2564
|
-
}
|
|
2565
|
-
let typeFromat: Function;
|
|
2566
|
-
export default typeFromat;
|
|
2567
|
-
|
|
2568
|
-
export default class Point extends LightObject {
|
|
2569
|
-
position: BABYLON.Vector3;
|
|
2570
|
-
light: BABYLON.PointLight;
|
|
2571
|
-
range: number;
|
|
2572
|
-
load(): void;
|
|
2573
|
-
}
|
|
2574
|
-
|
|
2575
|
-
export default class Spot extends LightObject {
|
|
2576
|
-
direction: BABYLON.Vector3;
|
|
2577
|
-
position: BABYLON.Vector3;
|
|
2578
|
-
angle: number;
|
|
2579
|
-
exponent: number;
|
|
2580
|
-
range: number;
|
|
2581
|
-
light: BABYLON.SpotLight;
|
|
2582
|
-
load(): void;
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
export default class CabinetObject extends DefaultObject {
|
|
2586
|
-
}
|
|
2587
|
-
|
|
2588
|
-
export default class ConduitObject extends DefaultObject {
|
|
2589
|
-
alpha: number;
|
|
2590
|
-
color: string;
|
|
2591
|
-
bind(_m: any): void;
|
|
2592
|
-
setColor(_r: number, _b: number, _g: number): void;
|
|
2593
|
-
reColor(): void;
|
|
2594
|
-
computeView(): void;
|
|
2595
|
-
setFlash(_level?: number): void;
|
|
2596
|
-
setOpaque(): void;
|
|
2597
|
-
setTransparent(_alpha?: number): void;
|
|
2598
|
-
}
|
|
2599
|
-
|
|
2600
|
-
export default class CornerObject extends DefaultObject {
|
|
2601
|
-
height: number;
|
|
2602
|
-
bind(_m: any): void;
|
|
2603
|
-
}
|
|
2604
|
-
|
|
2605
|
-
export default class DefaultObject implements IObject {
|
|
2606
|
-
app: App;
|
|
2607
|
-
id: string;
|
|
2608
|
-
name: string;
|
|
2609
|
-
parentId: string;
|
|
2610
|
-
modelId: string;
|
|
2611
|
-
instance: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
2612
|
-
objectType: string;
|
|
2613
|
-
modelType: string;
|
|
2614
|
-
action: BABYLON.ActionManager;
|
|
2615
|
-
executes: Dictionary<BABYLON.ExecuteCodeAction>;
|
|
2616
|
-
clickEvents: Dictionary<Function>;
|
|
2617
|
-
touchtime: number;
|
|
2618
|
-
effectType: EffectType;
|
|
2619
|
-
Sight: Sight;
|
|
2620
|
-
animation: boolean;
|
|
2621
|
-
isloop: boolean;
|
|
2622
|
-
isAutoPlay: boolean;
|
|
2623
|
-
constructor(_app: App);
|
|
2624
|
-
showBoundingBox: boolean;
|
|
2625
|
-
setEnabled(_value: boolean): void;
|
|
2626
|
-
bind(_m: any): void;
|
|
2627
|
-
computeView(): void;
|
|
2628
|
-
optimization(_isOptimization: boolean): void;
|
|
2629
|
-
alwaysActive(): void;
|
|
2630
|
-
addEventListener(_type: string, _callback: Function): void;
|
|
2631
|
-
removeEventListener(_type: string): void;
|
|
2632
|
-
setFlash(_level: number): void;
|
|
2633
|
-
setOpaque(): void;
|
|
2634
|
-
setTransparent(_alpha?: number): void;
|
|
2635
|
-
play(): void;
|
|
2636
|
-
stop(): void;
|
|
2637
|
-
flyTo(): void;
|
|
2638
|
-
focus(): void;
|
|
2639
|
-
}
|
|
2640
|
-
|
|
2641
|
-
export default class DoorObject extends DefaultObject {
|
|
2642
|
-
height: number;
|
|
2643
|
-
bind(_m: any): void;
|
|
2644
|
-
}
|
|
2645
|
-
|
|
2646
|
-
export default class FloorObject extends DefaultObject {
|
|
2647
|
-
height: number;
|
|
2648
|
-
bind(_m: any): void;
|
|
2649
|
-
}
|
|
2650
|
-
|
|
2651
|
-
export default interface IBase {
|
|
2652
|
-
app: App;
|
|
2653
|
-
id: string;
|
|
2654
|
-
name: string;
|
|
2655
|
-
parentId: string;
|
|
2656
|
-
objectType: string;
|
|
2657
|
-
}
|
|
2658
|
-
|
|
2659
|
-
export default interface IObject extends IBase {
|
|
2660
|
-
modelId: string;
|
|
2661
|
-
instance: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
2662
|
-
modelType: string;
|
|
2663
|
-
Sight: Sight;
|
|
2664
|
-
effectType: EffectType;
|
|
2665
|
-
bind(_m?: any): any;
|
|
2666
|
-
optimization(isOptimization: boolean): any;
|
|
2667
|
-
showBoundingBox: boolean;
|
|
2668
|
-
setFlash(level: number): any;
|
|
2669
|
-
setTransparent(): any;
|
|
2670
|
-
setOpaque(): any;
|
|
2671
|
-
setEnabled(isEnabled: any): any;
|
|
2672
|
-
addEventListener(type: string, callback: Function): any;
|
|
2673
|
-
removeEventListener(type: string): any;
|
|
2674
|
-
play(isloop: boolean): any;
|
|
2675
|
-
stop(): any;
|
|
2676
|
-
flyTo(): any;
|
|
2677
|
-
focus(): any;
|
|
2678
|
-
computeView(): any;
|
|
2679
|
-
}
|
|
2680
|
-
|
|
2681
|
-
export default class LeakWaterObject extends DefaultObject {
|
|
2682
|
-
bind(_l: any): void;
|
|
2683
|
-
computeView(): void;
|
|
2684
|
-
addEventListener(_type: string, _callback: Function): void;
|
|
2685
|
-
removeEventListener(_type: string): void;
|
|
2686
|
-
}
|
|
2687
|
-
|
|
2688
|
-
export enum ObjectType {
|
|
2689
|
-
Campus = "Campus",
|
|
2690
|
-
Building = "Building",
|
|
2691
|
-
Scene = "Scene",
|
|
2692
|
-
Humiture = "Humiture",
|
|
2693
|
-
Battery = "Battery",
|
|
2694
|
-
PowerCabinet = "PowerCabinet",
|
|
2695
|
-
Cabinet = "Cabinet",
|
|
2696
|
-
AirCondition = "AirCondition",
|
|
2697
|
-
UPS = "UPS",
|
|
2698
|
-
Camera = "Camera",
|
|
2699
|
-
NewWindMachine = "NewWindMachine",
|
|
2700
|
-
SmokeDetector = "SmokeDetector",
|
|
2701
|
-
AudibleVisualAlarm = "AudibleVisualAlarm",
|
|
2702
|
-
LeakWater = "LeakWater",
|
|
2703
|
-
Wall = "Wall",
|
|
2704
|
-
Floor = "Floor",
|
|
2705
|
-
Window = "Window",
|
|
2706
|
-
Door = "Door",
|
|
2707
|
-
AirFlow = "AirFlow",
|
|
2708
|
-
Corner = "Corner",
|
|
2709
|
-
FireFighting = "FireFighting",
|
|
2710
|
-
Lighting = "Lighting",
|
|
2711
|
-
Enclosure = "Enclosure",
|
|
2712
|
-
ParkingLot = "ParkingLot",
|
|
2713
|
-
Elevator = "Elevator",
|
|
2714
|
-
Other = "Other",
|
|
2715
|
-
InrackAsset = "InrackAsset",
|
|
2716
|
-
GasDetection = "GasDetection",
|
|
2717
|
-
Security = "Security",
|
|
2718
|
-
OutDoorScene = "OutDoorScene",
|
|
2719
|
-
Infrared = "Infrared",
|
|
2720
|
-
SkyBox = "SkyBox",
|
|
2721
|
-
UI3D = "UI3D",
|
|
2722
|
-
ColdTongDoor = "ColdTongDoor",
|
|
2723
|
-
VirtualBox = "VirtualBox",
|
|
2724
|
-
PathPint = "PathPint",
|
|
2725
|
-
Port = "Port",
|
|
2726
|
-
Positioner = "Positioner",
|
|
2727
|
-
AutoAnimation = "AutoAnimation",
|
|
2728
|
-
MapModel = "MapModel",
|
|
2729
|
-
radiator = "radiator",
|
|
2730
|
-
Conduit = "Conduit",
|
|
2731
|
-
Region = "Region",
|
|
2732
|
-
optimizedWall = "optimizedWall"
|
|
2733
|
-
}
|
|
2734
|
-
|
|
2735
|
-
export default class RegionObject extends DefaultObject {
|
|
2736
|
-
index: number;
|
|
2737
|
-
height: number;
|
|
2738
|
-
constructor(app: App, _storey: any);
|
|
2739
|
-
bind(_storey: any, _isOptimized?: boolean): void;
|
|
2740
|
-
computeView(): void;
|
|
2741
|
-
flyTo(): void;
|
|
2742
|
-
focus(): void;
|
|
2743
|
-
setEnabled(_value: boolean): void;
|
|
2744
|
-
getBounding(): void;
|
|
2745
|
-
dispose(): void;
|
|
2746
|
-
}
|
|
2747
|
-
|
|
2748
|
-
export default class UI3DTextObject extends DefaultObject {
|
|
2749
|
-
bind(_u: any): void;
|
|
2750
|
-
}
|
|
2751
|
-
|
|
2752
|
-
export default class VirtualBoxObject extends DefaultObject {
|
|
2753
|
-
bind(_m: any): Promise<void>;
|
|
2754
|
-
}
|
|
2755
|
-
|
|
2756
|
-
export default class WallObject extends DefaultObject {
|
|
2757
|
-
nativeMaterial: BABYLON.StandardMaterial;
|
|
2758
|
-
baseModel: any;
|
|
2759
|
-
height: number;
|
|
2760
|
-
bind(_w: any): void;
|
|
2761
|
-
}
|
|
2762
|
-
|
|
2763
|
-
export default class WindowObject extends DefaultObject {
|
|
2764
|
-
height: number;
|
|
2765
|
-
bind(_m: any): void;
|
|
2766
|
-
}
|
|
2767
|
-
|
|
2768
|
-
export default class ArrayEx<T> extends Array<T> {
|
|
2769
|
-
remove(_val: any): void;
|
|
2770
|
-
}
|
|
2771
|
-
|
|
2772
|
-
export default interface BaseNode {
|
|
2773
|
-
id: string;
|
|
2774
|
-
scene: BABYLON.Scene;
|
|
2775
|
-
dispose(): any;
|
|
2776
|
-
isEnabled(bool: boolean): any;
|
|
2777
|
-
}
|
|
2778
|
-
|
|
2779
|
-
export default class Camera {
|
|
2780
|
-
app: App;
|
|
2781
|
-
camera: BABYLON.ArcRotateCamera;
|
|
2782
|
-
frustrum: number;
|
|
2783
|
-
isOverLook: boolean;
|
|
2784
|
-
constructor(_app: App);
|
|
2785
|
-
orthographic(): void;
|
|
2786
|
-
perspective(): void;
|
|
2787
|
-
focusingFromProperty(_visualAngle: Sight): void;
|
|
2788
|
-
flyTo(_visualAngle: Sight, _sheep?: number): void;
|
|
2789
|
-
translation(_visualAngle: Sight, _sheep?: number): void;
|
|
2790
|
-
computeCameraView(): void;
|
|
2791
|
-
_wheel(_p: any): void;
|
|
2792
|
-
}
|
|
2793
|
-
|
|
2794
|
-
export default class Dictionary<T> {
|
|
2795
|
-
map: {
|
|
2796
|
-
[key: string]: T;
|
|
2797
|
-
};
|
|
2798
|
-
constructor();
|
|
2799
|
-
add(_key: string, _value: T): void;
|
|
2800
|
-
find(_key: string): void;
|
|
2801
|
-
remove(_key: string): void;
|
|
2802
|
-
termRemove(_callback: Function): void;
|
|
2803
|
-
showAll(): void;
|
|
2804
|
-
count(): void;
|
|
2805
|
-
clear(): void;
|
|
2806
|
-
}
|
|
2807
|
-
|
|
2808
|
-
export default class GUID {
|
|
2809
|
-
static getGUID(_length: number): void;
|
|
2810
|
-
}
|
|
2811
|
-
|
|
2812
|
-
export default class Resources {
|
|
2813
|
-
app: App;
|
|
2814
|
-
walls: Dictionary<BABYLON.AbstractMesh>;
|
|
2815
|
-
resources: Dictionary<BABYLON.AssetContainer>;
|
|
2816
|
-
ndoeMats: Dictionary<BABYLON.NodeMaterial>;
|
|
2817
|
-
transparentBox: BABYLON.Mesh;
|
|
2818
|
-
BOX: BABYLON.Mesh;
|
|
2819
|
-
FogTex: BABYLON.Texture;
|
|
2820
|
-
constructor(_app: App);
|
|
2821
|
-
loadModelMesh(_baseModel: any): Promise<void>;
|
|
2822
|
-
loadModelMeshAsync(_baseModel: any, _callback: Function): void;
|
|
2823
|
-
Materials: Dictionary<BABYLON.StandardMaterial>;
|
|
2824
|
-
Textures: Dictionary<BABYLON.Texture>;
|
|
2825
|
-
GetMaterial(_textureData: any, _scene: BABYLON.Scene): void;
|
|
2826
|
-
GetTexture(_textureData: any, _scene: BABYLON.Scene): void;
|
|
2827
|
-
MergeMaterials: Dictionary<BABYLON.CustomMaterial>;
|
|
2828
|
-
GetMergeMaterial(_textureData: any, _scene: BABYLON.Scene): void;
|
|
2829
|
-
delete(_isAll?: boolean): void;
|
|
2830
|
-
GetWalls(_url: string, _projectId: string): Promise<void>;
|
|
2831
|
-
}
|
|
2832
|
-
|
|
2833
|
-
export default class Sight {
|
|
2834
|
-
alpha: number;
|
|
2835
|
-
focus: BABYLON.Vector3;
|
|
2836
|
-
radius: number;
|
|
2837
|
-
beta: number;
|
|
2838
|
-
minimumLimit: number;
|
|
2839
|
-
maximumLimit: number;
|
|
2840
|
-
minBeta: number;
|
|
2841
|
-
maxBeta: number;
|
|
2842
|
-
setVisual(_visual: any): void;
|
|
2843
|
-
setLimit(_miniLimit: number, _maxiLimit: number): void;
|
|
2844
|
-
setBeta(_minBeta: number, _maxBeta: number): void;
|
|
2845
|
-
}
|
|
2846
|
-
|
|
2847
|
-
export default class Tools {
|
|
2848
|
-
static vector3ToJson(_old: BABYLON.Vector3): any;
|
|
2849
|
-
static vector3ARRToJson(_olds: BABYLON.Vector3[]): void;
|
|
2850
|
-
static ToVector3(_old: any): void;
|
|
2851
|
-
static ToARRVector3(_olds: any[]): void;
|
|
2852
|
-
static computeBounds(_mscene: BABYLON.Mesh): void;
|
|
2853
|
-
static computeBoundsToARR(_meshs: Array<BABYLON.Mesh>): void;
|
|
2854
|
-
static Expand(_polygon: Array<BABYLON.Vector3>, _expand: number): void;
|
|
2855
|
-
static norm(_x: number, _y: number): void;
|
|
2856
|
-
static MergeMeshes(_meshes: Array<BABYLON.Mesh>, _app: App): void;
|
|
2857
|
-
static DeconsTructMesh(_mesh: any, _height: any, _app: App): void;
|
|
2858
|
-
static getVisualAngle(_bound: BABYLON.BoundingInfo, _app: App): void;
|
|
2859
|
-
static pathTransformation(_oldPath: Array<BABYLON.Vector3>, _radius: number): void;
|
|
2860
|
-
static createTube(_id: string, _paths: Array<BABYLON.Vector3>, _radius: number, _app: App): void;
|
|
2861
|
-
static getAngleFromVector2(_startV: BABYLON.Vector2, _coreV: BABYLON.Vector2, _endV: BABYLON.Vector2): void;
|
|
2862
|
-
static getAngleFromVector3(_startV: BABYLON.Vector3, _coreV: BABYLON.Vector3, _endV: BABYLON.Vector3): void;
|
|
2863
|
-
static RandomNumBoth(_Min: any, _Max: any): void;
|
|
2864
|
-
}
|
|
2865
|
-
|
|
2866
|
-
export default class ToolTips {
|
|
2867
|
-
app: App;
|
|
2868
|
-
url: string;
|
|
2869
|
-
ele: HTMLDivElement;
|
|
2870
|
-
time: number;
|
|
2871
|
-
id: string;
|
|
2872
|
-
isOK: boolean;
|
|
2873
|
-
_text: string;
|
|
2874
|
-
constructor(_parent: HTMLElement, _app: App);
|
|
2875
|
-
update(_e: BABYLON.PointerInfo): void;
|
|
2876
|
-
close(): void;
|
|
2877
|
-
setBackground(_url: string): void;
|
|
2878
|
-
}
|
|
2879
|
-
|