@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.
- package/configuration/configuration.d.ts +107 -107
- package/configuration/configuration.js +15 -15
- package/configuration/configurationCompatibility.d.ts +8 -8
- package/configuration/configurationCompatibility.js +65 -65
- package/configuration/configurationContainer.d.ts +10 -10
- package/configuration/configurationContainer.js +9 -9
- package/configuration/globals.d.ts +6 -6
- package/configuration/globals.js +17 -17
- package/configuration/index.d.ts +2 -2
- package/configuration/index.js +3 -3
- package/configuration/interfaces/cameraConfiguration.d.ts +31 -31
- package/configuration/interfaces/cameraConfiguration.js +1 -1
- package/configuration/interfaces/colorGradingConfiguration.d.ts +81 -81
- package/configuration/interfaces/colorGradingConfiguration.js +1 -1
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +20 -20
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +1 -1
- package/configuration/interfaces/environmentMapConfiguration.d.ts +22 -22
- package/configuration/interfaces/environmentMapConfiguration.js +1 -1
- package/configuration/interfaces/groundConfiguration.d.ts +24 -24
- package/configuration/interfaces/groundConfiguration.js +1 -1
- package/configuration/interfaces/imageProcessingConfiguration.d.ts +43 -43
- package/configuration/interfaces/imageProcessingConfiguration.js +1 -1
- package/configuration/interfaces/index.d.ts +15 -15
- package/configuration/interfaces/index.js +15 -15
- package/configuration/interfaces/lightConfiguration.d.ts +60 -60
- package/configuration/interfaces/lightConfiguration.js +1 -1
- package/configuration/interfaces/modelAnimationConfiguration.d.ts +26 -26
- package/configuration/interfaces/modelAnimationConfiguration.js +1 -1
- package/configuration/interfaces/modelConfiguration.d.ts +65 -65
- package/configuration/interfaces/modelConfiguration.js +1 -1
- package/configuration/interfaces/observersConfiguration.d.ts +5 -5
- package/configuration/interfaces/observersConfiguration.js +1 -1
- package/configuration/interfaces/sceneConfiguration.d.ts +48 -48
- package/configuration/interfaces/sceneConfiguration.js +1 -1
- package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +23 -23
- package/configuration/interfaces/sceneOptimizerConfiguration.js +1 -1
- package/configuration/interfaces/skyboxConfiguration.d.ts +21 -21
- package/configuration/interfaces/skyboxConfiguration.js +1 -1
- package/configuration/interfaces/templateConfiguration.d.ts +67 -67
- package/configuration/interfaces/templateConfiguration.js +1 -1
- package/configuration/interfaces/vrConfiguration.d.ts +16 -16
- package/configuration/interfaces/vrConfiguration.js +1 -1
- package/configuration/loader.d.ts +4 -4
- package/configuration/loader.js +16 -16
- package/configuration/mappers.d.ts +42 -42
- package/configuration/mappers.js +190 -190
- package/configuration/renderOnlyLoader.d.ts +33 -33
- package/configuration/renderOnlyLoader.js +161 -161
- package/configuration/types/default.d.ts +6 -6
- package/configuration/types/default.js +120 -120
- package/configuration/types/environmentMap.d.ts +5 -5
- package/configuration/types/environmentMap.js +13 -13
- package/configuration/types/extended.d.ts +6 -6
- package/configuration/types/extended.js +316 -316
- package/configuration/types/index.d.ts +13 -13
- package/configuration/types/index.js +49 -49
- package/configuration/types/minimal.d.ts +6 -6
- package/configuration/types/minimal.js +42 -42
- package/configuration/types/renderOnlyDefault.d.ts +30 -30
- package/configuration/types/renderOnlyDefault.js +30 -30
- package/configuration/types/shadowLight.d.ts +9 -9
- package/configuration/types/shadowLight.js +63 -63
- package/helper/index.d.ts +26 -26
- package/helper/index.js +62 -62
- package/index.d.ts +30 -30
- package/index.js +45 -45
- package/initializer.d.ts +11 -11
- package/initializer.js +34 -34
- package/interfaces.d.ts +5 -5
- package/interfaces.js +1 -1
- package/labs/environmentSerializer.d.ts +126 -126
- package/labs/environmentSerializer.js +190 -190
- package/labs/texture.d.ts +183 -183
- package/labs/texture.js +300 -300
- package/labs/viewerLabs.d.ts +51 -51
- package/labs/viewerLabs.js +133 -133
- package/loader/modelLoader.d.ts +47 -47
- package/loader/modelLoader.js +189 -189
- package/loader/plugins/applyMaterialConfig.d.ts +12 -12
- package/loader/plugins/applyMaterialConfig.js +15 -15
- package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +9 -9
- package/loader/plugins/extendedMaterialLoaderPlugin.js +15 -15
- package/loader/plugins/index.d.ts +18 -18
- package/loader/plugins/index.js +42 -42
- package/loader/plugins/loaderPlugin.d.ts +24 -24
- package/loader/plugins/loaderPlugin.js +1 -1
- package/loader/plugins/msftLodLoaderPlugin.d.ts +12 -12
- package/loader/plugins/msftLodLoaderPlugin.js +20 -20
- package/loader/plugins/telemetryLoaderPlugin.d.ts +12 -12
- package/loader/plugins/telemetryLoaderPlugin.js +35 -35
- package/managers/observablesManager.d.ts +66 -66
- package/managers/observablesManager.js +34 -34
- package/managers/sceneManager.d.ts +243 -243
- package/managers/sceneManager.js +1388 -1388
- package/managers/telemetryManager.d.ts +57 -57
- package/managers/telemetryManager.js +113 -113
- package/model/modelAnimation.d.ts +215 -215
- package/model/modelAnimation.js +232 -232
- package/model/viewerModel.d.ts +228 -228
- package/model/viewerModel.js +669 -669
- package/optimizer/custom/extended.d.ts +11 -11
- package/optimizer/custom/extended.js +98 -98
- package/optimizer/custom/index.d.ts +8 -8
- package/optimizer/custom/index.js +24 -24
- package/package.json +5 -5
- package/renderOnlyIndex.d.ts +11 -11
- package/renderOnlyIndex.js +17 -17
- package/templating/eventManager.d.ts +35 -35
- package/templating/eventManager.js +65 -65
- package/templating/plugins/hdButtonPlugin.d.ts +9 -9
- package/templating/plugins/hdButtonPlugin.js +21 -21
- package/templating/plugins/printButton.d.ts +9 -9
- package/templating/plugins/printButton.js +40 -40
- package/templating/templateManager.d.ts +190 -190
- package/templating/templateManager.js +553 -553
- package/templating/viewerTemplatePlugin.d.ts +21 -21
- package/templating/viewerTemplatePlugin.js +68 -68
- package/viewer/defaultViewer.d.ts +122 -122
- package/viewer/defaultViewer.js +665 -665
- package/viewer/renderOnlyViewer.d.ts +8 -8
- package/viewer/renderOnlyViewer.js +43 -43
- package/viewer/viewer.d.ts +254 -254
- package/viewer/viewer.js +777 -777
- package/viewer/viewerManager.d.ts +55 -55
- package/viewer/viewerManager.js +87 -87
- package/viewer/viewerWithTemplate.d.ts +9 -9
- package/viewer/viewerWithTemplate.js +19 -19
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { Observable } from "@babylonjs/core/Misc/observable.js";
|
|
2
|
-
import type { AbstractViewer } from "./viewer";
|
|
3
|
-
/**
|
|
4
|
-
* The viewer manager is the container for all viewers currently registered on this page.
|
|
5
|
-
* It is possible to have more than one viewer on a single page.
|
|
6
|
-
*/
|
|
7
|
-
export declare class ViewerManager {
|
|
8
|
-
private _viewers;
|
|
9
|
-
/**
|
|
10
|
-
* A callback that will be triggered when a new viewer was added
|
|
11
|
-
*/
|
|
12
|
-
onViewerAdded: (viewer: AbstractViewer) => void;
|
|
13
|
-
/**
|
|
14
|
-
* Will notify when a new viewer was added
|
|
15
|
-
*/
|
|
16
|
-
onViewerAddedObservable: Observable<AbstractViewer>;
|
|
17
|
-
/**
|
|
18
|
-
* Will notify when a viewer was removed (disposed)
|
|
19
|
-
*/
|
|
20
|
-
onViewerRemovedObservable: Observable<string>;
|
|
21
|
-
constructor();
|
|
22
|
-
/**
|
|
23
|
-
* Adding a new viewer to the viewer manager and start tracking it.
|
|
24
|
-
* @param viewer the viewer to add
|
|
25
|
-
*/
|
|
26
|
-
addViewer(viewer: AbstractViewer): void;
|
|
27
|
-
/**
|
|
28
|
-
* remove a viewer from the viewer manager
|
|
29
|
-
* @param viewer the viewer to remove
|
|
30
|
-
*/
|
|
31
|
-
removeViewer(viewer: AbstractViewer): void;
|
|
32
|
-
/**
|
|
33
|
-
* Get a viewer by its baseId (if the container element has an ID, it is the this is. if not, a random id was assigned)
|
|
34
|
-
* @param id the id of the HTMl element (or the viewer's, if none provided)
|
|
35
|
-
*/
|
|
36
|
-
getViewerById(id: string): AbstractViewer;
|
|
37
|
-
/**
|
|
38
|
-
* Get a viewer using a container element
|
|
39
|
-
* @param element the HTML element to search viewers associated with
|
|
40
|
-
*/
|
|
41
|
-
getViewerByHTMLElement(element: HTMLElement): AbstractViewer | null;
|
|
42
|
-
/**
|
|
43
|
-
* Get a promise that will fulfill when this viewer was initialized.
|
|
44
|
-
* Since viewer initialization and template injection is asynchronous, using the promise will guaranty that
|
|
45
|
-
* you will get the viewer after everything was already configured.
|
|
46
|
-
* @param id the viewer id to find
|
|
47
|
-
*/
|
|
48
|
-
getViewerPromiseById(id: string): Promise<AbstractViewer>;
|
|
49
|
-
private _onViewerAdded;
|
|
50
|
-
/**
|
|
51
|
-
* dispose the manager and all of its associated viewers
|
|
52
|
-
*/
|
|
53
|
-
dispose(): void;
|
|
54
|
-
}
|
|
55
|
-
export declare const viewerManager: ViewerManager;
|
|
1
|
+
import { Observable } from "@babylonjs/core/Misc/observable.js";
|
|
2
|
+
import type { AbstractViewer } from "./viewer";
|
|
3
|
+
/**
|
|
4
|
+
* The viewer manager is the container for all viewers currently registered on this page.
|
|
5
|
+
* It is possible to have more than one viewer on a single page.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ViewerManager {
|
|
8
|
+
private _viewers;
|
|
9
|
+
/**
|
|
10
|
+
* A callback that will be triggered when a new viewer was added
|
|
11
|
+
*/
|
|
12
|
+
onViewerAdded: (viewer: AbstractViewer) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Will notify when a new viewer was added
|
|
15
|
+
*/
|
|
16
|
+
onViewerAddedObservable: Observable<AbstractViewer>;
|
|
17
|
+
/**
|
|
18
|
+
* Will notify when a viewer was removed (disposed)
|
|
19
|
+
*/
|
|
20
|
+
onViewerRemovedObservable: Observable<string>;
|
|
21
|
+
constructor();
|
|
22
|
+
/**
|
|
23
|
+
* Adding a new viewer to the viewer manager and start tracking it.
|
|
24
|
+
* @param viewer the viewer to add
|
|
25
|
+
*/
|
|
26
|
+
addViewer(viewer: AbstractViewer): void;
|
|
27
|
+
/**
|
|
28
|
+
* remove a viewer from the viewer manager
|
|
29
|
+
* @param viewer the viewer to remove
|
|
30
|
+
*/
|
|
31
|
+
removeViewer(viewer: AbstractViewer): void;
|
|
32
|
+
/**
|
|
33
|
+
* Get a viewer by its baseId (if the container element has an ID, it is the this is. if not, a random id was assigned)
|
|
34
|
+
* @param id the id of the HTMl element (or the viewer's, if none provided)
|
|
35
|
+
*/
|
|
36
|
+
getViewerById(id: string): AbstractViewer;
|
|
37
|
+
/**
|
|
38
|
+
* Get a viewer using a container element
|
|
39
|
+
* @param element the HTML element to search viewers associated with
|
|
40
|
+
*/
|
|
41
|
+
getViewerByHTMLElement(element: HTMLElement): AbstractViewer | null;
|
|
42
|
+
/**
|
|
43
|
+
* Get a promise that will fulfill when this viewer was initialized.
|
|
44
|
+
* Since viewer initialization and template injection is asynchronous, using the promise will guaranty that
|
|
45
|
+
* you will get the viewer after everything was already configured.
|
|
46
|
+
* @param id the viewer id to find
|
|
47
|
+
*/
|
|
48
|
+
getViewerPromiseById(id: string): Promise<AbstractViewer>;
|
|
49
|
+
private _onViewerAdded;
|
|
50
|
+
/**
|
|
51
|
+
* dispose the manager and all of its associated viewers
|
|
52
|
+
*/
|
|
53
|
+
dispose(): void;
|
|
54
|
+
}
|
|
55
|
+
export declare const viewerManager: ViewerManager;
|
package/viewer/viewerManager.js
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import { Observable } from "@babylonjs/core/Misc/observable.js";
|
|
2
|
-
/**
|
|
3
|
-
* The viewer manager is the container for all viewers currently registered on this page.
|
|
4
|
-
* It is possible to have more than one viewer on a single page.
|
|
5
|
-
*/
|
|
6
|
-
var ViewerManager = /** @class */ (function () {
|
|
7
|
-
function ViewerManager() {
|
|
8
|
-
this._viewers = {};
|
|
9
|
-
this.onViewerAddedObservable = new Observable();
|
|
10
|
-
this.onViewerRemovedObservable = new Observable();
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Adding a new viewer to the viewer manager and start tracking it.
|
|
14
|
-
* @param viewer the viewer to add
|
|
15
|
-
*/
|
|
16
|
-
ViewerManager.prototype.addViewer = function (viewer) {
|
|
17
|
-
this._viewers[viewer.getBaseId()] = viewer;
|
|
18
|
-
this._onViewerAdded(viewer);
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* remove a viewer from the viewer manager
|
|
22
|
-
* @param viewer the viewer to remove
|
|
23
|
-
*/
|
|
24
|
-
ViewerManager.prototype.removeViewer = function (viewer) {
|
|
25
|
-
var id = viewer.getBaseId();
|
|
26
|
-
delete this._viewers[id];
|
|
27
|
-
this.onViewerRemovedObservable.notifyObservers(id);
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Get a viewer by its baseId (if the container element has an ID, it is the this is. if not, a random id was assigned)
|
|
31
|
-
* @param id the id of the HTMl element (or the viewer's, if none provided)
|
|
32
|
-
*/
|
|
33
|
-
ViewerManager.prototype.getViewerById = function (id) {
|
|
34
|
-
return this._viewers[id];
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Get a viewer using a container element
|
|
38
|
-
* @param element the HTML element to search viewers associated with
|
|
39
|
-
*/
|
|
40
|
-
ViewerManager.prototype.getViewerByHTMLElement = function (element) {
|
|
41
|
-
for (var id in this._viewers) {
|
|
42
|
-
if (this._viewers[id].containerElement === element) {
|
|
43
|
-
return this.getViewerById(id);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return null;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Get a promise that will fulfill when this viewer was initialized.
|
|
50
|
-
* Since viewer initialization and template injection is asynchronous, using the promise will guaranty that
|
|
51
|
-
* you will get the viewer after everything was already configured.
|
|
52
|
-
* @param id the viewer id to find
|
|
53
|
-
*/
|
|
54
|
-
ViewerManager.prototype.getViewerPromiseById = function (id) {
|
|
55
|
-
var _this = this;
|
|
56
|
-
return new Promise(function (resolve) {
|
|
57
|
-
var localViewer = _this.getViewerById(id);
|
|
58
|
-
if (localViewer) {
|
|
59
|
-
return resolve(localViewer);
|
|
60
|
-
}
|
|
61
|
-
var viewerFunction = function (viewer) {
|
|
62
|
-
if (viewer.getBaseId() === id) {
|
|
63
|
-
resolve(viewer);
|
|
64
|
-
_this.onViewerAddedObservable.removeCallback(viewerFunction);
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
_this.onViewerAddedObservable.add(viewerFunction);
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
ViewerManager.prototype._onViewerAdded = function (viewer) {
|
|
71
|
-
this.onViewerAdded && this.onViewerAdded(viewer);
|
|
72
|
-
this.onViewerAddedObservable.notifyObservers(viewer);
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* dispose the manager and all of its associated viewers
|
|
76
|
-
*/
|
|
77
|
-
ViewerManager.prototype.dispose = function () {
|
|
78
|
-
for (var id in this._viewers) {
|
|
79
|
-
this._viewers[id].dispose();
|
|
80
|
-
}
|
|
81
|
-
this.onViewerAddedObservable.clear();
|
|
82
|
-
this.onViewerRemovedObservable.clear();
|
|
83
|
-
};
|
|
84
|
-
return ViewerManager;
|
|
85
|
-
}());
|
|
86
|
-
export { ViewerManager };
|
|
87
|
-
export var viewerManager = new ViewerManager();
|
|
1
|
+
import { Observable } from "@babylonjs/core/Misc/observable.js";
|
|
2
|
+
/**
|
|
3
|
+
* The viewer manager is the container for all viewers currently registered on this page.
|
|
4
|
+
* It is possible to have more than one viewer on a single page.
|
|
5
|
+
*/
|
|
6
|
+
var ViewerManager = /** @class */ (function () {
|
|
7
|
+
function ViewerManager() {
|
|
8
|
+
this._viewers = {};
|
|
9
|
+
this.onViewerAddedObservable = new Observable();
|
|
10
|
+
this.onViewerRemovedObservable = new Observable();
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Adding a new viewer to the viewer manager and start tracking it.
|
|
14
|
+
* @param viewer the viewer to add
|
|
15
|
+
*/
|
|
16
|
+
ViewerManager.prototype.addViewer = function (viewer) {
|
|
17
|
+
this._viewers[viewer.getBaseId()] = viewer;
|
|
18
|
+
this._onViewerAdded(viewer);
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* remove a viewer from the viewer manager
|
|
22
|
+
* @param viewer the viewer to remove
|
|
23
|
+
*/
|
|
24
|
+
ViewerManager.prototype.removeViewer = function (viewer) {
|
|
25
|
+
var id = viewer.getBaseId();
|
|
26
|
+
delete this._viewers[id];
|
|
27
|
+
this.onViewerRemovedObservable.notifyObservers(id);
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Get a viewer by its baseId (if the container element has an ID, it is the this is. if not, a random id was assigned)
|
|
31
|
+
* @param id the id of the HTMl element (or the viewer's, if none provided)
|
|
32
|
+
*/
|
|
33
|
+
ViewerManager.prototype.getViewerById = function (id) {
|
|
34
|
+
return this._viewers[id];
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Get a viewer using a container element
|
|
38
|
+
* @param element the HTML element to search viewers associated with
|
|
39
|
+
*/
|
|
40
|
+
ViewerManager.prototype.getViewerByHTMLElement = function (element) {
|
|
41
|
+
for (var id in this._viewers) {
|
|
42
|
+
if (this._viewers[id].containerElement === element) {
|
|
43
|
+
return this.getViewerById(id);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return null;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Get a promise that will fulfill when this viewer was initialized.
|
|
50
|
+
* Since viewer initialization and template injection is asynchronous, using the promise will guaranty that
|
|
51
|
+
* you will get the viewer after everything was already configured.
|
|
52
|
+
* @param id the viewer id to find
|
|
53
|
+
*/
|
|
54
|
+
ViewerManager.prototype.getViewerPromiseById = function (id) {
|
|
55
|
+
var _this = this;
|
|
56
|
+
return new Promise(function (resolve) {
|
|
57
|
+
var localViewer = _this.getViewerById(id);
|
|
58
|
+
if (localViewer) {
|
|
59
|
+
return resolve(localViewer);
|
|
60
|
+
}
|
|
61
|
+
var viewerFunction = function (viewer) {
|
|
62
|
+
if (viewer.getBaseId() === id) {
|
|
63
|
+
resolve(viewer);
|
|
64
|
+
_this.onViewerAddedObservable.removeCallback(viewerFunction);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
_this.onViewerAddedObservable.add(viewerFunction);
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
ViewerManager.prototype._onViewerAdded = function (viewer) {
|
|
71
|
+
this.onViewerAdded && this.onViewerAdded(viewer);
|
|
72
|
+
this.onViewerAddedObservable.notifyObservers(viewer);
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* dispose the manager and all of its associated viewers
|
|
76
|
+
*/
|
|
77
|
+
ViewerManager.prototype.dispose = function () {
|
|
78
|
+
for (var id in this._viewers) {
|
|
79
|
+
this._viewers[id].dispose();
|
|
80
|
+
}
|
|
81
|
+
this.onViewerAddedObservable.clear();
|
|
82
|
+
this.onViewerRemovedObservable.clear();
|
|
83
|
+
};
|
|
84
|
+
return ViewerManager;
|
|
85
|
+
}());
|
|
86
|
+
export { ViewerManager };
|
|
87
|
+
export var viewerManager = new ViewerManager();
|
|
88
88
|
//# sourceMappingURL=viewerManager.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AbstractViewer } from "./viewer";
|
|
2
|
-
import { ConfigurationLoader } from "../configuration/loader";
|
|
3
|
-
/**
|
|
4
|
-
* The AbstractViewer is the center of Babylon's viewer.
|
|
5
|
-
* It is the basic implementation of the default viewer and is responsible of loading and showing the model and the templates
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class AbstractViewerWithTemplate extends AbstractViewer {
|
|
8
|
-
protected getConfigurationLoader(): ConfigurationLoader;
|
|
9
|
-
}
|
|
1
|
+
import { AbstractViewer } from "./viewer";
|
|
2
|
+
import { ConfigurationLoader } from "../configuration/loader";
|
|
3
|
+
/**
|
|
4
|
+
* The AbstractViewer is the center of Babylon's viewer.
|
|
5
|
+
* It is the basic implementation of the default viewer and is responsible of loading and showing the model and the templates
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class AbstractViewerWithTemplate extends AbstractViewer {
|
|
8
|
+
protected getConfigurationLoader(): ConfigurationLoader;
|
|
9
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { AbstractViewer } from "./viewer.js";
|
|
3
|
-
import { ConfigurationLoader } from "../configuration/loader.js";
|
|
4
|
-
/**
|
|
5
|
-
* The AbstractViewer is the center of Babylon's viewer.
|
|
6
|
-
* It is the basic implementation of the default viewer and is responsible of loading and showing the model and the templates
|
|
7
|
-
*/
|
|
8
|
-
var AbstractViewerWithTemplate = /** @class */ (function (_super) {
|
|
9
|
-
__extends(AbstractViewerWithTemplate, _super);
|
|
10
|
-
function AbstractViewerWithTemplate() {
|
|
11
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
12
|
-
}
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
14
|
-
AbstractViewerWithTemplate.prototype.getConfigurationLoader = function () {
|
|
15
|
-
return new ConfigurationLoader();
|
|
16
|
-
};
|
|
17
|
-
return AbstractViewerWithTemplate;
|
|
18
|
-
}(AbstractViewer));
|
|
19
|
-
export { AbstractViewerWithTemplate };
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { AbstractViewer } from "./viewer.js";
|
|
3
|
+
import { ConfigurationLoader } from "../configuration/loader.js";
|
|
4
|
+
/**
|
|
5
|
+
* The AbstractViewer is the center of Babylon's viewer.
|
|
6
|
+
* It is the basic implementation of the default viewer and is responsible of loading and showing the model and the templates
|
|
7
|
+
*/
|
|
8
|
+
var AbstractViewerWithTemplate = /** @class */ (function (_super) {
|
|
9
|
+
__extends(AbstractViewerWithTemplate, _super);
|
|
10
|
+
function AbstractViewerWithTemplate() {
|
|
11
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
12
|
+
}
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
14
|
+
AbstractViewerWithTemplate.prototype.getConfigurationLoader = function () {
|
|
15
|
+
return new ConfigurationLoader();
|
|
16
|
+
};
|
|
17
|
+
return AbstractViewerWithTemplate;
|
|
18
|
+
}(AbstractViewer));
|
|
19
|
+
export { AbstractViewerWithTemplate };
|
|
20
20
|
//# sourceMappingURL=viewerWithTemplate.js.map
|