|
@@ -200,11 +200,11 @@ declare module 'babylonjs-viewer/viewer/defaultViewer' {
|
|
|
* Mainly used for help and errors
|
|
|
* @param subScreen the name of the subScreen. Those can be defined in the configuration object
|
|
|
*/
|
|
|
- showOverlayScreen(subScreen: string): Promise<Template> | Promise<string>;
|
|
|
+ showOverlayScreen(subScreen: string): Promise<string> | Promise<Template>;
|
|
|
/**
|
|
|
* Hide the overlay screen.
|
|
|
*/
|
|
|
- hideOverlayScreen(): Promise<Template> | Promise<string>;
|
|
|
+ hideOverlayScreen(): Promise<string> | Promise<Template>;
|
|
|
/**
|
|
|
* show the viewer (in case it was hidden)
|
|
|
*
|
|
@@ -221,11 +221,11 @@ declare module 'babylonjs-viewer/viewer/defaultViewer' {
|
|
|
* Show the loading screen.
|
|
|
* The loading screen can be configured using the configuration object
|
|
|
*/
|
|
|
- showLoadingScreen(): Promise<Template> | Promise<string>;
|
|
|
+ showLoadingScreen(): Promise<string> | Promise<Template>;
|
|
|
/**
|
|
|
* Hide the loading screen
|
|
|
*/
|
|
|
- hideLoadingScreen(): Promise<Template> | Promise<string>;
|
|
|
+ hideLoadingScreen(): Promise<string> | Promise<Template>;
|
|
|
dispose(): void;
|
|
|
protected _onConfigurationLoaded(configuration: ViewerConfiguration): void;
|
|
|
}
|
|
@@ -696,6 +696,7 @@ declare module 'babylonjs-viewer/model/viewerModel' {
|
|
|
/**
|
|
|
* Apply a material configuration to a material
|
|
|
* @param material Material to apply configuration to
|
|
|
+ * @hidden
|
|
|
*/
|
|
|
_applyModelMaterialConfiguration(material: Material): void;
|
|
|
/**
|
|
@@ -976,14 +977,13 @@ declare module 'babylonjs-viewer/templating/viewerTemplatePlugin' {
|
|
|
}
|
|
|
|
|
|
declare module 'babylonjs-viewer/optimizer/custom' {
|
|
|
- import { extendedUpgrade } from "babylonjs-viewer/optimizer/custom/extended";
|
|
|
import { SceneManager } from "babylonjs-viewer/managers/sceneManager";
|
|
|
/**
|
|
|
*
|
|
|
* @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
|
|
|
*/
|
|
|
- export function getCustomOptimizerByName(name: string, upgrade?: boolean): typeof extendedUpgrade;
|
|
|
+ export function getCustomOptimizerByName(name: string, upgrade?: boolean): (sceneManager: SceneManager) => boolean;
|
|
|
export function registerCustomOptimizer(name: string, optimizer: (sceneManager: SceneManager) => boolean): void;
|
|
|
}
|
|
|
|
|
@@ -1646,22 +1646,6 @@ declare module 'babylonjs-viewer/loader/plugins' {
|
|
|
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' {
|
|
|
export * from 'babylonjs-viewer/configuration/interfaces/cameraConfiguration';
|
|
|
export * from 'babylonjs-viewer/configuration/interfaces/colorGradingConfiguration';
|
|
@@ -1792,32 +1776,7 @@ declare module 'babylonjs-viewer/labs/viewerLabs' {
|
|
|
}
|
|
|
|
|
|
declare module 'babylonjs-viewer/configuration/interfaces/modelAnimationConfiguration' {
|
|
|
- /**
|
|
|
- * Defines an animation to be applied to a model (translation, scale or rotation).
|
|
|
- */
|
|
|
- export interface IModelAnimationConfiguration {
|
|
|
- /**
|
|
|
- * Time of animation, in seconds
|
|
|
- */
|
|
|
- time?: number;
|
|
|
- /**
|
|
|
- * Scale to apply
|
|
|
- */
|
|
|
- scaling?: {
|
|
|
- x: number;
|
|
|
- y: number;
|
|
|
- z: number;
|
|
|
- };
|
|
|
- /**
|
|
|
- * Easing function to apply
|
|
|
- */
|
|
|
- easingFunction?: number;
|
|
|
- /**
|
|
|
- * An Easing mode to apply to the easing function
|
|
|
- * See BABYLON.EasingFunction
|
|
|
- */
|
|
|
- easingMode?: number;
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
declare module 'babylonjs-viewer/loader/plugins/telemetryLoaderPlugin' {
|