mx3d 0.0.50 → 0.0.51
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/index.d.ts +31 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export class App {
|
|
|
28
28
|
dispose(): void;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export
|
|
31
|
+
export class Capacity {
|
|
32
32
|
anchor: IObject;
|
|
33
33
|
mesh: BABYLON.Mesh;
|
|
34
34
|
ratio: number;
|
|
@@ -80,6 +80,33 @@ export class Environment {
|
|
|
80
80
|
setLightIntensity(_intensity?: number): void;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
export class DefaultEvent implements IEvent {
|
|
84
|
+
app: App;
|
|
85
|
+
runRender(): void;
|
|
86
|
+
onPointer(_pointerInfo: BABYLON.PointerInfo): void;
|
|
87
|
+
onKeyboard(_kbInfo: BABYLON.KeyboardInfo): void;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export class FPSCameraEvent implements IEvent {
|
|
91
|
+
app: App;
|
|
92
|
+
isFPS: boolean;
|
|
93
|
+
angle: number;
|
|
94
|
+
direction: BABYLON.Vector3;
|
|
95
|
+
isMoveLeft: boolean;
|
|
96
|
+
isMoveRight: boolean;
|
|
97
|
+
isMoveDown: boolean;
|
|
98
|
+
isMoveUp: boolean;
|
|
99
|
+
runRender(): void;
|
|
100
|
+
onPointer(_pointerInfo: BABYLON.PointerInfo): void;
|
|
101
|
+
onKeyboard(_e: BABYLON.KeyboardInfo): void;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface IEvent {
|
|
105
|
+
runRender(): void;
|
|
106
|
+
onPointer(e: BABYLON.PointerInfo): void;
|
|
107
|
+
onKeyboard(e: BABYLON.KeyboardInfo): void;
|
|
108
|
+
}
|
|
109
|
+
|
|
83
110
|
export enum EventType {
|
|
84
111
|
leftClick = "leftClick",
|
|
85
112
|
rightClick = "rightClick",
|
|
@@ -411,7 +438,7 @@ export class Project {
|
|
|
411
438
|
app: App;
|
|
412
439
|
id: string;
|
|
413
440
|
root: IObject;
|
|
414
|
-
current:
|
|
441
|
+
current: RegionObject;
|
|
415
442
|
Sight: Sight;
|
|
416
443
|
objectDatas: Dictionary<IObject>;
|
|
417
444
|
constructor(_app: App);
|
|
@@ -484,6 +511,8 @@ export class CameraController {
|
|
|
484
511
|
lookToTheFront(_object: IObject, _sheep?: number): void;
|
|
485
512
|
computeCameraView(): void;
|
|
486
513
|
_wheel(_p: any): void;
|
|
514
|
+
switchArcRotateCamera(): void;
|
|
515
|
+
switchFPSCamera(): void;
|
|
487
516
|
}
|
|
488
517
|
|
|
489
518
|
export class Dictionary<T> {
|