|
@@ -668,7 +668,11 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* Get all child-meshes of this node.
|
|
|
*/
|
|
|
- getChildMeshes(directDecendantsOnly?: boolean, predicate?: (node: Node) => boolean): AbstractMesh[];
|
|
|
+ getChildMeshes(directDescendantsOnly?: boolean, predicate?: (node: Node) => boolean): AbstractMesh[];
|
|
|
+ /**
|
|
|
+ * Get all child-transformNodes of this node.
|
|
|
+ */
|
|
|
+ getChildTransformNodes(directDescendantsOnly?: boolean, predicate?: (node: Node) => boolean): TransformNode[];
|
|
|
/**
|
|
|
* Get all direct children of this node.
|
|
|
*/
|
|
@@ -13586,6 +13590,12 @@ declare module BABYLON {
|
|
|
* The parameter `rootUrl` is a string, it's the root URL to prefix the `delayLoadingFile` property with
|
|
|
*/
|
|
|
static Parse(parsedTransformNode: any, scene: Scene, rootUrl: string): TransformNode;
|
|
|
+ /**
|
|
|
+ * Disposes the TransformNode.
|
|
|
+ * By default, all the children are also disposed unless the parameter `doNotRecurse` is set to `true`.
|
|
|
+ * Returns nothing.
|
|
|
+ */
|
|
|
+ dispose(doNotRecurse?: boolean): void;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -13686,6 +13696,70 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
+ class MorphTarget {
|
|
|
+ name: string;
|
|
|
+ animations: Animation[];
|
|
|
+ private _positions;
|
|
|
+ private _normals;
|
|
|
+ private _tangents;
|
|
|
+ private _influence;
|
|
|
+ onInfluenceChanged: Observable<boolean>;
|
|
|
+ influence: number;
|
|
|
+ constructor(name: string, influence?: number);
|
|
|
+ readonly hasPositions: boolean;
|
|
|
+ readonly hasNormals: boolean;
|
|
|
+ readonly hasTangents: boolean;
|
|
|
+ setPositions(data: Nullable<FloatArray>): void;
|
|
|
+ getPositions(): Nullable<FloatArray>;
|
|
|
+ setNormals(data: Nullable<FloatArray>): void;
|
|
|
+ getNormals(): Nullable<FloatArray>;
|
|
|
+ setTangents(data: Nullable<FloatArray>): void;
|
|
|
+ getTangents(): Nullable<FloatArray>;
|
|
|
+ /**
|
|
|
+ * Serializes the current target into a Serialization object.
|
|
|
+ * Returns the serialized object.
|
|
|
+ */
|
|
|
+ serialize(): any;
|
|
|
+ static Parse(serializationObject: any): MorphTarget;
|
|
|
+ static FromMesh(mesh: AbstractMesh, name?: string, influence?: number): MorphTarget;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class MorphTargetManager {
|
|
|
+ private _targets;
|
|
|
+ private _targetObservable;
|
|
|
+ private _activeTargets;
|
|
|
+ private _scene;
|
|
|
+ private _influences;
|
|
|
+ private _supportsNormals;
|
|
|
+ private _supportsTangents;
|
|
|
+ private _vertexCount;
|
|
|
+ private _uniqueId;
|
|
|
+ private _tempInfluences;
|
|
|
+ constructor(scene?: Nullable<Scene>);
|
|
|
+ readonly uniqueId: number;
|
|
|
+ readonly vertexCount: number;
|
|
|
+ readonly supportsNormals: boolean;
|
|
|
+ readonly supportsTangents: boolean;
|
|
|
+ readonly numTargets: number;
|
|
|
+ readonly numInfluencers: number;
|
|
|
+ readonly influences: Float32Array;
|
|
|
+ getActiveTarget(index: number): MorphTarget;
|
|
|
+ getTarget(index: number): MorphTarget;
|
|
|
+ addTarget(target: MorphTarget): void;
|
|
|
+ removeTarget(target: MorphTarget): void;
|
|
|
+ /**
|
|
|
+ * Serializes the current manager into a Serialization object.
|
|
|
+ * Returns the serialized object.
|
|
|
+ */
|
|
|
+ serialize(): any;
|
|
|
+ private _syncActiveTargets(needUpdate);
|
|
|
+ static Parse(serializationObject: any, scene: Scene): MorphTargetManager;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
class GPUParticleSystem implements IDisposable, IParticleSystem {
|
|
|
name: string;
|
|
|
id: string;
|
|
@@ -14657,70 +14731,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class MorphTarget {
|
|
|
- name: string;
|
|
|
- animations: Animation[];
|
|
|
- private _positions;
|
|
|
- private _normals;
|
|
|
- private _tangents;
|
|
|
- private _influence;
|
|
|
- onInfluenceChanged: Observable<boolean>;
|
|
|
- influence: number;
|
|
|
- constructor(name: string, influence?: number);
|
|
|
- readonly hasPositions: boolean;
|
|
|
- readonly hasNormals: boolean;
|
|
|
- readonly hasTangents: boolean;
|
|
|
- setPositions(data: Nullable<FloatArray>): void;
|
|
|
- getPositions(): Nullable<FloatArray>;
|
|
|
- setNormals(data: Nullable<FloatArray>): void;
|
|
|
- getNormals(): Nullable<FloatArray>;
|
|
|
- setTangents(data: Nullable<FloatArray>): void;
|
|
|
- getTangents(): Nullable<FloatArray>;
|
|
|
- /**
|
|
|
- * Serializes the current target into a Serialization object.
|
|
|
- * Returns the serialized object.
|
|
|
- */
|
|
|
- serialize(): any;
|
|
|
- static Parse(serializationObject: any): MorphTarget;
|
|
|
- static FromMesh(mesh: AbstractMesh, name?: string, influence?: number): MorphTarget;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class MorphTargetManager {
|
|
|
- private _targets;
|
|
|
- private _targetObservable;
|
|
|
- private _activeTargets;
|
|
|
- private _scene;
|
|
|
- private _influences;
|
|
|
- private _supportsNormals;
|
|
|
- private _supportsTangents;
|
|
|
- private _vertexCount;
|
|
|
- private _uniqueId;
|
|
|
- private _tempInfluences;
|
|
|
- constructor(scene?: Nullable<Scene>);
|
|
|
- readonly uniqueId: number;
|
|
|
- readonly vertexCount: number;
|
|
|
- readonly supportsNormals: boolean;
|
|
|
- readonly supportsTangents: boolean;
|
|
|
- readonly numTargets: number;
|
|
|
- readonly numInfluencers: number;
|
|
|
- readonly influences: Float32Array;
|
|
|
- getActiveTarget(index: number): MorphTarget;
|
|
|
- getTarget(index: number): MorphTarget;
|
|
|
- addTarget(target: MorphTarget): void;
|
|
|
- removeTarget(target: MorphTarget): void;
|
|
|
- /**
|
|
|
- * Serializes the current manager into a Serialization object.
|
|
|
- * Returns the serialized object.
|
|
|
- */
|
|
|
- serialize(): any;
|
|
|
- private _syncActiveTargets(needUpdate);
|
|
|
- static Parse(serializationObject: any, scene: Scene): MorphTargetManager;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
class AnaglyphPostProcess extends PostProcess {
|
|
|
private _passedProcess;
|
|
|
constructor(name: string, options: number | PostProcessOptions, rigCameras: Camera[], samplingMode?: number, engine?: Engine, reusable?: boolean);
|
|
@@ -17136,48 +17146,274 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class VRCameraMetrics {
|
|
|
- hResolution: number;
|
|
|
- vResolution: number;
|
|
|
- hScreenSize: number;
|
|
|
- vScreenSize: number;
|
|
|
- vScreenCenter: number;
|
|
|
- eyeToScreenDistance: number;
|
|
|
- lensSeparationDistance: number;
|
|
|
- interpupillaryDistance: number;
|
|
|
- distortionK: number[];
|
|
|
- chromaAbCorrection: number[];
|
|
|
- postProcessScaleFactor: number;
|
|
|
- lensCenterOffset: number;
|
|
|
- compensateDistortion: boolean;
|
|
|
- readonly aspectRatio: number;
|
|
|
- readonly aspectRatioFov: number;
|
|
|
- readonly leftHMatrix: Matrix;
|
|
|
- readonly rightHMatrix: Matrix;
|
|
|
- readonly leftPreViewMatrix: Matrix;
|
|
|
- readonly rightPreViewMatrix: Matrix;
|
|
|
- static GetDefault(): VRCameraMetrics;
|
|
|
+ class ArcRotateCameraGamepadInput implements ICameraInput<ArcRotateCamera> {
|
|
|
+ camera: ArcRotateCamera;
|
|
|
+ gamepad: Nullable<Gamepad>;
|
|
|
+ private _onGamepadConnectedObserver;
|
|
|
+ private _onGamepadDisconnectedObserver;
|
|
|
+ gamepadRotationSensibility: number;
|
|
|
+ gamepadMoveSensibility: number;
|
|
|
+ attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
+ detachControl(element: Nullable<HTMLElement>): void;
|
|
|
+ checkInputs(): void;
|
|
|
+ getClassName(): string;
|
|
|
+ getSimpleName(): string;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class VRDeviceOrientationFreeCamera extends DeviceOrientationCamera {
|
|
|
- constructor(name: string, position: Vector3, scene: Scene, compensateDistortion?: boolean, vrCameraMetrics?: VRCameraMetrics);
|
|
|
+ class ArcRotateCameraKeyboardMoveInput implements ICameraInput<ArcRotateCamera> {
|
|
|
+ camera: ArcRotateCamera;
|
|
|
+ private _keys;
|
|
|
+ keysUp: number[];
|
|
|
+ keysDown: number[];
|
|
|
+ keysLeft: number[];
|
|
|
+ keysRight: number[];
|
|
|
+ keysReset: number[];
|
|
|
+ panningSensibility: number;
|
|
|
+ zoomingSensibility: number;
|
|
|
+ useAltToZoom: boolean;
|
|
|
+ private _ctrlPressed;
|
|
|
+ private _altPressed;
|
|
|
+ private _onCanvasBlurObserver;
|
|
|
+ private _onKeyboardObserver;
|
|
|
+ private _engine;
|
|
|
+ private _scene;
|
|
|
+ attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
+ detachControl(element: Nullable<HTMLElement>): void;
|
|
|
+ checkInputs(): void;
|
|
|
getClassName(): string;
|
|
|
+ getSimpleName(): string;
|
|
|
}
|
|
|
- class VRDeviceOrientationGamepadCamera extends VRDeviceOrientationFreeCamera {
|
|
|
- constructor(name: string, position: Vector3, scene: Scene, compensateDistortion?: boolean, vrCameraMetrics?: VRCameraMetrics);
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class ArcRotateCameraMouseWheelInput implements ICameraInput<ArcRotateCamera> {
|
|
|
+ camera: ArcRotateCamera;
|
|
|
+ private _wheel;
|
|
|
+ private _observer;
|
|
|
+ wheelPrecision: number;
|
|
|
+ /**
|
|
|
+ * wheelDeltaPercentage will be used instead of wheelPrecision if different from 0.
|
|
|
+ * It defines the percentage of current camera.radius to use as delta when wheel is used.
|
|
|
+ */
|
|
|
+ wheelDeltaPercentage: number;
|
|
|
+ attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
+ detachControl(element: Nullable<HTMLElement>): void;
|
|
|
getClassName(): string;
|
|
|
+ getSimpleName(): string;
|
|
|
}
|
|
|
- class VRDeviceOrientationArcRotateCamera extends ArcRotateCamera {
|
|
|
- constructor(name: string, alpha: number, beta: number, radius: number, target: Vector3, scene: Scene, compensateDistortion?: boolean, vrCameraMetrics?: VRCameraMetrics);
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class ArcRotateCameraPointersInput implements ICameraInput<ArcRotateCamera> {
|
|
|
+ camera: ArcRotateCamera;
|
|
|
+ buttons: number[];
|
|
|
+ angularSensibilityX: number;
|
|
|
+ angularSensibilityY: number;
|
|
|
+ pinchPrecision: number;
|
|
|
+ /**
|
|
|
+ * pinchDeltaPercentage will be used instead of pinchPrecision if different from 0.
|
|
|
+ * It defines the percentage of current camera.radius to use as delta when pinch zoom is used.
|
|
|
+ */
|
|
|
+ pinchDeltaPercentage: number;
|
|
|
+ panningSensibility: number;
|
|
|
+ multiTouchPanning: boolean;
|
|
|
+ multiTouchPanAndZoom: boolean;
|
|
|
+ private _isPanClick;
|
|
|
+ pinchInwards: boolean;
|
|
|
+ private _pointerInput;
|
|
|
+ private _observer;
|
|
|
+ private _onMouseMove;
|
|
|
+ private _onGestureStart;
|
|
|
+ private _onGesture;
|
|
|
+ private _MSGestureHandler;
|
|
|
+ private _onLostFocus;
|
|
|
+ private _onContextMenu;
|
|
|
+ attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
+ detachControl(element: Nullable<HTMLElement>): void;
|
|
|
getClassName(): string;
|
|
|
+ getSimpleName(): string;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- interface VRTeleportationOptions {
|
|
|
- floorMeshName?: string;
|
|
|
+ class ArcRotateCameraVRDeviceOrientationInput implements ICameraInput<ArcRotateCamera> {
|
|
|
+ camera: ArcRotateCamera;
|
|
|
+ alphaCorrection: number;
|
|
|
+ betaCorrection: number;
|
|
|
+ gammaCorrection: number;
|
|
|
+ private _alpha;
|
|
|
+ private _gamma;
|
|
|
+ private _dirty;
|
|
|
+ private _deviceOrientationHandler;
|
|
|
+ constructor();
|
|
|
+ attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
+ _onOrientationEvent(evt: DeviceOrientationEvent): void;
|
|
|
+ checkInputs(): void;
|
|
|
+ detachControl(element: Nullable<HTMLElement>): void;
|
|
|
+ getClassName(): string;
|
|
|
+ getSimpleName(): string;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class FreeCameraDeviceOrientationInput implements ICameraInput<FreeCamera> {
|
|
|
+ private _camera;
|
|
|
+ private _screenOrientationAngle;
|
|
|
+ private _constantTranform;
|
|
|
+ private _screenQuaternion;
|
|
|
+ private _alpha;
|
|
|
+ private _beta;
|
|
|
+ private _gamma;
|
|
|
+ constructor();
|
|
|
+ camera: FreeCamera;
|
|
|
+ attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
+ private _orientationChanged;
|
|
|
+ private _deviceOrientation;
|
|
|
+ detachControl(element: Nullable<HTMLElement>): void;
|
|
|
+ checkInputs(): void;
|
|
|
+ getClassName(): string;
|
|
|
+ getSimpleName(): string;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class FreeCameraGamepadInput implements ICameraInput<FreeCamera> {
|
|
|
+ camera: FreeCamera;
|
|
|
+ gamepad: Nullable<Gamepad>;
|
|
|
+ private _onGamepadConnectedObserver;
|
|
|
+ private _onGamepadDisconnectedObserver;
|
|
|
+ gamepadAngularSensibility: number;
|
|
|
+ gamepadMoveSensibility: number;
|
|
|
+ private _cameraTransform;
|
|
|
+ private _deltaTransform;
|
|
|
+ private _vector3;
|
|
|
+ private _vector2;
|
|
|
+ attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
+ detachControl(element: Nullable<HTMLElement>): void;
|
|
|
+ checkInputs(): void;
|
|
|
+ getClassName(): string;
|
|
|
+ getSimpleName(): string;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class FreeCameraKeyboardMoveInput implements ICameraInput<FreeCamera> {
|
|
|
+ camera: FreeCamera;
|
|
|
+ private _keys;
|
|
|
+ private _onCanvasBlurObserver;
|
|
|
+ private _onKeyboardObserver;
|
|
|
+ private _engine;
|
|
|
+ private _scene;
|
|
|
+ keysUp: number[];
|
|
|
+ keysDown: number[];
|
|
|
+ keysLeft: number[];
|
|
|
+ keysRight: number[];
|
|
|
+ attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
+ detachControl(element: Nullable<HTMLElement>): void;
|
|
|
+ checkInputs(): void;
|
|
|
+ getClassName(): string;
|
|
|
+ _onLostFocus(e: FocusEvent): void;
|
|
|
+ getSimpleName(): string;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class FreeCameraMouseInput implements ICameraInput<FreeCamera> {
|
|
|
+ touchEnabled: boolean;
|
|
|
+ camera: FreeCamera;
|
|
|
+ buttons: number[];
|
|
|
+ angularSensibility: number;
|
|
|
+ private _pointerInput;
|
|
|
+ private _onMouseMove;
|
|
|
+ private _observer;
|
|
|
+ private previousPosition;
|
|
|
+ constructor(touchEnabled?: boolean);
|
|
|
+ attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
+ detachControl(element: Nullable<HTMLElement>): void;
|
|
|
+ getClassName(): string;
|
|
|
+ getSimpleName(): string;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class FreeCameraTouchInput implements ICameraInput<FreeCamera> {
|
|
|
+ camera: FreeCamera;
|
|
|
+ private _offsetX;
|
|
|
+ private _offsetY;
|
|
|
+ private _pointerPressed;
|
|
|
+ private _pointerInput;
|
|
|
+ private _observer;
|
|
|
+ private _onLostFocus;
|
|
|
+ touchAngularSensibility: number;
|
|
|
+ touchMoveSensibility: number;
|
|
|
+ attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
+ detachControl(element: Nullable<HTMLElement>): void;
|
|
|
+ checkInputs(): void;
|
|
|
+ getClassName(): string;
|
|
|
+ getSimpleName(): string;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class FreeCameraVirtualJoystickInput implements ICameraInput<FreeCamera> {
|
|
|
+ camera: FreeCamera;
|
|
|
+ private _leftjoystick;
|
|
|
+ private _rightjoystick;
|
|
|
+ getLeftJoystick(): VirtualJoystick;
|
|
|
+ getRightJoystick(): VirtualJoystick;
|
|
|
+ checkInputs(): void;
|
|
|
+ attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
+ detachControl(element: Nullable<HTMLElement>): void;
|
|
|
+ getClassName(): string;
|
|
|
+ getSimpleName(): string;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class VRCameraMetrics {
|
|
|
+ hResolution: number;
|
|
|
+ vResolution: number;
|
|
|
+ hScreenSize: number;
|
|
|
+ vScreenSize: number;
|
|
|
+ vScreenCenter: number;
|
|
|
+ eyeToScreenDistance: number;
|
|
|
+ lensSeparationDistance: number;
|
|
|
+ interpupillaryDistance: number;
|
|
|
+ distortionK: number[];
|
|
|
+ chromaAbCorrection: number[];
|
|
|
+ postProcessScaleFactor: number;
|
|
|
+ lensCenterOffset: number;
|
|
|
+ compensateDistortion: boolean;
|
|
|
+ readonly aspectRatio: number;
|
|
|
+ readonly aspectRatioFov: number;
|
|
|
+ readonly leftHMatrix: Matrix;
|
|
|
+ readonly rightHMatrix: Matrix;
|
|
|
+ readonly leftPreViewMatrix: Matrix;
|
|
|
+ readonly rightPreViewMatrix: Matrix;
|
|
|
+ static GetDefault(): VRCameraMetrics;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class VRDeviceOrientationFreeCamera extends DeviceOrientationCamera {
|
|
|
+ constructor(name: string, position: Vector3, scene: Scene, compensateDistortion?: boolean, vrCameraMetrics?: VRCameraMetrics);
|
|
|
+ getClassName(): string;
|
|
|
+ }
|
|
|
+ class VRDeviceOrientationGamepadCamera extends VRDeviceOrientationFreeCamera {
|
|
|
+ constructor(name: string, position: Vector3, scene: Scene, compensateDistortion?: boolean, vrCameraMetrics?: VRCameraMetrics);
|
|
|
+ getClassName(): string;
|
|
|
+ }
|
|
|
+ class VRDeviceOrientationArcRotateCamera extends ArcRotateCamera {
|
|
|
+ constructor(name: string, alpha: number, beta: number, radius: number, target: Vector3, scene: Scene, compensateDistortion?: boolean, vrCameraMetrics?: VRCameraMetrics);
|
|
|
+ getClassName(): string;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ interface VRTeleportationOptions {
|
|
|
+ floorMeshName?: string;
|
|
|
}
|
|
|
class VRExperienceHelper {
|
|
|
webVROptions: WebVROptions;
|
|
@@ -17350,232 +17586,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class ArcRotateCameraGamepadInput implements ICameraInput<ArcRotateCamera> {
|
|
|
- camera: ArcRotateCamera;
|
|
|
- gamepad: Nullable<Gamepad>;
|
|
|
- private _onGamepadConnectedObserver;
|
|
|
- private _onGamepadDisconnectedObserver;
|
|
|
- gamepadRotationSensibility: number;
|
|
|
- gamepadMoveSensibility: number;
|
|
|
- attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
- detachControl(element: Nullable<HTMLElement>): void;
|
|
|
- checkInputs(): void;
|
|
|
- getClassName(): string;
|
|
|
- getSimpleName(): string;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class ArcRotateCameraKeyboardMoveInput implements ICameraInput<ArcRotateCamera> {
|
|
|
- camera: ArcRotateCamera;
|
|
|
- private _keys;
|
|
|
- keysUp: number[];
|
|
|
- keysDown: number[];
|
|
|
- keysLeft: number[];
|
|
|
- keysRight: number[];
|
|
|
- keysReset: number[];
|
|
|
- panningSensibility: number;
|
|
|
- zoomingSensibility: number;
|
|
|
- useAltToZoom: boolean;
|
|
|
- private _ctrlPressed;
|
|
|
- private _altPressed;
|
|
|
- private _onCanvasBlurObserver;
|
|
|
- private _onKeyboardObserver;
|
|
|
- private _engine;
|
|
|
- private _scene;
|
|
|
- attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
- detachControl(element: Nullable<HTMLElement>): void;
|
|
|
- checkInputs(): void;
|
|
|
- getClassName(): string;
|
|
|
- getSimpleName(): string;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class ArcRotateCameraMouseWheelInput implements ICameraInput<ArcRotateCamera> {
|
|
|
- camera: ArcRotateCamera;
|
|
|
- private _wheel;
|
|
|
- private _observer;
|
|
|
- wheelPrecision: number;
|
|
|
- /**
|
|
|
- * wheelDeltaPercentage will be used instead of wheelPrecision if different from 0.
|
|
|
- * It defines the percentage of current camera.radius to use as delta when wheel is used.
|
|
|
- */
|
|
|
- wheelDeltaPercentage: number;
|
|
|
- attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
- detachControl(element: Nullable<HTMLElement>): void;
|
|
|
- getClassName(): string;
|
|
|
- getSimpleName(): string;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class ArcRotateCameraPointersInput implements ICameraInput<ArcRotateCamera> {
|
|
|
- camera: ArcRotateCamera;
|
|
|
- buttons: number[];
|
|
|
- angularSensibilityX: number;
|
|
|
- angularSensibilityY: number;
|
|
|
- pinchPrecision: number;
|
|
|
- /**
|
|
|
- * pinchDeltaPercentage will be used instead of pinchPrecision if different from 0.
|
|
|
- * It defines the percentage of current camera.radius to use as delta when pinch zoom is used.
|
|
|
- */
|
|
|
- pinchDeltaPercentage: number;
|
|
|
- panningSensibility: number;
|
|
|
- multiTouchPanning: boolean;
|
|
|
- multiTouchPanAndZoom: boolean;
|
|
|
- private _isPanClick;
|
|
|
- pinchInwards: boolean;
|
|
|
- private _pointerInput;
|
|
|
- private _observer;
|
|
|
- private _onMouseMove;
|
|
|
- private _onGestureStart;
|
|
|
- private _onGesture;
|
|
|
- private _MSGestureHandler;
|
|
|
- private _onLostFocus;
|
|
|
- private _onContextMenu;
|
|
|
- attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
- detachControl(element: Nullable<HTMLElement>): void;
|
|
|
- getClassName(): string;
|
|
|
- getSimpleName(): string;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class ArcRotateCameraVRDeviceOrientationInput implements ICameraInput<ArcRotateCamera> {
|
|
|
- camera: ArcRotateCamera;
|
|
|
- alphaCorrection: number;
|
|
|
- betaCorrection: number;
|
|
|
- gammaCorrection: number;
|
|
|
- private _alpha;
|
|
|
- private _gamma;
|
|
|
- private _dirty;
|
|
|
- private _deviceOrientationHandler;
|
|
|
- constructor();
|
|
|
- attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
- _onOrientationEvent(evt: DeviceOrientationEvent): void;
|
|
|
- checkInputs(): void;
|
|
|
- detachControl(element: Nullable<HTMLElement>): void;
|
|
|
- getClassName(): string;
|
|
|
- getSimpleName(): string;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class FreeCameraDeviceOrientationInput implements ICameraInput<FreeCamera> {
|
|
|
- private _camera;
|
|
|
- private _screenOrientationAngle;
|
|
|
- private _constantTranform;
|
|
|
- private _screenQuaternion;
|
|
|
- private _alpha;
|
|
|
- private _beta;
|
|
|
- private _gamma;
|
|
|
- constructor();
|
|
|
- camera: FreeCamera;
|
|
|
- attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
- private _orientationChanged;
|
|
|
- private _deviceOrientation;
|
|
|
- detachControl(element: Nullable<HTMLElement>): void;
|
|
|
- checkInputs(): void;
|
|
|
- getClassName(): string;
|
|
|
- getSimpleName(): string;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class FreeCameraGamepadInput implements ICameraInput<FreeCamera> {
|
|
|
- camera: FreeCamera;
|
|
|
- gamepad: Nullable<Gamepad>;
|
|
|
- private _onGamepadConnectedObserver;
|
|
|
- private _onGamepadDisconnectedObserver;
|
|
|
- gamepadAngularSensibility: number;
|
|
|
- gamepadMoveSensibility: number;
|
|
|
- private _cameraTransform;
|
|
|
- private _deltaTransform;
|
|
|
- private _vector3;
|
|
|
- private _vector2;
|
|
|
- attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
- detachControl(element: Nullable<HTMLElement>): void;
|
|
|
- checkInputs(): void;
|
|
|
- getClassName(): string;
|
|
|
- getSimpleName(): string;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class FreeCameraKeyboardMoveInput implements ICameraInput<FreeCamera> {
|
|
|
- camera: FreeCamera;
|
|
|
- private _keys;
|
|
|
- private _onCanvasBlurObserver;
|
|
|
- private _onKeyboardObserver;
|
|
|
- private _engine;
|
|
|
- private _scene;
|
|
|
- keysUp: number[];
|
|
|
- keysDown: number[];
|
|
|
- keysLeft: number[];
|
|
|
- keysRight: number[];
|
|
|
- attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
- detachControl(element: Nullable<HTMLElement>): void;
|
|
|
- checkInputs(): void;
|
|
|
- getClassName(): string;
|
|
|
- _onLostFocus(e: FocusEvent): void;
|
|
|
- getSimpleName(): string;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class FreeCameraMouseInput implements ICameraInput<FreeCamera> {
|
|
|
- touchEnabled: boolean;
|
|
|
- camera: FreeCamera;
|
|
|
- buttons: number[];
|
|
|
- angularSensibility: number;
|
|
|
- private _pointerInput;
|
|
|
- private _onMouseMove;
|
|
|
- private _observer;
|
|
|
- private previousPosition;
|
|
|
- constructor(touchEnabled?: boolean);
|
|
|
- attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
- detachControl(element: Nullable<HTMLElement>): void;
|
|
|
- getClassName(): string;
|
|
|
- getSimpleName(): string;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class FreeCameraTouchInput implements ICameraInput<FreeCamera> {
|
|
|
- camera: FreeCamera;
|
|
|
- private _offsetX;
|
|
|
- private _offsetY;
|
|
|
- private _pointerPressed;
|
|
|
- private _pointerInput;
|
|
|
- private _observer;
|
|
|
- private _onLostFocus;
|
|
|
- touchAngularSensibility: number;
|
|
|
- touchMoveSensibility: number;
|
|
|
- attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
- detachControl(element: Nullable<HTMLElement>): void;
|
|
|
- checkInputs(): void;
|
|
|
- getClassName(): string;
|
|
|
- getSimpleName(): string;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class FreeCameraVirtualJoystickInput implements ICameraInput<FreeCamera> {
|
|
|
- camera: FreeCamera;
|
|
|
- private _leftjoystick;
|
|
|
- private _rightjoystick;
|
|
|
- getLeftJoystick(): VirtualJoystick;
|
|
|
- getRightJoystick(): VirtualJoystick;
|
|
|
- checkInputs(): void;
|
|
|
- attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
- detachControl(element: Nullable<HTMLElement>): void;
|
|
|
- getClassName(): string;
|
|
|
- getSimpleName(): string;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
interface IOctreeContainer<T> {
|
|
|
blocks: Array<OctreeBlock<T>>;
|
|
|
}
|