mx3d 0.0.36 → 0.0.40
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/core/mx3d.kernel.min.js +2 -16
- package/core/mx3d.loaders.min.js +7 -49
- package/index.d.ts +2304 -26
- package/mx3d.js +112 -10131
- package/mx3d.min.js +6 -6
- package/package.json +2 -2
- package/core/mx3d.dazzle.min.js +0 -85
- package/docs/.nojekyll +0 -0
- package/docs/README.md +0 -24
- package/docs/_sidebar.md +0 -18
- package/docs/camera.md +0 -24
- package/docs/css/dark.css +0 -979
- package/docs/css/local.google.fonts.css +0 -295
- package/docs/css/vue.css +0 -1025
- package/docs/fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2 +0 -0
- package/docs/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlxdu.woff2 +0 -0
- package/docs/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu.woff2 +0 -0
- package/docs/gui/2D.md +0 -53
- package/docs/gui/3D.md +0 -46
- package/docs/gui/test1.png +0 -0
- package/docs/gui/test2.png +0 -0
- package/docs/gui/test3.png +0 -0
- package/docs/heatMap/heatMap.md +0 -115
- package/docs/heatMap/test1.png +0 -0
- package/docs/heatMap/test2.png +0 -0
- package/docs/index.html +0 -50
- package/docs/js/docsify@4.min.js +0 -1
- package/docs/models/modelmgr.md +0 -251
- package/docs/project/projectmgr.md +0 -73
- package/docs/project/scenetree.jpg +0 -0
- package/docs/started/environment.md +0 -42
- package/docs/started/quickstart.md +0 -89
- package/lib/App.d.ts +0 -45
- package/lib/ArrayEx.d.ts +0 -3
- package/lib/Builder/BaseNode.d.ts +0 -9
- package/lib/Builder/Builder.d.ts +0 -0
- package/lib/Builder/HeatMap.d.ts +0 -0
- package/lib/Builder/Icon.d.ts +0 -0
- package/lib/Builder/IconFromMesh.d.ts +0 -0
- package/lib/Camera.d.ts +0 -18
- package/lib/Cryptojs.d.ts +0 -3
- package/lib/Dictionary.d.ts +0 -13
- package/lib/EffectControls.d.ts +0 -42
- package/lib/EffectMgr.d.ts +0 -10
- package/lib/EffectType.d.ts +0 -5
- package/lib/Environment.d.ts +0 -22
- package/lib/EventType.d.ts +0 -8
- package/lib/GUID.d.ts +0 -3
- package/lib/HeatMapMgr.d.ts +0 -2
- package/lib/Optimized/OptimizedRegion.d.ts +0 -11
- package/lib/ReadJSON.d.ts +0 -3
- package/lib/Resources.d.ts +0 -23
- package/lib/TipsTool.d.ts +0 -15
- package/lib/ToolTip.d.ts +0 -0
- package/lib/Tools.d.ts +0 -19
- package/lib/UI.d.ts +0 -9
- package/lib/VisualAngle.d.ts +0 -13
- package/lib/components/AirFlowObject.d.ts +0 -10
- package/lib/components/BuildingObject.d.ts +0 -5
- package/lib/components/CabinetObject.d.ts +0 -3
- package/lib/components/ConduitObject.d.ts +0 -10
- package/lib/components/CornerObject.d.ts +0 -5
- package/lib/components/DefaultObject.d.ts +0 -46
- package/lib/components/DoorObject.d.ts +0 -5
- 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/LeakWaterObject.d.ts +0 -7
- package/lib/components/ObjectType.d.ts +0 -47
- package/lib/components/OptimizedWallObject.d.ts +0 -5
- package/lib/components/Project.d.ts +0 -29
- package/lib/components/Region.d.ts +0 -14
- 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/components/WindowObject.d.ts +0 -5
- package/lib/lights/Directional.d.ts +0 -7
- package/lib/lights/Hemispheric.d.ts +0 -6
- package/lib/lights/ILightObject.d.ts +0 -10
- package/lib/lights/LightObject.d.ts +0 -15
- package/lib/lights/LightType.d.ts +0 -8
- package/lib/lights/Point.d.ts +0 -7
- package/lib/lights/Spot.d.ts +0 -10
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/TipsTool.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import App from "./App";
|
|
2
|
-
export default class TipsTool {
|
|
3
|
-
app: App;
|
|
4
|
-
url: string;
|
|
5
|
-
ele: HTMLDivElement;
|
|
6
|
-
time: number;
|
|
7
|
-
id: string;
|
|
8
|
-
isOK: boolean;
|
|
9
|
-
_text: string;
|
|
10
|
-
private set text(value);
|
|
11
|
-
constructor(parent: HTMLElement, _app: App);
|
|
12
|
-
update(e: BABYLON.PointerInfo): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
setBackground(_url: string): void;
|
|
15
|
-
}
|
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
|
-
export default class Tools {
|
|
3
|
-
static vector3ToJson(old: BABYLON.Vector3): any;
|
|
4
|
-
static vector3ARRToJson(olds: BABYLON.Vector3[]): BABYLON.Vector3[];
|
|
5
|
-
static ToVector3(old: any): BABYLON.Vector3;
|
|
6
|
-
static ToARRVector3(olds: any[]): BABYLON.Vector3[];
|
|
7
|
-
static computeBounds(mscene: BABYLON.Mesh): BABYLON.BoundingInfo;
|
|
8
|
-
static computeBoundsToARR(_meshs: Array<BABYLON.Mesh>): BABYLON.BoundingInfo;
|
|
9
|
-
static Expand(polygon: Array<BABYLON.Vector3>, expand: number): Array<BABYLON.Vector3>;
|
|
10
|
-
static norm(x: number, y: number): number;
|
|
11
|
-
static MergeMeshes(meshes: Array<BABYLON.Mesh>, app: App): BABYLON.Mesh;
|
|
12
|
-
static DeconsTructMesh(mesh: any, height: any, app: App): Array<BABYLON.Mesh>;
|
|
13
|
-
static getVisualAngle(_bound: BABYLON.BoundingInfo, app: App): any;
|
|
14
|
-
static pathTransformation(oldPath: Array<BABYLON.Vector3>, radius: number): any[];
|
|
15
|
-
static createTube(id: string, paths: Array<BABYLON.Vector3>, radius: number, app: App): BABYLON.Mesh;
|
|
16
|
-
static getAngleFromVector2(startV: BABYLON.Vector2, coreV: BABYLON.Vector2, endV: BABYLON.Vector2): number;
|
|
17
|
-
static getAngleFromVector3(startV: BABYLON.Vector3, coreV: BABYLON.Vector3, endV: BABYLON.Vector3): number;
|
|
18
|
-
static RandomNumBoth(Min: any, Max: any): any;
|
|
19
|
-
}
|
package/lib/UI.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as Dazzle from '../dazzle/Module';
|
|
2
|
-
import IObject from './components/IObject';
|
|
3
|
-
export default class UI {
|
|
4
|
-
static createIconFromMesh(_id: string, _anchor: IObject, url: string, _scaling: number, _height: number): Dazzle.IconFromMesh;
|
|
5
|
-
static createIcon(_id: string, _anchor: IObject, _size: {
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
}, _height: number): Dazzle.Icon;
|
|
9
|
-
}
|
package/lib/VisualAngle.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default class VisualAngle {
|
|
2
|
-
alpha: number;
|
|
3
|
-
focus: BABYLON.Vector3;
|
|
4
|
-
radius: number;
|
|
5
|
-
beta: number;
|
|
6
|
-
minimumLimit: number;
|
|
7
|
-
maximumLimit: number;
|
|
8
|
-
minBeta: number;
|
|
9
|
-
maxBeta: number;
|
|
10
|
-
setVisual(_visual: any): void;
|
|
11
|
-
setLimit(_miniLimit: number, _maxiLimit: number): void;
|
|
12
|
-
setBeta(_minBeta: number, _maxBeta: number): void;
|
|
13
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import DefaultObject from "./DefaultObject";
|
|
2
|
-
export default class AirFlowObject extends DefaultObject {
|
|
3
|
-
bind(_m: any): void;
|
|
4
|
-
computeView(): void;
|
|
5
|
-
setFlash(_level: number): void;
|
|
6
|
-
setTransparent(_alpha?: number): void;
|
|
7
|
-
setOpaque(): void;
|
|
8
|
-
play(): void;
|
|
9
|
-
stop(): void;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import DefaultObject from "./DefaultObject";
|
|
2
|
-
export default class ConduitObject extends DefaultObject {
|
|
3
|
-
alpha: number;
|
|
4
|
-
color: string;
|
|
5
|
-
bind(_m: any): void;
|
|
6
|
-
computeView(): void;
|
|
7
|
-
setFlash(_level?: number): void;
|
|
8
|
-
setOpaque(): void;
|
|
9
|
-
setTransparent(alpha?: number): void;
|
|
10
|
-
}
|
|
@@ -1,46 +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
|
-
visualAngle: VisualAngle;
|
|
23
|
-
animation: boolean;
|
|
24
|
-
isloop: boolean;
|
|
25
|
-
isAutoPlay: boolean;
|
|
26
|
-
_isMonitor: boolean;
|
|
27
|
-
set isMonitor(_value: boolean);
|
|
28
|
-
get isMonitor(): boolean;
|
|
29
|
-
constructor(_app: App);
|
|
30
|
-
setEnabled(_value: boolean): void;
|
|
31
|
-
set showBoundingBox(_value: boolean);
|
|
32
|
-
get showBoundingBox(): boolean;
|
|
33
|
-
bind(_m: any): void;
|
|
34
|
-
computeView(): void;
|
|
35
|
-
optimization(_isOptimization: boolean): void;
|
|
36
|
-
alwaysActive(): void;
|
|
37
|
-
addEventListener(type: string, callback: Function): void;
|
|
38
|
-
removeEventListener(type: string): void;
|
|
39
|
-
setFlash(_level: number): void;
|
|
40
|
-
setOpaque(): void;
|
|
41
|
-
setTransparent(alpha?: number): void;
|
|
42
|
-
play(): void;
|
|
43
|
-
stop(): void;
|
|
44
|
-
flyTo(): void;
|
|
45
|
-
focus(): void;
|
|
46
|
-
}
|
|
@@ -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
|
-
isVisible: boolean;
|
|
9
|
-
isMonitor: boolean;
|
|
10
|
-
isEnabled: boolean;
|
|
11
|
-
visualAngle: VisualAngle;
|
|
12
|
-
effectType: EffectType;
|
|
13
|
-
bind(_m?: any): any;
|
|
14
|
-
optimization(isOptimization: boolean): any;
|
|
15
|
-
showBoundingBox: boolean;
|
|
16
|
-
setFlash(level: number): any;
|
|
17
|
-
setTransparent(): any;
|
|
18
|
-
setOpaque(): any;
|
|
19
|
-
setEnabled(isEnabled: any): any;
|
|
20
|
-
addEventListener(type: string, callback: Function): any;
|
|
21
|
-
removeEventListener(type: string): any;
|
|
22
|
-
play(isloop: boolean): any;
|
|
23
|
-
stop(): any;
|
|
24
|
-
flyTo(): any;
|
|
25
|
-
focus(): any;
|
|
26
|
-
computeView(): 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,29 +0,0 @@
|
|
|
1
|
-
import Dictionary from "../Dictionary";
|
|
2
|
-
import IObject from "./IObject";
|
|
3
|
-
import App from "../App";
|
|
4
|
-
import { ObjectType } from "./ObjectType";
|
|
5
|
-
import VisualAngle from "../VisualAngle";
|
|
6
|
-
export default class Project {
|
|
7
|
-
app: App;
|
|
8
|
-
id: string;
|
|
9
|
-
root: IObject;
|
|
10
|
-
current: IObject;
|
|
11
|
-
visualAngle: VisualAngle;
|
|
12
|
-
objectDatas: Dictionary<IObject>;
|
|
13
|
-
constructor(_app: App);
|
|
14
|
-
delete(): void;
|
|
15
|
-
optimization(): void;
|
|
16
|
-
computeView(): void;
|
|
17
|
-
getChildNodes(_id: string): IObject[];
|
|
18
|
-
getTrees(): {
|
|
19
|
-
label: string;
|
|
20
|
-
id: string;
|
|
21
|
-
type: string;
|
|
22
|
-
children: any[];
|
|
23
|
-
};
|
|
24
|
-
find(_id: string): IObject;
|
|
25
|
-
findFormObjectType(_type: ObjectType, isCurent?: boolean): IObject[];
|
|
26
|
-
show(): void;
|
|
27
|
-
getBounding(): BABYLON.BoundingInfo;
|
|
28
|
-
flyTo(): void;
|
|
29
|
-
}
|
|
@@ -1,14 +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
|
-
computeView(): void;
|
|
9
|
-
flyTo(): void;
|
|
10
|
-
focus(): void;
|
|
11
|
-
setEnabled(_value: boolean): void;
|
|
12
|
-
getBounding(): BABYLON.BoundingInfo;
|
|
13
|
-
dispose(): void;
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import App from "../App";
|
|
2
|
-
import ILightObject from "./ILightObject";
|
|
3
|
-
export default class LightObject implements ILightObject {
|
|
4
|
-
id: string;
|
|
5
|
-
sceneId: string;
|
|
6
|
-
name: string;
|
|
7
|
-
light: BABYLON.Light;
|
|
8
|
-
color: string;
|
|
9
|
-
objectType: string;
|
|
10
|
-
lightType: string;
|
|
11
|
-
intensity: number;
|
|
12
|
-
app: App;
|
|
13
|
-
constructor(_app: App);
|
|
14
|
-
load(): void;
|
|
15
|
-
}
|
package/lib/lights/Point.d.ts
DELETED
package/lib/lights/Spot.d.ts
DELETED