@babylonjs/viewer 5.0.0-rc.2 → 5.0.0

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 (159) hide show
  1. package/configuration/configuration.d.ts +13 -13
  2. package/configuration/configuration.js +1 -1
  3. package/configuration/configuration.js.map +1 -1
  4. package/configuration/configurationCompatibility.d.ts +1 -1
  5. package/configuration/configurationCompatibility.js +2 -2
  6. package/configuration/configurationCompatibility.js.map +1 -1
  7. package/configuration/configurationContainer.d.ts +3 -3
  8. package/configuration/configurationContainer.js +1 -1
  9. package/configuration/configurationContainer.js.map +1 -1
  10. package/configuration/globals.d.ts +1 -1
  11. package/configuration/globals.js.map +1 -1
  12. package/configuration/index.d.ts +2 -2
  13. package/configuration/index.js +3 -2
  14. package/configuration/index.js.map +1 -1
  15. package/configuration/interfaces/cameraConfiguration.js.map +1 -1
  16. package/configuration/interfaces/colorGradingConfiguration.js.map +1 -1
  17. package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +1 -1
  18. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +1 -1
  19. package/configuration/interfaces/environmentMapConfiguration.js.map +1 -1
  20. package/configuration/interfaces/groundConfiguration.js.map +1 -1
  21. package/configuration/interfaces/imageProcessingConfiguration.js.map +1 -1
  22. package/configuration/interfaces/index.d.ts +15 -15
  23. package/configuration/interfaces/index.js +15 -15
  24. package/configuration/interfaces/index.js.map +1 -1
  25. package/configuration/interfaces/lightConfiguration.js.map +1 -1
  26. package/configuration/interfaces/modelAnimationConfiguration.js.map +1 -1
  27. package/configuration/interfaces/modelConfiguration.d.ts +1 -1
  28. package/configuration/interfaces/modelConfiguration.js.map +1 -1
  29. package/configuration/interfaces/observersConfiguration.js.map +1 -1
  30. package/configuration/interfaces/sceneConfiguration.d.ts +3 -3
  31. package/configuration/interfaces/sceneConfiguration.js.map +1 -1
  32. package/configuration/interfaces/sceneOptimizerConfiguration.js.map +1 -1
  33. package/configuration/interfaces/skyboxConfiguration.d.ts +1 -1
  34. package/configuration/interfaces/skyboxConfiguration.js.map +1 -1
  35. package/configuration/interfaces/templateConfiguration.js.map +1 -1
  36. package/configuration/interfaces/vrConfiguration.d.ts +1 -1
  37. package/configuration/interfaces/vrConfiguration.js.map +1 -1
  38. package/configuration/loader.js +3 -15
  39. package/configuration/loader.js.map +1 -1
  40. package/configuration/mappers.d.ts +3 -3
  41. package/configuration/mappers.js +13 -12
  42. package/configuration/mappers.js.map +1 -1
  43. package/configuration/renderOnlyLoader.d.ts +1 -1
  44. package/configuration/renderOnlyLoader.js +18 -15
  45. package/configuration/renderOnlyLoader.js.map +1 -1
  46. package/configuration/types/default.d.ts +2 -2
  47. package/configuration/types/default.js +37 -36
  48. package/configuration/types/default.js.map +1 -1
  49. package/configuration/types/environmentMap.d.ts +1 -1
  50. package/configuration/types/environmentMap.js +5 -5
  51. package/configuration/types/environmentMap.js.map +1 -1
  52. package/configuration/types/extended.d.ts +2 -2
  53. package/configuration/types/extended.js +49 -49
  54. package/configuration/types/extended.js.map +1 -1
  55. package/configuration/types/index.d.ts +4 -4
  56. package/configuration/types/index.js +14 -13
  57. package/configuration/types/index.js.map +1 -1
  58. package/configuration/types/minimal.d.ts +2 -2
  59. package/configuration/types/minimal.js +12 -12
  60. package/configuration/types/minimal.js.map +1 -1
  61. package/configuration/types/renderOnlyDefault.d.ts +1 -1
  62. package/configuration/types/renderOnlyDefault.js +8 -8
  63. package/configuration/types/renderOnlyDefault.js.map +1 -1
  64. package/configuration/types/shadowLight.d.ts +1 -1
  65. package/configuration/types/shadowLight.js +12 -12
  66. package/configuration/types/shadowLight.js.map +1 -1
  67. package/helper/index.d.ts +3 -3
  68. package/helper/index.js +14 -8
  69. package/helper/index.js.map +1 -1
  70. package/index.d.ts +20 -20
  71. package/index.js +22 -18
  72. package/index.js.map +1 -1
  73. package/initializer.js +8 -7
  74. package/initializer.js.map +1 -1
  75. package/interfaces.js.map +1 -1
  76. package/labs/environmentSerializer.d.ts +6 -6
  77. package/labs/environmentSerializer.js +18 -14
  78. package/labs/environmentSerializer.js.map +1 -1
  79. package/labs/texture.d.ts +7 -8
  80. package/labs/texture.js +30 -27
  81. package/labs/texture.js.map +1 -1
  82. package/labs/viewerLabs.d.ts +11 -11
  83. package/labs/viewerLabs.js +9 -7
  84. package/labs/viewerLabs.js.map +1 -1
  85. package/license.md +71 -0
  86. package/loader/modelLoader.d.ts +10 -7
  87. package/loader/modelLoader.js +26 -19
  88. package/loader/modelLoader.js.map +1 -1
  89. package/loader/plugins/applyMaterialConfig.d.ts +4 -4
  90. package/loader/plugins/applyMaterialConfig.js.map +1 -1
  91. package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +2 -2
  92. package/loader/plugins/extendedMaterialLoaderPlugin.js +1 -1
  93. package/loader/plugins/extendedMaterialLoaderPlugin.js.map +1 -1
  94. package/loader/plugins/index.d.ts +5 -4
  95. package/loader/plugins/index.js +9 -8
  96. package/loader/plugins/index.js.map +1 -1
  97. package/loader/plugins/loaderPlugin.d.ts +7 -7
  98. package/loader/plugins/loaderPlugin.js.map +1 -1
  99. package/loader/plugins/msftLodLoaderPlugin.d.ts +5 -5
  100. package/loader/plugins/msftLodLoaderPlugin.js +2 -1
  101. package/loader/plugins/msftLodLoaderPlugin.js.map +1 -1
  102. package/loader/plugins/telemetryLoaderPlugin.d.ts +4 -4
  103. package/loader/plugins/telemetryLoaderPlugin.js +4 -4
  104. package/loader/plugins/telemetryLoaderPlugin.js.map +1 -1
  105. package/managers/observablesManager.d.ts +6 -6
  106. package/managers/observablesManager.js +1 -1
  107. package/managers/observablesManager.js.map +1 -1
  108. package/managers/sceneManager.d.ts +28 -30
  109. package/managers/sceneManager.js +96 -95
  110. package/managers/sceneManager.js.map +1 -1
  111. package/managers/telemetryManager.d.ts +6 -6
  112. package/managers/telemetryManager.js +6 -6
  113. package/managers/telemetryManager.js.map +1 -1
  114. package/model/modelAnimation.d.ts +14 -14
  115. package/model/modelAnimation.js +3 -3
  116. package/model/modelAnimation.js.map +1 -1
  117. package/model/viewerModel.d.ts +23 -31
  118. package/model/viewerModel.js +51 -46
  119. package/model/viewerModel.js.map +1 -1
  120. package/optimizer/custom/extended.d.ts +3 -5
  121. package/optimizer/custom/extended.js +3 -5
  122. package/optimizer/custom/extended.js.map +1 -1
  123. package/optimizer/custom/index.d.ts +1 -1
  124. package/optimizer/custom/index.js +1 -1
  125. package/optimizer/custom/index.js.map +1 -1
  126. package/package.json +41 -215
  127. package/readme.md +12 -8
  128. package/renderOnlyIndex.d.ts +10 -10
  129. package/renderOnlyIndex.js +6 -4
  130. package/renderOnlyIndex.js.map +1 -1
  131. package/templating/eventManager.d.ts +1 -1
  132. package/templating/eventManager.js +4 -2
  133. package/templating/eventManager.js.map +1 -1
  134. package/templating/plugins/hdButtonPlugin.d.ts +2 -2
  135. package/templating/plugins/hdButtonPlugin.js +2 -15
  136. package/templating/plugins/hdButtonPlugin.js.map +1 -1
  137. package/templating/plugins/printButton.d.ts +2 -3
  138. package/templating/plugins/printButton.js +3 -16
  139. package/templating/plugins/printButton.js.map +1 -1
  140. package/templating/templateManager.d.ts +8 -7
  141. package/templating/templateManager.js +72 -62
  142. package/templating/templateManager.js.map +1 -1
  143. package/templating/viewerTemplatePlugin.d.ts +1 -1
  144. package/templating/viewerTemplatePlugin.js +4 -4
  145. package/templating/viewerTemplatePlugin.js.map +1 -1
  146. package/viewer/defaultViewer.d.ts +17 -11
  147. package/viewer/defaultViewer.js +116 -121
  148. package/viewer/defaultViewer.js.map +1 -1
  149. package/viewer/renderOnlyViewer.d.ts +2 -2
  150. package/viewer/renderOnlyViewer.js +17 -24
  151. package/viewer/renderOnlyViewer.js.map +1 -1
  152. package/viewer/viewer.d.ts +19 -18
  153. package/viewer/viewer.js +63 -49
  154. package/viewer/viewer.js.map +1 -1
  155. package/viewer/viewerManager.d.ts +5 -5
  156. package/viewer/viewerManager.js +4 -3
  157. package/viewer/viewerManager.js.map +1 -1
  158. package/viewer/viewerWithTemplate.js +2 -15
  159. package/viewer/viewerWithTemplate.js.map +1 -1
@@ -1,16 +1,16 @@
1
- import { IEnvironmentMapConfiguration } from './interfaces/environmentMapConfiguration';
2
- import { EngineOptions } from '@babylonjs/core/Engines/thinEngine';
3
- import { IObserversConfiguration } from './interfaces/observersConfiguration';
4
- import { IModelConfiguration } from './interfaces/modelConfiguration';
5
- import { ISceneConfiguration } from './interfaces/sceneConfiguration';
6
- import { ISceneOptimizerConfiguration } from './interfaces/sceneOptimizerConfiguration';
7
- import { ICameraConfiguration } from './interfaces/cameraConfiguration';
8
- import { ISkyboxConfiguration } from './interfaces/skyboxConfiguration';
9
- import { IGroundConfiguration } from './interfaces/groundConfiguration';
10
- import { ILightConfiguration } from './interfaces/lightConfiguration';
11
- import { ITemplateConfiguration } from './interfaces/templateConfiguration';
12
- import { IVRConfiguration } from './interfaces/vrConfiguration';
13
- import { IDefaultRenderingPipelineConfiguration } from './interfaces/defaultRenderingPipelineConfiguration';
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
14
  export declare function getConfigurationKey(key: string, configObject: any): any;
