mx3d 0.4.10 → 0.5.1
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/earths/TileLoader.d.ts +6 -0
- 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 +23 -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 +22 -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/DCModel/DCModel.d.ts +0 -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/Tile.d.ts → earths/3dTile.d.ts} +0 -0
package/effects/Cloud.d.ts
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import App from "../App";
|
|
2
|
-
import IEffect from "./IEffect";
|
|
3
|
-
export default class CloudEffect implements IEffect {
|
|
4
|
-
app: App;
|
|
5
|
-
cloudNum: number;
|
|
6
|
-
canvas: HTMLCanvasElement;
|
|
7
|
-
canvasCloudCtx: CanvasRenderingContext2D;
|
|
8
|
-
clouds: Array<Cloud>;
|
|
9
|
-
X: number;
|
|
10
|
-
Y: number;
|
|
11
|
-
constructor(_app: App);
|
|
12
|
-
start(): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
render(): void;
|
|
15
|
-
clearCanvasCloud(): void;
|
|
16
|
-
}
|
|
17
|
-
export declare class Cloud {
|
|
18
|
-
rainSpeed: number;
|
|
19
|
-
ctx: CanvasRenderingContext2D;
|
|
20
|
-
c: string;
|
|
21
|
-
x: number;
|
|
22
|
-
y: number;
|
|
23
|
-
r: number;
|
|
24
|
-
v: {
|
|
25
|
-
x: number;
|
|
26
|
-
y: number;
|
|
27
|
-
};
|
|
28
|
-
color: {
|
|
29
|
-
r: number;
|
|
30
|
-
g: number;
|
|
31
|
-
b: number;
|
|
32
|
-
a: number;
|
|
33
|
-
};
|
|
34
|
-
X: number;
|
|
35
|
-
constructor(ctx: any, x: any, y: any, _X: any);
|
|
36
|
-
init(x: number, y: number): void;
|
|
37
|
-
draw(): void;
|
|
38
|
-
gradient(): CanvasGradient;
|
|
39
|
-
updatePosition(): void;
|
|
40
|
-
wrapPosition(): void;
|
|
41
|
-
render(): void;
|
|
42
|
-
}
|
|
1
|
+
import { App } from "../components/App";
|
|
2
|
+
import IEffect from "./IEffect";
|
|
3
|
+
export default class CloudEffect implements IEffect {
|
|
4
|
+
app: App;
|
|
5
|
+
cloudNum: number;
|
|
6
|
+
canvas: HTMLCanvasElement;
|
|
7
|
+
canvasCloudCtx: CanvasRenderingContext2D;
|
|
8
|
+
clouds: Array<Cloud>;
|
|
9
|
+
X: number;
|
|
10
|
+
Y: number;
|
|
11
|
+
constructor(_app: App);
|
|
12
|
+
start(): void;
|
|
13
|
+
close(): void;
|
|
14
|
+
render(): void;
|
|
15
|
+
clearCanvasCloud(): void;
|
|
16
|
+
}
|
|
17
|
+
export declare class Cloud {
|
|
18
|
+
rainSpeed: number;
|
|
19
|
+
ctx: CanvasRenderingContext2D;
|
|
20
|
+
c: string;
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
r: number;
|
|
24
|
+
v: {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
};
|
|
28
|
+
color: {
|
|
29
|
+
r: number;
|
|
30
|
+
g: number;
|
|
31
|
+
b: number;
|
|
32
|
+
a: number;
|
|
33
|
+
};
|
|
34
|
+
X: number;
|
|
35
|
+
constructor(ctx: any, x: any, y: any, _X: any);
|
|
36
|
+
init(x: number, y: number): void;
|
|
37
|
+
draw(): void;
|
|
38
|
+
gradient(): CanvasGradient;
|
|
39
|
+
updatePosition(): void;
|
|
40
|
+
wrapPosition(): void;
|
|
41
|
+
render(): void;
|
|
42
|
+
}
|
package/effects/Effect.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import Dictionary from "../tools/Dictionary";
|
|
2
|
-
import App from "../App";
|
|
3
|
-
import IEffect from "./IEffect";
|
|
4
|
-
export declare enum EffectType {
|
|
5
|
-
Thunder = "Thunder",
|
|
6
|
-
Rain = "Rain",
|
|
7
|
-
Cloud = "Cloud"
|
|
8
|
-
}
|
|
9
|
-
export
|
|
10
|
-
static effects: Dictionary<IEffect>;
|
|
11
|
-
static add(_effectType: EffectType, _app: App): void;
|
|
12
|
-
static remove(_effectType: EffectType): void;
|
|
13
|
-
}
|
|
1
|
+
import Dictionary from "../tools/Dictionary";
|
|
2
|
+
import { App } from "../components/App";
|
|
3
|
+
import IEffect from "./IEffect";
|
|
4
|
+
export declare enum EffectType {
|
|
5
|
+
Thunder = "Thunder",
|
|
6
|
+
Rain = "Rain",
|
|
7
|
+
Cloud = "Cloud"
|
|
8
|
+
}
|
|
9
|
+
export declare class Effect {
|
|
10
|
+
static effects: Dictionary<IEffect>;
|
|
11
|
+
static add(_effectType: EffectType, _app: App): void;
|
|
12
|
+
static remove(_effectType: EffectType): void;
|
|
13
|
+
}
|
package/effects/IEffect.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default interface IEffect {
|
|
2
|
-
start: Function;
|
|
3
|
-
close: Function;
|
|
4
|
-
}
|
|
1
|
+
export default interface IEffect {
|
|
2
|
+
start: Function;
|
|
3
|
+
close: Function;
|
|
4
|
+
}
|
package/effects/Rain.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import App from "../App";
|
|
2
|
-
import IEffect from "./IEffect";
|
|
3
|
-
export default class RainEffect implements IEffect {
|
|
4
|
-
app: App;
|
|
5
|
-
rainNum: number;
|
|
6
|
-
canvas: HTMLCanvasElement;
|
|
7
|
-
canvasRainCtx: CanvasRenderingContext2D;
|
|
8
|
-
rains: Array<Rain>;
|
|
9
|
-
X: number;
|
|
10
|
-
Y: number;
|
|
11
|
-
constructor(_app: App);
|
|
12
|
-
start(): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
render(): void;
|
|
15
|
-
clearCanvasRain(): void;
|
|
16
|
-
}
|
|
17
|
-
export declare class Rain {
|
|
18
|
-
rainSpeed: number;
|
|
19
|
-
ctx: CanvasRenderingContext2D;
|
|
20
|
-
Y: number;
|
|
21
|
-
x: number;
|
|
22
|
-
y: number;
|
|
23
|
-
r: number;
|
|
24
|
-
c: string;
|
|
25
|
-
v: {
|
|
26
|
-
y: number;
|
|
27
|
-
};
|
|
28
|
-
constructor(ctx: any, x: any, y: any, r: any, _Y: any);
|
|
29
|
-
init(x: number, y: number, r: number): void;
|
|
30
|
-
draw(): void;
|
|
31
|
-
updatePosition(): void;
|
|
32
|
-
wrapPosition(): void;
|
|
33
|
-
render(): void;
|
|
34
|
-
}
|
|
1
|
+
import { App } from "../components/App";
|
|
2
|
+
import IEffect from "./IEffect";
|
|
3
|
+
export default class RainEffect implements IEffect {
|
|
4
|
+
app: App;
|
|
5
|
+
rainNum: number;
|
|
6
|
+
canvas: HTMLCanvasElement;
|
|
7
|
+
canvasRainCtx: CanvasRenderingContext2D;
|
|
8
|
+
rains: Array<Rain>;
|
|
9
|
+
X: number;
|
|
10
|
+
Y: number;
|
|
11
|
+
constructor(_app: App);
|
|
12
|
+
start(): void;
|
|
13
|
+
close(): void;
|
|
14
|
+
render(): void;
|
|
15
|
+
clearCanvasRain(): void;
|
|
16
|
+
}
|
|
17
|
+
export declare class Rain {
|
|
18
|
+
rainSpeed: number;
|
|
19
|
+
ctx: CanvasRenderingContext2D;
|
|
20
|
+
Y: number;
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
r: number;
|
|
24
|
+
c: string;
|
|
25
|
+
v: {
|
|
26
|
+
y: number;
|
|
27
|
+
};
|
|
28
|
+
constructor(ctx: any, x: any, y: any, r: any, _Y: any);
|
|
29
|
+
init(x: number, y: number, r: number): void;
|
|
30
|
+
draw(): void;
|
|
31
|
+
updatePosition(): void;
|
|
32
|
+
wrapPosition(): void;
|
|
33
|
+
render(): void;
|
|
34
|
+
}
|
package/effects/Thunder.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import App from "../App";
|
|
2
|
-
import IEffect from "./IEffect";
|
|
3
|
-
export default class ThunderEffect implements IEffect {
|
|
4
|
-
app: App;
|
|
5
|
-
thunderNum: number;
|
|
6
|
-
canvas: HTMLCanvasElement;
|
|
7
|
-
canvasThunderCtx: CanvasRenderingContext2D;
|
|
8
|
-
thunders: Array<Thunder>;
|
|
9
|
-
X: number;
|
|
10
|
-
Y: number;
|
|
11
|
-
constructor(_app: App);
|
|
12
|
-
start(): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
render(): void;
|
|
15
|
-
clearCanvasThunder(): void;
|
|
16
|
-
}
|
|
17
|
-
export declare class Thunder {
|
|
18
|
-
ctx: CanvasRenderingContext2D;
|
|
19
|
-
x: number;
|
|
20
|
-
y: number;
|
|
21
|
-
r: number;
|
|
22
|
-
l: any;
|
|
23
|
-
c: string;
|
|
24
|
-
Y: number;
|
|
25
|
-
X: number;
|
|
26
|
-
constructor(ctx: any, x: any, y: any, r: any, _X: any, _Y: any);
|
|
27
|
-
init(x: number, y: number, r: number): void;
|
|
28
|
-
draw(): void;
|
|
29
|
-
updateParams(): void;
|
|
30
|
-
render(): void;
|
|
31
|
-
}
|
|
1
|
+
import { App } from "../components/App";
|
|
2
|
+
import IEffect from "./IEffect";
|
|
3
|
+
export default class ThunderEffect implements IEffect {
|
|
4
|
+
app: App;
|
|
5
|
+
thunderNum: number;
|
|
6
|
+
canvas: HTMLCanvasElement;
|
|
7
|
+
canvasThunderCtx: CanvasRenderingContext2D;
|
|
8
|
+
thunders: Array<Thunder>;
|
|
9
|
+
X: number;
|
|
10
|
+
Y: number;
|
|
11
|
+
constructor(_app: App);
|
|
12
|
+
start(): void;
|
|
13
|
+
close(): void;
|
|
14
|
+
render(): void;
|
|
15
|
+
clearCanvasThunder(): void;
|
|
16
|
+
}
|
|
17
|
+
export declare class Thunder {
|
|
18
|
+
ctx: CanvasRenderingContext2D;
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
r: number;
|
|
22
|
+
l: any;
|
|
23
|
+
c: string;
|
|
24
|
+
Y: number;
|
|
25
|
+
X: number;
|
|
26
|
+
constructor(ctx: any, x: any, y: any, r: any, _X: any, _Y: any);
|
|
27
|
+
init(x: number, y: number, r: number): void;
|
|
28
|
+
draw(): void;
|
|
29
|
+
updateParams(): void;
|
|
30
|
+
render(): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as Runtime from '../runtime';
|
|
2
|
+
import { App } from "../components/App";
|
|
3
|
+
import IEvent from "./IEvent";
|
|
4
|
+
export default class DefaultEvent implements IEvent {
|
|
5
|
+
app: App;
|
|
6
|
+
isMove: number;
|
|
7
|
+
constructor(_app: App);
|
|
8
|
+
runRender(): void;
|
|
9
|
+
onPointer(pointerInfo: Runtime.PointerInfo): void;
|
|
10
|
+
onKeyboard(kbInfo: Runtime.KeyboardInfo): void;
|
|
11
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare enum EventType {
|
|
2
|
-
leftClick = "leftClick",
|
|
3
|
-
rightClick = "rightClick",
|
|
4
|
-
doubleClick = "doubleClick",
|
|
5
|
-
eover = "eover",
|
|
6
|
-
longPress = "longPress",
|
|
7
|
-
out = "out",
|
|
8
|
-
click = "click"
|
|
9
|
-
}
|
|
1
|
+
export declare enum EventType {
|
|
2
|
+
leftClick = "leftClick",
|
|
3
|
+
rightClick = "rightClick",
|
|
4
|
+
doubleClick = "doubleClick",
|
|
5
|
+
eover = "eover",
|
|
6
|
+
longPress = "longPress",
|
|
7
|
+
out = "out",
|
|
8
|
+
click = "click"
|
|
9
|
+
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import * as Runtime from '../runtime';
|
|
2
|
+
import { App } from "../components/App";
|
|
3
|
+
import IEvent from "./IEvent";
|
|
4
|
+
export default class FPSCameraEvent implements IEvent {
|
|
5
|
+
app: App;
|
|
6
|
+
isFPS: boolean;
|
|
7
|
+
angle: number;
|
|
8
|
+
direction: Runtime.Vector3;
|
|
9
|
+
isMoveLeft: boolean;
|
|
10
|
+
isMoveRight: boolean;
|
|
11
|
+
isMoveDown: boolean;
|
|
12
|
+
isMoveUp: boolean;
|
|
13
|
+
constructor(_app: App);
|
|
14
|
+
runRender(): void;
|
|
15
|
+
onPointer(pointerInfo: Runtime.PointerInfo): void;
|
|
16
|
+
onKeyboard(_e: Runtime.KeyboardInfo): void;
|
|
17
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export default class HubService {
|
|
2
|
-
static connection: any;
|
|
3
|
-
static listener(_Url: string): Promise<void>;
|
|
4
|
-
static start(): Promise<void>;
|
|
5
|
-
}
|
|
1
|
+
export default class HubService {
|
|
2
|
+
static connection: any;
|
|
3
|
+
static listener(_Url: string): Promise<void>;
|
|
4
|
+
static start(): Promise<void>;
|
|
5
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -1,30 +1,23 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
static
|
|
17
|
-
static
|
|
18
|
-
static
|
|
19
|
-
static
|
|
20
|
-
static
|
|
21
|
-
static
|
|
22
|
-
static
|
|
23
|
-
|
|
24
|
-
static UI: typeof UI;
|
|
25
|
-
static Builder: typeof Builder;
|
|
26
|
-
static EffectType: typeof EffectType;
|
|
27
|
-
static EventType: typeof EventType;
|
|
28
|
-
static ThunderAndRain: typeof ThunderAndRain;
|
|
29
|
-
static Effect: typeof Effect;
|
|
30
|
-
}
|
|
1
|
+
import { App } from "./components/App";
|
|
2
|
+
import { AlarmFlashing } from "./components/AlarmFlashing";
|
|
3
|
+
import { Builder } from "./components/Builder";
|
|
4
|
+
import { EventType } from "./events/EventType";
|
|
5
|
+
import { StatusType } from "./components/StatusType";
|
|
6
|
+
import { UI } from "./components/UI";
|
|
7
|
+
import { Effect, EffectType } from "./effects/Effect";
|
|
8
|
+
import TileLoader from "./earths/TileLoader";
|
|
9
|
+
export default class MX3D {
|
|
10
|
+
static accessToken: string;
|
|
11
|
+
static pk: string;
|
|
12
|
+
static sl: string;
|
|
13
|
+
static rl: string;
|
|
14
|
+
static App: typeof App;
|
|
15
|
+
static AlarmFlashing: typeof AlarmFlashing;
|
|
16
|
+
static UI: typeof UI;
|
|
17
|
+
static Builder: typeof Builder;
|
|
18
|
+
static EffectType: typeof EffectType;
|
|
19
|
+
static EventType: typeof EventType;
|
|
20
|
+
static StatusType: typeof StatusType;
|
|
21
|
+
static Effect: typeof Effect;
|
|
22
|
+
static TileLoader: typeof TileLoader;
|
|
23
|
+
}
|
package/lights/Directional.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import LightObject from "./LightObject";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import LightObject from "./LightObject";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class Directional extends LightObject {
|
|
4
|
+
direction: Runtime.Vector3;
|
|
5
|
+
position: Runtime.Vector3;
|
|
6
|
+
light: Runtime.DirectionalLight;
|
|
7
|
+
load(): void;
|
|
8
|
+
}
|
package/lights/Hemispheric.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import LightObject from "./LightObject";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import LightObject from "./LightObject";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class Hemispheric extends LightObject {
|
|
4
|
+
direction: Runtime.Vector3;
|
|
5
|
+
light: Runtime.HemisphericLight;
|
|
6
|
+
load(): void;
|
|
7
|
+
}
|
package/lights/ILightObject.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import * as Runtime from '../runtime';
|
|
2
|
+
export default interface ILightObject {
|
|
3
|
+
id: string;
|
|
4
|
+
sceneId: string;
|
|
5
|
+
name: string;
|
|
6
|
+
light: Runtime.Light;
|
|
7
|
+
color: string;
|
|
8
|
+
lightType: string;
|
|
9
|
+
intensity: number;
|
|
10
|
+
load: Function;
|
|
11
|
+
}
|
package/lights/LightObject.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import App from "../App";
|
|
2
|
-
import ILightObject from "./ILightObject";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { App } from "../components/App";
|
|
2
|
+
import ILightObject from "./ILightObject";
|
|
3
|
+
import * as Runtime from '../runtime';
|
|
4
|
+
export default class LightObject implements ILightObject {
|
|
5
|
+
id: string;
|
|
6
|
+
sceneId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
light: Runtime.Light;
|
|
9
|
+
color: string;
|
|
10
|
+
objectType: string;
|
|
11
|
+
lightType: string;
|
|
12
|
+
intensity: number;
|
|
13
|
+
app: App;
|
|
14
|
+
constructor(_app: App);
|
|
15
|
+
load(): void;
|
|
16
|
+
}
|
package/lights/LightType.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare enum LightType {
|
|
2
|
-
Point = "Point",
|
|
3
|
-
Spot = "Spot",
|
|
4
|
-
Directional = "Directional",
|
|
5
|
-
Hemispheric = "Hemispheric"
|
|
6
|
-
}
|
|
7
|
-
declare let typeFromat: Function;
|
|
8
|
-
export default typeFromat;
|
|
1
|
+
export declare enum LightType {
|
|
2
|
+
Point = "Point",
|
|
3
|
+
Spot = "Spot",
|
|
4
|
+
Directional = "Directional",
|
|
5
|
+
Hemispheric = "Hemispheric"
|
|
6
|
+
}
|
|
7
|
+
declare let typeFromat: Function;
|
|
8
|
+
export default typeFromat;
|
package/lights/Point.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import LightObject from "./LightObject";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import LightObject from "./LightObject";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class Point extends LightObject {
|
|
4
|
+
position: Runtime.Vector3;
|
|
5
|
+
light: Runtime.PointLight;
|
|
6
|
+
range: number;
|
|
7
|
+
load(): void;
|
|
8
|
+
}
|
package/lights/Spot.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import LightObject from "./LightObject";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import LightObject from "./LightObject";
|
|
2
|
+
import * as Runtime from '../runtime';
|
|
3
|
+
export default class Spot extends LightObject {
|
|
4
|
+
direction: Runtime.Vector3;
|
|
5
|
+
position: Runtime.Vector3;
|
|
6
|
+
angle: number;
|
|
7
|
+
exponent: number;
|
|
8
|
+
range: number;
|
|
9
|
+
light: Runtime.SpotLight;
|
|
10
|
+
load(): void;
|
|
11
|
+
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import mapboxgl from "mapbox-gl";
|
|
2
|
-
export default class BabylonLayer implements mapboxgl.CustomLayerInterface {
|
|
3
|
-
readonly id: string;
|
|
4
|
-
readonly type: "custom";
|
|
5
|
-
readonly renderingMode: "3d";
|
|
6
|
-
drones: {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
z: number;
|
|
10
|
-
};
|
|
11
|
-
initialCoordinates: mapboxgl.LngLatLike;
|
|
12
|
-
private map;
|
|
13
|
-
private scene;
|
|
14
|
-
private camera;
|
|
15
|
-
private modelMatrix;
|
|
16
|
-
private sceneOrigin;
|
|
17
|
-
private modelScale;
|
|
18
|
-
private modelsId;
|
|
19
|
-
private rotation;
|
|
20
|
-
constructor(id: string, _modelsId?: string, _initialCoordinates?: mapboxgl.LngLatLike, _rotation?: number);
|
|
21
|
-
recalculateProjectionMatrix(coordinates: mapboxgl.LngLatLike): void;
|
|
22
|
-
onAdd: (map: any, gl: WebGLRenderingContext) => void;
|
|
23
|
-
render: (_gl: WebGLRenderingContext, matrix: number[]) => void;
|
|
24
|
-
}
|
package/mapboxgl/Earth.d.ts
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import mapboxgl from "mapbox-gl";
|
|
2
|
-
export default class Earth {
|
|
3
|
-
initialCoordinates: any;
|
|
4
|
-
map: any;
|
|
5
|
-
constructor(_container: string, _initialCoordinates?: mapboxgl.LngLatLike);
|
|
6
|
-
load(_action: Function): void;
|
|
7
|
-
laodScene(_modelId: string, _initialCoordinates?: [], _rotation?: number): void;
|
|
8
|
-
flyTo(_center?: [], _zoom?: number, _bearing?: number, _pitch?: number, _duration?: number): void;
|
|
9
|
-
}
|
|
File without changes
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ObjectType } from "./ObjectType";
|
|
2
|
-
export default class BaseModel {
|
|
3
|
-
extension: string;
|
|
4
|
-
groupId: string;
|
|
5
|
-
heat: number;
|
|
6
|
-
height: number;
|
|
7
|
-
insertTime: string;
|
|
8
|
-
isTiling: boolean;
|
|
9
|
-
length: number;
|
|
10
|
-
modelId: string;
|
|
11
|
-
modelName: string;
|
|
12
|
-
modelType: ObjectType;
|
|
13
|
-
modelTypeName: string;
|
|
14
|
-
width: number;
|
|
15
|
-
}
|
|
1
|
+
import { ObjectType } from "./ObjectType";
|
|
2
|
+
export default class BaseModel {
|
|
3
|
+
extension: string;
|
|
4
|
+
groupId: string;
|
|
5
|
+
heat: number;
|
|
6
|
+
height: number;
|
|
7
|
+
insertTime: string;
|
|
8
|
+
isTiling: boolean;
|
|
9
|
+
length: number;
|
|
10
|
+
modelId: string;
|
|
11
|
+
modelName: string;
|
|
12
|
+
modelType: ObjectType;
|
|
13
|
+
modelTypeName: string;
|
|
14
|
+
width: number;
|
|
15
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import DefaultObject from "./DefaultObject";
|
|
2
|
-
export default class BuildingObject extends DefaultObject {
|
|
3
|
-
completed(): void;
|
|
4
|
-
computeView(): void;
|
|
5
|
-
getInto(): void;
|
|
6
|
-
goBack(): void;
|
|
7
|
-
}
|
|
1
|
+
import DefaultObject from "./DefaultObject";
|
|
2
|
+
export default class BuildingObject extends DefaultObject {
|
|
3
|
+
completed(): void;
|
|
4
|
+
computeView(): void;
|
|
5
|
+
getInto(): void;
|
|
6
|
+
goBack(): void;
|
|
7
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import DefaultObject from "./DefaultObject";
|
|
2
|
-
export default class CabinetObject extends DefaultObject {
|
|
3
|
-
computeView(): void;
|
|
4
|
-
}
|
|
1
|
+
import DefaultObject from "./DefaultObject";
|
|
2
|
+
export default class CabinetObject extends DefaultObject {
|
|
3
|
+
computeView(): void;
|
|
4
|
+
}
|