@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,107 +1,107 @@
1
- import type { IEnvironmentMapConfiguration } from "./interfaces/environmentMapConfiguration";
2
- import type { EngineOptions } from "@babylonjs/core/Engines/thinEngine.js";
3
- import type { IObserversConfiguration } from "./interfaces/observersConfiguration";
4
- import type { IModelConfiguration } from "./interfaces/modelConfiguration";
5
- import type { ISceneConfiguration } from "./interfaces/sceneConfiguration";
6
- import type { ISceneOptimizerConfiguration } from "./interfaces/sceneOptimizerConfiguration";
7
- import type { ICameraConfiguration } from "./interfaces/cameraConfiguration";
8
- import type { ISkyboxConfiguration } from "./interfaces/skyboxConfiguration";
9
- import type { IGroundConfiguration } from "./interfaces/groundConfiguration";
10
- import type { ILightConfiguration } from "./interfaces/lightConfiguration";
11
- import type { ITemplateConfiguration } from "./interfaces/templateConfiguration";
12
- import type { IVRConfiguration } from "./interfaces/vrConfiguration";
13
- import type { IDefaultRenderingPipelineConfiguration } from "./interfaces/defaultRenderingPipelineConfiguration";
14
- export declare function getConfigurationKey(key: string, configObject: any): any;
15
- export interface ViewerConfiguration {
16
- version?: string;
17
- extends?: string;
18
- pageUrl?: string;
19
- configuration?: string | {
20
- url?: string;
21
- payload?: any;
22
- mapper?: string;
23
- };
24
- observers?: IObserversConfiguration;
25
- canvasElement?: string;
26
- model?: IModelConfiguration | string;
27
- scene?: ISceneConfiguration;
28
- optimizer?: ISceneOptimizerConfiguration | boolean;
29
- camera?: ICameraConfiguration;
30
- skybox?: boolean | ISkyboxConfiguration;
31
- ground?: boolean | IGroundConfiguration;
32
- lights?: {
33
- [name: string]: number | boolean | ILightConfiguration;
34
- };
35
- engine?: {
36
- renderInBackground?: boolean;
37
- antialiasing?: boolean;
38
- disableResize?: boolean;
39
- engineOptions?: EngineOptions;
40
- adaptiveQuality?: boolean;
41
- hdEnabled?: boolean;
42
- };
43
- templates?: {
44
- main: ITemplateConfiguration;
45
- [key: string]: ITemplateConfiguration;
46
- };
47
- customShaders?: {
48
- shaders?: {
49
- [key: string]: string;
50
- };
51
- includes?: {
52
- [key: string]: string;
53
- };
54
- };
55
- loaderPlugins?: {
56
- extendedMaterial?: boolean;
57
- msftLod?: boolean;
58
- telemetry?: boolean;
59
- minecraft?: boolean;
60
- [propName: string]: boolean | undefined;
61
- };
62
- environmentMap?: IEnvironmentMapConfiguration;
63
- vr?: IVRConfiguration;
64
- "3dCommerceCertified"?: boolean;
65
- lab?: {
66
- flashlight?: boolean | {
67
- exponent?: number;
68
- angle?: number;
69
- intensity?: number;
70
- diffuse?: {
71
- r: number;
72
- g: number;
73
- b: number;
74
- };
75
- specular?: {
76
- r: number;
77
- g: number;
78
- b: number;
79
- };
80
- };
81
- hideLoadingDelay?: number;
82
- /** @deprecated */
83
- assetsRootURL?: string;
84
- environmentMainColor?: {
85
- r: number;
86
- g: number;
87
- b: number;
88
- };
89
- /** @deprecated */
90
- environmentMap?: {
91
- /**
92
- * Environment map texture path in relative to the asset folder.
93
- */
94
- texture: string;
95
- /**
96
- * Default rotation to apply to the environment map.
97
- */
98
- rotationY: number;
99
- /**
100
- * Tint level of the main color on the environment map.
101
- */
102
- tintLevel: number;
103
- };
104
- defaultRenderingPipelines?: boolean | IDefaultRenderingPipelineConfiguration;
105
- globalLightRotation?: number;
106
- };
107
- }
1
+ import type { IEnvironmentMapConfiguration } from "./interfaces/environmentMapConfiguration";
2
+ import type { EngineOptions } from "@babylonjs/core/Engines/thinEngine.js";
3
+ import type { IObserversConfiguration } from "./interfaces/observersConfiguration";
4
+ import type { IModelConfiguration } from "./interfaces/modelConfiguration";
5
+ import type { ISceneConfiguration } from "./interfaces/sceneConfiguration";
6
+ import type { ISceneOptimizerConfiguration } from "./interfaces/sceneOptimizerConfiguration";
7
+ import type { ICameraConfiguration } from "./interfaces/cameraConfiguration";
8
+ import type { ISkyboxConfiguration } from "./interfaces/skyboxConfiguration";
9
+ import type { IGroundConfiguration } from "./interfaces/groundConfiguration";
10
+ import type { ILightConfiguration } from "./interfaces/lightConfiguration";
11
+ import type { ITemplateConfiguration } from "./interfaces/templateConfiguration";
12
+ import type { IVRConfiguration } from "./interfaces/vrConfiguration";
13
+ import type { IDefaultRenderingPipelineConfiguration } from "./interfaces/defaultRenderingPipelineConfiguration";
14
+ export declare function getConfigurationKey(key: string, configObject: any): any;
15
+ export interface ViewerConfiguration {
16
+ version?: string;
17
+ extends?: string;
18
+ pageUrl?: string;
19
+ configuration?: string | {
20
+ url?: string;
21
+ payload?: any;
22
+ mapper?: string;
23
+ };
24
+ observers?: IObserversConfiguration;
25
+ canvasElement?: string;
26
+ model?: IModelConfiguration | string;
27
+ scene?: ISceneConfiguration;
28
+ optimizer?: ISceneOptimizerConfiguration | boolean;
29
+ camera?: ICameraConfiguration;
30
+ skybox?: boolean | ISkyboxConfiguration;
31
+ ground?: boolean | IGroundConfiguration;
32
+ lights?: {
33
+ [name: string]: number | boolean | ILightConfiguration;
34
+ };
35
+ engine?: {
36
+ renderInBackground?: boolean;
37
+ antialiasing?: boolean;
38
+ disableResize?: boolean;
39
+ engineOptions?: EngineOptions;
40
+ adaptiveQuality?: boolean;
41
+ hdEnabled?: boolean;
42
+ };
43
+ templates?: {
44
+ main: ITemplateConfiguration;
45
+ [key: string]: ITemplateConfiguration;
46
+ };
47
+ customShaders?: {
48
+ shaders?: {
49
+ [key: string]: string;
50
+ };
51
+ includes?: {
52
+ [key: string]: string;
53
+ };
54
+ };
55
+ loaderPlugins?: {
56
+ extendedMaterial?: boolean;
57
+ msftLod?: boolean;
58
+ telemetry?: boolean;
59
+ minecraft?: boolean;
60
+ [propName: string]: boolean | undefined;
61
+ };
62
+ environmentMap?: IEnvironmentMapConfiguration;
63
+ vr?: IVRConfiguration;
64
+ "3dCommerceCertified"?: boolean;
65
+ lab?: {
66
+ flashlight?: boolean | {
67
+ exponent?: number;
68
+ angle?: number;
69
+ intensity?: number;
70
+ diffuse?: {
71
+ r: number;
72
+ g: number;
73
+ b: number;
74
+ };
75
+ specular?: {
76
+ r: number;
77
+ g: number;
78
+ b: number;
79
+ };
80
+ };
81
+ hideLoadingDelay?: number;
82
+ /** @deprecated */
83
+ assetsRootURL?: string;
84
+ environmentMainColor?: {
85
+ r: number;
86
+ g: number;
87
+ b: number;
88
+ };
89
+ /** @deprecated */
90
+ environmentMap?: {
91
+ /**
92
+ * Environment map texture path in relative to the asset folder.
93
+ */
94
+ texture: string;
95
+ /**
96
+ * Default rotation to apply to the environment map.
97
+ */
98
+ rotationY: number;
99
+ /**
100
+ * Tint level of the main color on the environment map.
101
+ */
102
+ tintLevel: number;
103
+ };
104
+ defaultRenderingPipelines?: boolean | IDefaultRenderingPipelineConfiguration;
105
+ globalLightRotation?: number;
106
+ };
107
+ }
@@ -1,16 +1,16 @@
1
- export function getConfigurationKey(key, configObject) {
2
- var splits = key.split(".");
3
- if (splits.length === 0 || !configObject) {
4
- return;
5
- }
6
- else if (splits.length === 1) {
7
- if (configObject[key] !== undefined) {
8
- return configObject[key];
9
- }
10
- }
11
- else {
12
- var firstKey = splits.shift();
13
- return getConfigurationKey(splits.join("."), configObject[firstKey]);
14
- }
15
- }
1
+ export function getConfigurationKey(key, configObject) {
2
+ var splits = key.split(".");
3
+ if (splits.length === 0 || !configObject) {
4
+ return;
5
+ }
6
+ else if (splits.length === 1) {
7
+ if (configObject[key] !== undefined) {
8
+ return configObject[key];
9
+ }
10
+ }
11
+ else {
12
+ var firstKey = splits.shift();
13
+ return getConfigurationKey(splits.join("."), configObject[firstKey]);
14
+ }
15
+ }
16
16
  //# sourceMappingURL=configuration.js.map
