@babylonjs/viewer 5.0.0-rc.3 → 5.0.1

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 (192) hide show
  1. package/configuration/configuration.d.ts +107 -107
  2. package/configuration/configuration.js +15 -15
  3. package/configuration/configuration.js.map +1 -1
  4. package/configuration/configurationCompatibility.d.ts +8 -8
  5. package/configuration/configurationCompatibility.js +65 -65
  6. package/configuration/configurationCompatibility.js.map +1 -1
  7. package/configuration/configurationContainer.d.ts +10 -10
  8. package/configuration/configurationContainer.js +9 -9
  9. package/configuration/configurationContainer.js.map +1 -1
  10. package/configuration/globals.d.ts +6 -6
  11. package/configuration/globals.js +17 -17
  12. package/configuration/globals.js.map +1 -1
  13. package/configuration/index.d.ts +2 -2
  14. package/configuration/index.js +3 -2
  15. package/configuration/index.js.map +1 -1
  16. package/configuration/interfaces/cameraConfiguration.d.ts +31 -31
  17. package/configuration/interfaces/cameraConfiguration.js +1 -1
  18. package/configuration/interfaces/cameraConfiguration.js.map +1 -1
  19. package/configuration/interfaces/colorGradingConfiguration.d.ts +81 -81
  20. package/configuration/interfaces/colorGradingConfiguration.js +1 -1
  21. package/configuration/interfaces/colorGradingConfiguration.js.map +1 -1
  22. package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +20 -20
  23. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +1 -1
  24. package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +1 -1
  25. package/configuration/interfaces/environmentMapConfiguration.d.ts +22 -22
  26. package/configuration/interfaces/environmentMapConfiguration.js +1 -1
  27. package/configuration/interfaces/environmentMapConfiguration.js.map +1 -1
  28. package/configuration/interfaces/groundConfiguration.d.ts +24 -24
  29. package/configuration/interfaces/groundConfiguration.js +1 -1
  30. package/configuration/interfaces/groundConfiguration.js.map +1 -1
  31. package/configuration/interfaces/imageProcessingConfiguration.d.ts +43 -43
  32. package/configuration/interfaces/imageProcessingConfiguration.js +1 -1
  33. package/configuration/interfaces/imageProcessingConfiguration.js.map +1 -1
  34. package/configuration/interfaces/index.d.ts +15 -15
  35. package/configuration/interfaces/index.js +15 -15
  36. package/configuration/interfaces/index.js.map +1 -1
  37. package/configuration/interfaces/lightConfiguration.d.ts +60 -60
  38. package/configuration/interfaces/lightConfiguration.js +1 -1
  39. package/configuration/interfaces/lightConfiguration.js.map +1 -1
  40. package/configuration/interfaces/modelAnimationConfiguration.d.ts +26 -26
  41. package/configuration/interfaces/modelAnimationConfiguration.js +1 -1
  42. package/configuration/interfaces/modelAnimationConfiguration.js.map +1 -1
  43. package/configuration/interfaces/modelConfiguration.d.ts +65 -65
  44. package/configuration/interfaces/modelConfiguration.js +1 -1
  45. package/configuration/interfaces/modelConfiguration.js.map +1 -1
  46. package/configuration/interfaces/observersConfiguration.d.ts +5 -5
  47. package/configuration/interfaces/observersConfiguration.js +1 -1
  48. package/configuration/interfaces/observersConfiguration.js.map +1 -1
  49. package/configuration/interfaces/sceneConfiguration.d.ts +48 -48
  50. package/configuration/interfaces/sceneConfiguration.js +1 -1
  51. package/configuration/interfaces/sceneConfiguration.js.map +1 -1
  52. package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +23 -23
  53. package/configuration/interfaces/sceneOptimizerConfiguration.js +1 -1
  54. package/configuration/interfaces/sceneOptimizerConfiguration.js.map +1 -1
  55. package/configuration/interfaces/skyboxConfiguration.d.ts +21 -21
  56. package/configuration/interfaces/skyboxConfiguration.js +1 -1
  57. package/configuration/interfaces/skyboxConfiguration.js.map +1 -1
  58. package/configuration/interfaces/templateConfiguration.d.ts +67 -67
  59. package/configuration/interfaces/templateConfiguration.js +1 -1
  60. package/configuration/interfaces/templateConfiguration.js.map +1 -1
  61. package/configuration/interfaces/vrConfiguration.d.ts +16 -16
  62. package/configuration/interfaces/vrConfiguration.js +1 -1
  63. package/configuration/interfaces/vrConfiguration.js.map +1 -1
  64. package/configuration/loader.d.ts +4 -4
  65. package/configuration/loader.js +16 -28
  66. package/configuration/loader.js.map +1 -1
  67. package/configuration/mappers.d.ts +42 -42
  68. package/configuration/mappers.js +190 -189
  69. package/configuration/mappers.js.map +1 -1
  70. package/configuration/renderOnlyLoader.d.ts +33 -33
  71. package/configuration/renderOnlyLoader.js +161 -158
  72. package/configuration/renderOnlyLoader.js.map +1 -1
  73. package/configuration/types/default.d.ts +6 -6
  74. package/configuration/types/default.js +120 -119
  75. package/configuration/types/default.js.map +1 -1
  76. package/configuration/types/environmentMap.d.ts +5 -5
  77. package/configuration/types/environmentMap.js +13 -13
  78. package/configuration/types/environmentMap.js.map +1 -1
  79. package/configuration/types/extended.d.ts +6 -6
  80. package/configuration/types/extended.js +316 -316
  81. package/configuration/types/extended.js.map +1 -1
  82. package/configuration/types/index.d.ts +13 -13
  83. package/configuration/types/index.js +49 -48
  84. package/configuration/types/index.js.map +1 -1
  85. package/configuration/types/minimal.d.ts +6 -6
  86. package/configuration/types/minimal.js +42 -42
  87. package/configuration/types/minimal.js.map +1 -1
  88. package/configuration/types/renderOnlyDefault.d.ts +30 -30
  89. package/configuration/types/renderOnlyDefault.js +30 -30
  90. package/configuration/types/renderOnlyDefault.js.map +1 -1
  91. package/configuration/types/shadowLight.d.ts +9 -9
  92. package/configuration/types/shadowLight.js +63 -63
  93. package/configuration/types/shadowLight.js.map +1 -1
  94. package/helper/index.d.ts +26 -26
  95. package/helper/index.js +62 -56
  96. package/helper/index.js.map +1 -1
  97. package/index.d.ts +30 -30
  98. package/index.js +45 -41
  99. package/index.js.map +1 -1
  100. package/initializer.d.ts +11 -11
  101. package/initializer.js +34 -33
  102. package/initializer.js.map +1 -1
  103. package/interfaces.d.ts +5 -5
  104. package/interfaces.js +1 -1
  105. package/interfaces.js.map +1 -1
  106. package/labs/environmentSerializer.d.ts +126 -126
  107. package/labs/environmentSerializer.js +190 -186
  108. package/labs/environmentSerializer.js.map +1 -1
  109. package/labs/texture.d.ts +183 -184
  110. package/labs/texture.js +300 -297
  111. package/labs/texture.js.map +1 -1
  112. package/labs/viewerLabs.d.ts +51 -51
  113. package/labs/viewerLabs.js +133 -131
  114. package/labs/viewerLabs.js.map +1 -1
  115. package/license.md +71 -0
  116. package/loader/modelLoader.d.ts +47 -44
  117. package/loader/modelLoader.js +189 -182
  118. package/loader/modelLoader.js.map +1 -1
  119. package/loader/plugins/applyMaterialConfig.d.ts +12 -12
  120. package/loader/plugins/applyMaterialConfig.js +15 -15
  121. package/loader/plugins/applyMaterialConfig.js.map +1 -1
  122. package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +9 -9
  123. package/loader/plugins/extendedMaterialLoaderPlugin.js +15 -15
  124. package/loader/plugins/extendedMaterialLoaderPlugin.js.map +1 -1
  125. package/loader/plugins/index.d.ts +18 -17
  126. package/loader/plugins/index.js +42 -41
  127. package/loader/plugins/index.js.map +1 -1
  128. package/loader/plugins/loaderPlugin.d.ts +24 -24
  129. package/loader/plugins/loaderPlugin.js +1 -1
  130. package/loader/plugins/loaderPlugin.js.map +1 -1
  131. package/loader/plugins/msftLodLoaderPlugin.d.ts +12 -12
  132. package/loader/plugins/msftLodLoaderPlugin.js +20 -19
  133. package/loader/plugins/msftLodLoaderPlugin.js.map +1 -1
  134. package/loader/plugins/telemetryLoaderPlugin.d.ts +12 -12
  135. package/loader/plugins/telemetryLoaderPlugin.js +35 -35
  136. package/loader/plugins/telemetryLoaderPlugin.js.map +1 -1
  137. package/managers/observablesManager.d.ts +66 -66
  138. package/managers/observablesManager.js +34 -34
  139. package/managers/observablesManager.js.map +1 -1
  140. package/managers/sceneManager.d.ts +243 -245
  141. package/managers/sceneManager.js +1388 -1387
  142. package/managers/sceneManager.js.map +1 -1
  143. package/managers/telemetryManager.d.ts +57 -57
  144. package/managers/telemetryManager.js +113 -113
  145. package/managers/telemetryManager.js.map +1 -1
  146. package/model/modelAnimation.d.ts +215 -215
  147. package/model/modelAnimation.js +232 -232
  148. package/model/modelAnimation.js.map +1 -1
  149. package/model/viewerModel.d.ts +228 -236
  150. package/model/viewerModel.js +669 -664
  151. package/model/viewerModel.js.map +1 -1
  152. package/optimizer/custom/extended.d.ts +11 -13
  153. package/optimizer/custom/extended.js +98 -100
  154. package/optimizer/custom/extended.js.map +1 -1
  155. package/optimizer/custom/index.d.ts +8 -8
  156. package/optimizer/custom/index.js +24 -24
  157. package/optimizer/custom/index.js.map +1 -1
  158. package/package.json +41 -215
  159. package/readme.md +12 -8
  160. package/renderOnlyIndex.d.ts +11 -11
  161. package/renderOnlyIndex.js +17 -15
  162. package/renderOnlyIndex.js.map +1 -1
  163. package/templating/eventManager.d.ts +35 -35
  164. package/templating/eventManager.js +65 -63
  165. package/templating/eventManager.js.map +1 -1
  166. package/templating/plugins/hdButtonPlugin.d.ts +9 -9
  167. package/templating/plugins/hdButtonPlugin.js +21 -34
  168. package/templating/plugins/hdButtonPlugin.js.map +1 -1
  169. package/templating/plugins/printButton.d.ts +9 -10
  170. package/templating/plugins/printButton.js +40 -53
  171. package/templating/plugins/printButton.js.map +1 -1
  172. package/templating/templateManager.d.ts +190 -189
  173. package/templating/templateManager.js +553 -543
  174. package/templating/templateManager.js.map +1 -1
  175. package/templating/viewerTemplatePlugin.d.ts +21 -21
  176. package/templating/viewerTemplatePlugin.js +68 -68
  177. package/templating/viewerTemplatePlugin.js.map +1 -1
  178. package/viewer/defaultViewer.d.ts +122 -116
  179. package/viewer/defaultViewer.js +665 -670
  180. package/viewer/defaultViewer.js.map +1 -1
  181. package/viewer/renderOnlyViewer.d.ts +8 -8
  182. package/viewer/renderOnlyViewer.js +43 -50
  183. package/viewer/renderOnlyViewer.js.map +1 -1
  184. package/viewer/viewer.d.ts +254 -253
  185. package/viewer/viewer.js +777 -763
  186. package/viewer/viewer.js.map +1 -1
  187. package/viewer/viewerManager.d.ts +55 -55
  188. package/viewer/viewerManager.js +87 -86
  189. package/viewer/viewerManager.js.map +1 -1
  190. package/viewer/viewerWithTemplate.d.ts +9 -9
  191. package/viewer/viewerWithTemplate.js +19 -32
  192. package/viewer/viewerWithTemplate.js.map +1 -1
