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