@@ -1,8 +1,8 @@
1
- import type { ViewerConfiguration } from "./configuration";
2
- /**
3
- * This function will make sure the configuration file is taking deprecated fields into account
4
- * and is setting them to the correct keys and values.
5
- *
6
- * @param configuration The configuration to process. Mutable!
7
- */
8
- export declare function processConfigurationCompatibility(configuration: ViewerConfiguration): void;
1
+ import type { ViewerConfiguration } from "./configuration";
2
+ /**
3
+ * This function will make sure the configuration file is taking deprecated fields into account
4
+ * and is setting them to the correct keys and values.
5
+ *
6
+ * @param configuration The configuration to process. Mutable!
7
+ */
8
+ export declare function processConfigurationCompatibility(configuration: ViewerConfiguration): void;
@@ -1,66 +1,66 @@
1
- import { getConfigurationKey } from "./configuration.js";
2
- /**
3
- * This function will make sure the configuration file is taking deprecated fields into account
4
- * and is setting them to the correct keys and values.
5
- *
6
- * @param configuration The configuration to process. Mutable!
7
- */
8
- export function processConfigurationCompatibility(configuration) {
9
- if (configuration.camera) {
10
- // camera contrast -> image processing contrast
11
- if (configuration.camera.contrast !== undefined) {
12
- setKeyInObject(configuration, "scene.imageProcessingConfiguration.contrast", configuration.camera.contrast);
13
- }
14
- // camera exposure -> image processing exposure
15
- if (configuration.camera.exposure !== undefined) {
16
- setKeyInObject(configuration, "scene.imageProcessingConfiguration.exposure", configuration.camera.exposure);
17
- }
18
- }
19
- if (configuration.scene) {
20
- //glow
21
- if (configuration.scene.glow) {
22
- setKeyInObject(configuration, "lab.defaultRenderingPipelines.glowLayerEnabled", true);
23
- var enabledProcessing = getConfigurationKey("scene.imageProcessingConfiguration.isEnabled", configuration);
24
- if (enabledProcessing !== false) {
25
- setKeyInObject(configuration, "scene.imageProcessingConfiguration.isEnabled", true);
26
- }
27
- }
28
- if (configuration.scene.mainColor) {
29
- setKeyInObject(configuration, "environmentMap.mainColor", configuration.scene.mainColor, true);
30
- }
31
- }
32
- if (configuration.model && typeof configuration.model === "object") {
33
- // castShadows === castShadow
34
- if (configuration.model.castShadows !== undefined && configuration.model.castShadow === undefined) {
35
- configuration.model.castShadow = configuration.model.castShadows;
36
- }
37
- }
38
- if (configuration.lab) {
39
- if (configuration.lab.assetsRootURL) {
40
- setKeyInObject(configuration, "scene.assetsRootURL", configuration.lab.assetsRootURL, true);
41
- }
42
- if (configuration.lab.environmentMap) {
43
- setKeyInObject(configuration, "environmentMap", configuration.lab.environmentMap, true);
44
- }
45
- }
46
- }
47
- function setKeyInObject(object, keys, value, shouldOverwrite) {
48
- var keySplit = keys.split(".");
49
- if (keySplit.length === 0) {
50
- return;
51
- }
52
- var lastKey = keySplit.pop();
53
- if (!lastKey) {
54
- return;
55
- }
56
- var curObj = object;
57
- keySplit.forEach(function (key) {
58
- curObj[key] = curObj[key] || {};
59
- curObj = curObj[key];
60
- });
61
- if (curObj[lastKey] !== undefined && !shouldOverwrite) {
62
- return;
63
- }
64
- curObj[lastKey] = value;
65
- }
1
+ import { getConfigurationKey } from "./configuration.js";
2
+ /**
3
+ * This function will make sure the configuration file is taking deprecated fields into account
4
+ * and is setting them to the correct keys and values.
5
+ *
6
+ * @param configuration The configuration to process. Mutable!
7
+ */
8
+ export function processConfigurationCompatibility(configuration) {
9
+ if (configuration.camera) {
10
+ // camera contrast -> image processing contrast
11
+ if (configuration.camera.contrast !== undefined) {
12
+ setKeyInObject(configuration, "scene.imageProcessingConfiguration.contrast", configuration.camera.contrast);
13
+ }
14
+ // camera exposure -> image processing exposure
15
+ if (configuration.camera.exposure !== undefined) {
16
+ setKeyInObject(configuration, "scene.imageProcessingConfiguration.exposure", configuration.camera.exposure);
17
+ }
18
+ }
19
+ if (configuration.scene) {
20
+ //glow
21
+ if (configuration.scene.glow) {
22
+ setKeyInObject(configuration, "lab.defaultRenderingPipelines.glowLayerEnabled", true);
23
+ var enabledProcessing = getConfigurationKey("scene.imageProcessingConfiguration.isEnabled", configuration);
24
+ if (enabledProcessing !== false) {
25
+ setKeyInObject(configuration, "scene.imageProcessingConfiguration.isEnabled", true);
26
+ }
27
+ }
28
+ if (configuration.scene.mainColor) {
29
+ setKeyInObject(configuration, "environmentMap.mainColor", configuration.scene.mainColor, true);
30
+ }
31
+ }
32
+ if (configuration.model && typeof configuration.model === "object") {
33
+ // castShadows === castShadow
34
+ if (configuration.model.castShadows !== undefined && configuration.model.castShadow === undefined) {
35
+ configuration.model.castShadow = configuration.model.castShadows;
36
+ }
37
+ }
38
+ if (configuration.lab) {
39
+ if (configuration.lab.assetsRootURL) {
40
+ setKeyInObject(configuration, "scene.assetsRootURL", configuration.lab.assetsRootURL, true);
41
+ }
42
+ if (configuration.lab.environmentMap) {
43
+ setKeyInObject(configuration, "environmentMap", configuration.lab.environmentMap, true);
44
+ }
45
+ }
46
+ }
47
+ function setKeyInObject(object, keys, value, shouldOverwrite) {
48
+ var keySplit = keys.split(".");
49
+ if (keySplit.length === 0) {
50
+ return;
51
+ }
52
+ var lastKey = keySplit.pop();
53
+ if (!lastKey) {
54
+ return;
55
+ }
56
+ var curObj = object;
57
+ keySplit.forEach(function (key) {
58
+ curObj[key] = curObj[key] || {};
59
+ curObj = curObj[key];
60
+ });
61
+ if (curObj[lastKey] !== undefined && !shouldOverwrite) {
62
+ return;
63
+ }
64
+ curObj[lastKey] = value;
65
+ }
66
66
  //# sourceMappingURL=configurationCompatibility.js.map