@@ -1,120 +1,121 @@
1
- import { babylonFont, defaultTemplate, fillContainer, loadingScreen, defaultViewer, navbar, overlay, help, share, error } from 'babylonjs-viewer-assets';
2
- import * as images from 'babylonjs-viewer-assets';
3
- import { renderOnlyDefaultConfiguration } from './renderOnlyDefault.js';
4
- import { deepmerge } from '../../helper/index.js';
5
- /**
6
- * The default configuration of the viewer, including templates (canvas, overly, loading screen)
7
- * This configuration doesn't hold specific parameters, and only defines objects that are needed for the viewer to fully work correctly.
8
- */
9
- export var defaultConfiguration = deepmerge(renderOnlyDefaultConfiguration, {
10
- version: "3.2.0-alpha4",
11
- templates: {
12
- main: {
13
- html: defaultTemplate,
14
- params: {
15
- babylonFont: babylonFont,
16
- noEscape: true
17
- }
18
- },
19
- fillContainer: {
20
- html: fillContainer,
21
- params: {
22
- disable: false
23
- }
24
- },
25
- loadingScreen: {
26
- html: loadingScreen,
27
- params: {
28
- backgroundColor: "#000000",
29
- loadingImage: images.loading,
30
- staticLoadingImage: images.staticLoading
31
- }
32
- },
33
- viewer: {
34
- html: defaultViewer,
35
- params: {
36
- enableDragAndDrop: false
37
- }
38
- },
39
- navBar: {
40
- html: navbar,
41
- params: {
42
- speedList: {
43
- "0.5x": "0.5",
44
- "1.0x": "1.0",
45
- "1.5x": "1.5",
46
- "2.0x": "2.0",
47
- },
48
- logoImage: images.babylonLogo,
49
- logoText: 'BabylonJS',
50
- logoLink: 'https://babylonjs.com',
51
- hideHelp: true,
52
- hideHd: true,
53
- hideVr: true,
54
- hidePrint: true,
55
- disableOnFullscreen: false,
56
- text: {
57
- hdButton: "Toggle HD",
58
- fullscreenButton: "Toggle Fullscreen",
59
- helpButton: "Help",
60
- vrButton: "Toggle VR",
61
- printButton: "3D Print Object"
62
- }
63
- },
64
- events: {
65
- click: {
66
- '.navbar-control': true
67
- },
68
- pointerdown: {
69
- '.help-button': true
70
- },
71
- input: {
72
- '.progress-wrapper': true
73
- },
74
- pointerup: {
75
- '.progress-wrapper': true
76
- }
77
- }
78
- },
79
- overlay: {
80
- html: overlay,
81
- params: {
82
- closeImage: images.close,
83
- closeText: 'Close'
84
- }
85
- },
86
- help: {
87
- html: help
88
- },
89
- share: {
90
- html: share
91
- },
92
- error: {
93
- html: error
94
- }
95
- },
96
- camera: {
97
- behaviors: {
98
- autoRotate: {
99
- type: 0
100
- },
101
- framing: {
102
- type: 2,
103
- zoomOnBoundingInfo: true,
104
- zoomStopsAnimation: false
105
- },
106
- bouncing: {
107
- type: 1
108
- }
109
- }
110
- },
111
- skybox: {},
112
- ground: {
113
- receiveShadows: true
114
- },
115
- engine: {
116
- antialiasing: true
117
- },
118
- scene: {}
119
- });
1
+ import { babylonFont, defaultTemplate, fillContainer, loadingScreen, defaultViewer, navbar, overlay, help, share, error } from "babylonjs-viewer-assets";
2
+ import * as images from "babylonjs-viewer-assets";
3
+ import { renderOnlyDefaultConfiguration } from "./renderOnlyDefault.js";
4
+ // eslint-disable-next-line import/no-internal-modules
5
+ import { deepmerge } from "../../helper/index.js";
6
+ /**
7
+ * The default configuration of the viewer, including templates (canvas, overly, loading screen)
8
+ * This configuration doesn't hold specific parameters, and only defines objects that are needed for the viewer to fully work correctly.
9
+ */
10
+ export var defaultConfiguration = deepmerge(renderOnlyDefaultConfiguration, {
11
+ version: "3.2.0-alpha4",
12
+ templates: {
13
+ main: {
14
+ html: defaultTemplate,
15
+ params: {
16
+ babylonFont: babylonFont,
17
+ noEscape: true,
18
+ },
19
+ },
20
+ fillContainer: {
21
+ html: fillContainer,
22
+ params: {
23
+ disable: false,
24
+ },
25
+ },
26
+ loadingScreen: {
27
+ html: loadingScreen,
28
+ params: {
29
+ backgroundColor: "#000000",
30
+ loadingImage: images.loading,
31
+ staticLoadingImage: images.staticLoading,
32
+ },
33
+ },
34
+ viewer: {
35
+ html: defaultViewer,
36
+ params: {
37
+ enableDragAndDrop: false,
38
+ },
39
+ },
40
+ navBar: {
41
+ html: navbar,
42
+ params: {
43
+ speedList: {
44
+ "0.5x": "0.5",
45
+ "1.0x": "1.0",
46
+ "1.5x": "1.5",
47
+ "2.0x": "2.0",
48
+ },
49
+ logoImage: images.babylonLogo,
50
+ logoText: "BabylonJS",
51
+ logoLink: "https://babylonjs.com",
52
+ hideHelp: true,
53
+ hideHd: true,
54
+ hideVr: true,
55
+ hidePrint: true,
56
+ disableOnFullscreen: false,
57
+ text: {
58
+ hdButton: "Toggle HD",
59
+ fullscreenButton: "Toggle Fullscreen",
60
+ helpButton: "Help",
61
+ vrButton: "Toggle VR",
62
+ printButton: "3D Print Object",
63
+ },
64
+ },
65
+ events: {
66
+ click: {
67
+ ".navbar-control": true,
68
+ },
69
+ pointerdown: {
70
+ ".help-button": true,
71
+ },
72
+ input: {
73
+ ".progress-wrapper": true,
74
+ },
75
+ pointerup: {
76
+ ".progress-wrapper": true,
77
+ },
78
+ },
79
+ },
80
+ overlay: {
81
+ html: overlay,
82
+ params: {
83
+ closeImage: images.close,
84
+ closeText: "Close",
85
+ },
86
+ },
87
+ help: {
88
+ html: help,
89
+ },
90
+ share: {
91
+ html: share,
92
+ },
93
+ error: {
94
+ html: error,
95
+ },
96
+ },
97
+ camera: {
98
+ behaviors: {
99
+ autoRotate: {
100
+ type: 0,
101
+ },
102
+ framing: {
103
+ type: 2,
104
+ zoomOnBoundingInfo: true,
105
+ zoomStopsAnimation: false,
106
+ },
107
+ bouncing: {
108
+ type: 1,
109
+ },
110
+ },
111
+ },
112
+ skybox: {},
113
+ ground: {
114
+ receiveShadows: true,
115
+ },
116
+ engine: {
117
+ antialiasing: true,
118
+ },
119
+ scene: {},
120
+ });
120
121
  //# sourceMappingURL=default.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"default.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/types/default.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,E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WAAW;oBACrB,gBAAgB,EAAE,mBAAmB;oBACrC,UAAU,EAAE,MAAM;oBAClB,QAAQ,EAAE,WAAW;oBACrB,WAAW,EAAE,iBAAiB;iBACjC;aACJ;YACD,MAAM,EAAE;gBACJ,KAAK,EAAE;oBACH,iBAAiB,EAAE,IAAI;iBAC1B;gBACD,WAAW,EAAE;oBACT,cAAc,EAAE,IAAI;iBACvB;gBACD,KAAK,EAAE;oBACH,mBAAmB,EAAE,IAAI;iBAC5B;gBACD,SAAS,EAAE;oBACP,mBAAmB,EAAE,IAAI;iBAC5B;aACJ;SACJ;QACD,OAAO,EAAE;YACL,IAAI,EAAE,OAAO;YACb,MAAM,EAAE;gBACJ,UAAU,EAAE,MAAM,CAAC,KAAK;gBACxB,SAAS,EAAE,OAAO;aACrB;SACJ;QACD,IAAI,EAAE;YACF,IAAI,EAAE,IAAI;SACb;QACD,KAAK,EAAE;YACH,IAAI,EAAE,KAAK;SACd;QACD,KAAK,EAAE;YACH,IAAI,EAAE,KAAK;SACd;KAEJ;IACD,MAAM,EAAE;QACJ,SAAS,EAAE;YACP,UAAU,EAAE;gBACR,IAAI,EAAE,CAAC;aACV;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,CAAC;gBACP,kBAAkB,EAAE,IAAI;gBACxB,kBAAkB,EAAE,KAAK;aAC5B;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,CAAC;aACV;SACJ;KACJ;IACD,MAAM,EAAE,EACP;IACD,MAAM,EAAE;QACJ,cAAc,EAAE,IAAI;KACvB;IACD,MAAM,EAAE;QACJ,YAAY,EAAE,IAAI;KACrB;IACD,KAAK,EAAE,EACN;CACJ,CAAC,CAAC","sourcesContent":["import { ViewerConfiguration } from '../configuration';\r\nimport { babylonFont, defaultTemplate, fillContainer, loadingScreen, defaultViewer, navbar, overlay, help, share, error } from 'babylonjs-viewer-assets';\r\nimport * as images from 'babylonjs-viewer-assets';\r\nimport { renderOnlyDefaultConfiguration } from './renderOnlyDefault';\r\nimport { deepmerge } from '../../helper/index';\r\n\r\n/**\r\n * The default configuration of the viewer, including templates (canvas, overly, loading screen)\r\n * This configuration doesn't hold specific parameters, and only defines objects that are needed for the viewer to fully work correctly.\r\n */\r\nexport let defaultConfiguration: ViewerConfiguration = deepmerge(renderOnlyDefaultConfiguration, {\r\n version: \"3.2.0-alpha4\",\r\n templates: {\r\n main: {\r\n html: defaultTemplate,\r\n params: {\r\n babylonFont: babylonFont,\r\n noEscape: true\r\n }\r\n },\r\n fillContainer: {\r\n html: fillContainer,\r\n params: {\r\n disable: false\r\n }\r\n },\r\n loadingScreen: {\r\n html: loadingScreen,\r\n params: {\r\n backgroundColor: \"#000000\",\r\n loadingImage: images.loading,\r\n staticLoadingImage: images.staticLoading\r\n }\r\n },\r\n viewer: {\r\n html: defaultViewer,\r\n params: {\r\n enableDragAndDrop: false\r\n }\r\n },\r\n navBar: {\r\n html: navbar,\r\n params: {\r\n speedList: {\r\n \"0.5x\": \"0.5\",\r\n \"1.0x\": \"1.0\",\r\n \"1.5x\": \"1.5\",\r\n \"2.0x\": \"2.0\",\r\n },\r\n logoImage: images.babylonLogo,\r\n logoText: 'BabylonJS',\r\n logoLink: 'https://babylonjs.com',\r\n hideHelp: true,\r\n hideHd: true,\r\n hideVr: true,\r\n hidePrint: true,\r\n disableOnFullscreen: false,\r\n text: {\r\n hdButton: \"Toggle HD\",\r\n fullscreenButton: \"Toggle Fullscreen\",\r\n helpButton: \"Help\",\r\n vrButton: \"Toggle VR\",\r\n printButton: \"3D Print Object\"\r\n }\r\n },\r\n events: {\r\n click: {\r\n '.navbar-control': true\r\n },\r\n pointerdown: {\r\n '.help-button': true\r\n },\r\n input: {\r\n '.progress-wrapper': true\r\n },\r\n pointerup: {\r\n '.progress-wrapper': true\r\n }\r\n }\r\n },\r\n overlay: {\r\n html: overlay,\r\n params: {\r\n closeImage: images.close,\r\n closeText: 'Close'\r\n }\r\n },\r\n help: {\r\n html: help\r\n },\r\n share: {\r\n html: share\r\n },\r\n error: {\r\n html: error\r\n }\r\n\r\n },\r\n camera: {\r\n behaviors: {\r\n autoRotate: {\r\n type: 0\r\n },\r\n framing: {\r\n type: 2,\r\n zoomOnBoundingInfo: true,\r\n zoomStopsAnimation: false\r\n },\r\n bouncing: {\r\n type: 1\r\n }\r\n }\r\n },\r\n skybox: {\r\n },\r\n ground: {\r\n receiveShadows: true\r\n },\r\n engine: {\r\n antialiasing: true\r\n },\r\n scene: {\r\n }\r\n});\r\n"]}
