@roomle/web-sdk 2.94.0-alpha.13 → 2.94.0-alpha.17

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 (221) hide show
  1. package/lib/{banana-for-scale-1597f552.js → banana-for-scale-11b22580.js} +2 -2
  2. package/lib/{banana-for-scale-1597f552.js.map → banana-for-scale-11b22580.js.map} +1 -1
  3. package/lib/{banana-for-scale-68b0559b.nomodule.js → banana-for-scale-35f20384.nomodule.js} +2 -2
  4. package/lib/{banana-for-scale-68b0559b.nomodule.js.map → banana-for-scale-35f20384.nomodule.js.map} +1 -1
  5. package/lib/camera-behaviour-507aa62e.js +2 -0
  6. package/lib/{camera-behaviour-e00e1248.js.map → camera-behaviour-507aa62e.js.map} +1 -1
  7. package/lib/camera-behaviour-8f359476.nomodule.js +2 -0
  8. package/lib/{camera-behaviour-c3053204.nomodule.js.map → camera-behaviour-8f359476.nomodule.js.map} +1 -1
  9. package/lib/{component-dimensioning-61fbbbdb.nomodule.js → component-dimensioning-65a38b71.nomodule.js} +2 -2
  10. package/lib/component-dimensioning-65a38b71.nomodule.js.map +1 -0
  11. package/lib/{component-dimensioning-9e0bd8e2.js → component-dimensioning-9dab7fd9.js} +2 -2
  12. package/lib/component-dimensioning-9dab7fd9.js.map +1 -0
  13. package/lib/{component-raycast-helper-17aefd3b.nomodule.js → component-raycast-helper-4ec48a0b.nomodule.js} +2 -2
  14. package/lib/component-raycast-helper-4ec48a0b.nomodule.js.map +1 -0
  15. package/lib/{component-raycast-helper-d8b48570.js → component-raycast-helper-f571bff9.js} +2 -2
  16. package/lib/component-raycast-helper-f571bff9.js.map +1 -0
  17. package/lib/{configurator-0e7c6d32.nomodule.js → configurator-27baf28f.nomodule.js} +2 -2
  18. package/lib/configurator-27baf28f.nomodule.js.map +1 -0
  19. package/lib/{configurator-9b734516.js → configurator-30a3dce4.js} +2 -2
  20. package/lib/configurator-30a3dce4.js.map +1 -0
  21. package/lib/configurator-main-00bfbf8f.js +2 -0
  22. package/lib/configurator-main-00bfbf8f.js.map +1 -0
  23. package/lib/configurator-main.nomodule.js +1 -1
  24. package/lib/{continuous-drawing-helper-13c73269.nomodule.js → continuous-drawing-helper-4ee649ed.nomodule.js} +2 -2
  25. package/lib/continuous-drawing-helper-4ee649ed.nomodule.js.map +1 -0
  26. package/lib/{continuous-drawing-helper-d1018319.js → continuous-drawing-helper-6b4bba48.js} +2 -2
  27. package/lib/continuous-drawing-helper-6b4bba48.js.map +1 -0
  28. package/lib/{default-light-setting-a83f6e0e.nomodule.js → default-light-setting-0d5875a7.nomodule.js} +2 -2
  29. package/lib/default-light-setting-0d5875a7.nomodule.js.map +1 -0
  30. package/lib/{default-light-setting-d4f45799.js → default-light-setting-4307fa21.js} +2 -2
  31. package/lib/default-light-setting-4307fa21.js.map +1 -0
  32. package/lib/definitions/common-core/src/cameracontrol/camera-control.d.ts +1 -0
  33. package/lib/definitions/packages/common-core/src/cameracontrol/camera-control.d.ts +1 -0
  34. package/lib/definitions/packages/planner-core/src/camera-control/camera-control-first-person.d.ts +1 -0
  35. package/lib/definitions/packages/planner-core/src/external-object-api-callbacks.d.ts +2 -1
  36. package/lib/definitions/packages/planner-core/src/external-object-api.d.ts +6 -1
  37. package/lib/definitions/packages/planner-core/src/roomle-planner-ui-callback.d.ts +1 -1
  38. package/lib/definitions/packages/planner-core/src/roomle-planner.d.ts +2 -1
  39. package/lib/definitions/packages/planner-core/src/services/planner-kernel-access.d.ts +2 -2
  40. package/lib/definitions/packages/typings/planner.d.ts +10 -2
  41. package/lib/definitions/planner-core/src/camera-control/camera-control-first-person.d.ts +1 -0
  42. package/lib/definitions/planner-core/src/external-object-api-callbacks.d.ts +2 -1
  43. package/lib/definitions/planner-core/src/external-object-api.d.ts +6 -1
  44. package/lib/definitions/planner-core/src/roomle-planner-ui-callback.d.ts +1 -1
  45. package/lib/definitions/planner-core/src/roomle-planner.d.ts +2 -1
  46. package/lib/definitions/planner-core/src/services/planner-kernel-access.d.ts +2 -2
  47. package/lib/definitions/typings/planner.d.ts +10 -2
  48. package/lib/{dimensioning-helper-1cd23e09.js → dimensioning-helper-c662eb18.js} +2 -2
  49. package/lib/{dimensioning-helper-1cd23e09.js.map → dimensioning-helper-c662eb18.js.map} +1 -1
  50. package/lib/{dimensioning-helper-884dea70.nomodule.js → dimensioning-helper-dfca8d0b.nomodule.js} +2 -2
  51. package/lib/{dimensioning-helper-884dea70.nomodule.js.map → dimensioning-helper-dfca8d0b.nomodule.js.map} +1 -1
  52. package/lib/{glb-viewer-0c371d31.js → glb-viewer-11f9e85d.js} +2 -2
  53. package/lib/{glb-viewer-0c371d31.js.map → glb-viewer-11f9e85d.js.map} +1 -1
  54. package/lib/{glb-viewer-95b7ae7b.nomodule.js → glb-viewer-bb3cd78d.nomodule.js} +2 -2
  55. package/lib/{glb-viewer-95b7ae7b.nomodule.js.map → glb-viewer-bb3cd78d.nomodule.js.map} +1 -1
  56. package/lib/{glb-viewer-camera-behaviour-6bb3e23a.js → glb-viewer-camera-behaviour-7388dfb9.js} +2 -2
  57. package/lib/glb-viewer-camera-behaviour-7388dfb9.js.map +1 -0
  58. package/lib/{glb-viewer-camera-behaviour-dc36db53.nomodule.js → glb-viewer-camera-behaviour-dcb50219.nomodule.js} +2 -2
  59. package/lib/glb-viewer-camera-behaviour-dcb50219.nomodule.js.map +1 -0
  60. package/lib/glb-viewer-main-c5731dad.js +2 -0
  61. package/lib/glb-viewer-main-c5731dad.js.map +1 -0
  62. package/lib/glb-viewer-main.nomodule.js +1 -1
  63. package/lib/{imos-ix-poc-export-helper-5268eef6.js → imos-ix-poc-export-helper-91d7e509.js} +2 -2
  64. package/lib/imos-ix-poc-export-helper-91d7e509.js.map +1 -0
  65. package/lib/{imos-ix-poc-export-helper-72e0817f.nomodule.js → imos-ix-poc-export-helper-ff332661.nomodule.js} +2 -2
  66. package/lib/imos-ix-poc-export-helper-ff332661.nomodule.js.map +1 -0
  67. package/lib/legacy/TextGeometry-7a5a6f22.legacy.js +2 -0
  68. package/lib/legacy/{TextGeometry-5fb8e830.legacy.js.map → TextGeometry-7a5a6f22.legacy.js.map} +1 -1
  69. package/lib/legacy/{banana-for-scale-1eac95a5.legacy.js → banana-for-scale-6ecefbb0.legacy.js} +2 -2
  70. package/lib/legacy/{banana-for-scale-1eac95a5.legacy.js.map → banana-for-scale-6ecefbb0.legacy.js.map} +1 -1
  71. package/lib/legacy/budgeteer-measure.legacy.js +1 -1
  72. package/lib/legacy/camera-behaviour-ee8ad64b.legacy.js +2 -0
  73. package/lib/legacy/{camera-behaviour-cf86d84e.legacy.js.map → camera-behaviour-ee8ad64b.legacy.js.map} +1 -1
  74. package/lib/legacy/{component-dimensioning-9fc6aa32.legacy.js → component-dimensioning-3d92e6e3.legacy.js} +2 -2
  75. package/lib/legacy/component-dimensioning-3d92e6e3.legacy.js.map +1 -0
  76. package/lib/legacy/{component-raycast-helper-e1d2085a.legacy.js → component-raycast-helper-d5401e27.legacy.js} +2 -2
  77. package/lib/legacy/component-raycast-helper-d5401e27.legacy.js.map +1 -0
  78. package/lib/legacy/configurator-e0f102b4.legacy.js +2 -0
  79. package/lib/legacy/configurator-e0f102b4.legacy.js.map +1 -0
  80. package/lib/legacy/configurator-main.legacy.js +1 -1
  81. package/lib/legacy/{continuous-drawing-helper-e1d48bc2.legacy.js → continuous-drawing-helper-fd527749.legacy.js} +2 -2
  82. package/lib/legacy/continuous-drawing-helper-fd527749.legacy.js.map +1 -0
  83. package/lib/legacy/{default-light-setting-3bd0fca6.legacy.js → default-light-setting-363d7d18.legacy.js} +2 -2
  84. package/lib/legacy/default-light-setting-363d7d18.legacy.js.map +1 -0
  85. package/lib/legacy/{dimensioning-helper-d83dfd82.legacy.js → dimensioning-helper-11069d8c.legacy.js} +2 -2
  86. package/lib/legacy/{dimensioning-helper-d83dfd82.legacy.js.map → dimensioning-helper-11069d8c.legacy.js.map} +1 -1
  87. package/lib/legacy/{glb-viewer-8ddcb4d5.legacy.js → glb-viewer-6b8d3a35.legacy.js} +2 -2
  88. package/lib/legacy/{glb-viewer-8ddcb4d5.legacy.js.map → glb-viewer-6b8d3a35.legacy.js.map} +1 -1
  89. package/lib/legacy/{glb-viewer-camera-behaviour-6f39e9d3.legacy.js → glb-viewer-camera-behaviour-ecef15aa.legacy.js} +2 -2
  90. package/lib/legacy/glb-viewer-camera-behaviour-ecef15aa.legacy.js.map +1 -0
  91. package/lib/legacy/glb-viewer-main.legacy.js +1 -1
  92. package/lib/legacy/{imos-ix-poc-export-helper-dc591729.legacy.js → imos-ix-poc-export-helper-2b70fa34.legacy.js} +2 -2
  93. package/lib/legacy/imos-ix-poc-export-helper-2b70fa34.legacy.js.map +1 -0
  94. package/lib/legacy/main-thread-to-worker-6115d235.legacy.js +7 -0
  95. package/lib/legacy/{main-thread-to-worker-1ffd1d44.legacy.js.map → main-thread-to-worker-6115d235.legacy.js.map} +1 -1
  96. package/lib/legacy/{material-viewer-6aec699a.legacy.js → material-viewer-1fa3a47f.legacy.js} +2 -2
  97. package/lib/legacy/material-viewer-1fa3a47f.legacy.js.map +1 -0
  98. package/lib/legacy/material-viewer-main.legacy.js +1 -1
  99. package/lib/legacy/planner-b1d9b1b7.legacy.js +2 -0
  100. package/lib/legacy/{planner-1cdb5a30.legacy.js.map → planner-b1d9b1b7.legacy.js.map} +1 -1
  101. package/lib/legacy/planner-main.legacy.js +1 -1
  102. package/lib/legacy/{query-params-helper-9bc9aa02.legacy.js → query-params-helper-28b451be.legacy.js} +2 -2
  103. package/lib/legacy/query-params-helper-28b451be.legacy.js.map +1 -0
  104. package/lib/legacy/{roomle-configurator-37f12427.legacy.js → roomle-configurator-5393d210.legacy.js} +2 -2
  105. package/lib/legacy/roomle-configurator-5393d210.legacy.js.map +1 -0
  106. package/lib/legacy/roomle-dependency-injection-edc88f31.legacy.js +9 -0
  107. package/lib/legacy/{roomle-dependency-injection-a668ec53.legacy.js.map → roomle-dependency-injection-edc88f31.legacy.js.map} +1 -1
  108. package/lib/legacy/roomle-sdk.legacy.js +1 -1
  109. package/lib/legacy/{script-loader-ad8989f8.legacy.js → script-loader-ea33e7a8.legacy.js} +2 -2
  110. package/lib/legacy/script-loader-ea33e7a8.legacy.js.map +1 -0
  111. package/lib/legacy/static/ConfiguratorKernel-224b7042fc2da198.wasm +0 -0
  112. package/lib/legacy/static/RoomleCore-3196e6b7b616cb0e.wasm +0 -0
  113. package/lib/legacy/static/{RoomleCore-c236bb6d0a25bbb2.js → RoomleCore-7d10b7b8ca9a203a.js} +10 -10
  114. package/lib/legacy/static/RoomleToolsCore-25aa4fbadaab8219.wasm +0 -0
  115. package/lib/legacy/{stats-helper-fb2b8318.legacy.js → stats-helper-fb3a580c.legacy.js} +2 -2
  116. package/lib/legacy/stats-helper-fb3a580c.legacy.js.map +1 -0
  117. package/lib/legacy/{tools-core-147bf25e.legacy.js → tools-core-a6125630.legacy.js} +2 -2
  118. package/lib/legacy/tools-core-a6125630.legacy.js.map +1 -0
  119. package/lib/{material-viewer-ede9cd77.nomodule.js → material-viewer-074076cd.nomodule.js} +2 -2
  120. package/lib/material-viewer-074076cd.nomodule.js.map +1 -0
  121. package/lib/{material-viewer-272248a0.js → material-viewer-ce63ba67.js} +2 -2
  122. package/lib/material-viewer-ce63ba67.js.map +1 -0
  123. package/lib/material-viewer-main-7f83ded6.js +2 -0
  124. package/lib/material-viewer-main-7f83ded6.js.map +1 -0
  125. package/lib/material-viewer-main.nomodule.js +1 -1
  126. package/lib/{planner-b8bef769.js → planner-2313b5ef.js} +2 -2
  127. package/lib/{planner-b8bef769.js.map → planner-2313b5ef.js.map} +1 -1
  128. package/lib/{planner-dbb7a844.nomodule.js → planner-e8f9fc69.nomodule.js} +2 -2
  129. package/lib/{planner-dbb7a844.nomodule.js.map → planner-e8f9fc69.nomodule.js.map} +1 -1
  130. package/lib/planner-main-e906ee66.js +2 -0
  131. package/lib/planner-main-e906ee66.js.map +1 -0
  132. package/lib/planner-main.nomodule.js +1 -1
  133. package/lib/{roomle-configurator-95dd9be3.js → roomle-configurator-19c694f2.js} +2 -2
  134. package/lib/roomle-configurator-19c694f2.js.map +1 -0
  135. package/lib/{roomle-configurator-ae9cdae5.nomodule.js → roomle-configurator-32bfbd41.nomodule.js} +2 -2
  136. package/lib/roomle-configurator-32bfbd41.nomodule.js.map +1 -0
  137. package/lib/{roomle-dependency-injection-e12b2673.js → roomle-dependency-injection-0124576e.js} +3 -3
  138. package/lib/{roomle-dependency-injection-e12b2673.js.map → roomle-dependency-injection-0124576e.js.map} +1 -1
  139. package/lib/{roomle-dependency-injection-432be283.nomodule.js → roomle-dependency-injection-2553a6bd.nomodule.js} +3 -3
  140. package/lib/{roomle-dependency-injection-432be283.nomodule.js.map → roomle-dependency-injection-2553a6bd.nomodule.js.map} +1 -1
  141. package/lib/{roomle-sdk-e4eafdb4.js → roomle-sdk-60649d61.js} +2 -2
  142. package/lib/roomle-sdk-60649d61.js.map +1 -0
  143. package/lib/roomle-sdk.nomodule.js +1 -1
  144. package/lib/{script-loader-5cd07278.nomodule.js → script-loader-7a55dce4.nomodule.js} +2 -2
  145. package/lib/script-loader-7a55dce4.nomodule.js.map +1 -0
  146. package/lib/{script-loader-33eeb531.js → script-loader-836c1efb.js} +2 -2
  147. package/lib/script-loader-836c1efb.js.map +1 -0
  148. package/lib/static/ConfiguratorKernel-224b7042fc2da198.wasm +0 -0
  149. package/lib/static/RoomleCore-3196e6b7b616cb0e.wasm +0 -0
  150. package/lib/static/{RoomleCore-c236bb6d0a25bbb2.js → RoomleCore-7d10b7b8ca9a203a.js} +1 -1
  151. package/lib/static/{RoomleCore-c236bb6d0a25bbb2.js.map → RoomleCore-7d10b7b8ca9a203a.js.map} +1 -1
  152. package/lib/static/RoomleToolsCore-25aa4fbadaab8219.wasm +0 -0
  153. package/lib/{stats-helper-cac7dccd.js → stats-helper-8820dd05.js} +2 -2
  154. package/lib/stats-helper-8820dd05.js.map +1 -0
  155. package/lib/{stats-helper-6928023d.nomodule.js → stats-helper-a41f8b8f.nomodule.js} +2 -2
  156. package/lib/stats-helper-a41f8b8f.nomodule.js.map +1 -0
  157. package/lib/{tools-core-96f823f3.nomodule.js → tools-core-1c9d9da3.nomodule.js} +2 -2
  158. package/lib/tools-core-1c9d9da3.nomodule.js.map +1 -0
  159. package/lib/{tools-core-f1ece54b.js → tools-core-cbdcc6c8.js} +2 -2
  160. package/lib/tools-core-cbdcc6c8.js.map +1 -0
  161. package/package.json +2 -2
  162. package/lib/camera-behaviour-c3053204.nomodule.js +0 -2
  163. package/lib/camera-behaviour-e00e1248.js +0 -2
  164. package/lib/component-dimensioning-61fbbbdb.nomodule.js.map +0 -1
  165. package/lib/component-dimensioning-9e0bd8e2.js.map +0 -1
  166. package/lib/component-raycast-helper-17aefd3b.nomodule.js.map +0 -1
  167. package/lib/component-raycast-helper-d8b48570.js.map +0 -1
  168. package/lib/configurator-0e7c6d32.nomodule.js.map +0 -1
  169. package/lib/configurator-9b734516.js.map +0 -1
  170. package/lib/configurator-main-9c2152b4.js +0 -2
  171. package/lib/configurator-main-9c2152b4.js.map +0 -1
  172. package/lib/continuous-drawing-helper-13c73269.nomodule.js.map +0 -1
  173. package/lib/continuous-drawing-helper-d1018319.js.map +0 -1
  174. package/lib/default-light-setting-a83f6e0e.nomodule.js.map +0 -1
  175. package/lib/default-light-setting-d4f45799.js.map +0 -1
  176. package/lib/glb-viewer-camera-behaviour-6bb3e23a.js.map +0 -1
  177. package/lib/glb-viewer-camera-behaviour-dc36db53.nomodule.js.map +0 -1
  178. package/lib/glb-viewer-main-652136ba.js +0 -2
  179. package/lib/glb-viewer-main-652136ba.js.map +0 -1
  180. package/lib/imos-ix-poc-export-helper-5268eef6.js.map +0 -1
  181. package/lib/imos-ix-poc-export-helper-72e0817f.nomodule.js.map +0 -1
  182. package/lib/legacy/TextGeometry-5fb8e830.legacy.js +0 -2
  183. package/lib/legacy/camera-behaviour-cf86d84e.legacy.js +0 -2
  184. package/lib/legacy/component-dimensioning-9fc6aa32.legacy.js.map +0 -1
  185. package/lib/legacy/component-raycast-helper-e1d2085a.legacy.js.map +0 -1
  186. package/lib/legacy/configurator-5fc65045.legacy.js +0 -2
  187. package/lib/legacy/configurator-5fc65045.legacy.js.map +0 -1
  188. package/lib/legacy/continuous-drawing-helper-e1d48bc2.legacy.js.map +0 -1
  189. package/lib/legacy/default-light-setting-3bd0fca6.legacy.js.map +0 -1
  190. package/lib/legacy/glb-viewer-camera-behaviour-6f39e9d3.legacy.js.map +0 -1
  191. package/lib/legacy/imos-ix-poc-export-helper-dc591729.legacy.js.map +0 -1
  192. package/lib/legacy/main-thread-to-worker-1ffd1d44.legacy.js +0 -7
  193. package/lib/legacy/material-viewer-6aec699a.legacy.js.map +0 -1
  194. package/lib/legacy/planner-1cdb5a30.legacy.js +0 -2
  195. package/lib/legacy/query-params-helper-9bc9aa02.legacy.js.map +0 -1
  196. package/lib/legacy/roomle-configurator-37f12427.legacy.js.map +0 -1
  197. package/lib/legacy/roomle-dependency-injection-a668ec53.legacy.js +0 -9
  198. package/lib/legacy/script-loader-ad8989f8.legacy.js.map +0 -1
  199. package/lib/legacy/static/ConfiguratorKernel-a18cfca26f45be3c.wasm +0 -0
  200. package/lib/legacy/static/RoomleCore-c101ddc34ae46f6b.wasm +0 -0
  201. package/lib/legacy/static/RoomleToolsCore-9acbf17122008cdb.wasm +0 -0
  202. package/lib/legacy/stats-helper-fb2b8318.legacy.js.map +0 -1
  203. package/lib/legacy/tools-core-147bf25e.legacy.js.map +0 -1
  204. package/lib/material-viewer-272248a0.js.map +0 -1
  205. package/lib/material-viewer-ede9cd77.nomodule.js.map +0 -1
  206. package/lib/material-viewer-main-fa6bee2e.js +0 -2
  207. package/lib/material-viewer-main-fa6bee2e.js.map +0 -1
  208. package/lib/planner-main-da4270f8.js +0 -2
  209. package/lib/planner-main-da4270f8.js.map +0 -1
  210. package/lib/roomle-configurator-95dd9be3.js.map +0 -1
  211. package/lib/roomle-configurator-ae9cdae5.nomodule.js.map +0 -1
  212. package/lib/roomle-sdk-e4eafdb4.js.map +0 -1
  213. package/lib/script-loader-33eeb531.js.map +0 -1
  214. package/lib/script-loader-5cd07278.nomodule.js.map +0 -1
  215. package/lib/static/ConfiguratorKernel-a18cfca26f45be3c.wasm +0 -0
  216. package/lib/static/RoomleCore-c101ddc34ae46f6b.wasm +0 -0
  217. package/lib/static/RoomleToolsCore-9acbf17122008cdb.wasm +0 -0
  218. package/lib/stats-helper-6928023d.nomodule.js.map +0 -1
  219. package/lib/stats-helper-cac7dccd.js.map +0 -1
  220. package/lib/tools-core-96f823f3.nomodule.js.map +0 -1
  221. package/lib/tools-core-f1ece54b.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"camera-behaviour-cf86d84e.legacy.js","sources":["../../../packages/three-build/src/Tween.js","../../../node_modules/three/examples/jsm/objects/GroundedSkybox.js","../../../packages/common-core/public/textures/env/legacy_env.exr","../../../packages/common-core/public/textures/env/default_1k.exr"],"sourcesContent":["export default \"static/Tween-d57ee5d181fce582.js\"","import { Mesh, MeshBasicMaterial, SphereGeometry, Vector3 } from 'three';\n\n/**\n * A ground-projected skybox. The height is how far the camera that took the photo was above the ground -\n * a larger value will magnify the downward part of the image. By default the object is centered at the camera,\n * so it is often helpful to set skybox.position.y = height to put the ground at the origin. Set the radius\n * large enough to ensure your user's camera stays inside.\n */\n\nclass GroundedSkybox extends Mesh {\n\n\tconstructor( map, height, radius, resolution = 128 ) {\n\n\t\tif ( height <= 0 || radius <= 0 || resolution <= 0 ) {\n\n\t\t\tthrow new Error( 'GroundedSkybox height, radius, and resolution must be positive.' );\n\n\t\t}\n\n\t\tconst geometry = new SphereGeometry( radius, 2 * resolution, resolution );\n\t\tgeometry.scale( 1, 1, - 1 );\n\n\t\tconst pos = geometry.getAttribute( 'position' );\n\t\tconst tmp = new Vector3();\n\n\t\tfor ( let i = 0; i < pos.count; ++ i ) {\n\n\t\t\ttmp.fromBufferAttribute( pos, i );\n\t\t\tif ( tmp.y < 0 ) {\n\n\t\t\t\t// Smooth out the transition from flat floor to sphere:\n\t\t\t\tconst y1 = - height * 3 / 2;\n\t\t\t\tconst f =\n\t\t\t\t\t\ttmp.y < y1 ? - height / tmp.y : ( 1 - tmp.y * tmp.y / ( 3 * y1 * y1 ) );\n\t\t\t\ttmp.multiplyScalar( f );\n\t\t\t\ttmp.toArray( pos.array, 3 * i );\n\n\t\t\t}\n\n\t\t}\n\n\t\tpos.needsUpdate = true;\n\n\t\tsuper( geometry, new MeshBasicMaterial( { map, depthWrite: false } ) );\n\n\t}\n\n}\n\nexport { GroundedSkybox };\n","export default \"static/legacy_env-d5810ec5057d4716.exr\"","export default \"static/default_1k-2aa6d42244d30fb1.exr\""],"names":["exports","GroundedSkybox","_Mesh","_inherits","_super","_createSuper","map","height","radius","resolution","arguments","length","undefined","_classCallCheck","Error","geometry","SphereGeometry","scale","pos","getAttribute","tmp","Vector3","i","count","fromBufferAttribute","y","y1","f","multiplyScalar","toArray","array","needsUpdate","call","this","MeshBasicMaterial","depthWrite","_createClass","Mesh"],"mappings":"+nCAAAA,EAAA,IAAe,wj9CCEf,IAOMC,YAAcC,GAAAC,GAAAF,EAAAC,GAAA,IAAAE,EAAAC,GAAAJ,GAEnB,SAAAA,EAAaK,EAAKC,EAAQC,GAA2B,IAAnBC,EAAUC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,IAE9C,GAFiDG,QAAAZ,GAE5CM,GAAU,GAAKC,GAAU,GAAKC,GAAc,EAEhD,MAAM,IAAIK,MAAO,mEAIlB,IAAMC,EAAW,IAAIC,GAAgBR,EAAQ,EAAIC,EAAYA,GAC7DM,EAASE,MAAO,EAAG,GAAK,GAKxB,IAHA,IAAMC,EAAMH,EAASI,aAAc,YAC7BC,EAAM,IAAIC,EAENC,EAAI,EAAGA,EAAIJ,EAAIK,QAAUD,EAGlC,GADAF,EAAII,oBAAqBN,EAAKI,GACzBF,EAAIK,EAAI,EAAI,CAGhB,IAAMC,EAAgB,GAATnB,EAAa,EACpBoB,EACJP,EAAIK,EAAIC,GAAOnB,EAASa,EAAIK,EAAM,EAAIL,EAAIK,EAAIL,EAAIK,GAAM,EAAIC,EAAKA,GACnEN,EAAIQ,eAAgBD,GACpBP,EAAIS,QAASX,EAAIY,MAAO,EAAIR,GAMP,OAAvBJ,EAAIa,aAAc,EAAK3B,EAAA4B,KAAAC,KAEhBlB,EAAU,IAAImB,GAAmB,CAAE5B,IAAAA,EAAK6B,YAAY,KAE3D,OAAAC,GAAAnC,IApC2BoC,42nBCTd,g6CCAA"}