@@ -1,10 +1,10 @@
1
- import type { ViewerConfiguration } from "./configuration";
2
- import { Color3 } from "@babylonjs/core/Maths/math.js";
3
- import type { Scene } from "@babylonjs/core/scene.js";
4
- export declare class ConfigurationContainer {
5
- configuration: ViewerConfiguration;
6
- viewerId: string;
7
- mainColor: Color3;
8
- reflectionColor: Color3;
9
- scene?: Scene;
10
- }
1
+ import type { ViewerConfiguration } from "./configuration";
2
+ import { Color3 } from "@babylonjs/core/Maths/math.js";
3
+ import type { Scene } from "@babylonjs/core/scene.js";
4
+ export declare class ConfigurationContainer {
5
+ configuration: ViewerConfiguration;
6
+ viewerId: string;
7
+ mainColor: Color3;
8
+ reflectionColor: Color3;
9
+ scene?: Scene;
10
+ }
@@ -1,10 +1,10 @@
1
- import { Color3 } from "@babylonjs/core/Maths/math.js";
2
- var ConfigurationContainer = /** @class */ (function () {
3
- function ConfigurationContainer() {
4
- this.mainColor = Color3.White();
5
- this.reflectionColor = Color3.White();
6
- }
7
- return ConfigurationContainer;
8
- }());
9
- export { ConfigurationContainer };
1
+ import { Color3 } from "@babylonjs/core/Maths/math.js";
2
+ var ConfigurationContainer = /** @class */ (function () {
3
+ function ConfigurationContainer() {
4
+ this.mainColor = Color3.White();
5
+ this.reflectionColor = Color3.White();
6
+ }
7
+ return ConfigurationContainer;
8
+ }());
9
+ export { ConfigurationContainer };
10
10
  //# sourceMappingURL=configurationContainer.js.map
