mx3d 0.1.4 → 0.1.5
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 +193 -177
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
@author gzmaijing
|
|
3
3
|
@email mj@gzmaijing.com
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
|
|
6
|
+
export class App {
|
|
7
7
|
canvas: HTMLCanvasElement;
|
|
8
8
|
engine: any;
|
|
9
9
|
scene: any;
|
|
@@ -16,84 +16,84 @@ declare module MX3D {
|
|
|
16
16
|
Project: Project;
|
|
17
17
|
ToolTips: ToolTips;
|
|
18
18
|
constructor(_config: {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
container: HTMLElement;
|
|
20
|
+
sl?: string;
|
|
21
|
+
rl?: string;
|
|
22
22
|
});
|
|
23
23
|
load(_config: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
pk: string;
|
|
25
|
+
progress?: Function;
|
|
26
|
+
complete?: Function;
|
|
27
27
|
}): Promise<void>;
|
|
28
28
|
dispose(): void;
|
|
29
|
-
|
|
29
|
+
}
|
|
30
30
|
|
|
31
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
_width: number;
|
|
87
|
+
_color: string;
|
|
88
|
+
isDotted: boolean;
|
|
89
89
|
}): void;
|
|
90
90
|
static create3DLine(_id: string, _objs: Array<IObject>, _options?: {
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
_width: number;
|
|
92
|
+
_color: string;
|
|
93
93
|
}): void;
|
|
94
|
-
|
|
94
|
+
}
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
export class Capacity {
|
|
97
97
|
anchor: IObject;
|
|
98
98
|
mesh: any;
|
|
99
99
|
ratio: number;
|
|
@@ -101,20 +101,20 @@ declare module MX3D {
|
|
|
101
101
|
textMesh: any;
|
|
102
102
|
constructor(_object: IObject, _RATIO: number);
|
|
103
103
|
dispose(): void;
|
|
104
|
-
|
|
104
|
+
}
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
export class EffectMgr {
|
|
107
107
|
static colors: {};
|
|
108
108
|
static init(): void;
|
|
109
|
-
|
|
109
|
+
}
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
export enum EffectType {
|
|
112
112
|
Opaque = 0,
|
|
113
113
|
Flash = 1,
|
|
114
114
|
Transparent = 2
|
|
115
|
-
|
|
115
|
+
}
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
export class Environment {
|
|
118
118
|
app: App;
|
|
119
119
|
lights: any;
|
|
120
120
|
_color: any;
|
|
@@ -138,16 +138,16 @@ declare module MX3D {
|
|
|
138
138
|
hideFps(): void;
|
|
139
139
|
showDebug(): void;
|
|
140
140
|
setLightIntensity(_intensity?: number): void;
|
|
141
|
-
|
|
141
|
+
}
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
export class DefaultEvent implements IEvent {
|
|
144
144
|
app: App;
|
|
145
145
|
runRender(): void;
|
|
146
146
|
onPointer(_pointerInfo: any): void;
|
|
147
147
|
onKeyboard(_kbInfo: any): void;
|
|
148
|
-
|
|
148
|
+
}
|
|
149
149
|
|
|
150
|
-
|
|
150
|
+
export class FPSCameraEvent implements IEvent {
|
|
151
151
|
app: App;
|
|
152
152
|
isFPS: boolean;
|
|
153
153
|
angle: number;
|
|
@@ -159,24 +159,24 @@ declare module MX3D {
|
|
|
159
159
|
runRender(): void;
|
|
160
160
|
onPointer(_pointerInfo: any): void;
|
|
161
161
|
onKeyboard(_e: any): void;
|
|
162
|
-
|
|
162
|
+
}
|
|
163
163
|
|
|
164
|
-
|
|
164
|
+
export interface IEvent {
|
|
165
165
|
runRender(): void;
|
|
166
166
|
onPointer(e: any): void;
|
|
167
167
|
onKeyboard(e: any): void;
|
|
168
|
-
|
|
168
|
+
}
|
|
169
169
|
|
|
170
|
-
|
|
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
|
-
|
|
179
|
+
export class HeatMap implements BaseNode {
|
|
180
180
|
id: string;
|
|
181
181
|
anchor: IObject;
|
|
182
182
|
mesh: any;
|
|
@@ -186,17 +186,17 @@ declare module MX3D {
|
|
|
186
186
|
isEnabled(_bool: boolean): void;
|
|
187
187
|
set displayValues(_value: boolean);
|
|
188
188
|
dispose(): void;
|
|
189
|
-
|
|
189
|
+
}
|
|
190
190
|
|
|
191
|
-
|
|
191
|
+
export class Icon implements BaseNode {
|
|
192
192
|
id: string;
|
|
193
193
|
scene: any;
|
|
194
194
|
pint: any;
|
|
195
195
|
rect: any;
|
|
196
196
|
onPointerClick: Function;
|
|
197
197
|
size: {
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
width: number;
|
|
199
|
+
height: number;
|
|
200
200
|
};
|
|
201
201
|
height: number;
|
|
202
202
|
container: any;
|
|
@@ -204,21 +204,21 @@ declare module MX3D {
|
|
|
204
204
|
set background(_url: string);
|
|
205
205
|
addEventListener(_action: Function): void;
|
|
206
206
|
setTexts(_textArr: [{
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
207
|
+
text: string;
|
|
208
|
+
fontSize: string;
|
|
209
|
+
color: string;
|
|
210
|
+
top: number;
|
|
211
|
+
left: number;
|
|
212
212
|
}]): void;
|
|
213
213
|
line(_line: {
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
width: number;
|
|
215
|
+
color: string;
|
|
216
216
|
}): void;
|
|
217
217
|
dispose(): void;
|
|
218
218
|
isEnabled(_isEnabled: boolean): void;
|
|
219
|
-
|
|
219
|
+
}
|
|
220
220
|
|
|
221
|
-
|
|
221
|
+
export class IconFromMesh implements BaseNode {
|
|
222
222
|
id: string;
|
|
223
223
|
scene: any;
|
|
224
224
|
instance: any;
|
|
@@ -229,44 +229,60 @@ declare module MX3D {
|
|
|
229
229
|
addEventListener(_action: Function): void;
|
|
230
230
|
setColor(_color: string): void;
|
|
231
231
|
setContents(_textArr: [{
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
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
|
-
|
|
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
|
-
|
|
246
|
-
|
|
245
|
+
width: number;
|
|
246
|
+
height: number;
|
|
247
247
|
}, _height: number): void;
|
|
248
|
-
|
|
248
|
+
}
|
|
249
249
|
|
|
250
|
-
|
|
250
|
+
export class HubService {
|
|
251
251
|
static connection: any;
|
|
252
252
|
static listener(_Url: string): Promise<void>;
|
|
253
253
|
static start(): Promise<void>;
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export default class MX3D {
|
|
257
|
+
static accessToken: string;
|
|
258
|
+
static pk: string;
|
|
259
|
+
static sl: string;
|
|
260
|
+
static rl: string;
|
|
261
|
+
static App: typeof App;
|
|
262
|
+
static Tools: typeof Tools;
|
|
263
|
+
static Earth: typeof Earth;
|
|
264
|
+
static EffectMgr: typeof EffectMgr;
|
|
265
|
+
static HubService: typeof HubService;
|
|
266
|
+
static UI: typeof UI;
|
|
267
|
+
static Builder: typeof Builder;
|
|
268
|
+
static EffectType: typeof EffectType;
|
|
269
|
+
static EventType: typeof EventType;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export class Directional extends LightObject {
|
|
257
273
|
direction: any;
|
|
258
274
|
position: any;
|
|
259
275
|
light: any;
|
|
260
276
|
load(): void;
|
|
261
|
-
|
|
277
|
+
}
|
|
262
278
|
|
|
263
|
-
|
|
279
|
+
export class Hemispheric extends LightObject {
|
|
264
280
|
direction: any;
|
|
265
281
|
light: any;
|
|
266
282
|
load(): void;
|
|
267
|
-
|
|
283
|
+
}
|
|
268
284
|
|
|
269
|
-
|
|
285
|
+
export interface ILightObject {
|
|
270
286
|
id: string;
|
|
271
287
|
sceneId: string;
|
|
272
288
|
name: string;
|
|
@@ -275,9 +291,9 @@ declare module MX3D {
|
|
|
275
291
|
lightType: string;
|
|
276
292
|
intensity: number;
|
|
277
293
|
load: Function;
|
|
278
|
-
|
|
294
|
+
}
|
|
279
295
|
|
|
280
|
-
|
|
296
|
+
export class LightObject implements ILightObject {
|
|
281
297
|
id: string;
|
|
282
298
|
sceneId: string;
|
|
283
299
|
name: string;
|
|
@@ -289,23 +305,23 @@ declare module MX3D {
|
|
|
289
305
|
app: App;
|
|
290
306
|
constructor(_app: App);
|
|
291
307
|
load(): void;
|
|
292
|
-
|
|
308
|
+
}
|
|
293
309
|
|
|
294
|
-
|
|
310
|
+
export enum LightType {
|
|
295
311
|
Point = "Point",
|
|
296
312
|
Spot = "Spot",
|
|
297
313
|
Directional = "Directional",
|
|
298
314
|
Hemispheric = "Hemispheric"
|
|
299
|
-
|
|
315
|
+
}
|
|
300
316
|
|
|
301
|
-
|
|
317
|
+
export class Point extends LightObject {
|
|
302
318
|
position: any;
|
|
303
319
|
light: any;
|
|
304
320
|
range: number;
|
|
305
321
|
load(): void;
|
|
306
|
-
|
|
322
|
+
}
|
|
307
323
|
|
|
308
|
-
|
|
324
|
+
export class Spot extends LightObject {
|
|
309
325
|
direction: any;
|
|
310
326
|
position: any;
|
|
311
327
|
angle: number;
|
|
@@ -313,35 +329,35 @@ declare module MX3D {
|
|
|
313
329
|
range: number;
|
|
314
330
|
light: any;
|
|
315
331
|
load(): void;
|
|
316
|
-
|
|
332
|
+
}
|
|
317
333
|
|
|
318
|
-
|
|
334
|
+
export class BabylonLayer {
|
|
319
335
|
readonly id: string;
|
|
320
336
|
readonly type: "custom";
|
|
321
337
|
readonly renderingMode: "3d";
|
|
322
338
|
drones: {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
339
|
+
x: number;
|
|
340
|
+
y: number;
|
|
341
|
+
z: number;
|
|
326
342
|
};
|
|
327
343
|
initialCoordinates: [];
|
|
328
344
|
recalculateProjectionMatrix(_coordinates: []): void;
|
|
329
345
|
onAdd: (_map: any, _gl: WebGLRenderingContext) => void;
|
|
330
346
|
render: (_gl: WebGLRenderingContext, _matrix: number[]) => void;
|
|
331
|
-
|
|
347
|
+
}
|
|
332
348
|
|
|
333
|
-
|
|
349
|
+
export class Earth {
|
|
334
350
|
initialCoordinates: [];
|
|
335
351
|
map: any;
|
|
336
352
|
load(_action: Function): void;
|
|
337
353
|
laodScene(_url: string, _initialCoordinates: []): void;
|
|
338
354
|
flyTo(_center?: [], _zoom?: number, _bearing?: number, _pitch?: number, _duration?: number): void;
|
|
339
|
-
|
|
355
|
+
}
|
|
340
356
|
|
|
341
|
-
|
|
342
|
-
|
|
357
|
+
export class CabinetObject extends DefaultObject {
|
|
358
|
+
}
|
|
343
359
|
|
|
344
|
-
|
|
360
|
+
export class ConduitObject extends DefaultObject {
|
|
345
361
|
alpha: number;
|
|
346
362
|
color: string;
|
|
347
363
|
bind(_m: any): void;
|
|
@@ -351,14 +367,14 @@ declare module MX3D {
|
|
|
351
367
|
setFlash(_level?: number): void;
|
|
352
368
|
setOpaque(): void;
|
|
353
369
|
setTransparent(_alpha?: number): void;
|
|
354
|
-
|
|
370
|
+
}
|
|
355
371
|
|
|
356
|
-
|
|
372
|
+
export class CornerObject extends DefaultObject {
|
|
357
373
|
height: number;
|
|
358
374
|
bind(_m: any): void;
|
|
359
|
-
|
|
375
|
+
}
|
|
360
376
|
|
|
361
|
-
|
|
377
|
+
export class DefaultObject implements IObject {
|
|
362
378
|
app: App;
|
|
363
379
|
id: string;
|
|
364
380
|
name: string;
|
|
@@ -391,27 +407,27 @@ declare module MX3D {
|
|
|
391
407
|
setTransparent(_alpha?: number): void;
|
|
392
408
|
play(): void;
|
|
393
409
|
stop(): void;
|
|
394
|
-
|
|
410
|
+
}
|
|
395
411
|
|
|
396
|
-
|
|
412
|
+
export class DoorObject extends DefaultObject {
|
|
397
413
|
height: number;
|
|
398
414
|
bind(_m: any): void;
|
|
399
|
-
|
|
415
|
+
}
|
|
400
416
|
|
|
401
|
-
|
|
417
|
+
export class FloorObject extends DefaultObject {
|
|
402
418
|
height: number;
|
|
403
419
|
bind(_m: any): void;
|
|
404
|
-
|
|
420
|
+
}
|
|
405
421
|
|
|
406
|
-
|
|
422
|
+
export interface IBase {
|
|
407
423
|
app: App;
|
|
408
424
|
id: string;
|
|
409
425
|
name: string;
|
|
410
426
|
parentId: string;
|
|
411
427
|
objectType: string;
|
|
412
|
-
|
|
428
|
+
}
|
|
413
429
|
|
|
414
|
-
|
|
430
|
+
export interface IObject extends IBase {
|
|
415
431
|
customNumber: string;
|
|
416
432
|
customType: string;
|
|
417
433
|
modelId: string;
|
|
@@ -430,16 +446,16 @@ declare module MX3D {
|
|
|
430
446
|
play(isloop: boolean): any;
|
|
431
447
|
stop(): any;
|
|
432
448
|
computeView(): any;
|
|
433
|
-
|
|
449
|
+
}
|
|
434
450
|
|
|
435
|
-
|
|
451
|
+
export class LeakWaterObject extends DefaultObject {
|
|
436
452
|
bind(_l: any): void;
|
|
437
453
|
computeView(): void;
|
|
438
454
|
addEventListener(_type: string, _callback: Function): void;
|
|
439
455
|
removeEventListener(_type: string): void;
|
|
440
|
-
|
|
456
|
+
}
|
|
441
457
|
|
|
442
|
-
|
|
458
|
+
export enum ObjectType {
|
|
443
459
|
Region = "Region",
|
|
444
460
|
Cabinet = "Cabinet",
|
|
445
461
|
Corner = "Corner",
|
|
@@ -452,9 +468,9 @@ declare module MX3D {
|
|
|
452
468
|
Wall = "Wall",
|
|
453
469
|
Window = "Window",
|
|
454
470
|
Conduit = "Conduit"
|
|
455
|
-
|
|
471
|
+
}
|
|
456
472
|
|
|
457
|
-
|
|
473
|
+
export class Project {
|
|
458
474
|
app: App;
|
|
459
475
|
id: string;
|
|
460
476
|
root: IObject;
|
|
@@ -473,9 +489,9 @@ declare module MX3D {
|
|
|
473
489
|
findObjectByCustomNumber(): void;
|
|
474
490
|
findObjectsByCustomType(): void;
|
|
475
491
|
switchLevel(_id?: string, _isFocus?: boolean, _includeSub?: boolean): void;
|
|
476
|
-
|
|
492
|
+
}
|
|
477
493
|
|
|
478
|
-
|
|
494
|
+
export class RegionObject extends DefaultObject {
|
|
479
495
|
index: number;
|
|
480
496
|
height: number;
|
|
481
497
|
constructor(app: App, _storey: any);
|
|
@@ -486,39 +502,39 @@ declare module MX3D {
|
|
|
486
502
|
setEnabled(_value: boolean): void;
|
|
487
503
|
getBounding(): void;
|
|
488
504
|
dispose(): void;
|
|
489
|
-
|
|
505
|
+
}
|
|
490
506
|
|
|
491
|
-
|
|
507
|
+
export class UI3DTextObject extends DefaultObject {
|
|
492
508
|
bind(_u: any): void;
|
|
493
|
-
|
|
509
|
+
}
|
|
494
510
|
|
|
495
|
-
|
|
511
|
+
export class VirtualBoxObject extends DefaultObject {
|
|
496
512
|
bind(_m: any): Promise<void>;
|
|
497
|
-
|
|
513
|
+
}
|
|
498
514
|
|
|
499
|
-
|
|
515
|
+
export class WallObject extends DefaultObject {
|
|
500
516
|
nativeMaterial: any;
|
|
501
517
|
baseModel: any;
|
|
502
518
|
height: number;
|
|
503
519
|
bind(_w: any): void;
|
|
504
|
-
|
|
520
|
+
}
|
|
505
521
|
|
|
506
|
-
|
|
522
|
+
export class WindowObject extends DefaultObject {
|
|
507
523
|
height: number;
|
|
508
524
|
bind(_m: any): void;
|
|
509
|
-
|
|
525
|
+
}
|
|
510
526
|
|
|
511
|
-
|
|
527
|
+
export class ArrayEx<T> extends Array<T> {
|
|
512
528
|
remove(_val: any): void;
|
|
513
|
-
|
|
529
|
+
}
|
|
514
530
|
|
|
515
|
-
|
|
531
|
+
export interface BaseNode {
|
|
516
532
|
id: string;
|
|
517
533
|
dispose(): any;
|
|
518
534
|
isEnabled(bool: boolean): any;
|
|
519
|
-
|
|
535
|
+
}
|
|
520
536
|
|
|
521
|
-
|
|
537
|
+
export class CameraController {
|
|
522
538
|
app: App;
|
|
523
539
|
camera: any;
|
|
524
540
|
frustrum: number;
|
|
@@ -533,11 +549,11 @@ declare module MX3D {
|
|
|
533
549
|
_wheel(_p: any): void;
|
|
534
550
|
switchArcRotateCamera(): void;
|
|
535
551
|
switchFPSCamera(): void;
|
|
536
|
-
|
|
552
|
+
}
|
|
537
553
|
|
|
538
|
-
|
|
554
|
+
export class Dictionary<T> {
|
|
539
555
|
map: {
|
|
540
|
-
|
|
556
|
+
[key: string]: T;
|
|
541
557
|
};
|
|
542
558
|
constructor();
|
|
543
559
|
add(_key: string, _value: T): void;
|
|
@@ -547,13 +563,13 @@ declare module MX3D {
|
|
|
547
563
|
showAll(): void;
|
|
548
564
|
count(): void;
|
|
549
565
|
clear(): void;
|
|
550
|
-
|
|
566
|
+
}
|
|
551
567
|
|
|
552
|
-
|
|
568
|
+
export class GUID {
|
|
553
569
|
static getGUID(_length: number): void;
|
|
554
|
-
|
|
570
|
+
}
|
|
555
571
|
|
|
556
|
-
|
|
572
|
+
export class Resources {
|
|
557
573
|
app: App;
|
|
558
574
|
walls: Dictionary<any>;
|
|
559
575
|
resources: Dictionary<any>;
|
|
@@ -572,9 +588,9 @@ declare module MX3D {
|
|
|
572
588
|
GetMergeMaterial(_textureData: any, _scene: any): void;
|
|
573
589
|
delete(_isAll?: boolean): void;
|
|
574
590
|
GetWalls(_url: string, _projectId: string): Promise<void>;
|
|
575
|
-
|
|
591
|
+
}
|
|
576
592
|
|
|
577
|
-
|
|
593
|
+
export class Sight {
|
|
578
594
|
alpha: number;
|
|
579
595
|
focus: any;
|
|
580
596
|
radius: number;
|
|
@@ -587,9 +603,9 @@ declare module MX3D {
|
|
|
587
603
|
toString(): void;
|
|
588
604
|
setLimit(_miniLimit: number, _maxiLimit: number): void;
|
|
589
605
|
setBeta(_minBeta: number, _maxBeta: number): void;
|
|
590
|
-
|
|
606
|
+
}
|
|
591
607
|
|
|
592
|
-
|
|
608
|
+
export class Tools {
|
|
593
609
|
static vector3ToJson(_old: any): any;
|
|
594
610
|
static vector3ARRToJson(_olds: any[]): void;
|
|
595
611
|
static ToVector3(_old: any): void;
|
|
@@ -606,9 +622,9 @@ declare module MX3D {
|
|
|
606
622
|
static getAngleFromVector2(_startV: any, _coreV: any, _endV: any): void;
|
|
607
623
|
static getAngleFromVector3(_startV: any, _coreV: any, _endV: any): void;
|
|
608
624
|
static RandomNumBoth(_Min: any, _Max: any): void;
|
|
609
|
-
|
|
625
|
+
}
|
|
610
626
|
|
|
611
|
-
|
|
627
|
+
export class ToolTips {
|
|
612
628
|
app: App;
|
|
613
629
|
url: string;
|
|
614
630
|
ele: HTMLDivElement;
|
|
@@ -621,5 +637,5 @@ declare module MX3D {
|
|
|
621
637
|
close(): void;
|
|
622
638
|
setBackground(_url: string): void;
|
|
623
639
|
dispose(): void;
|
|
624
|
-
|
|
625
|
-
|
|
640
|
+
}
|
|
641
|
+
|