mx3d 0.4.9 → 0.5.0
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/components/AlarmFlashing.d.ts +12 -11
- package/{App.d.ts → components/App.d.ts} +43 -42
- package/components/Builder.d.ts +73 -72
- package/components/Capacity.d.ts +11 -10
- package/components/Environment.d.ts +31 -30
- package/components/HeatMap.d.ts +14 -13
- package/components/Icon.d.ts +33 -32
- package/components/IconFromMesh.d.ts +22 -21
- package/components/Line.d.ts +14 -13
- package/components/LineFromMesh.d.ts +13 -12
- package/components/StatusType.d.ts +5 -5
- package/components/UI.d.ts +10 -10
- package/effects/Cloud.d.ts +42 -42
- package/effects/Effect.d.ts +13 -13
- package/effects/IEffect.d.ts +4 -4
- package/effects/Rain.d.ts +34 -34
- package/effects/Thunder.d.ts +31 -31
- package/events/DefaultEvent.d.ts +11 -0
- package/{components → events}/EventType.d.ts +9 -9
- package/{components/Event → events}/FPSCameraEvent.d.ts +17 -16
- package/events/IEvent.d.ts +6 -0
- package/{HubService.d.ts → hub/HubService.d.ts} +5 -5
- package/index.d.ts +21 -30
- package/lights/Directional.d.ts +8 -7
- package/lights/Hemispheric.d.ts +7 -6
- package/lights/ILightObject.d.ts +11 -10
- package/lights/LightObject.d.ts +16 -15
- package/lights/LightType.d.ts +8 -8
- package/lights/Point.d.ts +8 -7
- package/lights/Spot.d.ts +11 -10
- package/mapboxgl/BabylonLayer.d.ts +0 -24
- package/mapboxgl/Earth.d.ts +0 -9
- package/mapboxgl/Parse3dtile.d.ts +0 -0
- package/models/{baseModel.d.ts → BaseModel.d.ts} +15 -15
- package/models/BuildingObject.d.ts +7 -7
- package/models/CabinetObject.d.ts +4 -4
- package/models/CampusObject.d.ts +8 -8
- package/models/ConduitObject.d.ts +17 -16
- package/models/CornerObject.d.ts +45 -44
- package/models/DefaultObject.d.ts +61 -60
- package/models/DoorObject.d.ts +7 -7
- package/models/FloorObject.d.ts +11 -10
- package/models/IBase.d.ts +23 -22
- package/models/IObject.d.ts +15 -15
- package/models/IRegion.d.ts +49 -48
- package/models/LeakWaterObject.d.ts +12 -11
- package/models/ObjectType.d.ts +16 -16
- package/models/OptimizedWallObject.d.ts +7 -6
- package/models/Project.d.ts +30 -30
- package/models/StoreyObject.d.ts +10 -9
- package/models/UI3DTextObject.d.ts +14 -14
- package/models/VirtualBoxObject.d.ts +13 -12
- package/models/WallObject.d.ts +11 -10
- package/models/WindowObject.d.ts +7 -7
- package/mx3d.kernel.min.js +1 -0
- package/mx3d.min.js +1 -109
- package/mx3d.seat.min.js +1 -0
- package/package.json +1 -1
- package/runtime/index.d.ts +49 -0
- package/tools/ArrayEx.d.ts +3 -3
- package/tools/BaseNode.d.ts +5 -5
- package/tools/CameraController.d.ts +21 -20
- package/tools/Dictionary.d.ts +13 -13
- package/tools/GUID.d.ts +3 -3
- package/tools/RES.d.ts +3 -3
- package/tools/Resources.d.ts +26 -25
- package/tools/Sight.d.ts +15 -14
- package/tools/ToolTips.d.ts +14 -13
- package/tools/Tools.d.ts +21 -20
- package/{axios.d.ts → tools/axios.d.ts} +2 -2
- package/ThunderAndRain.d.ts +0 -25
- package/components/EffectMgr.d.ts +0 -11
- package/components/EffectType.d.ts +0 -5
- package/components/Event/DefaultEvent.d.ts +0 -10
- package/components/Event/IEvent.d.ts +0 -5
- package/core/mx3d.kernel.min.js +0 -1
- package/core/mx3d.loaders.min.js +0 -6
- package/core/mx3d.seat.min.js +0 -1146
- package/models/RegionObject.d.ts +0 -14
- /package/{Earth → earth}/Tile.d.ts +0 -0
package/tools/Dictionary.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export default class Dictionary<T> {
|
|
2
|
-
map: {
|
|
3
|
-
[key: string]: T;
|
|
4
|
-
};
|
|
5
|
-
constructor();
|
|
6
|
-
add(key: string, value: T): void;
|
|
7
|
-
find(key: string): T;
|
|
8
|
-
remove(key: string): void;
|
|
9
|
-
termRemove(callback: Function): void;
|
|
10
|
-
showAll(): void;
|
|
11
|
-
count(): number;
|
|
12
|
-
clear(): void;
|
|
13
|
-
}
|
|
1
|
+
export default class Dictionary<T> {
|
|
2
|
+
map: {
|
|
3
|
+
[key: string]: T;
|
|
4
|
+
};
|
|
5
|
+
constructor();
|
|
6
|
+
add(key: string, value: T): void;
|
|
7
|
+
find(key: string): T;
|
|
8
|
+
remove(key: string): void;
|
|
9
|
+
termRemove(callback: Function): void;
|
|
10
|
+
showAll(): void;
|
|
11
|
+
count(): number;
|
|
12
|
+
clear(): void;
|
|
13
|
+
}
|
package/tools/GUID.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default class GUID {
|
|
2
|
-
static getGUID(length: number): string;
|
|
3
|
-
}
|
|
1
|
+
export default class GUID {
|
|
2
|
+
static getGUID(length: number): string;
|
|
3
|
+
}
|
package/tools/RES.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default class RES {
|
|
2
|
-
static de(str: string):
|
|
3
|
-
}
|
|
1
|
+
export default class RES {
|
|
2
|
+
static de(str: string): any;
|
|
3
|
+
}
|
package/tools/Resources.d.ts
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import Dictionary from "./Dictionary";
|
|
2
|
-
import App from "../App";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
import Dictionary from "./Dictionary";
|
|
2
|
+
import { App } from "../components/App";
|
|
3
|
+
import * as Runtime from '../runtime';
|
|
4
|
+
export default class Resources {
|
|
5
|
+
app: App;
|
|
6
|
+
walls: Dictionary<Runtime.AbstractMesh>;
|
|
7
|
+
resources: Dictionary<Runtime.AssetContainer>;
|
|
8
|
+
ndoeMats: Dictionary<Runtime.NodeMaterial>;
|
|
9
|
+
transparentBox: Runtime.Mesh;
|
|
10
|
+
BOX: Runtime.Mesh;
|
|
11
|
+
FogTex: Runtime.Texture;
|
|
12
|
+
constructor(_app: App);
|
|
13
|
+
loadModelMesh(baseModel: any): Promise<Runtime.AssetContainer>;
|
|
14
|
+
loadModelMeshAsync(baseModel: any, callback: Function): void;
|
|
15
|
+
Materials: Dictionary<Runtime.StandardMaterial>;
|
|
16
|
+
Textures: Dictionary<Runtime.Texture>;
|
|
17
|
+
GetMaterial(textureData: any): Runtime.StandardMaterial;
|
|
18
|
+
GetTexture(textureData: any): Runtime.Texture;
|
|
19
|
+
LoadLightMap(id: string, name: string): Runtime.Texture;
|
|
20
|
+
MergeMaterials: Dictionary<Runtime.CustomMaterial>;
|
|
21
|
+
GetMergeMaterial(textureData: any): Runtime.CustomMaterial;
|
|
22
|
+
delete(isAll?: boolean): void;
|
|
23
|
+
GetWalls(url: string, projectId: string): Promise<void>;
|
|
24
|
+
setTransparent(_visibility?: number): void;
|
|
25
|
+
setTransparentById(modelId: string, _visibility?: number): void;
|
|
26
|
+
}
|
package/tools/Sight.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import * as Runtime from '../runtime';
|
|
2
|
+
export default class Sight {
|
|
3
|
+
alpha: number;
|
|
4
|
+
focus: Runtime.Vector3;
|
|
5
|
+
radius: number;
|
|
6
|
+
beta: number;
|
|
7
|
+
minimumLimit: number;
|
|
8
|
+
maximumLimit: number;
|
|
9
|
+
minBeta: number;
|
|
10
|
+
maxBeta: number;
|
|
11
|
+
toJosn(_sightJson: any): void;
|
|
12
|
+
toString(): string;
|
|
13
|
+
setLimit(_miniLimit: number, _maxiLimit: number): void;
|
|
14
|
+
setBeta(_minBeta: number, _maxBeta: number): void;
|
|
15
|
+
}
|
package/tools/ToolTips.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import App from "../App";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { App } from "../components/App";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class ToolTips {
|
|
4
|
+
app: App;
|
|
5
|
+
url: string;
|
|
6
|
+
ele: HTMLDivElement;
|
|
7
|
+
private _text;
|
|
8
|
+
set text(vlaue: string);
|
|
9
|
+
constructor(_app: App);
|
|
10
|
+
update(e: Runtime.PointerInfo): void;
|
|
11
|
+
close(): void;
|
|
12
|
+
setBackground(_url: string): void;
|
|
13
|
+
dispose(): void;
|
|
14
|
+
}
|
package/tools/Tools.d.ts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import App from "../App";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
static
|
|
5
|
-
static
|
|
6
|
-
static
|
|
7
|
-
static
|
|
8
|
-
static
|
|
9
|
-
static
|
|
10
|
-
static
|
|
11
|
-
static
|
|
12
|
-
static
|
|
13
|
-
static
|
|
14
|
-
static
|
|
15
|
-
static
|
|
16
|
-
static
|
|
17
|
-
static
|
|
18
|
-
static
|
|
19
|
-
static
|
|
20
|
-
|
|
1
|
+
import { App } from "../components/App";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export declare class Tools {
|
|
4
|
+
static vector3ToJson(old: Runtime.Vector3): any;
|
|
5
|
+
static vector3ARRToJson(olds: Runtime.Vector3[]): Runtime.Vector3[];
|
|
6
|
+
static ToVector3(old: any): Runtime.Vector3;
|
|
7
|
+
static ToARRVector3(olds: any[]): Runtime.Vector3[];
|
|
8
|
+
static computeBounds(mscene: Runtime.Mesh): Runtime.BoundingInfo;
|
|
9
|
+
static computeBoundsToARR(_meshs: Array<Runtime.Mesh>): Runtime.BoundingInfo;
|
|
10
|
+
static Expand(polygon: Array<Runtime.Vector3>, expand: number): Array<Runtime.Vector3>;
|
|
11
|
+
static norm(x: number, y: number): number;
|
|
12
|
+
static MergeMeshes(meshes: Array<Runtime.Mesh>, app: App): Runtime.Mesh;
|
|
13
|
+
static DeconsTructMesh(mesh: any, height: any, app: App): Array<Runtime.Mesh>;
|
|
14
|
+
static getVisualAngle(_bound: Runtime.BoundingInfo, app: App): any;
|
|
15
|
+
static pathTransformation(oldPath: Array<Runtime.Vector3>, radius: number): any[];
|
|
16
|
+
static createTube(id: string, paths: Array<Runtime.Vector3>, radius: number, app: App): Runtime.Mesh;
|
|
17
|
+
static getAngleFromVector2(startV: Runtime.Vector2, coreV: Runtime.Vector2, endV: Runtime.Vector2): number;
|
|
18
|
+
static getAngleFromVector3(startV: Runtime.Vector3, coreV: Runtime.Vector3, endV: Runtime.Vector3): number;
|
|
19
|
+
static RandomNumBoth(Min: any, Max: any): any;
|
|
20
|
+
static rand(min: number, max: number): number;
|
|
21
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const instance: import("axios").AxiosInstance;
|
|
2
|
-
export default instance;
|
|
1
|
+
declare const instance: import("axios").AxiosInstance;
|
|
2
|
+
export default instance;
|
package/ThunderAndRain.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export default class ThunderAndRain {
|
|
2
|
-
static canvasThunder: HTMLCanvasElement;
|
|
3
|
-
static canvasCloud: HTMLCanvasElement;
|
|
4
|
-
static canvasRain: HTMLCanvasElement;
|
|
5
|
-
static canvasThunderCtx: any;
|
|
6
|
-
static canvasCloudCtx: any;
|
|
7
|
-
static canvasRainCtx: any;
|
|
8
|
-
static thunders: Array<any>;
|
|
9
|
-
static clouds: Array<any>;
|
|
10
|
-
static rains: Array<any>;
|
|
11
|
-
static X: number;
|
|
12
|
-
static Y: number;
|
|
13
|
-
static rand(min: any, max: any): number;
|
|
14
|
-
static init(): void;
|
|
15
|
-
static onResize(): void;
|
|
16
|
-
static clearCanvasThunder(): void;
|
|
17
|
-
static clearCanvasRain(): void;
|
|
18
|
-
static clearCanvasCloud(): void;
|
|
19
|
-
/********************
|
|
20
|
-
Render
|
|
21
|
-
********************/
|
|
22
|
-
static render(): void;
|
|
23
|
-
static stop(): void;
|
|
24
|
-
static start(): void;
|
|
25
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import App from "../../App";
|
|
2
|
-
import IEvent from "./IEvent";
|
|
3
|
-
export default class DefaultEvent implements IEvent {
|
|
4
|
-
app: App;
|
|
5
|
-
isMove: number;
|
|
6
|
-
constructor(_app: App);
|
|
7
|
-
runRender(): void;
|
|
8
|
-
onPointer(pointerInfo: BABYLON.PointerInfo): void;
|
|
9
|
-
onKeyboard(kbInfo: BABYLON.KeyboardInfo): void;
|
|
10
|
-
}
|