|
@@ -11440,7 +11440,7 @@ declare module "babylonjs/sceneComponent" {
|
|
|
/**
|
|
|
* Strong typing of a pointer move action.
|
|
|
*/
|
|
|
- export type PointerMoveStageAction = (unTranslatedPointerX: number, unTranslatedPointerY: number, pickResult: Nullable<PickingInfo>, isMeshPicked: boolean, canvas: HTMLCanvasElement) => Nullable<PickingInfo>;
|
|
|
+ export type PointerMoveStageAction = (unTranslatedPointerX: number, unTranslatedPointerY: number, pickResult: Nullable<PickingInfo>, isMeshPicked: boolean, element: HTMLElement) => Nullable<PickingInfo>;
|
|
|
/**
|
|
|
* Strong typing of a pointer up/down action.
|
|
|
*/
|
|
@@ -32282,6 +32282,11 @@ declare module "babylonjs/Engines/engine" {
|
|
|
private _onFullscreenChange;
|
|
|
private _onPointerLockChange;
|
|
|
/**
|
|
|
+ * Gets the HTML element used to attach event listeners
|
|
|
+ * @returns a HTML element
|
|
|
+ */
|
|
|
+ getInputElement(): Nullable<HTMLElement>;
|
|
|
+ /**
|
|
|
* Creates a new engine
|
|
|
* @param canvasOrContext defines the canvas or WebGL context to use for rendering. If you provide a WebGL context, Babylon.js will not hook events on the canvas (like pointers, keyboards, etc...) so no event observables will be available. This is mostly used when Babylon.js is used as a plugin on a system which alreay used the WebGL context
|
|
|
* @param antialias defines enable antialiasing (default: false)
|
|
@@ -32312,6 +32317,11 @@ declare module "babylonjs/Engines/engine" {
|
|
|
*/
|
|
|
getRenderingCanvasClientRect(): Nullable<ClientRect>;
|
|
|
/**
|
|
|
+ * Gets the client rect of the HTML element used for events
|
|
|
+ * @returns a client rectanglee
|
|
|
+ */
|
|
|
+ getInputElementClientRect(): Nullable<ClientRect>;
|
|
|
+ /**
|
|
|
* Gets a boolean indicating that the engine is running in deterministic lock step mode
|
|
|
* @see http://doc.babylonjs.com/babylon101/animations#deterministic-lockstep
|
|
|
* @returns true if engine is in deterministic lock step mode
|
|
@@ -32639,7 +32649,7 @@ declare module "babylonjs/Engines/engine" {
|
|
|
_renderFrame(): void;
|
|
|
_renderLoop(): void;
|
|
|
/** @hidden */
|
|
|
- _renderViews(): void;
|
|
|
+ _renderViews(): boolean;
|
|
|
/**
|
|
|
* Toggle full screen mode
|
|
|
* @param requestPointerLock defines if a pointer lock should be requested from the user
|
|
@@ -42699,7 +42709,7 @@ declare module "babylonjs/Cameras/VR/vrExperienceHelper" {
|
|
|
private _webVRpresenting;
|
|
|
private _hasEnteredVR;
|
|
|
private _fullscreenVRpresenting;
|
|
|
- private _canvas;
|
|
|
+ private _inputElement;
|
|
|
private _webVRCamera;
|
|
|
private _vrDeviceOrientationCamera;
|
|
|
private _deviceOrientationCamera;
|
|
@@ -46314,6 +46324,10 @@ declare module "babylonjs/Engines/Extensions/engine.views" {
|
|
|
module "babylonjs/Engines/engine" {
|
|
|
interface Engine {
|
|
|
/**
|
|
|
+ * Gets or sets the HTML element to use for attaching events
|
|
|
+ */
|
|
|
+ inputElement: Nullable<HTMLElement>;
|
|
|
+ /**
|
|
|
* Gets the current engine view
|
|
|
* @see https://doc.babylonjs.com/how_to/multi_canvases
|
|
|
*/
|
|
@@ -79026,7 +79040,7 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* Strong typing of a pointer move action.
|
|
|
*/
|
|
|
- export type PointerMoveStageAction = (unTranslatedPointerX: number, unTranslatedPointerY: number, pickResult: Nullable<PickingInfo>, isMeshPicked: boolean, canvas: HTMLCanvasElement) => Nullable<PickingInfo>;
|
|
|
+ export type PointerMoveStageAction = (unTranslatedPointerX: number, unTranslatedPointerY: number, pickResult: Nullable<PickingInfo>, isMeshPicked: boolean, element: HTMLElement) => Nullable<PickingInfo>;
|
|
|
/**
|
|
|
* Strong typing of a pointer up/down action.
|
|
|
*/
|
|
@@ -99157,6 +99171,11 @@ declare module BABYLON {
|
|
|
private _onFullscreenChange;
|
|
|
private _onPointerLockChange;
|
|
|
/**
|
|
|
+ * Gets the HTML element used to attach event listeners
|
|
|
+ * @returns a HTML element
|
|
|
+ */
|
|
|
+ getInputElement(): Nullable<HTMLElement>;
|
|
|
+ /**
|
|
|
* Creates a new engine
|
|
|
* @param canvasOrContext defines the canvas or WebGL context to use for rendering. If you provide a WebGL context, Babylon.js will not hook events on the canvas (like pointers, keyboards, etc...) so no event observables will be available. This is mostly used when Babylon.js is used as a plugin on a system which alreay used the WebGL context
|
|
|
* @param antialias defines enable antialiasing (default: false)
|
|
@@ -99187,6 +99206,11 @@ declare module BABYLON {
|
|
|
*/
|
|
|
getRenderingCanvasClientRect(): Nullable<ClientRect>;
|
|
|
/**
|
|
|
+ * Gets the client rect of the HTML element used for events
|
|
|
+ * @returns a client rectanglee
|
|
|
+ */
|
|
|
+ getInputElementClientRect(): Nullable<ClientRect>;
|
|
|
+ /**
|
|
|
* Gets a boolean indicating that the engine is running in deterministic lock step mode
|
|
|
* @see http://doc.babylonjs.com/babylon101/animations#deterministic-lockstep
|
|
|
* @returns true if engine is in deterministic lock step mode
|
|
@@ -99514,7 +99538,7 @@ declare module BABYLON {
|
|
|
_renderFrame(): void;
|
|
|
_renderLoop(): void;
|
|
|
/** @hidden */
|
|
|
- _renderViews(): void;
|
|
|
+ _renderViews(): boolean;
|
|
|
/**
|
|
|
* Toggle full screen mode
|
|
|
* @param requestPointerLock defines if a pointer lock should be requested from the user
|
|
@@ -109017,7 +109041,7 @@ declare module BABYLON {
|
|
|
private _webVRpresenting;
|
|
|
private _hasEnteredVR;
|
|
|
private _fullscreenVRpresenting;
|
|
|
- private _canvas;
|
|
|
+ private _inputElement;
|
|
|
private _webVRCamera;
|
|
|
private _vrDeviceOrientationCamera;
|
|
|
private _deviceOrientationCamera;
|
|
@@ -112336,6 +112360,10 @@ declare module BABYLON {
|
|
|
}
|
|
|
interface Engine {
|
|
|
/**
|
|
|
+ * Gets or sets the HTML element to use for attaching events
|
|
|
+ */
|
|
|
+ inputElement: Nullable<HTMLElement>;
|
|
|
+ /**
|
|
|
* Gets the current engine view
|
|
|
* @see https://doc.babylonjs.com/how_to/multi_canvases
|
|
|
*/
|