mx3d 0.4.10 → 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.
Files changed (81) hide show
  1. package/components/AlarmFlashing.d.ts +12 -11
  2. package/{App.d.ts → components/App.d.ts} +43 -42
  3. package/components/Builder.d.ts +73 -72
  4. package/components/Capacity.d.ts +11 -10
  5. package/components/Environment.d.ts +31 -30
  6. package/components/HeatMap.d.ts +14 -13
  7. package/components/Icon.d.ts +33 -32
  8. package/components/IconFromMesh.d.ts +22 -21
  9. package/components/Line.d.ts +14 -13
  10. package/components/LineFromMesh.d.ts +13 -12
  11. package/components/StatusType.d.ts +5 -5
  12. package/components/UI.d.ts +10 -10
  13. package/effects/Cloud.d.ts +42 -42
  14. package/effects/Effect.d.ts +13 -13
  15. package/effects/IEffect.d.ts +4 -4
  16. package/effects/Rain.d.ts +34 -34
  17. package/effects/Thunder.d.ts +31 -31
  18. package/events/DefaultEvent.d.ts +11 -0
  19. package/{components → events}/EventType.d.ts +9 -9
  20. package/{components/Event → events}/FPSCameraEvent.d.ts +17 -16
  21. package/events/IEvent.d.ts +6 -0
  22. package/{HubService.d.ts → hub/HubService.d.ts} +5 -5
  23. package/index.d.ts +21 -30
  24. package/lights/Directional.d.ts +8 -7
  25. package/lights/Hemispheric.d.ts +7 -6
  26. package/lights/ILightObject.d.ts +11 -10
  27. package/lights/LightObject.d.ts +16 -15
  28. package/lights/LightType.d.ts +8 -8
  29. package/lights/Point.d.ts +8 -7
  30. package/lights/Spot.d.ts +11 -10
  31. package/mapboxgl/BabylonLayer.d.ts +0 -24
  32. package/mapboxgl/Earth.d.ts +0 -9
  33. package/mapboxgl/Parse3dtile.d.ts +0 -0
  34. package/models/{baseModel.d.ts → BaseModel.d.ts} +15 -15
  35. package/models/BuildingObject.d.ts +7 -7
  36. package/models/CabinetObject.d.ts +4 -4
  37. package/models/CampusObject.d.ts +8 -8
  38. package/models/ConduitObject.d.ts +17 -16
  39. package/models/CornerObject.d.ts +45 -44
  40. package/models/DefaultObject.d.ts +61 -60
  41. package/models/DoorObject.d.ts +7 -7
  42. package/models/FloorObject.d.ts +11 -10
  43. package/models/IBase.d.ts +23 -22
  44. package/models/IObject.d.ts +15 -15
  45. package/models/IRegion.d.ts +49 -48
  46. package/models/LeakWaterObject.d.ts +12 -11
  47. package/models/ObjectType.d.ts +16 -16
  48. package/models/OptimizedWallObject.d.ts +7 -6
  49. package/models/Project.d.ts +30 -30
  50. package/models/StoreyObject.d.ts +10 -9
  51. package/models/UI3DTextObject.d.ts +14 -14
  52. package/models/VirtualBoxObject.d.ts +13 -12
  53. package/models/WallObject.d.ts +11 -10
  54. package/models/WindowObject.d.ts +7 -7
  55. package/mx3d.kernel.min.js +1 -0
  56. package/mx3d.min.js +1 -109
  57. package/mx3d.seat.min.js +1 -0
  58. package/package.json +1 -1
  59. package/runtime/index.d.ts +49 -0
  60. package/tools/ArrayEx.d.ts +3 -3
  61. package/tools/BaseNode.d.ts +5 -5
  62. package/tools/CameraController.d.ts +21 -20
  63. package/tools/Dictionary.d.ts +13 -13
  64. package/tools/GUID.d.ts +3 -3
  65. package/tools/RES.d.ts +3 -3
  66. package/tools/Resources.d.ts +26 -25
  67. package/tools/Sight.d.ts +15 -14
  68. package/tools/ToolTips.d.ts +14 -13
  69. package/tools/Tools.d.ts +21 -20
  70. package/{axios.d.ts → tools/axios.d.ts} +2 -2
  71. package/DCModel/DCModel.d.ts +0 -2
  72. package/ThunderAndRain.d.ts +0 -25
  73. package/components/EffectMgr.d.ts +0 -11
  74. package/components/EffectType.d.ts +0 -5
  75. package/components/Event/DefaultEvent.d.ts +0 -10
  76. package/components/Event/IEvent.d.ts +0 -5
  77. package/core/mx3d.kernel.min.js +0 -1
  78. package/core/mx3d.loaders.min.js +0 -6
  79. package/core/mx3d.seat.min.js +0 -1146
  80. package/models/RegionObject.d.ts +0 -14
  81. /package/{Earth → earth}/Tile.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/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): string;