15
15
  export interface ViewerConfiguration {
16
16
  version?: string;
@@ -1,5 +1,5 @@
1
1
  export function getConfigurationKey(key, configObject) {
2
- var splits = key.split('.');
2
+ var splits = key.split(".");
3
3
  if (splits.length === 0 || !configObject) {
4
4
  return;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../../sourceES6/viewer/src/configuration/configuration.ts"],"names":[],"mappings":"AAcA,MAAM,UAAU,mBAAmB,CAAC,GAAW,EAAE,YAAiB;IAC9D,IAAI,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAE5B,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE;QAAE,OAAO;KAAE;SAChD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;QAC1B,IAAI,YAAY,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE;YACjC,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC;SAC5B;KACJ;SAAM;QACH,IAAI,QAAQ,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC;QAC9B,OAAO,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,QAAS,CAAC,CAAC,CAAC;KACzE;AACL,CAAC","sourcesContent":["import { IEnvironmentMapConfiguration } from './interfaces/environmentMapConfiguration';\r\nimport { EngineOptions } from '@babylonjs/core/Engines/thinEngine';\r\nimport { IObserversConfiguration } from './interfaces/observersConfiguration';\r\nimport { IModelConfiguration } from './interfaces/modelConfiguration';\r\nimport { ISceneConfiguration } from './interfaces/sceneConfiguration';\r\nimport { ISceneOptimizerConfiguration } from './interfaces/sceneOptimizerConfiguration';\r\nimport { ICameraConfiguration } from './interfaces/cameraConfiguration';\r\nimport { ISkyboxConfiguration } from './interfaces/skyboxConfiguration';\r\nimport { IGroundConfiguration } from './interfaces/groundConfiguration';\r\nimport { ILightConfiguration } from './interfaces/lightConfiguration';\r\nimport { ITemplateConfiguration } from './interfaces/templateConfiguration';\r\nimport { IVRConfiguration } from './interfaces/vrConfiguration';\r\nimport { IDefaultRenderingPipelineConfiguration } from './interfaces/defaultRenderingPipelineConfiguration';\r\n\r\nexport function getConfigurationKey(key: string, configObject: any) {\r\n let splits = key.split('.');\r\n\r\n if (splits.length === 0 || !configObject) { return; }\r\n else if (splits.length === 1) {\r\n if (configObject[key] !== undefined) {\r\n return configObject[key];\r\n }\r\n } else {\r\n let firstKey = splits.shift();\r\n return getConfigurationKey(splits.join(\".\"), configObject[firstKey!]);\r\n }\r\n}\r\n\r\nexport interface ViewerConfiguration {\r\n\r\n // configuration version\r\n version?: string;\r\n extends?: string; // is this configuration extending an existing configuration?\r\n\r\n pageUrl?: string; // will be used for sharing and other fun stuff. This is the page showing the model (not the model's url!)\r\n\r\n configuration?: string | {\r\n url?: string;\r\n payload?: any;\r\n mapper?: string; // json (default), html, yaml, xml, etc'. if not provided, file extension will be used.\r\n };\r\n\r\n // names of functions in the window context.\r\n observers?: IObserversConfiguration;\r\n\r\n canvasElement?: string; // if there is a need to override the standard implementation - ID of HTMLCanvasElement\r\n\r\n model?: IModelConfiguration | string;\r\n\r\n scene?: ISceneConfiguration;\r\n optimizer?: ISceneOptimizerConfiguration | boolean;\r\n // at the moment, support only a single camera.\r\n camera?: ICameraConfiguration;\r\n skybox?: boolean | ISkyboxConfiguration;\r\n\r\n ground?: boolean | IGroundConfiguration;\r\n lights?: {\r\n //globalRotation: number,\r\n [name: string]: number | boolean | ILightConfiguration\r\n };\r\n // engine configuration. optional!\r\n engine?: {\r\n renderInBackground?: boolean;\r\n antialiasing?: boolean;\r\n disableResize?: boolean;\r\n engineOptions?: EngineOptions;\r\n adaptiveQuality?: boolean;\r\n hdEnabled?: boolean;\r\n };\r\n //templateStructure?: ITemplateStructure,\r\n templates?: {\r\n main: ITemplateConfiguration,\r\n [key: string]: ITemplateConfiguration\r\n };\r\n\r\n customShaders?: {\r\n shaders?: {\r\n [key: string]: string;\r\n };\r\n includes?: {\r\n [key: string]: string;\r\n }\r\n };\r\n\r\n loaderPlugins?: {\r\n extendedMaterial?: boolean;\r\n msftLod?: boolean;\r\n telemetry?: boolean;\r\n minecraft?: boolean;\r\n\r\n [propName: string]: boolean | undefined;\r\n };\r\n\r\n environmentMap?: IEnvironmentMapConfiguration;\r\n\r\n vr?: IVRConfiguration;\r\n \"3dCommerceCertified\"?: boolean;\r\n\r\n // features that are being tested.\r\n // those features' syntax will change and move out!\r\n // Don't use in production (or be ready to make the changes :) )\r\n lab?: {\r\n flashlight?: boolean | {\r\n exponent?: number;\r\n angle?: number;\r\n intensity?: number;\r\n diffuse?: { r: number, g: number, b: number };\r\n specular?: { r: number, g: number, b: number };\r\n }\r\n hideLoadingDelay?: number;\r\n /** @deprecated */\r\n assetsRootURL?: string;\r\n environmentMainColor?: { r: number, g: number, b: number };\r\n /** @deprecated */\r\n environmentMap?: {\r\n /**\r\n * Environment map texture path in relative to the asset folder.\r\n */\r\n texture: string;\r\n\r\n /**\r\n * Default rotation to apply to the environment map.\r\n */\r\n rotationY: number;\r\n\r\n /**\r\n * Tint level of the main color on the environment map.\r\n */\r\n tintLevel: number;\r\n }\r\n defaultRenderingPipelines?: boolean | IDefaultRenderingPipelineConfiguration;\r\n globalLightRotation?: number;\r\n };\r\n}"]}
1
+ {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/configuration.ts"],"names":[],"mappings":"AAeA,MAAM,UAAU,mBAAmB,CAAC,GAAW,EAAE,YAAiB;IAC9D,IAAM,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAE9B,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE;QACtC,OAAO;KACV;SAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;QAC5B,IAAI,YAAY,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE;YACjC,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC;SAC5B;KACJ;SAAM;QACH,IAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC;QAChC,OAAO,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,QAAS,CAAC,CAAC,CAAC;KACzE;AACL,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\r\nimport type { IEnvironmentMapConfiguration } from \"./interfaces/environmentMapConfiguration\";\r\nimport type { EngineOptions } from \"core/Engines/thinEngine\";\r\nimport type { IObserversConfiguration } from \"./interfaces/observersConfiguration\";\r\nimport type { IModelConfiguration } from \"./interfaces/modelConfiguration\";\r\nimport type { ISceneConfiguration } from \"./interfaces/sceneConfiguration\";\r\nimport type { ISceneOptimizerConfiguration } from \"./interfaces/sceneOptimizerConfiguration\";\r\nimport type { ICameraConfiguration } from \"./interfaces/cameraConfiguration\";\r\nimport type { ISkyboxConfiguration } from \"./interfaces/skyboxConfiguration\";\r\nimport type { IGroundConfiguration } from \"./interfaces/groundConfiguration\";\r\nimport type { ILightConfiguration } from \"./interfaces/lightConfiguration\";\r\nimport type { ITemplateConfiguration } from \"./interfaces/templateConfiguration\";\r\nimport type { IVRConfiguration } from \"./interfaces/vrConfiguration\";\r\nimport type { IDefaultRenderingPipelineConfiguration } from \"./interfaces/defaultRenderingPipelineConfiguration\";\r\n\r\nexport function getConfigurationKey(key: string, configObject: any): any {\r\n const splits = key.split(\".\");\r\n\r\n if (splits.length === 0 || !configObject) {\r\n return;\r\n } else if (splits.length === 1) {\r\n if (configObject[key] !== undefined) {\r\n return configObject[key];\r\n }\r\n } else {\r\n const firstKey = splits.shift();\r\n return getConfigurationKey(splits.join(\".\"), configObject[firstKey!]);\r\n }\r\n}\r\n\r\nexport interface ViewerConfiguration {\r\n // configuration version\r\n version?: string;\r\n extends?: string; // is this configuration extending an existing configuration?\r\n\r\n pageUrl?: string; // will be used for sharing and other fun stuff. This is the page showing the model (not the model's url!)\r\n\r\n configuration?:\r\n | string\r\n | {\r\n url?: string;\r\n payload?: any;\r\n mapper?: string; // json (default), html, yaml, xml, etc'. if not provided, file extension will be used.\r\n };\r\n\r\n // names of functions in the window context.\r\n observers?: IObserversConfiguration;\r\n\r\n canvasElement?: string; // if there is a need to override the standard implementation - ID of HTMLCanvasElement\r\n\r\n model?: IModelConfiguration | string;\r\n\r\n scene?: ISceneConfiguration;\r\n optimizer?: ISceneOptimizerConfiguration | boolean;\r\n // at the moment, support only a single camera.\r\n camera?: ICameraConfiguration;\r\n skybox?: boolean | ISkyboxConfiguration;\r\n\r\n ground?: boolean | IGroundConfiguration;\r\n lights?: {\r\n //globalRotation: number,\r\n [name: string]: number | boolean | ILightConfiguration;\r\n };\r\n // engine configuration. optional!\r\n engine?: {\r\n renderInBackground?: boolean;\r\n antialiasing?: boolean;\r\n disableResize?: boolean;\r\n engineOptions?: EngineOptions;\r\n adaptiveQuality?: boolean;\r\n hdEnabled?: boolean;\r\n };\r\n //templateStructure?: ITemplateStructure,\r\n templates?: {\r\n main: ITemplateConfiguration;\r\n [key: string]: ITemplateConfiguration;\r\n };\r\n\r\n customShaders?: {\r\n shaders?: {\r\n [key: string]: string;\r\n };\r\n includes?: {\r\n [key: string]: string;\r\n };\r\n };\r\n\r\n loaderPlugins?: {\r\n extendedMaterial?: boolean;\r\n msftLod?: boolean;\r\n telemetry?: boolean;\r\n minecraft?: boolean;\r\n\r\n [propName: string]: boolean | undefined;\r\n };\r\n\r\n environmentMap?: IEnvironmentMapConfiguration;\r\n\r\n vr?: IVRConfiguration;\r\n \"3dCommerceCertified\"?: boolean;\r\n\r\n // features that are being tested.\r\n // those features' syntax will change and move out!\r\n // Don't use in production (or be ready to make the changes :) )\r\n lab?: {\r\n flashlight?:\r\n | boolean\r\n | {\r\n exponent?: number;\r\n angle?: number;\r\n intensity?: number;\r\n diffuse?: { r: number; g: number; b: number };\r\n specular?: { r: number; g: number; b: number };\r\n };\r\n hideLoadingDelay?: number;\r\n /** @deprecated */\r\n assetsRootURL?: string;\r\n environmentMainColor?: { r: number; g: number; b: number };\r\n /** @deprecated */\r\n environmentMap?: {\r\n /**\r\n * Environment map texture path in relative to the asset folder.\r\n */\r\n texture: string;\r\n\r\n /**\r\n * Default rotation to apply to the environment map.\r\n */\r\n rotationY: number;\r\n\r\n /**\r\n * Tint level of the main color on the environment map.\r\n */\r\n tintLevel: number;\r\n };\r\n defaultRenderingPipelines?: boolean | IDefaultRenderingPipelineConfiguration;\r\n globalLightRotation?: number;\r\n };\r\n}\r\n"]}
@@ -1,4 +1,4 @@
1
- import { ViewerConfiguration } from './configuration';
1
+ import type { ViewerConfiguration } from "./configuration";
2
2
  /**
3
3
  * This function will make sure the configuration file is taking deprecated fields into account
4
4
  * and is setting them to the correct keys and values.
@@ -1,4 +1,4 @@
1
- import { getConfigurationKey } from './configuration.js';
1
+ import { getConfigurationKey } from "./configuration.js";
2
2
  /**
3
3
  * This function will make sure the configuration file is taking deprecated fields into account
4
4
  * and is setting them to the correct keys and values.
@@ -29,7 +29,7 @@ export function processConfigurationCompatibility(configuration) {
29
29
  setKeyInObject(configuration, "environmentMap.mainColor", configuration.scene.mainColor, true);
30
30
  }
31
31
  }
32
- if (configuration.model && typeof configuration.model === 'object') {
32
+ if (configuration.model && typeof configuration.model === "object") {
33
33
  // castShadows === castShadow
34
34
  if (configuration.model.castShadows !== undefined && configuration.model.castShadow === undefined) {
35
35
  configuration.model.castShadow = configuration.model.castShadows;
@@ -1 +1 @@
1
- {"version":3,"file":"configurationCompatibility.js","sourceRoot":"","sources":["../../../../sourceES6/viewer/src/configuration/configurationCompatibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3E;;;;;GAKG;AACH,MAAM,UAAU,iCAAiC,CAAC,aAAkC;IAEhF,IAAI,aAAa,CAAC,MAAM,EAAE;QACtB,+CAA+C;QAC/C,IAAI,aAAa,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE;YAC7C,cAAc,CAAC,aAAa,EAAE,6CAA6C,EAAE,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;SAC/G;QAED,+CAA+C;QAC/C,IAAI,aAAa,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE;YAC7C,cAAc,CAAC,aAAa,EAAE,6CAA6C,EAAE,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;SAC/G;KACJ;IAED,IAAI,aAAa,CAAC,KAAK,EAAE;QACrB,MAAM;QACN,IAAI,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE;YAC1B,cAAc,CAAC,aAAa,EAAE,gDAAgD,EAAE,IAAI,CAAC,CAAC;YACtF,IAAI,iBAAiB,GAAG,mBAAmB,CAAC,8CAA8C,EAAE,aAAa,CAAC,CAAC;YAC3G,IAAI,iBAAiB,KAAK,KAAK,EAAE;gBAC7B,cAAc,CAAC,aAAa,EAAE,8CAA8C,EAAE,IAAI,CAAC,CAAC;aACvF;SACJ;QAED,IAAI,aAAa,CAAC,KAAK,CAAC,SAAS,EAAE;YAC/B,cAAc,CAAC,aAAa,EAAE,0BAA0B,EAAE,aAAa,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;SAClG;KACJ;IAED,IAAI,aAAa,CAAC,KAAK,IAAI,OAAO,aAAa,CAAC,KAAK,KAAK,QAAQ,EAAE;QAChE,6BAA6B;QAC7B,IAAU,aAAa,CAAC,KAAM,CAAC,WAAW,KAAK,SAAS,IAAI,aAAa,CAAC,KAAK,CAAC,UAAU,KAAK,SAAS,EAAE;YACtG,aAAa,CAAC,KAAK,CAAC,UAAU,GAAS,aAAa,CAAC,KAAM,CAAC,WAAW,CAAC;SAC3E;KACJ;IAED,IAAI,aAAa,CAAC,GAAG,EAAE;QACnB,IAAI,aAAa,CAAC,GAAG,CAAC,aAAa,EAAE;YACjC,cAAc,CAAC,aAAa,EAAE,qBAAqB,EAAE,aAAa,CAAC,GAAG,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;SAC/F;QACD,IAAI,aAAa,CAAC,GAAG,CAAC,cAAc,EAAE;YAClC,cAAc,CAAC,aAAa,EAAE,gBAAgB,EAAE,aAAa,CAAC,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;SAC3F;KACJ;AACL,CAAC;AAED,SAAS,cAAc,CAAC,MAAW,EAAE,IAAY,EAAE,KAAU,EAAE,eAAyB;IACpF,IAAI,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/B,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;QAAE,OAAO;KAAE;IACtC,IAAI,OAAO,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC;IAC7B,IAAI,CAAC,OAAO,EAAE;QAAE,OAAO;KAAE;IACzB,IAAI,MAAM,GAAG,MAAM,CAAC;IACpB,QAAQ,CAAC,OAAO,CAAC,UAAC,GAAG;QACjB,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QAChC,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;IACH,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,SAAS,IAAI,CAAC,eAAe,EAAE;QAAE,OAAO;KAAE;IAClE,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;AAC5B,CAAC","sourcesContent":["import { ViewerConfiguration, getConfigurationKey } from './configuration';\r\n/**\r\n * This function will make sure the configuration file is taking deprecated fields into account\r\n * and is setting them to the correct keys and values.\r\n *\r\n * @param configuration The configuration to process. Mutable!\r\n */\r\nexport function processConfigurationCompatibility(configuration: ViewerConfiguration) {\r\n\r\n if (configuration.camera) {\r\n // camera contrast -> image processing contrast\r\n if (configuration.camera.contrast !== undefined) {\r\n setKeyInObject(configuration, \"scene.imageProcessingConfiguration.contrast\", configuration.camera.contrast);\r\n }\r\n\r\n // camera exposure -> image processing exposure\r\n if (configuration.camera.exposure !== undefined) {\r\n setKeyInObject(configuration, \"scene.imageProcessingConfiguration.exposure\", configuration.camera.exposure);\r\n }\r\n }\r\n\r\n if (configuration.scene) {\r\n //glow\r\n if (configuration.scene.glow) {\r\n setKeyInObject(configuration, \"lab.defaultRenderingPipelines.glowLayerEnabled\", true);\r\n let enabledProcessing = getConfigurationKey(\"scene.imageProcessingConfiguration.isEnabled\", configuration);\r\n if (enabledProcessing !== false) {\r\n setKeyInObject(configuration, \"scene.imageProcessingConfiguration.isEnabled\", true);\r\n }\r\n }\r\n\r\n if (configuration.scene.mainColor) {\r\n setKeyInObject(configuration, \"environmentMap.mainColor\", configuration.scene.mainColor, true);\r\n }\r\n }\r\n\r\n if (configuration.model && typeof configuration.model === 'object') {\r\n // castShadows === castShadow\r\n if ((<any>configuration.model).castShadows !== undefined && configuration.model.castShadow === undefined) {\r\n configuration.model.castShadow = (<any>configuration.model).castShadows;\r\n }\r\n }\r\n\r\n if (configuration.lab) {\r\n if (configuration.lab.assetsRootURL) {\r\n setKeyInObject(configuration, \"scene.assetsRootURL\", configuration.lab.assetsRootURL, true);\r\n }\r\n if (configuration.lab.environmentMap) {\r\n setKeyInObject(configuration, \"environmentMap\", configuration.lab.environmentMap, true);\r\n }\r\n }\r\n}\r\n\r\nfunction setKeyInObject(object: any, keys: string, value: any, shouldOverwrite?: boolean) {\r\n let keySplit = keys.split(\".\");\r\n if (keySplit.length === 0) { return; }\r\n let lastKey = keySplit.pop();\r\n if (!lastKey) { return; }\r\n let curObj = object;\r\n keySplit.forEach((key) => {\r\n curObj[key] = curObj[key] || {};\r\n curObj = curObj[key];\r\n });\r\n if (curObj[lastKey] !== undefined && !shouldOverwrite) { return; }\r\n curObj[lastKey] = value;\r\n}\r\n"]}
1
+ {"version":3,"file":"configurationCompatibility.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/configurationCompatibility.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD;;;;;GAKG;AACH,MAAM,UAAU,iCAAiC,CAAC,aAAkC;IAChF,IAAI,aAAa,CAAC,MAAM,EAAE;QACtB,+CAA+C;QAC/C,IAAI,aAAa,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE;YAC7C,cAAc,CAAC,aAAa,EAAE,6CAA6C,EAAE,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;SAC/G;QAED,+CAA+C;QAC/C,IAAI,aAAa,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE;YAC7C,cAAc,CAAC,aAAa,EAAE,6CAA6C,EAAE,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;SAC/G;KACJ;IAED,IAAI,aAAa,CAAC,KAAK,EAAE;QACrB,MAAM;QACN,IAAI,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE;YAC1B,cAAc,CAAC,aAAa,EAAE,gDAAgD,EAAE,IAAI,CAAC,CAAC;YACtF,IAAM,iBAAiB,GAAG,mBAAmB,CAAC,8CAA8C,EAAE,aAAa,CAAC,CAAC;YAC7G,IAAI,iBAAiB,KAAK,KAAK,EAAE;gBAC7B,cAAc,CAAC,aAAa,EAAE,8CAA8C,EAAE,IAAI,CAAC,CAAC;aACvF;SACJ;QAED,IAAI,aAAa,CAAC,KAAK,CAAC,SAAS,EAAE;YAC/B,cAAc,CAAC,aAAa,EAAE,0BAA0B,EAAE,aAAa,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;SAClG;KACJ;IAED,IAAI,aAAa,CAAC,KAAK,IAAI,OAAO,aAAa,CAAC,KAAK,KAAK,QAAQ,EAAE;QAChE,6BAA6B;QAC7B,IAAU,aAAa,CAAC,KAAM,CAAC,WAAW,KAAK,SAAS,IAAI,aAAa,CAAC,KAAK,CAAC,UAAU,KAAK,SAAS,EAAE;YACtG,aAAa,CAAC,KAAK,CAAC,UAAU,GAAS,aAAa,CAAC,KAAM,CAAC,WAAW,CAAC;SAC3E;KACJ;IAED,IAAI,aAAa,CAAC,GAAG,EAAE;QACnB,IAAI,aAAa,CAAC,GAAG,CAAC,aAAa,EAAE;YACjC,cAAc,CAAC,aAAa,EAAE,qBAAqB,EAAE,aAAa,CAAC,GAAG,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;SAC/F;QACD,IAAI,aAAa,CAAC,GAAG,CAAC,cAAc,EAAE;YAClC,cAAc,CAAC,aAAa,EAAE,gBAAgB,EAAE,aAAa,CAAC,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;SAC3F;KACJ;AACL,CAAC;AAED,SAAS,cAAc,CAAC,MAAW,EAAE,IAAY,EAAE,KAAU,EAAE,eAAyB;IACpF,IAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACjC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;QACvB,OAAO;KACV;IACD,IAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC;IAC/B,IAAI,CAAC,OAAO,EAAE;QACV,OAAO;KACV;IACD,IAAI,MAAM,GAAG,MAAM,CAAC;IACpB,QAAQ,CAAC,OAAO,CAAC,UAAC,GAAG;QACjB,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QAChC,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;IACH,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,SAAS,IAAI,CAAC,eAAe,EAAE;QACnD,OAAO;KACV;IACD,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;AAC5B,CAAC","sourcesContent":["import type { ViewerConfiguration } from \"./configuration\";\r\nimport { getConfigurationKey } from \"./configuration\";\r\n/**\r\n * This function will make sure the configuration file is taking deprecated fields into account\r\n * and is setting them to the correct keys and values.\r\n *\r\n * @param configuration The configuration to process. Mutable!\r\n */\r\nexport function processConfigurationCompatibility(configuration: ViewerConfiguration) {\r\n if (configuration.camera) {\r\n // camera contrast -> image processing contrast\r\n if (configuration.camera.contrast !== undefined) {\r\n setKeyInObject(configuration, \"scene.imageProcessingConfiguration.contrast\", configuration.camera.contrast);\r\n }\r\n\r\n // camera exposure -> image processing exposure\r\n if (configuration.camera.exposure !== undefined) {\r\n setKeyInObject(configuration, \"scene.imageProcessingConfiguration.exposure\", configuration.camera.exposure);\r\n }\r\n }\r\n\r\n if (configuration.scene) {\r\n //glow\r\n if (configuration.scene.glow) {\r\n setKeyInObject(configuration, \"lab.defaultRenderingPipelines.glowLayerEnabled\", true);\r\n const enabledProcessing = getConfigurationKey(\"scene.imageProcessingConfiguration.isEnabled\", configuration);\r\n if (enabledProcessing !== false) {\r\n setKeyInObject(configuration, \"scene.imageProcessingConfiguration.isEnabled\", true);\r\n }\r\n }\r\n\r\n if (configuration.scene.mainColor) {\r\n setKeyInObject(configuration, \"environmentMap.mainColor\", configuration.scene.mainColor, true);\r\n }\r\n }\r\n\r\n if (configuration.model && typeof configuration.model === \"object\") {\r\n // castShadows === castShadow\r\n if ((<any>configuration.model).castShadows !== undefined && configuration.model.castShadow === undefined) {\r\n configuration.model.castShadow = (<any>configuration.model).castShadows;\r\n }\r\n }\r\n\r\n if (configuration.lab) {\r\n if (configuration.lab.assetsRootURL) {\r\n setKeyInObject(configuration, \"scene.assetsRootURL\", configuration.lab.assetsRootURL, true);\r\n }\r\n if (configuration.lab.environmentMap) {\r\n setKeyInObject(configuration, \"environmentMap\", configuration.lab.environmentMap, true);\r\n }\r\n }\r\n}\r\n\r\nfunction setKeyInObject(object: any, keys: string, value: any, shouldOverwrite?: boolean) {\r\n const keySplit = keys.split(\".\");\r\n if (keySplit.length === 0) {\r\n return;\r\n }\r\n const lastKey = keySplit.pop();\r\n if (!lastKey) {\r\n return;\r\n }\r\n let curObj = object;\r\n keySplit.forEach((key) => {\r\n curObj[key] = curObj[key] || {};\r\n curObj = curObj[key];\r\n });\r\n if (curObj[lastKey] !== undefined && !shouldOverwrite) {\r\n return;\r\n }\r\n curObj[lastKey] = value;\r\n}\r\n"]}
@@ -1,6 +1,6 @@
1
- import { ViewerConfiguration } from './configuration';
2
- import { Color3 } from '@babylonjs/core/Maths/math';
3
- import { Scene } from '@babylonjs/core/scene';
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
4
  export declare class ConfigurationContainer {
5
5
  configuration: ViewerConfiguration;
6
6
  viewerId: string;
@@ -1,4 +1,4 @@
1
- import { Color3 } from '@babylonjs/core/Maths/math.js';
1
+ import { Color3 } from "@babylonjs/core/Maths/math.js";
2
2
  var ConfigurationContainer = /** @class */ (function () {
3
3
  function ConfigurationContainer() {
4
4
  this.mainColor = Color3.White();
@@ -1 +1 @@
1
- {"version":3,"file":"configurationContainer.js","sourceRoot":"","sources":["../../../../sourceES6/viewer/src/configuration/configurationContainer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAGpD;IAAA;QAMW,cAAS,GAAW,MAAM,CAAC,KAAK,EAAE,CAAC;QACnC,oBAAe,GAAW,MAAM,CAAC,KAAK,EAAE,CAAC;IAEpD,CAAC;IAAD,6BAAC;AAAD,CAAC,AATD,IASC","sourcesContent":["import { ViewerConfiguration } from './configuration';\r\nimport { Color3 } from '@babylonjs/core/Maths/math';\r\nimport { Scene } from '@babylonjs/core/scene';\r\n\r\nexport class ConfigurationContainer {\r\n\r\n public configuration: ViewerConfiguration;\r\n\r\n public viewerId: string;\r\n\r\n public mainColor: Color3 = Color3.White();\r\n public reflectionColor: Color3 = Color3.White();\r\n public scene?: Scene;\r\n}"]}
1
+ {"version":3,"file":"configurationContainer.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/configurationContainer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,sCAAwB;AAGzC;IAAA;QAKW,cAAS,GAAW,MAAM,CAAC,KAAK,EAAE,CAAC;QACnC,oBAAe,GAAW,MAAM,CAAC,KAAK,EAAE,CAAC;IAEpD,CAAC;IAAD,6BAAC;AAAD,CAAC,AARD,IAQC","sourcesContent":["import type { ViewerConfiguration } from \"./configuration\";\r\nimport { Color3 } from \"core/Maths/math\";\r\nimport type { Scene } from \"core/scene\";\r\n\r\nexport class ConfigurationContainer {\r\n public configuration: ViewerConfiguration;\r\n\r\n public viewerId: string;\r\n\r\n public mainColor: Color3 = Color3.White();\r\n public reflectionColor: Color3 = Color3.White();\r\n public scene?: Scene;\r\n}\r\n"]}
@@ -3,4 +3,4 @@ export declare class ViewerGlobals {
3
3
  disableWebGL2Support: boolean;
4
4
  get version(): string;
5
5
  }
6
- export declare let viewerGlobals: ViewerGlobals;
6
+ export declare const viewerGlobals: ViewerGlobals;
@@ -1 +1 @@
1
- {"version":3,"file":"globals.js","sourceRoot":"","sources":["../../../../sourceES6/viewer/src/configuration/globals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAExD;IAAA;QAEW,gBAAW,GAAY,KAAK,CAAC;QAC7B,yBAAoB,GAAY,KAAK,CAAC;IAMjD,CAAC;IAJG,sBAAW,kCAAO;aAAlB;YACI,OAAO,MAAM,CAAC,OAAO,CAAC;QAC1B,CAAC;;;OAAA;IAEL,oBAAC;AAAD,CAAC,AATD,IASC;;AAED,MAAM,CAAC,IAAI,aAAa,GAAkB,IAAI,aAAa,EAAE,CAAC","sourcesContent":["import { Engine } from \"@babylonjs/core/Engines/engine\";\r\n\r\nexport class ViewerGlobals {\r\n\r\n public disableInit: boolean = false;\r\n public disableWebGL2Support: boolean = false;\r\n\r\n public get version(): string {\r\n return Engine.Version;\r\n }\r\n\r\n}\r\n\r\nexport let viewerGlobals: ViewerGlobals = new ViewerGlobals();"]}
1
+ {"version":3,"file":"globals.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/globals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,0CAA4B;AAE7C;IAAA;QACW,gBAAW,GAAY,KAAK,CAAC;QAC7B,yBAAoB,GAAY,KAAK,CAAC;IAKjD,CAAC;IAHG,sBAAW,kCAAO;aAAlB;YACI,OAAO,MAAM,CAAC,OAAO,CAAC;QAC1B,CAAC;;;OAAA;IACL,oBAAC;AAAD,CAAC,AAPD,IAOC;;AAED,MAAM,CAAC,IAAM,aAAa,GAAkB,IAAI,aAAa,EAAE,CAAC","sourcesContent":["import { Engine } from \"core/Engines/engine\";\r\n\r\nexport class ViewerGlobals {\r\n public disableInit: boolean = false;\r\n public disableWebGL2Support: boolean = false;\r\n\r\n public get version(): string {\r\n return Engine.Version;\r\n }\r\n}\r\n\r\nexport const viewerGlobals: ViewerGlobals = new ViewerGlobals();\r\n"]}
@@ -1,2 +1,2 @@
1
- export * from './configuration';
2
- export * from './interfaces/index';
1
+ export * from "./configuration";
2
+ export * from "./interfaces/index";
@@ -1,3 +1,4 @@
1
- export * from './configuration.js';
2
- export * from './interfaces/index.js';
1
+ /* eslint-disable import/no-internal-modules */
2
+ export * from "./configuration.js";
3
+ export * from "./interfaces/index.js";
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../sourceES6/viewer/src/configuration/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC","sourcesContent":["export * from './configuration';\r\nexport * from './interfaces/index';"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/index.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\r\nexport * from \"./configuration\";\r\nexport * from \"./interfaces/index\";\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"cameraConfiguration.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/cameraConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface ICameraConfiguration {\r\n position?: { x: number, y: number, z: number };\r\n rotation?: { x: number, y: number, z: number, w: number };\r\n fov?: number;\r\n fovMode?: number;\r\n minZ?: number;\r\n maxZ?: number;\r\n inertia?: number;\r\n exposure?: number;\r\n pinchPrecision?: number;\r\n behaviors?: {\r\n [name: string]: boolean | number | ICameraBehaviorConfiguration;\r\n };\r\n disableCameraControl?: boolean;\r\n disableCtrlForPanning?: boolean;\r\n disableAutoFocus?: boolean;\r\n\r\n [propName: string]: any;\r\n}\r\n\r\nexport interface ICameraBehaviorConfiguration {\r\n type: number;\r\n [propName: string]: any;\r\n}"]}
1
+ {"version":3,"file":"cameraConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/cameraConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface ICameraConfiguration {\r\n position?: { x: number; y: number; z: number };\r\n rotation?: { x: number; y: number; z: number; w: number };\r\n fov?: number;\r\n fovMode?: number;\r\n minZ?: number;\r\n maxZ?: number;\r\n inertia?: number;\r\n exposure?: number;\r\n pinchPrecision?: number;\r\n behaviors?: {\r\n [name: string]: boolean | number | ICameraBehaviorConfiguration;\r\n };\r\n disableCameraControl?: boolean;\r\n disableCtrlForPanning?: boolean;\r\n disableAutoFocus?: boolean;\r\n\r\n [propName: string]: any;\r\n}\r\n\r\nexport interface ICameraBehaviorConfiguration {\r\n type: number;\r\n [propName: string]: any;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"colorGradingConfiguration.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/colorGradingConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * The Color Grading Configuration groups the different settings used to define the color grading used in the viewer.\r\n */\r\nexport interface IColorGradingConfiguration {\r\n\r\n /**\r\n * Transform data string, encoded as determined by transformDataFormat.\r\n */\r\n transformData: string;\r\n\r\n /**\r\n * The encoding format of TransformData (currently only raw-base16 is supported).\r\n */\r\n transformDataFormat: string;\r\n\r\n /**\r\n * The weight of the transform\r\n */\r\n transformWeight: number;\r\n\r\n /**\r\n * Color curve colorFilterHueGlobal value\r\n */\r\n colorFilterHueGlobal: number;\r\n\r\n /**\r\n * Color curve colorFilterHueShadows value\r\n */\r\n colorFilterHueShadows: number;\r\n\r\n /**\r\n * Color curve colorFilterHueMidtones value\r\n */\r\n colorFilterHueMidtones: number;\r\n\r\n /**\r\n * Color curve colorFilterHueHighlights value\r\n */\r\n colorFilterHueHighlights: number;\r\n\r\n /**\r\n * Color curve colorFilterDensityGlobal value\r\n */\r\n colorFilterDensityGlobal: number;\r\n\r\n /**\r\n * Color curve colorFilterDensityShadows value\r\n */\r\n colorFilterDensityShadows: number;\r\n\r\n /**\r\n * Color curve colorFilterDensityMidtones value\r\n */\r\n colorFilterDensityMidtones: number;\r\n\r\n /**\r\n * Color curve colorFilterDensityHighlights value\r\n */\r\n colorFilterDensityHighlights: number;\r\n\r\n /**\r\n * Color curve saturationGlobal value\r\n */\r\n saturationGlobal: number;\r\n\r\n /**\r\n * Color curve saturationShadows value\r\n */\r\n saturationShadows: number;\r\n\r\n /**\r\n * Color curve saturationMidtones value\r\n */\r\n saturationMidtones: number;\r\n\r\n /**\r\n * Color curve saturationHighlights value\r\n */\r\n saturationHighlights: number;\r\n\r\n /**\r\n * Color curve exposureGlobal value\r\n */\r\n exposureGlobal: number;\r\n\r\n /**\r\n * Color curve exposureShadows value\r\n */\r\n exposureShadows: number;\r\n\r\n /**\r\n * Color curve exposureMidtones value\r\n */\r\n exposureMidtones: number;\r\n\r\n /**\r\n * Color curve exposureHighlights value\r\n */\r\n exposureHighlights: number;\r\n\r\n}"]}
1
+ {"version":3,"file":"colorGradingConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/colorGradingConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * The Color Grading Configuration groups the different settings used to define the color grading used in the viewer.\r\n */\r\nexport interface IColorGradingConfiguration {\r\n /**\r\n * Transform data string, encoded as determined by transformDataFormat.\r\n */\r\n transformData: string;\r\n\r\n /**\r\n * The encoding format of TransformData (currently only raw-base16 is supported).\r\n */\r\n transformDataFormat: string;\r\n\r\n /**\r\n * The weight of the transform\r\n */\r\n transformWeight: number;\r\n\r\n /**\r\n * Color curve colorFilterHueGlobal value\r\n */\r\n colorFilterHueGlobal: number;\r\n\r\n /**\r\n * Color curve colorFilterHueShadows value\r\n */\r\n colorFilterHueShadows: number;\r\n\r\n /**\r\n * Color curve colorFilterHueMidtones value\r\n */\r\n colorFilterHueMidtones: number;\r\n\r\n /**\r\n * Color curve colorFilterHueHighlights value\r\n */\r\n colorFilterHueHighlights: number;\r\n\r\n /**\r\n * Color curve colorFilterDensityGlobal value\r\n */\r\n colorFilterDensityGlobal: number;\r\n\r\n /**\r\n * Color curve colorFilterDensityShadows value\r\n */\r\n colorFilterDensityShadows: number;\r\n\r\n /**\r\n * Color curve colorFilterDensityMidtones value\r\n */\r\n colorFilterDensityMidtones: number;\r\n\r\n /**\r\n * Color curve colorFilterDensityHighlights value\r\n */\r\n colorFilterDensityHighlights: number;\r\n\r\n /**\r\n * Color curve saturationGlobal value\r\n */\r\n saturationGlobal: number;\r\n\r\n /**\r\n * Color curve saturationShadows value\r\n */\r\n saturationShadows: number;\r\n\r\n /**\r\n * Color curve saturationMidtones value\r\n */\r\n saturationMidtones: number;\r\n\r\n /**\r\n * Color curve saturationHighlights value\r\n */\r\n saturationHighlights: number;\r\n\r\n /**\r\n * Color curve exposureGlobal value\r\n */\r\n exposureGlobal: number;\r\n\r\n /**\r\n * Color curve exposureShadows value\r\n */\r\n exposureShadows: number;\r\n\r\n /**\r\n * Color curve exposureMidtones value\r\n */\r\n exposureMidtones: number;\r\n\r\n /**\r\n * Color curve exposureHighlights value\r\n */\r\n exposureHighlights: number;\r\n}\r\n"]}
@@ -1,4 +1,4 @@
1
- import { DepthOfFieldEffectBlurLevel } from "@babylonjs/core/PostProcesses/depthOfFieldEffect";
1
+ import type { DepthOfFieldEffectBlurLevel } from "@babylonjs/core/PostProcesses/depthOfFieldEffect.js";
2
2
  export interface IDefaultRenderingPipelineConfiguration {
3
3
  sharpenEnabled?: boolean;
4
4
  bloomEnabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"defaultRenderingPipelineConfiguration.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/defaultRenderingPipelineConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["import { DepthOfFieldEffectBlurLevel } from \"@babylonjs/core/PostProcesses/depthOfFieldEffect\";\r\n\r\nexport interface IDefaultRenderingPipelineConfiguration {\r\n sharpenEnabled?: boolean;\r\n bloomEnabled?: boolean;\r\n bloomThreshold?: number;\r\n depthOfFieldEnabled?: boolean;\r\n depthOfFieldBlurLevel?: DepthOfFieldEffectBlurLevel;\r\n fxaaEnabled?: boolean;\r\n imageProcessingEnabled?: boolean;\r\n defaultPipelineTextureType?: number;\r\n bloomScale?: number;\r\n chromaticAberrationEnabled?: boolean;\r\n grainEnabled?: boolean;\r\n bloomKernel?: number;\r\n hardwareScaleLevel?: number;\r\n bloomWeight?: number;\r\n hdr?: boolean;\r\n samples?: number;\r\n glowLayerEnabled?: boolean;\r\n}"]}
1
+ {"version":3,"file":"defaultRenderingPipelineConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/defaultRenderingPipelineConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["import type { DepthOfFieldEffectBlurLevel } from \"core/PostProcesses/depthOfFieldEffect\";\r\n\r\nexport interface IDefaultRenderingPipelineConfiguration {\r\n sharpenEnabled?: boolean;\r\n bloomEnabled?: boolean;\r\n bloomThreshold?: number;\r\n depthOfFieldEnabled?: boolean;\r\n depthOfFieldBlurLevel?: DepthOfFieldEffectBlurLevel;\r\n fxaaEnabled?: boolean;\r\n imageProcessingEnabled?: boolean;\r\n defaultPipelineTextureType?: number;\r\n bloomScale?: number;\r\n chromaticAberrationEnabled?: boolean;\r\n grainEnabled?: boolean;\r\n bloomKernel?: number;\r\n hardwareScaleLevel?: number;\r\n bloomWeight?: number;\r\n hdr?: boolean;\r\n samples?: number;\r\n glowLayerEnabled?: boolean;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"environmentMapConfiguration.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/environmentMapConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface IEnvironmentMapConfiguration {\r\n /**\r\n * Environment map texture path in relative to the asset folder.\r\n */\r\n texture: string;\r\n\r\n /**\r\n * Default rotation to apply to the environment map.\r\n */\r\n rotationY: number;\r\n\r\n /**\r\n * Tint level of the main color on the environment map.\r\n */\r\n tintLevel: number;\r\n\r\n /**\r\n * The environment's main color.\r\n */\r\n mainColor?: { r?: number, g?: number, b?: number };\r\n}"]}
1
+ {"version":3,"file":"environmentMapConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/environmentMapConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface IEnvironmentMapConfiguration {\r\n /**\r\n * Environment map texture path in relative to the asset folder.\r\n */\r\n texture: string;\r\n\r\n /**\r\n * Default rotation to apply to the environment map.\r\n */\r\n rotationY: number;\r\n\r\n /**\r\n * Tint level of the main color on the environment map.\r\n */\r\n tintLevel: number;\r\n\r\n /**\r\n * The environment's main color.\r\n */\r\n mainColor?: { r?: number; g?: number; b?: number };\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"groundConfiguration.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/groundConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface IGroundConfiguration {\r\n size?: number;\r\n receiveShadows?: boolean;\r\n shadowLevel?: number;\r\n /** @deprecated */ shadowOnly?: boolean;\r\n mirror?: boolean | {\r\n sizeRatio?: number;\r\n blurKernel?: number;\r\n amount?: number;\r\n fresnelWeight?: number;\r\n fallOffDistance?: number;\r\n textureType?: number;\r\n };\r\n texture?: string;\r\n color?: { r: number, g: number, b: number };\r\n opacity?: number;\r\n material?: {\r\n [propName: string]: any;\r\n };\r\n}"]}
1
+ {"version":3,"file":"groundConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/groundConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface IGroundConfiguration {\r\n size?: number;\r\n receiveShadows?: boolean;\r\n shadowLevel?: number;\r\n /** @deprecated */ shadowOnly?: boolean;\r\n mirror?:\r\n | boolean\r\n | {\r\n sizeRatio?: number;\r\n blurKernel?: number;\r\n amount?: number;\r\n fresnelWeight?: number;\r\n fallOffDistance?: number;\r\n textureType?: number;\r\n };\r\n texture?: string;\r\n color?: { r: number; g: number; b: number };\r\n opacity?: number;\r\n material?: {\r\n [propName: string]: any;\r\n };\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"imageProcessingConfiguration.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/imageProcessingConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface IImageProcessingConfiguration {\r\n colorGradingEnabled?: boolean;\r\n colorCurvesEnabled?: boolean;\r\n colorCurves?: {\r\n globalHue?: number;\r\n globalDensity?: number;\r\n globalSaturation?: number;\r\n globalExposure?: number;\r\n highlightsHue?: number;\r\n highlightsDensity?: number;\r\n highlightsSaturation?: number;\r\n highlightsExposure?: number;\r\n midtonesHue?: number;\r\n midtonesDensity?: number;\r\n midtonesSaturation?: number;\r\n midtonesExposure?: number;\r\n shadowsHue?: number;\r\n shadowsDensity?: number;\r\n shadowsSaturation?: number;\r\n shadowsExposure?: number;\r\n };\r\n colorGradingWithGreenDepth?: boolean;\r\n colorGradingBGR?: boolean;\r\n exposure?: number;\r\n toneMappingEnabled?: boolean;\r\n contrast?: number;\r\n vignetteEnabled?: boolean;\r\n vignetteStretch?: number;\r\n vignetteCentreX?: number;\r\n vignetteCentreY?: number;\r\n vignetteWeight?: number;\r\n vignetteColor?: { r: number, g: number, b: number, a?: number };\r\n vignetteCameraFov?: number;\r\n vignetteBlendMode?: number;\r\n vignetteM?: boolean;\r\n applyByPostProcess?: boolean;\r\n isEnabled?: boolean;\r\n}"]}
1
+ {"version":3,"file":"imageProcessingConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/imageProcessingConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface IImageProcessingConfiguration {\r\n colorGradingEnabled?: boolean;\r\n colorCurvesEnabled?: boolean;\r\n colorCurves?: {\r\n globalHue?: number;\r\n globalDensity?: number;\r\n globalSaturation?: number;\r\n globalExposure?: number;\r\n highlightsHue?: number;\r\n highlightsDensity?: number;\r\n highlightsSaturation?: number;\r\n highlightsExposure?: number;\r\n midtonesHue?: number;\r\n midtonesDensity?: number;\r\n midtonesSaturation?: number;\r\n midtonesExposure?: number;\r\n shadowsHue?: number;\r\n shadowsDensity?: number;\r\n shadowsSaturation?: number;\r\n shadowsExposure?: number;\r\n };\r\n colorGradingWithGreenDepth?: boolean;\r\n colorGradingBGR?: boolean;\r\n exposure?: number;\r\n toneMappingEnabled?: boolean;\r\n contrast?: number;\r\n vignetteEnabled?: boolean;\r\n vignetteStretch?: number;\r\n vignetteCentreX?: number;\r\n vignetteCentreY?: number;\r\n vignetteWeight?: number;\r\n vignetteColor?: { r: number; g: number; b: number; a?: number };\r\n vignetteCameraFov?: number;\r\n vignetteBlendMode?: number;\r\n vignetteM?: boolean;\r\n applyByPostProcess?: boolean;\r\n isEnabled?: boolean;\r\n}\r\n"]}
@@ -1,15 +1,15 @@
1
- export * from './cameraConfiguration';
2
- export * from './colorGradingConfiguration';
3
- export * from './defaultRenderingPipelineConfiguration';
4
- export * from './groundConfiguration';
5
- export * from './imageProcessingConfiguration';
6
- export * from './lightConfiguration';
7
- export * from './modelAnimationConfiguration';
8
- export * from './modelConfiguration';
9
- export * from './observersConfiguration';
10
- export * from './sceneConfiguration';
11
- export * from './sceneOptimizerConfiguration';
12
- export * from './skyboxConfiguration';
13
- export * from './templateConfiguration';
14
- export * from './vrConfiguration';
15
- export * from './environmentMapConfiguration';
1
+ export * from "./cameraConfiguration";
2
+ export * from "./colorGradingConfiguration";
3
+ export * from "./defaultRenderingPipelineConfiguration";
4
+ export * from "./groundConfiguration";
5
+ export * from "./imageProcessingConfiguration";
6
+ export * from "./lightConfiguration";
7
+ export * from "./modelAnimationConfiguration";
8
+ export * from "./modelConfiguration";
9
+ export * from "./observersConfiguration";
10
+ export * from "./sceneConfiguration";
11
+ export * from "./sceneOptimizerConfiguration";
12
+ export * from "./skyboxConfiguration";
13
+ export * from "./templateConfiguration";
14
+ export * from "./vrConfiguration";
15
+ export * from "./environmentMapConfiguration";
@@ -1,16 +1,16 @@
1
- export * from './cameraConfiguration.js';
2
- export * from './colorGradingConfiguration.js';
3
- export * from './defaultRenderingPipelineConfiguration.js';
4
- export * from './groundConfiguration.js';
5
- export * from './imageProcessingConfiguration.js';
6
- export * from './lightConfiguration.js';
7
- export * from './modelAnimationConfiguration.js';
8
- export * from './modelConfiguration.js';
9
- export * from './observersConfiguration.js';
10
- export * from './sceneConfiguration.js';
11
- export * from './sceneOptimizerConfiguration.js';
12
- export * from './skyboxConfiguration.js';
13
- export * from './templateConfiguration.js';
14
- export * from './vrConfiguration.js';
15
- export * from './environmentMapConfiguration.js';
1
+ export * from "./cameraConfiguration.js";
2
+ export * from "./colorGradingConfiguration.js";
3
+ export * from "./defaultRenderingPipelineConfiguration.js";
4
+ export * from "./groundConfiguration.js";
5
+ export * from "./imageProcessingConfiguration.js";
6
+ export * from "./lightConfiguration.js";
7
+ export * from "./modelAnimationConfiguration.js";
8
+ export * from "./modelConfiguration.js";
9
+ export * from "./observersConfiguration.js";
10
+ export * from "./sceneConfiguration.js";
11
+ export * from "./sceneOptimizerConfiguration.js";
12
+ export * from "./skyboxConfiguration.js";
13
+ export * from "./templateConfiguration.js";
14
+ export * from "./vrConfiguration.js";
15
+ export * from "./environmentMapConfiguration.js";
16
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yCAAyC,CAAC;AACxD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC","sourcesContent":["export * from './cameraConfiguration';\r\nexport * from './colorGradingConfiguration';\r\nexport * from './defaultRenderingPipelineConfiguration';\r\nexport * from './groundConfiguration';\r\nexport * from './imageProcessingConfiguration';\r\nexport * from './lightConfiguration';\r\nexport * from './modelAnimationConfiguration';\r\nexport * from './modelConfiguration';\r\nexport * from './observersConfiguration';\r\nexport * from './sceneConfiguration';\r\nexport * from './sceneOptimizerConfiguration';\r\nexport * from './skyboxConfiguration';\r\nexport * from './templateConfiguration';\r\nexport * from './vrConfiguration';\r\nexport * from './environmentMapConfiguration';"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yCAAyC,CAAC;AACxD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC","sourcesContent":["export * from \"./cameraConfiguration\";\r\nexport * from \"./colorGradingConfiguration\";\r\nexport * from \"./defaultRenderingPipelineConfiguration\";\r\nexport * from \"./groundConfiguration\";\r\nexport * from \"./imageProcessingConfiguration\";\r\nexport * from \"./lightConfiguration\";\r\nexport * from \"./modelAnimationConfiguration\";\r\nexport * from \"./modelConfiguration\";\r\nexport * from \"./observersConfiguration\";\r\nexport * from \"./sceneConfiguration\";\r\nexport * from \"./sceneOptimizerConfiguration\";\r\nexport * from \"./skyboxConfiguration\";\r\nexport * from \"./templateConfiguration\";\r\nexport * from \"./vrConfiguration\";\r\nexport * from \"./environmentMapConfiguration\";\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"lightConfiguration.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/lightConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface ILightConfiguration {\r\n type: number;\r\n name?: string;\r\n disabled?: boolean;\r\n position?: { x: number, y: number, z: number };\r\n target?: { x: number, y: number, z: number };\r\n direction?: { x: number, y: number, z: number };\r\n diffuse?: { r: number, g: number, b: number };\r\n specular?: { r: number, g: number, b: number };\r\n intensity?: number;\r\n intensityMode?: number;\r\n radius?: number;\r\n shadownEnabled?: boolean; // only on specific lights!\r\n shadowConfig?: {\r\n useBlurExponentialShadowMap?: boolean;\r\n useBlurCloseExponentialShadowMap?: boolean;\r\n useKernelBlur?: boolean;\r\n blurKernel?: number;\r\n blurScale?: number;\r\n minZ?: number;\r\n maxZ?: number;\r\n frustumSize?: number;\r\n angleScale?: number;\r\n frustumEdgeFalloff?: number;\r\n [propName: string]: any;\r\n };\r\n spotAngle?: number;\r\n shadowFieldOfView?: number;\r\n shadowBufferSize?: number;\r\n shadowFrustumSize?: number;\r\n shadowMinZ?: number;\r\n shadowMaxZ?: number;\r\n [propName: string]: any;\r\n\r\n // no behaviors for light at the moment, but allowing configuration for future reference.\r\n behaviors?: {\r\n [name: string]: number | {\r\n type: number;\r\n [propName: string]: any;\r\n };\r\n };\r\n}"]}
1
+ {"version":3,"file":"lightConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/lightConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface ILightConfiguration {\r\n type: number;\r\n name?: string;\r\n disabled?: boolean;\r\n position?: { x: number; y: number; z: number };\r\n target?: { x: number; y: number; z: number };\r\n direction?: { x: number; y: number; z: number };\r\n diffuse?: { r: number; g: number; b: number };\r\n specular?: { r: number; g: number; b: number };\r\n intensity?: number;\r\n intensityMode?: number;\r\n radius?: number;\r\n shadownEnabled?: boolean; // only on specific lights!\r\n shadowConfig?: {\r\n useBlurExponentialShadowMap?: boolean;\r\n useBlurCloseExponentialShadowMap?: boolean;\r\n useKernelBlur?: boolean;\r\n blurKernel?: number;\r\n blurScale?: number;\r\n minZ?: number;\r\n maxZ?: number;\r\n frustumSize?: number;\r\n angleScale?: number;\r\n frustumEdgeFalloff?: number;\r\n [propName: string]: any;\r\n };\r\n spotAngle?: number;\r\n shadowFieldOfView?: number;\r\n shadowBufferSize?: number;\r\n shadowFrustumSize?: number;\r\n shadowMinZ?: number;\r\n shadowMaxZ?: number;\r\n [propName: string]: any;\r\n\r\n // no behaviors for light at the moment, but allowing configuration for future reference.\r\n behaviors?: {\r\n [name: string]:\r\n | number\r\n | {\r\n type: number;\r\n [propName: string]: any;\r\n };\r\n };\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"modelAnimationConfiguration.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/modelAnimationConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * Defines an animation to be applied to a model (translation, scale or rotation).\r\n */\r\nexport interface IModelAnimationConfiguration {\r\n /**\r\n * Time of animation, in seconds\r\n */\r\n time?: number;\r\n\r\n /**\r\n * Scale to apply\r\n */\r\n scaling?: {\r\n x: number;\r\n y: number;\r\n z: number;\r\n };\r\n\r\n /**\r\n * Easing function to apply\r\n */\r\n easingFunction?: number;\r\n\r\n /**\r\n * An Easing mode to apply to the easing function\r\n * See BABYLON.EasingFunction\r\n */\r\n easingMode?: number;\r\n}"]}
1
+ {"version":3,"file":"modelAnimationConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/modelAnimationConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * Defines an animation to be applied to a model (translation, scale or rotation).\r\n */\r\nexport interface IModelAnimationConfiguration {\r\n /**\r\n * Time of animation, in seconds\r\n */\r\n time?: number;\r\n\r\n /**\r\n * Scale to apply\r\n */\r\n scaling?: {\r\n x: number;\r\n y: number;\r\n z: number;\r\n };\r\n\r\n /**\r\n * Easing function to apply\r\n */\r\n easingFunction?: number;\r\n\r\n /**\r\n * An Easing mode to apply to the easing function\r\n * See BABYLON.EasingFunction\r\n */\r\n easingMode?: number;\r\n}\r\n"]}
@@ -1,4 +1,4 @@
1
- import { IModelAnimationConfiguration } from "./modelAnimationConfiguration";
1
+ import type { IModelAnimationConfiguration } from "./modelAnimationConfiguration";
2
2
  export interface IModelConfiguration {
3
3
  id?: string;
4
4
  url?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"modelConfiguration.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/modelConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["import { IModelAnimationConfiguration } from \"./modelAnimationConfiguration\";\r\n\r\nexport interface IModelConfiguration {\r\n id?: string;\r\n url?: string;\r\n root?: string; //optional\r\n file?: string | File; // is a file being loaded? root and url ignored\r\n loader?: string; // obj, gltf?\r\n position?: { x: number, y: number, z: number };\r\n rotation?: { x: number, y: number, z: number, w?: number };\r\n scaling?: { x: number, y: number, z: number };\r\n parentObjectIndex?: number; // the index of the parent object of the model in the loaded meshes array.\r\n\r\n castShadow?: boolean;\r\n receiveShadows?: boolean;\r\n normalize?: boolean | {\r\n center?: boolean;\r\n unitSize?: boolean;\r\n parentIndex?: number;\r\n }; // should the model be scaled to unit-size\r\n\r\n title?: string;\r\n subtitle?: string;\r\n thumbnail?: string; // URL or data-url\r\n\r\n animation?: {\r\n autoStart?: boolean | string;\r\n playOnce?: boolean;\r\n autoStartIndex?: number;\r\n };\r\n\r\n entryAnimation?: IModelAnimationConfiguration;\r\n exitAnimation?: IModelAnimationConfiguration;\r\n\r\n material?: {\r\n directEnabled?: boolean;\r\n directIntensity?: number;\r\n emissiveIntensity?: number;\r\n environmentIntensity?: number;\r\n [propName: string]: any;\r\n };\r\n\r\n /**\r\n * Rotation offset axis definition\r\n */\r\n rotationOffsetAxis?: {\r\n x: number;\r\n y: number;\r\n z: number;\r\n };\r\n\r\n /**\r\n * the offset angle\r\n */\r\n rotationOffsetAngle?: number;\r\n\r\n loaderConfiguration?: {\r\n maxLODsToLoad?: number;\r\n progressiveLoading?: boolean;\r\n };\r\n\r\n // [propName: string]: any; // further configuration, like title and creator\r\n}"]}
1
+ {"version":3,"file":"modelConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/modelConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["import type { IModelAnimationConfiguration } from \"./modelAnimationConfiguration\";\r\n\r\nexport interface IModelConfiguration {\r\n id?: string;\r\n url?: string;\r\n root?: string; //optional\r\n file?: string | File; // is a file being loaded? root and url ignored\r\n loader?: string; // obj, gltf?\r\n position?: { x: number; y: number; z: number };\r\n rotation?: { x: number; y: number; z: number; w?: number };\r\n scaling?: { x: number; y: number; z: number };\r\n parentObjectIndex?: number; // the index of the parent object of the model in the loaded meshes array.\r\n\r\n castShadow?: boolean;\r\n receiveShadows?: boolean;\r\n normalize?:\r\n | boolean\r\n | {\r\n center?: boolean;\r\n unitSize?: boolean;\r\n parentIndex?: number;\r\n }; // should the model be scaled to unit-size\r\n\r\n title?: string;\r\n subtitle?: string;\r\n thumbnail?: string; // URL or data-url\r\n\r\n animation?: {\r\n autoStart?: boolean | string;\r\n playOnce?: boolean;\r\n autoStartIndex?: number;\r\n };\r\n\r\n entryAnimation?: IModelAnimationConfiguration;\r\n exitAnimation?: IModelAnimationConfiguration;\r\n\r\n material?: {\r\n directEnabled?: boolean;\r\n directIntensity?: number;\r\n emissiveIntensity?: number;\r\n environmentIntensity?: number;\r\n [propName: string]: any;\r\n };\r\n\r\n /**\r\n * Rotation offset axis definition\r\n */\r\n rotationOffsetAxis?: {\r\n x: number;\r\n y: number;\r\n z: number;\r\n };\r\n\r\n /**\r\n * the offset angle\r\n */\r\n rotationOffsetAngle?: number;\r\n\r\n loaderConfiguration?: {\r\n maxLODsToLoad?: number;\r\n progressiveLoading?: boolean;\r\n };\r\n\r\n // [propName: string]: any; // further configuration, like title and creator\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"observersConfiguration.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/observersConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface IObserversConfiguration {\r\n onEngineInit?: string;\r\n onSceneInit?: string;\r\n onModelLoaded?: string;\r\n}"]}
1
+ {"version":3,"file":"observersConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/observersConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface IObserversConfiguration {\r\n onEngineInit?: string;\r\n onSceneInit?: string;\r\n onModelLoaded?: string;\r\n}\r\n"]}
@@ -1,6 +1,6 @@
1
- import { IImageProcessingConfiguration } from "./imageProcessingConfiguration";
2
- import { IColorGradingConfiguration } from "./colorGradingConfiguration";
3
- import { IGlowLayerOptions } from "@babylonjs/core";
1
+ import type { IImageProcessingConfiguration } from "./imageProcessingConfiguration";
2
+ import type { IColorGradingConfiguration } from "./colorGradingConfiguration";
3
+ import type { IGlowLayerOptions } from "@babylonjs/core/Layers/glowLayer.js";
4
4
  export interface ISceneConfiguration {
5
5
  debug?: boolean;
6
6
  clearColor?: {
@@ -1 +1 @@
1
- {"version":3,"file":"sceneConfiguration.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/sceneConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["import { IImageProcessingConfiguration } from \"./imageProcessingConfiguration\";\r\nimport { IColorGradingConfiguration } from \"./colorGradingConfiguration\";\r\nimport { IGlowLayerOptions } from \"@babylonjs/core\";\r\n\r\nexport interface ISceneConfiguration {\r\n debug?: boolean;\r\n clearColor?: { r: number, g: number, b: number, a: number };\r\n /** @deprecated Please use environmentMap.mainColor instead. */\r\n mainColor?: { r?: number, g?: number, b?: number };\r\n imageProcessingConfiguration?: IImageProcessingConfiguration;\r\n environmentTexture?: string;\r\n colorGrading?: IColorGradingConfiguration;\r\n environmentRotationY?: number;\r\n /** @deprecated Please use default rendering pipeline. */\r\n glow?: boolean | IGlowLayerOptions;\r\n disableHdr?: boolean;\r\n renderInBackground?: boolean;\r\n disableCameraControl?: boolean;\r\n animationPropertiesOverride?: {\r\n [propName: string]: any;\r\n };\r\n defaultMaterial?: {\r\n materialType: \"standard\" | \"pbr\";\r\n [propName: string]: any;\r\n };\r\n flags?: {\r\n shadowsEnabled?: boolean;\r\n particlesEnabled?: boolean;\r\n collisionsEnabled?: boolean;\r\n lightsEnabled?: boolean;\r\n texturesEnabled?: boolean;\r\n lensFlaresEnabled?: boolean;\r\n proceduralTexturesEnabled?: boolean;\r\n renderTargetsEnabled?: boolean;\r\n spritesEnabled?: boolean;\r\n skeletonsEnabled?: boolean;\r\n audioEnabled?: boolean;\r\n };\r\n assetsRootURL?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"sceneConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/sceneConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["import type { IImageProcessingConfiguration } from \"./imageProcessingConfiguration\";\r\nimport type { IColorGradingConfiguration } from \"./colorGradingConfiguration\";\r\nimport type { IGlowLayerOptions } from \"core/Layers/glowLayer\";\r\n\r\nexport interface ISceneConfiguration {\r\n debug?: boolean;\r\n clearColor?: { r: number; g: number; b: number; a: number };\r\n /** @deprecated Please use environmentMap.mainColor instead. */\r\n mainColor?: { r?: number; g?: number; b?: number };\r\n imageProcessingConfiguration?: IImageProcessingConfiguration;\r\n environmentTexture?: string;\r\n colorGrading?: IColorGradingConfiguration;\r\n environmentRotationY?: number;\r\n /** @deprecated Please use default rendering pipeline. */\r\n glow?: boolean | IGlowLayerOptions;\r\n disableHdr?: boolean;\r\n renderInBackground?: boolean;\r\n disableCameraControl?: boolean;\r\n animationPropertiesOverride?: {\r\n [propName: string]: any;\r\n };\r\n defaultMaterial?: {\r\n materialType: \"standard\" | \"pbr\";\r\n [propName: string]: any;\r\n };\r\n flags?: {\r\n shadowsEnabled?: boolean;\r\n particlesEnabled?: boolean;\r\n collisionsEnabled?: boolean;\r\n lightsEnabled?: boolean;\r\n texturesEnabled?: boolean;\r\n lensFlaresEnabled?: boolean;\r\n proceduralTexturesEnabled?: boolean;\r\n renderTargetsEnabled?: boolean;\r\n spritesEnabled?: boolean;\r\n skeletonsEnabled?: boolean;\r\n audioEnabled?: boolean;\r\n };\r\n assetsRootURL?: string;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"sceneOptimizerConfiguration.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/sceneOptimizerConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface ISceneOptimizerConfiguration {\r\n targetFrameRate?: number;\r\n trackerDuration?: number;\r\n autoGeneratePriorities?: boolean;\r\n improvementMode?: boolean;\r\n degradation?: string; // low, moderate, high\r\n types?: {\r\n texture?: ISceneOptimizerParameters;\r\n hardwareScaling?: ISceneOptimizerParameters;\r\n shadow?: ISceneOptimizerParameters;\r\n postProcess?: ISceneOptimizerParameters;\r\n lensFlare?: ISceneOptimizerParameters;\r\n particles?: ISceneOptimizerParameters;\r\n renderTarget?: ISceneOptimizerParameters;\r\n mergeMeshes?: ISceneOptimizerParameters;\r\n };\r\n custom?: string;\r\n}\r\n\r\nexport interface ISceneOptimizerParameters {\r\n priority?: number;\r\n maximumSize?: number;\r\n step?: number;\r\n}"]}
1
+ {"version":3,"file":"sceneOptimizerConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/sceneOptimizerConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["export interface ISceneOptimizerConfiguration {\r\n targetFrameRate?: number;\r\n trackerDuration?: number;\r\n autoGeneratePriorities?: boolean;\r\n improvementMode?: boolean;\r\n degradation?: string; // low, moderate, high\r\n types?: {\r\n texture?: ISceneOptimizerParameters;\r\n hardwareScaling?: ISceneOptimizerParameters;\r\n shadow?: ISceneOptimizerParameters;\r\n postProcess?: ISceneOptimizerParameters;\r\n lensFlare?: ISceneOptimizerParameters;\r\n particles?: ISceneOptimizerParameters;\r\n renderTarget?: ISceneOptimizerParameters;\r\n mergeMeshes?: ISceneOptimizerParameters;\r\n };\r\n custom?: string;\r\n}\r\n\r\nexport interface ISceneOptimizerParameters {\r\n priority?: number;\r\n maximumSize?: number;\r\n step?: number;\r\n}\r\n"]}
@@ -1,4 +1,4 @@
1
- import { IImageProcessingConfiguration } from "./imageProcessingConfiguration";
1
+ import type { IImageProcessingConfiguration } from "./imageProcessingConfiguration";
2
2
  export interface ISkyboxConfiguration {
3
3
  cubeTexture?: {
4
4
  noMipMap?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"skyboxConfiguration.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/skyboxConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["import { IImageProcessingConfiguration } from \"./imageProcessingConfiguration\";\r\n\r\nexport interface ISkyboxConfiguration {\r\n cubeTexture?: {\r\n noMipMap?: boolean;\r\n gammaSpace?: boolean;\r\n url?: string | Array<string>;\r\n };\r\n color?: { r: number, g: number, b: number };\r\n /** @deprecated */ pbr?: boolean;\r\n scale?: number;\r\n /** @deprecated */ blur?: number;\r\n material?: {\r\n imageProcessingConfiguration?: IImageProcessingConfiguration;\r\n [propName: string]: any;\r\n };\r\n infiniteDistance?: boolean;\r\n\r\n}"]}
1
+ {"version":3,"file":"skyboxConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/skyboxConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["import type { IImageProcessingConfiguration } from \"./imageProcessingConfiguration\";\r\n\r\nexport interface ISkyboxConfiguration {\r\n cubeTexture?: {\r\n noMipMap?: boolean;\r\n gammaSpace?: boolean;\r\n url?: string | Array<string>;\r\n };\r\n color?: { r: number; g: number; b: number };\r\n /** @deprecated */ pbr?: boolean;\r\n scale?: number;\r\n /** @deprecated */ blur?: number;\r\n material?: {\r\n imageProcessingConfiguration?: IImageProcessingConfiguration;\r\n [propName: string]: any;\r\n };\r\n infiniteDistance?: boolean;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"templateConfiguration.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/templateConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * A single template configuration object\r\n */\r\nexport interface ITemplateConfiguration {\r\n /**\r\n * can be either the id of the template's html element or a URL.\r\n * See - https://doc.babylonjs.com/extensions/the_templating_system#location-vs-html\r\n */\r\n location?: string; // #template-id OR http://example.com/loading.html\r\n /**\r\n * If no location is provided you can provide here the raw html of this template.\r\n * See https://doc.babylonjs.com/extensions/the_templating_system#location-vs-html\r\n */\r\n html?: string; // raw html string\r\n id?: string;\r\n /**\r\n * Parameters that will be delivered to the template and will render it accordingly.\r\n */\r\n params?: { [key: string]: string | number | boolean | object };\r\n /**\r\n * Events to attach to this template.\r\n * event name is the key. the value can either be a boolean (attach to the parent element)\r\n * or a map of html id elements.\r\n *\r\n * See - https://doc.babylonjs.com/extensions/the_templating_system#event-binding\r\n */\r\n events?: {\r\n // pointer events\r\n pointerdown?: boolean | { [id: string]: boolean; };\r\n pointerup?: boolean | { [id: string]: boolean; };\r\n pointermove?: boolean | { [id: string]: boolean; };\r\n pointerover?: boolean | { [id: string]: boolean; };\r\n pointerout?: boolean | { [id: string]: boolean; };\r\n pointerenter?: boolean | { [id: string]: boolean; };\r\n pointerleave?: boolean | { [id: string]: boolean; };\r\n pointercancel?: boolean | { [id: string]: boolean; };\r\n //click, just in case\r\n click?: boolean | { [id: string]: boolean; };\r\n // drag and drop\r\n dragstart?: boolean | { [id: string]: boolean; };\r\n drop?: boolean | { [id: string]: boolean; };\r\n\r\n [key: string]: boolean | { [id: string]: boolean; } | undefined;\r\n };\r\n}"]}
1
+ {"version":3,"file":"templateConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/templateConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * A single template configuration object\r\n */\r\nexport interface ITemplateConfiguration {\r\n /**\r\n * can be either the id of the template's html element or a URL.\r\n * See - https://doc.babylonjs.com/extensions/the_templating_system#location-vs-html\r\n */\r\n location?: string; // #template-id OR http://example.com/loading.html\r\n /**\r\n * If no location is provided you can provide here the raw html of this template.\r\n * See https://doc.babylonjs.com/extensions/the_templating_system#location-vs-html\r\n */\r\n html?: string; // raw html string\r\n id?: string;\r\n /**\r\n * Parameters that will be delivered to the template and will render it accordingly.\r\n */\r\n params?: { [key: string]: string | number | boolean | object };\r\n /**\r\n * Events to attach to this template.\r\n * event name is the key. the value can either be a boolean (attach to the parent element)\r\n * or a map of html id elements.\r\n *\r\n * See - https://doc.babylonjs.com/extensions/the_templating_system#event-binding\r\n */\r\n events?: {\r\n // pointer events\r\n pointerdown?: boolean | { [id: string]: boolean };\r\n pointerup?: boolean | { [id: string]: boolean };\r\n pointermove?: boolean | { [id: string]: boolean };\r\n pointerover?: boolean | { [id: string]: boolean };\r\n pointerout?: boolean | { [id: string]: boolean };\r\n pointerenter?: boolean | { [id: string]: boolean };\r\n pointerleave?: boolean | { [id: string]: boolean };\r\n pointercancel?: boolean | { [id: string]: boolean };\r\n //click, just in case\r\n click?: boolean | { [id: string]: boolean };\r\n // drag and drop\r\n dragstart?: boolean | { [id: string]: boolean };\r\n drop?: boolean | { [id: string]: boolean };\r\n\r\n [key: string]: boolean | { [id: string]: boolean } | undefined;\r\n };\r\n}\r\n"]}
@@ -1,4 +1,4 @@
1
- import { VRExperienceHelperOptions } from "@babylonjs/core";
1
+ import type { VRExperienceHelperOptions } from "@babylonjs/core/Cameras/VR/vrExperienceHelper.js";
2
2
  export interface IVRConfiguration {
3
3
  disabled?: boolean;
4
4
  objectScaleFactor?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"vrConfiguration.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/interfaces/vrConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["import { VRExperienceHelperOptions } from \"@babylonjs/core\";\r\n\r\nexport interface IVRConfiguration {\r\n disabled?: boolean;\r\n objectScaleFactor?: number;\r\n disableInteractions?: boolean;\r\n disableTeleportation?: boolean;\r\n overrideFloorMeshName?: string;\r\n vrOptions?: VRExperienceHelperOptions;\r\n modelHeightCorrection?: number | boolean;\r\n rotateUsingControllers?: boolean; // experimental feature\r\n cameraPosition?: { x: number, y: number, z: number };\r\n}"]}
1
+ {"version":3,"file":"vrConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/vrConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["import type { VRExperienceHelperOptions } from \"core/Cameras/VR/vrExperienceHelper\";\r\n\r\nexport interface IVRConfiguration {\r\n disabled?: boolean;\r\n objectScaleFactor?: number;\r\n disableInteractions?: boolean;\r\n disableTeleportation?: boolean;\r\n overrideFloorMeshName?: string;\r\n vrOptions?: VRExperienceHelperOptions;\r\n modelHeightCorrection?: number | boolean;\r\n rotateUsingControllers?: boolean; // experimental feature\r\n cameraPosition?: { x: number; y: number; z: number };\r\n}\r\n"]}
@@ -1,25 +1,13 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
1
+ import { __extends } from "tslib";
16
2
  import { RenderOnlyConfigurationLoader } from "./renderOnlyLoader.js";
3
+ // eslint-disable-next-line import/no-internal-modules
17
4
  import { getConfigurationType } from "./types/index.js";
18
5
  var ConfigurationLoader = /** @class */ (function (_super) {
19
6
  __extends(ConfigurationLoader, _super);
20
7
  function ConfigurationLoader() {
21
8
  return _super !== null && _super.apply(this, arguments) || this;
22
9
  }
10
+ // eslint-disable-next-line @typescript-eslint/naming-convention
23
11
  ConfigurationLoader.prototype.getExtendedConfig = function (type) {
24
12
  return getConfigurationType(type || "extended");
25
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"loader.js","sourceRoot":"","sources":["../../../../sourceES6/viewer/src/configuration/loader.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD;IAAyC,uCAA6B;IAAtE;;IAIA,CAAC;IAHa,+CAAiB,GAA3B,UAA4B,IAAwB;QAChD,OAAO,oBAAoB,CAAC,IAAI,IAAI,UAAU,CAAC,CAAC;IACpD,CAAC;IACL,0BAAC;AAAD,CAAC,AAJD,CAAyC,6BAA6B,GAIrE","sourcesContent":["import { RenderOnlyConfigurationLoader } from \"./renderOnlyLoader\";\r\nimport { getConfigurationType } from \"./types/index\";\r\n\r\nexport class ConfigurationLoader extends RenderOnlyConfigurationLoader {\r\n protected getExtendedConfig(type: string | undefined) {\r\n return getConfigurationType(type || \"extended\");\r\n }\r\n}"]}
1
+ {"version":3,"file":"loader.js","sourceRoot":"","sources":["../../../../../tools/viewer/src/configuration/loader.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AACnE,sDAAsD;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD;IAAyC,uCAA6B;IAAtE;;IAKA,CAAC;IAJG,gEAAgE;IACtD,+CAAiB,GAA3B,UAA4B,IAAwB;QAChD,OAAO,oBAAoB,CAAC,IAAI,IAAI,UAAU,CAAC,CAAC;IACpD,CAAC;IACL,0BAAC;AAAD,CAAC,AALD,CAAyC,6BAA6B,GAKrE","sourcesContent":["import { RenderOnlyConfigurationLoader } from \"./renderOnlyLoader\";\r\n// eslint-disable-next-line import/no-internal-modules\r\nimport { getConfigurationType } from \"./types/index\";\r\n\r\nexport class ConfigurationLoader extends RenderOnlyConfigurationLoader {\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n protected getExtendedConfig(type: string | undefined) {\r\n return getConfigurationType(type || \"extended\");\r\n }\r\n}\r\n"]}
@@ -1,4 +1,4 @@
1
- import { ViewerConfiguration } from './configuration';
1
+ import type { ViewerConfiguration } from "./configuration";
2
2
  /**
3
3
  * This is the mapper's interface. Implement this function to create your own mapper and register it at the mapper manager
4
4
  */
@@ -23,7 +23,7 @@ export declare class MapperManager {
23
23
  */
24
24
  getMapper(type: string): IMapper;
25
25
  /**
26
- * Use this functio to register your own configuration mapper.
26
+ * Use this function to register your own configuration mapper.
27
27
  * After a mapper is registered, it can be used to parse the specific type fo configuration to the standard ViewerConfiguration.
28
28
  * @param type the name of the mapper. This will be used to define the configuration type and/or to get the mapper
29
29
  * @param mapper The implemented mapper
@@ -39,4 +39,4 @@ export declare class MapperManager {
39
39
  * The mapperManager can be disposed directly with calling mapperManager.dispose()
40
40
  * or indirectly with using BabylonViewer.disposeAll()
41
41
  */
42
- export declare let mapperManager: MapperManager;
42
+ export declare const mapperManager: MapperManager;