1
+ {"version":3,"file":"camera-behaviour-ee8ad64b.legacy.js","sources":["../../../packages/three-build/src/Tween.js","../../../node_modules/three/examples/jsm/objects/GroundedSkybox.js","../../../packages/common-core/public/textures/env/legacy_env.exr","../../../packages/common-core/public/textures/env/default_1k.exr"],"sourcesContent":["export default \"static/Tween-d57ee5d181fce582.js\"","import { Mesh, MeshBasicMaterial, SphereGeometry, Vector3 } from 'three';\n\n/**\n * A ground-projected skybox. The height is how far the camera that took the photo was above the ground -\n * a larger value will magnify the downward part of the image. By default the object is centered at the camera,\n * so it is often helpful to set skybox.position.y = height to put the ground at the origin. Set the radius\n * large enough to ensure your user's camera stays inside.\n */\n\nclass GroundedSkybox extends Mesh {\n\n\tconstructor( map, height, radius, resolution = 128 ) {\n\n\t\tif ( height <= 0 || radius <= 0 || resolution <= 0 ) {\n\n\t\t\tthrow new Error( 'GroundedSkybox height, radius, and resolution must be positive.' );\n\n\t\t}\n\n\t\tconst geometry = new SphereGeometry( radius, 2 * resolution, resolution );\n\t\tgeometry.scale( 1, 1, - 1 );\n\n\t\tconst pos = geometry.getAttribute( 'position' );\n\t\tconst tmp = new Vector3();\n\n\t\tfor ( let i = 0; i < pos.count; ++ i ) {\n\n\t\t\ttmp.fromBufferAttribute( pos, i );\n\t\t\tif ( tmp.y < 0 ) {\n\n\t\t\t\t// Smooth out the transition from flat floor to sphere:\n\t\t\t\tconst y1 = - height * 3 / 2;\n\t\t\t\tconst f =\n\t\t\t\t\t\ttmp.y < y1 ? - height / tmp.y : ( 1 - tmp.y * tmp.y / ( 3 * y1 * y1 ) );\n\t\t\t\ttmp.multiplyScalar( f );\n\t\t\t\ttmp.toArray( pos.array, 3 * i );\n\n\t\t\t}\n\n\t\t}\n\n\t\tpos.needsUpdate = true;\n\n\t\tsuper( geometry, new MeshBasicMaterial( { map, depthWrite: false } ) );\n\n\t}\n\n}\n\nexport { GroundedSkybox };\n","export default \"static/legacy_env-d5810ec5057d4716.exr\"","export default \"static/default_1k-2aa6d42244d30fb1.exr\""],"names":["exports","GroundedSkybox","_Mesh","map","height","radius","resolution","arguments","length","undefined","_classCallCheck","Error","geometry","SphereGeometry","scale","pos","getAttribute","tmp","Vector3","i","count","fromBufferAttribute","y","y1","f","multiplyScalar","toArray","array","needsUpdate","_callSuper","MeshBasicMaterial","depthWrite","_inherits","_createClass","Mesh"],"mappings":"+nCAAAA,EAAA,IAAe,kq9CCEf,IAOMC,YAAcC,GAEnB,SAAAD,EAAaE,EAAKC,EAAQC,GAA2B,IAAnBC,EAAUC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,IAE9C,GAFiDG,QAAAT,GAE5CG,GAAU,GAAKC,GAAU,GAAKC,GAAc,EAEhD,MAAM,IAAIK,MAAO,mEAIlB,IAAMC,EAAW,IAAIC,GAAgBR,EAAQ,EAAIC,EAAYA,GAC7DM,EAASE,MAAO,EAAG,GAAK,GAKxB,IAHA,IAAMC,EAAMH,EAASI,aAAc,YAC7BC,EAAM,IAAIC,EAENC,EAAI,EAAGA,EAAIJ,EAAIK,QAAUD,EAGlC,GADAF,EAAII,oBAAqBN,EAAKI,GACzBF,EAAIK,EAAI,EAAI,CAGhB,IAAMC,EAAgB,GAATnB,EAAa,EACpBoB,EACJP,EAAIK,EAAIC,GAAOnB,EAASa,EAAIK,EAAM,EAAIL,EAAIK,EAAIL,EAAIK,GAAM,EAAIC,EAAKA,GACnEN,EAAIQ,eAAgBD,GACpBP,EAAIS,QAASX,EAAIY,MAAO,EAAIR,GAMP,OAAvBJ,EAAIa,aAAc,EAAKC,QAAA5B,EAAA,CAEhBW,EAAU,IAAIkB,GAAmB,CAAE3B,IAAAA,EAAK4B,YAAY,MAE3D,OAAAC,GAAA/B,EAAAC,GAAA+B,GAAAhC,IApC2BiC,42nBCTd,g6CCAA"}
@@ -1,2 +1,2 @@
1
- System.register(["./roomle-dependency-injection-a668ec53.legacy.js","./main-thread-to-worker-1ffd1d44.legacy.js","./TextGeometry-5fb8e830.legacy.js"],(function(e){var i,t,n,s,o,a,h,l,_,d,r,g,c,m,w,p;return{setters:[function(e){i=e._,t=e.i},function(e){n=e.O,s=e.a,o=e.y,a=e.k,h=e.E,l=e.bu,_=e.B,d=e.U,r=e.J,g=e.b,c=e.Q,m=e.bV,w=e.bj},function(e){p=e.T}],execute:function(){const y="component_dimensioning_line_material",x="component_dimensioning_plane_material",u="component_dimensioning_text_material";class v extends n{constructor(e,i,t,n){super(),this._center=i.getCenter(new s),this._size=i.getSize(new s),this._origin=this._center.clone().sub(this._size.clone().multiplyScalar(.5)),this._dimensioning=e,this._level=this._dimensioning.maxLevel-this._dimensioning.level,this._font=t,this._cameraPosition=n,this._init()}clone(){console.warn("Will not clone ComponentDimensioning")}_initMaterials(){this._cacheHolder.materialCache.has(y)?this._lineMaterial=this._cacheHolder.materialCache.get(y):(this._lineMaterial=new o({color:3618615}),this._cacheHolder.materialCache.set(y,this._lineMaterial)),this._cacheHolder.materialCache.has(x)?this._planeMaterial=this._cacheHolder.materialCache.get(x):(this._planeMaterial=new a({color:16777215,side:h,opacity:.8,transparent:!0}),this._cacheHolder.materialCache.set(x,this._planeMaterial)),this._cacheHolder.materialCache.has(u)?this._textMaterial=this._cacheHolder.materialCache.get(u):(this._textMaterial=new l({color:3618615}),this._cacheHolder.materialCache.set(u,this._textMaterial))}_init(){this._initMaterials();let e=new _;this._line=new d(e,this._lineMaterial),this._line.name="component dimension line "+this._dimensioning.type.value,this._text=new r(e,this._textMaterial),this._text.name="component dimension text "+this._dimensioning.type.value,this._plane=new r(e,this._planeMaterial),this._plane.name="component dimension plane "+this._dimensioning.type.value;let i,t=new _,n=Math.round(Math.max(this._size.y,this._size.x,this._size.z)),o=Math.abs(this._dimensioning.to-this._dimensioning.from),a=.025+(n<4?0:.005*n);o<.3&&(a*=.5+o);let h={font:this._font,size:a,height:.001,curveSegments:2,bevelEnabled:!0,bevelThickness:.001,bevelSize:.001},l=this._dimensioning.label?this._dimensioning.label:this._unitFormatter.formatMMValueToUnitString(1e3*o),m=new p(l,h);m.computeBoundingBox();let w=m.boundingBox.getSize(new s).y;0===this._dimensioning.type.value&&(i=this._getXEdge(w),this._addXEdgeSideLines(w)),1===this._dimensioning.type.value&&(i=this._getYEdge(w),this._addYEdgeSideLines(w)),2===this._dimensioning.type.value&&(i=this._getZEdge(w),this._addZEdgeSideLines(w));let y=[i.start.x,i.start.y,i.start.z,i.end.x,i.end.y,i.end.z];if(t.setAttribute("position",new g(new Float32Array(y),3)),this._line.geometry.dispose(),this._line.geometry=t,this.add(this._line),this._text.geometry=m,0===this._dimensioning.type.value&&this._addText(i,m,new c,new s(0,.04,0)),1===this._dimensioning.type.value){let e=new c,t=this._getXSign()>0?Math.PI/2:Math.PI/2*3;e.setFromAxisAngle(new s(0,0,1),t),this._addText(i,m,e,new s(.04,0,0))}if(2===this._dimensioning.type.value){let e=this._getXSign()>0?Math.PI/2:Math.PI/2*3,t=(new c).setFromAxisAngle(new s(-1,0,0),Math.PI/2),n=(new c).setFromAxisAngle(new s(0,0,1),e);this._addText(i,m,t.multiply(n),new s(.04,0,0))}}_getXEdge(e){let i=this._size.y+.05+(.06+e)*this._level;const t=new s(0,this._origin.y,this._origin.z);let n=t.clone().add(new s(this._dimensioning.from,i,0)),o=t.clone().add(new s(this._dimensioning.to,i,0));return new m(n,o)}_addXEdgeSideLines(e){let i=this._size.y+.05+(.06+e)*(this._level-.5),t=this._size.y+.05+(.06+e)*this._level;const n=new s(0,this._origin.y,this._origin.z);let o=n.clone().add(new s(this._dimensioning.from,i,0)),a=n.clone().add(new s(this._dimensioning.from,t,0)),h=n.clone().add(new s(this._dimensioning.to,i,0)),l=n.clone().add(new s(this._dimensioning.to,t,0));this._addLine(o,a),this._addLine(h,l)}_getZEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new s(this._origin.x,this._origin.y,0);let n=t.clone().add(new s(i,0,this._dimensioning.from)),o=t.clone().add(new s(i,0,this._dimensioning.to));return new m(n,o)}_addZEdgeSideLines(e){let i=this._getXSign()>0?this._size.x:0,t=i+.05+(.06+e)*(this._level-.5),n=i+.05+(.06+e)*this._level;t*=this._getXSign(),n*=this._getXSign();const o=new s(this._origin.x,this._origin.y,0);let a=o.clone().add(new s(t,0,this._dimensioning.from)),h=o.clone().add(new s(n,0,this._dimensioning.from)),l=o.clone().add(new s(t,0,this._dimensioning.to)),_=o.clone().add(new s(n,0,this._dimensioning.to));this._addLine(a,h),this._addLine(l,_)}_getYEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new s(this._origin.x,0,this._origin.z);let n=t.clone().add(new s(i,this._dimensioning.from,0)),o=t.clone().add(new s(i,this._dimensioning.to,0));return new m(n,o)}_addYEdgeSideLines(e){let i=this._getXSign()>0?this._size.x:0,t=i+.05+(.06+e)*(this._level-.5),n=i+.05+(.06+e)*this._level;t*=this._getXSign(),n*=this._getXSign();const o=new s(this._origin.x,0,this._origin.z);let a=o.clone().add(new s(t,this._dimensioning.from,0)),h=o.clone().add(new s(n,this._dimensioning.from,0)),l=o.clone().add(new s(t,this._dimensioning.to,0)),_=o.clone().add(new s(n,this._dimensioning.to,0));this._addLine(a,h),this._addLine(l,_)}_addLine(e,i){let t=new _,n=[e.x,e.y,e.z,i.x,i.y,i.z];t.setAttribute("position",new g(new Float32Array(n),3)),this.add(new d(t,this._lineMaterial))}_addText(e,i,t,n){let o=e.getCenter(new s);n.x*=this._getXSign(),o.add(n);let a=i.boundingBox.getSize(new s);i.center(),this._text.position.copy(o),this._text.quaternion.copy(t),this.add(this._text);let h=new w(a.x+.02,a.y+.02,32);h.center(),this._plane.geometry=h,this._plane.position.copy(o),this._plane.quaternion.copy(t),this.add(this._plane)}_getXSign(){return this._cameraPosition.x>=0?1:-1}}e("default",v),i([t],v.prototype,"_cacheHolder",void 0),i([t],v.prototype,"_unitFormatter",void 0)}}}));
2
- //# sourceMappingURL=component-dimensioning-9fc6aa32.legacy.js.map
1
+ System.register(["./roomle-dependency-injection-edc88f31.legacy.js","./main-thread-to-worker-6115d235.legacy.js","./TextGeometry-7a5a6f22.legacy.js"],(function(e){var i,t,n,s,o,a,h,l,_,d,r,g,c,m,w,p;return{setters:[function(e){i=e._,t=e.i},function(e){n=e.Y,s=e.a,o=e.s,a=e.h,h=e.u,l=e.bt,_=e.B,d=e.z,r=e.x,g=e.b,c=e.Q,m=e.bU,w=e.bi},function(e){p=e.T}],execute:function(){const x="component_dimensioning_line_material",y="component_dimensioning_plane_material",u="component_dimensioning_text_material";class v extends n{constructor(e,i,t,n){super(),this._center=i.getCenter(new s),this._size=i.getSize(new s),this._origin=this._center.clone().sub(this._size.clone().multiplyScalar(.5)),this._dimensioning=e,this._level=this._dimensioning.maxLevel-this._dimensioning.level,this._font=t,this._cameraPosition=n,this._init()}clone(){console.warn("Will not clone ComponentDimensioning")}_initMaterials(){this._cacheHolder.materialCache.has(x)?this._lineMaterial=this._cacheHolder.materialCache.get(x):(this._lineMaterial=new o({color:3618615}),this._cacheHolder.materialCache.set(x,this._lineMaterial)),this._cacheHolder.materialCache.has(y)?this._planeMaterial=this._cacheHolder.materialCache.get(y):(this._planeMaterial=new a({color:16777215,side:h,opacity:.8,transparent:!0}),this._cacheHolder.materialCache.set(y,this._planeMaterial)),this._cacheHolder.materialCache.has(u)?this._textMaterial=this._cacheHolder.materialCache.get(u):(this._textMaterial=new l({color:3618615}),this._cacheHolder.materialCache.set(u,this._textMaterial))}_init(){this._initMaterials();let e=new _;this._line=new d(e,this._lineMaterial),this._line.name="component dimension line "+this._dimensioning.type.value,this._text=new r(e,this._textMaterial),this._text.name="component dimension text "+this._dimensioning.type.value,this._plane=new r(e,this._planeMaterial),this._plane.name="component dimension plane "+this._dimensioning.type.value;let i,t=new _,n=Math.round(Math.max(this._size.y,this._size.x,this._size.z)),o=Math.abs(this._dimensioning.to-this._dimensioning.from),a=.025+(n<4?0:.005*n);o<.3&&(a*=.5+o);let h={font:this._font,size:a,height:.001,curveSegments:2,bevelEnabled:!0,bevelThickness:.001,bevelSize:.001},l=this._dimensioning.label?this._dimensioning.label:this._unitFormatter.formatMMValueToUnitString(1e3*o),m=new p(l,h);m.computeBoundingBox();let w=m.boundingBox.getSize(new s).y;0===this._dimensioning.type.value&&(i=this._getXEdge(w),this._addXEdgeSideLines(w)),1===this._dimensioning.type.value&&(i=this._getYEdge(w),this._addYEdgeSideLines(w)),2===this._dimensioning.type.value&&(i=this._getZEdge(w),this._addZEdgeSideLines(w));let x=[i.start.x,i.start.y,i.start.z,i.end.x,i.end.y,i.end.z];if(t.setAttribute("position",new g(new Float32Array(x),3)),this._line.geometry.dispose(),this._line.geometry=t,this.add(this._line),this._text.geometry=m,0===this._dimensioning.type.value&&this._addText(i,m,new c,new s(0,.04,0)),1===this._dimensioning.type.value){let e=new c,t=this._getXSign()>0?Math.PI/2:Math.PI/2*3;e.setFromAxisAngle(new s(0,0,1),t),this._addText(i,m,e,new s(.04,0,0))}if(2===this._dimensioning.type.value){let e=this._getXSign()>0?Math.PI/2:Math.PI/2*3,t=(new c).setFromAxisAngle(new s(-1,0,0),Math.PI/2),n=(new c).setFromAxisAngle(new s(0,0,1),e);this._addText(i,m,t.multiply(n),new s(.04,0,0))}}_getXEdge(e){let i=this._size.y+.05+(.06+e)*this._level;const t=new s(0,this._origin.y,this._origin.z);let n=t.clone().add(new s(this._dimensioning.from,i,0)),o=t.clone().add(new s(this._dimensioning.to,i,0));return new m(n,o)}_addXEdgeSideLines(e){let i=this._size.y+.05+(.06+e)*(this._level-.5),t=this._size.y+.05+(.06+e)*this._level;const n=new s(0,this._origin.y,this._origin.z);let o=n.clone().add(new s(this._dimensioning.from,i,0)),a=n.clone().add(new s(this._dimensioning.from,t,0)),h=n.clone().add(new s(this._dimensioning.to,i,0)),l=n.clone().add(new s(this._dimensioning.to,t,0));this._addLine(o,a),this._addLine(h,l)}_getZEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new s(this._origin.x,this._origin.y,0);let n=t.clone().add(new s(i,0,this._dimensioning.from)),o=t.clone().add(new s(i,0,this._dimensioning.to));return new m(n,o)}_addZEdgeSideLines(e){let i=this._getXSign()>0?this._size.x:0,t=i+.05+(.06+e)*(this._level-.5),n=i+.05+(.06+e)*this._level;t*=this._getXSign(),n*=this._getXSign();const o=new s(this._origin.x,this._origin.y,0);let a=o.clone().add(new s(t,0,this._dimensioning.from)),h=o.clone().add(new s(n,0,this._dimensioning.from)),l=o.clone().add(new s(t,0,this._dimensioning.to)),_=o.clone().add(new s(n,0,this._dimensioning.to));this._addLine(a,h),this._addLine(l,_)}_getYEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new s(this._origin.x,0,this._origin.z);let n=t.clone().add(new s(i,this._dimensioning.from,0)),o=t.clone().add(new s(i,this._dimensioning.to,0));return new m(n,o)}_addYEdgeSideLines(e){let i=this._getXSign()>0?this._size.x:0,t=i+.05+(.06+e)*(this._level-.5),n=i+.05+(.06+e)*this._level;t*=this._getXSign(),n*=this._getXSign();const o=new s(this._origin.x,0,this._origin.z);let a=o.clone().add(new s(t,this._dimensioning.from,0)),h=o.clone().add(new s(n,this._dimensioning.from,0)),l=o.clone().add(new s(t,this._dimensioning.to,0)),_=o.clone().add(new s(n,this._dimensioning.to,0));this._addLine(a,h),this._addLine(l,_)}_addLine(e,i){let t=new _,n=[e.x,e.y,e.z,i.x,i.y,i.z];t.setAttribute("position",new g(new Float32Array(n),3)),this.add(new d(t,this._lineMaterial))}_addText(e,i,t,n){let o=e.getCenter(new s);n.x*=this._getXSign(),o.add(n);let a=i.boundingBox.getSize(new s);i.center(),this._text.position.copy(o),this._text.quaternion.copy(t),this.add(this._text);let h=new w(a.x+.02,a.y+.02,32);h.center(),this._plane.geometry=h,this._plane.position.copy(o),this._plane.quaternion.copy(t),this.add(this._plane)}_getXSign(){return this._cameraPosition.x>=0?1:-1}}e("default",v),i([t],v.prototype,"_cacheHolder",void 0),i([t],v.prototype,"_unitFormatter",void 0)}}}));
2
+ //# sourceMappingURL=component-dimensioning-3d92e6e3.legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-dimensioning-3d92e6e3.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- System.register(["./main-thread-to-worker-1ffd1d44.legacy.js","./roomle-dependency-injection-a668ec53.legacy.js"],(function(e){var t,i,n,a,s,r,c,o,l;return{setters:[function(e){t=e.bJ,i=e.c1,n=e.J,a=e.z,s=e.ak,r=e.a,c=e.av,o=e.o},function(e){l=e.ap}],execute:function(){e("default",class{constructor(){this._nonTransparentComponent=null,this._raycaster=new t,this._raycaster.near=.1,this._raycaster.layers.enable(3),this._raycaster.layers.enable(4),this._raycaster.layers.enable(5),this._raycaster.layers.enable(6)}init(e,t){this._object=e,this._camera=t,this.checkComponentVisibility=i(this.checkComponentVisibility,100).bind(this),this.checkPreviewVisibility=i(this.checkPreviewVisibility,100).bind(this)}setCamera(e){this._camera=e}setObject(e){this._object=e}changeMaterialsOnSelect(e,t,i=!1,n){t!==this._nonTransparentComponent&&(this._nonTransparentComponent=t,this._changeMaterialsOnSelect(e,t,i,n))}_changeMaterialsOnSelect(e,t,i=!1,s){if(e.children.length>0&&e.children.forEach(a=>{const r=t&&e.id===t.id||i,c=!(a instanceof n);a.userData.ignoreComponentRaycast||this._changeMaterialsOnSelect(a,t,(!r||!c)&&r,s)}),t)e instanceof n&&e.material instanceof a&&!e.userData.oldMaterial&&(e.userData.oldMaterial=e.material,e.material=e.material.clone(),i||l(e,{opacity:.2,transparent:!0}).then(()=>{null==s||s()}));else if(e.userData.oldMaterial&&e instanceof n&&e.material instanceof a){const{opacity:t,transparent:i}=e.userData.oldMaterial;l(e,{opacity:t,transparent:i}).then(()=>null==s?void 0:s()),e.userData.oldMaterial=void 0}}isComponentVisible(e){const t=[];e.traverse(e=>t.push(e.uuid));const i=(new s).setFromObject(e).getCenter(new r),n=(new r).subVectors(i,this._camera.position).normalize();this._raycaster.set(this._camera.position,n),this._raycaster.far=this._camera.position.distanceTo(i);const a=[];return this._raycaster.intersectObjects(this._object.children,!0).forEach(e=>{e.object.material.visible&&(t.includes(e.object.uuid)||e.object.userData.ignoreComponentRaycast||a.push(e))}),0===a.length}checkComponentAndPreviewVisibility(e,t){e.hasSelection()?this.checkComponentVisibility(e,t):t.hasPreviews()?this.checkPreviewVisibility(t):this.changeMaterialsOnSelect(this._object,null)}checkComponentVisibility(e,t){if(!e.hasSelection())return;const i=t.getComponentsForIds(e.getSelectedRuntimeComponentIds());if(i.length>1)return;const n=i[0];this.isComponentVisible(n)?this.changeMaterialsOnSelect(this._object,null):this.changeMaterialsOnSelect(this._object,n)}areAllPreviewsVisible(e){if(!e.hasPreviews())return!0;const t=e.getPreviews();return 0===t.length||t.map(e=>this.isComponentVisible(e)).reduce((e,t)=>e&&t)}areAllComponentsInFrustum(e){if(0===e.length)return!0;const t=new c,i=(new o).multiplyMatrices(this._camera.projectionMatrix,this._camera.matrixWorldInverse),n=new s;return t.setFromProjectionMatrix(i),e.map(e=>(e=>{const i=n.setFromObject(e).getCenter(new r);return t.containsPoint(i)})(e)).reduce((e,t)=>e&&t)}checkPreviewVisibility(e){e.hasPreviewLines()||(this.areAllPreviewsVisible(e)?this.changeMaterialsOnSelect(this._object,null):this.changeMaterialsOnSelect(this._object,{id:-1}))}})}}}));
2
- //# sourceMappingURL=component-raycast-helper-e1d2085a.legacy.js.map
1
+ System.register(["./main-thread-to-worker-6115d235.legacy.js","./roomle-dependency-injection-edc88f31.legacy.js"],(function(e){var t,i,n,a,s,r,c,o,l;return{setters:[function(e){t=e.bI,i=e.c0,n=e.x,a=e.t,s=e.ak,r=e.a,c=e.au,o=e.l},function(e){l=e.ap}],execute:function(){e("default",class{constructor(){this._nonTransparentComponent=null,this._raycaster=new t,this._raycaster.near=.1,this._raycaster.layers.enable(3),this._raycaster.layers.enable(4),this._raycaster.layers.enable(5),this._raycaster.layers.enable(6)}init(e,t){this._object=e,this._camera=t,this.checkComponentVisibility=i(this.checkComponentVisibility,100).bind(this),this.checkPreviewVisibility=i(this.checkPreviewVisibility,100).bind(this)}setCamera(e){this._camera=e}setObject(e){this._object=e}changeMaterialsOnSelect(e,t,i=!1,n){t!==this._nonTransparentComponent&&(this._nonTransparentComponent=t,this._changeMaterialsOnSelect(e,t,i,n))}_changeMaterialsOnSelect(e,t,i=!1,s){if(e.children.length>0&&e.children.forEach(a=>{const r=t&&e.id===t.id||i,c=!(a instanceof n);a.userData.ignoreComponentRaycast||this._changeMaterialsOnSelect(a,t,(!r||!c)&&r,s)}),t)e instanceof n&&e.material instanceof a&&!e.userData.oldMaterial&&(e.userData.oldMaterial=e.material,e.material=e.material.clone(),i||l(e,{opacity:.2,transparent:!0}).then(()=>{null==s||s()}));else if(e.userData.oldMaterial&&e instanceof n&&e.material instanceof a){const{opacity:t,transparent:i}=e.userData.oldMaterial;l(e,{opacity:t,transparent:i}).then(()=>null==s?void 0:s()),e.userData.oldMaterial=void 0}}isComponentVisible(e){const t=[];e.traverse(e=>t.push(e.uuid));const i=(new s).setFromObject(e).getCenter(new r),n=(new r).subVectors(i,this._camera.position).normalize();this._raycaster.set(this._camera.position,n),this._raycaster.far=this._camera.position.distanceTo(i);const a=[];return this._raycaster.intersectObjects(this._object.children,!0).forEach(e=>{e.object.material.visible&&(t.includes(e.object.uuid)||e.object.userData.ignoreComponentRaycast||a.push(e))}),0===a.length}checkComponentAndPreviewVisibility(e,t){e.hasSelection()?this.checkComponentVisibility(e,t):t.hasPreviews()?this.checkPreviewVisibility(t):this.changeMaterialsOnSelect(this._object,null)}checkComponentVisibility(e,t){if(!e.hasSelection())return;const i=t.getComponentsForIds(e.getSelectedRuntimeComponentIds());if(i.length>1)return;const n=i[0];this.isComponentVisible(n)?this.changeMaterialsOnSelect(this._object,null):this.changeMaterialsOnSelect(this._object,n)}areAllPreviewsVisible(e){if(!e.hasPreviews())return!0;const t=e.getPreviews();return 0===t.length||t.map(e=>this.isComponentVisible(e)).reduce((e,t)=>e&&t)}areAllComponentsInFrustum(e){if(0===e.length)return!0;const t=new c,i=(new o).multiplyMatrices(this._camera.projectionMatrix,this._camera.matrixWorldInverse),n=new s;return t.setFromProjectionMatrix(i),e.map(e=>(e=>{const i=n.setFromObject(e).getCenter(new r);return t.containsPoint(i)})(e)).reduce((e,t)=>e&&t)}checkPreviewVisibility(e){e.hasPreviewLines()||(this.areAllPreviewsVisible(e)?this.changeMaterialsOnSelect(this._object,null):this.changeMaterialsOnSelect(this._object,{id:-1}))}})}}}));
2
+ //# sourceMappingURL=component-raycast-helper-d5401e27.legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-raycast-helper-d5401e27.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ System.register(["./script-loader-ea33e7a8.legacy.js","./roomle-dependency-injection-edc88f31.legacy.js","./camera-behaviour-ee8ad64b.legacy.js","./component-raycast-helper-d5401e27.legacy.js","./roomle-configurator-5393d210.legacy.js","./query-params-helper-28b451be.legacy.js","./main-thread-to-worker-6115d235.legacy.js","./default-light-setting-363d7d18.legacy.js"],(function(e){var n,o,t,a,r,c,i,s,l,u,p,g,d,f;return{setters:[function(e){n=e.S,o=e.M},function(e){t=e.D,a=e.L,r=e.R,c=e.a,i=e.b,s=e.A},function(e){l=e.C,u=e.a},function(e){p=e.default},function(e){g=e.C,d=e.a,f=e.R},function(){},function(){},function(){}],execute:function(){const h=[new t("logger",a),new t("rapi-access",r),new t("script-loader",n),new t("camera-control-3d",l),new t("camera-control",u),new t("data-syncer",c),new t("configurator-scene-manager",g,1),new t("configurator-view-model",d,1),new t("component-raycast-helper",p,0)];e("Configurator",class extends o{setupDependencies(){i.setup(h),this.lookup("planner-kernel-access",this._context).init(1),this.lookup("rapi-access",this._context),this.lookup("script-loader",this._context),this.lookup("logger",this._context)}cleanUpGlobals(){delete window.RoomleConfigurator}cleanUpDependencies(){const e=this.lookup("script-loader"),n=this.lookup("rapi-access");this.lookup("dom-helper");const o=this.lookup("configurator-scene-manager");e&&e.cleanUp(),n&&n.cleanUp(),o&&o.cleanUp()}setupGlobals(e){const{kernelInstance:n,kernelContainer:o,planObjectId:t}=e||{};s.init({kernelInstance:n,kernelContainer:o,planObjectId:t})}getApi(){return this._configurator}bootFinished(){this._configurator=new f(this._context),this._configurator.getMain=()=>this,window.RoomleConfigurator||(window.RoomleConfigurator=this._configurator)}getContextName(){return"configurator"}})}}}));
2
+ //# sourceMappingURL=configurator-e0f102b4.legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurator-e0f102b4.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- System.register(["./configurator-5fc65045.legacy.js","./script-loader-ad8989f8.legacy.js","./query-params-helper-9bc9aa02.legacy.js","./main-thread-to-worker-1ffd1d44.legacy.js","./roomle-dependency-injection-a668ec53.legacy.js","./camera-behaviour-cf86d84e.legacy.js","./component-raycast-helper-e1d2085a.legacy.js","./roomle-configurator-37f12427.legacy.js","./default-light-setting-3bd0fca6.legacy.js"],(function(){var e;return{setters:[function(a){e=a.Configurator},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){(new e).boot(),window.requestIdleCallback||(window.requestIdleCallback=e=>setTimeout(()=>{let a=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-a))})},1)),window.cancelIdleCallback||(window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)})}}}));
1
+ System.register(["./configurator-e0f102b4.legacy.js","./script-loader-ea33e7a8.legacy.js","./query-params-helper-28b451be.legacy.js","./main-thread-to-worker-6115d235.legacy.js","./roomle-dependency-injection-edc88f31.legacy.js","./camera-behaviour-ee8ad64b.legacy.js","./component-raycast-helper-d5401e27.legacy.js","./roomle-configurator-5393d210.legacy.js","./default-light-setting-363d7d18.legacy.js"],(function(){var e;return{setters:[function(n){e=n.Configurator},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){(new e).boot(),window.requestIdleCallback||(window.requestIdleCallback=e=>setTimeout(()=>{let n=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},1)),window.cancelIdleCallback||(window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)})}}}));
2
2
  //# sourceMappingURL=configurator-main.legacy.js.map
