@roomle/web-sdk 2.94.0-alpha.9 → 2.94.0-bo-mvp.2

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 (293) hide show
  1. package/.releaserc.json +6 -3
  2. package/lib/TextGeometry-8993e971.js +2 -0
  3. package/lib/TextGeometry-8993e971.js.map +1 -0
  4. package/lib/TextGeometry-ca6aef04.nomodule.js +2 -0
  5. package/lib/TextGeometry-ca6aef04.nomodule.js.map +1 -0
  6. package/lib/{banana-for-scale-fd6e5dfb.js → banana-for-scale-0188286d.js} +2 -2
  7. package/lib/{banana-for-scale-fd6e5dfb.js.map → banana-for-scale-0188286d.js.map} +1 -1
  8. package/lib/{banana-for-scale-d5e703dd.nomodule.js → banana-for-scale-c142e9ea.nomodule.js} +2 -2
  9. package/lib/{banana-for-scale-d5e703dd.nomodule.js.map → banana-for-scale-c142e9ea.nomodule.js.map} +1 -1
  10. package/lib/{budgeteer-measure-7662ae7e.js → budgeteer-measure-196e37c3.js} +2 -2
  11. package/lib/{budgeteer-measure-7662ae7e.js.map → budgeteer-measure-196e37c3.js.map} +1 -1
  12. package/lib/budgeteer-measure.nomodule.js +1 -1
  13. package/lib/camera-behaviour-243f6fbc.nomodule.js +2 -0
  14. package/lib/camera-behaviour-243f6fbc.nomodule.js.map +1 -0
  15. package/lib/camera-behaviour-50316a4f.js +2 -0
  16. package/lib/camera-behaviour-50316a4f.js.map +1 -0
  17. package/lib/{component-dimensioning-4dba4f01.nomodule.js → component-dimensioning-3bf59bbb.nomodule.js} +2 -2
  18. package/lib/component-dimensioning-3bf59bbb.nomodule.js.map +1 -0
  19. package/lib/{component-dimensioning-c653c017.js → component-dimensioning-87aa75dd.js} +2 -2
  20. package/lib/component-dimensioning-87aa75dd.js.map +1 -0
  21. package/lib/{component-raycast-helper-f654891c.nomodule.js → component-raycast-helper-48e0772d.nomodule.js} +2 -2
  22. package/lib/component-raycast-helper-48e0772d.nomodule.js.map +1 -0
  23. package/lib/{component-raycast-helper-567cc0fa.js → component-raycast-helper-84f7cf42.js} +2 -2
  24. package/lib/component-raycast-helper-84f7cf42.js.map +1 -0
  25. package/lib/configurator-4cd96078.nomodule.js +2 -0
  26. package/lib/configurator-4cd96078.nomodule.js.map +1 -0
  27. package/lib/configurator-73e8ac26.js +2 -0
  28. package/lib/configurator-73e8ac26.js.map +1 -0
  29. package/lib/configurator-main-39099d94.js +2 -0
  30. package/lib/configurator-main-39099d94.js.map +1 -0
  31. package/lib/configurator-main.nomodule.js +1 -1
  32. package/lib/{continuous-drawing-helper-ae083fe0.nomodule.js → continuous-drawing-helper-8bddf858.nomodule.js} +2 -2
  33. package/lib/continuous-drawing-helper-8bddf858.nomodule.js.map +1 -0
  34. package/lib/{continuous-drawing-helper-709812e1.js → continuous-drawing-helper-e1a5f0a0.js} +2 -2
  35. package/lib/continuous-drawing-helper-e1a5f0a0.js.map +1 -0
  36. package/lib/definitions/common-core/src/cameracontrol/camera-control.d.ts +0 -1
  37. package/lib/definitions/common-core/src/rapi-access.d.ts +1 -5
  38. package/lib/definitions/common-core/src/utils/init-data.d.ts +0 -1
  39. package/lib/definitions/common-core/src/utils/shims.d.ts +10 -5
  40. package/lib/definitions/common-core/src/webgl/renderer/scene-renderer.d.ts +1 -2
  41. package/lib/definitions/common-core/src/webgl/roomle-webgl-renderer.d.ts +1 -1
  42. package/lib/definitions/configurator-core/src/export/production-manager-export.d.ts +35 -0
  43. package/lib/definitions/configurator-core/src/roomle-configurator.d.ts +7 -7
  44. package/lib/definitions/configurator-core/src/services/configurator-ui-callback.d.ts +1 -2
  45. package/lib/definitions/configurator-core/src/utils/{imos-ix-poc-export-helper.d.ts → export-helper.d.ts} +0 -5
  46. package/lib/definitions/configurator-core/src/utils/selection-handler.d.ts +1 -4
  47. package/lib/definitions/configurator-core/src/webgl/configurator-scene-event-handler.d.ts +1 -4
  48. package/lib/definitions/configurator-core/src/webgl/configurator-scene-manager.d.ts +1 -1
  49. package/lib/definitions/packages/common-core/src/cameracontrol/camera-control.d.ts +0 -1
  50. package/lib/definitions/packages/common-core/src/rapi-access.d.ts +1 -5
  51. package/lib/definitions/packages/common-core/src/utils/init-data.d.ts +0 -1
  52. package/lib/definitions/packages/common-core/src/utils/shims.d.ts +10 -5
  53. package/lib/definitions/packages/common-core/src/webgl/renderer/scene-renderer.d.ts +1 -2
  54. package/lib/definitions/packages/common-core/src/webgl/roomle-webgl-renderer.d.ts +1 -1
  55. package/lib/definitions/packages/configurator-core/src/export/production-manager-export.d.ts +35 -0
  56. package/lib/definitions/packages/configurator-core/src/roomle-configurator.d.ts +7 -7
  57. package/lib/definitions/packages/configurator-core/src/services/configurator-ui-callback.d.ts +1 -2
  58. package/lib/definitions/packages/configurator-core/src/utils/{imos-ix-poc-export-helper.d.ts → export-helper.d.ts} +0 -5
  59. package/lib/definitions/packages/configurator-core/src/utils/selection-handler.d.ts +1 -4
  60. package/lib/definitions/packages/configurator-core/src/webgl/configurator-scene-event-handler.d.ts +1 -4
  61. package/lib/definitions/packages/configurator-core/src/webgl/configurator-scene-manager.d.ts +1 -1
  62. package/lib/definitions/packages/planner-core/src/camera-control/camera-control-first-person.d.ts +0 -1
  63. package/lib/definitions/packages/planner-core/src/roomle-planner.d.ts +2 -2
  64. package/lib/definitions/packages/planner-core/src/utils/planner-scene-manager.d.ts +1 -1
  65. package/lib/definitions/packages/typings/planner.d.ts +8 -1
  66. package/lib/definitions/planner-core/src/camera-control/camera-control-first-person.d.ts +0 -1
  67. package/lib/definitions/planner-core/src/roomle-planner.d.ts +2 -2
  68. package/lib/definitions/planner-core/src/utils/planner-scene-manager.d.ts +1 -1
  69. package/lib/definitions/typings/planner.d.ts +8 -1
  70. package/lib/dimensioning-helper-3c37b3e2.nomodule.js +2 -0
  71. package/lib/dimensioning-helper-3c37b3e2.nomodule.js.map +1 -0
  72. package/lib/dimensioning-helper-6c6305a0.js +2 -0
  73. package/lib/{dimensioning-helper-95e81c56.js.map → dimensioning-helper-6c6305a0.js.map} +1 -1
  74. package/lib/{glb-viewer-camera-behaviour-1315a724.nomodule.js → glb-viewer-camera-behaviour-2e9e0e0f.nomodule.js} +2 -2
  75. package/lib/glb-viewer-camera-behaviour-2e9e0e0f.nomodule.js.map +1 -0
  76. package/lib/{glb-viewer-camera-behaviour-bb03c34a.js → glb-viewer-camera-behaviour-d8eb7b3f.js} +2 -2
  77. package/lib/glb-viewer-camera-behaviour-d8eb7b3f.js.map +1 -0
  78. package/lib/glb-viewer-dbde5555.js +2 -0
  79. package/lib/glb-viewer-dbde5555.js.map +1 -0
  80. package/lib/glb-viewer-fe8d7fdb.nomodule.js +2 -0
  81. package/lib/glb-viewer-fe8d7fdb.nomodule.js.map +1 -0
  82. package/lib/glb-viewer-main-d76dde68.js +2 -0
  83. package/lib/glb-viewer-main-d76dde68.js.map +1 -0
  84. package/lib/glb-viewer-main.nomodule.js +1 -1
  85. package/lib/{default-light-setting-164c6880.nomodule.js → jszip.min-251dc690.nomodule.js} +2 -2
  86. package/lib/jszip.min-251dc690.nomodule.js.map +1 -0
  87. package/lib/{default-light-setting-ba0a8657.js → jszip.min-83d8dde3.js} +2 -2
  88. package/lib/jszip.min-83d8dde3.js.map +1 -0
  89. package/lib/legacy/TextGeometry-e55daee4.legacy.js +2 -0
  90. package/lib/legacy/TextGeometry-e55daee4.legacy.js.map +1 -0
  91. package/lib/legacy/{banana-for-scale-91944f90.legacy.js → banana-for-scale-46289d2c.legacy.js} +2 -2
  92. package/lib/legacy/{banana-for-scale-91944f90.legacy.js.map → banana-for-scale-46289d2c.legacy.js.map} +1 -1
  93. package/lib/legacy/budgeteer-measure.legacy.js +1 -1
  94. package/lib/legacy/camera-behaviour-ea5fb0fe.legacy.js +2 -0
  95. package/lib/legacy/camera-behaviour-ea5fb0fe.legacy.js.map +1 -0
  96. package/lib/legacy/{component-dimensioning-a2b8a461.legacy.js → component-dimensioning-4da5a1c9.legacy.js} +2 -2
  97. package/lib/legacy/component-dimensioning-4da5a1c9.legacy.js.map +1 -0
  98. package/lib/legacy/{component-raycast-helper-40abc13f.legacy.js → component-raycast-helper-cfdac3f1.legacy.js} +2 -2
  99. package/lib/legacy/component-raycast-helper-cfdac3f1.legacy.js.map +1 -0
  100. package/lib/legacy/configurator-dcdf49ce.legacy.js +2 -0
  101. package/lib/legacy/configurator-dcdf49ce.legacy.js.map +1 -0
  102. package/lib/legacy/configurator-main.legacy.js +1 -1
  103. package/lib/legacy/{continuous-drawing-helper-bf7ef201.legacy.js → continuous-drawing-helper-78d01ab5.legacy.js} +2 -2
  104. package/lib/legacy/continuous-drawing-helper-78d01ab5.legacy.js.map +1 -0
  105. package/lib/legacy/dimensioning-helper-d953ab87.legacy.js +2 -0
  106. package/lib/legacy/dimensioning-helper-d953ab87.legacy.js.map +1 -0
  107. package/lib/legacy/glb-viewer-5c42d72f.legacy.js +2 -0
  108. package/lib/legacy/glb-viewer-5c42d72f.legacy.js.map +1 -0
  109. package/lib/legacy/{glb-viewer-camera-behaviour-77ce5610.legacy.js → glb-viewer-camera-behaviour-fb189467.legacy.js} +2 -2
  110. package/lib/legacy/glb-viewer-camera-behaviour-fb189467.legacy.js.map +1 -0
  111. package/lib/legacy/glb-viewer-main.legacy.js +1 -1
  112. package/lib/legacy/{default-light-setting-3517218c.legacy.js → jszip.min-caa65b6e.legacy.js} +2 -2
  113. package/lib/legacy/jszip.min-caa65b6e.legacy.js.map +1 -0
  114. package/lib/legacy/main-thread-to-worker-88f0947e.legacy.js +7 -0
  115. package/lib/legacy/main-thread-to-worker-88f0947e.legacy.js.map +1 -0
  116. package/lib/legacy/{material-viewer-ea1d9ff4.legacy.js → material-viewer-0c3c7db3.legacy.js} +2 -2
  117. package/lib/legacy/material-viewer-0c3c7db3.legacy.js.map +1 -0
  118. package/lib/legacy/material-viewer-main.legacy.js +1 -1
  119. package/lib/legacy/planner-2abd42db.legacy.js +2 -0
  120. package/lib/legacy/planner-2abd42db.legacy.js.map +1 -0
  121. package/lib/legacy/planner-main.legacy.js +1 -1
  122. package/lib/legacy/{query-params-helper-28b451be.legacy.js → query-params-helper-06b6ab82.legacy.js} +2 -2
  123. package/lib/legacy/query-params-helper-06b6ab82.legacy.js.map +1 -0
  124. package/lib/legacy/roomle-configurator-96f0d71f.legacy.js +2 -0
  125. package/lib/legacy/roomle-configurator-96f0d71f.legacy.js.map +1 -0
  126. package/lib/legacy/roomle-dependency-injection-91b31d74.legacy.js +9 -0
  127. package/lib/legacy/roomle-dependency-injection-91b31d74.legacy.js.map +1 -0
  128. package/lib/legacy/roomle-sdk.legacy.js +1 -1
  129. package/lib/legacy/{script-loader-e034eacd.legacy.js → script-loader-a2c7e2f6.legacy.js} +2 -2
  130. package/lib/legacy/script-loader-a2c7e2f6.legacy.js.map +1 -0
  131. package/lib/legacy/static/ConfiguratorKernel-c7c2e0db95109b2f.wasm +0 -0
  132. package/lib/legacy/static/RoomleCore-92f19b06d7a05516.wasm +0 -0
  133. package/lib/legacy/static/{RoomleCore-7d10b7b8ca9a203a.js → RoomleCore-e2b69be88aa87f2d.js} +2 -2
  134. package/lib/legacy/static/RoomleToolsCore-4115535029d04c32.wasm +0 -0
  135. package/lib/legacy/{stats-helper-9e8bc8c2.legacy.js → stats-helper-0b001c51.legacy.js} +2 -2
  136. package/lib/legacy/stats-helper-0b001c51.legacy.js.map +1 -0
  137. package/lib/legacy/{tools-core-059175bd.legacy.js → tools-core-9466560a.legacy.js} +2 -2
  138. package/lib/legacy/tools-core-9466560a.legacy.js.map +1 -0
  139. package/lib/main-thread-to-worker-b9299c65.js +2 -0
  140. package/lib/main-thread-to-worker-b9299c65.js.map +1 -0
  141. package/lib/main-thread-to-worker-cdc86ed6.nomodule.js +2 -0
  142. package/lib/main-thread-to-worker-cdc86ed6.nomodule.js.map +1 -0
  143. package/lib/{material-viewer-cc064350.nomodule.js → material-viewer-6c6e8cc0.nomodule.js} +2 -2
  144. package/lib/material-viewer-6c6e8cc0.nomodule.js.map +1 -0
  145. package/lib/{material-viewer-21b43760.js → material-viewer-cfed9925.js} +2 -2
  146. package/lib/material-viewer-cfed9925.js.map +1 -0
  147. package/lib/material-viewer-main-a9b6300a.js +2 -0
  148. package/lib/material-viewer-main-a9b6300a.js.map +1 -0
  149. package/lib/material-viewer-main.nomodule.js +1 -1
  150. package/lib/planner-0bf90715.nomodule.js +2 -0
  151. package/lib/planner-0bf90715.nomodule.js.map +1 -0
  152. package/lib/planner-71086a48.js +2 -0
  153. package/lib/planner-71086a48.js.map +1 -0
  154. package/lib/planner-main-654561fa.js +2 -0
  155. package/lib/planner-main-654561fa.js.map +1 -0
  156. package/lib/planner-main.nomodule.js +1 -1
  157. package/lib/{query-params-helper-28405b8d.js → query-params-helper-45cc26ae.js} +2 -2
  158. package/lib/query-params-helper-45cc26ae.js.map +1 -0
  159. package/lib/{query-params-helper-4f855064.nomodule.js → query-params-helper-6eaaca17.nomodule.js} +2 -2
  160. package/lib/query-params-helper-6eaaca17.nomodule.js.map +1 -0
  161. package/lib/roomle-configurator-1d5aa799.js +2 -0
  162. package/lib/roomle-configurator-1d5aa799.js.map +1 -0
  163. package/lib/roomle-configurator-4b596d1e.nomodule.js +2 -0
  164. package/lib/roomle-configurator-4b596d1e.nomodule.js.map +1 -0
  165. package/lib/roomle-dependency-injection-829ab9cf.js +9 -0
  166. package/lib/roomle-dependency-injection-829ab9cf.js.map +1 -0
  167. package/lib/roomle-dependency-injection-af97621a.nomodule.js +9 -0
  168. package/lib/roomle-dependency-injection-af97621a.nomodule.js.map +1 -0
  169. package/lib/{roomle-sdk-8370ba12.js → roomle-sdk-59f9c18f.js} +2 -2
  170. package/lib/roomle-sdk-59f9c18f.js.map +1 -0
  171. package/lib/roomle-sdk.nomodule.js +1 -1
  172. package/lib/{script-loader-cef9cd57.nomodule.js → script-loader-2f51ab88.nomodule.js} +2 -2
  173. package/lib/script-loader-2f51ab88.nomodule.js.map +1 -0
  174. package/lib/{script-loader-3666c323.js → script-loader-c784c2fd.js} +2 -2
  175. package/lib/script-loader-c784c2fd.js.map +1 -0
  176. package/lib/static/ConfiguratorKernel-c7c2e0db95109b2f.wasm +0 -0
  177. package/lib/static/RoomleCore-92f19b06d7a05516.wasm +0 -0
  178. package/lib/static/{RoomleCore-7d10b7b8ca9a203a.js → RoomleCore-e2b69be88aa87f2d.js} +1 -1
  179. package/lib/static/{RoomleCore-7d10b7b8ca9a203a.js.map → RoomleCore-e2b69be88aa87f2d.js.map} +1 -1
  180. package/lib/static/RoomleToolsCore-4115535029d04c32.wasm +0 -0
  181. package/lib/{stats-helper-49df18b1.nomodule.js → stats-helper-60d73e71.nomodule.js} +2 -2
  182. package/lib/stats-helper-60d73e71.nomodule.js.map +1 -0
  183. package/lib/{stats-helper-9752a9a4.js → stats-helper-68e6db19.js} +2 -2
  184. package/lib/stats-helper-68e6db19.js.map +1 -0
  185. package/lib/{tools-core-c9c937d6.nomodule.js → tools-core-1cdac035.nomodule.js} +2 -2
  186. package/lib/tools-core-1cdac035.nomodule.js.map +1 -0
  187. package/lib/{tools-core-f5adce3b.js → tools-core-d7c414b0.js} +2 -2
  188. package/lib/tools-core-d7c414b0.js.map +1 -0
  189. package/package.json +3 -3
  190. package/lib/TextGeometry-259292ec.nomodule.js +0 -2
  191. package/lib/TextGeometry-259292ec.nomodule.js.map +0 -1
  192. package/lib/TextGeometry-dc304c0e.js +0 -2
  193. package/lib/TextGeometry-dc304c0e.js.map +0 -1
  194. package/lib/camera-behaviour-29ddc973.js +0 -2
  195. package/lib/camera-behaviour-29ddc973.js.map +0 -1
  196. package/lib/camera-behaviour-f7b35293.nomodule.js +0 -2
  197. package/lib/camera-behaviour-f7b35293.nomodule.js.map +0 -1
  198. package/lib/component-dimensioning-4dba4f01.nomodule.js.map +0 -1
  199. package/lib/component-dimensioning-c653c017.js.map +0 -1
  200. package/lib/component-raycast-helper-567cc0fa.js.map +0 -1
  201. package/lib/component-raycast-helper-f654891c.nomodule.js.map +0 -1
  202. package/lib/configurator-472d8e3c.nomodule.js +0 -2
  203. package/lib/configurator-472d8e3c.nomodule.js.map +0 -1
  204. package/lib/configurator-c1f9bb05.js +0 -2
  205. package/lib/configurator-c1f9bb05.js.map +0 -1
  206. package/lib/configurator-main-21d1e326.js +0 -2
  207. package/lib/configurator-main-21d1e326.js.map +0 -1
  208. package/lib/continuous-drawing-helper-709812e1.js.map +0 -1
  209. package/lib/continuous-drawing-helper-ae083fe0.nomodule.js.map +0 -1
  210. package/lib/default-light-setting-164c6880.nomodule.js.map +0 -1
  211. package/lib/default-light-setting-ba0a8657.js.map +0 -1
  212. package/lib/dimensioning-helper-3f4bf2b5.nomodule.js +0 -2
  213. package/lib/dimensioning-helper-3f4bf2b5.nomodule.js.map +0 -1
  214. package/lib/dimensioning-helper-95e81c56.js +0 -2
  215. package/lib/glb-viewer-136e59be.nomodule.js +0 -2
  216. package/lib/glb-viewer-136e59be.nomodule.js.map +0 -1
  217. package/lib/glb-viewer-camera-behaviour-1315a724.nomodule.js.map +0 -1
  218. package/lib/glb-viewer-camera-behaviour-bb03c34a.js.map +0 -1
  219. package/lib/glb-viewer-f8bcb45f.js +0 -2
  220. package/lib/glb-viewer-f8bcb45f.js.map +0 -1
  221. package/lib/glb-viewer-main-15fdc335.js +0 -2
  222. package/lib/glb-viewer-main-15fdc335.js.map +0 -1
  223. package/lib/imos-ix-poc-export-helper-3765ee05.js +0 -2
  224. package/lib/imos-ix-poc-export-helper-3765ee05.js.map +0 -1
  225. package/lib/imos-ix-poc-export-helper-652dd5ff.nomodule.js +0 -2
  226. package/lib/imos-ix-poc-export-helper-652dd5ff.nomodule.js.map +0 -1
  227. package/lib/legacy/TextGeometry-7a5a6f22.legacy.js +0 -2
  228. package/lib/legacy/TextGeometry-7a5a6f22.legacy.js.map +0 -1
  229. package/lib/legacy/camera-behaviour-c7ce024b.legacy.js +0 -2
  230. package/lib/legacy/camera-behaviour-c7ce024b.legacy.js.map +0 -1
  231. package/lib/legacy/component-dimensioning-a2b8a461.legacy.js.map +0 -1
  232. package/lib/legacy/component-raycast-helper-40abc13f.legacy.js.map +0 -1
  233. package/lib/legacy/configurator-d98d767d.legacy.js +0 -2
  234. package/lib/legacy/configurator-d98d767d.legacy.js.map +0 -1
  235. package/lib/legacy/continuous-drawing-helper-bf7ef201.legacy.js.map +0 -1
  236. package/lib/legacy/default-light-setting-3517218c.legacy.js.map +0 -1
  237. package/lib/legacy/dimensioning-helper-d0ce8b91.legacy.js +0 -2
  238. package/lib/legacy/dimensioning-helper-d0ce8b91.legacy.js.map +0 -1
  239. package/lib/legacy/glb-viewer-1d1cf998.legacy.js +0 -2
  240. package/lib/legacy/glb-viewer-1d1cf998.legacy.js.map +0 -1
  241. package/lib/legacy/glb-viewer-camera-behaviour-77ce5610.legacy.js.map +0 -1
  242. package/lib/legacy/imos-ix-poc-export-helper-c25e7551.legacy.js +0 -2
  243. package/lib/legacy/imos-ix-poc-export-helper-c25e7551.legacy.js.map +0 -1
  244. package/lib/legacy/main-thread-to-worker-6115d235.legacy.js +0 -7
  245. package/lib/legacy/main-thread-to-worker-6115d235.legacy.js.map +0 -1
  246. package/lib/legacy/material-viewer-ea1d9ff4.legacy.js.map +0 -1
  247. package/lib/legacy/planner-7d92fbfd.legacy.js +0 -2
  248. package/lib/legacy/planner-7d92fbfd.legacy.js.map +0 -1
  249. package/lib/legacy/query-params-helper-28b451be.legacy.js.map +0 -1
  250. package/lib/legacy/roomle-configurator-7f43e4bb.legacy.js +0 -2
  251. package/lib/legacy/roomle-configurator-7f43e4bb.legacy.js.map +0 -1
  252. package/lib/legacy/roomle-dependency-injection-df72d53a.legacy.js +0 -9
  253. package/lib/legacy/roomle-dependency-injection-df72d53a.legacy.js.map +0 -1
  254. package/lib/legacy/script-loader-e034eacd.legacy.js.map +0 -1
  255. package/lib/legacy/static/ConfiguratorKernel-693162c22cdf9e05.wasm +0 -0
  256. package/lib/legacy/static/RoomleCore-b3bb2feaabaeaa79.wasm +0 -0
  257. package/lib/legacy/static/RoomleToolsCore-6f48d3b400b3fd63.wasm +0 -0
  258. package/lib/legacy/stats-helper-9e8bc8c2.legacy.js.map +0 -1
  259. package/lib/legacy/tools-core-059175bd.legacy.js.map +0 -1
  260. package/lib/main-thread-to-worker-352ff4b1.js +0 -8
  261. package/lib/main-thread-to-worker-352ff4b1.js.map +0 -1
  262. package/lib/main-thread-to-worker-7f1cb5ea.nomodule.js +0 -8
  263. package/lib/main-thread-to-worker-7f1cb5ea.nomodule.js.map +0 -1
  264. package/lib/material-viewer-21b43760.js.map +0 -1
  265. package/lib/material-viewer-cc064350.nomodule.js.map +0 -1
  266. package/lib/material-viewer-main-29ed2d1b.js +0 -2
  267. package/lib/material-viewer-main-29ed2d1b.js.map +0 -1
  268. package/lib/planner-6c433b5e.nomodule.js +0 -2
  269. package/lib/planner-6c433b5e.nomodule.js.map +0 -1
  270. package/lib/planner-bc4828c5.js +0 -2
  271. package/lib/planner-bc4828c5.js.map +0 -1
  272. package/lib/planner-main-0ad1d42e.js +0 -2
  273. package/lib/planner-main-0ad1d42e.js.map +0 -1
  274. package/lib/query-params-helper-28405b8d.js.map +0 -1
  275. package/lib/query-params-helper-4f855064.nomodule.js.map +0 -1
  276. package/lib/roomle-configurator-0ea73d01.js +0 -2
  277. package/lib/roomle-configurator-0ea73d01.js.map +0 -1
  278. package/lib/roomle-configurator-7921656a.nomodule.js +0 -2
  279. package/lib/roomle-configurator-7921656a.nomodule.js.map +0 -1
  280. package/lib/roomle-dependency-injection-70af035c.nomodule.js +0 -9
  281. package/lib/roomle-dependency-injection-70af035c.nomodule.js.map +0 -1
  282. package/lib/roomle-dependency-injection-9497ccbb.js +0 -9
  283. package/lib/roomle-dependency-injection-9497ccbb.js.map +0 -1
  284. package/lib/roomle-sdk-8370ba12.js.map +0 -1
  285. package/lib/script-loader-3666c323.js.map +0 -1
  286. package/lib/script-loader-cef9cd57.nomodule.js.map +0 -1
  287. package/lib/static/ConfiguratorKernel-693162c22cdf9e05.wasm +0 -0
  288. package/lib/static/RoomleCore-b3bb2feaabaeaa79.wasm +0 -0
  289. package/lib/static/RoomleToolsCore-6f48d3b400b3fd63.wasm +0 -0
  290. package/lib/stats-helper-49df18b1.nomodule.js.map +0 -1
  291. package/lib/stats-helper-9752a9a4.js.map +0 -1
  292. package/lib/tools-core-c9c937d6.nomodule.js.map +0 -1
  293. package/lib/tools-core-f5adce3b.js.map +0 -1
