mx3d 0.1.1 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -2,128 +2,128 @@
2
2
  @author gzmaijing
3
3
  @email mj@gzmaijing.com
4
4
  */
5
- declare module MX3D{
6
- export class App {
5
+ declare module MX3D {
6
+ export class App {
7
7
  canvas: HTMLCanvasElement;
8
- engine: BABYLON.Engine;
9
- scene: BABYLON.Scene;
8
+ engine: any;
9
+ scene: any;
10
10
  CameraController: CameraController;
11
- HighlightLayer: BABYLON.HighlightLayer;
12
- container: BABYLON.GUI.AdvancedDynamicTexture;
11
+ HighlightLayer: any;
12
+ container: any;
13
13
  fps: HTMLDivElement;
14
14
  Resources: Resources;
15
15
  Environment: Environment;
16
16
  Project: Project;
17
17
  ToolTips: ToolTips;
18
18
  constructor(_config: {
19
- container: HTMLElement;
20
- sl?: string;
21
- rl?: string;
19
+ container: HTMLElement;
20
+ sl?: string;
21
+ rl?: string;
22
22
  });
23
23
  load(_config: {
24
- pk: string;
25
- progress?: Function;
26
- complete?: Function;
24
+ pk: string;
25
+ progress?: Function;
26
+ complete?: Function;
27
27
  }): Promise<void>;
28
28
  dispose(): void;
29
- }
29
+ }
30
30
 
31
- export class Builder {
31
+ export class Builder {
32
32
  static createCapacity(_obj: IObject, _RATIO: number, _text: string, _fontSize?: string): void;
33
33
  static createTextMesh(_obj: IObject, _text: string, _RATIO: number, _fontSize?: string, _color?: string): void;
34
34
  static createMatrixCloud(_data: {
35
- anchor: IObject;
36
- value: {
37
- maxX: number;
38
- maxY: number;
39
- data: Array<{
40
- x: number;
41
- y: number;
42
- value: number;
43
- }>;
44
- };
45
- displayValues: boolean;
46
- height: number;
47
- isLevelRender: boolean;
48
- isAlpha: boolean;
49
- isParticle: boolean;
50
- radius: number;
51
- range: {
52
- max: number;
53
- min: number;
54
- };
35
+ anchor: IObject;
36
+ value: {
37
+ maxX: number;
38
+ maxY: number;
39
+ data: Array<{
40
+ x: number;
41
+ y: number;
42
+ value: number;
43
+ }>;
44
+ };
45
+ displayValues: boolean;
46
+ height: number;
47
+ isLevelRender: boolean;
48
+ isAlpha: boolean;
49
+ isParticle: boolean;
50
+ radius: number;
51
+ range: {
52
+ max: number;
53
+ min: number;
54
+ };
55
55
  }): void;
56
56
  static createPunctateCloud(_data: {
57
- anchor: IObject;
58
- value: number;
59
- radius: number;
60
- isLevelRender: boolean;
61
- displayValues: boolean;
62
- isAlpha: boolean;
63
- isParticle: boolean;
64
- range: {
65
- max: number;
66
- min: number;
67
- };
57
+ anchor: IObject;
58
+ value: number;
59
+ radius: number;
60
+ isLevelRender: boolean;
61
+ displayValues: boolean;
62
+ isAlpha: boolean;
63
+ isParticle: boolean;
64
+ range: {
65
+ max: number;
66
+ min: number;
67
+ };
68
68
  }): void;
69
69
  createColumnCloud(_data: {
70
- anchor: IObject;
71
- data: Array<{
72
- index: number;
73
- value: number;
74
- }>;
75
- isLevelRender: boolean;
76
- displayValues: boolean;
77
- isAlpha: boolean;
78
- isParticle: boolean;
79
- radius: number;
80
- range: {
81
- max: number;
82
- min: number;
83
- };
70
+ anchor: IObject;
71
+ data: Array<{
72
+ index: number;
73
+ value: number;
74
+ }>;
75
+ isLevelRender: boolean;
76
+ displayValues: boolean;
77
+ isAlpha: boolean;
78
+ isParticle: boolean;
79
+ radius: number;
80
+ range: {
81
+ max: number;
82
+ min: number;
83
+ };
84
84
  }): void;
85
85
  static create2DLine(_id: string, _objs: Array<IObject>, _options?: {
86
- _width: number;
87
- _color: string;
88
- isDotted: boolean;
86
+ _width: number;
87
+ _color: string;
88
+ isDotted: boolean;
89
89
  }): void;
90
90
  static create3DLine(_id: string, _objs: Array<IObject>, _options?: {
91
- _width: number;
92
- _color: string;
91
+ _width: number;
92
+ _color: string;
93
93
  }): void;
94
- }
94
+ }
95
95
 
96
- export class Capacity {
96
+ export class Capacity {
97
97
  anchor: IObject;
98
- mesh: BABYLON.Mesh;
98
+ mesh: any;
99
99
  ratio: number;
100
100
  color: string;
101
- textMesh: BABYLON.Mesh;
101
+ textMesh: any;
102
102
  constructor(_object: IObject, _RATIO: number);
103
103
  dispose(): void;
104
- }
104
+ }
105
105
 
106
- export class EffectMgr {
106
+ export class EffectMgr {
107
107
  static colors: {};
108
108
  static init(): void;
109
- }
109
+ }
110
110
 
111
- export enum EffectType {
111
+ export enum EffectType {
112
112
  Opaque = 0,
113
113
  Flash = 1,
114
114
  Transparent = 2
115
- }
115
+ }
116
116
 
117
- export class Environment {
117
+ export class Environment {
118
118
  app: App;
119
119
  lights: any;
120
- _color: BABYLON.Color4;
121
- background: BABYLON.Layer;
120
+ _color: any;
121
+ background: any;
122
122
  reflexEnabled: boolean;
123
123
  reflexIntensity: number;
124
124
  constructor(_app: App);
125
125
  set fogDistance(_value: number);
126
- set color(_value: BABYLON.Color4);
126
+ set color(_value: any);
127
127
  reflex(_url: string, _intensity: number): void;
128
128
  setBackground(_url: string): void;
129
129
  setReflexEnabled(_reflexEnabled: boolean): void;
@@ -138,150 +138,150 @@ export class Environment {
138
138
  hideFps(): void;
139
139
  showDebug(): void;
140
140
  setLightIntensity(_intensity?: number): void;
141
- }
141
+ }
142
142
 
143
- export class DefaultEvent implements IEvent {
143
+ export class DefaultEvent implements IEvent {
144
144
  app: App;
145
145
  runRender(): void;
146
- onPointer(_pointerInfo: BABYLON.PointerInfo): void;
147
- onKeyboard(_kbInfo: BABYLON.KeyboardInfo): void;
148
- }
146
+ onPointer(_pointerInfo: any): void;
147
+ onKeyboard(_kbInfo: any): void;
148
+ }
149
149
 
150
- export class FPSCameraEvent implements IEvent {
150
+ export class FPSCameraEvent implements IEvent {
151
151
  app: App;
152
152
  isFPS: boolean;
153
153
  angle: number;
154
- direction: BABYLON.Vector3;
154
+ direction: any;
155
155
  isMoveLeft: boolean;
156
156
  isMoveRight: boolean;
157
157
  isMoveDown: boolean;
158
158
  isMoveUp: boolean;
159
159
  runRender(): void;
160
- onPointer(_pointerInfo: BABYLON.PointerInfo): void;
161
- onKeyboard(_e: BABYLON.KeyboardInfo): void;
162
- }
160
+ onPointer(_pointerInfo: any): void;
161
+ onKeyboard(_e: any): void;
162
+ }
163
163
 
164
- export interface IEvent {
164
+ export interface IEvent {
165
165
  runRender(): void;
166
- onPointer(e: BABYLON.PointerInfo): void;
167
- onKeyboard(e: BABYLON.KeyboardInfo): void;
168
- }
166
+ onPointer(e: any): void;
167
+ onKeyboard(e: any): void;
168
+ }
169
169
 
170
- export enum EventType {
170
+ export enum EventType {
171
171
  leftClick = "leftClick",
172
172
  rightClick = "rightClick",
173
173
  doubleClick = "doubleClick",
174
174
  eover = "eover",
175
175
  longPress = "longPress",
176
176
  out = "out"
177
- }
177
+ }
178
178
 
179
- export class HeatMap implements BaseNode {
179
+ export class HeatMap implements BaseNode {
180
180
  id: string;
181
181
  anchor: IObject;
182
- mesh: BABYLON.Mesh;
182
+ mesh: any;
183
183
  displayValue: boolean;
184
- texts: Array<BABYLON.GUI.TextBlock>;
184
+ texts: Array<any>;
185
185
  constructor(_anchor: string);
186
186
  isEnabled(_bool: boolean): void;
187
187
  set displayValues(_value: boolean);
188
188
  dispose(): void;
189
- }
189
+ }
190
190
 
191
- export class Icon implements BaseNode {
191
+ export class Icon implements BaseNode {
192
192
  id: string;
193
- scene: BABYLON.Scene;
194
- pint: BABYLON.Mesh;
195
- rect: BABYLON.GUI.Rectangle;
193
+ scene: any;
194
+ pint: any;
195
+ rect: any;
196
196
  onPointerClick: Function;
197
197
  size: {
198
- width: number;
199
- height: number;
198
+ width: number;
199
+ height: number;
200
200
  };
201
201
  height: number;
202
- container: BABYLON.GUI.AdvancedDynamicTexture;
203
- constructor(_id: string, _scene: BABYLON.Scene);
202
+ container: any;
203
+ constructor(_id: string, _scene: any);
204
204
  set background(_url: string);
205
205
  addEventListener(_action: Function): void;
206
206
  setTexts(_textArr: [{
207
- text: string;
208
- fontSize: string;
209
- color: string;
210
- top: number;
211
- left: number;
207
+ text: string;
208
+ fontSize: string;
209
+ color: string;
210
+ top: number;
211
+ left: number;
212
212
  }]): void;
213
213
  line(_line: {
214
- width: number;
215
- color: string;
214
+ width: number;
215
+ color: string;
216
216
  }): void;
217
217
  dispose(): void;
218
218
  isEnabled(_isEnabled: boolean): void;
219
- }
219
+ }
220
220
 
221
- export class IconFromMesh implements BaseNode {
221
+ export class IconFromMesh implements BaseNode {
222
222
  id: string;
223
- scene: BABYLON.Scene;
224
- instance: BABYLON.Mesh;
223
+ scene: any;
224
+ instance: any;
225
225
  url: string;
226
226
  scaling: number;
227
- constructor(_id: string, _anchor: BABYLON.Vector3, _url: string, _scaling: number, _height: number, _scene: BABYLON.Scene);
227
+ constructor(_id: string, _anchor: any, _url: string, _scaling: number, _height: number, _scene: any);
228
228
  setBackground(): void;
229
229
  addEventListener(_action: Function): void;
230
230
  setColor(_color: string): void;
231
231
  setContents(_textArr: [{
232
- text: string;
233
- fontSize: string;
234
- top: number;
235
- left: number;
236
- color?: string;
232
+ text: string;
233
+ fontSize: string;
234
+ top: number;
235
+ left: number;
236
+ color?: string;
237
237
  }]): void;
238
238
  dispose(): void;
239
239
  isEnabled(_bool: boolean): void;
240
- }
240
+ }
241
241
 
242
- export class UI {
242
+ export class UI {
243
243
  static createIconFromMesh(_id: string, _anchor: IObject, _url: string, _scaling: number, _height: number): void;
244
244
  static createIcon(_id: string, _anchor: IObject, _size: {
245
- width: number;
246
- height: number;
245
+ width: number;
246
+ height: number;
247
247
  }, _height: number): void;
248
- }
248
+ }
249
249
 
250
- export class HubService {
250
+ export class HubService {
251
251
  static connection: any;
252
252
  static listener(_Url: string): Promise<void>;
253
253
  static start(): Promise<void>;
254
- }
254
+ }
255
255
 
256
- export class Directional extends LightObject {
257
- direction: BABYLON.Vector3;
258
- position: BABYLON.Vector3;
259
- light: BABYLON.DirectionalLight;
256
+ export class Directional extends LightObject {
257
+ direction: any;
258
+ position: any;
259
+ light: any;
260
260
  load(): void;
261
- }
261
+ }
262
262
 
263
- export class Hemispheric extends LightObject {
264
- direction: BABYLON.Vector3;
265
- light: BABYLON.HemisphericLight;
263
+ export class Hemispheric extends LightObject {
264
+ direction: any;
265
+ light: any;
266
266
  load(): void;
267
- }
267
+ }
268
268
 
269
- export interface ILightObject {
269
+ export interface ILightObject {
270
270
  id: string;
271
271
  sceneId: string;
272
272
  name: string;
273
- light: BABYLON.Light;
273
+ light: any;
274
274
  color: string;
275
275
  lightType: string;
276
276
  intensity: number;
277
277
  load: Function;
278
- }
278
+ }
279
279
 
280
- export class LightObject implements ILightObject {
280
+ export class LightObject implements ILightObject {
281
281
  id: string;
282
282
  sceneId: string;
283
283
  name: string;
284
- light: BABYLON.Light;
284
+ light: any;
285
285
  color: string;
286
286
  objectType: string;
287
287
  lightType: string;
@@ -289,36 +289,59 @@ export class LightObject implements ILightObject {
289
289
  app: App;
290
290
  constructor(_app: App);
291
291
  load(): void;
292
- }
292
+ }
293
293
 
294
- export enum LightType {
294
+ export enum LightType {
295
295
  Point = "Point",
296
296
  Spot = "Spot",
297
297
  Directional = "Directional",
298
298
  Hemispheric = "Hemispheric"
299
- }
299
+ }
300
300
 
301
- export class Point extends LightObject {
302
- position: BABYLON.Vector3;
303
- light: BABYLON.PointLight;
301
+ export class Point extends LightObject {
302
+ position: any;
303
+ light: any;
304
304
  range: number;
305
305
  load(): void;
306
- }
306
+ }
307
307
 
308
- export class Spot extends LightObject {
309
- direction: BABYLON.Vector3;
310
- position: BABYLON.Vector3;
308
+ export class Spot extends LightObject {
309
+ direction: any;
310
+ position: any;
311
311
  angle: number;
312
312
  exponent: number;
313
313
  range: number;
314
- light: BABYLON.SpotLight;
314
+ light: any;
315
315
  load(): void;
316
- }
317
-
318
- export class CabinetObject extends DefaultObject {
319
- }
320
-
321
- export class ConduitObject extends DefaultObject {
316
+ }
317
+
318
+ export class BabylonLayer {
319
+ readonly id: string;
320
+ readonly type: "custom";
321
+ readonly renderingMode: "3d";
322
+ drones: {
323
+ x: number;
324
+ y: number;
325
+ z: number;
326
+ };
327
+ initialCoordinates: [];
328
+ recalculateProjectionMatrix(_coordinates: []): void;
329
+ onAdd: (_map: any, _gl: WebGLRenderingContext) => void;
330
+ render: (_gl: WebGLRenderingContext, _matrix: number[]) => void;
331
+ }
332
+
333
+ export class Earth {
334
+ initialCoordinates: [];
335
+ map: any;
336
+ load(_action: Function): void;
337
+ laodScene(_url: string, _initialCoordinates: []): void;
338
+ flyTo(_center?: [], _zoom?: number, _bearing?: number, _pitch?: number, _duration?: number): void;
339
+ }
340
+
341
+ export class CabinetObject extends DefaultObject {
342
+ }
343
+
344
+ export class ConduitObject extends DefaultObject {
322
345
  alpha: number;
323
346
  color: string;
324
347
  bind(_m: any): void;
@@ -328,23 +351,23 @@ export class ConduitObject extends DefaultObject {
328
351
  setFlash(_level?: number): void;
329
352
  setOpaque(): void;
330
353
  setTransparent(_alpha?: number): void;
331
- }
354
+ }
332
355
 
333
- export class CornerObject extends DefaultObject {
356
+ export class CornerObject extends DefaultObject {
334
357
  height: number;
335
358
  bind(_m: any): void;
336
- }
359
+ }
337
360
 
338
- export class DefaultObject implements IObject {
361
+ export class DefaultObject implements IObject {
339
362
  app: App;
340
363
  id: string;
341
364
  name: string;
342
365
  parentId: string;
343
366
  modelId: string;
344
- instance: BABYLON.Mesh | BABYLON.InstancedMesh;
367
+ instance: any | any;
345
368
  objectType: string;
346
- action: BABYLON.ActionManager;
347
- executes: Dictionary<BABYLON.ExecuteCodeAction>;
369
+ action: any;
370
+ executes: Dictionary<any>;
348
371
  clickEvents: Dictionary<Function>;
349
372
  touchtime: number;
350
373
  effectType: EffectType;
@@ -368,31 +391,31 @@ export class DefaultObject implements IObject {
368
391
  setTransparent(_alpha?: number): void;
369
392
  play(): void;
370
393
  stop(): void;
371
- }
394
+ }
372
395
 
373
- export class DoorObject extends DefaultObject {
396
+ export class DoorObject extends DefaultObject {
374
397
  height: number;
375
398
  bind(_m: any): void;
376
- }
399
+ }
377
400
 
378
- export class FloorObject extends DefaultObject {
401
+ export class FloorObject extends DefaultObject {
379
402
  height: number;
380
403
  bind(_m: any): void;
381
- }
404
+ }
382
405
 
383
- export interface IBase {
406
+ export interface IBase {
384
407
  app: App;
385
408
  id: string;
386
409
  name: string;
387
410
  parentId: string;
388
411
  objectType: string;
389
- }
412
+ }
390
413
 
391
- export interface IObject extends IBase {
414
+ export interface IObject extends IBase {
392
415
  customNumber: string;
393
416
  customType: string;
394
417
  modelId: string;
395
- instance: BABYLON.Mesh | BABYLON.InstancedMesh;
418
+ instance: any | any;
396
419
  Sight: Sight;
397
420
  effectType: EffectType;
398
421
  bind(_m?: any): any;
@@ -407,16 +430,16 @@ export interface IObject extends IBase {
407
430
  play(isloop: boolean): any;
408
431
  stop(): any;
409
432
  computeView(): any;
410
- }
433
+ }
411
434
 
412
- export class LeakWaterObject extends DefaultObject {
435
+ export class LeakWaterObject extends DefaultObject {
413
436
  bind(_l: any): void;
414
437
  computeView(): void;
415
438
  addEventListener(_type: string, _callback: Function): void;
416
439
  removeEventListener(_type: string): void;
417
- }
440
+ }
418
441
 
419
- export enum ObjectType {
442
+ export enum ObjectType {
420
443
  Region = "Region",
421
444
  Cabinet = "Cabinet",
422
445
  Corner = "Corner",
@@ -429,9 +452,9 @@ export enum ObjectType {
429
452
  Wall = "Wall",
430
453
  Window = "Window",
431
454
  Conduit = "Conduit"
432
- }
455
+ }
433
456
 
434
- export class Project {
457
+ export class Project {
435
458
  app: App;
436
459
  id: string;
437
460
  root: IObject;
@@ -450,9 +473,9 @@ export class Project {
450
473
  findObjectByCustomNumber(): void;
451
474
  findObjectsByCustomType(): void;
452
475
  switchLevel(_id?: string, _isFocus?: boolean, _includeSub?: boolean): void;
453
- }
476
+ }
454
477
 
455
- export class RegionObject extends DefaultObject {
478
+ export class RegionObject extends DefaultObject {
456
479
  index: number;
457
480
  height: number;
458
481
  constructor(app: App, _storey: any);
@@ -463,41 +486,41 @@ export class RegionObject extends DefaultObject {
463
486
  setEnabled(_value: boolean): void;
464
487
  getBounding(): void;
465
488
  dispose(): void;
466
- }
489
+ }
467
490
 
468
- export class UI3DTextObject extends DefaultObject {
491
+ export class UI3DTextObject extends DefaultObject {
469
492
  bind(_u: any): void;
470
- }
493
+ }
471
494
 
472
- export class VirtualBoxObject extends DefaultObject {
495
+ export class VirtualBoxObject extends DefaultObject {
473
496
  bind(_m: any): Promise<void>;
474
- }
497
+ }
475
498
 
476
- export class WallObject extends DefaultObject {
477
- nativeMaterial: BABYLON.StandardMaterial;
499
+ export class WallObject extends DefaultObject {
500
+ nativeMaterial: any;
478
501
  baseModel: any;
479
502
  height: number;
480
503
  bind(_w: any): void;
481
- }
504
+ }
482
505
 
483
- export class WindowObject extends DefaultObject {
506
+ export class WindowObject extends DefaultObject {
484
507
  height: number;
485
508
  bind(_m: any): void;
486
- }
509
+ }
487
510
 
488
- export class ArrayEx<T> extends Array<T> {
511
+ export class ArrayEx<T> extends Array<T> {
489
512
  remove(_val: any): void;
490
- }
513
+ }
491
514
 
492
- export interface BaseNode {
515
+ export interface BaseNode {
493
516
  id: string;
494
517
  dispose(): any;
495
518
  isEnabled(bool: boolean): any;
496
- }
519
+ }
497
520
 
498
- export class CameraController {
521
+ export class CameraController {
499
522
  app: App;
500
- camera: BABYLON.ArcRotateCamera;
523
+ camera: any;
501
524
  frustrum: number;
502
525
  isOverLook: boolean;
503
526
  constructor(_app: App);
@@ -510,11 +533,11 @@ export class CameraController {
510
533
  _wheel(_p: any): void;
511
534
  switchArcRotateCamera(): void;
512
535
  switchFPSCamera(): void;
513
- }
536
+ }
514
537
 
515
- export class Dictionary<T> {
538
+ export class Dictionary<T> {
516
539
  map: {
517
- [key: string]: T;
540
+ [key: string]: T;
518
541
  };
519
542
  constructor();
520
543
  add(_key: string, _value: T): void;
@@ -524,36 +547,36 @@ export class Dictionary<T> {
524
547
  showAll(): void;
525
548
  count(): void;
526
549
  clear(): void;
527
- }
550
+ }
528
551
 
529
- export class GUID {
552
+ export class GUID {
530
553
  static getGUID(_length: number): void;
531
- }
554
+ }
532
555
 
533
- export class Resources {
556
+ export class Resources {
534
557
  app: App;
535
- walls: Dictionary<BABYLON.AbstractMesh>;
536
- resources: Dictionary<BABYLON.AssetContainer>;
537
- ndoeMats: Dictionary<BABYLON.NodeMaterial>;
538
- transparentBox: BABYLON.Mesh;
539
- BOX: BABYLON.Mesh;
540
- FogTex: BABYLON.Texture;
558
+ walls: Dictionary<any>;
559
+ resources: Dictionary<any>;
560
+ ndoeMats: Dictionary<any>;
561
+ transparentBox: any;
562
+ BOX: any;
563
+ FogTex: any;
541
564
  constructor(_app: App);
542
565
  loadModelMesh(_baseModel: any): Promise<void>;
543
566
  loadModelMeshAsync(_baseModel: any, _callback: Function): void;
544
- Materials: Dictionary<BABYLON.StandardMaterial>;
545
- Textures: Dictionary<BABYLON.Texture>;
546
- GetMaterial(_textureData: any, _scene: BABYLON.Scene): void;
547
- GetTexture(_textureData: any, _scene: BABYLON.Scene): void;
548
- MergeMaterials: Dictionary<BABYLON.CustomMaterial>;
549
- GetMergeMaterial(_textureData: any, _scene: BABYLON.Scene): void;
567
+ Materials: Dictionary<any>;
568
+ Textures: Dictionary<any>;
569
+ GetMaterial(_textureData: any, _scene: any): void;
570
+ GetTexture(_textureData: any, _scene: any): void;
571
+ MergeMaterials: Dictionary<any>;
572
+ GetMergeMaterial(_textureData: any, _scene: any): void;
550
573
  delete(_isAll?: boolean): void;
551
574
  GetWalls(_url: string, _projectId: string): Promise<void>;
552
- }
575
+ }
553
576
 
554
- export class Sight {
577
+ export class Sight {
555
578
  alpha: number;
556
- focus: BABYLON.Vector3;
579
+ focus: any;
557
580
  radius: number;
558
581
  beta: number;
559
582
  minimumLimit: number;
@@ -564,28 +587,28 @@ export class Sight {
564
587
  toString(): void;
565
588
  setLimit(_miniLimit: number, _maxiLimit: number): void;
566
589
  setBeta(_minBeta: number, _maxBeta: number): void;
567
- }
590
+ }
568
591
 
569
- export class Tools {
570
- static vector3ToJson(_old: BABYLON.Vector3): any;
571
- static vector3ARRToJson(_olds: BABYLON.Vector3[]): void;
592
+ export class Tools {
593
+ static vector3ToJson(_old: any): any;
594
+ static vector3ARRToJson(_olds: any[]): void;
572
595
  static ToVector3(_old: any): void;
573
596
  static ToARRVector3(_olds: any[]): void;
574
- static computeBounds(_mscene: BABYLON.Mesh): void;
575
- static computeBoundsToARR(_meshs: Array<BABYLON.Mesh>): void;
576
- static Expand(_polygon: Array<BABYLON.Vector3>, _expand: number): void;
597
+ static computeBounds(_mscene: any): void;
598
+ static computeBoundsToARR(_meshs: Array<any>): void;
599
+ static Expand(_polygon: Array<any>, _expand: number): void;
577
600
  static norm(_x: number, _y: number): void;
578
- static MergeMeshes(_meshes: Array<BABYLON.Mesh>, _app: App): void;
601
+ static MergeMeshes(_meshes: Array<any>, _app: App): void;
579
602
  static DeconsTructMesh(_mesh: any, _height: any, _app: App): void;
580
- static getVisualAngle(_bound: BABYLON.BoundingInfo, _app: App): void;
581
- static pathTransformation(_oldPath: Array<BABYLON.Vector3>, _radius: number): void;
582
- static createTube(_id: string, _paths: Array<BABYLON.Vector3>, _radius: number, _app: App): void;
583
- static getAngleFromVector2(_startV: BABYLON.Vector2, _coreV: BABYLON.Vector2, _endV: BABYLON.Vector2): void;
584
- static getAngleFromVector3(_startV: BABYLON.Vector3, _coreV: BABYLON.Vector3, _endV: BABYLON.Vector3): void;
603
+ static getVisualAngle(_bound: any, _app: App): void;
604
+ static pathTransformation(_oldPath: Array<any>, _radius: number): void;
605
+ static createTube(_id: string, _paths: Array<any>, _radius: number, _app: App): void;
606
+ static getAngleFromVector2(_startV: any, _coreV: any, _endV: any): void;
607
+ static getAngleFromVector3(_startV: any, _coreV: any, _endV: any): void;
585
608
  static RandomNumBoth(_Min: any, _Max: any): void;
586
- }
609
+ }
587
610
 
588
- export class ToolTips {
611
+ export class ToolTips {
589
612
  app: App;
590
613
  url: string;
591
614
  ele: HTMLDivElement;
@@ -594,10 +617,9 @@ export class ToolTips {
594
617
  isOK: boolean;
595
618
  _text: string;
596
619
  constructor(_parent: HTMLElement, _app: App);
597
- update(_e: BABYLON.PointerInfo): void;
620
+ update(_e: any): void;
598
621
  close(): void;
599
622
  setBackground(_url: string): void;
600
623
  dispose(): void;
601
- }
602
-
624
+ }
603
625
  }