@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,21 +1,21 @@
1
- import type { EventCallback, Template } from "./templateManager";
2
- export interface IViewerTemplatePlugin {
3
- readonly templateName: string;
4
- readonly eventsToAttach?: Array<string>;
5
- interactionPredicate(event: EventCallback): boolean;
6
- onEvent?(event: EventCallback): void;
7
- addHTMLTemplate?(template: Template): void;
8
- }
9
- export declare abstract class AbstractViewerNavbarButton implements IViewerTemplatePlugin {
10
- readonly templateName: string;
11
- readonly eventsToAttach: Array<string>;
12
- protected _prepend: boolean;
13
- protected _buttonName: string;
14
- protected _buttonClass: string;
15
- protected _htmlTemplate: string;
16
- constructor(buttonName: string, buttonClass?: string, htmlTemplate?: string);
17
- interactionPredicate(event: EventCallback): boolean;
18
- abstract onEvent(event: EventCallback): void;
19
- addHTMLTemplate(template: Template): void;
20
- protected _generateHTMLElement(template: Template): Element | DocumentFragment;
21
- }
1
+ import type { EventCallback, Template } from "./templateManager";
2
+ export interface IViewerTemplatePlugin {
3
+ readonly templateName: string;
4
+ readonly eventsToAttach?: Array<string>;
5
+ interactionPredicate(event: EventCallback): boolean;
6
+ onEvent?(event: EventCallback): void;
7
+ addHTMLTemplate?(template: Template): void;
8
+ }
9
+ export declare abstract class AbstractViewerNavbarButton implements IViewerTemplatePlugin {
10
+ readonly templateName: string;
11
+ readonly eventsToAttach: Array<string>;
12
+ protected _prepend: boolean;
13
+ protected _buttonName: string;
14
+ protected _buttonClass: string;
15
+ protected _htmlTemplate: string;
16
+ constructor(buttonName: string, buttonClass?: string, htmlTemplate?: string);
17
+ interactionPredicate(event: EventCallback): boolean;
18
+ abstract onEvent(event: EventCallback): void;
19
+ addHTMLTemplate(template: Template): void;
20
+ protected _generateHTMLElement(template: Template): Element | DocumentFragment;
21
+ }
@@ -1,69 +1,69 @@
1
- import * as Handlebars from "handlebars";
2
- var AbstractViewerNavbarButton = /** @class */ (function () {
3
- function AbstractViewerNavbarButton(buttonName, buttonClass, htmlTemplate) {
4
- this.templateName = "navBar";
5
- this.eventsToAttach = ["pointerdown"];
6
- this._prepend = true;
7
- this._buttonName = buttonName;
8
- if (buttonClass) {
9
- this._buttonClass = buttonClass;
10
- }
11
- else {
12
- this._buttonClass = buttonName + "-button";
13
- }
14
- if (htmlTemplate) {
15
- this._htmlTemplate = htmlTemplate;
16
- }
17
- else {
18
- this._htmlTemplate = "\n<button class=\"".concat(this._buttonClass, "\">\n <span class=\"icon ").concat(this._buttonName, "-icon\"></span>\n</button>\n");
19
- }
20
- }
21
- AbstractViewerNavbarButton.prototype.interactionPredicate = function (event) {
22
- var pointerDown = event.event;
23
- if (pointerDown.button !== 0) {
24
- return false;
25
- }
26
- var element = event.event.target;
27
- if (!element) {
28
- return false;
29
- }
30
- var elementClasses = element.classList;
31
- for (var i = 0; i < elementClasses.length; ++i) {
32
- var className = elementClasses[i];
33
- if (className.indexOf(this._buttonClass) !== -1) {
34
- return true;
35
- }
36
- }
37
- return false;
38
- };
39
- AbstractViewerNavbarButton.prototype.addHTMLTemplate = function (template) {
40
- var element = this._generateHTMLElement(template);
41
- var container = template.parent.querySelector("div.default-control");
42
- if (container) {
43
- if (this._prepend) {
44
- container.insertBefore(element, container.firstChild);
45
- }
46
- else {
47
- container.appendChild(element);
48
- }
49
- }
50
- };
51
- AbstractViewerNavbarButton.prototype._generateHTMLElement = function (template) {
52
- var compiledTemplate = Handlebars.compile(this._htmlTemplate, { noEscape: template.configuration.params && !!template.configuration.params.noEscape });
53
- var config = template.configuration.params || {};
54
- var rawHtml = compiledTemplate(config);
55
- var fragment;
56
- try {
57
- fragment = document.createRange().createContextualFragment(rawHtml);
58
- }
59
- catch (e) {
60
- var test_1 = document.createElement(this._buttonClass);
61
- test_1.innerHTML = rawHtml;
62
- fragment = test_1;
63
- }
64
- return fragment;
65
- };
66
- return AbstractViewerNavbarButton;
67
- }());
68
- export { AbstractViewerNavbarButton };
1
+ import * as Handlebars from "handlebars";
2
+ var AbstractViewerNavbarButton = /** @class */ (function () {
3
+ function AbstractViewerNavbarButton(buttonName, buttonClass, htmlTemplate) {
4
+ this.templateName = "navBar";
5
+ this.eventsToAttach = ["pointerdown"];
6
+ this._prepend = true;
7
+ this._buttonName = buttonName;
8
+ if (buttonClass) {
9
+ this._buttonClass = buttonClass;
10
+ }
11
+ else {
12
+ this._buttonClass = buttonName + "-button";
13
+ }
14
+ if (htmlTemplate) {
15
+ this._htmlTemplate = htmlTemplate;
16
+ }
17
+ else {
18
+ this._htmlTemplate = "\n<button class=\"".concat(this._buttonClass, "\">\n <span class=\"icon ").concat(this._buttonName, "-icon\"></span>\n</button>\n");
19
+ }
20
+ }
21
+ AbstractViewerNavbarButton.prototype.interactionPredicate = function (event) {
22
+ var pointerDown = event.event;
23
+ if (pointerDown.button !== 0) {
24
+ return false;
25
+ }
26
+ var element = event.event.target;
27
+ if (!element) {
28
+ return false;
29
+ }
30
+ var elementClasses = element.classList;
31
+ for (var i = 0; i < elementClasses.length; ++i) {
32
+ var className = elementClasses[i];
33
+ if (className.indexOf(this._buttonClass) !== -1) {
34
+ return true;
35
+ }
36
+ }
37
+ return false;
38
+ };
39
+ AbstractViewerNavbarButton.prototype.addHTMLTemplate = function (template) {
40
+ var element = this._generateHTMLElement(template);
41
+ var container = template.parent.querySelector("div.default-control");
42
+ if (container) {
43
+ if (this._prepend) {
44
+ container.insertBefore(element, container.firstChild);
45
+ }
46
+ else {
47
+ container.appendChild(element);
48
+ }
49
+ }
50
+ };
51
+ AbstractViewerNavbarButton.prototype._generateHTMLElement = function (template) {
52
+ var compiledTemplate = Handlebars.compile(this._htmlTemplate, { noEscape: template.configuration.params && !!template.configuration.params.noEscape });
53
+ var config = template.configuration.params || {};
54
+ var rawHtml = compiledTemplate(config);
55
+ var fragment;
56
+ try {
57
+ fragment = document.createRange().createContextualFragment(rawHtml);
58
+ }
59
+ catch (e) {
60
+ var test_1 = document.createElement(this._buttonClass);
61
+ test_1.innerHTML = rawHtml;
62
+ fragment = test_1;
63
+ }
64
+ return fragment;
65
+ };
66
+ return AbstractViewerNavbarButton;
67
+ }());
68
+ export { AbstractViewerNavbarButton };
69
69
  //# sourceMappingURL=viewerTemplatePlugin.js.map