@@ -21,9 +21,8 @@ import type { GlobalCallback } from '../../common-core/src/services/global-callb
21
21
  import type RoomleToolsCore from '../../tools-core/src/roomle-tools-core';
22
22
  import type { Scene } from 'three';
23
23
  import type IdbManager from '../../common-core/src/services/idb-manager';
24
- import type { HomagIxArticleParams, HomagIxHeaderParams, HomagIxOrderParams } from './utils/imos-ix-poc-export-helper';
24
+ import type { HomagIxArticleParams, HomagIxHeaderParams, HomagIxOrderParams } from './utils/export-helper';
25
25
  import type { ConfiguratorDebugAPI } from './configurator-debug-api';
26
- import type { CancelSelectionReasons } from '../../typings/planner';
27
26
  interface ConfigurationLoadedResponse {
28
27
  partList: KernelPartList;
29
28
  errors: string[];
@@ -114,10 +113,7 @@ export default class RoomleConfigurator implements GlobalAPI, Context, KernelUti
114
113
  /**
115
114
  * Cancels the selection of all currently selected components
116
115
  */
117
- cancelSelection({ reason, resetCamera, }?: {
118
- reason?: CancelSelectionReasons;
119
- resetCamera?: boolean;
120
- }): void;
116
+ cancelSelection(): void;
121
117
  /**
122
118
  * Enable the use of HD geometry. Also reloads the object with HD geometry enabled
123
119
  */
@@ -677,7 +673,7 @@ export default class RoomleConfigurator implements GlobalAPI, Context, KernelUti
677
673
  generateIMOSiXExport(defaultExportDefinition?: string): Promise<any>;
678
674
  generateHOMAGiXExport(defaultExportDefinition?: string, homagIxOrderData?: HomagIxOrderParams, homagIxHeaderParams?: HomagIxHeaderParams, homagIxArticleParams?: HomagIxArticleParams): Promise<string>;
679
675
  downloadHomagIxExportPoC(): Promise<any>;
680
- generateHomagIxExport(exportType: ExportType, defaultExportDefinition?: string): Promise<any>;
676
+ generateExport(exportType: ExportType, defaultExportDefinition?: string): Promise<any>;
681
677
  setEnvironmentMap(params: {
682
678
  url?: string;
683
679
  intensity?: number;
@@ -686,6 +682,10 @@ export default class RoomleConfigurator implements GlobalAPI, Context, KernelUti
686
682
  }): void;
687
683
  enableEvents(): void;
688
684
  disableEvents(): void;
685
+ createProductManagerExportPoC(defaultExportDefinition?: string, send?: (content: any) => void | null): Promise<any>;
686
+ getFileFromUrl(url: string, fileNmame: string, defaultType: string): Promise<File>;
687
+ downloadProductManagerExportPoC(defaultExportDefinition?: string): Promise<any>;
688
+ postProductManagerExportPoC(defaultExportDefinition?: string, requestData?: Record<string, string>): Promise<any>;
689
689
  enableDebugging(): void;
690
690
  }
691
691
  export {};
@@ -7,7 +7,6 @@ import type { ConfiguratorKernelContainer } from '../../../typings/configurator-
7
7
  import type { PlannerKernelContainer } from '../../../typings/planner-kernel-container';
8
8
  import type { RoomleComponent } from '../../../common-core/src/webgl/roomle-component-factory';
9
9
  import type { ConfiguratorDebugCallbacks } from '../configurator-debug-api';
10
- import type { CancelSelectionReasons } from '../../../typings/planner';
11
10
  export type ComponentAction = 'edit' | 'add';
12
11
  export type ComponentType = 'preview' | 'component';
