@babylonjs/viewer 5.0.0 → 5.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/configuration/configuration.d.ts +107 -107
  2. package/configuration/configuration.js +15 -15
  3. package/configuration/configurationCompatibility.d.ts +8 -8
  4. package/configuration/configurationCompatibility.js +65 -65
  5. package/configuration/configurationContainer.d.ts +10 -10
  6. package/configuration/configurationContainer.js +9 -9
  7. package/configuration/globals.d.ts +6 -6
  8. package/configuration/globals.js +17 -17
  9. package/configuration/index.d.ts +2 -2
  10. package/configuration/index.js +3 -3
  11. package/configuration/interfaces/cameraConfiguration.d.ts +31 -31
  12. package/configuration/interfaces/cameraConfiguration.js +1 -1
  13. package/configuration/interfaces/colorGradingConfiguration.d.ts +81 -81
  14. package/configuration/interfaces/colorGradingConfiguration.js +1 -1
  15. package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +20 -20
  16. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +1 -1
  17. package/configuration/interfaces/environmentMapConfiguration.d.ts +22 -22
  18. package/configuration/interfaces/environmentMapConfiguration.js +1 -1
  19. package/configuration/interfaces/groundConfiguration.d.ts +24 -24
  20. package/configuration/interfaces/groundConfiguration.js +1 -1
  21. package/configuration/interfaces/imageProcessingConfiguration.d.ts +43 -43
  22. package/configuration/interfaces/imageProcessingConfiguration.js +1 -1
  23. package/configuration/interfaces/index.d.ts +15 -15
  24. package/configuration/interfaces/index.js +15 -15
  25. package/configuration/interfaces/lightConfiguration.d.ts +60 -60
  26. package/configuration/interfaces/lightConfiguration.js +1 -1
  27. package/configuration/interfaces/modelAnimationConfiguration.d.ts +26 -26
  28. package/configuration/interfaces/modelAnimationConfiguration.js +1 -1
  29. package/configuration/interfaces/modelConfiguration.d.ts +65 -65
  30. package/configuration/interfaces/modelConfiguration.js +1 -1
  31. package/configuration/interfaces/observersConfiguration.d.ts +5 -5
  32. package/configuration/interfaces/observersConfiguration.js +1 -1
  33. package/configuration/interfaces/sceneConfiguration.d.ts +48 -48
  34. package/configuration/interfaces/sceneConfiguration.js +1 -1
  35. package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +23 -23
  36. package/configuration/interfaces/sceneOptimizerConfiguration.js +1 -1
  37. package/configuration/interfaces/skyboxConfiguration.d.ts +21 -21
  38. package/configuration/interfaces/skyboxConfiguration.js +1 -1
  39. package/configuration/interfaces/templateConfiguration.d.ts +67 -67
  40. package/configuration/interfaces/templateConfiguration.js +1 -1
  41. package/configuration/interfaces/vrConfiguration.d.ts +16 -16
  42. package/configuration/interfaces/vrConfiguration.js +1 -1
  43. package/configuration/loader.d.ts +4 -4
  44. package/configuration/loader.js +16 -16
  45. package/configuration/mappers.d.ts +42 -42
  46. package/configuration/mappers.js +190 -190
  47. package/configuration/renderOnlyLoader.d.ts +33 -33
  48. package/configuration/renderOnlyLoader.js +161 -161
  49. package/configuration/types/default.d.ts +6 -6
  50. package/configuration/types/default.js +120 -120
  51. package/configuration/types/environmentMap.d.ts +5 -5
  52. package/configuration/types/environmentMap.js +13 -13
  53. package/configuration/types/extended.d.ts +6 -6
  54. package/configuration/types/extended.js +316 -316
  55. package/configuration/types/index.d.ts +13 -13
  56. package/configuration/types/index.js +49 -49
  57. package/configuration/types/minimal.d.ts +6 -6
  58. package/configuration/types/minimal.js +42 -42
  59. package/configuration/types/renderOnlyDefault.d.ts +30 -30
  60. package/configuration/types/renderOnlyDefault.js +30 -30
  61. package/configuration/types/shadowLight.d.ts +9 -9
  62. package/configuration/types/shadowLight.js +63 -63
  63. package/helper/index.d.ts +26 -26
  64. package/helper/index.js +62 -62
  65. package/index.d.ts +30 -30
  66. package/index.js +45 -45
  67. package/initializer.d.ts +11 -11
  68. package/initializer.js +34 -34
  69. package/interfaces.d.ts +5 -5
  70. package/interfaces.js +1 -1
  71. package/labs/environmentSerializer.d.ts +126 -126
  72. package/labs/environmentSerializer.js +190 -190
  73. package/labs/texture.d.ts +183 -183
  74. package/labs/texture.js +300 -300
  75. package/labs/viewerLabs.d.ts +51 -51
  76. package/labs/viewerLabs.js +133 -133
  77. package/loader/modelLoader.d.ts +47 -47
  78. package/loader/modelLoader.js +189 -189
  79. package/loader/plugins/applyMaterialConfig.d.ts +12 -12
  80. package/loader/plugins/applyMaterialConfig.js +15 -15
  81. package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +9 -9
  82. package/loader/plugins/extendedMaterialLoaderPlugin.js +15 -15
  83. package/loader/plugins/index.d.ts +18 -18
  84. package/loader/plugins/index.js +42 -42
  85. package/loader/plugins/loaderPlugin.d.ts +24 -24
  86. package/loader/plugins/loaderPlugin.js +1 -1
  87. package/loader/plugins/msftLodLoaderPlugin.d.ts +12 -12
  88. package/loader/plugins/msftLodLoaderPlugin.js +20 -20
  89. package/loader/plugins/telemetryLoaderPlugin.d.ts +12 -12
  90. package/loader/plugins/telemetryLoaderPlugin.js +35 -35
  91. package/managers/observablesManager.d.ts +66 -66
  92. package/managers/observablesManager.js +34 -34
  93. package/managers/sceneManager.d.ts +243 -243
  94. package/managers/sceneManager.js +1388 -1388
  95. package/managers/telemetryManager.d.ts +57 -57
  96. package/managers/telemetryManager.js +113 -113
  97. package/model/modelAnimation.d.ts +215 -215
  98. package/model/modelAnimation.js +232 -232
  99. package/model/viewerModel.d.ts +228 -228
  100. package/model/viewerModel.js +669 -669
  101. package/optimizer/custom/extended.d.ts +11 -11
  102. package/optimizer/custom/extended.js +98 -98
  103. package/optimizer/custom/index.d.ts +8 -8
  104. package/optimizer/custom/index.js +24 -24
  105. package/package.json +5 -5
  106. package/renderOnlyIndex.d.ts +11 -11
  107. package/renderOnlyIndex.js +17 -17
  108. package/templating/eventManager.d.ts +35 -35
  109. package/templating/eventManager.js +65 -65
  110. package/templating/plugins/hdButtonPlugin.d.ts +9 -9
  111. package/templating/plugins/hdButtonPlugin.js +21 -21
  112. package/templating/plugins/printButton.d.ts +9 -9
  113. package/templating/plugins/printButton.js +40 -40
  114. package/templating/templateManager.d.ts +190 -190
  115. package/templating/templateManager.js +553 -553
  116. package/templating/viewerTemplatePlugin.d.ts +21 -21
  117. package/templating/viewerTemplatePlugin.js +68 -68
  118. package/viewer/defaultViewer.d.ts +122 -122
  119. package/viewer/defaultViewer.js +665 -665
  120. package/viewer/renderOnlyViewer.d.ts +8 -8
  121. package/viewer/renderOnlyViewer.js +43 -43
  122. package/viewer/viewer.d.ts +254 -254
  123. package/viewer/viewer.js +777 -777
  124. package/viewer/viewerManager.d.ts +55 -55
  125. package/viewer/viewerManager.js +87 -87
  126. package/viewer/viewerWithTemplate.d.ts +9 -9
  127. package/viewer/viewerWithTemplate.js +19 -19
