mx3d 0.0.48 → 0.0.51
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/README.md +1 -1
- package/index.d.ts +200 -161
- package/mx3d.js +1 -1
- package/mx3d.min.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
@author gzmaijing
|
|
3
3
|
@email mj@gzmaijing.com
|
|
4
4
|
*/
|
|
5
|
-
declare module MX3D
|
|
6
|
-
|
|
5
|
+
declare module MX3D{
|
|
6
|
+
export class App {
|
|
7
7
|
canvas: HTMLCanvasElement;
|
|
8
8
|
engine: BABYLON.Engine;
|
|
9
9
|
scene: BABYLON.Scene;
|
|
10
|
-
|
|
10
|
+
CameraController: CameraController;
|
|
11
11
|
HighlightLayer: BABYLON.HighlightLayer;
|
|
12
12
|
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
13
13
|
fps: HTMLDivElement;
|
|
@@ -16,19 +16,19 @@ 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 Capacity {
|
|
32
32
|
anchor: IObject;
|
|
33
33
|
mesh: BABYLON.Mesh;
|
|
34
34
|
ratio: number;
|
|
@@ -36,25 +36,25 @@ declare module MX3D {
|
|
|
36
36
|
textMesh: BABYLON.Mesh;
|
|
37
37
|
constructor(_object: IObject, _RATIO: number);
|
|
38
38
|
dispose(): void;
|
|
39
|
-
|
|
39
|
+
}
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
export class CapacityBuilder {
|
|
42
42
|
static createCapacity(_obj: IObject, _RATIO: number, _text: string, _fontSize?: string): void;
|
|
43
43
|
static createTextMesh(_obj: IObject, _text: string, _RATIO: number, _fontSize?: string, _color?: string): void;
|
|
44
|
-
|
|
44
|
+
}
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
export class EffectMgr {
|
|
47
47
|
static colors: {};
|
|
48
48
|
static init(): void;
|
|
49
|
-
|
|
49
|
+
}
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
export enum EffectType {
|
|
52
52
|
Opaque = 0,
|
|
53
53
|
Flash = 1,
|
|
54
54
|
Transparent = 2
|
|
55
|
-
|
|
55
|
+
}
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
export class Environment {
|
|
58
58
|
app: App;
|
|
59
59
|
lights: any;
|
|
60
60
|
_color: BABYLON.Color4;
|
|
@@ -78,18 +78,45 @@ declare module MX3D {
|
|
|
78
78
|
hideFps(): void;
|
|
79
79
|
showDebug(): void;
|
|
80
80
|
setLightIntensity(_intensity?: number): void;
|
|
81
|
-
|
|
81
|
+
}
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
export class DefaultEvent implements IEvent {
|
|
84
|
+
app: App;
|
|
85
|
+
runRender(): void;
|
|
86
|
+
onPointer(_pointerInfo: BABYLON.PointerInfo): void;
|
|
87
|
+
onKeyboard(_kbInfo: BABYLON.KeyboardInfo): void;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export class FPSCameraEvent implements IEvent {
|
|
91
|
+
app: App;
|
|
92
|
+
isFPS: boolean;
|
|
93
|
+
angle: number;
|
|
94
|
+
direction: BABYLON.Vector3;
|
|
95
|
+
isMoveLeft: boolean;
|
|
96
|
+
isMoveRight: boolean;
|
|
97
|
+
isMoveDown: boolean;
|
|
98
|
+
isMoveUp: boolean;
|
|
99
|
+
runRender(): void;
|
|
100
|
+
onPointer(_pointerInfo: BABYLON.PointerInfo): void;
|
|
101
|
+
onKeyboard(_e: BABYLON.KeyboardInfo): void;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface IEvent {
|
|
105
|
+
runRender(): void;
|
|
106
|
+
onPointer(e: BABYLON.PointerInfo): void;
|
|
107
|
+
onKeyboard(e: BABYLON.KeyboardInfo): void;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export enum EventType {
|
|
84
111
|
leftClick = "leftClick",
|
|
85
112
|
rightClick = "rightClick",
|
|
86
113
|
doubleClick = "doubleClick",
|
|
87
114
|
eover = "eover",
|
|
88
115
|
longPress = "longPress",
|
|
89
116
|
out = "out"
|
|
90
|
-
|
|
117
|
+
}
|
|
91
118
|
|
|
92
|
-
|
|
119
|
+
export class HeatMap implements BaseNode {
|
|
93
120
|
id: string;
|
|
94
121
|
anchor: IObject;
|
|
95
122
|
mesh: BABYLON.Mesh;
|
|
@@ -99,92 +126,93 @@ declare module MX3D {
|
|
|
99
126
|
isEnabled(_bool: boolean): void;
|
|
100
127
|
set displayValues(_value: boolean);
|
|
101
128
|
dispose(): void;
|
|
102
|
-
|
|
129
|
+
}
|
|
103
130
|
|
|
104
|
-
|
|
131
|
+
export class HeatMapBuilder {
|
|
105
132
|
static createMatrixCloud(_data: {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
+
};
|
|
126
153
|
}): void;
|
|
127
154
|
static createPunctateCloud(_data: {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
+
};
|
|
139
166
|
}): void;
|
|
140
167
|
createColumnCloud(_data: {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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
|
+
};
|
|
155
182
|
}): void;
|
|
156
|
-
|
|
183
|
+
}
|
|
157
184
|
|
|
158
|
-
|
|
185
|
+
export class Icon implements BaseNode {
|
|
159
186
|
id: string;
|
|
160
187
|
scene: BABYLON.Scene;
|
|
161
188
|
pint: BABYLON.Mesh;
|
|
162
189
|
rect: BABYLON.GUI.Rectangle;
|
|
163
190
|
onPointerClick: Function;
|
|
164
191
|
size: {
|
|
165
|
-
|
|
166
|
-
|
|
192
|
+
width: number;
|
|
193
|
+
height: number;
|
|
167
194
|
};
|
|
168
195
|
height: number;
|
|
169
196
|
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
170
197
|
constructor(_id: string, _scene: BABYLON.Scene);
|
|
171
198
|
set background(_url: string);
|
|
199
|
+
addEventListener(_action: Function): void;
|
|
172
200
|
setTexts(_textArr: [{
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
201
|
+
text: string;
|
|
202
|
+
fontSize: string;
|
|
203
|
+
color: string;
|
|
204
|
+
top: number;
|
|
205
|
+
left: number;
|
|
178
206
|
}]): void;
|
|
179
207
|
line(_line: {
|
|
180
|
-
|
|
181
|
-
|
|
208
|
+
width: number;
|
|
209
|
+
color: string;
|
|
182
210
|
}): void;
|
|
183
211
|
dispose(): void;
|
|
184
212
|
isEnabled(_isEnabled: boolean): void;
|
|
185
|
-
|
|
213
|
+
}
|
|
186
214
|
|
|
187
|
-
|
|
215
|
+
export class IconFromMesh implements BaseNode {
|
|
188
216
|
id: string;
|
|
189
217
|
scene: BABYLON.Scene;
|
|
190
218
|
instance: BABYLON.Mesh;
|
|
@@ -195,44 +223,53 @@ declare module MX3D {
|
|
|
195
223
|
addEventListener(_action: Function): void;
|
|
196
224
|
setColor(_color: string): void;
|
|
197
225
|
setContents(_textArr: [{
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
226
|
+
text: string;
|
|
227
|
+
fontSize: string;
|
|
228
|
+
top: number;
|
|
229
|
+
left: number;
|
|
230
|
+
color?: string;
|
|
203
231
|
}]): void;
|
|
204
232
|
dispose(): void;
|
|
205
233
|
isEnabled(_bool: boolean): void;
|
|
206
|
-
|
|
234
|
+
}
|
|
207
235
|
|
|
208
|
-
|
|
236
|
+
export class UI {
|
|
209
237
|
static createIconFromMesh(_id: string, _anchor: IObject, _url: string, _scaling: number, _height: number): void;
|
|
210
238
|
static createIcon(_id: string, _anchor: IObject, _size: {
|
|
211
|
-
|
|
212
|
-
|
|
239
|
+
width: number;
|
|
240
|
+
height: number;
|
|
213
241
|
}, _height: number): void;
|
|
214
|
-
|
|
242
|
+
static create2DLine(_id: string, _objs: Array<IObject>, _options?: {
|
|
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
|
+
}
|
|
215
252
|
|
|
216
|
-
|
|
253
|
+
export class HubService {
|
|
217
254
|
static connection: any;
|
|
218
255
|
static listener(_Url: string): Promise<void>;
|
|
219
256
|
static start(): Promise<void>;
|
|
220
|
-
|
|
257
|
+
}
|
|
221
258
|
|
|
222
|
-
|
|
259
|
+
export class Directional extends LightObject {
|
|
223
260
|
direction: BABYLON.Vector3;
|
|
224
261
|
position: BABYLON.Vector3;
|
|
225
262
|
light: BABYLON.DirectionalLight;
|
|
226
263
|
load(): void;
|
|
227
|
-
|
|
264
|
+
}
|
|
228
265
|
|
|
229
|
-
|
|
266
|
+
export class Hemispheric extends LightObject {
|
|
230
267
|
direction: BABYLON.Vector3;
|
|
231
268
|
light: BABYLON.HemisphericLight;
|
|
232
269
|
load(): void;
|
|
233
|
-
|
|
270
|
+
}
|
|
234
271
|
|
|
235
|
-
|
|
272
|
+
export interface ILightObject {
|
|
236
273
|
id: string;
|
|
237
274
|
sceneId: string;
|
|
238
275
|
name: string;
|
|
@@ -241,9 +278,9 @@ declare module MX3D {
|
|
|
241
278
|
lightType: string;
|
|
242
279
|
intensity: number;
|
|
243
280
|
load: Function;
|
|
244
|
-
|
|
281
|
+
}
|
|
245
282
|
|
|
246
|
-
|
|
283
|
+
export class LightObject implements ILightObject {
|
|
247
284
|
id: string;
|
|
248
285
|
sceneId: string;
|
|
249
286
|
name: string;
|
|
@@ -255,23 +292,23 @@ declare module MX3D {
|
|
|
255
292
|
app: App;
|
|
256
293
|
constructor(_app: App);
|
|
257
294
|
load(): void;
|
|
258
|
-
|
|
295
|
+
}
|
|
259
296
|
|
|
260
|
-
|
|
297
|
+
export enum LightType {
|
|
261
298
|
Point = "Point",
|
|
262
299
|
Spot = "Spot",
|
|
263
300
|
Directional = "Directional",
|
|
264
301
|
Hemispheric = "Hemispheric"
|
|
265
|
-
|
|
302
|
+
}
|
|
266
303
|
|
|
267
|
-
|
|
304
|
+
export class Point extends LightObject {
|
|
268
305
|
position: BABYLON.Vector3;
|
|
269
306
|
light: BABYLON.PointLight;
|
|
270
307
|
range: number;
|
|
271
308
|
load(): void;
|
|
272
|
-
|
|
309
|
+
}
|
|
273
310
|
|
|
274
|
-
|
|
311
|
+
export class Spot extends LightObject {
|
|
275
312
|
direction: BABYLON.Vector3;
|
|
276
313
|
position: BABYLON.Vector3;
|
|
277
314
|
angle: number;
|
|
@@ -279,12 +316,12 @@ declare module MX3D {
|
|
|
279
316
|
range: number;
|
|
280
317
|
light: BABYLON.SpotLight;
|
|
281
318
|
load(): void;
|
|
282
|
-
|
|
319
|
+
}
|
|
283
320
|
|
|
284
|
-
|
|
285
|
-
|
|
321
|
+
export class CabinetObject extends DefaultObject {
|
|
322
|
+
}
|
|
286
323
|
|
|
287
|
-
|
|
324
|
+
export class ConduitObject extends DefaultObject {
|
|
288
325
|
alpha: number;
|
|
289
326
|
color: string;
|
|
290
327
|
bind(_m: any): void;
|
|
@@ -294,14 +331,14 @@ declare module MX3D {
|
|
|
294
331
|
setFlash(_level?: number): void;
|
|
295
332
|
setOpaque(): void;
|
|
296
333
|
setTransparent(_alpha?: number): void;
|
|
297
|
-
|
|
334
|
+
}
|
|
298
335
|
|
|
299
|
-
|
|
336
|
+
export class CornerObject extends DefaultObject {
|
|
300
337
|
height: number;
|
|
301
338
|
bind(_m: any): void;
|
|
302
|
-
|
|
339
|
+
}
|
|
303
340
|
|
|
304
|
-
|
|
341
|
+
export class DefaultObject implements IObject {
|
|
305
342
|
app: App;
|
|
306
343
|
id: string;
|
|
307
344
|
name: string;
|
|
@@ -334,27 +371,27 @@ declare module MX3D {
|
|
|
334
371
|
setTransparent(_alpha?: number): void;
|
|
335
372
|
play(): void;
|
|
336
373
|
stop(): void;
|
|
337
|
-
|
|
374
|
+
}
|
|
338
375
|
|
|
339
|
-
|
|
376
|
+
export class DoorObject extends DefaultObject {
|
|
340
377
|
height: number;
|
|
341
378
|
bind(_m: any): void;
|
|
342
|
-
|
|
379
|
+
}
|
|
343
380
|
|
|
344
|
-
|
|
381
|
+
export class FloorObject extends DefaultObject {
|
|
345
382
|
height: number;
|
|
346
383
|
bind(_m: any): void;
|
|
347
|
-
|
|
384
|
+
}
|
|
348
385
|
|
|
349
|
-
|
|
386
|
+
export interface IBase {
|
|
350
387
|
app: App;
|
|
351
388
|
id: string;
|
|
352
389
|
name: string;
|
|
353
390
|
parentId: string;
|
|
354
391
|
objectType: string;
|
|
355
|
-
|
|
392
|
+
}
|
|
356
393
|
|
|
357
|
-
|
|
394
|
+
export interface IObject extends IBase {
|
|
358
395
|
customNumber: string;
|
|
359
396
|
customType: string;
|
|
360
397
|
modelId: string;
|
|
@@ -373,16 +410,16 @@ declare module MX3D {
|
|
|
373
410
|
play(isloop: boolean): any;
|
|
374
411
|
stop(): any;
|
|
375
412
|
computeView(): any;
|
|
376
|
-
|
|
413
|
+
}
|
|
377
414
|
|
|
378
|
-
|
|
415
|
+
export class LeakWaterObject extends DefaultObject {
|
|
379
416
|
bind(_l: any): void;
|
|
380
417
|
computeView(): void;
|
|
381
418
|
addEventListener(_type: string, _callback: Function): void;
|
|
382
419
|
removeEventListener(_type: string): void;
|
|
383
|
-
|
|
420
|
+
}
|
|
384
421
|
|
|
385
|
-
|
|
422
|
+
export enum ObjectType {
|
|
386
423
|
Region = "Region",
|
|
387
424
|
Cabinet = "Cabinet",
|
|
388
425
|
Corner = "Corner",
|
|
@@ -395,13 +432,13 @@ declare module MX3D {
|
|
|
395
432
|
Wall = "Wall",
|
|
396
433
|
Window = "Window",
|
|
397
434
|
Conduit = "Conduit"
|
|
398
|
-
|
|
435
|
+
}
|
|
399
436
|
|
|
400
|
-
|
|
437
|
+
export class Project {
|
|
401
438
|
app: App;
|
|
402
439
|
id: string;
|
|
403
440
|
root: IObject;
|
|
404
|
-
current:
|
|
441
|
+
current: RegionObject;
|
|
405
442
|
Sight: Sight;
|
|
406
443
|
objectDatas: Dictionary<IObject>;
|
|
407
444
|
constructor(_app: App);
|
|
@@ -416,9 +453,9 @@ declare module MX3D {
|
|
|
416
453
|
findObjectByCustomNumber(): void;
|
|
417
454
|
findObjectsByCustomType(): void;
|
|
418
455
|
switchLevel(_id?: string, _isFocus?: boolean, _includeSub?: boolean): void;
|
|
419
|
-
|
|
456
|
+
}
|
|
420
457
|
|
|
421
|
-
|
|
458
|
+
export class RegionObject extends DefaultObject {
|
|
422
459
|
index: number;
|
|
423
460
|
height: number;
|
|
424
461
|
constructor(app: App, _storey: any);
|
|
@@ -429,39 +466,39 @@ declare module MX3D {
|
|
|
429
466
|
setEnabled(_value: boolean): void;
|
|
430
467
|
getBounding(): void;
|
|
431
468
|
dispose(): void;
|
|
432
|
-
|
|
469
|
+
}
|
|
433
470
|
|
|
434
|
-
|
|
471
|
+
export class UI3DTextObject extends DefaultObject {
|
|
435
472
|
bind(_u: any): void;
|
|
436
|
-
|
|
473
|
+
}
|
|
437
474
|
|
|
438
|
-
|
|
475
|
+
export class VirtualBoxObject extends DefaultObject {
|
|
439
476
|
bind(_m: any): Promise<void>;
|
|
440
|
-
|
|
477
|
+
}
|
|
441
478
|
|
|
442
|
-
|
|
479
|
+
export class WallObject extends DefaultObject {
|
|
443
480
|
nativeMaterial: BABYLON.StandardMaterial;
|
|
444
481
|
baseModel: any;
|
|
445
482
|
height: number;
|
|
446
483
|
bind(_w: any): void;
|
|
447
|
-
|
|
484
|
+
}
|
|
448
485
|
|
|
449
|
-
|
|
486
|
+
export class WindowObject extends DefaultObject {
|
|
450
487
|
height: number;
|
|
451
488
|
bind(_m: any): void;
|
|
452
|
-
|
|
489
|
+
}
|
|
453
490
|
|
|
454
|
-
|
|
491
|
+
export class ArrayEx<T> extends Array<T> {
|
|
455
492
|
remove(_val: any): void;
|
|
456
|
-
|
|
493
|
+
}
|
|
457
494
|
|
|
458
|
-
|
|
495
|
+
export interface BaseNode {
|
|
459
496
|
id: string;
|
|
460
497
|
dispose(): any;
|
|
461
498
|
isEnabled(bool: boolean): any;
|
|
462
|
-
|
|
499
|
+
}
|
|
463
500
|
|
|
464
|
-
|
|
501
|
+
export class CameraController {
|
|
465
502
|
app: App;
|
|
466
503
|
camera: BABYLON.ArcRotateCamera;
|
|
467
504
|
frustrum: number;
|
|
@@ -474,11 +511,13 @@ declare module MX3D {
|
|
|
474
511
|
lookToTheFront(_object: IObject, _sheep?: number): void;
|
|
475
512
|
computeCameraView(): void;
|
|
476
513
|
_wheel(_p: any): void;
|
|
477
|
-
|
|
514
|
+
switchArcRotateCamera(): void;
|
|
515
|
+
switchFPSCamera(): void;
|
|
516
|
+
}
|
|
478
517
|
|
|
479
|
-
|
|
518
|
+
export class Dictionary<T> {
|
|
480
519
|
map: {
|
|
481
|
-
|
|
520
|
+
[key: string]: T;
|
|
482
521
|
};
|
|
483
522
|
constructor();
|
|
484
523
|
add(_key: string, _value: T): void;
|
|
@@ -488,13 +527,13 @@ declare module MX3D {
|
|
|
488
527
|
showAll(): void;
|
|
489
528
|
count(): void;
|
|
490
529
|
clear(): void;
|
|
491
|
-
|
|
530
|
+
}
|
|
492
531
|
|
|
493
|
-
|
|
532
|
+
export class GUID {
|
|
494
533
|
static getGUID(_length: number): void;
|
|
495
|
-
|
|
534
|
+
}
|
|
496
535
|
|
|
497
|
-
|
|
536
|
+
export class Resources {
|
|
498
537
|
app: App;
|
|
499
538
|
walls: Dictionary<BABYLON.AbstractMesh>;
|
|
500
539
|
resources: Dictionary<BABYLON.AssetContainer>;
|
|
@@ -513,9 +552,9 @@ declare module MX3D {
|
|
|
513
552
|
GetMergeMaterial(_textureData: any, _scene: BABYLON.Scene): void;
|
|
514
553
|
delete(_isAll?: boolean): void;
|
|
515
554
|
GetWalls(_url: string, _projectId: string): Promise<void>;
|
|
516
|
-
|
|
555
|
+
}
|
|
517
556
|
|
|
518
|
-
|
|
557
|
+
export class Sight {
|
|
519
558
|
alpha: number;
|
|
520
559
|
focus: BABYLON.Vector3;
|
|
521
560
|
radius: number;
|
|
@@ -528,9 +567,9 @@ declare module MX3D {
|
|
|
528
567
|
toString(): void;
|
|
529
568
|
setLimit(_miniLimit: number, _maxiLimit: number): void;
|
|
530
569
|
setBeta(_minBeta: number, _maxBeta: number): void;
|
|
531
|
-
|
|
570
|
+
}
|
|
532
571
|
|
|
533
|
-
|
|
572
|
+
export class Tools {
|
|
534
573
|
static vector3ToJson(_old: BABYLON.Vector3): any;
|
|
535
574
|
static vector3ARRToJson(_olds: BABYLON.Vector3[]): void;
|
|
536
575
|
static ToVector3(_old: any): void;
|
|
@@ -547,9 +586,9 @@ declare module MX3D {
|
|
|
547
586
|
static getAngleFromVector2(_startV: BABYLON.Vector2, _coreV: BABYLON.Vector2, _endV: BABYLON.Vector2): void;
|
|
548
587
|
static getAngleFromVector3(_startV: BABYLON.Vector3, _coreV: BABYLON.Vector3, _endV: BABYLON.Vector3): void;
|
|
549
588
|
static RandomNumBoth(_Min: any, _Max: any): void;
|
|
550
|
-
|
|
589
|
+
}
|
|
551
590
|
|
|
552
|
-
|
|
591
|
+
export class ToolTips {
|
|
553
592
|
app: App;
|
|
554
593
|
url: string;
|
|
555
594
|
ele: HTMLDivElement;
|
|
@@ -562,6 +601,6 @@ declare module MX3D {
|
|
|
562
601
|
close(): void;
|
|
563
602
|
setBackground(_url: string): void;
|
|
564
603
|
dispose(): void;
|
|
565
|
-
|
|
604
|
+
}
|
|
566
605
|
|
|
567
606
|
}
|
package/mx3d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("BABYLON"),require("babylonjs-materials"),require("BABYLON.GUI"),require("BABYLON.SceneLoader"),require("babylonjs-serializers")):"function"==typeof define&&define.amd?define(["BABYLON","babylonjs-materials","BABYLON.GUI","BABYLON.SceneLoader","babylonjs-serializers"],t):"object"==typeof exports?exports.MX3D=t(require("BABYLON"),require("babylonjs-materials"),require("BABYLON.GUI"),require("BABYLON.SceneLoader"),require("babylonjs-serializers")):e.MX3D=t(e.BABYLON,e["babylonjs-materials"],e["BABYLON.GUI"],e["BABYLON.SceneLoader"],e["babylonjs-serializers"])}(window,(function(e,t,r,o,n){return function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t){e.exports=n},function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return a}));var o,n;r(0),r(1),r(2),r(3),r(4);class s{static init(){}}s.colors={};!function(e){e[e.Opaque=0]="Opaque",e[e.Flash=1]="Flash",e[e.Transparent=2]="Transparent"}(o||(o={})),function(e){e.leftClick="leftClick",e.rightClick="rightClick",e.doubleClick="doubleClick",e.eover="eover",e.longPress="longPress",e.out="out"}(n||(n={}));class a{}a.sl="https://www.wodashijie.com/",a.rl="https://models.wodashijie.com/",a.App=class{constructor(e){}async load(e){}dispose(){}},a.Tools=class{static vector3ToJson(e){}static vector3ARRToJson(e){}static ToVector3(e){}static ToARRVector3(e){}static computeBounds(e){}static computeBoundsToARR(e){}static Expand(e,t){}static norm(e,t){}static MergeMeshes(e,t){}static DeconsTructMesh(e,t,r){}static getVisualAngle(e,t){}static pathTransformation(e,t){}static createTube(e,t,r=.05,o){}static getAngleFromVector2(e,t,r){}static getAngleFromVector3(e,t,r){}static RandomNumBoth(e,t){}},a.EffectMgr=s,a.HubService=class{static async listener(e){}static async start(){}},a.UI=class{static createIconFromMesh(e,t,r,o,n){}static createIcon(e,t,r,o){}},a.HeatMapBuilder=class{static createMatrixCloud(e){}static createPunctateCloud(e){}createColumnCloud(e){}},a.EffectType=o,a.EventType=n}]).default}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("BABYLON"),require("babylonjs-materials"),require("BABYLON.GUI"),require("BABYLON.SceneLoader"),require("babylonjs-serializers")):"function"==typeof define&&define.amd?define(["BABYLON","babylonjs-materials","BABYLON.GUI","BABYLON.SceneLoader","babylonjs-serializers"],t):"object"==typeof exports?exports.MX3D=t(require("BABYLON"),require("babylonjs-materials"),require("BABYLON.GUI"),require("BABYLON.SceneLoader"),require("babylonjs-serializers")):e.MX3D=t(e.BABYLON,e["babylonjs-materials"],e["BABYLON.GUI"],e["BABYLON.SceneLoader"],e["babylonjs-serializers"])}(window,(function(e,t,r,o,n){return function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t){e.exports=n},function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return a}));var o,n;r(0),r(1),r(2),r(3),r(4);class s{static init(){}}s.colors={};!function(e){e[e.Opaque=0]="Opaque",e[e.Flash=1]="Flash",e[e.Transparent=2]="Transparent"}(o||(o={})),function(e){e.leftClick="leftClick",e.rightClick="rightClick",e.doubleClick="doubleClick",e.eover="eover",e.longPress="longPress",e.out="out"}(n||(n={}));class a{}a.sl="https://www.wodashijie.com/",a.rl="https://models.wodashijie.com/",a.App=class{constructor(e){}async load(e){}dispose(){}},a.Tools=class{static vector3ToJson(e){}static vector3ARRToJson(e){}static ToVector3(e){}static ToARRVector3(e){}static computeBounds(e){}static computeBoundsToARR(e){}static Expand(e,t){}static norm(e,t){}static MergeMeshes(e,t){}static DeconsTructMesh(e,t,r){}static getVisualAngle(e,t){}static pathTransformation(e,t){}static createTube(e,t,r=.05,o){}static getAngleFromVector2(e,t,r){}static getAngleFromVector3(e,t,r){}static RandomNumBoth(e,t){}},a.EffectMgr=s,a.HubService=class{static async listener(e){}static async start(){}},a.UI=class{static createIconFromMesh(e,t,r,o,n){}static createIcon(e,t,r,o){}static create2DLine(e,t,r){}static create3DLine(e,t,r){}},a.HeatMapBuilder=class{static createMatrixCloud(e){}static createPunctateCloud(e){}createColumnCloud(e){}},a.EffectType=o,a.EventType=n}]).default}));
|