|
@@ -31184,6 +31184,14 @@ declare module "babylonjs/Engines/engine" {
|
|
|
*/
|
|
|
getRenderingCanvas(): Nullable<HTMLCanvasElement>;
|
|
|
/**
|
|
|
+ * Gets host window
|
|
|
+ */
|
|
|
+ getHostWindow(): Window;
|
|
|
+ /**
|
|
|
+ * Gets host document
|
|
|
+ */
|
|
|
+ getHostDocument(): Document;
|
|
|
+ /**
|
|
|
* Gets the client rect of the HTML canvas attached with the current webGL context
|
|
|
* @returns a client rectanglee
|
|
|
*/
|
|
@@ -32728,9 +32736,10 @@ declare module "babylonjs/Misc/tools" {
|
|
|
static IsEmpty(obj: any): boolean;
|
|
|
/**
|
|
|
* Function used to register events at window level
|
|
|
+ * @param windowElement defines the Window object to use
|
|
|
* @param events defines the events to register
|
|
|
*/
|
|
|
- static RegisterTopRootEvents(events: {
|
|
|
+ static RegisterTopRootEvents(windowElement: Window, events: {
|
|
|
name: string;
|
|
|
handler: Nullable<(e: FocusEvent) => any>;
|
|
|
}[]): void;
|
|
@@ -32738,7 +32747,7 @@ declare module "babylonjs/Misc/tools" {
|
|
|
* Function used to unregister events from window level
|
|
|
* @param events defines the events to unregister
|
|
|
*/
|
|
|
- static UnregisterTopRootEvents(events: {
|
|
|
+ static UnregisterTopRootEvents(windowElement: Window, events: {
|
|
|
name: string;
|
|
|
handler: Nullable<(e: FocusEvent) => any>;
|
|
|
}[]): void;
|
|
@@ -94252,6 +94261,14 @@ declare module BABYLON {
|
|
|
*/
|
|
|
getRenderingCanvas(): Nullable<HTMLCanvasElement>;
|
|
|
/**
|
|
|
+ * Gets host window
|
|
|
+ */
|
|
|
+ getHostWindow(): Window;
|
|
|
+ /**
|
|
|
+ * Gets host document
|
|
|
+ */
|
|
|
+ getHostDocument(): Document;
|
|
|
+ /**
|
|
|
* Gets the client rect of the HTML canvas attached with the current webGL context
|
|
|
* @returns a client rectanglee
|
|
|
*/
|
|
@@ -95785,9 +95802,10 @@ declare module BABYLON {
|
|
|
static IsEmpty(obj: any): boolean;
|
|
|
/**
|
|
|
* Function used to register events at window level
|
|
|
+ * @param windowElement defines the Window object to use
|
|
|
* @param events defines the events to register
|
|
|
*/
|
|
|
- static RegisterTopRootEvents(events: {
|
|
|
+ static RegisterTopRootEvents(windowElement: Window, events: {
|
|
|
name: string;
|
|
|
handler: Nullable<(e: FocusEvent) => any>;
|
|
|
}[]): void;
|
|
@@ -95795,7 +95813,7 @@ declare module BABYLON {
|
|
|
* Function used to unregister events from window level
|
|
|
* @param events defines the events to unregister
|
|
|
*/
|
|
|
- static UnregisterTopRootEvents(events: {
|
|
|
+ static UnregisterTopRootEvents(windowElement: Window, events: {
|
|
|
name: string;
|
|
|
handler: Nullable<(e: FocusEvent) => any>;
|
|
|
}[]): void;
|