@@ -1,6 +1,6 @@
1
- export declare class ViewerGlobals {
2
- disableInit: boolean;
3
- disableWebGL2Support: boolean;
4
- get version(): string;
5
- }
6
- export declare const viewerGlobals: ViewerGlobals;
1
+ export declare class ViewerGlobals {
2
+ disableInit: boolean;
3
+ disableWebGL2Support: boolean;
4
+ get version(): string;
5
+ }
6
+ export declare const viewerGlobals: ViewerGlobals;
@@ -1,18 +1,18 @@
1
- import { Engine } from "@babylonjs/core/Engines/engine.js";
2
- var ViewerGlobals = /** @class */ (function () {
3
- function ViewerGlobals() {
4
- this.disableInit = false;
5
- this.disableWebGL2Support = false;
6
- }
7
- Object.defineProperty(ViewerGlobals.prototype, "version", {
8
- get: function () {
9
- return Engine.Version;
10
- },
11
- enumerable: false,
12
- configurable: true
13
- });
14
- return ViewerGlobals;
15
- }());
16
- export { ViewerGlobals };
17
- export var viewerGlobals = new ViewerGlobals();
1
+ import { Engine } from "@babylonjs/core/Engines/engine.js";
2
+ var ViewerGlobals = /** @class */ (function () {
3
+ function ViewerGlobals() {
4
+ this.disableInit = false;
5
+ this.disableWebGL2Support = false;
6
+ }
7
+ Object.defineProperty(ViewerGlobals.prototype, "version", {
8
+ get: function () {
9
+ return Engine.Version;
10
+ },
11
+ enumerable: false,
12
+ configurable: true
13
+ });
14
+ return ViewerGlobals;
15
+ }());
16
+ export { ViewerGlobals };
17
+ export var viewerGlobals = new ViewerGlobals();
18
18
  //# sourceMappingURL=globals.js.map
