|
@@ -200,11 +200,11 @@ declare module 'babylonjs-viewer/viewer/defaultViewer' {
|
|
* Mainly used for help and errors
|
|
* Mainly used for help and errors
|
|
* @param subScreen the name of the subScreen. Those can be defined in the configuration object
|
|
* @param subScreen the name of the subScreen. Those can be defined in the configuration object
|
|
*/
|
|
*/
|
|
- showOverlayScreen(subScreen: string): Promise<string> | Promise<Template>;
|
|
|
|
|
|
+ showOverlayScreen(subScreen: string): Promise<Template> | Promise<string>;
|
|
/**
|
|
/**
|
|
* Hide the overlay screen.
|
|
* Hide the overlay screen.
|
|
*/
|
|
*/
|
|
- hideOverlayScreen(): Promise<string> | Promise<Template>;
|
|
|
|
|
|
+ hideOverlayScreen(): Promise<Template> | Promise<string>;
|
|
/**
|
|
/**
|
|
* show the viewer (in case it was hidden)
|
|
* show the viewer (in case it was hidden)
|
|
*
|
|
*
|
|
@@ -221,11 +221,11 @@ declare module 'babylonjs-viewer/viewer/defaultViewer' {
|
|
* Show the loading screen.
|
|
* Show the loading screen.
|
|
* The loading screen can be configured using the configuration object
|
|
* The loading screen can be configured using the configuration object
|
|
*/
|
|
*/
|
|
- showLoadingScreen(): Promise<string> | Promise<Template>;
|
|
|
|
|
|
+ showLoadingScreen(): Promise<Template> | Promise<string>;
|
|
/**
|
|
/**
|
|
* Hide the loading screen
|
|
* Hide the loading screen
|
|
*/
|
|
*/
|
|
- hideLoadingScreen(): Promise<string> | Promise<Template>;
|
|
|
|
|
|
+ hideLoadingScreen(): Promise<Template> | Promise<string>;
|
|
dispose(): void;
|
|
dispose(): void;
|
|
protected _onConfigurationLoaded(configuration: ViewerConfiguration): void;
|
|
protected _onConfigurationLoaded(configuration: ViewerConfiguration): void;
|
|
}
|
|
}
|
|
@@ -985,13 +985,14 @@ declare module 'babylonjs-viewer/templating/viewerTemplatePlugin' {
|
|
}
|
|
}
|
|
|
|
|
|
declare module 'babylonjs-viewer/optimizer/custom' {
|
|
declare module 'babylonjs-viewer/optimizer/custom' {
|
|
|
|
+ import { extendedUpgrade } from "babylonjs-viewer/optimizer/custom/extended";
|
|
import { SceneManager } from "babylonjs-viewer/managers/sceneManager";
|
|
import { SceneManager } from "babylonjs-viewer/managers/sceneManager";
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* @param name the name of the custom optimizer configuration
|
|
* @param name the name of the custom optimizer configuration
|
|
* @param upgrade set to true if you want to upgrade optimizer and false if you want to degrade
|
|
* @param upgrade set to true if you want to upgrade optimizer and false if you want to degrade
|
|
*/
|
|
*/
|
|
- export function getCustomOptimizerByName(name: string, upgrade?: boolean): (sceneManager: SceneManager) => boolean;
|
|
|
|
|
|
+ export function getCustomOptimizerByName(name: string, upgrade?: boolean): typeof extendedUpgrade;
|
|
export function registerCustomOptimizer(name: string, optimizer: (sceneManager: SceneManager) => boolean): void;
|
|
export function registerCustomOptimizer(name: string, optimizer: (sceneManager: SceneManager) => boolean): void;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1662,6 +1663,22 @@ declare module 'babylonjs-viewer/loader/plugins' {
|
|
export function addLoaderPlugin(name: string, plugin: ILoaderPlugin): void;
|
|
export function addLoaderPlugin(name: string, plugin: ILoaderPlugin): void;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+declare module 'babylonjs-viewer/optimizer/custom/extended' {
|
|
|
|
+ import { SceneManager } from 'babylonjs-viewer/managers/sceneManager';
|
|
|
|
+ /**
|
|
|
|
+ * A custom upgrade-oriented function configuration for the scene optimizer.
|
|
|
|
+ *
|
|
|
|
+ * @param viewer the viewer to optimize
|
|
|
|
+ */
|
|
|
|
+ export function extendedUpgrade(sceneManager: SceneManager): boolean;
|
|
|
|
+ /**
|
|
|
|
+ * A custom degrade-oriented function configuration for the scene optimizer.
|
|
|
|
+ *
|
|
|
|
+ * @param viewer the viewer to optimize
|
|
|
|
+ */
|
|
|
|
+ export function extendedDegrade(sceneManager: SceneManager): boolean;
|
|
|
|
+}
|
|
|
|
+
|
|
declare module 'babylonjs-viewer/configuration/interfaces' {
|
|
declare module 'babylonjs-viewer/configuration/interfaces' {
|
|
export * from 'babylonjs-viewer/configuration/interfaces/cameraConfiguration';
|
|
export * from 'babylonjs-viewer/configuration/interfaces/cameraConfiguration';
|
|
export * from 'babylonjs-viewer/configuration/interfaces/colorGradingConfiguration';
|
|
export * from 'babylonjs-viewer/configuration/interfaces/colorGradingConfiguration';
|