13
12
  export interface UIComponentInfo {
@@ -61,7 +60,7 @@ export default class ConfiguratorUiCallbacks extends UiCallback implements Confi
61
60
  /**
62
61
  * When a component or item selection has been canceled
63
62
  */
64
- onSelectionCancel: (reason: CancelSelectionReasons) => void;
63
+ onSelectionCancel: () => void;
65
64
  /**
66
65
  * When part list has been changed/updated, this event is triggered
67
66
  * on start up and when a configuration changes
@@ -1,5 +1,3 @@
1
- import { type ConfigurationExporter, type ConfiguratorKernelClass, ExportType } from '../../../typings/kernel';
2
- import type { PlanOverview } from '../../../typings/planner';
3
1
  export interface HomagIxOrderParams {
4
2
  orderNumber?: string;
5
3
  dispatchDate?: string;
@@ -38,6 +36,3 @@ export declare const createHomagIxXml: (orderData: HomagIxOrderParams, headerDat
38
36
  export declare const getFakeOrderParams: () => HomagIxOrderParams;
39
37
  export declare const getFakeHeaderParams: () => HomagIxHeaderParams;
40
38
  export declare const getFakeArticleParams: () => HomagIxArticleParams;
41
- export declare const downloadHomagIxExportPoC: (planOverview: PlanOverview, exporter: ConfigurationExporter, kernelInstance: ConfiguratorKernelClass) => Promise<void>;
42
- export declare const generateExportHomagIxConfiguration: (planObjectId: number, exportType: ExportType, exporter: ConfigurationExporter, kernelInstance: ConfiguratorKernelClass, defaultExportDefinition?: string) => Promise<any>;
43
- export declare const homagIxMockUpData: (articles: any[], homagIxOrderData?: {}, homagIxHeaderParams?: {}, homagIxArticleParams?: {}) => string;
@@ -1,5 +1,4 @@
1
1
  import type { RoomleComponent } from '../../../common-core/src/webgl/roomle-component-factory';
2
- import type { CancelSelectionReasons } from '../../../typings/planner';
3
2
  import EventDispatcher from './event-dispatcher';
4
3
  export declare const enum SELECTION_MODE {
5
4
  STANDARD = "standard",
@@ -13,19 +12,17 @@ export declare class SelectionHandlerEvent {
13
12
  component: RoomleComponent;
14
13
  resetCamera: boolean;
15
14
  consecutive: boolean;
16
- reason: CancelSelectionReasons;
17
15
  constructor(data: {
18
16
  component?: RoomleComponent;
19
17
  resetCamera?: boolean;
20
18
  consecutive?: boolean;
21
- reason?: CancelSelectionReasons;
22
19
  });
23
20
  }
24
21
  export default class SelectionHandler extends EventDispatcher<SelectionHandlerEvent> {
25
22
  private _selectionMode;
26
23
  protected _selectedComponents: Map<number, RoomleComponent>;
27
24
  check(component: RoomleComponent): void;
28
- cancelSelection(reason: CancelSelectionReasons): boolean;
25
+ cancelSelection(): void;
29
26
  private _checkStandard;
30
27
  private _checkMulti;
31
28
  setSelectionMode(mode: SELECTION_MODE): void;
@@ -8,7 +8,6 @@ import type { Object3D, PerspectiveCamera, Scene } from 'three';
8
8
  import { type Vector3 } from 'three';
9
9
  import { type Camera } from 'three';
10
10
  import { type Enumify } from '../../../common-core/src/types';
11
- import type { CancelSelectionReasons } from '../../../typings/planner';
12
11
  export declare const enum SCENE_EVENT {
13
12
  INTERACTION = 0,
14
13
  HOVER_ON = 1,
@@ -28,7 +27,6 @@ export declare class SceneEventInfo {
28
27
  consecutive: boolean;
29
28
  type: INPUT_EVENT_TYPE;
30
29
  forceRender: boolean;
31
- reason: CancelSelectionReasons;
32
30
  constructor(data: {
33
31
  component?: RoomleComponent;
34
32
  preview?: PreviewComponent;
@@ -36,7 +34,6 @@ export declare class SceneEventInfo {
36
34
  consecutive?: boolean;
37
35
  type?: INPUT_EVENT_TYPE;
38
36
  forceRender?: boolean;
39
- reason?: CancelSelectionReasons;
40
37
  });
41
38
  }
42
39
  export interface ComponentEventInfo {
@@ -86,7 +83,7 @@ export default class ConfiguratorSceneEventHandler extends SceneEventHandler<Sce
86
83
  isDragIn(): boolean;
87
84
  isDragging(): boolean;
88
85
  setRootComponentId(rootComponentId: number): void;
89
- cancelSelection(reason: CancelSelectionReasons): boolean;
86
+ cancelSelection(): void;
90
87
  setSelectionMode(mode: SELECTION_MODE): void;
91
88
  getSelectionMode(): SELECTION_MODE;
92
89
  getSelectedRuntimeComponentIds(): number[];
@@ -99,7 +99,7 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
99
99
  protected enablePanning(): void;
100
100
  protected disablePanning(): void;
101
101
  cancelPreviousDockings(): void;
102
- cancelComponentSelection(resetCamera?: boolean, reason?: CancelSelectionReasons): void;
102
+ cancelComponentSelection(resetCamera?: boolean): void;
103
103
  protected notifyPlannerOnComponentSelectionCancel(_isExternalObject: boolean, _reason: CancelSelectionReasons): void;
104
104
  private _cancelSelection;
105
105
  private _selectComponent;
@@ -14,7 +14,6 @@ export default class CameraControlFirstPerson extends CameraControl {
14
14
  minPolarAngle: number;
15
15
  maxPolarAngle: number;
16
16
  constructor(creator: string, inputManager: InputManager, initialCameraParameters?: CameraParameter, camera?: PerspectiveCamera);
17
- setUp(): void;
18
17
  private _gamepadConnected;
19
18
  private _gamepadDisconnected;
20
19
  private startButtonPressListener;
@@ -28,7 +28,7 @@ export type ID_TYPE = 'rml_id' | 'tc_id' | 'rml_serialized' | 'tc_serialized';
28
28
  export interface RoomlePlannerCallback {
29
29
  switchToConfigurator: () => Promise<Configurator>;
30
30
  switchToViewer: () => Promise<GlbViewer>;
31
- cancelSelection: (reason: CancelSelectionReasons) => void;
31
+ cancelSelection: () => void;
32
32
  deleteSelection: () => void;
33
33
  rotateSelection: (rotateBy: number) => void;
34
34
  }
@@ -382,7 +382,7 @@ export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlann
382
382
  loadExternalObjectGroup(groupData: object | string | string[], findFreeSpaceInPlan: boolean, verifyArrangement?: boolean, mergedGroups?: string[]): Promise<void>;
383
383
  private _loadExternalObjectGroup;
384
384
  private _createSerializedGroupCollection;
385
- renderImagesOfExternalObjectGroup(groups: object): Promise<{
385
+ renderImagesOfExternalObjectGroup(groupsJson: string | object): Promise<{
386
386
  [key: string]: string;
387
387
  }>;
388
388
  removeExternalObjectGroup(groupId: string, wasMerged?: boolean): Promise<void>;
@@ -3,5 +3,5 @@ import type { PlanObjectPosition } from '../../../typings/planner';
3
3
  import type { Camera } from 'three';
4
4
  import type PlanElementViewModel from '../../../common-core/src/view-model/plan-element-view-model';
5
5
  export declare const createTransferableObjectPosition: (planViewModel: PlanObjectViewModel | PlanElementViewModel, camera: Camera, clientWidth: number, clientHeight: number) => PlanObjectPosition;
6
- export type CallbackObjectType = 'static' | 'configuration' | 'wall' | 'measure' | 'door' | 'floor' | 'window' | 'unknown' | 'external-configuration';
6
+ export type CallbackObjectType = 'static' | 'configuration' | 'wall' | 'measure' | 'door' | 'floor' | 'window' | 'unknown';
7
7
  export declare const getCallbackObjectType: (planElementViewModel: PlanElementViewModel) => CallbackObjectType;
@@ -111,6 +111,7 @@ export interface WallPlanObject extends PlanObject {
111
111
  getLength(preferredSide: WallSide): number;
112
112
  getFrom(): NodePlanObject;
113
113
  getTo(): NodePlanObject;
114
+ getAttachedAttics(): KernelAtticArray;
114
115
  readonly thickness: number;
115
116
  readonly height: number;
116
117
  }
@@ -148,6 +149,12 @@ export declare const CORE_CHILD_ENTITY_MODE: {
148
149
  export interface ChildEntityMode {
149
150
  value: Enumify<typeof CORE_CHILD_ENTITY_MODE>;
150
151
  }
152
+ export interface ExternalObjectLoadConfiguration {
153
+ applyGlobalChildMode: boolean;
154
+ correctArrangement: boolean;
155
+ findFreeSpaceInPlan: boolean;
156
+ isVisible: boolean;
157
+ }
151
158
  export interface PlanInteractionHandler {
152
159
  init(reference: PlanInteractionHandler, zoomFactor: number, viewSnapDist: number, wallSnapMode: any, objectSnapMode: any, shouldSnap: boolean, drawingType: any): PlanInteractionHandler;
153
160
  getConfiguratorKernel(): ConfiguratorKernelClass;
@@ -164,7 +171,7 @@ export interface PlanInteractionHandler {
164
171
  setObjectRotation(planObject: KernelObject, angleInRad: number): void;
165
172
  addPlanObjects(list: KernelObjectPtrList, findFreeSpaceInPlan: boolean): PlanObject[];
166
173
  addPlanObjectFromItem(object: KernelObject, position: KernelVector3, type: number, findFreeSpaceInPlan: boolean): PlanObject;
167
- addOrUpdateExternalPlanObjects(serialzedConfiguration: string | string[], position: KernelVector3, rotationInRad: number, findFreeSpaceInPlan: boolean, applyGlobalChildMode: boolean, isVisible: boolean, verifyArrangement: boolean): PlanObject[];
174
+ addOrUpdateExternalPlanObjects(serialzedConfiguration: string | string[], position: KernelVector3, rotationInRad: number, updateConfiguration: ExternalObjectLoadConfiguration, mergedGroupIds: string | string[]): PlanObject[];
168
175
  catalogItemLoaded(catalogItem: KernelCatalogItem): void;
169
176
  removeElement(planObject: KernelObject): void;
170
177
  removeObjectWithId(objectId: string): void;
@@ -14,7 +14,6 @@ export default class CameraControlFirstPerson extends CameraControl {
14
14
  minPolarAngle: number;
15
15
  maxPolarAngle: number;
16
16
  constructor(creator: string, inputManager: InputManager, initialCameraParameters?: CameraParameter, camera?: PerspectiveCamera);
17
- setUp(): void;
18
17
  private _gamepadConnected;
19
18
  private _gamepadDisconnected;
20
19
  private startButtonPressListener;
@@ -28,7 +28,7 @@ export type ID_TYPE = 'rml_id' | 'tc_id' | 'rml_serialized' | 'tc_serialized';
28
28
  export interface RoomlePlannerCallback {
29
29
  switchToConfigurator: () => Promise<Configurator>;
30
30
  switchToViewer: () => Promise<GlbViewer>;
31
- cancelSelection: (reason: CancelSelectionReasons) => void;
31
+ cancelSelection: () => void;
32
32
  deleteSelection: () => void;
33
33
  rotateSelection: (rotateBy: number) => void;
34
34
  }
@@ -382,7 +382,7 @@ export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlann
382
382
  loadExternalObjectGroup(groupData: object | string | string[], findFreeSpaceInPlan: boolean, verifyArrangement?: boolean, mergedGroups?: string[]): Promise<void>;
383
383
  private _loadExternalObjectGroup;
384
384
  private _createSerializedGroupCollection;
385
- renderImagesOfExternalObjectGroup(groups: object): Promise<{
385
+ renderImagesOfExternalObjectGroup(groupsJson: string | object): Promise<{
386
386
  [key: string]: string;
387
387
  }>;
388
388
  removeExternalObjectGroup(groupId: string, wasMerged?: boolean): Promise<void>;
@@ -3,5 +3,5 @@ import type { PlanObjectPosition } from '../../../typings/planner';
3
3
  import type { Camera } from 'three';
4
4
  import type PlanElementViewModel from '../../../common-core/src/view-model/plan-element-view-model';
5
5
  export declare const createTransferableObjectPosition: (planViewModel: PlanObjectViewModel | PlanElementViewModel, camera: Camera, clientWidth: number, clientHeight: number) => PlanObjectPosition;
6
- export type CallbackObjectType = 'static' | 'configuration' | 'wall' | 'measure' | 'door' | 'floor' | 'window' | 'unknown' | 'external-configuration';
6
+ export type CallbackObjectType = 'static' | 'configuration' | 'wall' | 'measure' | 'door' | 'floor' | 'window' | 'unknown';
7
7
  export declare const getCallbackObjectType: (planElementViewModel: PlanElementViewModel) => CallbackObjectType;
@@ -111,6 +111,7 @@ export interface WallPlanObject extends PlanObject {
111
111
  getLength(preferredSide: WallSide): number;
112
112
  getFrom(): NodePlanObject;
113
113
  getTo(): NodePlanObject;
114
+ getAttachedAttics(): KernelAtticArray;
114
115
  readonly thickness: number;
115
116
  readonly height: number;
116
117
  }
@@ -148,6 +149,12 @@ export declare const CORE_CHILD_ENTITY_MODE: {
148
149
  export interface ChildEntityMode {
149
150
  value: Enumify<typeof CORE_CHILD_ENTITY_MODE>;
150
151
  }
152
+ export interface ExternalObjectLoadConfiguration {
153
+ applyGlobalChildMode: boolean;
154
+ correctArrangement: boolean;
155
+ findFreeSpaceInPlan: boolean;
156
+ isVisible: boolean;
157
+ }
151
158
  export interface PlanInteractionHandler {
152
159
  init(reference: PlanInteractionHandler, zoomFactor: number, viewSnapDist: number, wallSnapMode: any, objectSnapMode: any, shouldSnap: boolean, drawingType: any): PlanInteractionHandler;
153
160
  getConfiguratorKernel(): ConfiguratorKernelClass;
@@ -164,7 +171,7 @@ export interface PlanInteractionHandler {
164
171
  setObjectRotation(planObject: KernelObject, angleInRad: number): void;
165
172
  addPlanObjects(list: KernelObjectPtrList, findFreeSpaceInPlan: boolean): PlanObject[];
166
173
  addPlanObjectFromItem(object: KernelObject, position: KernelVector3, type: number, findFreeSpaceInPlan: boolean): PlanObject;
167
- addOrUpdateExternalPlanObjects(serialzedConfiguration: string | string[], position: KernelVector3, rotationInRad: number, findFreeSpaceInPlan: boolean, applyGlobalChildMode: boolean, isVisible: boolean, verifyArrangement: boolean): PlanObject[];
174
+ addOrUpdateExternalPlanObjects(serialzedConfiguration: string | string[], position: KernelVector3, rotationInRad: number, updateConfiguration: ExternalObjectLoadConfiguration, mergedGroupIds: string | string[]): PlanObject[];
168
175
  catalogItemLoaded(catalogItem: KernelCatalogItem): void;
169
176
  removeElement(planObject: KernelObject): void;
170
177
  removeObjectWithId(objectId: string): void;
@@ -0,0 +1,2 @@
1
+ System.register(["./roomle-dependency-injection-af97621a.nomodule.js","./main-thread-to-worker-cdc86ed6.nomodule.js","./TextGeometry-ca6aef04.nomodule.js"],(function(t){var i,e,s,n,h,o,a,_,d,r,p,m,l,c,x,u,g,w,b,y,T,L,z;return{setters:[function(t){i=t.aX,e=t.H,s=t._,n=t.i,h=t.j,o=t.aY,a=t.ac},function(t){_=t.O,d=t.a,r=t.h,p=t.w,m=t.bo,l=t.B,c=t.z,x=t.Q,u=t.b9,g=t.K,w=t.u,b=t.G,y=t.b,T=t.bJ,L=t.ad},function(t){z=t.T}],execute:function(){const G="component_dimensioning_plane_material",M="component_dimensioning_text_material";class j extends _{constructor(t){super(),this._label="",this._parameters={font:null,size:.1,height:.001,curveSegments:2,bevelEnabled:!0,bevelThickness:.001,bevelSize:.001},this.topDown=!1,this._parameters.font=t,this._position=new d,this._initMaterials(),this._init(),this._update()}_initMaterials(){this._cacheHolder.materialCache.has(G)?this._planeMaterial=this._cacheHolder.materialCache.get(G):(this._planeMaterial=new r({color:16777215,side:p,opacity:.8,transparent:!0}),this._cacheHolder.materialCache.set(G,this._planeMaterial)),this._cacheHolder.materialCache.has(M)?this._textMaterial=this._cacheHolder.materialCache.get(M):(this._textMaterial=new m({color:3618615}),this._cacheHolder.materialCache.set(M,this._textMaterial))}_init(){let t=new l;this._text=new c(t,this._textMaterial),this._text.userData.ignoreComponentRaycast=!0,this._text.name="text with background text "+this._label,this._plane=new c(t,this._planeMaterial),this._plane.userData.ignoreComponentRaycast=!0,this._plane.name="text with background plane "+this._label,this._textGeometry=new z(this._label,this._parameters),this._textGeometry.computeBoundingBox(),this._text.geometry=this._textGeometry,this.add(this._text),this.add(this._plane)}update(t,i,e){this._position.copy(t),this._cameraPosition=e,this._label=i;const s=this.getWorldPosition(new d),n=this._cameraPosition.distanceTo(s),h=Math.max(.01,n/150),o=Math.max(5e-4,n/5e3);this._parameters.bevelThickness=o,this._parameters.bevelSize=o,this._parameters.size=h,this._textGeometry=new z(this._label,this._parameters),this._textGeometry.computeBoundingBox(),this._text.geometry=this._textGeometry,this._update()}_update(){if(this.topDown){let t=new x;t.setFromAxisAngle(new d(-1,0,0),Math.PI/2),this._updateText(this._textGeometry,t,new d)}else if(this._updateText(this._textGeometry,new x,new d),this._cameraPosition){const t=this.getWorldPosition(new d),e=i(Math.atan2(this._cameraPosition.x-t.x,this._cameraPosition.z-t.z)-this.parent.rotation.y);this._text.rotation.y=e,this._plane.rotation.y=e}}_updateText(t,i,e){let s=new d;s.copy(this._position),e.x*=this._getXSign(),s.add(e);let n=t.boundingBox.getSize(new d);t.center(),this._text.position.copy(s),i&&this._text.quaternion.copy(i);let h=new u(n.x+.02,n.y+.02,32);h.center(),this._plane.geometry=h,this._plane.position.copy(s),i&&this._plane.quaternion.copy(i)}_getXSign(){return!this._cameraPosition||this._cameraPosition.x>=0?1:-1}dispose(){e(this)}}s([n],j.prototype,"_cacheHolder",void 0);class D{constructor(t){this._objectRotation=0,this._cameraPosition=new d,this._topDimensions=!1,this._initialized=new h,this._enabled=!1,this._dimensionsVisible=!1,this._dimensionLineGroup=new g,this._dimensionTextGroup=new _,this._creator_=t,this._lineMaterial=new w({color:3618615,linewidth:2});let i=new l;this._widthLine=new b(i,this._lineMaterial),this._widthLine.userData.ignoreComponentRaycast=!0,this._widthLine.name="dimension width line",this._dimensionLineGroup.add(this._widthLine),this._heightLine=new b(i,this._lineMaterial),this._heightLine.userData.ignoreComponentRaycast=!0,this._heightLine.name="dimension height line",this._dimensionLineGroup.add(this._heightLine),this._depthLine=new b(i,this._lineMaterial),this._depthLine.userData.ignoreComponentRaycast=!0,this._depthLine.name="dimension depth line",this._dimensionLineGroup.add(this._depthLine),this._planeMaterial=new r({color:16777215,side:p,opacity:.8,transparent:!0}),o.loadFont("static/lato_regular_sub-9dd2262895ccc1a9.json").then(t=>{this._font=t,this._loaded()})}_loaded(){this.update(!1),this.addToObject(this._object),this.addToUiScene(this._uiScene),this._initialized.resolve()}_performUpdate(t){this._enabled&&(this._dimensions||t)&&this._font&&(this._updateHeight(),this._updateWidth(),this._updateDepth())}_updateWidth(){let t=new l,i=this._getWidthEdge(),e=[i.start.x,i.start.y,i.start.z,i.end.x,i.end.y,i.end.z];t.setAttribute("position",new y(new Float32Array(e),3)),this._widthLine.geometry.dispose(),this._widthLine.geometry=t;let s=i.getCenter(new d);this._widthText||(this._widthText=new j(this._font),this._dimensionTextGroup.add(this._widthText)),this._widthText.topDown=this._topDimensions;const n=this._unitFormatter.formatMMValueToUnitString(1e3*this._dimensions.x);this._widthText.update(s,n,this._cameraPosition)}_updateHeight(){let t=new l,i=this._getHeightEdge(),e=[i.start.x,i.start.y,i.start.z,i.end.x,i.end.y,i.end.z];t.setAttribute("position",new y(new Float32Array(e),3)),this._heightLine.geometry.dispose(),this._heightLine.geometry=t;let s=i.getCenter(new d);this._heightText||(this._heightText=new j(this._font),this._dimensionTextGroup.add(this._heightText)),this._heightText.topDown=this._topDimensions;const n=this._unitFormatter.formatMMValueToUnitString(1e3*this._dimensions.y);this._heightText.update(s,n,this._cameraPosition)}_updateDepth(){let t=new l,i=this._getDepthEdge(),e=[i.start.x,i.start.y,i.start.z,i.end.x,i.end.y,i.end.z];t.setAttribute("position",new y(new Float32Array(e),3)),this._depthLine.geometry.dispose(),this._depthLine.geometry=t;let s=i.getCenter(new d);this._depthText||(this._depthText=new j(this._font),this._dimensionTextGroup.add(this._depthText)),this._depthText.topDown=this._topDimensions;const n=this._unitFormatter.formatMMValueToUnitString(-1e3*this._dimensions.z);this._depthText.update(s,n,this._cameraPosition)}updateSize(t){this._origin=a(t.origin),this._dimensionLineGroup.position.x=this._origin.x-this._object.position.x,this._dimensionLineGroup.position.y=this._origin.y-this._object.position.y,this._dimensionLineGroup.position.z=this._origin.z-this._object.position.z,this._dimensions=a(t.size);const i=this._dimensionLineGroup.localToWorld(new d);this._dimensionTextGroup.position.copy(i),this.update()}update(t=!1){this._enabled&&!this._dimensionsVisible&&(this._dimensionsVisible=!0,this._visibilityChangedCallback()),this._performUpdate(t)}addToObject(t){this._widthText&&this._widthLine&&this._heightText&&this._heightLine&&this._heightText&&this._heightLine&&t.add(this._dimensionLineGroup)}removeFromObject(t){t.remove(this._dimensionLineGroup),this.update()}addToUiScene(t){if(!(this._widthText&&this._heightText&&this._depthText&&this._object))return;const i=this._dimensionLineGroup.localToWorld(new d);this._dimensionTextGroup.position.copy(i),this._dimensionTextGroup.rotation.y=this._objectRotation,t.add(this._dimensionTextGroup),this.update()}removeFromUiScene(t){t.remove(this._dimensionTextGroup),this.update()}_getWidthEdge(){const t=this._getRotation();return t>Math.PI/2||t<-Math.PI/2?new T(new d(-.05,0,this._dimensions.z-.05),new d(this._dimensions.x+.05,0,this._dimensions.z-.05)):new T(new d(-.05,0,.05),new d(this._dimensions.x+.05,0,.05))}_getDepthEdge(){return this._getRotation()>0?new T(new d(.05+this._dimensions.x,0,.05),new d(.05+this._dimensions.x,0,this._dimensions.z-.05)):new T(new d(-.05,0,.05),new d(-.05,0,this._dimensions.z-.05))}_getHeightEdge(){const t=this._getRotation();return t>0&&t<Math.PI/2?new T(new d(-.05,0,.05),new d(-.05,this._dimensions.y+.05,.05)):t>Math.PI/2?new T(new d(-.05,0,this._dimensions.z-.05),new d(-.05,this._dimensions.y+.05,this._dimensions.z-.05)):t<-Math.PI/2?new T(new d(.05+this._dimensions.x,0,this._dimensions.z-.05),new d(.05+this._dimensions.x,this._dimensions.y+.05,this._dimensions.z-.05)):new T(new d(.05+this._dimensions.x,0,.05),new d(.05+this._dimensions.x,this._dimensions.y+.05,.05))}onDimensionsVisibilityChanged(t){this._onChange=t}enableTopDimensions(){this._topDimensions=!0,this.enableDimensions(),this._heightLine.visible=!1,this._heightText.visible=!1,this.update(!0)}disableTopDimensions(){this._topDimensions=!1,this._heightLine.visible=!0,this._heightText.visible=!0,this.disableDimensions()}enableDimensions(){this._enabled=!0,this.update(!0),this.addToObject(this._object),this.addToUiScene(this._uiScene)}disableDimensions(){this._enabled=!1,this._dimensionsVisible&&(this._dimensionsVisible=!1,this._visibilityChangedCallback()),this.removeFromUiScene(this._uiScene),this.removeFromObject(this._object)}_visibilityChangedCallback(){this._onChange&&this._onChange(this._dimensionsVisible)}_clear(){this._lineMaterial.dispose(),this._planeMaterial.dispose(),this._widthLine.geometry.dispose(),this._heightLine.geometry.dispose(),this._depthLine.geometry.dispose(),this._heightText.dispose(),this._heightText.dispose(),this._depthText.dispose()}getBoundingBox(){const t=new L;return t.expandByObject(this._widthLine),t.expandByObject(this._widthText),t.expandByObject(this._heightLine),t.expandByObject(this._heightText),t.expandByObject(this._depthLine),t.expandByObject(this._depthText),t}setVisibility(t){this._dimensionLineGroup&&this._dimensionTextGroup&&(this._dimensionLineGroup.visible=t,this._dimensionTextGroup.visible=t)}moveCameraStart(t){this.setVisibility(!1),this._cameraPosition=t,this.update()}moveCameraEnd(t){this.setVisibility(!0),this._cameraPosition=t,this.update()}clearScene(t){this._clear()}setObject(t,i=0){this._object=t,this._objectRotation=i}setUiScene(t){this._uiScene=t}isInitialized(){return this._initialized.wait()}areDimensionsEnabled(){return this._enabled}_getRotation(){const t=this._object.getWorldPosition(new d);return i(Math.atan2(this._cameraPosition.x-t.x,this._cameraPosition.z-t.z)-this._objectRotation)}}t("default",D),s([n],D.prototype,"_unitFormatter",void 0)}}}));
2
+ //# sourceMappingURL=dimensioning-helper-3c37b3e2.nomodule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dimensioning-helper-3c37b3e2.nomodule.js","sources":["../../packages/configurator-core/public/fonts/lato_regular_sub.json"],"sourcesContent":["export default \"static/lato_regular_sub-9dd2262895ccc1a9.json\""],"names":[],"mappings":"w4HAAe"}
@@ -0,0 +1,2 @@
1
+ import{aX as normalizeRotation,H as dispose,_ as __decorate,i as inject,j as AsyncGuard,aY as AsyncDependencyLoader,ac as convertToTHREE}from"./roomle-dependency-injection-829ab9cf.js";import{O as Object3D,a as Vector3,h as MeshBasicMaterial,w as DoubleSide,bo as MeshPhongMaterial,B as BufferGeometry,z as Mesh,Q as Quaternion,b9 as PlaneGeometry,K as Group,u as LineBasicMaterial,G as Line,b as BufferAttribute,bJ as Line3,ad as Box3}from"./main-thread-to-worker-b9299c65.js";import{T as TextGeometry}from"./TextGeometry-8993e971.js";const PLANE_MATERIAL="component_dimensioning_plane_material",TEXT_MATERIAL="component_dimensioning_text_material";class TextWithBackground extends Object3D{constructor(e){super(),this._label="",this._parameters={font:null,size:.1,height:.001,curveSegments:2,bevelEnabled:!0,bevelThickness:.001,bevelSize:.001},this.topDown=!1,this._parameters.font=e,this._position=new Vector3,this._initMaterials(),this._init(),this._update()}_initMaterials(){this._cacheHolder.materialCache.has(PLANE_MATERIAL)?this._planeMaterial=this._cacheHolder.materialCache.get(PLANE_MATERIAL):(this._planeMaterial=new MeshBasicMaterial({color:16777215,side:DoubleSide,opacity:.8,transparent:!0}),this._cacheHolder.materialCache.set(PLANE_MATERIAL,this._planeMaterial)),this._cacheHolder.materialCache.has(TEXT_MATERIAL)?this._textMaterial=this._cacheHolder.materialCache.get(TEXT_MATERIAL):(this._textMaterial=new MeshPhongMaterial({color:3618615}),this._cacheHolder.materialCache.set(TEXT_MATERIAL,this._textMaterial))}_init(){let e=new BufferGeometry;this._text=new Mesh(e,this._textMaterial),this._text.userData.ignoreComponentRaycast=!0,this._text.name="text with background text "+this._label,this._plane=new Mesh(e,this._planeMaterial),this._plane.userData.ignoreComponentRaycast=!0,this._plane.name="text with background plane "+this._label,this._textGeometry=new TextGeometry(this._label,this._parameters),this._textGeometry.computeBoundingBox(),this._text.geometry=this._textGeometry,this.add(this._text),this.add(this._plane)}update(e,t,i){this._position.copy(e),this._cameraPosition=i,this._label=t;const s=this.getWorldPosition(new Vector3),n=this._cameraPosition.distanceTo(s),o=Math.max(.01,n/150),h=Math.max(5e-4,n/5e3);this._parameters.bevelThickness=h,this._parameters.bevelSize=h,this._parameters.size=o,this._textGeometry=new TextGeometry(this._label,this._parameters),this._textGeometry.computeBoundingBox(),this._text.geometry=this._textGeometry,this._update()}_update(){if(this.topDown){let e=new Quaternion;e.setFromAxisAngle(new Vector3(-1,0,0),Math.PI/2),this._updateText(this._textGeometry,e,new Vector3)}else if(this._updateText(this._textGeometry,new Quaternion,new Vector3),this._cameraPosition){const e=this.getWorldPosition(new Vector3),t=normalizeRotation(Math.atan2(this._cameraPosition.x-e.x,this._cameraPosition.z-e.z)-this.parent.rotation.y);this._text.rotation.y=t,this._plane.rotation.y=t}}_updateText(e,t,i){let s=new Vector3;s.copy(this._position),i.x*=this._getXSign(),s.add(i);let n=e.boundingBox.getSize(new Vector3);e.center(),this._text.position.copy(s),t&&this._text.quaternion.copy(t);let o=new PlaneGeometry(n.x+.02,n.y+.02,32);o.center(),this._plane.geometry=o,this._plane.position.copy(s),t&&this._plane.quaternion.copy(t)}_getXSign(){return!this._cameraPosition||this._cameraPosition.x>=0?1:-1}dispose(){dispose(this)}}__decorate([inject],TextWithBackground.prototype,"_cacheHolder",void 0);class DimensioningHelper{constructor(e){this._objectRotation=0,this._cameraPosition=new Vector3,this._topDimensions=!1,this._initialized=new AsyncGuard,this._enabled=!1,this._dimensionsVisible=!1,this._dimensionLineGroup=new Group,this._dimensionTextGroup=new Object3D,this._creator_=e,this._lineMaterial=new LineBasicMaterial({color:3618615,linewidth:2});let t=new BufferGeometry;this._widthLine=new Line(t,this._lineMaterial),this._widthLine.userData.ignoreComponentRaycast=!0,this._widthLine.name="dimension width line",this._dimensionLineGroup.add(this._widthLine),this._heightLine=new Line(t,this._lineMaterial),this._heightLine.userData.ignoreComponentRaycast=!0,this._heightLine.name="dimension height line",this._dimensionLineGroup.add(this._heightLine),this._depthLine=new Line(t,this._lineMaterial),this._depthLine.userData.ignoreComponentRaycast=!0,this._depthLine.name="dimension depth line",this._dimensionLineGroup.add(this._depthLine),this._planeMaterial=new MeshBasicMaterial({color:16777215,side:DoubleSide,opacity:.8,transparent:!0}),AsyncDependencyLoader.loadFont("static/lato_regular_sub-9dd2262895ccc1a9.json").then(e=>{this._font=e,this._loaded()})}_loaded(){this.update(!1),this.addToObject(this._object),this.addToUiScene(this._uiScene),this._initialized.resolve()}_performUpdate(e){this._enabled&&(this._dimensions||e)&&this._font&&(this._updateHeight(),this._updateWidth(),this._updateDepth())}_updateWidth(){let e=new BufferGeometry,t=this._getWidthEdge(),i=[t.start.x,t.start.y,t.start.z,t.end.x,t.end.y,t.end.z];e.setAttribute("position",new BufferAttribute(new Float32Array(i),3)),this._widthLine.geometry.dispose(),this._widthLine.geometry=e;let s=t.getCenter(new Vector3);this._widthText||(this._widthText=new TextWithBackground(this._font),this._dimensionTextGroup.add(this._widthText)),this._widthText.topDown=this._topDimensions;const n=this._unitFormatter.formatMMValueToUnitString(1e3*this._dimensions.x);this._widthText.update(s,n,this._cameraPosition)}_updateHeight(){let e=new BufferGeometry,t=this._getHeightEdge(),i=[t.start.x,t.start.y,t.start.z,t.end.x,t.end.y,t.end.z];e.setAttribute("position",new BufferAttribute(new Float32Array(i),3)),this._heightLine.geometry.dispose(),this._heightLine.geometry=e;let s=t.getCenter(new Vector3);this._heightText||(this._heightText=new TextWithBackground(this._font),this._dimensionTextGroup.add(this._heightText)),this._heightText.topDown=this._topDimensions;const n=this._unitFormatter.formatMMValueToUnitString(1e3*this._dimensions.y);this._heightText.update(s,n,this._cameraPosition)}_updateDepth(){let e=new BufferGeometry,t=this._getDepthEdge(),i=[t.start.x,t.start.y,t.start.z,t.end.x,t.end.y,t.end.z];e.setAttribute("position",new BufferAttribute(new Float32Array(i),3)),this._depthLine.geometry.dispose(),this._depthLine.geometry=e;let s=t.getCenter(new Vector3);this._depthText||(this._depthText=new TextWithBackground(this._font),this._dimensionTextGroup.add(this._depthText)),this._depthText.topDown=this._topDimensions;const n=this._unitFormatter.formatMMValueToUnitString(-1e3*this._dimensions.z);this._depthText.update(s,n,this._cameraPosition)}updateSize(e){this._origin=convertToTHREE(e.origin),this._dimensionLineGroup.position.x=this._origin.x-this._object.position.x,this._dimensionLineGroup.position.y=this._origin.y-this._object.position.y,this._dimensionLineGroup.position.z=this._origin.z-this._object.position.z,this._dimensions=convertToTHREE(e.size);const t=this._dimensionLineGroup.localToWorld(new Vector3);this._dimensionTextGroup.position.copy(t),this.update()}update(e=!1){this._enabled&&!this._dimensionsVisible&&(this._dimensionsVisible=!0,this._visibilityChangedCallback()),this._performUpdate(e)}addToObject(e){this._widthText&&this._widthLine&&this._heightText&&this._heightLine&&this._heightText&&this._heightLine&&e.add(this._dimensionLineGroup)}removeFromObject(e){e.remove(this._dimensionLineGroup),this.update()}addToUiScene(e){if(!(this._widthText&&this._heightText&&this._depthText&&this._object))return;const t=this._dimensionLineGroup.localToWorld(new Vector3);this._dimensionTextGroup.position.copy(t),this._dimensionTextGroup.rotation.y=this._objectRotation,e.add(this._dimensionTextGroup),this.update()}removeFromUiScene(e){e.remove(this._dimensionTextGroup),this.update()}_getWidthEdge(){const e=this._getRotation();return e>Math.PI/2||e<-Math.PI/2?new Line3(new Vector3(-.05,0,this._dimensions.z-.05),new Vector3(this._dimensions.x+.05,0,this._dimensions.z-.05)):new Line3(new Vector3(-.05,0,.05),new Vector3(this._dimensions.x+.05,0,.05))}_getDepthEdge(){return this._getRotation()>0?new Line3(new Vector3(.05+this._dimensions.x,0,.05),new Vector3(.05+this._dimensions.x,0,this._dimensions.z-.05)):new Line3(new Vector3(-.05,0,.05),new Vector3(-.05,0,this._dimensions.z-.05))}_getHeightEdge(){const e=this._getRotation();return e>0&&e<Math.PI/2?new Line3(new Vector3(-.05,0,.05),new Vector3(-.05,this._dimensions.y+.05,.05)):e>Math.PI/2?new Line3(new Vector3(-.05,0,this._dimensions.z-.05),new Vector3(-.05,this._dimensions.y+.05,this._dimensions.z-.05)):e<-Math.PI/2?new Line3(new Vector3(.05+this._dimensions.x,0,this._dimensions.z-.05),new Vector3(.05+this._dimensions.x,this._dimensions.y+.05,this._dimensions.z-.05)):new Line3(new Vector3(.05+this._dimensions.x,0,.05),new Vector3(.05+this._dimensions.x,this._dimensions.y+.05,.05))}onDimensionsVisibilityChanged(e){this._onChange=e}enableTopDimensions(){this._topDimensions=!0,this.enableDimensions(),this._heightLine.visible=!1,this._heightText.visible=!1,this.update(!0)}disableTopDimensions(){this._topDimensions=!1,this._heightLine.visible=!0,this._heightText.visible=!0,this.disableDimensions()}enableDimensions(){this._enabled=!0,this.update(!0),this.addToObject(this._object),this.addToUiScene(this._uiScene)}disableDimensions(){this._enabled=!1,this._dimensionsVisible&&(this._dimensionsVisible=!1,this._visibilityChangedCallback()),this.removeFromUiScene(this._uiScene),this.removeFromObject(this._object)}_visibilityChangedCallback(){this._onChange&&this._onChange(this._dimensionsVisible)}_clear(){this._lineMaterial.dispose(),this._planeMaterial.dispose(),this._widthLine.geometry.dispose(),this._heightLine.geometry.dispose(),this._depthLine.geometry.dispose(),this._heightText.dispose(),this._heightText.dispose(),this._depthText.dispose()}getBoundingBox(){const e=new Box3;return e.expandByObject(this._widthLine),e.expandByObject(this._widthText),e.expandByObject(this._heightLine),e.expandByObject(this._heightText),e.expandByObject(this._depthLine),e.expandByObject(this._depthText),e}setVisibility(e){this._dimensionLineGroup&&this._dimensionTextGroup&&(this._dimensionLineGroup.visible=e,this._dimensionTextGroup.visible=e)}moveCameraStart(e){this.setVisibility(!1),this._cameraPosition=e,this.update()}moveCameraEnd(e){this.setVisibility(!0),this._cameraPosition=e,this.update()}clearScene(e){this._clear()}setObject(e,t=0){this._object=e,this._objectRotation=t}setUiScene(e){this._uiScene=e}isInitialized(){return this._initialized.wait()}areDimensionsEnabled(){return this._enabled}_getRotation(){const e=this._object.getWorldPosition(new Vector3);return normalizeRotation(Math.atan2(this._cameraPosition.x-e.x,this._cameraPosition.z-e.z)-this._objectRotation)}}__decorate([inject],DimensioningHelper.prototype,"_unitFormatter",void 0);export{DimensioningHelper as default};
2
+ //# sourceMappingURL=dimensioning-helper-6c6305a0.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dimensioning-helper-95e81c56.js","sources":["../../packages/configurator-core/public/fonts/lato_regular_sub.json"],"sourcesContent":["export default \"static/lato_regular_sub-9dd2262895ccc1a9.json\""],"names":[],"mappings":"u7IAAe"}
1
+ {"version":3,"file":"dimensioning-helper-6c6305a0.js","sources":["../../packages/configurator-core/public/fonts/lato_regular_sub.json"],"sourcesContent":["export default \"static/lato_regular_sub-9dd2262895ccc1a9.json\""],"names":[],"mappings":"w7IAAe"}
@@ -1,2 +1,2 @@
1
- System.register(["./camera-behaviour-f7b35293.nomodule.js"],(function(e){var a;return{setters:[function(e){a=e.b}],execute:function(){e("G",class extends a{get cameraControl(){return this._cameraControl}async updateCameraOnItemLoaded(e){await this.cameraControl.updateAndReset(e,!0)}async externalApiMoveCamera(e){await this.cameraControl.moveCamera(e),this._onCameraChanged()}})}}}));
2
- //# sourceMappingURL=glb-viewer-camera-behaviour-1315a724.nomodule.js.map
1
+ System.register(["./camera-behaviour-243f6fbc.nomodule.js"],(function(e){var a;return{setters:[function(e){a=e.b}],execute:function(){e("G",class extends a{get cameraControl(){return this._cameraControl}async updateCameraOnItemLoaded(e){await this.cameraControl.updateAndReset(e,!0)}async externalApiMoveCamera(e){await this.cameraControl.moveCamera(e),this._onCameraChanged()}})}}}));
2
+ //# sourceMappingURL=glb-viewer-camera-behaviour-2e9e0e0f.nomodule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glb-viewer-camera-behaviour-2e9e0e0f.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{b as CameraBehaviour}from"./camera-behaviour-29ddc973.js";class GlbViewerCameraBehaviour extends CameraBehaviour{get cameraControl(){return this._cameraControl}async updateCameraOnItemLoaded(a){await this.cameraControl.updateAndReset(a,!0)}async externalApiMoveCamera(a){await this.cameraControl.moveCamera(a),this._onCameraChanged()}}export{GlbViewerCameraBehaviour as G};
2
- //# sourceMappingURL=glb-viewer-camera-behaviour-bb03c34a.js.map
1
+ import{b as CameraBehaviour}from"./camera-behaviour-50316a4f.js";class GlbViewerCameraBehaviour extends CameraBehaviour{get cameraControl(){return this._cameraControl}async updateCameraOnItemLoaded(a){await this.cameraControl.updateAndReset(a,!0)}async externalApiMoveCamera(a){await this.cameraControl.moveCamera(a),this._onCameraChanged()}}export{GlbViewerCameraBehaviour as G};
2
+ //# sourceMappingURL=glb-viewer-camera-behaviour-d8eb7b3f.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glb-viewer-camera-behaviour-d8eb7b3f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{S as ScriptLoader,M as Main}from"./script-loader-c784c2fd.js";import{aN as InputManager,D as DependencyInjectionAssignment,L as Logger,R as RapiAccess,ag as getGUI,_ as __decorate,i as inject,u as CANVAS_ID,x as DynamicLightSettingLoader,y as PREDEFINED_LIGHTSETTING,H as dispose,b as RoomleDependencyInjection}from"./roomle-dependency-injection-829ab9cf.js";import{C as CameraControl3D,L as LightSetting,S as SceneManager,T as TWEEN_FILE_NAME}from"./camera-behaviour-50316a4f.js";import{a as Vector3,ad as Box3,ag as Euler,Q as Quaternion,A as AmbientLight,C as Color,aE as CAMERA_TYPE,aR as getGlbUrl,bw as WebGLRenderer,i as SRGBColorSpace,bk as BasicShadowMap,N as PerspectiveCamera,bD as download}from"./main-thread-to-worker-b9299c65.js";import{D as DefaultLightSetting,J as JS_ZIP_FILE_NAME}from"./jszip.min-83d8dde3.js";import{G as GlbViewerCameraBehaviour}from"./glb-viewer-camera-behaviour-d8eb7b3f.js";import"./query-params-helper-45cc26ae.js";const INJECTABLES=[new DependencyInjectionAssignment("script-loader",ScriptLoader),new DependencyInjectionAssignment("glb-input-manager",class extends InputManager{},1),new DependencyInjectionAssignment("logger",Logger),new DependencyInjectionAssignment("rapi-access",RapiAccess)];class AdjustableCameraControl3D extends CameraControl3D{constructor(){super(...arguments),this.shouldIgnoreStandardBehavior=!1}adjust(e,t,r,a,i){let n=new Vector3(-e.x/2,0,-e.z/2),s=new Vector3(e.x/2,e.y,e.z/2);this._boundingBox=new Box3(n,s);let o=new Euler(-Math.PI/2+a,r,0,"ZYX"),c=(new Quaternion).setFromEuler(o);this._camera.updateProjectionMatrix(),this._camera.quaternion.copy(c),this._camera.position.copy(t)}_update(e){this.shouldIgnoreStandardBehavior?this._saveYawAndPitch():super._update(e)}animateCamera(e){return!!this.shouldIgnoreStandardBehavior||super.animateCamera(e)}}class GLBViewerLightSetting extends LightSetting{constructor(e,t){super(e,t),this._params={ambientLight:{color:"#ffffff"}},this._ambientLight=new AmbientLight(new Color(this._params.ambientLight.color),.5),this.addToScene()}addToScene(){this._scene.add(this._ambientLight)}removeFromScene(){this._scene.remove(this._ambientLight)}reload(){this.removeFromScene(),this.addToScene()}showGUI(){let e=getGUI();if(e&&this._ambientLight){let t=e.addFolder("Ambient Light");t.add(this._ambientLight,"visible"),t.add(this._ambientLight,"intensity").min(0).max(5).step(.1),t.addColor(this._params.ambientLight,"color").onChange(e=>{this._ambientLight.color=new Color(e)})}}}class GLBViewerSceneManager extends SceneManager{constructor(e,t){super(e,t,CANVAS_ID.GLB,CAMERA_TYPE.CAMERA_3D),this._itemsCount=0,this._standardSceneBackgroundColor=this._scene.background,this._initData.legacyLight&&(this._renderer.capabilities.maxTextures>8?this.loadDynamicLightSetting(DynamicLightSettingLoader.createDynamicLightSettingSource(null,PREDEFINED_LIGHTSETTING.CAMERA)):(console.warn("this device has a maximum of 8 texture units thus we are using a simpler light setting"),this._lightSetting=new GLBViewerLightSetting(this._scene)))}createCameraControl(e,t){this._changeCameraBehaviour(new GlbViewerCameraBehaviour(new AdjustableCameraControl3D(this._creator_,this._getInputManager(),null),this._cameraBehaviourState))}_getInputManager(){return this._glbInputManager}async loadStaticItem(e,t){const r=await this._rapiAccess.getItem(e);if(r.configuration)return Promise.reject();const a=getGlbUrl(r);return a?this.loadGLB(a,!0,void 0,t):Promise.reject(new Error("GLB Url not detected"))}loadGLB(e,t=!0,r=new Vector3(1,1,1),a){return this.clearScene(),new Promise((i,n)=>{this._loadGLB(e,new Vector3(0,0,0),0,void 0,r,void 0,void 0,a).then(e=>{this._currentGLB=e,this._scene.add(this._currentGLB);let r=(new Box3).setFromObject(this._currentGLB);t&&this.cameraBehaviour.cameraControl instanceof AdjustableCameraControl3D&&this.glbViewerCameraBehaviour.updateCameraOnItemLoaded(r),this._updateBounds(r,null,!0),this._readyForRender(),i()},n)})}preparePerspectiveImage(e,t,r){return new Promise(a=>{var i,n;t||(t=1e3),r||(r=1e3),e||((e=new WebGLRenderer({antialias:!0})).setSize(t,r),e.outputColorSpace=SRGBColorSpace,e.autoClear=!1,e.shadowMap.enabled=!0,e.shadowMap.type=BasicShadowMap);let s=this.cameraBehaviour.cameraControl.getCamera().clone();s instanceof PerspectiveCamera&&(s.aspect=t/r,s.updateProjectionMatrix()),null===(i=this._lightSetting)||void 0===i||i.removeFromScene();let o=new DefaultLightSetting(this._scene);e.render(this._scene,s);let c=e.domElement.toDataURL();e.domElement.toBlob(e=>{a({image:c,width:t,height:r,blob:e})},"image/png"),o.removeFromScene(),null===(n=this._lightSetting)||void 0===n||n.addToScene()})}adjustCamera(e,t,r,a){if(this.cameraBehaviour.cameraControl instanceof AdjustableCameraControl3D){let i=(new Box3).setFromObject(this._scene).getSize(new Vector3);this.cameraBehaviour.cameraControl.adjust(i,e,t,r,a),this._requestRender()}}onStart(e){this._itemsCount=e,this._scene.background=null,this.cameraBehaviour.cameraControl instanceof AdjustableCameraControl3D&&(this.cameraBehaviour.cameraControl.shouldIgnoreStandardBehavior=!0)}onElementFinished(e){this._itemsCount,Math.round(100/this._itemsCount*e)}onFinished(e){this._scene.background=this._standardSceneBackgroundColor,this.cameraBehaviour.cameraControl instanceof AdjustableCameraControl3D&&(this.cameraBehaviour.cameraControl.shouldIgnoreStandardBehavior=!1)}clearScene(){this._currentGLB&&(this._scene.remove(this._currentGLB),dispose(this._currentGLB),this._currentGLB=null),super.clearScene()}enableHD(){super.enableHD()}sceneChanged(){}getBounds(){return this._currentGLB?(new Box3).setFromObject(this._currentGLB):null}get glbViewerCameraBehaviour(){return this.cameraBehaviour}getGeometryBounds(){return null}cameraBehaviourChanged(){super.cameraBehaviourChanged(),this.cameraBehaviour.cameraControl.addEventListener(3,()=>{this._requestRender()},this),this.cameraBehaviour.cameraControl.addEventListener(4,()=>{this._requestRender()},this)}async moveCamera(e){return this.glbViewerCameraBehaviour.externalApiMoveCamera(e)}_readyForRender(){this._globalCallback.onReadyForRender()}}__decorate([inject],GLBViewerSceneManager.prototype,"_glbInputManager",void 0),__decorate([inject],GLBViewerSceneManager.prototype,"_rapiAccess",void 0);class GLBRenderWorker{constructor(e,t,r){this._prefix="https://furniture.roomle.com/3d/glb/",this._listeners=new Set,this._finishedItems=0,this._sceneManager=e,this._renderer=new WebGLRenderer({antialias:!0,alpha:!0}),this._width=t,this._height=r,this._renderer.setSize(t,r),this._renderer.setClearColor(16777215,0),this._renderer.outputColorSpace=SRGBColorSpace}addListener(e){this._listeners.add(e)}removeListener(e){this._listeners.delete(e)}start(e){return this._entries=[],e.forEach(e=>{this._entries.push(this._transform(e))}),this._finishedItems=0,this._listeners.forEach(e=>e.onStart(this._entries.length)),this._zip=new window.JSZip,this._doNextEntry(),new Promise(e=>{this._resolve=e})}_transform(e){return{name:e.path.replace(".glb",".png"),url:this._prefix+e.path,position:new Vector3(e.camera.position.x,e.camera.position.z,-e.camera.position.y),fov:2*e.camera.fieldOfView,yaw:e.camera.rotation.z,pitch:e.camera.rotation.x}}_doNextEntry(){0===this._entries.length?(this._listeners.forEach(e=>e.onFinished(this._zip)),this._resolve(this._zip)):this._processEntry(this._entries[0])}_processEntry(e){this._sceneManager.loadGLB(e.url,!1,void 0).then(()=>{this._sceneManager.adjustCamera(e.position,e.yaw,e.pitch,e.fov),this._sceneManager.preparePerspectiveImage(this._renderer,this._width,this._height).then(t=>{this._entryFinished(e,t)})})}_entryFinished(e,t){let r=this._entries.indexOf(e);r>-1&&this._entries.splice(r,1),this._finishedItems++,this._listeners.forEach(e=>e.onElementFinished(this._finishedItems)),this._zip.file(e.name,t.blob),this._doNextEntry()}}class RoomleGLBViewer{constructor(e){this._currentIdOrUrl=null,this._creator_=e}setCameraOffset(e){this._sceneManager.setCameraOffset(e)}getCameraOffset(){return this._sceneManager.getCameraOffset()}init(e,t){return this.setOverrides(t),this._domHelper.setDomElement(e),this._sceneManager?(this._lifeCycleManager.resume(),Promise.resolve()):new Promise(this._initPromiseCallback.bind(this))}_initPromiseCallback(e,t){Promise.all([this._scriptLoader.fetch(TWEEN_FILE_NAME,{id:"tween-js"})]).then(()=>{this._sceneManager=new GLBViewerSceneManager(this._creator_,{left:0,top:1,right:1,bottom:0}),this._sceneManager.enableHD(),e()})}clearScene(){this._sceneManager.clearScene()}loadGLB(e,t=1,r){return this._currentIdOrUrl=e,this._rapiAccess.trackView(e),this._sceneManager.loadGLB(e,!0,new Vector3(t,t,t),r)}loadStaticItem(e,t){return this._currentIdOrUrl=e,this._rapiAccess.trackView(e),this._sceneManager.loadStaticItem(e,t)}getCurrentId(){return this._currentIdOrUrl}loadSceneSetting(e){return this._sceneManager.loadSceneSettings(e)}preparePerspectiveImage(){return this._sceneManager.preparePerspectiveImage()}processRenderList(e,t=320,r=320){let a=JSON.parse(e);this._scriptLoader.fetch(JS_ZIP_FILE_NAME,{id:"jszip-js"}).then(()=>{let e=new GLBRenderWorker(this._sceneManager,t,r);e.addListener(this._sceneManager),e.start(a.items).then(t=>{t.generateAsync({type:"blob"}).then(t=>{download("content.zip",URL.createObjectURL(t)),e.removeListener(this._sceneManager)})})})}setOverrides(e){e&&(this._initData.setOverrides(e),this._globalInitData.setOverrides(e))}updateSize(){this._sceneManager.updateCamera()}getMain(){}resumeTest(e){this._domHelper.setDomElement(e),this._lifeCycleManager.resume()}pauseTest(){this._lifeCycleManager.pause()}showGUI(){this._sceneManager.showGUI()}get callbacks(){return{}}getScene(){return this._sceneManager.getScene()}updateScene(){this._sceneManager.updateScene()}getUnitFormatter(){return this._unitFormatter}getStorage(){return this._idbManager}setEnvironmentMap(e){const{url:t,intensity:r,rotation:a,maxLightSources:i}=e;this._sceneManager.setEnvironmentMap(t,r,a,i)}exportCanvasScreenshot(e){return this._sceneManager.exportCanvasScreenshot(e)}async moveCamera(e){return this._sceneManager.moveCamera(e)}get globalCallbacks(){return this._globalCallback}}__decorate([inject],RoomleGLBViewer.prototype,"_rapiAccess",void 0),__decorate([inject],RoomleGLBViewer.prototype,"_domHelper",void 0),__decorate([inject],RoomleGLBViewer.prototype,"_scriptLoader",void 0),__decorate([inject],RoomleGLBViewer.prototype,"_lifeCycleManager",void 0),__decorate([inject],RoomleGLBViewer.prototype,"_initData",void 0),__decorate([inject],RoomleGLBViewer.prototype,"_globalInitData",void 0),__decorate([inject],RoomleGLBViewer.prototype,"_globalCallback",void 0),__decorate([inject],RoomleGLBViewer.prototype,"_unitFormatter",void 0),__decorate([inject],RoomleGLBViewer.prototype,"_idbManager",void 0);class GlbViewer extends Main{setupGlobals(){}setupDependencies(){RoomleDependencyInjection.setup(INJECTABLES),this.lookup("logger",this._context)}cleanUpGlobals(){throw new Error("Method not implemented.")}cleanUpDependencies(){throw new Error("Method not implemented.")}bootFinished(){this._viewer=new RoomleGLBViewer(this._context),window.RoomleGLBViewer||(window.RoomleGLBViewer=this._viewer)}getApi(){return this._viewer}getContextName(){return"glb-viewer"}}export{GlbViewer};
2
+ //# sourceMappingURL=glb-viewer-dbde5555.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glb-viewer-dbde5555.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ System.register(["./script-loader-2f51ab88.nomodule.js","./roomle-dependency-injection-af97621a.nomodule.js","./camera-behaviour-243f6fbc.nomodule.js","./main-thread-to-worker-cdc86ed6.nomodule.js","./jszip.min-251dc690.nomodule.js","./glb-viewer-camera-behaviour-2e9e0e0f.nomodule.js","./query-params-helper-6eaaca17.nomodule.js"],(function(e){var t,r,i,a,n,s,o,h,c,l,d,m,u,_,p,g,v,w,b,C,f,S,L,B,M,y,I,x,G,E,j,F,O,D;return{setters:[function(e){t=e.S,r=e.M},function(e){i=e.aN,a=e.D,n=e.L,s=e.R,o=e.ag,h=e._,c=e.i,l=e.u,d=e.x,m=e.y,u=e.H,_=e.b},function(e){p=e.C,g=e.L,v=e.S,w=e.T},function(e){b=e.a,C=e.ad,f=e.ag,S=e.Q,L=e.A,B=e.C,M=e.aE,y=e.aR,I=e.bw,x=e.i,G=e.bk,E=e.N,j=e.bD},function(e){F=e.D,O=e.J},function(e){D=e.G},function(){}],execute:function(){const P=[new a("script-loader",t),new a("glb-input-manager",class extends i{},1),new a("logger",n),new a("rapi-access",s)];class k extends p{constructor(){super(...arguments),this.shouldIgnoreStandardBehavior=!1}adjust(e,t,r,i,a){let n=new b(-e.x/2,0,-e.z/2),s=new b(e.x/2,e.y,e.z/2);this._boundingBox=new C(n,s);let o=new f(-Math.PI/2+i,r,0,"ZYX"),h=(new S).setFromEuler(o);this._camera.updateProjectionMatrix(),this._camera.quaternion.copy(h),this._camera.position.copy(t)}_update(e){this.shouldIgnoreStandardBehavior?this._saveYawAndPitch():super._update(e)}animateCamera(e){return!!this.shouldIgnoreStandardBehavior||super.animateCamera(e)}}class R extends g{constructor(e,t){super(e,t),this._params={ambientLight:{color:"#ffffff"}},this._ambientLight=new L(new B(this._params.ambientLight.color),.5),this.addToScene()}addToScene(){this._scene.add(this._ambientLight)}removeFromScene(){this._scene.remove(this._ambientLight)}reload(){this.removeFromScene(),this.addToScene()}showGUI(){let e=o();if(e&&this._ambientLight){let t=e.addFolder("Ambient Light");t.add(this._ambientLight,"visible"),t.add(this._ambientLight,"intensity").min(0).max(5).step(.1),t.addColor(this._params.ambientLight,"color").onChange(e=>{this._ambientLight.color=new B(e)})}}}class z extends v{constructor(e,t){super(e,t,l.GLB,M.CAMERA_3D),this._itemsCount=0,this._standardSceneBackgroundColor=this._scene.background,this._initData.legacyLight&&(this._renderer.capabilities.maxTextures>8?this.loadDynamicLightSetting(d.createDynamicLightSettingSource(null,m.CAMERA)):(console.warn("this device has a maximum of 8 texture units thus we are using a simpler light setting"),this._lightSetting=new R(this._scene)))}createCameraControl(e,t){this._changeCameraBehaviour(new D(new k(this._creator_,this._getInputManager(),null),this._cameraBehaviourState))}_getInputManager(){return this._glbInputManager}async loadStaticItem(e,t){const r=await this._rapiAccess.getItem(e);if(r.configuration)return Promise.reject();const i=y(r);return i?this.loadGLB(i,!0,void 0,t):Promise.reject(new Error("GLB Url not detected"))}loadGLB(e,t=!0,r=new b(1,1,1),i){return this.clearScene(),new Promise((a,n)=>{this._loadGLB(e,new b(0,0,0),0,void 0,r,void 0,void 0,i).then(e=>{this._currentGLB=e,this._scene.add(this._currentGLB);let r=(new C).setFromObject(this._currentGLB);t&&this.cameraBehaviour.cameraControl instanceof k&&this.glbViewerCameraBehaviour.updateCameraOnItemLoaded(r),this._updateBounds(r,null,!0),this._readyForRender(),a()},n)})}preparePerspectiveImage(e,t,r){return new Promise(i=>{var a,n;t||(t=1e3),r||(r=1e3),e||((e=new I({antialias:!0})).setSize(t,r),e.outputColorSpace=x,e.autoClear=!1,e.shadowMap.enabled=!0,e.shadowMap.type=G);let s=this.cameraBehaviour.cameraControl.getCamera().clone();s instanceof E&&(s.aspect=t/r,s.updateProjectionMatrix()),null===(a=this._lightSetting)||void 0===a||a.removeFromScene();let o=new F(this._scene);e.render(this._scene,s);let h=e.domElement.toDataURL();e.domElement.toBlob(e=>{i({image:h,width:t,height:r,blob:e})},"image/png"),o.removeFromScene(),null===(n=this._lightSetting)||void 0===n||n.addToScene()})}adjustCamera(e,t,r,i){if(this.cameraBehaviour.cameraControl instanceof k){let a=(new C).setFromObject(this._scene).getSize(new b);this.cameraBehaviour.cameraControl.adjust(a,e,t,r,i),this._requestRender()}}onStart(e){this._itemsCount=e,this._scene.background=null,this.cameraBehaviour.cameraControl instanceof k&&(this.cameraBehaviour.cameraControl.shouldIgnoreStandardBehavior=!0)}onElementFinished(e){this._itemsCount,Math.round(100/this._itemsCount*e)}onFinished(e){this._scene.background=this._standardSceneBackgroundColor,this.cameraBehaviour.cameraControl instanceof k&&(this.cameraBehaviour.cameraControl.shouldIgnoreStandardBehavior=!1)}clearScene(){this._currentGLB&&(this._scene.remove(this._currentGLB),u(this._currentGLB),this._currentGLB=null),super.clearScene()}enableHD(){super.enableHD()}sceneChanged(){}getBounds(){return this._currentGLB?(new C).setFromObject(this._currentGLB):null}get glbViewerCameraBehaviour(){return this.cameraBehaviour}getGeometryBounds(){return null}cameraBehaviourChanged(){super.cameraBehaviourChanged(),this.cameraBehaviour.cameraControl.addEventListener(3,()=>{this._requestRender()},this),this.cameraBehaviour.cameraControl.addEventListener(4,()=>{this._requestRender()},this)}async moveCamera(e){return this.glbViewerCameraBehaviour.externalApiMoveCamera(e)}_readyForRender(){this._globalCallback.onReadyForRender()}}h([c],z.prototype,"_glbInputManager",void 0),h([c],z.prototype,"_rapiAccess",void 0);class A{constructor(e,t,r){this._prefix="https://furniture.roomle.com/3d/glb/",this._listeners=new Set,this._finishedItems=0,this._sceneManager=e,this._renderer=new I({antialias:!0,alpha:!0}),this._width=t,this._height=r,this._renderer.setSize(t,r),this._renderer.setClearColor(16777215,0),this._renderer.outputColorSpace=x}addListener(e){this._listeners.add(e)}removeListener(e){this._listeners.delete(e)}start(e){return this._entries=[],e.forEach(e=>{this._entries.push(this._transform(e))}),this._finishedItems=0,this._listeners.forEach(e=>e.onStart(this._entries.length)),this._zip=new window.JSZip,this._doNextEntry(),new Promise(e=>{this._resolve=e})}_transform(e){return{name:e.path.replace(".glb",".png"),url:this._prefix+e.path,position:new b(e.camera.position.x,e.camera.position.z,-e.camera.position.y),fov:2*e.camera.fieldOfView,yaw:e.camera.rotation.z,pitch:e.camera.rotation.x}}_doNextEntry(){0===this._entries.length?(this._listeners.forEach(e=>e.onFinished(this._zip)),this._resolve(this._zip)):this._processEntry(this._entries[0])}_processEntry(e){this._sceneManager.loadGLB(e.url,!1,void 0).then(()=>{this._sceneManager.adjustCamera(e.position,e.yaw,e.pitch,e.fov),this._sceneManager.preparePerspectiveImage(this._renderer,this._width,this._height).then(t=>{this._entryFinished(e,t)})})}_entryFinished(e,t){let r=this._entries.indexOf(e);r>-1&&this._entries.splice(r,1),this._finishedItems++,this._listeners.forEach(e=>e.onElementFinished(this._finishedItems)),this._zip.file(e.name,t.blob),this._doNextEntry()}}class U{constructor(e){this._currentIdOrUrl=null,this._creator_=e}setCameraOffset(e){this._sceneManager.setCameraOffset(e)}getCameraOffset(){return this._sceneManager.getCameraOffset()}init(e,t){return this.setOverrides(t),this._domHelper.setDomElement(e),this._sceneManager?(this._lifeCycleManager.resume(),Promise.resolve()):new Promise(this._initPromiseCallback.bind(this))}_initPromiseCallback(e,t){Promise.all([this._scriptLoader.fetch(w,{id:"tween-js"})]).then(()=>{this._sceneManager=new z(this._creator_,{left:0,top:1,right:1,bottom:0}),this._sceneManager.enableHD(),e()})}clearScene(){this._sceneManager.clearScene()}loadGLB(e,t=1,r){return this._currentIdOrUrl=e,this._rapiAccess.trackView(e),this._sceneManager.loadGLB(e,!0,new b(t,t,t),r)}loadStaticItem(e,t){return this._currentIdOrUrl=e,this._rapiAccess.trackView(e),this._sceneManager.loadStaticItem(e,t)}getCurrentId(){return this._currentIdOrUrl}loadSceneSetting(e){return this._sceneManager.loadSceneSettings(e)}preparePerspectiveImage(){return this._sceneManager.preparePerspectiveImage()}processRenderList(e,t=320,r=320){let i=JSON.parse(e);this._scriptLoader.fetch(O,{id:"jszip-js"}).then(()=>{let e=new A(this._sceneManager,t,r);e.addListener(this._sceneManager),e.start(i.items).then(t=>{t.generateAsync({type:"blob"}).then(t=>{j("content.zip",URL.createObjectURL(t)),e.removeListener(this._sceneManager)})})})}setOverrides(e){e&&(this._initData.setOverrides(e),this._globalInitData.setOverrides(e))}updateSize(){this._sceneManager.updateCamera()}getMain(){}resumeTest(e){this._domHelper.setDomElement(e),this._lifeCycleManager.resume()}pauseTest(){this._lifeCycleManager.pause()}showGUI(){this._sceneManager.showGUI()}get callbacks(){return{}}getScene(){return this._sceneManager.getScene()}updateScene(){this._sceneManager.updateScene()}getUnitFormatter(){return this._unitFormatter}getStorage(){return this._idbManager}setEnvironmentMap(e){const{url:t,intensity:r,rotation:i,maxLightSources:a}=e;this._sceneManager.setEnvironmentMap(t,r,i,a)}exportCanvasScreenshot(e){return this._sceneManager.exportCanvasScreenshot(e)}async moveCamera(e){return this._sceneManager.moveCamera(e)}get globalCallbacks(){return this._globalCallback}}h([c],U.prototype,"_rapiAccess",void 0),h([c],U.prototype,"_domHelper",void 0),h([c],U.prototype,"_scriptLoader",void 0),h([c],U.prototype,"_lifeCycleManager",void 0),h([c],U.prototype,"_initData",void 0),h([c],U.prototype,"_globalInitData",void 0),h([c],U.prototype,"_globalCallback",void 0),h([c],U.prototype,"_unitFormatter",void 0),h([c],U.prototype,"_idbManager",void 0),e("GlbViewer",class extends r{setupGlobals(){}setupDependencies(){_.setup(P),this.lookup("logger",this._context)}cleanUpGlobals(){throw new Error("Method not implemented.")}cleanUpDependencies(){throw new Error("Method not implemented.")}bootFinished(){this._viewer=new U(this._context),window.RoomleGLBViewer||(window.RoomleGLBViewer=this._viewer)}getApi(){return this._viewer}getContextName(){return"glb-viewer"}})}}}));
2
+ //# sourceMappingURL=glb-viewer-fe8d7fdb.nomodule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glb-viewer-fe8d7fdb.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{GlbViewer}from"./glb-viewer-dbde5555.js";import"./script-loader-c784c2fd.js";import"./query-params-helper-45cc26ae.js";import"./main-thread-to-worker-b9299c65.js";import"./roomle-dependency-injection-829ab9cf.js";import"./camera-behaviour-50316a4f.js";import"./jszip.min-83d8dde3.js";import"./glb-viewer-camera-behaviour-d8eb7b3f.js";(new GlbViewer).boot();
2
+ //# sourceMappingURL=glb-viewer-main-d76dde68.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glb-viewer-main-d76dde68.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- System.register(["./glb-viewer-136e59be.nomodule.js","./script-loader-cef9cd57.nomodule.js","./query-params-helper-4f855064.nomodule.js","./main-thread-to-worker-7f1cb5ea.nomodule.js","./roomle-dependency-injection-70af035c.nomodule.js","./camera-behaviour-f7b35293.nomodule.js","./default-light-setting-164c6880.nomodule.js","./glb-viewer-camera-behaviour-1315a724.nomodule.js"],(function(){var e;return{setters:[function(n){e=n.GlbViewer},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){(new e).boot()}}}));
1
+ System.register(["./glb-viewer-fe8d7fdb.nomodule.js","./script-loader-2f51ab88.nomodule.js","./query-params-helper-6eaaca17.nomodule.js","./main-thread-to-worker-cdc86ed6.nomodule.js","./roomle-dependency-injection-af97621a.nomodule.js","./camera-behaviour-243f6fbc.nomodule.js","./jszip.min-251dc690.nomodule.js","./glb-viewer-camera-behaviour-2e9e0e0f.nomodule.js"],(function(){var e;return{setters:[function(n){e=n.GlbViewer},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){(new e).boot()}}}));
2
2
  //# sourceMappingURL=glb-viewer-main.nomodule.js.map
@@ -1,2 +1,2 @@
1
- System.register(["./camera-behaviour-f7b35293.nomodule.js","./roomle-dependency-injection-70af035c.nomodule.js","./main-thread-to-worker-7f1cb5ea.nomodule.js"],(function(i){var t,a,e,n,o,s,h;return{setters:[function(i){t=i.L},function(i){a=i.ag},function(i){e=i.D,n=i.C,o=i.V,s=i.a,h=i.A}],execute:function(){i("D",class extends t{constructor(i,t){super(i,t),this._params={ambientLight:{color:"#ffffff"},mainDirLight:{position:{x:-3,y:4,z:4},color:"#ffffff"},secondDirLight:{position:{x:3,y:4,z:3},color:"#ffffff"}},this._mainDirectionalLight=new e(new n(this._params.mainDirLight.color),.8),this._mainDirectionalLight.position.set(this._params.mainDirLight.position.x,this._params.mainDirLight.position.y,this._params.mainDirLight.position.z),this._mainDirectionalLight.layers.set(1),this._mainDirectionalLight.castShadow=!0,this._mainDirectionalLight.shadow.camera.near=.1,this._mainDirectionalLight.shadow.camera.far=100,this._mainDirectionalLight.shadow.mapSize=new o(1024,1024),this._mainDirectionalLight.visible=!0,this._mainDirectionalLight.lookAt(new s(0,0,0)),this._secondDirectionalLight=new e(new n(this._params.secondDirLight.color),.2),this._secondDirectionalLight.position.set(this._params.secondDirLight.position.x,this._params.secondDirLight.position.y,this._params.secondDirLight.position.z),this._secondDirectionalLight.layers.set(1),this._secondDirectionalLight.castShadow=!1,this._secondDirectionalLight.shadow.camera.near=.1,this._secondDirectionalLight.shadow.camera.far=100,this._secondDirectionalLight.shadow.mapSize=new o(1024,1024),this._secondDirectionalLight.visible=!0,this._secondDirectionalLight.lookAt(new s(0,0,0)),this._ambientLight=new h(new n(this._params.ambientLight.color),.5),this._ambientLight.layers.set(1),this.addToScene()}needsBounds(){return!0}updateBounds(i){const t=i.getSize(new s),a=Math.max(Math.max(t.x,t.y),t.z)+1,e=a/2;this._mainDirectionalLight.shadow.camera.top=e,this._mainDirectionalLight.shadow.camera.bottom=-e,this._mainDirectionalLight.shadow.camera.left=-e,this._mainDirectionalLight.shadow.camera.right=e,this._mainDirectionalLight.shadow.camera.near=.01,this._mainDirectionalLight.shadow.camera.far=4*a,this._mainDirectionalLight.shadow.camera.updateProjectionMatrix(),this._secondDirectionalLight.shadow.camera.top=e,this._secondDirectionalLight.shadow.camera.bottom=-e,this._secondDirectionalLight.shadow.camera.left=-e,this._secondDirectionalLight.shadow.camera.right=e,this._secondDirectionalLight.shadow.camera.near=.01,this._secondDirectionalLight.shadow.camera.far=4*a,this._secondDirectionalLight.shadow.camera.updateProjectionMatrix()}addToScene(){this._scene.add(this._mainDirectionalLight),this._scene.add(this._secondDirectionalLight),this._scene.add(this._ambientLight)}removeFromScene(){this._scene.remove(this._mainDirectionalLight),this._scene.remove(this._secondDirectionalLight),this._scene.remove(this._ambientLight)}reload(){this.removeFromScene(),this.addToScene()}showGUI(){let i=a();if(i){if(this._ambientLight){let t=i.addFolder("Ambient Light");t.add(this._ambientLight,"visible"),t.add(this._ambientLight,"intensity").min(0).max(5).step(.1),t.addColor(this._params.ambientLight,"color").onChange(i=>this._ambientLight.color=new n(i))}if(this._mainDirectionalLight){let t=i.addFolder("Main Directional Light");t.add(this._mainDirectionalLight,"visible"),t.add(this._mainDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._mainDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new n(i)),t.add(this._mainDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0))),t.add(this._mainDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0))),t.add(this._mainDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0)))}if(this._secondDirectionalLight){let t=i.addFolder("Second Directional Light");t.add(this._secondDirectionalLight,"visible"),t.add(this._secondDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._secondDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new n(i)),t.add(this._secondDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0))),t.add(this._secondDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0))),t.add(this._secondDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0)))}}}})}}}));
2
- //# sourceMappingURL=default-light-setting-164c6880.nomodule.js.map
1
+ System.register(["./camera-behaviour-243f6fbc.nomodule.js","./roomle-dependency-injection-af97621a.nomodule.js","./main-thread-to-worker-cdc86ed6.nomodule.js"],(function(i){var t,a,e,n,o,s,h;return{setters:[function(i){t=i.L},function(i){a=i.ag},function(i){e=i.D,n=i.C,o=i.V,s=i.a,h=i.A}],execute:function(){i("D",class extends t{constructor(i,t){super(i,t),this._params={ambientLight:{color:"#ffffff"},mainDirLight:{position:{x:-3,y:4,z:4},color:"#ffffff"},secondDirLight:{position:{x:3,y:4,z:3},color:"#ffffff"}},this._mainDirectionalLight=new e(new n(this._params.mainDirLight.color),.8),this._mainDirectionalLight.position.set(this._params.mainDirLight.position.x,this._params.mainDirLight.position.y,this._params.mainDirLight.position.z),this._mainDirectionalLight.layers.set(1),this._mainDirectionalLight.castShadow=!0,this._mainDirectionalLight.shadow.camera.near=.1,this._mainDirectionalLight.shadow.camera.far=100,this._mainDirectionalLight.shadow.mapSize=new o(1024,1024),this._mainDirectionalLight.visible=!0,this._mainDirectionalLight.lookAt(new s(0,0,0)),this._secondDirectionalLight=new e(new n(this._params.secondDirLight.color),.2),this._secondDirectionalLight.position.set(this._params.secondDirLight.position.x,this._params.secondDirLight.position.y,this._params.secondDirLight.position.z),this._secondDirectionalLight.layers.set(1),this._secondDirectionalLight.castShadow=!1,this._secondDirectionalLight.shadow.camera.near=.1,this._secondDirectionalLight.shadow.camera.far=100,this._secondDirectionalLight.shadow.mapSize=new o(1024,1024),this._secondDirectionalLight.visible=!0,this._secondDirectionalLight.lookAt(new s(0,0,0)),this._ambientLight=new h(new n(this._params.ambientLight.color),.5),this._ambientLight.layers.set(1),this.addToScene()}needsBounds(){return!0}updateBounds(i){const t=i.getSize(new s),a=Math.max(Math.max(t.x,t.y),t.z)+1,e=a/2;this._mainDirectionalLight.shadow.camera.top=e,this._mainDirectionalLight.shadow.camera.bottom=-e,this._mainDirectionalLight.shadow.camera.left=-e,this._mainDirectionalLight.shadow.camera.right=e,this._mainDirectionalLight.shadow.camera.near=.01,this._mainDirectionalLight.shadow.camera.far=4*a,this._mainDirectionalLight.shadow.camera.updateProjectionMatrix(),this._secondDirectionalLight.shadow.camera.top=e,this._secondDirectionalLight.shadow.camera.bottom=-e,this._secondDirectionalLight.shadow.camera.left=-e,this._secondDirectionalLight.shadow.camera.right=e,this._secondDirectionalLight.shadow.camera.near=.01,this._secondDirectionalLight.shadow.camera.far=4*a,this._secondDirectionalLight.shadow.camera.updateProjectionMatrix()}addToScene(){this._scene.add(this._mainDirectionalLight),this._scene.add(this._secondDirectionalLight),this._scene.add(this._ambientLight)}removeFromScene(){this._scene.remove(this._mainDirectionalLight),this._scene.remove(this._secondDirectionalLight),this._scene.remove(this._ambientLight)}reload(){this.removeFromScene(),this.addToScene()}showGUI(){let i=a();if(i){if(this._ambientLight){let t=i.addFolder("Ambient Light");t.add(this._ambientLight,"visible"),t.add(this._ambientLight,"intensity").min(0).max(5).step(.1),t.addColor(this._params.ambientLight,"color").onChange(i=>this._ambientLight.color=new n(i))}if(this._mainDirectionalLight){let t=i.addFolder("Main Directional Light");t.add(this._mainDirectionalLight,"visible"),t.add(this._mainDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._mainDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new n(i)),t.add(this._mainDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0))),t.add(this._mainDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0))),t.add(this._mainDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0)))}if(this._secondDirectionalLight){let t=i.addFolder("Second Directional Light");t.add(this._secondDirectionalLight,"visible"),t.add(this._secondDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._secondDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new n(i)),t.add(this._secondDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0))),t.add(this._secondDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0))),t.add(this._secondDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0)))}}}}),i("J","static/jszip.min-c96375d50e72b199.js")}}}));
2
+ //# sourceMappingURL=jszip.min-251dc690.nomodule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jszip.min-251dc690.nomodule.js","sources":["../../node_modules/jszip/dist/jszip.min.js"],"sourcesContent":["export default \"static/jszip.min-c96375d50e72b199.js\""],"names":["exports"],"mappings":"0nJAAeA,EAAA,IAAA"}
@@ -1,2 +1,2 @@
1
- import{L as LightSetting}from"./camera-behaviour-29ddc973.js";import{ag as getGUI}from"./roomle-dependency-injection-9497ccbb.js";import{D as DirectionalLight,C as Color,V as Vector2,a as Vector3,A as AmbientLight}from"./main-thread-to-worker-352ff4b1.js";class DefaultLightSetting extends LightSetting{constructor(i,t){super(i,t),this._params={ambientLight:{color:"#ffffff"},mainDirLight:{position:{x:-3,y:4,z:4},color:"#ffffff"},secondDirLight:{position:{x:3,y:4,z:3},color:"#ffffff"}},this._mainDirectionalLight=new DirectionalLight(new Color(this._params.mainDirLight.color),.8),this._mainDirectionalLight.position.set(this._params.mainDirLight.position.x,this._params.mainDirLight.position.y,this._params.mainDirLight.position.z),this._mainDirectionalLight.layers.set(1),this._mainDirectionalLight.castShadow=!0,this._mainDirectionalLight.shadow.camera.near=.1,this._mainDirectionalLight.shadow.camera.far=100,this._mainDirectionalLight.shadow.mapSize=new Vector2(1024,1024),this._mainDirectionalLight.visible=!0,this._mainDirectionalLight.lookAt(new Vector3(0,0,0)),this._secondDirectionalLight=new DirectionalLight(new Color(this._params.secondDirLight.color),.2),this._secondDirectionalLight.position.set(this._params.secondDirLight.position.x,this._params.secondDirLight.position.y,this._params.secondDirLight.position.z),this._secondDirectionalLight.layers.set(1),this._secondDirectionalLight.castShadow=!1,this._secondDirectionalLight.shadow.camera.near=.1,this._secondDirectionalLight.shadow.camera.far=100,this._secondDirectionalLight.shadow.mapSize=new Vector2(1024,1024),this._secondDirectionalLight.visible=!0,this._secondDirectionalLight.lookAt(new Vector3(0,0,0)),this._ambientLight=new AmbientLight(new Color(this._params.ambientLight.color),.5),this._ambientLight.layers.set(1),this.addToScene()}needsBounds(){return!0}updateBounds(i){const t=i.getSize(new Vector3),a=Math.max(Math.max(t.x,t.y),t.z)+1,o=a/2;this._mainDirectionalLight.shadow.camera.top=o,this._mainDirectionalLight.shadow.camera.bottom=-o,this._mainDirectionalLight.shadow.camera.left=-o,this._mainDirectionalLight.shadow.camera.right=o,this._mainDirectionalLight.shadow.camera.near=.01,this._mainDirectionalLight.shadow.camera.far=4*a,this._mainDirectionalLight.shadow.camera.updateProjectionMatrix(),this._secondDirectionalLight.shadow.camera.top=o,this._secondDirectionalLight.shadow.camera.bottom=-o,this._secondDirectionalLight.shadow.camera.left=-o,this._secondDirectionalLight.shadow.camera.right=o,this._secondDirectionalLight.shadow.camera.near=.01,this._secondDirectionalLight.shadow.camera.far=4*a,this._secondDirectionalLight.shadow.camera.updateProjectionMatrix()}addToScene(){this._scene.add(this._mainDirectionalLight),this._scene.add(this._secondDirectionalLight),this._scene.add(this._ambientLight)}removeFromScene(){this._scene.remove(this._mainDirectionalLight),this._scene.remove(this._secondDirectionalLight),this._scene.remove(this._ambientLight)}reload(){this.removeFromScene(),this.addToScene()}showGUI(){let i=getGUI();if(i){if(this._ambientLight){let t=i.addFolder("Ambient Light");t.add(this._ambientLight,"visible"),t.add(this._ambientLight,"intensity").min(0).max(5).step(.1),t.addColor(this._params.ambientLight,"color").onChange(i=>this._ambientLight.color=new Color(i))}if(this._mainDirectionalLight){let t=i.addFolder("Main Directional Light");t.add(this._mainDirectionalLight,"visible"),t.add(this._mainDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._mainDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new Color(i)),t.add(this._mainDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0)))}if(this._secondDirectionalLight){let t=i.addFolder("Second Directional Light");t.add(this._secondDirectionalLight,"visible"),t.add(this._secondDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._secondDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new Color(i)),t.add(this._secondDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0)))}}}}export{DefaultLightSetting as D};
2
- //# sourceMappingURL=default-light-setting-ba0a8657.js.map
1
+ import{L as LightSetting}from"./camera-behaviour-50316a4f.js";import{ag as getGUI}from"./roomle-dependency-injection-829ab9cf.js";import{D as DirectionalLight,C as Color,V as Vector2,a as Vector3,A as AmbientLight}from"./main-thread-to-worker-b9299c65.js";class DefaultLightSetting extends LightSetting{constructor(i,t){super(i,t),this._params={ambientLight:{color:"#ffffff"},mainDirLight:{position:{x:-3,y:4,z:4},color:"#ffffff"},secondDirLight:{position:{x:3,y:4,z:3},color:"#ffffff"}},this._mainDirectionalLight=new DirectionalLight(new Color(this._params.mainDirLight.color),.8),this._mainDirectionalLight.position.set(this._params.mainDirLight.position.x,this._params.mainDirLight.position.y,this._params.mainDirLight.position.z),this._mainDirectionalLight.layers.set(1),this._mainDirectionalLight.castShadow=!0,this._mainDirectionalLight.shadow.camera.near=.1,this._mainDirectionalLight.shadow.camera.far=100,this._mainDirectionalLight.shadow.mapSize=new Vector2(1024,1024),this._mainDirectionalLight.visible=!0,this._mainDirectionalLight.lookAt(new Vector3(0,0,0)),this._secondDirectionalLight=new DirectionalLight(new Color(this._params.secondDirLight.color),.2),this._secondDirectionalLight.position.set(this._params.secondDirLight.position.x,this._params.secondDirLight.position.y,this._params.secondDirLight.position.z),this._secondDirectionalLight.layers.set(1),this._secondDirectionalLight.castShadow=!1,this._secondDirectionalLight.shadow.camera.near=.1,this._secondDirectionalLight.shadow.camera.far=100,this._secondDirectionalLight.shadow.mapSize=new Vector2(1024,1024),this._secondDirectionalLight.visible=!0,this._secondDirectionalLight.lookAt(new Vector3(0,0,0)),this._ambientLight=new AmbientLight(new Color(this._params.ambientLight.color),.5),this._ambientLight.layers.set(1),this.addToScene()}needsBounds(){return!0}updateBounds(i){const t=i.getSize(new Vector3),a=Math.max(Math.max(t.x,t.y),t.z)+1,o=a/2;this._mainDirectionalLight.shadow.camera.top=o,this._mainDirectionalLight.shadow.camera.bottom=-o,this._mainDirectionalLight.shadow.camera.left=-o,this._mainDirectionalLight.shadow.camera.right=o,this._mainDirectionalLight.shadow.camera.near=.01,this._mainDirectionalLight.shadow.camera.far=4*a,this._mainDirectionalLight.shadow.camera.updateProjectionMatrix(),this._secondDirectionalLight.shadow.camera.top=o,this._secondDirectionalLight.shadow.camera.bottom=-o,this._secondDirectionalLight.shadow.camera.left=-o,this._secondDirectionalLight.shadow.camera.right=o,this._secondDirectionalLight.shadow.camera.near=.01,this._secondDirectionalLight.shadow.camera.far=4*a,this._secondDirectionalLight.shadow.camera.updateProjectionMatrix()}addToScene(){this._scene.add(this._mainDirectionalLight),this._scene.add(this._secondDirectionalLight),this._scene.add(this._ambientLight)}removeFromScene(){this._scene.remove(this._mainDirectionalLight),this._scene.remove(this._secondDirectionalLight),this._scene.remove(this._ambientLight)}reload(){this.removeFromScene(),this.addToScene()}showGUI(){let i=getGUI();if(i){if(this._ambientLight){let t=i.addFolder("Ambient Light");t.add(this._ambientLight,"visible"),t.add(this._ambientLight,"intensity").min(0).max(5).step(.1),t.addColor(this._params.ambientLight,"color").onChange(i=>this._ambientLight.color=new Color(i))}if(this._mainDirectionalLight){let t=i.addFolder("Main Directional Light");t.add(this._mainDirectionalLight,"visible"),t.add(this._mainDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._mainDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new Color(i)),t.add(this._mainDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0)))}if(this._secondDirectionalLight){let t=i.addFolder("Second Directional Light");t.add(this._secondDirectionalLight,"visible"),t.add(this._secondDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._secondDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new Color(i)),t.add(this._secondDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0)))}}}}var JS_ZIP_FILE_NAME="static/jszip.min-c96375d50e72b199.js";export{DefaultLightSetting as D,JS_ZIP_FILE_NAME as J};
2
+ //# sourceMappingURL=jszip.min-83d8dde3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jszip.min-83d8dde3.js","sources":["../../node_modules/jszip/dist/jszip.min.js"],"sourcesContent":["export default \"static/jszip.min-c96375d50e72b199.js\""],"names":["JS_ZIP_FILE_NAME"],"mappings":"ouJAAA,IAAeA,iBAAA"}
@@ -0,0 +1,2 @@
1
+ System.register(["./main-thread-to-worker-88f0947e.legacy.js"],(function(e){var t,i,n,h,o,r;return{setters:[function(e){t=e._,i=e.e,n=e.f,h=e.c2,o=e.h,r=e.c3}],execute:function(){e("T",function(e){t(d,e);var r=i(d);function d(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,d);var o=i.font;if(void 0===o)t=r.call(this);else{var s=o.generateShapes(e,i.size);void 0===i.depth&&void 0!==i.height&&console.warn("THREE.TextGeometry: .height is now depreciated. Please use .depth instead"),i.depth=void 0!==i.depth?i.depth:void 0!==i.height?i.height:50,void 0===i.bevelThickness&&(i.bevelThickness=10),void 0===i.bevelSize&&(i.bevelSize=8),void 0===i.bevelEnabled&&(i.bevelEnabled=!1),t=r.call(this,s,i)}return t.type="TextGeometry",h(t)}return o(d)}(r))}}}));
2
+ //# sourceMappingURL=TextGeometry-e55daee4.legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextGeometry-e55daee4.legacy.js","sources":["../../../node_modules/three/examples/jsm/geometries/TextGeometry.js"],"sourcesContent":["/**\n * Text = 3D Text\n *\n * parameters = {\n * font: <THREE.Font>, // font\n *\n * size: <float>, // size of the text\n * depth: <float>, // thickness to extrude text\n * curveSegments: <int>, // number of points on the curves\n *\n * bevelEnabled: <bool>, // turn on bevel\n * bevelThickness: <float>, // how deep into text bevel goes\n * bevelSize: <float>, // how far from text outline (including bevelOffset) is bevel\n * bevelOffset: <float> // how far from text outline does bevel start\n * }\n */\n\nimport {\n\tExtrudeGeometry\n} from 'three';\n\nclass TextGeometry extends ExtrudeGeometry {\n\n\tconstructor( text, parameters = {} ) {\n\n\t\tconst font = parameters.font;\n\n\t\tif ( font === undefined ) {\n\n\t\t\tsuper(); // generate default extrude geometry\n\n\t\t} else {\n\n\t\t\tconst shapes = font.generateShapes( text, parameters.size );\n\n\t\t\t// translate parameters to ExtrudeGeometry API\n\n\t\t\tif ( parameters.depth === undefined && parameters.height !== undefined ) {\n\n\t\t\t\tconsole.warn( 'THREE.TextGeometry: .height is now depreciated. Please use .depth instead' ); // @deprecated, r163\n\n\t\t\t}\n\n\t\t\tparameters.depth = parameters.depth !== undefined ?\n\t\t\t\tparameters.depth : parameters.height !== undefined ?\n\t\t\t\t\tparameters.height : 50;\n\n\t\t\t// defaults\n\n\t\t\tif ( parameters.bevelThickness === undefined ) parameters.bevelThickness = 10;\n\t\t\tif ( parameters.bevelSize === undefined ) parameters.bevelSize = 8;\n\t\t\tif ( parameters.bevelEnabled === undefined ) parameters.bevelEnabled = false;\n\n\t\t\tsuper( shapes, parameters );\n\n\t\t}\n\n\t\tthis.type = 'TextGeometry';\n\n\t}\n\n}\n\n\nexport { TextGeometry };\n"],"names":["exports","_ExtrudeGeometry","_inherits","TextGeometry","_super","_createSuper","text","_this","parameters","arguments","length","undefined","_classCallCheck","font","call","shapes","generateShapes","size","depth","height","console","warn","bevelThickness","bevelSize","bevelEnabled","type","_possibleConstructorReturn","_createClass","ExtrudeGeometry"],"mappings":"mLAqBkBA,EAAA,aAAAC,GAAAC,EAAAC,EAAAF,GAAA,IAAAG,EAAAC,EAAAF,GAEjB,SAAAA,EAAaG,GAAwB,IAAAC,EAAlBC,EAAUC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,GAAEG,OAAAT,GAEjC,IAAMU,EAAOL,EAAWK,KAExB,QAAcF,IAATE,EAEJN,EAAAH,EAAAU,eAEM,CAEN,IAAMC,EAASF,EAAKG,eAAgBV,EAAME,EAAWS,WAI3BN,IAArBH,EAAWU,YAA6CP,IAAtBH,EAAWW,QAEjDC,QAAQC,KAAM,6EAIfb,EAAWU,WAA6BP,IAArBH,EAAWU,MAC7BV,EAAWU,WAA8BP,IAAtBH,EAAWW,OAC7BX,EAAWW,OAAS,QAIaR,IAA9BH,EAAWc,iBAA+Bd,EAAWc,eAAiB,SAC7CX,IAAzBH,EAAWe,YAA0Bf,EAAWe,UAAY,QAChCZ,IAA5BH,EAAWgB,eAA6BhB,EAAWgB,cAAe,GAEvEjB,EAAAH,EAAAU,KAAOC,KAAAA,EAAQP,GAIW,OAA3BD,EAAKkB,KAAO,eAAeC,EAAAnB,GAE3B,OAAAoB,EAAAxB,IAtCyByB"}
@@ -1,2 +1,2 @@
1
- System.register(["./roomle-dependency-injection-df72d53a.legacy.js","./main-thread-to-worker-6115d235.legacy.js"],(function(e){var n,t,a,s,i;return{setters:[function(e){n=e.a_,t=e._,a=e.i},function(e){s=e.g,i=e.a}],execute:function(){class c extends n{setScene(e){this._scene=e,this._staticItemLoader.loadGLB(s()+"static/banana-bbcc0e46fc0ee694.glb").then(e=>{this._banana=e.scene,this.updateBounds(null)})}updateBounds(e){if(e&&(this._bounds=e),this._bounds){if(this._banana){const e=this._bounds.getSize(new i),n=this._bounds.getCenter(new i).clone();n.x-=e.x/2+.18,n.z+=e.z/2+.05,n.y=0;let t=.1;this._banana.scale.copy(new i(t,t,t)),this._banana.rotation.y=.6,this._banana.position.copy(n)}this._scene.children.includes(this._banana)||this.addToScene()}}clearScene(e,n){super.clearScene(e,n),this.removeFromScene()}addToScene(){this._scene&&this._banana&&this._scene.add(this._banana)}removeFromScene(){this._scene&&this._banana&&this._scene.remove(this._banana)}}e("default",c),t([a],c.prototype,"_staticItemLoader",void 0)}}}));
2
- //# sourceMappingURL=banana-for-scale-91944f90.legacy.js.map
1
+ System.register(["./roomle-dependency-injection-91b31d74.legacy.js","./main-thread-to-worker-88f0947e.legacy.js"],(function(e){var n,t,a,s,i;return{setters:[function(e){n=e.aZ,t=e._,a=e.i},function(e){s=e.g,i=e.a}],execute:function(){class c extends n{setScene(e){this._scene=e,this._staticItemLoader.loadGLB(s()+"static/banana-bbcc0e46fc0ee694.glb").then(e=>{this._banana=e.scene,this.updateBounds(null)})}updateBounds(e){if(e&&(this._bounds=e),this._bounds){if(this._banana){const e=this._bounds.getSize(new i),n=this._bounds.getCenter(new i).clone();n.x-=e.x/2+.18,n.z+=e.z/2+.05,n.y=0;let t=.1;this._banana.scale.copy(new i(t,t,t)),this._banana.rotation.y=.6,this._banana.position.copy(n)}this._scene.children.includes(this._banana)||this.addToScene()}}clearScene(e,n){super.clearScene(e,n),this.removeFromScene()}addToScene(){this._scene&&this._banana&&this._scene.add(this._banana)}removeFromScene(){this._scene&&this._banana&&this._scene.remove(this._banana)}}e("default",c),t([a],c.prototype,"_staticItemLoader",void 0)}}}));
2
+ //# sourceMappingURL=banana-for-scale-46289d2c.legacy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"banana-for-scale-91944f90.legacy.js","sources":["../../../packages/configurator-core/public/geometry/banana.glb"],"sourcesContent":["export default \"static/banana-bbcc0e46fc0ee694.glb\""],"names":[],"mappings":"yTAAe"}
1
+ {"version":3,"file":"banana-for-scale-46289d2c.legacy.js","sources":["../../../packages/configurator-core/public/geometry/banana.glb"],"sourcesContent":["export default \"static/banana-bbcc0e46fc0ee694.glb\""],"names":[],"mappings":"yTAAe"}
@@ -1,2 +1,2 @@
1
- System.register(["./main-thread-to-worker-6115d235.legacy.js","./query-params-helper-28b451be.legacy.js"],(function(){var e,r,t;return{setters:[function(t){e=t.M,r=t.g},function(e){t=e.g}],execute:function(){new class{_addIframe(){const e="website-to-measure";if(document.getElementById(e))return void console.error("Iframe already added! Check how this can happen");const r=t();if(!r.checkUrl)return void console.error("CAN NOT MEASURE WITHOUT A URL, add checkUrl queryParam. To encode call BudgeteerMeasure.encodeUrl(url: string)");let o=this.decodeUrl(r.checkUrl);const i=window.location.origin;if(!o.startsWith(i))return void console.error("CAN ONLY MEASURE SAME ORIGIN PLEASE CHECK",{origin:i,src:o});const n=t(o),a=Object.keys(n).length?"&":"?";n._measureTraffic||(o+=a+"_measureTraffic=true");const s=document.createElement("iframe");s.id=e,s.src=o,document.body.appendChild(s)}_isAlreadyActive(){return navigator.serviceWorker.controller&&-1!==navigator.serviceWorker.controller.scriptURL.indexOf("budgeteer.sw")&&"activated"===navigator.serviceWorker.controller.state}_handleActiveSw(){this._mainThreadToWorker.setEventPoster(navigator.serviceWorker.controller),this._addIframe(),this._alreadyAdded=!0}constructor(){this._inLimbo=!1,this._alreadyAdded=!1,window.addEventListener("beforeunload",()=>this._inLimbo=!0),this._mainThreadToWorker=new e(this,navigator.serviceWorker),this._isAlreadyActive()?this._handleActiveSw():navigator.serviceWorker.register(r()+"static/budgeteer.sw-a4a226d2fc19672e.js",{scope:"../../"}).then(e=>{this._isAlreadyActive()&&this._handleActiveSw()},e=>console.error("Budgeteer registration failed: ",e)),navigator.serviceWorker.addEventListener("controllerchange",()=>this._mainThreadToWorker.setEventPoster(navigator.serviceWorker.controller)),window.BudgeteerMeasure={encodeUrl:this.encodeUrl}}encodeUrl(e){return encodeURIComponent(e)}decodeUrl(e){return decodeURIComponent(e)}onCommand(e){if(!this._inLimbo)switch(e){case 6:this._alreadyAdded||this._addIframe()}}}}}}));
1
+ System.register(["./main-thread-to-worker-88f0947e.legacy.js","./query-params-helper-06b6ab82.legacy.js"],(function(){var e,r,t;return{setters:[function(t){e=t.M,r=t.g},function(e){t=e.g}],execute:function(){new class{_addIframe(){const e="website-to-measure";if(document.getElementById(e))return void console.error("Iframe already added! Check how this can happen");const r=t();if(!r.checkUrl)return void console.error("CAN NOT MEASURE WITHOUT A URL, add checkUrl queryParam. To encode call BudgeteerMeasure.encodeUrl(url: string)");let o=this.decodeUrl(r.checkUrl);const i=window.location.origin;if(!o.startsWith(i))return void console.error("CAN ONLY MEASURE SAME ORIGIN PLEASE CHECK",{origin:i,src:o});const n=t(o),a=Object.keys(n).length?"&":"?";n._measureTraffic||(o+=a+"_measureTraffic=true");const s=document.createElement("iframe");s.id=e,s.src=o,document.body.appendChild(s)}_isAlreadyActive(){return navigator.serviceWorker.controller&&-1!==navigator.serviceWorker.controller.scriptURL.indexOf("budgeteer.sw")&&"activated"===navigator.serviceWorker.controller.state}_handleActiveSw(){this._mainThreadToWorker.setEventPoster(navigator.serviceWorker.controller),this._addIframe(),this._alreadyAdded=!0}constructor(){this._inLimbo=!1,this._alreadyAdded=!1,window.addEventListener("beforeunload",()=>this._inLimbo=!0),this._mainThreadToWorker=new e(this,navigator.serviceWorker),this._isAlreadyActive()?this._handleActiveSw():navigator.serviceWorker.register(r()+"static/budgeteer.sw-a4a226d2fc19672e.js",{scope:"../../"}).then(e=>{this._isAlreadyActive()&&this._handleActiveSw()},e=>console.error("Budgeteer registration failed: ",e)),navigator.serviceWorker.addEventListener("controllerchange",()=>this._mainThreadToWorker.setEventPoster(navigator.serviceWorker.controller)),window.BudgeteerMeasure={encodeUrl:this.encodeUrl}}encodeUrl(e){return encodeURIComponent(e)}decodeUrl(e){return decodeURIComponent(e)}onCommand(e){if(!this._inLimbo)switch(e){case 6:this._alreadyAdded||this._addIframe()}}}}}}));
2
2
  //# sourceMappingURL=budgeteer-measure.legacy.js.map