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
package/lib/App.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import Camera from "./Camera";
|
|
2
|
-
import Environment from "./Environment";
|
|
3
|
-
import Project from "./components/Project";
|
|
4
|
-
import Resources from "./Resources";
|
|
5
|
-
export default class App {
|
|
6
|
-
canvas: HTMLCanvasElement;
|
|
7
|
-
engine: BABYLON.Engine;
|
|
8
|
-
scene: BABYLON.Scene;
|
|
9
|
-
highlightLayer: BABYLON.HighlightLayer;
|
|
10
|
-
Glow: BABYLON.GlowLayer;
|
|
11
|
-
index: number;
|
|
12
|
-
container: BABYLON.GUI.AdvancedDynamicTexture;
|
|
13
|
-
rootUrl: string;
|
|
14
|
-
fps: HTMLDivElement;
|
|
15
|
-
Resources: Resources;
|
|
16
|
-
Environment: Environment;
|
|
17
|
-
Camera: Camera;
|
|
18
|
-
Project: Project;
|
|
19
|
-
constructor(_canvas: HTMLElement, _rootUrl?: string);
|
|
20
|
-
create(_config: {
|
|
21
|
-
fileUrl: string;
|
|
22
|
-
libraryUrl?: string;
|
|
23
|
-
complete?: Function;
|
|
24
|
-
progress?: Function;
|
|
25
|
-
}): Promise<unknown>;
|
|
26
|
-
optimized(_config: {
|
|
27
|
-
file: string;
|
|
28
|
-
fileUrl: string;
|
|
29
|
-
libraryUrl?: string;
|
|
30
|
-
_isOptimized?: boolean;
|
|
31
|
-
complete?: Function;
|
|
32
|
-
progress?: Function;
|
|
33
|
-
}): Promise<unknown>;
|
|
34
|
-
outGltf(call?: Function): Promise<void>;
|
|
35
|
-
showFps(cssText?: string): void;
|
|
36
|
-
hideFps(): void;
|
|
37
|
-
dispose(): void;
|
|
38
|
-
}
|
package/lib/Camera.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import VisualAngle from "./VisualAngle";
|
|
2
|
-
import App from './App';
|
|
3
|
-
export default class Camera {
|
|
4
|
-
app: App;
|
|
5
|
-
camera: BABYLON.ArcRotateCamera;
|
|
6
|
-
frustrum: number;
|
|
7
|
-
isOverLook: boolean;
|
|
8
|
-
private tw_camera;
|
|
9
|
-
private tw_target;
|
|
10
|
-
constructor(_app: App);
|
|
11
|
-
orthographic(): void;
|
|
12
|
-
perspective(): void;
|
|
13
|
-
focusingFromProperty(_visualAngle: VisualAngle): void;
|
|
14
|
-
flyTo(_visualAngle: VisualAngle, _sheep?: number): void;
|
|
15
|
-
computeCameraView(): void;
|
|
16
|
-
_wheel(p: any): void;
|
|
17
|
-
}
|
package/lib/Cryptojs.d.ts
DELETED
package/lib/EffectMgr.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import App from "../App";
|
|
2
|
-
import DefaultObject from "../components/DefaultObject";
|
|
3
|
-
export default class OptimizedRegion extends DefaultObject {
|
|
4
|
-
index: number;
|
|
5
|
-
height: number;
|
|
6
|
-
constructor(app: App, _storey: any);
|
|
7
|
-
bind(_storey: any, _isOptimized?: boolean): void;
|
|
8
|
-
focus(): void;
|
|
9
|
-
setEnabled(_value: boolean): void;
|
|
10
|
-
restVisualAngle(): void;
|
|
11
|
-
}
|
package/lib/ReadJSON.d.ts
DELETED
package/lib/Resources.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import Dictionary from "./Dictionary";
|
|
2
|
-
import App from "./App";
|
|
3
|
-
export default class Resources {
|
|
4
|
-
app: App;
|
|
5
|
-
resourcePath: string;
|
|
6
|
-
walls: Dictionary<BABYLON.AbstractMesh>;
|
|
7
|
-
resources: Dictionary<BABYLON.AssetContainer>;
|
|
8
|
-
ndoeMats: Dictionary<BABYLON.NodeMaterial>;
|
|
9
|
-
transparentBox: BABYLON.Mesh;
|
|
10
|
-
BOX: BABYLON.Mesh;
|
|
11
|
-
FogTex: BABYLON.Texture;
|
|
12
|
-
constructor(_app: App);
|
|
13
|
-
loadModelMesh(baseModel: any): Promise<BABYLON.AssetContainer>;
|
|
14
|
-
loadModelMeshAsync(baseModel: any, callback: Function): void;
|
|
15
|
-
Materials: Dictionary<BABYLON.StandardMaterial>;
|
|
16
|
-
Textures: Dictionary<BABYLON.Texture>;
|
|
17
|
-
GetMaterial(textureData: any, scene: BABYLON.Scene): BABYLON.StandardMaterial;
|
|
18
|
-
GetTexture(textureData: any, scene: BABYLON.Scene): BABYLON.Texture;
|
|
19
|
-
MergeMaterials: Dictionary<BABYLON.CustomMaterial>;
|
|
20
|
-
GetMergeMaterial(textureData: any, scene: BABYLON.Scene): BABYLON.CustomMaterial;
|
|
21
|
-
delete(isAll?: boolean): void;
|
|
22
|
-
GetWalls(url: string, projectId: string): Promise<void>;
|
|
23
|
-
}
|
package/lib/ToolTip.d.ts
DELETED
|
File without changes
|
package/lib/Tools.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import App from "./App";
|
|
2
|
-
import VisualAngle from "./VisualAngle";
|
|
3
|
-
export default class Tools {
|
|
4
|
-
static vector3ToJson(old: BABYLON.Vector3): any;
|
|
5
|
-
static vector3ARRToJson(olds: BABYLON.Vector3[]): BABYLON.Vector3[];
|
|
6
|
-
static ToVector3(old: any): BABYLON.Vector3;
|
|
7
|
-
static ToARRVector3(olds: any[]): BABYLON.Vector3[];
|
|
8
|
-
static computeBounds(mscene: BABYLON.Mesh): BABYLON.BoundingInfo;
|
|
9
|
-
static computeBoundsToARR(_meshs: Array<BABYLON.Mesh>): BABYLON.BoundingInfo;
|
|
10
|
-
static Expand(polygon: Array<BABYLON.Vector3>, expand: number): Array<BABYLON.Vector3>;
|
|
11
|
-
static norm(x: number, y: number): number;
|
|
12
|
-
static MergeMeshes(meshes: Array<BABYLON.Mesh>, app: App): BABYLON.Mesh;
|
|
13
|
-
static DeconsTructMesh(mesh: any, height: any, app: App): Array<BABYLON.Mesh>;
|
|
14
|
-
static getVisualAngle(_bound: BABYLON.BoundingInfo, app: App): VisualAngle;
|
|
15
|
-
static pathTransformation(oldPath: Array<BABYLON.Vector3>, radius: number): any[];
|
|
16
|
-
static createTube(id: string, paths: Array<BABYLON.Vector3>, radius: number, app: App): BABYLON.Mesh;
|
|
17
|
-
static getAngleFromVector2(startV: BABYLON.Vector2, coreV: BABYLON.Vector2, endV: BABYLON.Vector2): number;
|
|
18
|
-
static getAngleFromVector3(startV: BABYLON.Vector3, coreV: BABYLON.Vector3, endV: BABYLON.Vector3): number;
|
|
19
|
-
}
|
package/lib/VisualAngle.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import Dictionary from "../Dictionary";
|
|
2
|
-
import VisualAngle from "../VisualAngle";
|
|
3
|
-
import IObject from "./IObject";
|
|
4
|
-
import App from "../App";
|
|
5
|
-
import { EffectType } from "../EffectType";
|
|
6
|
-
export default class DefaultObject implements IObject {
|
|
7
|
-
app: App;
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
parentId: string;
|
|
11
|
-
modelId: string;
|
|
12
|
-
instance: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
13
|
-
objectType: string;
|
|
14
|
-
isEnabled: boolean;
|
|
15
|
-
modelType: string;
|
|
16
|
-
isVisible: boolean;
|
|
17
|
-
action: BABYLON.ActionManager;
|
|
18
|
-
executes: Dictionary<BABYLON.ExecuteCodeAction>;
|
|
19
|
-
clickEvents: Dictionary<Function>;
|
|
20
|
-
touchtime: number;
|
|
21
|
-
effectType: EffectType;
|
|
22
|
-
_isMonitor: boolean;
|
|
23
|
-
set isMonitor(_value: boolean);
|
|
24
|
-
get isMonitor(): boolean;
|
|
25
|
-
constructor(_app: App);
|
|
26
|
-
setEnabled(_value: boolean): void;
|
|
27
|
-
set showBoundingBox(_value: boolean);
|
|
28
|
-
get showBoundingBox(): boolean;
|
|
29
|
-
visualAngle: VisualAngle;
|
|
30
|
-
setVisualAngle(_visualAngle: string, _miniLimit?: number, _maxiLimit?: number): void;
|
|
31
|
-
bind(_m: any): void;
|
|
32
|
-
restVisualAngle(): void;
|
|
33
|
-
optimization(_isOptimization: boolean): void;
|
|
34
|
-
alwaysActive(): void;
|
|
35
|
-
addEventListener(type: string, callback: Function): void;
|
|
36
|
-
removeEventListener(type: string): void;
|
|
37
|
-
setFlash(_level: number): void;
|
|
38
|
-
setOpaque(): void;
|
|
39
|
-
setTransparent(): void;
|
|
40
|
-
play(isloop?: boolean): void;
|
|
41
|
-
stop(): void;
|
|
42
|
-
flyTo(): void;
|
|
43
|
-
focus(): void;
|
|
44
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { EffectType } from "../EffectType";
|
|
2
|
-
import VisualAngle from "../VisualAngle";
|
|
3
|
-
import IBase from "./Ibase";
|
|
4
|
-
export default interface IObject extends IBase {
|
|
5
|
-
modelId: string;
|
|
6
|
-
instance: BABYLON.Mesh | BABYLON.InstancedMesh;
|
|
7
|
-
modelType: string;
|
|
8
|
-
isMonitor: boolean;
|
|
9
|
-
isEnabled: boolean;
|
|
10
|
-
visualAngle: VisualAngle;
|
|
11
|
-
effectType: EffectType;
|
|
12
|
-
bind(_m?: any): any;
|
|
13
|
-
optimization(isOptimization: boolean): any;
|
|
14
|
-
showBoundingBox: boolean;
|
|
15
|
-
setFlash(level: number): any;
|
|
16
|
-
setTransparent(): any;
|
|
17
|
-
setOpaque(): any;
|
|
18
|
-
setEnabled(isEnabled: any): any;
|
|
19
|
-
addEventListener(type: string, callback: Function): any;
|
|
20
|
-
removeEventListener(type: string): any;
|
|
21
|
-
play(isloop: boolean): any;
|
|
22
|
-
stop(): any;
|
|
23
|
-
flyTo(): any;
|
|
24
|
-
focus(): any;
|
|
25
|
-
setVisualAngle(_visualAngle: string, _miniLimit?: number, _maxiLimit?: number): any;
|
|
26
|
-
restVisualAngle(): any;
|
|
27
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export declare enum ObjectType {
|
|
2
|
-
Campus = "Campus",
|
|
3
|
-
Building = "Building",
|
|
4
|
-
Scene = "Scene",
|
|
5
|
-
Humiture = "Humiture",
|
|
6
|
-
Battery = "Battery",
|
|
7
|
-
PowerCabinet = "PowerCabinet",
|
|
8
|
-
Cabinet = "Cabinet",
|
|
9
|
-
AirCondition = "AirCondition",
|
|
10
|
-
UPS = "UPS",
|
|
11
|
-
Camera = "Camera",
|
|
12
|
-
NewWindMachine = "NewWindMachine",
|
|
13
|
-
SmokeDetector = "SmokeDetector",
|
|
14
|
-
AudibleVisualAlarm = "AudibleVisualAlarm",
|
|
15
|
-
LeakWater = "LeakWater",
|
|
16
|
-
Wall = "Wall",
|
|
17
|
-
Floor = "Floor",
|
|
18
|
-
Window = "Window",
|
|
19
|
-
Door = "Door",
|
|
20
|
-
AirFlow = "AirFlow",
|
|
21
|
-
Corner = "Corner",
|
|
22
|
-
FireFighting = "FireFighting",
|
|
23
|
-
Lighting = "Lighting",
|
|
24
|
-
Enclosure = "Enclosure",
|
|
25
|
-
ParkingLot = "ParkingLot",
|
|
26
|
-
Elevator = "Elevator",
|
|
27
|
-
Other = "Other",
|
|
28
|
-
InrackAsset = "InrackAsset",
|
|
29
|
-
GasDetection = "GasDetection",
|
|
30
|
-
Security = "Security",
|
|
31
|
-
OutDoorScene = "OutDoorScene",
|
|
32
|
-
Infrared = "Infrared",
|
|
33
|
-
SkyBox = "SkyBox",
|
|
34
|
-
UI3D = "UI3D",
|
|
35
|
-
ColdTongDoor = "ColdTongDoor",
|
|
36
|
-
VirtualBox = "VirtualBox",
|
|
37
|
-
PathPint = "PathPint",
|
|
38
|
-
Port = "Port",
|
|
39
|
-
Positioner = "Positioner",
|
|
40
|
-
AutoAnimation = "AutoAnimation",
|
|
41
|
-
MapModel = "MapModel",
|
|
42
|
-
radiator = "radiator",
|
|
43
|
-
Conduit = "Conduit",
|
|
44
|
-
ParkModel = "ParkModel",
|
|
45
|
-
Storey = "Storey",
|
|
46
|
-
optimizedWall = "optimizedWall"
|
|
47
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Dictionary from "../Dictionary";
|
|
2
|
-
import IObject from "./IObject";
|
|
3
|
-
import App from "../App";
|
|
4
|
-
export default class Project {
|
|
5
|
-
app: App;
|
|
6
|
-
id: string;
|
|
7
|
-
root: IObject;
|
|
8
|
-
current: IObject;
|
|
9
|
-
objectDatas: Dictionary<IObject>;
|
|
10
|
-
constructor(_app: App);
|
|
11
|
-
delete(): void;
|
|
12
|
-
optimization(): void;
|
|
13
|
-
getTreeData(): void;
|
|
14
|
-
getChildNode(_id: string): IObject[];
|
|
15
|
-
find(_id: string): IObject;
|
|
16
|
-
show(): void;
|
|
17
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import DefaultObject from './DefaultObject';
|
|
2
|
-
import App from '../App';
|
|
3
|
-
export default class Region extends DefaultObject {
|
|
4
|
-
index: number;
|
|
5
|
-
height: number;
|
|
6
|
-
constructor(app: App, _storey: any);
|
|
7
|
-
bind(_storey: any, _isOptimized?: boolean): void;
|
|
8
|
-
focus(): void;
|
|
9
|
-
setEnabled(_value: boolean): void;
|
|
10
|
-
restVisualAngle(): void;
|
|
11
|
-
dispose(): void;
|
|
12
|
-
}
|
package/lib/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import "babylonjs";
|
|
2
|
-
import "babylonjs-materials";
|
|
3
|
-
import "babylonjs-gui";
|
|
4
|
-
import "babylonjs-loaders";
|
|
5
|
-
import "babylonjs-serializers";
|
|
6
|
-
import "../dazzle";
|
|
7
|
-
import App from "./App";
|
|
8
|
-
import Tools from "./Tools";
|
|
9
|
-
import EffectMgr from "./EffectMgr";
|
|
10
|
-
import { EffectType } from "./EffectType";
|
|
11
|
-
import { EventType } from "./EventType";
|
|
12
|
-
import GUID from "./GUID";
|
|
13
|
-
import Dictionary from "./Dictionary";
|
|
14
|
-
declare const MX3D: {
|
|
15
|
-
App: typeof App;
|
|
16
|
-
Tools: typeof Tools;
|
|
17
|
-
EffectMgr: EffectMgr;
|
|
18
|
-
EffectType: typeof EffectType;
|
|
19
|
-
EventType: typeof EventType;
|
|
20
|
-
GUID: typeof GUID;
|
|
21
|
-
Dictionary: typeof Dictionary;
|
|
22
|
-
};
|
|
23
|
-
export default MX3D;
|