|
@@ -5771,52 +5771,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class LensFlare {
|
|
|
- size: number;
|
|
|
- position: number;
|
|
|
- color: Color3;
|
|
|
- texture: Nullable<Texture>;
|
|
|
- alphaMode: number;
|
|
|
-
|
|
|
- static AddFlare(size: number, position: number, color: Color3, imgUrl: string, system: LensFlareSystem): LensFlare;
|
|
|
- constructor(size: number, position: number, color: Color3, imgUrl: string, system: LensFlareSystem);
|
|
|
- dispose(): void;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class LensFlareSystem {
|
|
|
- name: string;
|
|
|
- lensFlares: LensFlare[];
|
|
|
- borderLimit: number;
|
|
|
- viewportBorder: number;
|
|
|
- meshesSelectionPredicate: (mesh: AbstractMesh) => boolean;
|
|
|
- layerMask: number;
|
|
|
- id: string;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- constructor(name: string, emitter: any, scene: Scene);
|
|
|
- isEnabled: boolean;
|
|
|
- getScene(): Scene;
|
|
|
- getEmitter(): any;
|
|
|
- setEmitter(newEmitter: any): void;
|
|
|
- getEmitterPosition(): Vector3;
|
|
|
- computeEffectivePosition(globalViewport: Viewport): boolean;
|
|
|
-
|
|
|
- render(): boolean;
|
|
|
- dispose(): void;
|
|
|
- static Parse(parsedLensFlareSystem: any, scene: Scene, rootUrl: string): LensFlareSystem;
|
|
|
- serialize(): any;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
class DirectionalLight extends ShadowLight {
|
|
|
|
|
|
/**
|
|
@@ -6350,6 +6304,52 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
+ class LensFlare {
|
|
|
+ size: number;
|
|
|
+ position: number;
|
|
|
+ color: Color3;
|
|
|
+ texture: Nullable<Texture>;
|
|
|
+ alphaMode: number;
|
|
|
+
|
|
|
+ static AddFlare(size: number, position: number, color: Color3, imgUrl: string, system: LensFlareSystem): LensFlare;
|
|
|
+ constructor(size: number, position: number, color: Color3, imgUrl: string, system: LensFlareSystem);
|
|
|
+ dispose(): void;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class LensFlareSystem {
|
|
|
+ name: string;
|
|
|
+ lensFlares: LensFlare[];
|
|
|
+ borderLimit: number;
|
|
|
+ viewportBorder: number;
|
|
|
+ meshesSelectionPredicate: (mesh: AbstractMesh) => boolean;
|
|
|
+ layerMask: number;
|
|
|
+ id: string;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ constructor(name: string, emitter: any, scene: Scene);
|
|
|
+ isEnabled: boolean;
|
|
|
+ getScene(): Scene;
|
|
|
+ getEmitter(): any;
|
|
|
+ setEmitter(newEmitter: any): void;
|
|
|
+ getEmitterPosition(): Vector3;
|
|
|
+ computeEffectivePosition(globalViewport: Viewport): boolean;
|
|
|
+
|
|
|
+ render(): boolean;
|
|
|
+ dispose(): void;
|
|
|
+ static Parse(parsedLensFlareSystem: any, scene: Scene, rootUrl: string): LensFlareSystem;
|
|
|
+ serialize(): any;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
interface ILoadingScreen {
|
|
|
displayLoadingUI: () => void;
|
|
|
hideLoadingUI: () => void;
|
|
@@ -10072,6 +10072,70 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
+ class MorphTarget {
|
|
|
+ name: string;
|
|
|
+ animations: Animation[];
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ 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 {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ 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;
|
|
|
+
|
|
|
+ static Parse(serializationObject: any, scene: Scene): MorphTargetManager;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
class AbstractMesh extends TransformNode implements IDisposable, ICullable, IGetSetVerticesData {
|
|
|
static OCCLUSION_TYPE_NONE: number;
|
|
|
static OCCLUSION_TYPE_OPTIMISTIC: number;
|
|
@@ -13630,70 +13694,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class MorphTarget {
|
|
|
- name: string;
|
|
|
- animations: Animation[];
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- 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 {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- 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;
|
|
|
-
|
|
|
- static Parse(serializationObject: any, scene: Scene): MorphTargetManager;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
class GPUParticleSystem implements IDisposable, IParticleSystem {
|
|
|
name: string;
|
|
|
id: string;
|
|
@@ -14831,36 +14831,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class ReflectionProbe {
|
|
|
- name: string;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- invertYAxis: boolean;
|
|
|
- position: Vector3;
|
|
|
- constructor(name: string, size: number, scene: Scene, generateMipMaps?: boolean);
|
|
|
- samples: number;
|
|
|
- refreshRate: number;
|
|
|
- getScene(): Scene;
|
|
|
- readonly cubeTexture: RenderTargetTexture;
|
|
|
- readonly renderList: Nullable<AbstractMesh[]>;
|
|
|
- attachToMesh(mesh: AbstractMesh): void;
|
|
|
- /**
|
|
|
- * Specifies whether or not the stencil and depth buffer are cleared between two rendering groups.
|
|
|
- *
|
|
|
- * @param renderingGroupId The rendering group id corresponding to its index
|
|
|
- * @param autoClearDepthStencil Automatically clears depth and stencil between groups if true.
|
|
|
- */
|
|
|
- setRenderingAutoClearDepthStencil(renderingGroupId: number, autoClearDepthStencil: boolean): void;
|
|
|
- dispose(): void;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
class AnaglyphPostProcess extends PostProcess {
|
|
|
|
|
|
constructor(name: string, options: number | PostProcessOptions, rigCameras: Camera[], samplingMode?: number, engine?: Engine, reusable?: boolean);
|
|
@@ -15374,12 +15344,42 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class BoundingBoxRenderer {
|
|
|
- frontColor: Color3;
|
|
|
- backColor: Color3;
|
|
|
- showBackLines: boolean;
|
|
|
- renderList: SmartArray<BoundingBox>;
|
|
|
-
|
|
|
+ class ReflectionProbe {
|
|
|
+ name: string;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ invertYAxis: boolean;
|
|
|
+ position: Vector3;
|
|
|
+ constructor(name: string, size: number, scene: Scene, generateMipMaps?: boolean);
|
|
|
+ samples: number;
|
|
|
+ refreshRate: number;
|
|
|
+ getScene(): Scene;
|
|
|
+ readonly cubeTexture: RenderTargetTexture;
|
|
|
+ readonly renderList: Nullable<AbstractMesh[]>;
|
|
|
+ attachToMesh(mesh: AbstractMesh): void;
|
|
|
+ /**
|
|
|
+ * Specifies whether or not the stencil and depth buffer are cleared between two rendering groups.
|
|
|
+ *
|
|
|
+ * @param renderingGroupId The rendering group id corresponding to its index
|
|
|
+ * @param autoClearDepthStencil Automatically clears depth and stencil between groups if true.
|
|
|
+ */
|
|
|
+ setRenderingAutoClearDepthStencil(renderingGroupId: number, autoClearDepthStencil: boolean): void;
|
|
|
+ dispose(): void;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class BoundingBoxRenderer {
|
|
|
+ frontColor: Color3;
|
|
|
+ backColor: Color3;
|
|
|
+ showBackLines: boolean;
|
|
|
+ renderList: SmartArray<BoundingBox>;
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -17240,232 +17240,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- class ArcRotateCameraGamepadInput implements ICameraInput<ArcRotateCamera> {
|
|
|
- camera: ArcRotateCamera;
|
|
|
- gamepad: Nullable<Gamepad>;
|
|
|
-
|
|
|
-
|
|
|
- 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;
|
|
|
-
|
|
|
- keysUp: number[];
|
|
|
- keysDown: number[];
|
|
|
- keysLeft: number[];
|
|
|
- keysRight: number[];
|
|
|
- keysReset: number[];
|
|
|
- panningSensibility: number;
|
|
|
- zoomingSensibility: number;
|
|
|
- useAltToZoom: boolean;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- 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;
|
|
|
-
|
|
|
-
|
|
|
- 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;
|
|
|
-
|
|
|
- pinchInwards: boolean;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- 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;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- constructor();
|
|
|
- attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
-
|
|
|
- checkInputs(): void;
|
|
|
- detachControl(element: Nullable<HTMLElement>): void;
|
|
|
- getClassName(): string;
|
|
|
- getSimpleName(): string;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class FreeCameraDeviceOrientationInput implements ICameraInput<FreeCamera> {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- constructor();
|
|
|
- camera: FreeCamera;
|
|
|
- attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
-
|
|
|
-
|
|
|
- detachControl(element: Nullable<HTMLElement>): void;
|
|
|
- checkInputs(): void;
|
|
|
- getClassName(): string;
|
|
|
- getSimpleName(): string;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class FreeCameraGamepadInput implements ICameraInput<FreeCamera> {
|
|
|
- camera: FreeCamera;
|
|
|
- gamepad: Nullable<Gamepad>;
|
|
|
-
|
|
|
-
|
|
|
- gamepadAngularSensibility: number;
|
|
|
- gamepadMoveSensibility: number;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- 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;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- keysUp: number[];
|
|
|
- keysDown: number[];
|
|
|
- keysLeft: number[];
|
|
|
- keysRight: number[];
|
|
|
- attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
- detachControl(element: Nullable<HTMLElement>): void;
|
|
|
- checkInputs(): void;
|
|
|
- getClassName(): string;
|
|
|
-
|
|
|
- getSimpleName(): string;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class FreeCameraMouseInput implements ICameraInput<FreeCamera> {
|
|
|
- touchEnabled: boolean;
|
|
|
- camera: FreeCamera;
|
|
|
- buttons: number[];
|
|
|
- angularSensibility: number;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- 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;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- 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;
|
|
|
-
|
|
|
-
|
|
|
- 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;
|
|
@@ -17725,6 +17499,232 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
+ class ArcRotateCameraGamepadInput implements ICameraInput<ArcRotateCamera> {
|
|
|
+ camera: ArcRotateCamera;
|
|
|
+ gamepad: Nullable<Gamepad>;
|
|
|
+
|
|
|
+
|
|
|
+ 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;
|
|
|
+
|
|
|
+ keysUp: number[];
|
|
|
+ keysDown: number[];
|
|
|
+ keysLeft: number[];
|
|
|
+ keysRight: number[];
|
|
|
+ keysReset: number[];
|
|
|
+ panningSensibility: number;
|
|
|
+ zoomingSensibility: number;
|
|
|
+ useAltToZoom: boolean;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ 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;
|
|
|
+
|
|
|
+
|
|
|
+ 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;
|
|
|
+
|
|
|
+ pinchInwards: boolean;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ 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;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ constructor();
|
|
|
+ attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
+
|
|
|
+ checkInputs(): void;
|
|
|
+ detachControl(element: Nullable<HTMLElement>): void;
|
|
|
+ getClassName(): string;
|
|
|
+ getSimpleName(): string;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class FreeCameraDeviceOrientationInput implements ICameraInput<FreeCamera> {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ constructor();
|
|
|
+ camera: FreeCamera;
|
|
|
+ attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
+
|
|
|
+
|
|
|
+ detachControl(element: Nullable<HTMLElement>): void;
|
|
|
+ checkInputs(): void;
|
|
|
+ getClassName(): string;
|
|
|
+ getSimpleName(): string;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class FreeCameraGamepadInput implements ICameraInput<FreeCamera> {
|
|
|
+ camera: FreeCamera;
|
|
|
+ gamepad: Nullable<Gamepad>;
|
|
|
+
|
|
|
+
|
|
|
+ gamepadAngularSensibility: number;
|
|
|
+ gamepadMoveSensibility: number;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ 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;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ keysUp: number[];
|
|
|
+ keysDown: number[];
|
|
|
+ keysLeft: number[];
|
|
|
+ keysRight: number[];
|
|
|
+ attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
|
|
|
+ detachControl(element: Nullable<HTMLElement>): void;
|
|
|
+ checkInputs(): void;
|
|
|
+ getClassName(): string;
|
|
|
+
|
|
|
+ getSimpleName(): string;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class FreeCameraMouseInput implements ICameraInput<FreeCamera> {
|
|
|
+ touchEnabled: boolean;
|
|
|
+ camera: FreeCamera;
|
|
|
+ buttons: number[];
|
|
|
+ angularSensibility: number;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ 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;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ 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;
|
|
|
+
|
|
|
+
|
|
|
+ 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>>;
|
|
|
}
|
|
@@ -17896,12 +17896,15 @@ declare module BABYLON {
|
|
|
|
|
|
|
|
|
onTrackpadChangedObservable: Observable<ExtendedGamepadButton>;
|
|
|
+ onTrackpadValuesChangedObservable: Observable<StickValues>;
|
|
|
+ trackpad: StickValues;
|
|
|
constructor(vrGamepad: any);
|
|
|
readonly onTriggerButtonStateChangedObservable: Observable<ExtendedGamepadButton>;
|
|
|
readonly onMenuButtonStateChangedObservable: Observable<ExtendedGamepadButton>;
|
|
|
readonly onGripButtonStateChangedObservable: Observable<ExtendedGamepadButton>;
|
|
|
readonly onThumbstickButtonStateChangedObservable: Observable<ExtendedGamepadButton>;
|
|
|
readonly onTouchpadButtonStateChangedObservable: Observable<ExtendedGamepadButton>;
|
|
|
+ readonly onTouchpadValuesChangedObservable: Observable<StickValues>;
|
|
|
/**
|
|
|
* Called once per frame by the engine.
|
|
|
*/
|