mx3d 2024.6.121 → 2024.6.122
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 +59 -59
- package/mx3d.min.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare module MX3D {
|
|
2
2
|
let accessToken: string;
|
|
3
3
|
let pk: string;
|
|
4
4
|
let sl: string;
|
|
5
5
|
let rl: string;
|
|
6
6
|
|
|
7
|
-
class AlarmFlashing {
|
|
7
|
+
export class AlarmFlashing {
|
|
8
8
|
static colors: {
|
|
9
9
|
1: Runtime.Color3;
|
|
10
10
|
2: Runtime.Color3;
|
|
@@ -16,7 +16,7 @@ declare namespace MX3D {
|
|
|
16
16
|
static init(): void;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
class App {
|
|
19
|
+
export class App {
|
|
20
20
|
canvas: HTMLCanvasElement;
|
|
21
21
|
engine: Runtime.Engine;
|
|
22
22
|
scene: Runtime.Scene;
|
|
@@ -38,7 +38,7 @@ declare namespace MX3D {
|
|
|
38
38
|
dispose(): void;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
class Builder {
|
|
41
|
+
export class Builder {
|
|
42
42
|
static createMatrixCloud(_data: {
|
|
43
43
|
anchor: IObject;
|
|
44
44
|
value: {
|
|
@@ -114,7 +114,7 @@ declare namespace MX3D {
|
|
|
114
114
|
): LineFromMesh;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
class Capacity {
|
|
117
|
+
export class Capacity {
|
|
118
118
|
anchor: IObject;
|
|
119
119
|
mesh: Runtime.Mesh;
|
|
120
120
|
ratio: number;
|
|
@@ -124,7 +124,7 @@ declare namespace MX3D {
|
|
|
124
124
|
dispose(): void;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
class Environment {
|
|
127
|
+
export class Environment {
|
|
128
128
|
app: App;
|
|
129
129
|
lights: Dictionary<LightObject>;
|
|
130
130
|
_color: Runtime.Color4;
|
|
@@ -152,7 +152,7 @@ declare namespace MX3D {
|
|
|
152
152
|
showDebug(): void;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
class HeatMap implements BaseNode {
|
|
155
|
+
export class HeatMap implements BaseNode {
|
|
156
156
|
id: string;
|
|
157
157
|
anchor: IObject;
|
|
158
158
|
mesh: Runtime.Mesh;
|
|
@@ -164,7 +164,7 @@ declare namespace MX3D {
|
|
|
164
164
|
dispose(): void;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
class Icon implements BaseNode {
|
|
167
|
+
export class Icon implements BaseNode {
|
|
168
168
|
id: string;
|
|
169
169
|
scene: Runtime.Scene;
|
|
170
170
|
pint: Runtime.Mesh;
|
|
@@ -197,7 +197,7 @@ declare namespace MX3D {
|
|
|
197
197
|
isEnabled(_isEnabled: boolean): void;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
class IconFromMesh implements BaseNode {
|
|
200
|
+
export class IconFromMesh implements BaseNode {
|
|
201
201
|
id: string;
|
|
202
202
|
scene: Runtime.Scene;
|
|
203
203
|
instance: Runtime.Mesh;
|
|
@@ -231,7 +231,7 @@ declare namespace MX3D {
|
|
|
231
231
|
isEnabled(_bool: boolean): void;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
class Line {
|
|
234
|
+
export class Line {
|
|
235
235
|
id: string;
|
|
236
236
|
objs: Array<IObject>;
|
|
237
237
|
instance: Runtime.MultiLine;
|
|
@@ -244,7 +244,7 @@ declare namespace MX3D {
|
|
|
244
244
|
dispose(): void;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
class LineFromMesh {
|
|
247
|
+
export class LineFromMesh {
|
|
248
248
|
id: string;
|
|
249
249
|
objs: Array<IObject>;
|
|
250
250
|
instance: Runtime.Mesh;
|
|
@@ -262,7 +262,7 @@ declare namespace MX3D {
|
|
|
262
262
|
Transparent = 2,
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
class UI {
|
|
265
|
+
export class UI {
|
|
266
266
|
static createIconFromMesh(_id: string, _anchor: IObject, _scaling: number, _height: number): IconFromMesh;
|
|
267
267
|
static createIcon(
|
|
268
268
|
_id: string,
|
|
@@ -275,13 +275,13 @@ declare namespace MX3D {
|
|
|
275
275
|
): Icon;
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
class TileLoader {
|
|
278
|
+
export class TileLoader {
|
|
279
279
|
app: App;
|
|
280
280
|
constructor(_app: App);
|
|
281
281
|
load(url: string): Promise<void>;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
class CloudEffect implements IEffect {
|
|
284
|
+
export class CloudEffect implements IEffect {
|
|
285
285
|
app: App;
|
|
286
286
|
cloudNum: number;
|
|
287
287
|
canvas: HTMLCanvasElement;
|
|
@@ -295,7 +295,7 @@ declare namespace MX3D {
|
|
|
295
295
|
render(): void;
|
|
296
296
|
clearCanvasCloud(): void;
|
|
297
297
|
}
|
|
298
|
-
class Cloud {
|
|
298
|
+
export class Cloud {
|
|
299
299
|
rainSpeed: number;
|
|
300
300
|
ctx: CanvasRenderingContext2D;
|
|
301
301
|
c: string;
|
|
@@ -327,7 +327,7 @@ declare namespace MX3D {
|
|
|
327
327
|
Rain = 'Rain',
|
|
328
328
|
Cloud = 'Cloud',
|
|
329
329
|
}
|
|
330
|
-
class Effect {
|
|
330
|
+
export class Effect {
|
|
331
331
|
static effects: Dictionary<IEffect>;
|
|
332
332
|
static add(_effectType: EffectType, _app: App): void;
|
|
333
333
|
static remove(_effectType: EffectType): void;
|
|
@@ -338,7 +338,7 @@ declare namespace MX3D {
|
|
|
338
338
|
close: Function;
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
-
class RainEffect implements IEffect {
|
|
341
|
+
export class RainEffect implements IEffect {
|
|
342
342
|
app: App;
|
|
343
343
|
rainNum: number;
|
|
344
344
|
canvas: HTMLCanvasElement;
|
|
@@ -352,7 +352,7 @@ declare namespace MX3D {
|
|
|
352
352
|
render(): void;
|
|
353
353
|
clearCanvasRain(): void;
|
|
354
354
|
}
|
|
355
|
-
class Rain {
|
|
355
|
+
export class Rain {
|
|
356
356
|
rainSpeed: number;
|
|
357
357
|
ctx: CanvasRenderingContext2D;
|
|
358
358
|
Y: number;
|
|
@@ -371,7 +371,7 @@ declare namespace MX3D {
|
|
|
371
371
|
render(): void;
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
class ThunderEffect implements IEffect {
|
|
374
|
+
export class ThunderEffect implements IEffect {
|
|
375
375
|
app: App;
|
|
376
376
|
thunderNum: number;
|
|
377
377
|
canvas: HTMLCanvasElement;
|
|
@@ -385,7 +385,7 @@ declare namespace MX3D {
|
|
|
385
385
|
render(): void;
|
|
386
386
|
clearCanvasThunder(): void;
|
|
387
387
|
}
|
|
388
|
-
class Thunder {
|
|
388
|
+
export class Thunder {
|
|
389
389
|
ctx: CanvasRenderingContext2D;
|
|
390
390
|
x: number;
|
|
391
391
|
y: number;
|
|
@@ -401,7 +401,7 @@ declare namespace MX3D {
|
|
|
401
401
|
render(): void;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
class DefaultEvent implements IEvent {
|
|
404
|
+
export class DefaultEvent implements IEvent {
|
|
405
405
|
app: App;
|
|
406
406
|
isMove: number;
|
|
407
407
|
waitingTime: number;
|
|
@@ -423,7 +423,7 @@ declare namespace MX3D {
|
|
|
423
423
|
click = 'click',
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
class FPSCameraEvent implements IEvent {
|
|
426
|
+
export class FPSCameraEvent implements IEvent {
|
|
427
427
|
app: App;
|
|
428
428
|
isFPS: boolean;
|
|
429
429
|
angle: number;
|
|
@@ -446,20 +446,20 @@ declare namespace MX3D {
|
|
|
446
446
|
registerAfterRender(): void;
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
-
class HubService {
|
|
449
|
+
export class HubService {
|
|
450
450
|
static connection: any;
|
|
451
451
|
static listener(_Url: string): Promise<void>;
|
|
452
452
|
static start(): Promise<void>;
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
-
class Directional extends LightObject {
|
|
455
|
+
export class Directional extends LightObject {
|
|
456
456
|
direction: Runtime.Vector3;
|
|
457
457
|
position: Runtime.Vector3;
|
|
458
458
|
light: Runtime.DirectionalLight;
|
|
459
459
|
load(): void;
|
|
460
460
|
}
|
|
461
461
|
|
|
462
|
-
class Hemispheric extends LightObject {
|
|
462
|
+
export class Hemispheric extends LightObject {
|
|
463
463
|
direction: Runtime.Vector3;
|
|
464
464
|
light: Runtime.HemisphericLight;
|
|
465
465
|
load(): void;
|
|
@@ -476,7 +476,7 @@ declare namespace MX3D {
|
|
|
476
476
|
load: Function;
|
|
477
477
|
}
|
|
478
478
|
|
|
479
|
-
class LightObject implements ILightObject {
|
|
479
|
+
export class LightObject implements ILightObject {
|
|
480
480
|
id: string;
|
|
481
481
|
sceneId: string;
|
|
482
482
|
name: string;
|
|
@@ -499,14 +499,14 @@ declare namespace MX3D {
|
|
|
499
499
|
declare let typeFromat: Function;
|
|
500
500
|
typeFromat;
|
|
501
501
|
|
|
502
|
-
class Point extends LightObject {
|
|
502
|
+
export class Point extends LightObject {
|
|
503
503
|
position: Runtime.Vector3;
|
|
504
504
|
light: Runtime.PointLight;
|
|
505
505
|
range: number;
|
|
506
506
|
load(): void;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
-
class Spot extends LightObject {
|
|
509
|
+
export class Spot extends LightObject {
|
|
510
510
|
direction: Runtime.Vector3;
|
|
511
511
|
position: Runtime.Vector3;
|
|
512
512
|
angle: number;
|
|
@@ -516,15 +516,15 @@ declare namespace MX3D {
|
|
|
516
516
|
load(): void;
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
class MJGLLoader {
|
|
519
|
+
export class MJGLLoader {
|
|
520
520
|
static load(app: App, _data: any, progress?: Function): Promise<void>;
|
|
521
521
|
}
|
|
522
522
|
|
|
523
|
-
class Mx3dLoader {
|
|
523
|
+
export class Mx3dLoader {
|
|
524
524
|
static load(app: App, _data: any, progress?: Function): Promise<void>;
|
|
525
525
|
}
|
|
526
526
|
|
|
527
|
-
class BaseModel {
|
|
527
|
+
export class BaseModel {
|
|
528
528
|
extension: string;
|
|
529
529
|
groupId: string;
|
|
530
530
|
heat: number;
|
|
@@ -539,14 +539,14 @@ declare namespace MX3D {
|
|
|
539
539
|
width: number;
|
|
540
540
|
}
|
|
541
541
|
|
|
542
|
-
class BuildingObject extends DefaultObject {
|
|
542
|
+
export class BuildingObject extends DefaultObject {
|
|
543
543
|
completed(): void;
|
|
544
544
|
computeView(): void;
|
|
545
545
|
getInto(): void;
|
|
546
546
|
goBack(): void;
|
|
547
547
|
}
|
|
548
548
|
|
|
549
|
-
class CabinetObject extends DefaultObject {
|
|
549
|
+
export class CabinetObject extends DefaultObject {
|
|
550
550
|
rack: Runtime.Mesh | Runtime.InstancedMesh;
|
|
551
551
|
computeView(): void;
|
|
552
552
|
setEnabled(_value: boolean): void;
|
|
@@ -557,7 +557,7 @@ declare namespace MX3D {
|
|
|
557
557
|
close(): void;
|
|
558
558
|
}
|
|
559
559
|
|
|
560
|
-
class CampusObject extends IRegion {
|
|
560
|
+
export class CampusObject extends IRegion {
|
|
561
561
|
addEventListener(_type: string, _callback: Function): void;
|
|
562
562
|
removeEventListener(_type: string): void;
|
|
563
563
|
setEnabled(_isEnabled: boolean): void;
|
|
@@ -565,7 +565,7 @@ declare namespace MX3D {
|
|
|
565
565
|
bind(): void;
|
|
566
566
|
}
|
|
567
567
|
|
|
568
|
-
class ConduitObject extends DefaultObject {
|
|
568
|
+
export class ConduitObject extends DefaultObject {
|
|
569
569
|
alpha: number;
|
|
570
570
|
color: string;
|
|
571
571
|
pints: Runtime.Vector3[];
|
|
@@ -581,7 +581,7 @@ declare namespace MX3D {
|
|
|
581
581
|
setTransparent(alpha?: number): void;
|
|
582
582
|
}
|
|
583
583
|
|
|
584
|
-
class CornerObject implements IObject {
|
|
584
|
+
export class CornerObject implements IObject {
|
|
585
585
|
app: App;
|
|
586
586
|
id: string;
|
|
587
587
|
name: string;
|
|
@@ -621,7 +621,7 @@ declare namespace MX3D {
|
|
|
621
621
|
setTransparent(): void;
|
|
622
622
|
}
|
|
623
623
|
|
|
624
|
-
class DefaultObject implements IObject {
|
|
624
|
+
export class DefaultObject implements IObject {
|
|
625
625
|
app: App;
|
|
626
626
|
id: string;
|
|
627
627
|
name: string;
|
|
@@ -675,14 +675,14 @@ declare namespace MX3D {
|
|
|
675
675
|
goBack(): void;
|
|
676
676
|
}
|
|
677
677
|
|
|
678
|
-
class DoorObject extends DefaultObject {
|
|
678
|
+
export class DoorObject extends DefaultObject {
|
|
679
679
|
height: number;
|
|
680
680
|
loadProperties(_m: any): void;
|
|
681
681
|
setEnabled(_value: boolean): void;
|
|
682
682
|
bind(): void;
|
|
683
683
|
}
|
|
684
684
|
|
|
685
|
-
class FloorObject extends DefaultObject {
|
|
685
|
+
export class FloorObject extends DefaultObject {
|
|
686
686
|
height: number;
|
|
687
687
|
vectors: Runtime.Vector3[];
|
|
688
688
|
buckles: Runtime.Vector3[][];
|
|
@@ -726,7 +726,7 @@ declare namespace MX3D {
|
|
|
726
726
|
alwaysActive(): any;
|
|
727
727
|
}
|
|
728
728
|
|
|
729
|
-
class IRegion implements IBase {
|
|
729
|
+
export class IRegion implements IBase {
|
|
730
730
|
app: App;
|
|
731
731
|
id: string;
|
|
732
732
|
name: string;
|
|
@@ -770,7 +770,7 @@ declare namespace MX3D {
|
|
|
770
770
|
goBack(): void;
|
|
771
771
|
}
|
|
772
772
|
|
|
773
|
-
class LeakWaterObject extends DefaultObject {
|
|
773
|
+
export class LeakWaterObject extends DefaultObject {
|
|
774
774
|
lines: Runtime.Vector3[];
|
|
775
775
|
loadProperties(_l: any): void;
|
|
776
776
|
setEnabled(_value: boolean): void;
|
|
@@ -799,13 +799,13 @@ declare namespace MX3D {
|
|
|
799
799
|
Campus = 'Campus',
|
|
800
800
|
}
|
|
801
801
|
|
|
802
|
-
class OptimizedWallObject extends DefaultObject {
|
|
802
|
+
export class OptimizedWallObject extends DefaultObject {
|
|
803
803
|
nativeMaterial: Runtime.StandardMaterial;
|
|
804
804
|
loadProperties(_w: any): void;
|
|
805
805
|
bind(): void;
|
|
806
806
|
}
|
|
807
807
|
|
|
808
|
-
class Project {
|
|
808
|
+
export class Project {
|
|
809
809
|
private app;
|
|
810
810
|
id: string;
|
|
811
811
|
current: IBase;
|
|
@@ -834,7 +834,7 @@ declare namespace MX3D {
|
|
|
834
834
|
getCustomTypes(_parentId?: string): any[];
|
|
835
835
|
}
|
|
836
836
|
|
|
837
|
-
class RackModel {
|
|
837
|
+
export class RackModel {
|
|
838
838
|
id: string;
|
|
839
839
|
name: string;
|
|
840
840
|
uHeight: number;
|
|
@@ -847,7 +847,7 @@ declare namespace MX3D {
|
|
|
847
847
|
depth: number;
|
|
848
848
|
}
|
|
849
849
|
|
|
850
|
-
class RackObject implements IObject {
|
|
850
|
+
export class RackObject implements IObject {
|
|
851
851
|
app: App;
|
|
852
852
|
id: string;
|
|
853
853
|
name: string;
|
|
@@ -898,7 +898,7 @@ declare namespace MX3D {
|
|
|
898
898
|
goBack(): void;
|
|
899
899
|
}
|
|
900
900
|
|
|
901
|
-
class StoreyObject extends IRegion {
|
|
901
|
+
export class StoreyObject extends IRegion {
|
|
902
902
|
scaling: Runtime.Vector3;
|
|
903
903
|
loadProperties(_m: any): void;
|
|
904
904
|
bind(): void;
|
|
@@ -908,7 +908,7 @@ declare namespace MX3D {
|
|
|
908
908
|
getInto(): void;
|
|
909
909
|
}
|
|
910
910
|
|
|
911
|
-
class UI3DTextObject extends DefaultObject {
|
|
911
|
+
export class UI3DTextObject extends DefaultObject {
|
|
912
912
|
tconfig: {
|
|
913
913
|
color: string;
|
|
914
914
|
position: any;
|
|
@@ -922,7 +922,7 @@ declare namespace MX3D {
|
|
|
922
922
|
bind(): void;
|
|
923
923
|
}
|
|
924
924
|
|
|
925
|
-
class VirtualBoxObject extends DefaultObject {
|
|
925
|
+
export class VirtualBoxObject extends DefaultObject {
|
|
926
926
|
virtualType: string;
|
|
927
927
|
color: Runtime.Color3;
|
|
928
928
|
alpha: number;
|
|
@@ -934,7 +934,7 @@ declare namespace MX3D {
|
|
|
934
934
|
bind(): void;
|
|
935
935
|
}
|
|
936
936
|
|
|
937
|
-
class WallObject extends DefaultObject {
|
|
937
|
+
export class WallObject extends DefaultObject {
|
|
938
938
|
nativeMaterial: Runtime.StandardMaterial;
|
|
939
939
|
height: number;
|
|
940
940
|
walls: Runtime.Mesh[];
|
|
@@ -945,14 +945,14 @@ declare namespace MX3D {
|
|
|
945
945
|
setOpaque(): void;
|
|
946
946
|
}
|
|
947
947
|
|
|
948
|
-
class WindowObject extends DefaultObject {
|
|
948
|
+
export class WindowObject extends DefaultObject {
|
|
949
949
|
height: number;
|
|
950
950
|
loadProperties(_m: any): void;
|
|
951
951
|
setEnabled(_value: boolean): void;
|
|
952
952
|
bind(): void;
|
|
953
953
|
}
|
|
954
954
|
|
|
955
|
-
class ArrayEx<T> extends Array<T> {
|
|
955
|
+
export class ArrayEx<T> extends Array<T> {
|
|
956
956
|
remove(val: any): void;
|
|
957
957
|
}
|
|
958
958
|
|
|
@@ -962,7 +962,7 @@ declare namespace MX3D {
|
|
|
962
962
|
isEnabled(bool: boolean): any;
|
|
963
963
|
}
|
|
964
964
|
|
|
965
|
-
class CameraController {
|
|
965
|
+
export class CameraController {
|
|
966
966
|
app: App;
|
|
967
967
|
arcRotateCamera: Runtime.ArcRotateCamera;
|
|
968
968
|
frustrum: number;
|
|
@@ -984,7 +984,7 @@ declare namespace MX3D {
|
|
|
984
984
|
switchFPSCamera(): void;
|
|
985
985
|
}
|
|
986
986
|
|
|
987
|
-
class Dictionary<T> {
|
|
987
|
+
export class Dictionary<T> {
|
|
988
988
|
map: {
|
|
989
989
|
[key: string]: T;
|
|
990
990
|
};
|
|
@@ -998,15 +998,15 @@ declare namespace MX3D {
|
|
|
998
998
|
clear(): void;
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
|
-
class GUID {
|
|
1001
|
+
export class GUID {
|
|
1002
1002
|
static getGUID(length: number): string;
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
1005
|
-
class RES {
|
|
1005
|
+
export class RES {
|
|
1006
1006
|
static de(str: string): any;
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
|
-
class Resources {
|
|
1009
|
+
export class Resources {
|
|
1010
1010
|
app: App;
|
|
1011
1011
|
walls: Dictionary<Runtime.AbstractMesh>;
|
|
1012
1012
|
resources: Dictionary<Runtime.AssetContainer>;
|
|
@@ -1030,7 +1030,7 @@ declare namespace MX3D {
|
|
|
1030
1030
|
setTransparentById(modelId: string, _visibility?: number): void;
|
|
1031
1031
|
}
|
|
1032
1032
|
|
|
1033
|
-
class Sight {
|
|
1033
|
+
export class Sight {
|
|
1034
1034
|
alpha: number;
|
|
1035
1035
|
focus: Runtime.Vector3;
|
|
1036
1036
|
radius: number;
|
|
@@ -1045,7 +1045,7 @@ declare namespace MX3D {
|
|
|
1045
1045
|
setBeta(_minBeta: number, _maxBeta: number): void;
|
|
1046
1046
|
}
|
|
1047
1047
|
|
|
1048
|
-
class ToolTips {
|
|
1048
|
+
export class ToolTips {
|
|
1049
1049
|
app: App;
|
|
1050
1050
|
url: string;
|
|
1051
1051
|
ele: HTMLDivElement;
|
|
@@ -1058,7 +1058,7 @@ declare namespace MX3D {
|
|
|
1058
1058
|
dispose(): void;
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
1061
|
-
class Tools {
|
|
1061
|
+
export class Tools {
|
|
1062
1062
|
static vector3ToJson(old: Runtime.Vector3): any;
|
|
1063
1063
|
static vector3ARRToJson(olds: Runtime.Vector3[]): Runtime.Vector3[];
|
|
1064
1064
|
static ToVector3(old: any): Runtime.Vector3;
|