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 +262 -240
- package/mx3d.js +1 -1
- package/mx3d.min.js +7 -7
- package/package.json +1 -1
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
|
|
5
|
+
declare module MX3D {
|
|
6
|
+
export class App {
|
|
7
7
|
canvas: HTMLCanvasElement;
|
|
8
|
-
engine:
|
|
9
|
-
scene:
|
|
8
|
+
engine: any;
|
|
9
|
+
scene: any;
|
|
10
10
|
CameraController: CameraController;
|
|
11
|
-
HighlightLayer:
|
|
12
|
-
container:
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
container: HTMLElement;
|
|
20
|
+
sl?: string;
|
|
21
|
+
rl?: string;
|
|
22
22
|
});
|
|
23
23
|
load(_config: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
pk: string;
|
|
25
|
+
progress?: Function;
|
|
26
|
+
complete?: Function;
|
|
27
27
|
}): Promise<void>;
|
|
28
28
|
dispose(): void;
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
30
|
|
|
31
|
-
export
|
|
31
|
+
export class 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
|
-
export
|
|
96
|
+
export class Capacity {
|
|
97
97
|
anchor: IObject;
|
|
98
|
-
mesh:
|
|
98
|
+
mesh: any;
|
|
99
99
|
ratio: number;
|
|
100
100
|
color: string;
|
|
101
|
-
textMesh:
|
|
101
|
+
textMesh: any;
|
|
102
102
|
constructor(_object: IObject, _RATIO: number);
|
|
103
103
|
dispose(): void;
|
|
104
|
-
}
|
|
104
|
+
}
|
|
105
105
|
|
|
106
|
-
export
|
|
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
|
|
117
|
+
export class Environment {
|
|
118
118
|
app: App;
|
|
119
119
|
lights: any;
|
|
120
|
-
_color:
|
|
121
|
-
background:
|
|
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:
|
|
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
|
|
143
|
+
export class DefaultEvent implements IEvent {
|
|
144
144
|
app: App;
|
|
145
145
|
runRender(): void;
|
|
146
|
-
onPointer(_pointerInfo:
|
|
147
|
-
onKeyboard(_kbInfo:
|
|
148
|
-
}
|
|
146
|
+
onPointer(_pointerInfo: any): void;
|
|
147
|
+
onKeyboard(_kbInfo: any): void;
|
|
148
|
+
}
|
|
149
149
|
|
|
150
|
-
export
|
|
150
|
+
export class FPSCameraEvent implements IEvent {
|
|
151
151
|
app: App;
|
|
152
152
|
isFPS: boolean;
|
|
153
153
|
angle: number;
|
|
154
|
-
direction:
|
|
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:
|
|
161
|
-
onKeyboard(_e:
|
|
162
|
-
}
|
|
160
|
+
onPointer(_pointerInfo: any): void;
|
|
161
|
+
onKeyboard(_e: any): void;
|
|
162
|
+
}
|
|
163
163
|
|
|
164
|
-
export
|
|
164
|
+
export interface IEvent {
|
|
165
165
|
runRender(): void;
|
|
166
|
-
onPointer(e:
|
|
167
|
-
onKeyboard(e:
|
|
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
|
|
179
|
+
export class HeatMap implements BaseNode {
|
|
180
180
|
id: string;
|
|
181
181
|
anchor: IObject;
|
|
182
|
-
mesh:
|
|
182
|
+
mesh: any;
|
|
183
183
|
displayValue: boolean;
|
|
184
|
-
texts: Array<
|
|
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
|
|
191
|
+
export class Icon implements BaseNode {
|
|
192
192
|
id: string;
|
|
193
|
-
scene:
|
|
194
|
-
pint:
|
|
195
|
-
rect:
|
|
193
|
+
scene: any;
|
|
194
|
+
pint: any;
|
|
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
|
-
container:
|
|
203
|
-
constructor(_id: string, _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
|
-
|
|
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
|
-
export
|
|
221
|
+
export class IconFromMesh implements BaseNode {
|
|
222
222
|
id: string;
|
|
223
|
-
scene:
|
|
224
|
-
instance:
|
|
223
|
+
scene: any;
|
|
224
|
+
instance: any;
|
|
225
225
|
url: string;
|
|
226
226
|
scaling: number;
|
|
227
|
-
constructor(_id: string, _anchor:
|
|
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
|
-
|
|
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
|
-
export
|
|
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
|
-
export
|
|
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
|
|
257
|
-
direction:
|
|
258
|
-
position:
|
|
259
|
-
light:
|
|
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
|
|
264
|
-
direction:
|
|
265
|
-
light:
|
|
263
|
+
export class Hemispheric extends LightObject {
|
|
264
|
+
direction: any;
|
|
265
|
+
light: any;
|
|
266
266
|
load(): void;
|
|
267
|
-
}
|
|
267
|
+
}
|
|
268
268
|
|
|
269
|
-
export
|
|
269
|
+
export interface ILightObject {
|
|
270
270
|
id: string;
|
|
271
271
|
sceneId: string;
|
|
272
272
|
name: string;
|
|
273
|
-
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
|
|
280
|
+
export class LightObject implements ILightObject {
|
|
281
281
|
id: string;
|
|
282
282
|
sceneId: string;
|
|
283
283
|
name: string;
|
|
284
|
-
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
|
|
302
|
-
position:
|
|
303
|
-
light:
|
|
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
|
|
309
|
-
direction:
|
|
310
|
-
position:
|
|
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:
|
|
314
|
+
light: any;
|
|
315
315
|
load(): void;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
export
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
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
|
|
356
|
+
export class CornerObject extends DefaultObject {
|
|
334
357
|
height: number;
|
|
335
358
|
bind(_m: any): void;
|
|
336
|
-
}
|
|
359
|
+
}
|
|
337
360
|
|
|
338
|
-
export
|
|
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:
|
|
367
|
+
instance: any | any;
|
|
345
368
|
objectType: string;
|
|
346
|
-
action:
|
|
347
|
-
executes: Dictionary<
|
|
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
|
|
396
|
+
export class DoorObject extends DefaultObject {
|
|
374
397
|
height: number;
|
|
375
398
|
bind(_m: any): void;
|
|
376
|
-
}
|
|
399
|
+
}
|
|
377
400
|
|
|
378
|
-
export
|
|
401
|
+
export class FloorObject extends DefaultObject {
|
|
379
402
|
height: number;
|
|
380
403
|
bind(_m: any): void;
|
|
381
|
-
}
|
|
404
|
+
}
|
|
382
405
|
|
|
383
|
-
export
|
|
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
|
|
414
|
+
export interface IObject extends IBase {
|
|
392
415
|
customNumber: string;
|
|
393
416
|
customType: string;
|
|
394
417
|
modelId: string;
|
|
395
|
-
instance:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
491
|
+
export class UI3DTextObject extends DefaultObject {
|
|
469
492
|
bind(_u: any): void;
|
|
470
|
-
}
|
|
493
|
+
}
|
|
471
494
|
|
|
472
|
-
export
|
|
495
|
+
export class VirtualBoxObject extends DefaultObject {
|
|
473
496
|
bind(_m: any): Promise<void>;
|
|
474
|
-
}
|
|
497
|
+
}
|
|
475
498
|
|
|
476
|
-
export
|
|
477
|
-
nativeMaterial:
|
|
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
|
|
506
|
+
export class WindowObject extends DefaultObject {
|
|
484
507
|
height: number;
|
|
485
508
|
bind(_m: any): void;
|
|
486
|
-
}
|
|
509
|
+
}
|
|
487
510
|
|
|
488
|
-
export
|
|
511
|
+
export class ArrayEx<T> extends Array<T> {
|
|
489
512
|
remove(_val: any): void;
|
|
490
|
-
}
|
|
513
|
+
}
|
|
491
514
|
|
|
492
|
-
export
|
|
515
|
+
export interface BaseNode {
|
|
493
516
|
id: string;
|
|
494
517
|
dispose(): any;
|
|
495
518
|
isEnabled(bool: boolean): any;
|
|
496
|
-
}
|
|
519
|
+
}
|
|
497
520
|
|
|
498
|
-
export
|
|
521
|
+
export class CameraController {
|
|
499
522
|
app: App;
|
|
500
|
-
camera:
|
|
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
|
|
538
|
+
export class Dictionary<T> {
|
|
516
539
|
map: {
|
|
517
|
-
|
|
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
|
|
552
|
+
export class GUID {
|
|
530
553
|
static getGUID(_length: number): void;
|
|
531
|
-
}
|
|
554
|
+
}
|
|
532
555
|
|
|
533
|
-
export
|
|
556
|
+
export class Resources {
|
|
534
557
|
app: App;
|
|
535
|
-
walls: Dictionary<
|
|
536
|
-
resources: Dictionary<
|
|
537
|
-
ndoeMats: Dictionary<
|
|
538
|
-
transparentBox:
|
|
539
|
-
BOX:
|
|
540
|
-
FogTex:
|
|
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<
|
|
545
|
-
Textures: Dictionary<
|
|
546
|
-
GetMaterial(_textureData: any, _scene:
|
|
547
|
-
GetTexture(_textureData: any, _scene:
|
|
548
|
-
MergeMaterials: Dictionary<
|
|
549
|
-
GetMergeMaterial(_textureData: any, _scene:
|
|
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
|
|
577
|
+
export class Sight {
|
|
555
578
|
alpha: number;
|
|
556
|
-
focus:
|
|
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
|
|
570
|
-
static vector3ToJson(_old:
|
|
571
|
-
static vector3ARRToJson(_olds:
|
|
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:
|
|
575
|
-
static computeBoundsToARR(_meshs: Array<
|
|
576
|
-
static Expand(_polygon: Array<
|
|
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<
|
|
601
|
+
static MergeMeshes(_meshes: Array<any>, _app: App): void;
|
|
579
602
|
static DeconsTructMesh(_mesh: any, _height: any, _app: App): void;
|
|
580
|
-
static getVisualAngle(_bound:
|
|
581
|
-
static pathTransformation(_oldPath: Array<
|
|
582
|
-
static createTube(_id: string, _paths: Array<
|
|
583
|
-
static getAngleFromVector2(_startV:
|
|
584
|
-
static getAngleFromVector3(_startV:
|
|
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
|
|
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:
|
|
620
|
+
update(_e: any): void;
|
|
598
621
|
close(): void;
|
|
599
622
|
setBackground(_url: string): void;
|
|
600
623
|
dispose(): void;
|
|
601
|
-
}
|
|
602
|
-
|
|
624
|
+
}
|
|
603
625
|
}
|