1
+ {"version":3,"file":"default.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/types/default.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACzJ,OAAO,KAAK,MAAM,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AACrE,sDAAsD;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C;;;GAGG;AACH,MAAM,CAAC,IAAM,oBAAoB,GAAwB,SAAS,CAAC,8BAA8B,EAAE;IAC/F,OAAO,EAAE,cAAc;IACvB,SAAS,EAAE;QACP,IAAI,EAAE;YACF,IAAI,EAAE,eAAe;YACrB,MAAM,EAAE;gBACJ,WAAW,EAAE,WAAW;gBACxB,QAAQ,EAAE,IAAI;aACjB;SACJ;QACD,aAAa,EAAE;YACX,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE;gBACJ,OAAO,EAAE,KAAK;aACjB;SACJ;QACD,aAAa,EAAE;YACX,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE;gBACJ,eAAe,EAAE,SAAS;gBAC1B,YAAY,EAAE,MAAM,CAAC,OAAO;gBAC5B,kBAAkB,EAAE,MAAM,CAAC,aAAa;aAC3C;SACJ;QACD,MAAM,EAAE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,CAAC;aACV;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,CAAC;gBACP,kBAAkB,EAAE,IAAI;gBACxB,kBAAkB,EAAE,KAAK;aAC5B;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,CAAC;aACV;SACJ;KACJ;IACD,MAAM,EAAE,EAAE;IACV,MAAM,EAAE;QACJ,cAAc,EAAE,IAAI;KACvB;IACD,MAAM,EAAE;QACJ,YAAY,EAAE,IAAI;KACrB;IACD,KAAK,EAAE,EAAE;CACZ,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\r\nimport type { ViewerConfiguration } from \"../configuration\";\r\nimport { babylonFont, defaultTemplate, fillContainer, loadingScreen, defaultViewer, navbar, overlay, help, share, error } from \"babylonjs-viewer-assets\";\r\nimport * as images from \"babylonjs-viewer-assets\";\r\nimport { renderOnlyDefaultConfiguration } from \"./renderOnlyDefault\";\r\n// eslint-disable-next-line import/no-internal-modules\r\nimport { deepmerge } from \"../../helper/index\";\r\n\r\n/**\r\n * The default configuration of the viewer, including templates (canvas, overly, loading screen)\r\n * This configuration doesn't hold specific parameters, and only defines objects that are needed for the viewer to fully work correctly.\r\n */\r\nexport const defaultConfiguration: ViewerConfiguration = deepmerge(renderOnlyDefaultConfiguration, {\r\n version: \"3.2.0-alpha4\",\r\n templates: {\r\n main: {\r\n html: defaultTemplate,\r\n params: {\r\n babylonFont: babylonFont,\r\n noEscape: true,\r\n },\r\n },\r\n fillContainer: {\r\n html: fillContainer,\r\n params: {\r\n disable: false,\r\n },\r\n },\r\n loadingScreen: {\r\n html: loadingScreen,\r\n params: {\r\n backgroundColor: \"#000000\",\r\n loadingImage: images.loading,\r\n staticLoadingImage: images.staticLoading,\r\n },\r\n },\r\n viewer: {\r\n html: defaultViewer,\r\n params: {\r\n enableDragAndDrop: false,\r\n },\r\n },\r\n navBar: {\r\n html: navbar,\r\n params: {\r\n speedList: {\r\n \"0.5x\": \"0.5\",\r\n \"1.0x\": \"1.0\",\r\n \"1.5x\": \"1.5\",\r\n \"2.0x\": \"2.0\",\r\n },\r\n logoImage: images.babylonLogo,\r\n logoText: \"BabylonJS\",\r\n logoLink: \"https://babylonjs.com\",\r\n hideHelp: true,\r\n hideHd: true,\r\n hideVr: true,\r\n hidePrint: true,\r\n disableOnFullscreen: false,\r\n text: {\r\n hdButton: \"Toggle HD\",\r\n fullscreenButton: \"Toggle Fullscreen\",\r\n helpButton: \"Help\",\r\n vrButton: \"Toggle VR\",\r\n printButton: \"3D Print Object\",\r\n },\r\n },\r\n events: {\r\n click: {\r\n \".navbar-control\": true,\r\n },\r\n pointerdown: {\r\n \".help-button\": true,\r\n },\r\n input: {\r\n \".progress-wrapper\": true,\r\n },\r\n pointerup: {\r\n \".progress-wrapper\": true,\r\n },\r\n },\r\n },\r\n overlay: {\r\n html: overlay,\r\n params: {\r\n closeImage: images.close,\r\n closeText: \"Close\",\r\n },\r\n },\r\n help: {\r\n html: help,\r\n },\r\n share: {\r\n html: share,\r\n },\r\n error: {\r\n html: error,\r\n },\r\n },\r\n camera: {\r\n behaviors: {\r\n autoRotate: {\r\n type: 0,\r\n },\r\n framing: {\r\n type: 2,\r\n zoomOnBoundingInfo: true,\r\n zoomStopsAnimation: false,\r\n },\r\n bouncing: {\r\n type: 1,\r\n },\r\n },\r\n },\r\n skybox: {},\r\n ground: {\r\n receiveShadows: true,\r\n },\r\n engine: {\r\n antialiasing: true,\r\n },\r\n scene: {},\r\n});\r\n"]}
@@ -1,5 +1,5 @@
1
- import { ViewerConfiguration } from './../configuration';
2
- /**
3
- * Lab-oriented default .env support
4
- */
5
- export declare const environmentMapConfiguration: ViewerConfiguration;
1
+ import type { ViewerConfiguration } from "./../configuration";
2
+ /**
3
+ * Lab-oriented default .env support
4
+ */
5
+ export declare const environmentMapConfiguration: ViewerConfiguration;
@@ -1,14 +1,14 @@
1
- /**
2
- * Lab-oriented default .env support
3
- */
4
- export var environmentMapConfiguration = {
5
- lab: {
6
- assetsRootURL: '/assets/environment/',
7
- environmentMap: {
8
- texture: 'EnvMap_3.0-256.env',
9
- rotationY: 0,
10
- tintLevel: 0.4
11
- }
12
- }
13
- };
1
+ /**
2
+ * Lab-oriented default .env support
3
+ */
4
+ export var environmentMapConfiguration = {
5
+ lab: {
6
+ assetsRootURL: "/assets/environment/",
7
+ environmentMap: {
8
+ texture: "EnvMap_3.0-256.env",
9
+ rotationY: 0,
10
+ tintLevel: 0.4,
11
+ },
12
+ },
13
+ };
14
14
  //# sourceMappingURL=environmentMap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"environmentMap.js","sourceRoot":"","sources":["../../../../../sourceES6/viewer/src/configuration/types/environmentMap.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,IAAM,2BAA2B,GAAwB;IAC5D,GAAG,EAAE;QACD,aAAa,EAAE,sBAAsB;QACrC,cAAc,EAAE;YACZ,OAAO,EAAE,oBAAoB;YAC7B,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,GAAG;SACjB;KACJ;CACJ,CAAC","sourcesContent":["import { ViewerConfiguration } from './../configuration';\r\n\r\n/**\r\n * Lab-oriented default .env support\r\n */\r\nexport const environmentMapConfiguration: ViewerConfiguration = {\r\n lab: {\r\n assetsRootURL: '/assets/environment/',\r\n environmentMap: {\r\n texture: 'EnvMap_3.0-256.env',\r\n rotationY: 0,\r\n tintLevel: 0.4\r\n }\r\n }\r\n};"]}