@@ -1,2 +1,2 @@
1
- export * from "./configuration";
2
- export * from "./interfaces/index";
1
+ export * from "./configuration";
2
+ export * from "./interfaces/index";
@@ -1,4 +1,4 @@
1
- /* eslint-disable import/no-internal-modules */
2
- export * from "./configuration.js";
3
- export * from "./interfaces/index.js";
1
+ /* eslint-disable import/no-internal-modules */
2
+ export * from "./configuration.js";
3
+ export * from "./interfaces/index.js";
4
4
  //# sourceMappingURL=index.js.map
@@ -1,31 +1,31 @@
1
- export interface ICameraConfiguration {
2
- position?: {
3
- x: number;
4
- y: number;
5
- z: number;
6
- };
7
- rotation?: {
8
- x: number;
9
- y: number;
10
- z: number;
11
- w: number;
12
- };
13
- fov?: number;
14
- fovMode?: number;
15
- minZ?: number;
16
- maxZ?: number;
17
- inertia?: number;
18
- exposure?: number;
19
- pinchPrecision?: number;
20
- behaviors?: {
21
- [name: string]: boolean | number | ICameraBehaviorConfiguration;
22
- };
23
- disableCameraControl?: boolean;
24
- disableCtrlForPanning?: boolean;
25
- disableAutoFocus?: boolean;
26
- [propName: string]: any;
27
- }
28
- export interface ICameraBehaviorConfiguration {
29
- type: number;
30
- [propName: string]: any;
31
- }
1
+ export interface ICameraConfiguration {
2
+ position?: {
3
+ x: number;
4
+ y: number;
5
+ z: number;
6
+ };
7
+ rotation?: {
8
+ x: number;
9
+ y: number;
10
+ z: number;
11
+ w: number;
12
+ };
13
+ fov?: number;
14
+ fovMode?: number;
15
+ minZ?: number;
16
+ maxZ?: number;
17
+ inertia?: number;
18
+ exposure?: number;
19
+ pinchPrecision?: number;
20
+ behaviors?: {
21
+ [name: string]: boolean | number | ICameraBehaviorConfiguration;
22
+ };
23
+ disableCameraControl?: boolean;
24
+ disableCtrlForPanning?: boolean;
25
+ disableAutoFocus?: boolean;
26
+ [propName: string]: any;
27
+ }
28
+ export interface ICameraBehaviorConfiguration {
29
+ type: number;
30
+ [propName: string]: any;
31
+ }
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=cameraConfiguration.js.map