3
- }
1
+ export default class RES {
2
+ static de(str: string): any;
3
+ }
@@ -1,25 +1,26 @@
1
- import Dictionary from "./Dictionary";
2
- import App from "../App";
3
- export default class Resources {
4
- app: App;
5
- walls: Dictionary<BABYLON.AbstractMesh>;
6
- resources: Dictionary<BABYLON.AssetContainer>;
7
- ndoeMats: Dictionary<BABYLON.NodeMaterial>;
8
- transparentBox: BABYLON.Mesh;
9
- BOX: BABYLON.Mesh;
10
- FogTex: BABYLON.Texture;
11
- constructor(_app: App);
12
- loadModelMesh(baseModel: any): Promise<BABYLON.AssetContainer>;
13
- loadModelMeshAsync(baseModel: any, callback: Function): void;
14
- Materials: Dictionary<BABYLON.StandardMaterial>;
15
- Textures: Dictionary<BABYLON.Texture>;
16
- GetMaterial(textureData: any): BABYLON.StandardMaterial;
17
- GetTexture(textureData: any): BABYLON.Texture;
18
- LoadLightMap(id: string, name: string): BABYLON.Texture;
19
- MergeMaterials: Dictionary<BABYLON.CustomMaterial>;
20
- GetMergeMaterial(textureData: any): BABYLON.CustomMaterial;
21
- delete(isAll?: boolean): void;
22
- GetWalls(url: string, projectId: string): Promise<void>;
23
- setTransparent(_visibility?: number): void;
24
- setTransparentById(modelId: string, _visibility?: number): void;
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
- export default class Sight {
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
- toJosn(_sightJson: any): void;
11
- toString(): string;
12
- setLimit(_miniLimit: number, _maxiLimit: number): void;
13
- setBeta(_minBeta: number, _maxBeta: number): void;
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
+ }
@@ -1,13 +1,14 @@
1
- import App from "../App";
2
- export default class ToolTips {
3
- app: App;
4
- url: string;
5
- ele: HTMLDivElement;
6
- private _text;
7
- set text(vlaue: string);
8
- constructor(_app: App);
9
- update(e: BABYLON.PointerInfo): void;
10
- close(): void;
11
- setBackground(_url: string): void;
12
- dispose(): void;
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
- 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
- static rand(min: number, max: number): number;
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;
@@ -1,2 +0,0 @@
1
- export default class DCModel {
2
- }
@@ -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,11 +0,0 @@
1
- export default class EffectMgr {
2
- static colors: {
3
- 1: BABYLON.Color3;
4
- 2: BABYLON.Color3;
5
- 3: BABYLON.Color3;
6
- 4: BABYLON.Color3;
7
- 5: BABYLON.Color3;
8
- 6: BABYLON.Color3;
9
- };
10
- static init(): void;
11
- }
@@ -1,5 +0,0 @@
1
- export declare enum EffectType {
2
- Opaque = 0,
3
- Flash = 1,
4
- Transparent = 2
5
- }
@@ -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
- }
@@ -1,5 +0,0 @@
1
- export default interface IEvent {
2
- runRender(): void;
3
- onPointer(e: BABYLON.PointerInfo): void;
4
- onKeyboard(e: BABYLON.KeyboardInfo): void;
5
- }