@@ -1,2 +1,2 @@
1
- System.register(["./roomle-dependency-injection-a668ec53.legacy.js","./main-thread-to-worker-1ffd1d44.legacy.js"],(function(e){var i,t,r,s,n;return{setters:[function(e){i=e.ac},function(e){t=e.b1,r=e.k,s=e.E,n=e.J}],execute:function(){e("default",class{constructor(){this._currentInnerRadius=0}init(e,i,t){this._drawingGroup=e,this._continuousDrawingManager=i,this._kernelZoomFactor=t,this.update()}update(){this._initCircle(),this._updateCircle()}_initCircle(){if(this._circleMesh)return;const e=70/this._kernelZoomFactor/1e3,i=new t(e,e+e/50,32),c=new r({color:10066329,side:s});this._circleMesh=new n(i,c),this._circleMesh.name="Circle",this._circleMesh.rotation.set(Math.PI/2,0,0),this._circleMesh.visible=this._continuousDrawingManager.shouldShowCircle(),this._drawingGroup.add(this._circleMesh)}_updateCircle(){if(!this._circleMesh)return;const e=70/this._kernelZoomFactor/1e3;if(e!==this._currentInnerRadius){const i=e+e/50;this._circleMesh.geometry=new t(e,i,32)}const r=i(this._continuousDrawingManager.getStartPoint());r.y=5,this._circleMesh.position.copy(r),this._circleMesh.visible=this._continuousDrawingManager.shouldShowCircle(),this._currentInnerRadius=e}setKernelZoomFactor(e){this._kernelZoomFactor=e}endDrawing(){this._drawingGroup.remove(this._circleMesh),this._circleMesh=null}})}}}));
2
- //# sourceMappingURL=continuous-drawing-helper-e1d48bc2.legacy.js.map
1
+ System.register(["./roomle-dependency-injection-edc88f31.legacy.js","./main-thread-to-worker-6115d235.legacy.js"],(function(e){var i,t,r,s,n;return{setters:[function(e){i=e.ac},function(e){t=e.b0,r=e.h,s=e.u,n=e.x}],execute:function(){e("default",class{constructor(){this._currentInnerRadius=0}init(e,i,t){this._drawingGroup=e,this._continuousDrawingManager=i,this._kernelZoomFactor=t,this.update()}update(){this._initCircle(),this._updateCircle()}_initCircle(){if(this._circleMesh)return;const e=70/this._kernelZoomFactor/1e3,i=new t(e,e+e/50,32),c=new r({color:10066329,side:s});this._circleMesh=new n(i,c),this._circleMesh.name="Circle",this._circleMesh.rotation.set(Math.PI/2,0,0),this._circleMesh.visible=this._continuousDrawingManager.shouldShowCircle(),this._drawingGroup.add(this._circleMesh)}_updateCircle(){if(!this._circleMesh)return;const e=70/this._kernelZoomFactor/1e3;if(e!==this._currentInnerRadius){const i=e+e/50;this._circleMesh.geometry=new t(e,i,32)}const r=i(this._continuousDrawingManager.getStartPoint());r.y=5,this._circleMesh.position.copy(r),this._circleMesh.visible=this._continuousDrawingManager.shouldShowCircle(),this._currentInnerRadius=e}setKernelZoomFactor(e){this._kernelZoomFactor=e}endDrawing(){this._drawingGroup.remove(this._circleMesh),this._circleMesh=null}})}}}));
2
+ //# sourceMappingURL=continuous-drawing-helper-fd527749.legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"continuous-drawing-helper-fd527749.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- System.register(["./camera-behaviour-cf86d84e.legacy.js","./roomle-dependency-injection-a668ec53.legacy.js","./main-thread-to-worker-1ffd1d44.legacy.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-3bd0fca6.legacy.js.map
1
+ System.register(["./camera-behaviour-ee8ad64b.legacy.js","./roomle-dependency-injection-edc88f31.legacy.js","./main-thread-to-worker-6115d235.legacy.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-363d7d18.legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-light-setting-363d7d18.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- System.register(["./roomle-dependency-injection-a668ec53.legacy.js","./main-thread-to-worker-1ffd1d44.legacy.js","./TextGeometry-5fb8e830.legacy.js"],(function(t){var i,e,s,n,h,o,a,_,d,r,p,m,l,c,x,g,u,w,b,y,T,L,z;return{setters:[function(t){i=t.aY,e=t.H,s=t._,n=t.i,h=t.j,o=t.aZ,a=t.ac},function(t){_=t.O,d=t.a,r=t.k,p=t.E,m=t.bu,l=t.B,c=t.J,x=t.Q,g=t.bj,u=t.Y,w=t.y,b=t.U,y=t.b,T=t.bV,L=t.ak},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,depth:.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 g(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 u,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-d83dfd82.legacy.js.map
1
+ System.register(["./roomle-dependency-injection-edc88f31.legacy.js","./main-thread-to-worker-6115d235.legacy.js","./TextGeometry-7a5a6f22.legacy.js"],(function(t){var i,e,s,n,h,o,a,_,d,r,p,m,l,c,x,g,u,w,b,y,T,L,z;return{setters:[function(t){i=t.aY,e=t.H,s=t._,n=t.i,h=t.j,o=t.aZ,a=t.ac},function(t){_=t.Y,d=t.a,r=t.h,p=t.u,m=t.bt,l=t.B,c=t.x,x=t.Q,g=t.bi,u=t.H,w=t.s,b=t.z,y=t.b,T=t.bU,L=t.ak},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,depth:.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 g(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 u,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-11069d8c.legacy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dimensioning-helper-d83dfd82.legacy.js","sources":["../../../packages/configurator-core/public/fonts/lato_regular_sub.json"],"sourcesContent":["export default \"static/lato_regular_sub-9dd2262895ccc1a9.json\""],"names":[],"mappings":"i4HAAe"}
1
+ {"version":3,"file":"dimensioning-helper-11069d8c.legacy.js","sources":["../../../packages/configurator-core/public/fonts/lato_regular_sub.json"],"sourcesContent":["export default \"static/lato_regular_sub-9dd2262895ccc1a9.json\""],"names":[],"mappings":"i4HAAe"}
@@ -1,2 +1,2 @@
1
- System.register(["./script-loader-ad8989f8.legacy.js","./roomle-dependency-injection-a668ec53.legacy.js","./camera-behaviour-cf86d84e.legacy.js","./main-thread-to-worker-1ffd1d44.legacy.js","./default-light-setting-3bd0fca6.legacy.js","./glb-viewer-camera-behaviour-6f39e9d3.legacy.js","./query-params-helper-9bc9aa02.legacy.js"],(function(e){var t,r,a,i,n,s,o,h,c,l,d,u,_,m,g,p,v,w,b,f,C,S,y,L,B,M,I,x,G,j,E,F,O;return{setters:[function(e){t=e.S,r=e.M},function(e){a=e.aO,i=e.D,n=e.L,s=e.R,o=e.ag,h=e._,c=e.i,l=e.u,d=e.x,u=e.y,_=e.H,m=e.b},function(e){g=e.C,p=e.L,v=e.S,w=e.T},function(e){b=e.a,f=e.ak,C=e.ap,S=e.Q,y=e.A,L=e.C,B=e.aN,M=e.a$,I=e.bI,x=e.l,G=e.bw,j=e.Z,E=e.bP},function(e){F=e.D},function(e){O=e.G},function(){}],execute:function(){const P=[new i("script-loader",t),new i("glb-input-manager",class extends a{},1),new i("logger",n),new i("rapi-access",s)];class D extends g{constructor(){super(...arguments),this.shouldIgnoreStandardBehavior=!1}adjust(e,t,r,a,i){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 f(n,s);let o=new C(-Math.PI/2+a,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 k extends p{constructor(e,t){super(e,t),this._params={ambientLight:{color:"#ffffff"}},this._ambientLight=new y(new L(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 L(e)})}}}class R extends v{constructor(e,t){super(e,t,l.GLB,B.CAMERA_3D),this._itemsCount=0,this._standardSceneBackgroundColor=this._scene.background,this._initData.legacyLight&&(this._renderer.capabilities.maxTextures>8?this.loadDynamicLightSetting(d.createDynamicLightSettingSource(null,u.CAMERA)):(console.warn("this device has a maximum of 8 texture units thus we are using a simpler light setting"),this._lightSetting=new k(this._scene)))}createCameraControl(e,t){this._changeCameraBehaviour(new O(new D(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=M(r);return a?this.loadGLB(a,!0,void 0,t):Promise.reject(new Error("GLB Url not detected"))}loadGLB(e,t=!0,r=new b(1,1,1),a){return this.clearScene(),new Promise((i,n)=>{this._loadGLB(e,new b(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 f).setFromObject(this._currentGLB);t&&this.cameraBehaviour.cameraControl instanceof D&&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 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 j&&(s.aspect=t/r,s.updateProjectionMatrix()),null===(i=this._lightSetting)||void 0===i||i.removeFromScene();let o=new F(this._scene);e.render(this._scene,s);let h=e.domElement.toDataURL();e.domElement.toBlob(e=>{a({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,a){if(this.cameraBehaviour.cameraControl instanceof D){let i=(new f).setFromObject(this._scene).getSize(new b);this.cameraBehaviour.cameraControl.adjust(i,e,t,r,a),this._requestRender()}}onStart(e){this._itemsCount=e,this._scene.background=null,this.cameraBehaviour.cameraControl instanceof D&&(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 D&&(this.cameraBehaviour.cameraControl.shouldIgnoreStandardBehavior=!1)}clearScene(){this._currentGLB&&(this._scene.remove(this._currentGLB),_(this._currentGLB),this._currentGLB=null),super.clearScene()}enableHD(){super.enableHD()}sceneChanged(){}getBounds(){return this._currentGLB?(new f).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],R.prototype,"_glbInputManager",void 0),h([c],R.prototype,"_rapiAccess",void 0);class z{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 A{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 R(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 a=JSON.parse(e);this._scriptLoader.fetch("static/jszip.min-c96375d50e72b199.js",{id:"jszip-js"}).then(()=>{let e=new z(this._sceneManager,t,r);e.addListener(this._sceneManager),e.start(a.items).then(t=>{t.generateAsync({type:"blob"}).then(t=>{E("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}}h([c],A.prototype,"_rapiAccess",void 0),h([c],A.prototype,"_domHelper",void 0),h([c],A.prototype,"_scriptLoader",void 0),h([c],A.prototype,"_lifeCycleManager",void 0),h([c],A.prototype,"_initData",void 0),h([c],A.prototype,"_globalInitData",void 0),h([c],A.prototype,"_globalCallback",void 0),h([c],A.prototype,"_unitFormatter",void 0),h([c],A.prototype,"_idbManager",void 0),e("GlbViewer",class extends r{setupGlobals(){}setupDependencies(){m.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 A(this._context),window.RoomleGLBViewer||(window.RoomleGLBViewer=this._viewer)}getApi(){return this._viewer}getContextName(){return"glb-viewer"}})}}}));
2
- //# sourceMappingURL=glb-viewer-8ddcb4d5.legacy.js.map
1
+ System.register(["./script-loader-ea33e7a8.legacy.js","./roomle-dependency-injection-edc88f31.legacy.js","./camera-behaviour-ee8ad64b.legacy.js","./main-thread-to-worker-6115d235.legacy.js","./default-light-setting-363d7d18.legacy.js","./glb-viewer-camera-behaviour-ecef15aa.legacy.js","./query-params-helper-28b451be.legacy.js"],(function(e){var t,r,a,i,n,s,o,h,c,l,d,_,u,m,g,p,v,w,b,C,f,S,y,L,M,B,I,x,G,j,E,F,O;return{setters:[function(e){t=e.S,r=e.M},function(e){a=e.aO,i=e.D,n=e.L,s=e.R,o=e.ag,h=e._,c=e.i,l=e.u,d=e.x,_=e.y,u=e.H,m=e.b},function(e){g=e.C,p=e.L,v=e.S,w=e.T},function(e){b=e.a,C=e.ak,f=e.ao,S=e.Q,y=e.A,L=e.C,M=e.aM,B=e.a_,I=e.bH,x=e.j,G=e.bv,j=e.J,E=e.bO},function(e){F=e.D},function(e){O=e.G},function(){}],execute:function(){const D=[new i("script-loader",t),new i("glb-input-manager",class extends a{},1),new i("logger",n),new i("rapi-access",s)];class P extends g{constructor(){super(...arguments),this.shouldIgnoreStandardBehavior=!1}adjust(e,t,r,a,i){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+a,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 k extends p{constructor(e,t){super(e,t),this._params={ambientLight:{color:"#ffffff"}},this._ambientLight=new y(new L(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 L(e)})}}}class R 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,_.CAMERA)):(console.warn("this device has a maximum of 8 texture units thus we are using a simpler light setting"),this._lightSetting=new k(this._scene)))}createCameraControl(e,t){this._changeCameraBehaviour(new O(new P(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=B(r);return a?this.loadGLB(a,!0,void 0,t):Promise.reject(new Error("GLB Url not detected"))}loadGLB(e,t=!0,r=new b(1,1,1),a){return this.clearScene(),new Promise((i,n)=>{this._loadGLB(e,new b(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 C).setFromObject(this._currentGLB);t&&this.cameraBehaviour.cameraControl instanceof P&&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 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 j&&(s.aspect=t/r,s.updateProjectionMatrix()),null===(i=this._lightSetting)||void 0===i||i.removeFromScene();let o=new F(this._scene);e.render(this._scene,s);let h=e.domElement.toDataURL();e.domElement.toBlob(e=>{a({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,a){if(this.cameraBehaviour.cameraControl instanceof P){let i=(new C).setFromObject(this._scene).getSize(new b);this.cameraBehaviour.cameraControl.adjust(i,e,t,r,a),this._requestRender()}}onStart(e){this._itemsCount=e,this._scene.background=null,this.cameraBehaviour.cameraControl instanceof P&&(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 P&&(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],R.prototype,"_glbInputManager",void 0),h([c],R.prototype,"_rapiAccess",void 0);class z{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 A{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 R(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 a=JSON.parse(e);this._scriptLoader.fetch("static/jszip.min-c96375d50e72b199.js",{id:"jszip-js"}).then(()=>{let e=new z(this._sceneManager,t,r);e.addListener(this._sceneManager),e.start(a.items).then(t=>{t.generateAsync({type:"blob"}).then(t=>{E("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}}h([c],A.prototype,"_rapiAccess",void 0),h([c],A.prototype,"_domHelper",void 0),h([c],A.prototype,"_scriptLoader",void 0),h([c],A.prototype,"_lifeCycleManager",void 0),h([c],A.prototype,"_initData",void 0),h([c],A.prototype,"_globalInitData",void 0),h([c],A.prototype,"_globalCallback",void 0),h([c],A.prototype,"_unitFormatter",void 0),h([c],A.prototype,"_idbManager",void 0),e("GlbViewer",class extends r{setupGlobals(){}setupDependencies(){m.setup(D),this.lookup("logger",this._context)}cleanUpGlobals(){throw new Error("Method not implemented.")}cleanUpDependencies(){throw new Error("Method not implemented.")}bootFinished(){this._viewer=new A(this._context),window.RoomleGLBViewer||(window.RoomleGLBViewer=this._viewer)}getApi(){return this._viewer}getContextName(){return"glb-viewer"}})}}}));
2
+ //# sourceMappingURL=glb-viewer-6b8d3a35.legacy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"glb-viewer-8ddcb4d5.legacy.js","sources":["../../../node_modules/jszip/dist/jszip.min.js"],"sourcesContent":["export default \"static/jszip.min-c96375d50e72b199.js\""],"names":[],"mappings":"qzPAAe"}
1
+ {"version":3,"file":"glb-viewer-6b8d3a35.legacy.js","sources":["../../../node_modules/jszip/dist/jszip.min.js"],"sourcesContent":["export default \"static/jszip.min-c96375d50e72b199.js\""],"names":[],"mappings":"qzPAAe"}
@@ -1,2 +1,2 @@
1
- System.register(["./camera-behaviour-cf86d84e.legacy.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-6f39e9d3.legacy.js.map
1
+ System.register(["./camera-behaviour-ee8ad64b.legacy.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-ecef15aa.legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glb-viewer-camera-behaviour-ecef15aa.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- System.register(["./glb-viewer-8ddcb4d5.legacy.js","./script-loader-ad8989f8.legacy.js","./query-params-helper-9bc9aa02.legacy.js","./main-thread-to-worker-1ffd1d44.legacy.js","./roomle-dependency-injection-a668ec53.legacy.js","./camera-behaviour-cf86d84e.legacy.js","./default-light-setting-3bd0fca6.legacy.js","./glb-viewer-camera-behaviour-6f39e9d3.legacy.js"],(function(){var e;return{setters:[function(c){e=c.GlbViewer},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){(new e).boot()}}}));
1
+ System.register(["./glb-viewer-6b8d3a35.legacy.js","./script-loader-ea33e7a8.legacy.js","./query-params-helper-28b451be.legacy.js","./main-thread-to-worker-6115d235.legacy.js","./roomle-dependency-injection-edc88f31.legacy.js","./camera-behaviour-ee8ad64b.legacy.js","./default-light-setting-363d7d18.legacy.js","./glb-viewer-camera-behaviour-ecef15aa.legacy.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.legacy.js.map
@@ -1,2 +1,2 @@
1
- System.register(["./main-thread-to-worker-1ffd1d44.legacy.js","./roomle-dependency-injection-a668ec53.legacy.js"],(function(e){var t,n;return{setters:[function(e){t=e.bP},function(e){n=e.$}],execute:function(){const r=(e,t)=>`${e.x.toFixed(t)},${e.y.toFixed(t)},${e.z.toFixed(t)}`,o=(e,t)=>{let n="";for(let r=0;r<t.length;r++)n+=`<${e}${r+1}>${t[r]}</${e}${r+1}>\n `;return n},a=e("createHomagIxXml",(e={},t={},n={},a)=>{return`<?xml version="1.0" encoding="UTF-8"?>\n <XML type="ListBuilder">\n <Order No="${e.orderNumber}" DispDate="${e.dispatchDate}" Basket="${e.basketNumber}">\n ${i=t,`<Head>\n <COMM>${i.comm}</COMM>\n <ARTICLENO>${i.articleno}</ARTICLENO>\n <CUSTOMER>${i.customer}</CUSTOMER>\n <RETAILER>${i.retailer}</RETAILER>\n <CLIENT>${i.client}</CLIENT>\n <PROGRAM>${i.program}</PROGRAM>\n <EMPLOYEE>${i.employee}</EMPLOYEE>\n <TEXT_LONG>${i.textLong}</TEXT_LONG>\n <TEXT_SHORT>${i.textShort}</TEXT_SHORT>\n\n ${o("COLOUR",i.colour)}\n ${o("INFO",i.info)}\n ${o("ADDRESS",i.address)}\n ${o("BILLING_ADDRESS",i.billingAddress)}\n ${o("SHIPPING_ADDRESS",i.shippingAddress)}\n ${o("ORDER_PRICE_INFO",i.orderPriceInfo)}\n ${o("CUSTOM_INFO",i.customInfo)}\n </Head>`}\n <BuilderList>\n ${((e={},t)=>{let n="";for(let i=0;i<t.length;i++)n+=`<Set LineNo="${i+1}">${o=e,a=t[i],`\n <Pname>${a.name}</Pname>\n <Count>${a.count}</Count>\n <PVarString>${a.attributes}</PVarString>\n <ARTICLE_TEXT_INFO1>${o.articleTextInfo1||""}</ARTICLE_TEXT_INFO1>\n <ARTICLE_TEXT_INFO2>${o.articleTextInfo2||""}</ARTICLE_TEXT_INFO2>\n <ARTICLE_PRICE_INFO1>${o.articlePriceInfo1||""}</ARTICLE_PRICE_INFO1>\n <ARTICLE_PRICE_INFO2>${o.articlePriceInfo2||""}</ARTICLE_PRICE_INFO2>\n <ARTICLE_PRICE_INFO3>${o.articlePriceInfo3||""}</ARTICLE_PRICE_INFO3>\n <Pinsertion>${r(a.position,2)}</Pinsertion>\n <POrntation>${r(a.rotation,2)}</POrntation>\n <DeliveryPeriod>${o.deliveryPeriod||""}</DeliveryPeriod>\n <LIEFERANT>${o.supplier||""}</LIEFERANT>\n <Mengenrabatt>${o.discount||0}</Mengenrabatt>\n <MengenrabattAbs>${o.discountAbs||""}</MengenrabattAbs>\n `}</Set>\n `;var o,a;return n})(n,a.articles)}\n </BuilderList>\n </Order>\n </XML>\n `;var i}),i=e("getFakeOrderParams",()=>{const e=Math.floor(1e6*Math.random()).toString();return{orderNumber:"Order "+e,dispatchDate:"9/11/1911",basketNumber:e}}),s=e("getFakeHeaderParams",()=>({comm:"Rubens2Rembrand",articleno:"ExampleSIM",customer:"Roomle",retailer:"Retail",client:"Ex ClientName",program:"program",employee:"Homag",textLong:"long long long txt",textShort:"short txt",colour:["colour1","colour2","colour3","colour4","colour5"],info:["1Admin","2Firma_ABC","3Adresse_ABC","4PLZ_ABC","5Stadt_ABC","6","7","8","9","10","11","12"],address:["Admin","Firma_ABC","Adresse_ABC","PLZ_ABC","Stadt_ABC","Kundennummer_ABC","Land_ABC"],billingAddress:["Optional1","Optional2","Optional3","Optional4","Optional5","Optional6"],shippingAddress:["opt","opt","opt","opt","opt","opt"],orderPriceInfo:["000","Price002","Price003","Price004","Price005"],customInfo:["CustInf1","CustInf2","CustInf3","CustInf4","CustInf5","CustInf6","CustInf7","CustInf8","CustInf9","CustInf10"]})),c=e("getFakeArticleParams",()=>({}));e("downloadHomagIxExportPoC",async(e,r,o)=>{const l=n(e.objects);let I=[];for(const e of l){const t=e.configurationRuntimeId;try{const e=JSON.parse(r.generateExport(2,t,o));I=I.concat(e.articles)}catch(e){return console.error(e),Promise.reject("Could not create export JSON 2")}}const d=i(),u=s(),E=c(),C=a(d,u,E,{articles:I});return t("IMOSiX.xml",C),Promise.resolve()}),e("generateExportHomagIxConfiguration",async(e,t,n,r,o="")=>{try{return n.setDefaultExportDataDefinition(o),Promise.resolve(JSON.parse(n.generateExport(t,e,r)))}catch(e){return console.error(e),Promise.reject("Could not create export JSON "+t)}}),e("homagIxMockUpData",(e,t={},n={},r={})=>(t=i(),n=s(),r=c(),a(t,n,r,e)))}}}));
2
- //# sourceMappingURL=imos-ix-poc-export-helper-dc591729.legacy.js.map
1
+ System.register(["./main-thread-to-worker-6115d235.legacy.js","./roomle-dependency-injection-edc88f31.legacy.js"],(function(e){var t,n;return{setters:[function(e){t=e.bO},function(e){n=e.$}],execute:function(){const r=(e,t)=>`${e.x.toFixed(t)},${e.y.toFixed(t)},${e.z.toFixed(t)}`,o=(e,t)=>{let n="";for(let r=0;r<t.length;r++)n+=`<${e}${r+1}>${t[r]}</${e}${r+1}>\n `;return n},a=e("createHomagIxXml",(e={},t={},n={},a)=>{return`<?xml version="1.0" encoding="UTF-8"?>\n <XML type="ListBuilder">\n <Order No="${e.orderNumber}" DispDate="${e.dispatchDate}" Basket="${e.basketNumber}">\n ${i=t,`<Head>\n <COMM>${i.comm}</COMM>\n <ARTICLENO>${i.articleno}</ARTICLENO>\n <CUSTOMER>${i.customer}</CUSTOMER>\n <RETAILER>${i.retailer}</RETAILER>\n <CLIENT>${i.client}</CLIENT>\n <PROGRAM>${i.program}</PROGRAM>\n <EMPLOYEE>${i.employee}</EMPLOYEE>\n <TEXT_LONG>${i.textLong}</TEXT_LONG>\n <TEXT_SHORT>${i.textShort}</TEXT_SHORT>\n\n ${o("COLOUR",i.colour)}\n ${o("INFO",i.info)}\n ${o("ADDRESS",i.address)}\n ${o("BILLING_ADDRESS",i.billingAddress)}\n ${o("SHIPPING_ADDRESS",i.shippingAddress)}\n ${o("ORDER_PRICE_INFO",i.orderPriceInfo)}\n ${o("CUSTOM_INFO",i.customInfo)}\n </Head>`}\n <BuilderList>\n ${((e={},t)=>{let n="";for(let i=0;i<t.length;i++)n+=`<Set LineNo="${i+1}">${o=e,a=t[i],`\n <Pname>${a.name}</Pname>\n <Count>${a.count}</Count>\n <PVarString>${a.attributes}</PVarString>\n <ARTICLE_TEXT_INFO1>${o.articleTextInfo1||""}</ARTICLE_TEXT_INFO1>\n <ARTICLE_TEXT_INFO2>${o.articleTextInfo2||""}</ARTICLE_TEXT_INFO2>\n <ARTICLE_PRICE_INFO1>${o.articlePriceInfo1||""}</ARTICLE_PRICE_INFO1>\n <ARTICLE_PRICE_INFO2>${o.articlePriceInfo2||""}</ARTICLE_PRICE_INFO2>\n <ARTICLE_PRICE_INFO3>${o.articlePriceInfo3||""}</ARTICLE_PRICE_INFO3>\n <Pinsertion>${r(a.position,2)}</Pinsertion>\n <POrntation>${r(a.rotation,2)}</POrntation>\n <DeliveryPeriod>${o.deliveryPeriod||""}</DeliveryPeriod>\n <LIEFERANT>${o.supplier||""}</LIEFERANT>\n <Mengenrabatt>${o.discount||0}</Mengenrabatt>\n <MengenrabattAbs>${o.discountAbs||""}</MengenrabattAbs>\n `}</Set>\n `;var o,a;return n})(n,a.articles)}\n </BuilderList>\n </Order>\n </XML>\n `;var i}),i=e("getFakeOrderParams",()=>{const e=Math.floor(1e6*Math.random()).toString();return{orderNumber:"Order "+e,dispatchDate:"9/11/1911",basketNumber:e}}),s=e("getFakeHeaderParams",()=>({comm:"Rubens2Rembrand",articleno:"ExampleSIM",customer:"Roomle",retailer:"Retail",client:"Ex ClientName",program:"program",employee:"Homag",textLong:"long long long txt",textShort:"short txt",colour:["colour1","colour2","colour3","colour4","colour5"],info:["1Admin","2Firma_ABC","3Adresse_ABC","4PLZ_ABC","5Stadt_ABC","6","7","8","9","10","11","12"],address:["Admin","Firma_ABC","Adresse_ABC","PLZ_ABC","Stadt_ABC","Kundennummer_ABC","Land_ABC"],billingAddress:["Optional1","Optional2","Optional3","Optional4","Optional5","Optional6"],shippingAddress:["opt","opt","opt","opt","opt","opt"],orderPriceInfo:["000","Price002","Price003","Price004","Price005"],customInfo:["CustInf1","CustInf2","CustInf3","CustInf4","CustInf5","CustInf6","CustInf7","CustInf8","CustInf9","CustInf10"]})),c=e("getFakeArticleParams",()=>({}));e("downloadHomagIxExportPoC",async(e,r,o)=>{const l=n(e.objects);let I=[];for(const e of l){const t=e.configurationRuntimeId;try{const e=JSON.parse(r.generateExport(2,t,o));I=I.concat(e.articles)}catch(e){return console.error(e),Promise.reject("Could not create export JSON 2")}}const d=i(),u=s(),E=c(),C=a(d,u,E,{articles:I});return t("IMOSiX.xml",C),Promise.resolve()}),e("generateExportHomagIxConfiguration",async(e,t,n,r,o="")=>{try{return n.setDefaultExportDataDefinition(o),Promise.resolve(JSON.parse(n.generateExport(t,e,r)))}catch(e){return console.error(e),Promise.reject("Could not create export JSON "+t)}}),e("homagIxMockUpData",(e,t={},n={},r={})=>(t=i(),n=s(),r=c(),a(t,n,r,e)))}}}));
2
+ //# sourceMappingURL=imos-ix-poc-export-helper-2b70fa34.legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imos-ix-poc-export-helper-2b70fa34.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}