1
+ {"version":3,"file":"environmentMap.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/types/environmentMap.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,IAAM,2BAA2B,GAAwB;IAC5D,GAAG,EAAE;QACD,aAAa,EAAE,sBAAsB;QACrC,cAAc,EAAE;YACZ,OAAO,EAAE,oBAAoB;YAC7B,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,GAAG;SACjB;KACJ;CACJ,CAAC","sourcesContent":["import type { ViewerConfiguration } from \"./../configuration\";\r\n\r\n/**\r\n * Lab-oriented default .env support\r\n */\r\nexport const environmentMapConfiguration: ViewerConfiguration = {\r\n lab: {\r\n assetsRootURL: \"/assets/environment/\",\r\n environmentMap: {\r\n texture: \"EnvMap_3.0-256.env\",\r\n rotationY: 0,\r\n tintLevel: 0.4,\r\n },\r\n },\r\n};\r\n"]}
@@ -1,6 +1,6 @@
1
- import { ViewerConfiguration } from './../configuration';
2
- /**
3
- * The viewer's "extended" configuration.
4
- * This configuration defines specific objects and parameters that we think make any model look good.
5
- */
6
- export declare let extendedConfiguration: ViewerConfiguration;
1
+ import type { ViewerConfiguration } from "./../configuration";
2
+ /**
3
+ * The viewer's "extended" configuration.
4
+ * This configuration defines specific objects and parameters that we think make any model look good.
5
+ */
6
+ export declare const extendedConfiguration: ViewerConfiguration;