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,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/{lib → tools}/GUID.d.ts
RENAMED
|
@@ -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
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
}
|
package/tools/axios.d.ts
ADDED
package/core/dazzle.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("Dazzle",[],n):"object"==typeof exports?exports.Dazzle=n():e.Dazzle=n()}(window,function(){return r={},o.m=t=[function(e,n,t){"use strict";t.r(n);var r={};t.r(r),t.d(r,"SceneLoader",function(){return u}),t.d(r,"Global",function(){return o});class o{}class u{static create(e){let n=new o;return n.canvas=document.createElement("canvas"),n.canvas.style.cssText="position: absolute;width: 100%;height: 100%;background-color: transparent;outline-width: 0;",e.appendChild(n.canvas),n.engine=new BABYLON.Engine(n.canvas,!0,{premultipliedAlpha:!0,preserveDrawingBuffer:!0,stencil:!0}),n.engine.enableOfflineSupport=!1,n.scene=new BABYLON.Scene(n.engine,{useGeometryUniqueIdsMap:!0,useClonedMeshMap:!0,useMaterialMeshMap:!0}),n.scene.useRightHandedSystem=!0,n.scene.getBoundingBoxRenderer().frontColor=BABYLON.Color3.Green(),n.scene.getBoundingBoxRenderer().showBackLines=!1,n}static load(){}}n.default=r}],o.c=r,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(n,e){if(1&e&&(n=o(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)o.d(t,r,function(e){return n[e]}.bind(null,r));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="",o(o.s=0).default;function o(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,o),n.l=!0,n.exports}var t,r});
|