mx3d 1.0.6 → 2023.7.7
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 +24 -0
- package/components/AlarmFlashing.d.ts +12 -0
- package/components/App.d.ts +39 -0
- package/components/Builder.d.ts +73 -0
- package/components/Capacity.d.ts +11 -0
- package/{lib → components}/Environment.d.ts +31 -22
- package/components/HeatMap.d.ts +14 -0
- package/components/Icon.d.ts +33 -0
- package/components/IconFromMesh.d.ts +22 -0
- package/components/Line.d.ts +14 -0
- package/components/LineFromMesh.d.ts +13 -0
- package/{lib/EffectType.d.ts → components/StatusType.d.ts} +5 -5
- package/components/UI.d.ts +10 -0
- package/earths/TileLoader.d.ts +6 -0
- package/effects/Cloud.d.ts +42 -0
- package/effects/Effect.d.ts +13 -0
- package/effects/IEffect.d.ts +4 -0
- package/effects/Rain.d.ts +34 -0
- package/effects/Thunder.d.ts +31 -0
- package/events/DefaultEvent.d.ts +11 -0
- package/{lib → events}/EventType.d.ts +9 -8
- package/events/FPSCameraEvent.d.ts +17 -0
- package/events/IEvent.d.ts +6 -0
- package/hub/HubService.d.ts +5 -0
- package/index.d.ts +24 -0
- package/lights/Directional.d.ts +8 -0
- package/{lib/lights → lights}/Hemispheric.d.ts +7 -6
- package/{lib/lights → lights}/ILightObject.d.ts +11 -10
- package/{lib/lights → lights}/LightObject.d.ts +16 -15
- package/{lib/lights → lights}/LightType.d.ts +8 -8
- package/{lib/lights → lights}/Point.d.ts +8 -7
- package/{lib/lights → lights}/Spot.d.ts +11 -10
- package/models/BaseModel.d.ts +15 -0
- package/{lib/components → models}/BuildingObject.d.ts +7 -5
- package/models/CabinetObject.d.ts +13 -0
- package/models/CampusObject.d.ts +8 -0
- package/models/ConduitObject.d.ts +17 -0
- package/models/CornerObject.d.ts +45 -0
- package/models/DefaultObject.d.ts +61 -0
- package/{lib/components → models}/DoorObject.d.ts +7 -5
- package/models/FloorObject.d.ts +11 -0
- package/models/IBase.d.ts +23 -0
- package/models/IObject.d.ts +15 -0
- package/models/IRegion.d.ts +49 -0
- package/{lib/components → models}/LeakWaterObject.d.ts +12 -6
- package/models/ObjectType.d.ts +17 -0
- package/models/OptimizedWallObject.d.ts +7 -0
- package/models/Project.d.ts +30 -0
- package/models/RackModel.d.ts +12 -0
- package/models/RackObject.d.ts +61 -0
- package/models/StoreyObject.d.ts +10 -0
- package/models/UI3DTextObject.d.ts +14 -0
- package/models/VirtualBoxObject.d.ts +13 -0
- package/models/WallObject.d.ts +11 -0
- package/{lib/components → models}/WindowObject.d.ts +7 -5
- package/mx3d.kernel.min.js +1 -0
- package/mx3d.min.js +1 -25
- package/mx3d.seat.min.js +1 -0
- package/package.json +15 -15
- package/runtime/index.d.ts +52 -0
- package/{lib → tools}/ArrayEx.d.ts +3 -3
- package/tools/BaseNode.d.ts +5 -0
- package/tools/CameraController.d.ts +22 -0
- package/{lib → tools}/Dictionary.d.ts +13 -13
- package/{lib → tools}/GUID.d.ts +3 -3
- package/tools/RES.d.ts +3 -0
- package/tools/Resources.d.ts +26 -0
- package/tools/Sight.d.ts +15 -0
- package/tools/ToolTips.d.ts +14 -0
- package/tools/Tools.d.ts +21 -0
- package/tools/axios.d.ts +2 -0
- package/core/dazzle.min.js +0 -1
- package/core/mx3d.kernel.min.js +0 -16
- package/core/mx3d.loaders.min.js +0 -49
- package/core/mx3d.seat.min.js +0 -1144
- package/lib/App.d.ts +0 -38
- package/lib/Builder/BaseNode.d.ts +0 -9
- package/lib/Camera.d.ts +0 -17
- package/lib/Cryptojs.d.ts +0 -3
- package/lib/EffectMgr.d.ts +0 -10
- package/lib/Optimized/OptimizedRegion.d.ts +0 -11
- package/lib/ReadJSON.d.ts +0 -3
- package/lib/Resources.d.ts +0 -23
- package/lib/ToolTip.d.ts +0 -0
- package/lib/Tools.d.ts +0 -19
- package/lib/VisualAngle.d.ts +0 -8
- package/lib/components/CabinetObject.d.ts +0 -3
- package/lib/components/ConduitObject.d.ts +0 -4
- package/lib/components/CornerObject.d.ts +0 -5
- package/lib/components/DefaultObject.d.ts +0 -44
- package/lib/components/FloorObject.d.ts +0 -5
- package/lib/components/IObject.d.ts +0 -27
- package/lib/components/Ibase.d.ts +0 -8
- package/lib/components/ObjectType.d.ts +0 -47
- package/lib/components/OptimizedWallObject.d.ts +0 -5
- package/lib/components/Project.d.ts +0 -17
- package/lib/components/Region.d.ts +0 -12
- package/lib/components/UI3DTextObject.d.ts +0 -4
- package/lib/components/VirtualBoxObject.d.ts +0 -4
- package/lib/components/WallObject.d.ts +0 -7
- package/lib/index.d.ts +0 -23
- package/lib/lights/Directional.d.ts +0 -7
- package/mx3d.js +0 -9794
- /package/{lib/Builder/Builder.d.ts → earths/3dTile.d.ts} +0 -0
- /package/{lib/Builder/HeatMap.d.ts → mapboxgl/BabylonLayer.d.ts} +0 -0
- /package/{lib/Builder/Icon.d.ts → mapboxgl/Earth.d.ts} +0 -0
- /package/{lib/Builder/IconFromMesh.d.ts → mapboxgl/Parse3dtile.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare enum LightType {
|
|
2
|
-
Point = "Point",
|
|
3
|
-
Spot = "Spot",
|
|
4
|
-
Directional = "Directional",
|
|
5
|
-
Hemispheric = "Hemispheric"
|
|
6
|
-
}
|
|
7
|
-
declare let typeFromat: Function;
|
|
8
|
-
export default typeFromat;
|
|
1
|
+
export declare enum LightType {
|
|
2
|
+
Point = "Point",
|
|
3
|
+
Spot = "Spot",
|
|
4
|
+
Directional = "Directional",
|
|
5
|
+
Hemispheric = "Hemispheric"
|
|
6
|
+
}
|
|
7
|
+
declare let typeFromat: Function;
|
|
8
|
+
export default typeFromat;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import LightObject from "./LightObject";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import LightObject from "./LightObject";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class Point extends LightObject {
|
|
4
|
+
position: Runtime.Vector3;
|
|
5
|
+
light: Runtime.PointLight;
|
|
6
|
+
range: number;
|
|
7
|
+
load(): void;
|
|
8
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import LightObject from "./LightObject";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import LightObject from "./LightObject";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class Spot extends LightObject {
|
|
4
|
+
direction: Runtime.Vector3;
|
|
5
|
+
position: Runtime.Vector3;
|
|
6
|
+
angle: number;
|
|
7
|
+
exponent: number;
|
|
8
|
+
range: number;
|
|
9
|
+
light: Runtime.SpotLight;
|
|
10
|
+
load(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ObjectType } from "./ObjectType";
|
|
2
|
+
export default class BaseModel {
|
|
3
|
+
extension: string;
|
|
4
|
+
groupId: string;
|
|
5
|
+
heat: number;
|
|
6
|
+
height: number;
|
|
7
|
+
insertTime: string;
|
|
8
|
+
isTiling: boolean;
|
|
9
|
+
length: number;
|
|
10
|
+
modelId: string;
|
|
11
|
+
modelName: string;
|
|
12
|
+
modelType: ObjectType;
|
|
13
|
+
modelTypeName: string;
|
|
14
|
+
width: number;
|
|
15
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import DefaultObject from "./DefaultObject";
|
|
2
|
-
export default class BuildingObject extends DefaultObject {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import DefaultObject from "./DefaultObject";
|
|
2
|
+
export default class BuildingObject extends DefaultObject {
|
|
3
|
+
completed(): void;
|
|
4
|
+
computeView(): void;
|
|
5
|
+
getInto(): void;
|
|
6
|
+
goBack(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import DefaultObject from "./DefaultObject";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
import RackModel from "./RackModel";
|
|
4
|
+
export default class CabinetObject extends DefaultObject {
|
|
5
|
+
rack: Runtime.Mesh | Runtime.InstancedMesh;
|
|
6
|
+
computeView(): void;
|
|
7
|
+
setEnabled(_value: boolean): void;
|
|
8
|
+
bind(): void;
|
|
9
|
+
loadRacks(_data: Array<RackModel>): void;
|
|
10
|
+
unloadRacks(): void;
|
|
11
|
+
open(): void;
|
|
12
|
+
close(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import IRegion from "./IRegion";
|
|
2
|
+
export default class CampusObject extends IRegion {
|
|
3
|
+
addEventListener(_type: string, _callback: Function): void;
|
|
4
|
+
removeEventListener(_type: string): void;
|
|
5
|
+
setEnabled(_isEnabled: boolean): void;
|
|
6
|
+
loadProperties(_m: any): void;
|
|
7
|
+
bind(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import DefaultObject from "./DefaultObject";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class ConduitObject extends DefaultObject {
|
|
4
|
+
alpha: number;
|
|
5
|
+
color: string;
|
|
6
|
+
pints: Runtime.Vector3[];
|
|
7
|
+
radius: number;
|
|
8
|
+
loadProperties(_m: any): void;
|
|
9
|
+
setEnabled(_value: boolean): void;
|
|
10
|
+
bind(): void;
|
|
11
|
+
setColor(_color?: string): void;
|
|
12
|
+
reColor(): void;
|
|
13
|
+
computeView(): void;
|
|
14
|
+
setFlash(_level?: number): void;
|
|
15
|
+
setOpaque(): void;
|
|
16
|
+
setTransparent(alpha?: number): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import IObject from "./IObject";
|
|
2
|
+
import { App } from "../components/App";
|
|
3
|
+
import { StatusType } from "../components/StatusType";
|
|
4
|
+
import Sight from "../tools/Sight";
|
|
5
|
+
import baseModel from "./BaseModel";
|
|
6
|
+
import * as Runtime from '../runtime';
|
|
7
|
+
export default class CornerObject implements IObject {
|
|
8
|
+
app: App;
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
parentId: string;
|
|
12
|
+
objectType: string;
|
|
13
|
+
height: number;
|
|
14
|
+
customNumber: string;
|
|
15
|
+
customType: string;
|
|
16
|
+
instance: Runtime.Mesh | Runtime.InstancedMesh;
|
|
17
|
+
Sight: Sight;
|
|
18
|
+
statusType: StatusType;
|
|
19
|
+
showBoundingBox: boolean;
|
|
20
|
+
pints: any;
|
|
21
|
+
constructor(_app: App);
|
|
22
|
+
getInto(): void;
|
|
23
|
+
goBack(): void;
|
|
24
|
+
baseModel: baseModel;
|
|
25
|
+
loadProperties(_m: any): void;
|
|
26
|
+
alwaysActive(): void;
|
|
27
|
+
optimization(_isOptimization: boolean): void;
|
|
28
|
+
setFlash(_level: number): void;
|
|
29
|
+
setTransparent(): void;
|
|
30
|
+
setOpaque(): void;
|
|
31
|
+
setEnabled(isEnabled: any): void;
|
|
32
|
+
addEventListener(_type: string, _callback: Function): void;
|
|
33
|
+
removeEventListener(_type: string): void;
|
|
34
|
+
computeView(): void;
|
|
35
|
+
bind(): boolean;
|
|
36
|
+
toJson(): {
|
|
37
|
+
id: string;
|
|
38
|
+
parentId: string;
|
|
39
|
+
name: string;
|
|
40
|
+
customNumber: string;
|
|
41
|
+
customType: string;
|
|
42
|
+
objectType: string;
|
|
43
|
+
};
|
|
44
|
+
completed(): void;
|
|
45
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { App } from "../components/App";
|
|
2
|
+
import Dictionary from "../tools/Dictionary";
|
|
3
|
+
import { StatusType } from "../components/StatusType";
|
|
4
|
+
import { EventType } from "../events/EventType";
|
|
5
|
+
import IObject from "./IObject";
|
|
6
|
+
import Sight from "../tools/Sight";
|
|
7
|
+
import baseModel from "./BaseModel";
|
|
8
|
+
import * as Runtime from '../runtime';
|
|
9
|
+
export default class DefaultObject implements IObject {
|
|
10
|
+
app: App;
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
customNumber: string;
|
|
14
|
+
customType: string;
|
|
15
|
+
parentId: string;
|
|
16
|
+
baseModel: baseModel;
|
|
17
|
+
instance: Runtime.Mesh | Runtime.InstancedMesh;
|
|
18
|
+
objectType: string;
|
|
19
|
+
action: Runtime.ActionManager;
|
|
20
|
+
executes: Dictionary<Runtime.ExecuteCodeAction>;
|
|
21
|
+
clickEvents: Dictionary<Function>;
|
|
22
|
+
touchtime: number;
|
|
23
|
+
statusType: StatusType;
|
|
24
|
+
Sight: Sight;
|
|
25
|
+
animation: boolean;
|
|
26
|
+
isLoop: boolean;
|
|
27
|
+
isAutoPlay: boolean;
|
|
28
|
+
position: Runtime.Vector3;
|
|
29
|
+
rotation: Runtime.Vector3;
|
|
30
|
+
scaling: Runtime.Vector3;
|
|
31
|
+
constructor(_app: App);
|
|
32
|
+
loadProperties(_m: any): void;
|
|
33
|
+
setEnabled(_value: boolean): void;
|
|
34
|
+
set showBoundingBox(_value: boolean);
|
|
35
|
+
get showBoundingBox(): boolean;
|
|
36
|
+
set isPickable(_value: boolean);
|
|
37
|
+
get isPickable(): boolean;
|
|
38
|
+
bind(): void;
|
|
39
|
+
completed(): void;
|
|
40
|
+
computeView(): void;
|
|
41
|
+
optimization(_isOptimization: boolean): void;
|
|
42
|
+
alwaysActive(): void;
|
|
43
|
+
addEventListener(type: EventType, callback: Function): void;
|
|
44
|
+
removeEventListener(type: string): void;
|
|
45
|
+
setFlash(_level: number): void;
|
|
46
|
+
setOpaque(): void;
|
|
47
|
+
setTransparent(alpha?: number): void;
|
|
48
|
+
setColor(_color?: string): void;
|
|
49
|
+
play(): void;
|
|
50
|
+
stop(): void;
|
|
51
|
+
toJson(): {
|
|
52
|
+
id: string;
|
|
53
|
+
parentId: string;
|
|
54
|
+
name: string;
|
|
55
|
+
customNumber: string;
|
|
56
|
+
customType: string;
|
|
57
|
+
objectType: string;
|
|
58
|
+
};
|
|
59
|
+
getInto(): void;
|
|
60
|
+
goBack(): void;
|
|
61
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import DefaultObject from "./DefaultObject";
|
|
2
|
-
export default class DoorObject extends DefaultObject {
|
|
3
|
-
height: number;
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import DefaultObject from "./DefaultObject";
|
|
2
|
+
export default class DoorObject extends DefaultObject {
|
|
3
|
+
height: number;
|
|
4
|
+
loadProperties(_m: any): void;
|
|
5
|
+
setEnabled(_value: boolean): void;
|
|
6
|
+
bind(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import DefaultObject from "./DefaultObject";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class FloorObject extends DefaultObject {
|
|
4
|
+
height: number;
|
|
5
|
+
vectors: Runtime.Vector3[];
|
|
6
|
+
buckles: Runtime.Vector3[][];
|
|
7
|
+
loadProperties(_m: any): void;
|
|
8
|
+
setEnabled(_value: boolean): void;
|
|
9
|
+
bind(): void;
|
|
10
|
+
computeView(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import Sight from "../tools/Sight";
|
|
2
|
+
import { App } from "../components/App";
|
|
3
|
+
import BaseModel from "./BaseModel";
|
|
4
|
+
import * as Runtime from '../runtime';
|
|
5
|
+
export default interface IBase {
|
|
6
|
+
app: App;
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
parentId: string;
|
|
10
|
+
objectType: string;
|
|
11
|
+
customNumber: string;
|
|
12
|
+
customType: string;
|
|
13
|
+
baseModel: BaseModel;
|
|
14
|
+
instance: Runtime.Mesh | Runtime.InstancedMesh;
|
|
15
|
+
Sight: Sight;
|
|
16
|
+
loadProperties(_m: any): void;
|
|
17
|
+
bind(): any;
|
|
18
|
+
completed(): any;
|
|
19
|
+
setEnabled(isEnabled: boolean): any;
|
|
20
|
+
toJson(): any;
|
|
21
|
+
getInto(): any;
|
|
22
|
+
goBack(): any;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StatusType } from "../components/StatusType";
|
|
2
|
+
import IBase from "./IBase";
|
|
3
|
+
import { EventType } from "../events/EventType";
|
|
4
|
+
export default interface IObject extends IBase {
|
|
5
|
+
statusType: StatusType;
|
|
6
|
+
showBoundingBox: boolean;
|
|
7
|
+
optimization(isOptimization: boolean): any;
|
|
8
|
+
setFlash(level: number): any;
|
|
9
|
+
setTransparent(): any;
|
|
10
|
+
setOpaque(): any;
|
|
11
|
+
addEventListener(type: EventType, callback: Function): any;
|
|
12
|
+
removeEventListener(type: EventType): any;
|
|
13
|
+
computeView(): any;
|
|
14
|
+
alwaysActive(): any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { App } from "../components/App";
|
|
2
|
+
import Dictionary from "../tools/Dictionary";
|
|
3
|
+
import baseModel from "./BaseModel";
|
|
4
|
+
import IBase from "./IBase";
|
|
5
|
+
import Sight from "../tools/Sight";
|
|
6
|
+
import * as Runtime from '../runtime';
|
|
7
|
+
export default class IRegion implements IBase {
|
|
8
|
+
app: App;
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
parentId: string;
|
|
12
|
+
objectType: string;
|
|
13
|
+
baseModel: baseModel;
|
|
14
|
+
customNumber: string;
|
|
15
|
+
customType: string;
|
|
16
|
+
Sight: Sight;
|
|
17
|
+
instance: Runtime.Mesh | Runtime.InstancedMesh;
|
|
18
|
+
position: Runtime.Vector3;
|
|
19
|
+
rotation: Runtime.Vector3;
|
|
20
|
+
index: number;
|
|
21
|
+
layerName: string;
|
|
22
|
+
layerHeight: number;
|
|
23
|
+
action: Runtime.ActionManager;
|
|
24
|
+
executes: Dictionary<Runtime.ExecuteCodeAction>;
|
|
25
|
+
clickEvents: Dictionary<Function>;
|
|
26
|
+
touchtime: number;
|
|
27
|
+
constructor(_app: App);
|
|
28
|
+
loadProperties(_m: any): void;
|
|
29
|
+
bind(): void;
|
|
30
|
+
completed(): void;
|
|
31
|
+
setEnabled(_isEnabled: boolean): void;
|
|
32
|
+
addEventListener(type: string, callback: Function): void;
|
|
33
|
+
removeEventListener(type: string): void;
|
|
34
|
+
load(isOptimized: boolean, _objs: Array<any>): void;
|
|
35
|
+
toJson(): {
|
|
36
|
+
id: string;
|
|
37
|
+
parentId: string;
|
|
38
|
+
name: string;
|
|
39
|
+
customNumber: string;
|
|
40
|
+
customType: string;
|
|
41
|
+
objectType: string;
|
|
42
|
+
index: number;
|
|
43
|
+
layerHeight: number;
|
|
44
|
+
layerName: string;
|
|
45
|
+
};
|
|
46
|
+
computeView(): void;
|
|
47
|
+
getInto(): void;
|
|
48
|
+
goBack(): void;
|
|
49
|
+
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import DefaultObject from "./DefaultObject";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import DefaultObject from "./DefaultObject";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class LeakWaterObject extends DefaultObject {
|
|
4
|
+
lines: Runtime.Vector3[];
|
|
5
|
+
loadProperties(_l: any): void;
|
|
6
|
+
setEnabled(_value: boolean): void;
|
|
7
|
+
bind(): void;
|
|
8
|
+
completed(): void;
|
|
9
|
+
computeView(): void;
|
|
10
|
+
addEventListener(type: string, callback: Function): void;
|
|
11
|
+
removeEventListener(type: string): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum ObjectType {
|
|
2
|
+
Cabinet = "Cabinet",
|
|
3
|
+
RackModel = "RackModel",
|
|
4
|
+
Corner = "Corner",
|
|
5
|
+
Other = "Other",
|
|
6
|
+
Door = "Door",
|
|
7
|
+
Floor = "Floor",
|
|
8
|
+
LeakWater = "LeakWater",
|
|
9
|
+
UI3D = "UI3D",
|
|
10
|
+
VirtualBox = "VirtualBox",
|
|
11
|
+
Wall = "Wall",
|
|
12
|
+
Window = "Window",
|
|
13
|
+
Conduit = "Conduit",
|
|
14
|
+
Building = "Building",
|
|
15
|
+
Storey = "Storey",
|
|
16
|
+
Campus = "Campus"
|
|
17
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { App } from "../components/App";
|
|
2
|
+
import { ObjectType } from "./ObjectType";
|
|
3
|
+
import Dictionary from "../tools/Dictionary";
|
|
4
|
+
import IBase from "./IBase";
|
|
5
|
+
import IRegion from "./IRegion";
|
|
6
|
+
export default class Project {
|
|
7
|
+
app: App;
|
|
8
|
+
id: string;
|
|
9
|
+
current: IBase;
|
|
10
|
+
root: IRegion;
|
|
11
|
+
levelEvent: Function;
|
|
12
|
+
objectDatas: Dictionary<IBase>;
|
|
13
|
+
constructor(_app: App);
|
|
14
|
+
clear(): void;
|
|
15
|
+
optimization(): void;
|
|
16
|
+
getChildsById(_id?: string, _includeSub?: boolean): IBase[];
|
|
17
|
+
getSceneTree(_id?: string, _excludeTypes?: Array<string>): any;
|
|
18
|
+
findObjectById(_id: string): IBase;
|
|
19
|
+
findObjectByCustomNumber(_customNumber: string): any;
|
|
20
|
+
findObjectsByCustomType(_customType: string, queryParameters?: {
|
|
21
|
+
isCurrent: boolean;
|
|
22
|
+
isEnabled: boolean;
|
|
23
|
+
}): any[];
|
|
24
|
+
findObjectsByType(_type: ObjectType): IBase[];
|
|
25
|
+
computeSight(_objs: Array<IBase>): any;
|
|
26
|
+
switchLevel(_id?: string, _isFocus?: boolean): void;
|
|
27
|
+
goBack(): void;
|
|
28
|
+
getTypes(_parentId?: string): any[];
|
|
29
|
+
getCustomTypes(_parentId?: string): any[];
|
|
30
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { App } from "../components/App";
|
|
2
|
+
import { StatusType } from "../components/StatusType";
|
|
3
|
+
import { EventType } from "../events/EventType";
|
|
4
|
+
import { Mesh, InstancedMesh } from "../runtime";
|
|
5
|
+
import Sight from "../tools/Sight";
|
|
6
|
+
import BaseModel from "./BaseModel";
|
|
7
|
+
import IObject from "./IObject";
|
|
8
|
+
import { ObjectType } from "./ObjectType";
|
|
9
|
+
import RackModel from "./RackModel";
|
|
10
|
+
import * as Runtime from '../runtime';
|
|
11
|
+
import Dictionary from "../tools/Dictionary";
|
|
12
|
+
export default class RackObject implements IObject {
|
|
13
|
+
app: App;
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
parentId: string;
|
|
17
|
+
objectType: ObjectType;
|
|
18
|
+
customNumber: string;
|
|
19
|
+
customType: string;
|
|
20
|
+
baseModel: BaseModel;
|
|
21
|
+
instance: Mesh | InstancedMesh;
|
|
22
|
+
Sight: Sight;
|
|
23
|
+
statusType: StatusType;
|
|
24
|
+
showBoundingBox: boolean;
|
|
25
|
+
action: Runtime.ActionManager;
|
|
26
|
+
executes: Dictionary<Runtime.ExecuteCodeAction>;
|
|
27
|
+
clickEvents: Dictionary<Function>;
|
|
28
|
+
touchtime: number;
|
|
29
|
+
uHeight: number;
|
|
30
|
+
uStart: number;
|
|
31
|
+
color: string;
|
|
32
|
+
frontImgUrl: string;
|
|
33
|
+
backImgUrl: string;
|
|
34
|
+
direction: boolean;
|
|
35
|
+
width: number;
|
|
36
|
+
depth: number;
|
|
37
|
+
constructor(_app: App, _parentId: string);
|
|
38
|
+
setEnabled(isEnabled: boolean): void;
|
|
39
|
+
loadProperties(_m: RackModel): void;
|
|
40
|
+
bind(): void;
|
|
41
|
+
optimization(_isOptimization: boolean): void;
|
|
42
|
+
alwaysActive(): void;
|
|
43
|
+
addEventListener(type: EventType, callback: Function): void;
|
|
44
|
+
removeEventListener(type: string): void;
|
|
45
|
+
setFlash(_level: number): void;
|
|
46
|
+
setOpaque(): void;
|
|
47
|
+
setTransparent(alpha?: number): void;
|
|
48
|
+
setColor(_color?: string): void;
|
|
49
|
+
computeView(): void;
|
|
50
|
+
completed(): void;
|
|
51
|
+
toJson(): {
|
|
52
|
+
id: string;
|
|
53
|
+
parentId: string;
|
|
54
|
+
name: string;
|
|
55
|
+
customNumber: string;
|
|
56
|
+
customType: string;
|
|
57
|
+
objectType: ObjectType;
|
|
58
|
+
};
|
|
59
|
+
getInto(): void;
|
|
60
|
+
goBack(): void;
|
|
61
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import IRegion from "./IRegion";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class StoreyObject extends IRegion {
|
|
4
|
+
scaling: Runtime.Vector3;
|
|
5
|
+
loadProperties(_m: any): void;
|
|
6
|
+
bind(): void;
|
|
7
|
+
alwaysActive(): void;
|
|
8
|
+
completed(): void;
|
|
9
|
+
computeView(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import DefaultObject from "./DefaultObject";
|
|
2
|
+
export default class UI3DTextObject extends DefaultObject {
|
|
3
|
+
tconfig: {
|
|
4
|
+
color: string;
|
|
5
|
+
position: any;
|
|
6
|
+
rotation: any;
|
|
7
|
+
scaling: any;
|
|
8
|
+
clearColor: string;
|
|
9
|
+
};
|
|
10
|
+
isLookAt: boolean;
|
|
11
|
+
setEnabled(_value: boolean): void;
|
|
12
|
+
loadProperties(_u: any): void;
|
|
13
|
+
bind(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import DefaultObject from "./DefaultObject";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class VirtualBoxObject extends DefaultObject {
|
|
4
|
+
virtualType: string;
|
|
5
|
+
color: Runtime.Color3;
|
|
6
|
+
alpha: number;
|
|
7
|
+
isEdges: boolean;
|
|
8
|
+
edgesWidth: number;
|
|
9
|
+
edgesColor: Runtime.Color4;
|
|
10
|
+
loadProperties(_m: any): void;
|
|
11
|
+
setEnabled(_value: boolean): void;
|
|
12
|
+
bind(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import DefaultObject from "./DefaultObject";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class WallObject extends DefaultObject {
|
|
4
|
+
nativeMaterial: Runtime.StandardMaterial;
|
|
5
|
+
height: number;
|
|
6
|
+
walls: Runtime.Mesh[];
|
|
7
|
+
loadProperties(_m: any): void;
|
|
8
|
+
setEnabled(_value: boolean): void;
|
|
9
|
+
bind(): void;
|
|
10
|
+
completed(): void;
|
|
11
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import DefaultObject from "./DefaultObject";
|
|
2
|
-
export default class WindowObject extends DefaultObject {
|
|
3
|
-
height: number;
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import DefaultObject from "./DefaultObject";
|
|
2
|
+
export default class WindowObject extends DefaultObject {
|
|
3
|
+
height: number;
|
|
4
|
+
loadProperties(_m: any): void;
|
|
5
|
+
setEnabled(_value: boolean): void;
|
|
6
|
+
bind(): void;
|
|
7
|
+
}
|