@@ -1,122 +1,122 @@
1
- import type { Template } from "../templating/templateManager";
2
- import { TemplateManager } from "../templating/templateManager";
3
- import { AbstractViewerWithTemplate } from "./viewerWithTemplate";
4
- import type { ViewerModel } from "../model/viewerModel";
5
- import type { IViewerTemplatePlugin } from "../templating/viewerTemplatePlugin";
6
- import type { ViewerConfiguration } from "../configuration/configuration";
7
- import type { IModelConfiguration } from "../configuration/interfaces/modelConfiguration";
8
- import "@babylonjs/core/Lights/Shadows/shadowGeneratorSceneComponent.js";
9
- /**
10
- * The Default viewer is the default implementation of the AbstractViewer.
11
- * It uses the templating system to render a new canvas and controls.
12
- */
13
- export declare class DefaultViewer extends AbstractViewerWithTemplate {
14
- containerElement: Element;
15
- /**
16
- * The corresponsing template manager of this viewer.
17
- */
18
- templateManager: TemplateManager;
19
- fullscreenElement?: Element;
20
- /**
21
- * Create a new default viewer
22
- * @param containerElement the element in which the templates will be rendered
23
- * @param initialConfiguration the initial configuration. Defaults to extending the default configuration
24
- */
25
- constructor(containerElement: Element, initialConfiguration?: ViewerConfiguration);
26
- private _registeredPlugins;
27
- registerTemplatePlugin(plugin: IViewerTemplatePlugin): void;
28
- /**
29
- * This will be executed when the templates initialize.
30
- */
31
- protected _onTemplatesLoaded(): Promise<import("./viewer").AbstractViewer>;
32
- private _initNavbar;
33
- private _animationList;
34
- private _currentAnimation;
35
- private _isAnimationPaused;
36
- private _resumePlay;
37
- private _handlePointerClick;
38
- /**
39
- * Plays or Pauses animation
40
- * @param noUiUpdate
41
- */
42
- private _togglePlayPause;
43
- private _oldIdleRotationValue;
44
- /**
45
- * Control progress bar position based on animation current frame
46
- */
47
- private _updateProgressBar;
48
- /**
49
- * Update Current Animation Speed
50
- * @param speed
51
- * @param paramsObject
52
- */
53
- private _updateAnimationSpeed;
54
- /**
55
- * Update Current Animation Type
56
- * @param data
57
- * @param data.label
58
- * @param data.value
59
- * @param paramsObject
60
- */
61
- private _updateAnimationType;
62
- protected _initVR(): void;
63
- /**
64
- * Toggle fullscreen of the entire viewer
65
- */
66
- toggleFullscreen: () => void;
67
- /**
68
- * Preparing the container element to present the viewer
69
- */
70
- protected _prepareContainerElement(): void;
71
- /**
72
- * This function will configure the templates and update them after a model was loaded
73
- * It is mainly responsible to changing the title and subtitle etc'.
74
- * @param model the model to be used to configure the templates by
75
- */
76
- protected _configureTemplate(model?: ViewerModel): void;
77
- /**
78
- * This will load a new model to the default viewer
79
- * overriding the AbstractViewer's loadModel.
80
- * The scene will automatically be cleared of the old models, if exist.
81
- * @param model the configuration object (or URL) to load.
82
- */
83
- loadModel(model?: string | File | IModelConfiguration): Promise<ViewerModel>;
84
- private _onModelLoaded;
85
- /**
86
- * Show the overlay and the defined sub-screen.
87
- * Mainly used for help and errors
88
- * @param subScreen the name of the subScreen. Those can be defined in the configuration object
89
- */
90
- showOverlayScreen(subScreen: string): Promise<string> | Promise<Template>;
91
- /**
92
- * Hide the overlay screen.
93
- */
94
- hideOverlayScreen(): Promise<string> | Promise<Template>;
95
- /**
96
- * show the viewer (in case it was hidden)
97
- *
98
- * @param visibilityFunction an optional function to execute in order to show the container
99
- */
100
- show(visibilityFunction?: (template: Template) => Promise<Template>): Promise<Template>;
101
- /**
102
- * hide the viewer (in case it is visible)
103
- *
104
- * @param visibilityFunction an optional function to execute in order to hide the container
105
- */
106
- hide(visibilityFunction?: (template: Template) => Promise<Template>): Promise<Template>;
107
- /**
108
- * Show the loading screen.
109
- * The loading screen can be configured using the configuration object
110
- */
111
- showLoadingScreen(): Promise<string> | Promise<Template>;
112
- /**
113
- * Hide the loading screen
114
- */
115
- hideLoadingScreen(): Promise<string> | Promise<Template>;
116
- dispose(): void;
117
- protected _onConfigurationLoaded(configuration: ViewerConfiguration): void;
118
- /**
119
- * An extension of the light configuration of the abstract viewer.
120
- */
121
- private _configureLights;
122
- }
1
+ import type { Template } from "../templating/templateManager";
2
+ import { TemplateManager } from "../templating/templateManager";
3
+ import { AbstractViewerWithTemplate } from "./viewerWithTemplate";
4
+ import type { ViewerModel } from "../model/viewerModel";
5
+ import type { IViewerTemplatePlugin } from "../templating/viewerTemplatePlugin";
6
+ import type { ViewerConfiguration } from "../configuration/configuration";
7
+ import type { IModelConfiguration } from "../configuration/interfaces/modelConfiguration";
8
+ import "@babylonjs/core/Lights/Shadows/shadowGeneratorSceneComponent.js";
9
+ /**
10
+ * The Default viewer is the default implementation of the AbstractViewer.
11
+ * It uses the templating system to render a new canvas and controls.
12
+ */
13
+ export declare class DefaultViewer extends AbstractViewerWithTemplate {
14
+ containerElement: Element;
15
+ /**
16
+ * The corresponsing template manager of this viewer.
17
+ */
18
+ templateManager: TemplateManager;
19
+ fullscreenElement?: Element;
20
+ /**
21
+ * Create a new default viewer
22
+ * @param containerElement the element in which the templates will be rendered
23
+ * @param initialConfiguration the initial configuration. Defaults to extending the default configuration
24
+ */
25
+ constructor(containerElement: Element, initialConfiguration?: ViewerConfiguration);
26
+ private _registeredPlugins;
27
+ registerTemplatePlugin(plugin: IViewerTemplatePlugin): void;
28
+ /**
29
+ * This will be executed when the templates initialize.
30
+ */
31
+ protected _onTemplatesLoaded(): Promise<import("./viewer").AbstractViewer>;
32
+ private _initNavbar;
33
+ private _animationList;
34
+ private _currentAnimation;
35
+ private _isAnimationPaused;
36
+ private _resumePlay;
37
+ private _handlePointerClick;
38
+ /**
39
+ * Plays or Pauses animation
40
+ * @param noUiUpdate
41
+ */
42
+ private _togglePlayPause;
43
+ private _oldIdleRotationValue;
44
+ /**
45
+ * Control progress bar position based on animation current frame
46
+ */
47
+ private _updateProgressBar;
48
+ /**
49
+ * Update Current Animation Speed
50
+ * @param speed
51
+ * @param paramsObject
52
+ */
53
+ private _updateAnimationSpeed;
54
+ /**
55
+ * Update Current Animation Type
56
+ * @param data
57
+ * @param data.label
58
+ * @param data.value
59
+ * @param paramsObject
60
+ */
61
+ private _updateAnimationType;
62
+ protected _initVR(): void;
63
+ /**
64
+ * Toggle fullscreen of the entire viewer
65
+ */
66
+ toggleFullscreen: () => void;
67
+ /**
68
+ * Preparing the container element to present the viewer
69
+ */
70
+ protected _prepareContainerElement(): void;
71
+ /**
72
+ * This function will configure the templates and update them after a model was loaded
73
+ * It is mainly responsible to changing the title and subtitle etc'.
74
+ * @param model the model to be used to configure the templates by
75
+ */
76
+ protected _configureTemplate(model?: ViewerModel): void;
77
+ /**
78
+ * This will load a new model to the default viewer
79
+ * overriding the AbstractViewer's loadModel.
80
+ * The scene will automatically be cleared of the old models, if exist.
81
+ * @param model the configuration object (or URL) to load.
82
+ */
83
+ loadModel(model?: string | File | IModelConfiguration): Promise<ViewerModel>;
84
+ private _onModelLoaded;
85
+ /**
86
+ * Show the overlay and the defined sub-screen.
87
+ * Mainly used for help and errors
88
+ * @param subScreen the name of the subScreen. Those can be defined in the configuration object
89
+ */
90
+ showOverlayScreen(subScreen: string): Promise<string> | Promise<Template>;
91
+ /**
92
+ * Hide the overlay screen.
93
+ */
94
+ hideOverlayScreen(): Promise<string> | Promise<Template>;
95
+ /**
96
+ * show the viewer (in case it was hidden)
97
+ *
98
+ * @param visibilityFunction an optional function to execute in order to show the container
99
+ */
100
+ show(visibilityFunction?: (template: Template) => Promise<Template>): Promise<Template>;
101
+ /**
102
+ * hide the viewer (in case it is visible)
103
+ *
104
+ * @param visibilityFunction an optional function to execute in order to hide the container
105
+ */
106
+ hide(visibilityFunction?: (template: Template) => Promise<Template>): Promise<Template>;
107
+ /**
108
+ * Show the loading screen.
109
+ * The loading screen can be configured using the configuration object
110
+ */
111
+ showLoadingScreen(): Promise<string> | Promise<Template>;
112
+ /**
113
+ * Hide the loading screen
114
+ */
115
+ hideLoadingScreen(): Promise<string> | Promise<Template>;
116
+ dispose(): void;
117
+ protected _onConfigurationLoaded(configuration: ViewerConfiguration): void;
118
+ /**
119
+ * An extension of the light configuration of the abstract viewer.
120
+ */
121
+ private _configureLights;
122
+ }