@@ -1,228 +1,228 @@
1
- import type { IDisposable } from "@babylonjs/core/scene.js";
2
- import type { ISceneLoaderPlugin, ISceneLoaderPluginAsync, ISceneLoaderProgressEvent } from "@babylonjs/core/Loading/sceneLoader.js";
3
- import { AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh.js";
4
- import type { IParticleSystem } from "@babylonjs/core/Particles/IParticleSystem.js";
5
- import type { Skeleton } from "@babylonjs/core/Bones/skeleton.js";
6
- import { Observable } from "@babylonjs/core/Misc/observable.js";
7
- import { AnimationGroup } from "@babylonjs/core/Animations/animationGroup.js";
8
- import { Animation } from "@babylonjs/core/Animations/index.js";
9
- import type { Nullable } from "@babylonjs/core/types.js";
10
- import type { Material } from "@babylonjs/core/Materials/material.js";
11
- import type { IAsset } from "babylonjs-gltf2interface";
12
- import type { IModelConfiguration } from "../configuration/interfaces/modelConfiguration";
13
- import type { IModelAnimation } from "./modelAnimation";
14
- import type { ObservablesManager } from "../managers/observablesManager";
15
- import type { ConfigurationContainer } from "../configuration/configurationContainer";
16
- /**
17
- * The current state of the model
18
- */
19
- export declare enum ModelState {
20
- INIT = 0,
21
- LOADING = 1,
22
- LOADED = 2,
23
- ENTRY = 3,
24
- ENTRYDONE = 4,
25
- COMPLETE = 5,
26
- CANCELED = 6,
27
- ERROR = 7
28
- }
29
- /**
30
- * The viewer model is a container for all assets representing a sngle loaded model.
31
- */
32
- export declare class ViewerModel implements IDisposable {
33
- private _observablesManager;
34
- private _configurationContainer?;
35
- /**
36
- * The loader used to load this model.
37
- */
38
- loader: ISceneLoaderPlugin | ISceneLoaderPluginAsync;
39
- private _animations;
40
- /**
41
- * the list of meshes that are a part of this model
42
- */
43
- private _meshes;
44
- /**
45
- * This model's root mesh (the parent of all other meshes).
46
- * This mesh does not(!) exist in the meshes array.
47
- */
48
- rootMesh: AbstractMesh;
49
- private _pivotMesh;
50
- /**
51
- * ParticleSystems connected to this model
52
- */
53
- particleSystems: Array<IParticleSystem>;
54
- /**
55
- * Skeletons defined in this model
56
- */
57
- skeletons: Array<Skeleton>;
58
- /**
59
- * The current model animation.
60
- * On init, this will be undefined.
61
- */
62
- currentAnimation: IModelAnimation;
63
- /**
64
- * Observers registered here will be executed when the model is done loading
65
- */
66
- onLoadedObservable: Observable<ViewerModel>;
67
- /**
68
- * Observers registered here will be executed when the loader notified of a progress event
69
- */
70
- onLoadProgressObservable: Observable<ISceneLoaderProgressEvent>;
71
- /**
72
- * Observers registered here will be executed when the loader notified of an error.
73
- */
74
- onLoadErrorObservable: Observable<{
75
- message: string;
76
- exception: any;
77
- }>;
78
- /**
79
- * Will be executed after the model finished loading and complete, including entry animation and lod
80
- */
81
- onCompleteObservable: Observable<ViewerModel>;
82
- /**
83
- * Observers registered here will be executed every time the model is being configured.
84
- * This can be used to extend the model's configuration without extending the class itself
85
- */
86
- onAfterConfigure: Observable<ViewerModel>;
87
- /**
88
- * The current model state (loaded, error, etc)
89
- */
90
- state: ModelState;
91
- /**
92
- * A loadID provided by the modelLoader, unique to ths (Abstract)Viewer instance.
93
- */
94
- loadId: number;
95
- loadInfo: IAsset;
96
- private _modelConfiguration;
97
- private _loaderDone;
98
- private _entryAnimation;
99
- private _scaleTransition;
100
- private _animatables;
101
- private _frameRate;
102
- private _shadowsRenderedAfterLoad;
103
- constructor(_observablesManager: ObservablesManager, modelConfiguration: IModelConfiguration, _configurationContainer?: ConfigurationContainer | undefined);
104
- get shadowsRenderedAfterLoad(): boolean;
105
- set shadowsRenderedAfterLoad(rendered: boolean);
106
- getViewerId(): string | undefined;
107
- /**
108
- * Is this model enabled?
109
- */
110
- get enabled(): boolean;
111
- /**
112
- * Set whether this model is enabled or not.
113
- */
114
- set enabled(enable: boolean);
115
- set loaderDone(done: boolean);
116
- private _checkCompleteState;
117
- /**
118
- * Add a mesh to this model.
119
- * Any mesh that has no parent will be provided with the root mesh as its new parent.
120
- *
121
- * @param mesh the new mesh to add
122
- * @param triggerLoaded should this mesh trigger the onLoaded observable. Used when adding meshes manually.
123
- */
124
- addMesh(mesh: AbstractMesh, triggerLoaded?: boolean): Promise<ViewerModel>;
125
- /**
126
- * get the list of meshes (excluding the root mesh)
127
- */
128
- get meshes(): AbstractMesh[];
129
- /**
130
- * Get the model's configuration
131
- */
132
- get configuration(): IModelConfiguration;
133
- /**
134
- * (Re-)set the model's entire configuration
135
- * @param newConfiguration the new configuration to replace the new one
136
- */
137
- set configuration(newConfiguration: IModelConfiguration);
138
- /**
139
- * Update the current configuration with new values.
140
- * Configuration will not be overwritten, but merged with the new configuration.
141
- * Priority is to the new configuration
142
- * @param newConfiguration the configuration to be merged into the current configuration;
143
- */
144
- updateConfiguration(newConfiguration: Partial<IModelConfiguration>): void;
145
- private _initAnimations;
146
- /**
147
- * Animates the model from the current position to the default position
148
- * @param completeCallback A function to call when the animation has completed
149
- */
150
- private _enterScene;
151
- private _modelComplete;
152
- /**
153
- * Add a new animation group to this model.
154
- * @param animationGroup the new animation group to be added
155
- */
156
- addAnimationGroup(animationGroup: AnimationGroup): void;
157
- /**
158
- * Get the ModelAnimation array
159
- */
160
- getAnimations(): Array<IModelAnimation>;
161
- /**
162
- * Get the animations' names. Using the names you can play a specific animation.
163
- */
164
- getAnimationNames(): Array<string>;
165
- /**
166
- * Get an animation by the provided name. Used mainly when playing n animation.
167
- * @param name the name of the animation to find
168
- */
169
- protected _getAnimationByName(name: string): Nullable<IModelAnimation>;
170
- /**
171
- * Choose an initialized animation using its name and start playing it
172
- * @param name the name of the animation to play
173
- * @returns The model aniamtion to be played.
174
- */
175
- playAnimation(name: string): IModelAnimation;
176
- setCurrentAnimationByName(name: string): IModelAnimation;
177
- private _configureModel;
178
- private _modelAnimationConfigurationToObject;
179
- /**
180
- * Apply a material configuration to a material
181
- * @param material Material to apply configuration to
182
- * @hidden
183
- */
184
- _applyModelMaterialConfiguration(material: Material): void;
185
- /**
186
- * Start entry/exit animation given an animation configuration
187
- * @param animationConfiguration Entry/Exit animation configuration
188
- * @param isEntry Pass true if the animation is an entry animation
189
- * @param completeCallback Callback to execute when the animation completes
190
- */
191
- private _applyAnimation;
192
- /**
193
- * Begin @animations with the specified @easingFunction
194
- * @param animations The BABYLON Animations to begin
195
- * @param duration of transition, in seconds
196
- * @param easingFunction An easing function to apply
197
- * @param easingMode A easing mode to apply to the easingFunction
198
- * @param onAnimationEnd Call back trigger at the end of the animation.
199
- */
200
- transitionTo(animations: Animation[], duration: number, easingFunction: any, easingMode: number | undefined, // BABYLON.EasingFunction.EASINGMODE_EASEINOUT,
201
- onAnimationEnd: () => void): void;
202
- /**
203
- * Sets key values on an Animation from first to last frame.
204
- * @param animation The Babylon animation object to set keys on
205
- * @param startValue The value of the first key
206
- * @param endValue The value of the last key
207
- * @param duration The duration of the animation, used to determine the end frame
208
- */
209
- private _setLinearKeys;
210
- /**
211
- * Creates and returns a Babylon easing funtion object based on a string representing the Easing function
212
- * @param easingFunctionID The enum of the easing funtion to create
213
- * @return The newly created Babylon easing function object
214
- */
215
- private _createEasingFunction;
216
- /**
217
- * Stops and removes all animations that have been applied to the model
218
- */
219
- stopAllAnimations(): void;
220
- /**
221
- * Will remove this model from the viewer (but NOT dispose it).
222
- */
223
- remove(): void;
224
- /**
225
- * Dispose this model, including all of its associated assets.
226
- */
227
- dispose(): void;
228
- }
1
+ import type { IDisposable } from "@babylonjs/core/scene.js";
2
+ import type { ISceneLoaderPlugin, ISceneLoaderPluginAsync, ISceneLoaderProgressEvent } from "@babylonjs/core/Loading/sceneLoader.js";
3
+ import { AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh.js";
4
+ import type { IParticleSystem } from "@babylonjs/core/Particles/IParticleSystem.js";
5
+ import type { Skeleton } from "@babylonjs/core/Bones/skeleton.js";
6
+ import { Observable } from "@babylonjs/core/Misc/observable.js";
7
+ import { AnimationGroup } from "@babylonjs/core/Animations/animationGroup.js";
8
+ import { Animation } from "@babylonjs/core/Animations/index.js";
9
+ import type { Nullable } from "@babylonjs/core/types.js";
10
+ import type { Material } from "@babylonjs/core/Materials/material.js";
11
+ import type { IAsset } from "babylonjs-gltf2interface";
12
+ import type { IModelConfiguration } from "../configuration/interfaces/modelConfiguration";
13
+ import type { IModelAnimation } from "./modelAnimation";
14
+ import type { ObservablesManager } from "../managers/observablesManager";
15
+ import type { ConfigurationContainer } from "../configuration/configurationContainer";
16
+ /**
17
+ * The current state of the model
18
+ */
19
+ export declare enum ModelState {
20
+ INIT = 0,
21
+ LOADING = 1,
22
+ LOADED = 2,
23
+ ENTRY = 3,
24
+ ENTRYDONE = 4,
25
+ COMPLETE = 5,
26
+ CANCELED = 6,
27
+ ERROR = 7
28
+ }
29
+ /**
30
+ * The viewer model is a container for all assets representing a sngle loaded model.
31
+ */
32
+ export declare class ViewerModel implements IDisposable {
33
+ private _observablesManager;
34
+ private _configurationContainer?;
35
+ /**
36
+ * The loader used to load this model.
37
+ */
38
+ loader: ISceneLoaderPlugin | ISceneLoaderPluginAsync;
39
+ private _animations;
40
+ /**
41
+ * the list of meshes that are a part of this model
42
+ */
43
+ private _meshes;
44
+ /**
45
+ * This model's root mesh (the parent of all other meshes).
46
+ * This mesh does not(!) exist in the meshes array.
47
+ */
48
+ rootMesh: AbstractMesh;
49
+ private _pivotMesh;
50
+ /**
51
+ * ParticleSystems connected to this model
52
+ */
53
+ particleSystems: Array<IParticleSystem>;
54
+ /**
55
+ * Skeletons defined in this model
56
+ */
57
+ skeletons: Array<Skeleton>;
58
+ /**
59
+ * The current model animation.
60
+ * On init, this will be undefined.
61
+ */
62
+ currentAnimation: IModelAnimation;
63
+ /**
64
+ * Observers registered here will be executed when the model is done loading
65
+ */
66
+ onLoadedObservable: Observable<ViewerModel>;
67
+ /**
68
+ * Observers registered here will be executed when the loader notified of a progress event
69
+ */
70
+ onLoadProgressObservable: Observable<ISceneLoaderProgressEvent>;
71
+ /**
72
+ * Observers registered here will be executed when the loader notified of an error.
73
+ */
74
+ onLoadErrorObservable: Observable<{
75
+ message: string;
76
+ exception: any;
77
+ }>;
78
+ /**
79
+ * Will be executed after the model finished loading and complete, including entry animation and lod
80
+ */
81
+ onCompleteObservable: Observable<ViewerModel>;
82
+ /**
83
+ * Observers registered here will be executed every time the model is being configured.
84
+ * This can be used to extend the model's configuration without extending the class itself
85
+ */
86
+ onAfterConfigure: Observable<ViewerModel>;
87
+ /**
88
+ * The current model state (loaded, error, etc)
89
+ */
90
+ state: ModelState;
91
+ /**
92
+ * A loadID provided by the modelLoader, unique to ths (Abstract)Viewer instance.
93
+ */
94
+ loadId: number;
95
+ loadInfo: IAsset;
96
+ private _modelConfiguration;
97
+ private _loaderDone;
98
+ private _entryAnimation;
99
+ private _scaleTransition;
100
+ private _animatables;
101
+ private _frameRate;
102
+ private _shadowsRenderedAfterLoad;
103
+ constructor(_observablesManager: ObservablesManager, modelConfiguration: IModelConfiguration, _configurationContainer?: ConfigurationContainer | undefined);
104
+ get shadowsRenderedAfterLoad(): boolean;
105
+ set shadowsRenderedAfterLoad(rendered: boolean);
106
+ getViewerId(): string | undefined;
107
+ /**
108
+ * Is this model enabled?
109
+ */
110
+ get enabled(): boolean;
111
+ /**
112
+ * Set whether this model is enabled or not.
113
+ */
114
+ set enabled(enable: boolean);
115
+ set loaderDone(done: boolean);
116
+ private _checkCompleteState;
117
+ /**
118
+ * Add a mesh to this model.
119
+ * Any mesh that has no parent will be provided with the root mesh as its new parent.
120
+ *
121
+ * @param mesh the new mesh to add
122
+ * @param triggerLoaded should this mesh trigger the onLoaded observable. Used when adding meshes manually.
123
+ */
124
+ addMesh(mesh: AbstractMesh, triggerLoaded?: boolean): Promise<ViewerModel>;
125
+ /**
126
+ * get the list of meshes (excluding the root mesh)
127
+ */
128
+ get meshes(): AbstractMesh[];
129
+ /**
130
+ * Get the model's configuration
131
+ */
132
+ get configuration(): IModelConfiguration;
133
+ /**
134
+ * (Re-)set the model's entire configuration
135
+ * @param newConfiguration the new configuration to replace the new one
136
+ */
137
+ set configuration(newConfiguration: IModelConfiguration);
138
+ /**
139
+ * Update the current configuration with new values.
140
+ * Configuration will not be overwritten, but merged with the new configuration.
141
+ * Priority is to the new configuration
142
+ * @param newConfiguration the configuration to be merged into the current configuration;
143
+ */
144
+ updateConfiguration(newConfiguration: Partial<IModelConfiguration>): void;
145
+ private _initAnimations;
146
+ /**
147
+ * Animates the model from the current position to the default position
148
+ * @param completeCallback A function to call when the animation has completed
149
+ */
150
+ private _enterScene;
151
+ private _modelComplete;
152
+ /**
153
+ * Add a new animation group to this model.
154
+ * @param animationGroup the new animation group to be added
155
+ */
156
+ addAnimationGroup(animationGroup: AnimationGroup): void;
157
+ /**
158
+ * Get the ModelAnimation array
159
+ */
160
+ getAnimations(): Array<IModelAnimation>;
161
+ /**
162
+ * Get the animations' names. Using the names you can play a specific animation.
163
+ */
164
+ getAnimationNames(): Array<string>;
165
+ /**
166
+ * Get an animation by the provided name. Used mainly when playing n animation.
167
+ * @param name the name of the animation to find
168
+ */
169
+ protected _getAnimationByName(name: string): Nullable<IModelAnimation>;
170
+ /**
171
+ * Choose an initialized animation using its name and start playing it
172
+ * @param name the name of the animation to play
173
+ * @returns The model aniamtion to be played.
174
+ */
175
+ playAnimation(name: string): IModelAnimation;
176
+ setCurrentAnimationByName(name: string): IModelAnimation;
177
+ private _configureModel;
178
+ private _modelAnimationConfigurationToObject;
179
+ /**
180
+ * Apply a material configuration to a material
181
+ * @param material Material to apply configuration to
182
+ * @hidden
183
+ */
184
+ _applyModelMaterialConfiguration(material: Material): void;
185
+ /**
186
+ * Start entry/exit animation given an animation configuration
187
+ * @param animationConfiguration Entry/Exit animation configuration
188
+ * @param isEntry Pass true if the animation is an entry animation
189
+ * @param completeCallback Callback to execute when the animation completes
190
+ */
191
+ private _applyAnimation;
192
+ /**
193
+ * Begin @animations with the specified @easingFunction
194
+ * @param animations The BABYLON Animations to begin
195
+ * @param duration of transition, in seconds
196
+ * @param easingFunction An easing function to apply
197
+ * @param easingMode A easing mode to apply to the easingFunction
198
+ * @param onAnimationEnd Call back trigger at the end of the animation.
199
+ */
200
+ transitionTo(animations: Animation[], duration: number, easingFunction: any, easingMode: number | undefined, // BABYLON.EasingFunction.EASINGMODE_EASEINOUT,
201
+ onAnimationEnd: () => void): void;
202
+ /**
203
+ * Sets key values on an Animation from first to last frame.
204
+ * @param animation The Babylon animation object to set keys on
205
+ * @param startValue The value of the first key
206
+ * @param endValue The value of the last key
207
+ * @param duration The duration of the animation, used to determine the end frame
208
+ */
209
+ private _setLinearKeys;
210
+ /**
211
+ * Creates and returns a Babylon easing funtion object based on a string representing the Easing function
212
+ * @param easingFunctionID The enum of the easing funtion to create
213
+ * @return The newly created Babylon easing function object
214
+ */
215
+ private _createEasingFunction;
216
+ /**
217
+ * Stops and removes all animations that have been applied to the model
218
+ */
219
+ stopAllAnimations(): void;
220
+ /**
221
+ * Will remove this model from the viewer (but NOT dispose it).
222
+ */
223
+ remove(): void;
224
+ /**
225
+ * Dispose this model, including all of its associated assets.
226
+ */
227
+ dispose(): void;
228
+ }