@roomle/web-sdk 2.97.0-alpha.2 → 2.97.0-alpha.20

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 (261) hide show
  1. package/lib/{TextGeometry-d5ab257f.js → TextGeometry-086a9652.js} +2 -2
  2. package/lib/{TextGeometry-d5ab257f.js.map → TextGeometry-086a9652.js.map} +1 -1
  3. package/lib/{TextGeometry-66b58260.nomodule.js → TextGeometry-a4cc5df3.nomodule.js} +2 -2
  4. package/lib/{TextGeometry-66b58260.nomodule.js.map → TextGeometry-a4cc5df3.nomodule.js.map} +1 -1
  5. package/lib/{banana-for-scale-16acf5b6.nomodule.js → banana-for-scale-6ae6223e.nomodule.js} +2 -2
  6. package/lib/{banana-for-scale-16acf5b6.nomodule.js.map → banana-for-scale-6ae6223e.nomodule.js.map} +1 -1
  7. package/lib/{banana-for-scale-95a5b11f.js → banana-for-scale-f9f79fa6.js} +2 -2
  8. package/lib/{banana-for-scale-95a5b11f.js.map → banana-for-scale-f9f79fa6.js.map} +1 -1
  9. package/lib/{budgeteer-measure-0840f510.js → budgeteer-measure-99563441.js} +2 -2
  10. package/lib/{budgeteer-measure-0840f510.js.map → budgeteer-measure-99563441.js.map} +1 -1
  11. package/lib/budgeteer-measure.nomodule.js +1 -1
  12. package/lib/camera-behaviour-0f0475c0.nomodule.js +2 -0
  13. package/lib/{camera-behaviour-328a4451.nomodule.js.map → camera-behaviour-0f0475c0.nomodule.js.map} +1 -1
  14. package/lib/camera-behaviour-61d39bd3.js +2 -0
  15. package/lib/{camera-behaviour-9161f77c.js.map → camera-behaviour-61d39bd3.js.map} +1 -1
  16. package/lib/{component-dimensioning-9f8a61b3.nomodule.js → component-dimensioning-1ff17cc9.nomodule.js} +2 -2
  17. package/lib/component-dimensioning-1ff17cc9.nomodule.js.map +1 -0
  18. package/lib/{component-dimensioning-d6606e4b.js → component-dimensioning-f8556eb0.js} +2 -2
  19. package/lib/component-dimensioning-f8556eb0.js.map +1 -0
  20. package/lib/{component-raycast-helper-a8006ddd.js → component-raycast-helper-158a222d.js} +2 -2
  21. package/lib/component-raycast-helper-158a222d.js.map +1 -0
  22. package/lib/{component-raycast-helper-af6d2ec7.nomodule.js → component-raycast-helper-f0e3053d.nomodule.js} +2 -2
  23. package/lib/component-raycast-helper-f0e3053d.nomodule.js.map +1 -0
  24. package/lib/{configurator-2e647c98.nomodule.js → configurator-19a5f2ec.nomodule.js} +2 -2
  25. package/lib/configurator-19a5f2ec.nomodule.js.map +1 -0
  26. package/lib/{configurator-5803f0e6.js → configurator-3d0c3674.js} +2 -2
  27. package/lib/configurator-3d0c3674.js.map +1 -0
  28. package/lib/configurator-main-5e7f0897.js +2 -0
  29. package/lib/configurator-main-5e7f0897.js.map +1 -0
  30. package/lib/configurator-main.nomodule.js +1 -1
  31. package/lib/{continuous-drawing-helper-7caf11ea.js → continuous-drawing-helper-6947990a.js} +2 -2
  32. package/lib/continuous-drawing-helper-6947990a.js.map +1 -0
  33. package/lib/{continuous-drawing-helper-8b4ee035.nomodule.js → continuous-drawing-helper-7534a461.nomodule.js} +2 -2
  34. package/lib/continuous-drawing-helper-7534a461.nomodule.js.map +1 -0
  35. package/lib/{default-light-setting-ef456067.js → default-light-setting-2a019375.js} +2 -2
  36. package/lib/default-light-setting-2a019375.js.map +1 -0
  37. package/lib/{default-light-setting-db81ff6b.nomodule.js → default-light-setting-c997d655.nomodule.js} +2 -2
  38. package/lib/default-light-setting-c997d655.nomodule.js.map +1 -0
  39. package/lib/definitions/common-core/src/view-model/configurator-view-model.d.ts +0 -1
  40. package/lib/definitions/common-core/src/view-model/plan-element-view-model.d.ts +0 -1
  41. package/lib/definitions/configurator-core/src/webgl/configurator-scene-manager.d.ts +2 -2
  42. package/lib/definitions/packages/common-core/src/view-model/configurator-view-model.d.ts +0 -1
  43. package/lib/definitions/packages/common-core/src/view-model/plan-element-view-model.d.ts +0 -1
  44. package/lib/definitions/packages/configurator-core/src/webgl/configurator-scene-manager.d.ts +2 -2
  45. package/lib/definitions/packages/planner-core/src/external-object-api-callbacks.d.ts +2 -1
  46. package/lib/definitions/packages/planner-core/src/roomle-planner-ui-callback.d.ts +2 -2
  47. package/lib/definitions/packages/planner-core/src/services/planner-kernel-access.d.ts +2 -1
  48. package/lib/definitions/packages/planner-core/src/utils/planner-selection-handler.d.ts +1 -1
  49. package/lib/definitions/packages/planner-core/src/view-model/plan-view-model.d.ts +2 -2
  50. package/lib/definitions/packages/planner-core/src/view-model/wall-plan-element-view-model.d.ts +1 -1
  51. package/lib/definitions/packages/planner-core/src/webgl/planner-scene-manager.d.ts +4 -4
  52. package/lib/definitions/packages/typings/kernel.d.ts +12 -7
  53. package/lib/definitions/planner-core/src/external-object-api-callbacks.d.ts +2 -1
  54. package/lib/definitions/planner-core/src/roomle-planner-ui-callback.d.ts +2 -2
  55. package/lib/definitions/planner-core/src/services/planner-kernel-access.d.ts +2 -1
  56. package/lib/definitions/planner-core/src/utils/planner-selection-handler.d.ts +1 -1
  57. package/lib/definitions/planner-core/src/view-model/plan-view-model.d.ts +2 -2
  58. package/lib/definitions/planner-core/src/view-model/wall-plan-element-view-model.d.ts +1 -1
  59. package/lib/definitions/planner-core/src/webgl/planner-scene-manager.d.ts +4 -4
  60. package/lib/definitions/typings/kernel.d.ts +12 -7
  61. package/lib/{dimensioning-helper-ecbf0b7d.js → dimensioning-helper-58724a7d.js} +2 -2
  62. package/lib/{dimensioning-helper-ecbf0b7d.js.map → dimensioning-helper-58724a7d.js.map} +1 -1
  63. package/lib/{dimensioning-helper-d8a3584f.nomodule.js → dimensioning-helper-7e1a46a2.nomodule.js} +2 -2
  64. package/lib/{dimensioning-helper-d8a3584f.nomodule.js.map → dimensioning-helper-7e1a46a2.nomodule.js.map} +1 -1
  65. package/lib/{external-objects-b98b061c.nomodule.js → external-objects-5b70c3f6.nomodule.js} +2 -2
  66. package/lib/external-objects-5b70c3f6.nomodule.js.map +1 -0
  67. package/lib/{external-objects-3524f012.js → external-objects-bf17eb19.js} +2 -2
  68. package/lib/external-objects-bf17eb19.js.map +1 -0
  69. package/lib/{glb-viewer-e7628b7a.nomodule.js → glb-viewer-2af8faf1.nomodule.js} +2 -2
  70. package/lib/{glb-viewer-e7628b7a.nomodule.js.map → glb-viewer-2af8faf1.nomodule.js.map} +1 -1
  71. package/lib/{glb-viewer-camera-behaviour-248dc8b3.nomodule.js → glb-viewer-camera-behaviour-5dbe61d6.nomodule.js} +2 -2
  72. package/lib/glb-viewer-camera-behaviour-5dbe61d6.nomodule.js.map +1 -0
  73. package/lib/{glb-viewer-camera-behaviour-9ed91180.js → glb-viewer-camera-behaviour-84cf44fd.js} +2 -2
  74. package/lib/glb-viewer-camera-behaviour-84cf44fd.js.map +1 -0
  75. package/lib/{glb-viewer-e228046b.js → glb-viewer-e103d7a7.js} +2 -2
  76. package/lib/{glb-viewer-e228046b.js.map → glb-viewer-e103d7a7.js.map} +1 -1
  77. package/lib/glb-viewer-main-6463531b.js +2 -0
  78. package/lib/glb-viewer-main-6463531b.js.map +1 -0
  79. package/lib/glb-viewer-main.nomodule.js +1 -1
  80. package/lib/{imos-ix-poc-export-helper-6f26f995.nomodule.js → imos-ix-poc-export-helper-3fe5f230.nomodule.js} +2 -2
  81. package/lib/imos-ix-poc-export-helper-3fe5f230.nomodule.js.map +1 -0
  82. package/lib/{imos-ix-poc-export-helper-2ee65498.js → imos-ix-poc-export-helper-b6bd31d9.js} +2 -2
  83. package/lib/imos-ix-poc-export-helper-b6bd31d9.js.map +1 -0
  84. package/lib/legacy/TextGeometry-778d127b.legacy.js +2 -0
  85. package/lib/legacy/{TextGeometry-b2449075.legacy.js.map → TextGeometry-778d127b.legacy.js.map} +1 -1
  86. package/lib/legacy/{banana-for-scale-7aa314ae.legacy.js → banana-for-scale-f45d1dd3.legacy.js} +2 -2
  87. package/lib/legacy/{banana-for-scale-7aa314ae.legacy.js.map → banana-for-scale-f45d1dd3.legacy.js.map} +1 -1
  88. package/lib/legacy/budgeteer-measure.legacy.js +1 -1
  89. package/lib/legacy/camera-behaviour-942a887d.legacy.js +2 -0
  90. package/lib/legacy/{camera-behaviour-c9bfa3af.legacy.js.map → camera-behaviour-942a887d.legacy.js.map} +1 -1
  91. package/lib/legacy/{component-dimensioning-4d36e29f.legacy.js → component-dimensioning-fa7a748f.legacy.js} +2 -2
  92. package/lib/legacy/component-dimensioning-fa7a748f.legacy.js.map +1 -0
  93. package/lib/legacy/{component-raycast-helper-3bf74873.legacy.js → component-raycast-helper-dd7bfaf5.legacy.js} +2 -2
  94. package/lib/legacy/component-raycast-helper-dd7bfaf5.legacy.js.map +1 -0
  95. package/lib/legacy/{configurator-e2560d3f.legacy.js → configurator-0061d53a.legacy.js} +2 -2
  96. package/lib/legacy/configurator-0061d53a.legacy.js.map +1 -0
  97. package/lib/legacy/configurator-main.legacy.js +1 -1
  98. package/lib/legacy/{continuous-drawing-helper-fa606b19.legacy.js → continuous-drawing-helper-d271a1c3.legacy.js} +2 -2
  99. package/lib/legacy/continuous-drawing-helper-d271a1c3.legacy.js.map +1 -0
  100. package/lib/legacy/{default-light-setting-ff6b627c.legacy.js → default-light-setting-77ce8fbb.legacy.js} +2 -2
  101. package/lib/legacy/default-light-setting-77ce8fbb.legacy.js.map +1 -0
  102. package/lib/legacy/{dimensioning-helper-41eb5959.legacy.js → dimensioning-helper-8e5a857b.legacy.js} +2 -2
  103. package/lib/legacy/{dimensioning-helper-41eb5959.legacy.js.map → dimensioning-helper-8e5a857b.legacy.js.map} +1 -1
  104. package/lib/legacy/external-objects-2fd4ef1a.legacy.js +2 -0
  105. package/lib/legacy/external-objects-2fd4ef1a.legacy.js.map +1 -0
  106. package/lib/legacy/{glb-viewer-82e11cd4.legacy.js → glb-viewer-5fe97c3f.legacy.js} +2 -2
  107. package/lib/legacy/{glb-viewer-82e11cd4.legacy.js.map → glb-viewer-5fe97c3f.legacy.js.map} +1 -1
  108. package/lib/legacy/glb-viewer-camera-behaviour-8781072d.legacy.js +2 -0
  109. package/lib/legacy/glb-viewer-camera-behaviour-8781072d.legacy.js.map +1 -0
  110. package/lib/legacy/glb-viewer-main.legacy.js +1 -1
  111. package/lib/legacy/{imos-ix-poc-export-helper-88ecd6b0.legacy.js → imos-ix-poc-export-helper-2aad85f4.legacy.js} +2 -2
  112. package/lib/legacy/imos-ix-poc-export-helper-2aad85f4.legacy.js.map +1 -0
  113. package/lib/legacy/{main-thread-to-worker-8558f4b4.legacy.js → main-thread-to-worker-da6ad96a.legacy.js} +2 -2
  114. package/lib/legacy/{main-thread-to-worker-8558f4b4.legacy.js.map → main-thread-to-worker-da6ad96a.legacy.js.map} +1 -1
  115. package/lib/legacy/{material-viewer-2a8e1157.legacy.js → material-viewer-5de59a9e.legacy.js} +2 -2
  116. package/lib/legacy/material-viewer-5de59a9e.legacy.js.map +1 -0
  117. package/lib/legacy/material-viewer-main.legacy.js +1 -1
  118. package/lib/legacy/planner-73ec1b5d.legacy.js +2 -0
  119. package/lib/legacy/{planner-89e57d1b.legacy.js.map → planner-73ec1b5d.legacy.js.map} +1 -1
  120. package/lib/legacy/planner-main.legacy.js +1 -1
  121. package/lib/legacy/query-params-helper-e3e05119.legacy.js +2 -0
  122. package/lib/legacy/query-params-helper-e3e05119.legacy.js.map +1 -0
  123. package/lib/legacy/roomle-configurator-1b4e03f7.legacy.js +2 -0
  124. package/lib/legacy/roomle-configurator-1b4e03f7.legacy.js.map +1 -0
  125. package/lib/legacy/{roomle-dependency-injection-1bcc3c6e.legacy.js → roomle-dependency-injection-8c99230f.legacy.js} +2 -2
  126. package/lib/legacy/{roomle-dependency-injection-1bcc3c6e.legacy.js.map → roomle-dependency-injection-8c99230f.legacy.js.map} +1 -1
  127. package/lib/legacy/roomle-sdk.legacy.js +1 -1
  128. package/lib/legacy/{script-loader-381f2e85.legacy.js → script-loader-295b69c6.legacy.js} +2 -2
  129. package/lib/legacy/script-loader-295b69c6.legacy.js.map +1 -0
  130. package/lib/legacy/static/{ConfiguratorKernel-f5baba2ad8da5981.js → ConfiguratorKernel-81e1e8d2446f9c4f.js} +3 -3
  131. package/lib/legacy/static/ConfiguratorKernel-9ac5980cae9b11fc.wasm +0 -0
  132. package/lib/legacy/static/RoomleCore-11364e641bdfba03.wasm +0 -0
  133. package/lib/legacy/static/{RoomleCore-c415099abb531fe5.js → RoomleCore-8f083ee50c2ea9cb.js} +2 -2
  134. package/lib/legacy/static/RoomleToolsCore-69f83f65dbe6bf77.wasm +0 -0
  135. package/lib/legacy/{stats-helper-7f6bfca9.legacy.js → stats-helper-ce7cdb2a.legacy.js} +2 -2
  136. package/lib/legacy/stats-helper-ce7cdb2a.legacy.js.map +1 -0
  137. package/lib/legacy/{tools-core-0d635e65.legacy.js → tools-core-4b1f445b.legacy.js} +2 -2
  138. package/lib/legacy/tools-core-4b1f445b.legacy.js.map +1 -0
  139. package/lib/{main-thread-to-worker-7eb0b620.js → main-thread-to-worker-4e303a39.js} +2 -2
  140. package/lib/{main-thread-to-worker-7eb0b620.js.map → main-thread-to-worker-4e303a39.js.map} +1 -1
  141. package/lib/{main-thread-to-worker-7f5f8fc6.nomodule.js → main-thread-to-worker-ff3b0e7b.nomodule.js} +3 -3
  142. package/lib/{main-thread-to-worker-7f5f8fc6.nomodule.js.map → main-thread-to-worker-ff3b0e7b.nomodule.js.map} +1 -1
  143. package/lib/{material-viewer-48ab4028.nomodule.js → material-viewer-223267d5.nomodule.js} +2 -2
  144. package/lib/material-viewer-223267d5.nomodule.js.map +1 -0
  145. package/lib/{material-viewer-ed9bdc5c.js → material-viewer-249d8200.js} +2 -2
  146. package/lib/material-viewer-249d8200.js.map +1 -0
  147. package/lib/material-viewer-main-6ed6ef90.js +2 -0
  148. package/lib/material-viewer-main-6ed6ef90.js.map +1 -0
  149. package/lib/material-viewer-main.nomodule.js +1 -1
  150. package/lib/planner-70854c5c.js +2 -0
  151. package/lib/{planner-9389d6fd.js.map → planner-70854c5c.js.map} +1 -1
  152. package/lib/planner-baeb5f09.nomodule.js +2 -0
  153. package/lib/{planner-3e230a07.nomodule.js.map → planner-baeb5f09.nomodule.js.map} +1 -1
  154. package/lib/planner-main-77e3a14c.js +2 -0
  155. package/lib/planner-main-77e3a14c.js.map +1 -0
  156. package/lib/planner-main.nomodule.js +1 -1
  157. package/lib/{query-params-helper-7f284eed.js → query-params-helper-7890ce69.js} +2 -2
  158. package/lib/query-params-helper-7890ce69.js.map +1 -0
  159. package/lib/{query-params-helper-b084eb54.nomodule.js → query-params-helper-8731c6a6.nomodule.js} +2 -2
  160. package/lib/query-params-helper-8731c6a6.nomodule.js.map +1 -0
  161. package/lib/roomle-configurator-665e9982.nomodule.js +2 -0
  162. package/lib/roomle-configurator-665e9982.nomodule.js.map +1 -0
  163. package/lib/roomle-configurator-cb845650.js +2 -0
  164. package/lib/roomle-configurator-cb845650.js.map +1 -0
  165. package/lib/{roomle-dependency-injection-a7692d20.js → roomle-dependency-injection-26971ef3.js} +3 -3
  166. package/lib/{roomle-dependency-injection-a7692d20.js.map → roomle-dependency-injection-26971ef3.js.map} +1 -1
  167. package/lib/{roomle-dependency-injection-80a18a06.nomodule.js → roomle-dependency-injection-667e246d.nomodule.js} +2 -2
  168. package/lib/{roomle-dependency-injection-80a18a06.nomodule.js.map → roomle-dependency-injection-667e246d.nomodule.js.map} +1 -1
  169. package/lib/{roomle-sdk-7fea9904.js → roomle-sdk-f9f2f099.js} +2 -2
  170. package/lib/roomle-sdk-f9f2f099.js.map +1 -0
  171. package/lib/roomle-sdk.nomodule.js +1 -1
  172. package/lib/{script-loader-f19e5147.nomodule.js → script-loader-af4dcc41.nomodule.js} +2 -2
  173. package/lib/script-loader-af4dcc41.nomodule.js.map +1 -0
  174. package/lib/{script-loader-6ad7ba10.js → script-loader-cc316440.js} +2 -2
  175. package/lib/script-loader-cc316440.js.map +1 -0
  176. package/lib/static/{ConfiguratorKernel-f5baba2ad8da5981.js → ConfiguratorKernel-81e1e8d2446f9c4f.js} +1 -1
  177. package/lib/static/{ConfiguratorKernel-f5baba2ad8da5981.js.map → ConfiguratorKernel-81e1e8d2446f9c4f.js.map} +1 -1
  178. package/lib/static/ConfiguratorKernel-9ac5980cae9b11fc.wasm +0 -0
  179. package/lib/static/RoomleCore-11364e641bdfba03.wasm +0 -0
  180. package/lib/static/{RoomleCore-c415099abb531fe5.js → RoomleCore-8f083ee50c2ea9cb.js} +1 -1
  181. package/lib/static/{RoomleCore-c415099abb531fe5.js.map → RoomleCore-8f083ee50c2ea9cb.js.map} +1 -1
  182. package/lib/static/RoomleToolsCore-69f83f65dbe6bf77.wasm +0 -0
  183. package/lib/{stats-helper-28f7cd54.js → stats-helper-22758301.js} +2 -2
  184. package/lib/stats-helper-22758301.js.map +1 -0
  185. package/lib/{stats-helper-80c1093c.nomodule.js → stats-helper-3b511952.nomodule.js} +2 -2
  186. package/lib/stats-helper-3b511952.nomodule.js.map +1 -0
  187. package/lib/{tools-core-f9e9bebf.nomodule.js → tools-core-01f8bb98.nomodule.js} +2 -2
  188. package/lib/tools-core-01f8bb98.nomodule.js.map +1 -0
  189. package/lib/{tools-core-9668f76d.js → tools-core-3ae6a558.js} +2 -2
  190. package/lib/tools-core-3ae6a558.js.map +1 -0
  191. package/package.json +2 -2
  192. package/lib/camera-behaviour-328a4451.nomodule.js +0 -2
  193. package/lib/camera-behaviour-9161f77c.js +0 -2
  194. package/lib/component-dimensioning-9f8a61b3.nomodule.js.map +0 -1
  195. package/lib/component-dimensioning-d6606e4b.js.map +0 -1
  196. package/lib/component-raycast-helper-a8006ddd.js.map +0 -1
  197. package/lib/component-raycast-helper-af6d2ec7.nomodule.js.map +0 -1
  198. package/lib/configurator-2e647c98.nomodule.js.map +0 -1
  199. package/lib/configurator-5803f0e6.js.map +0 -1
  200. package/lib/configurator-main-09f1a012.js +0 -2
  201. package/lib/configurator-main-09f1a012.js.map +0 -1
  202. package/lib/continuous-drawing-helper-7caf11ea.js.map +0 -1
  203. package/lib/continuous-drawing-helper-8b4ee035.nomodule.js.map +0 -1
  204. package/lib/default-light-setting-db81ff6b.nomodule.js.map +0 -1
  205. package/lib/default-light-setting-ef456067.js.map +0 -1
  206. package/lib/external-objects-3524f012.js.map +0 -1
  207. package/lib/external-objects-b98b061c.nomodule.js.map +0 -1
  208. package/lib/glb-viewer-camera-behaviour-248dc8b3.nomodule.js.map +0 -1
  209. package/lib/glb-viewer-camera-behaviour-9ed91180.js.map +0 -1
  210. package/lib/glb-viewer-main-9eee44ba.js +0 -2
  211. package/lib/glb-viewer-main-9eee44ba.js.map +0 -1
  212. package/lib/imos-ix-poc-export-helper-2ee65498.js.map +0 -1
  213. package/lib/imos-ix-poc-export-helper-6f26f995.nomodule.js.map +0 -1
  214. package/lib/legacy/TextGeometry-b2449075.legacy.js +0 -2
  215. package/lib/legacy/camera-behaviour-c9bfa3af.legacy.js +0 -2
  216. package/lib/legacy/component-dimensioning-4d36e29f.legacy.js.map +0 -1
  217. package/lib/legacy/component-raycast-helper-3bf74873.legacy.js.map +0 -1
  218. package/lib/legacy/configurator-e2560d3f.legacy.js.map +0 -1
  219. package/lib/legacy/continuous-drawing-helper-fa606b19.legacy.js.map +0 -1
  220. package/lib/legacy/default-light-setting-ff6b627c.legacy.js.map +0 -1
  221. package/lib/legacy/external-objects-0b87738a.legacy.js +0 -2
  222. package/lib/legacy/external-objects-0b87738a.legacy.js.map +0 -1
  223. package/lib/legacy/glb-viewer-camera-behaviour-a9615a62.legacy.js +0 -2
  224. package/lib/legacy/glb-viewer-camera-behaviour-a9615a62.legacy.js.map +0 -1
  225. package/lib/legacy/imos-ix-poc-export-helper-88ecd6b0.legacy.js.map +0 -1
  226. package/lib/legacy/material-viewer-2a8e1157.legacy.js.map +0 -1
  227. package/lib/legacy/planner-89e57d1b.legacy.js +0 -2
  228. package/lib/legacy/query-params-helper-e86ebf5c.legacy.js +0 -2
  229. package/lib/legacy/query-params-helper-e86ebf5c.legacy.js.map +0 -1
  230. package/lib/legacy/roomle-configurator-9adb4aca.legacy.js +0 -2
  231. package/lib/legacy/roomle-configurator-9adb4aca.legacy.js.map +0 -1
  232. package/lib/legacy/script-loader-381f2e85.legacy.js.map +0 -1
  233. package/lib/legacy/static/ConfiguratorKernel-30eefa34a5e5d339.wasm +0 -0
  234. package/lib/legacy/static/RoomleCore-219ef0ef48d9b52e.wasm +0 -0
  235. package/lib/legacy/static/RoomleToolsCore-8fdc025c8f388f0e.wasm +0 -0
  236. package/lib/legacy/stats-helper-7f6bfca9.legacy.js.map +0 -1
  237. package/lib/legacy/tools-core-0d635e65.legacy.js.map +0 -1
  238. package/lib/material-viewer-48ab4028.nomodule.js.map +0 -1
  239. package/lib/material-viewer-ed9bdc5c.js.map +0 -1
  240. package/lib/material-viewer-main-4008b54a.js +0 -2
  241. package/lib/material-viewer-main-4008b54a.js.map +0 -1
  242. package/lib/planner-3e230a07.nomodule.js +0 -2
  243. package/lib/planner-9389d6fd.js +0 -2
  244. package/lib/planner-main-c3352b5f.js +0 -2
  245. package/lib/planner-main-c3352b5f.js.map +0 -1
  246. package/lib/query-params-helper-7f284eed.js.map +0 -1
  247. package/lib/query-params-helper-b084eb54.nomodule.js.map +0 -1
  248. package/lib/roomle-configurator-350a61fc.nomodule.js +0 -2
  249. package/lib/roomle-configurator-350a61fc.nomodule.js.map +0 -1
  250. package/lib/roomle-configurator-f81e7d6f.js +0 -2
  251. package/lib/roomle-configurator-f81e7d6f.js.map +0 -1
  252. package/lib/roomle-sdk-7fea9904.js.map +0 -1
  253. package/lib/script-loader-6ad7ba10.js.map +0 -1
  254. package/lib/script-loader-f19e5147.nomodule.js.map +0 -1
  255. package/lib/static/ConfiguratorKernel-30eefa34a5e5d339.wasm +0 -0
  256. package/lib/static/RoomleCore-219ef0ef48d9b52e.wasm +0 -0
  257. package/lib/static/RoomleToolsCore-8fdc025c8f388f0e.wasm +0 -0
  258. package/lib/stats-helper-28f7cd54.js.map +0 -1
  259. package/lib/stats-helper-80c1093c.nomodule.js.map +0 -1
  260. package/lib/tools-core-9668f76d.js.map +0 -1
  261. package/lib/tools-core-f9e9bebf.nomodule.js.map +0 -1
@@ -1,2 +1,2 @@
1
- System.register(["./roomle-dependency-injection-80a18a06.nomodule.js","./main-thread-to-worker-7f5f8fc6.nomodule.js","./TextGeometry-66b58260.nomodule.js"],(function(e){var i,t,n,s,o,a,h,d,l,_,r,g,m,c,w,p;return{setters:[function(e){i=e._,t=e.i},function(e){n=e.O,s=e.a,o=e.u,a=e.h,h=e.w,d=e.bo,l=e.B,_=e.G,r=e.z,g=e.b,m=e.Q,c=e.bP,w=e.b9},function(e){p=e.T}],execute:function(){const u="component_dimensioning_line_material",x="component_dimensioning_plane_material",y="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(u)?this._lineMaterial=this._cacheHolder.materialCache.get(u):(this._lineMaterial=new o({color:3618615}),this._cacheHolder.materialCache.set(u,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(y)?this._textMaterial=this._cacheHolder.materialCache.get(y):(this._textMaterial=new d({color:3618615}),this._cacheHolder.materialCache.set(y,this._textMaterial))}_init(){this._initMaterials();let e=new l;this._line=new _(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 l,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,depth:.001},d=this._dimensioning.label?this._dimensioning.label:this._unitFormatter.formatMMValueToUnitString(1e3*o),c=new p(d,h);c.computeBoundingBox();let w=c.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 u=[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(u),3)),this._line.geometry.dispose(),this._line.geometry=t,this.add(this._line),this._text.geometry=c,0===this._dimensioning.type.value&&this._addText(i,c,new m,new s(0,.04,0)),1===this._dimensioning.type.value){let e=new m,t=this._getXSign()>0?Math.PI/2:Math.PI/2*3;e.setFromAxisAngle(new s(0,0,1),t),this._addText(i,c,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 m).setFromAxisAngle(new s(-1,0,0),Math.PI/2),n=(new m).setFromAxisAngle(new s(0,0,1),e);this._addText(i,c,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 c(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)),d=n.clone().add(new s(this._dimensioning.to,t,0));this._addLine(o,a),this._addLine(h,d)}_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 c(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)),d=o.clone().add(new s(t,0,this._dimensioning.to)),l=o.clone().add(new s(n,0,this._dimensioning.to));this._addLine(a,h),this._addLine(d,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 c(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)),d=o.clone().add(new s(t,this._dimensioning.to,0)),l=o.clone().add(new s(n,this._dimensioning.to,0));this._addLine(a,h),this._addLine(d,l)}_addLine(e,i){let t=new l,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 _(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-9f8a61b3.nomodule.js.map
1
+ System.register(["./roomle-dependency-injection-667e246d.nomodule.js","./main-thread-to-worker-ff3b0e7b.nomodule.js","./TextGeometry-a4cc5df3.nomodule.js"],(function(e){var i,t,n,s,o,h,a,d,l,_,r,g,m,c,w,p;return{setters:[function(e){i=e._,t=e.i},function(e){n=e.O,s=e.a,o=e.u,h=e.h,a=e.w,d=e.bo,l=e.B,_=e.G,r=e.z,g=e.b,m=e.Q,c=e.bQ,w=e.b9},function(e){p=e.T}],execute:function(){const u="component_dimensioning_line_material",x="component_dimensioning_plane_material",y="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(u)?this._lineMaterial=this._cacheHolder.materialCache.get(u):(this._lineMaterial=new o({color:3618615}),this._cacheHolder.materialCache.set(u,this._lineMaterial)),this._cacheHolder.materialCache.has(x)?this._planeMaterial=this._cacheHolder.materialCache.get(x):(this._planeMaterial=new h({color:16777215,side:a,opacity:.8,transparent:!0}),this._cacheHolder.materialCache.set(x,this._planeMaterial)),this._cacheHolder.materialCache.has(y)?this._textMaterial=this._cacheHolder.materialCache.get(y):(this._textMaterial=new d({color:3618615}),this._cacheHolder.materialCache.set(y,this._textMaterial))}_init(){this._initMaterials();let e=new l;this._line=new _(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 l,n=Math.round(Math.max(this._size.y,this._size.x,this._size.z)),o=Math.abs(this._dimensioning.to-this._dimensioning.from),h=.025+(n<4?0:.005*n);o<.3&&(h*=.5+o);let a={font:this._font,size:h,height:.001,curveSegments:2,bevelEnabled:!0,bevelThickness:.001,bevelSize:.001,depth:.001},d=this._dimensioning.label?this._dimensioning.label:this._unitFormatter.formatMMValueToUnitString(1e3*o),c=new p(d,a);c.computeBoundingBox();let w=c.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 u=[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(u),3)),this._line.geometry.dispose(),this._line.geometry=t,this.add(this._line),this._text.geometry=c,0===this._dimensioning.type.value&&this._addText(i,c,new m,new s(0,.04,0)),1===this._dimensioning.type.value){let e=new m,t=this._getXSign()>0?Math.PI/2:Math.PI/2*3;e.setFromAxisAngle(new s(0,0,1),t),this._addText(i,c,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 m).setFromAxisAngle(new s(-1,0,0),Math.PI/2),n=(new m).setFromAxisAngle(new s(0,0,1),e);this._addText(i,c,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 c(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)),h=n.clone().add(new s(this._dimensioning.from,t,0)),a=n.clone().add(new s(this._dimensioning.to,i,0)),d=n.clone().add(new s(this._dimensioning.to,t,0));this._addLine(o,h),this._addLine(a,d)}_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 c(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 h=o.clone().add(new s(t,0,this._dimensioning.from)),a=o.clone().add(new s(n,0,this._dimensioning.from)),d=o.clone().add(new s(t,0,this._dimensioning.to)),l=o.clone().add(new s(n,0,this._dimensioning.to));this._addLine(h,a),this._addLine(d,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 c(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 h=o.clone().add(new s(t,this._dimensioning.from,0)),a=o.clone().add(new s(n,this._dimensioning.from,0)),d=o.clone().add(new s(t,this._dimensioning.to,0)),l=o.clone().add(new s(n,this._dimensioning.to,0));this._addLine(h,a),this._addLine(d,l)}_addLine(e,i){let t=new l,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 _(t,this._lineMaterial))}_addText(e,i,t,n){let o=e.getCenter(new s);n.x*=this._getXSign(),o.add(n);let h=i.boundingBox.getSize(new s);i.center(),this._text.position.copy(o),this._text.quaternion.copy(t),this.add(this._text);let a=new w(h.x+.02,h.y+.02,32);a.center(),this._plane.geometry=a,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-1ff17cc9.nomodule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-dimensioning-1ff17cc9.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{_ as __decorate,i as inject}from"./roomle-dependency-injection-a7692d20.js";import{O as Object3D,a as Vector3,u as LineBasicMaterial,h as MeshBasicMaterial,w as DoubleSide,bo as MeshPhongMaterial,B as BufferGeometry,G as Line,z as Mesh,b as BufferAttribute,Q as Quaternion,bP as Line3,b9 as PlaneGeometry}from"./main-thread-to-worker-7eb0b620.js";import{T as TextGeometry}from"./TextGeometry-d5ab257f.js";const LINE_MATERIAL="component_dimensioning_line_material",PLANE_MATERIAL="component_dimensioning_plane_material",TEXT_MATERIAL="component_dimensioning_text_material";class ComponentDimensioning extends Object3D{constructor(e,i,t,n){super(),this._center=i.getCenter(new Vector3),this._size=i.getSize(new Vector3),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(LINE_MATERIAL)?this._lineMaterial=this._cacheHolder.materialCache.get(LINE_MATERIAL):(this._lineMaterial=new LineBasicMaterial({color:3618615}),this._cacheHolder.materialCache.set(LINE_MATERIAL,this._lineMaterial)),this._cacheHolder.materialCache.has(PLANE_MATERIAL)?this._planeMaterial=this._cacheHolder.materialCache.get(PLANE_MATERIAL):(this._planeMaterial=new MeshBasicMaterial({color:16777215,side:DoubleSide,opacity:.8,transparent:!0}),this._cacheHolder.materialCache.set(PLANE_MATERIAL,this._planeMaterial)),this._cacheHolder.materialCache.has(TEXT_MATERIAL)?this._textMaterial=this._cacheHolder.materialCache.get(TEXT_MATERIAL):(this._textMaterial=new MeshPhongMaterial({color:3618615}),this._cacheHolder.materialCache.set(TEXT_MATERIAL,this._textMaterial))}_init(){this._initMaterials();let e=new BufferGeometry;this._line=new Line(e,this._lineMaterial),this._line.name="component dimension line "+this._dimensioning.type.value,this._text=new Mesh(e,this._textMaterial),this._text.name="component dimension text "+this._dimensioning.type.value,this._plane=new Mesh(e,this._planeMaterial),this._plane.name="component dimension plane "+this._dimensioning.type.value;let i,t=new BufferGeometry,n=Math.round(Math.max(this._size.y,this._size.x,this._size.z)),s=Math.abs(this._dimensioning.to-this._dimensioning.from),o=.025+(n<4?0:.005*n);s<.3&&(o*=.5+s);let a={font:this._font,size:o,height:.001,curveSegments:2,bevelEnabled:!0,bevelThickness:.001,bevelSize:.001,depth:.001},h=this._dimensioning.label?this._dimensioning.label:this._unitFormatter.formatMMValueToUnitString(1e3*s),r=new TextGeometry(h,a);r.computeBoundingBox();let _=r.boundingBox.getSize(new Vector3).y;0===this._dimensioning.type.value&&(i=this._getXEdge(_),this._addXEdgeSideLines(_)),1===this._dimensioning.type.value&&(i=this._getYEdge(_),this._addYEdgeSideLines(_)),2===this._dimensioning.type.value&&(i=this._getZEdge(_),this._addZEdgeSideLines(_));let l=[i.start.x,i.start.y,i.start.z,i.end.x,i.end.y,i.end.z];if(t.setAttribute("position",new BufferAttribute(new Float32Array(l),3)),this._line.geometry.dispose(),this._line.geometry=t,this.add(this._line),this._text.geometry=r,0===this._dimensioning.type.value&&this._addText(i,r,new Quaternion,new Vector3(0,.04,0)),1===this._dimensioning.type.value){let e=new Quaternion,t=this._getXSign()>0?Math.PI/2:Math.PI/2*3;e.setFromAxisAngle(new Vector3(0,0,1),t),this._addText(i,r,e,new Vector3(.04,0,0))}if(2===this._dimensioning.type.value){let e=this._getXSign()>0?Math.PI/2:Math.PI/2*3,t=(new Quaternion).setFromAxisAngle(new Vector3(-1,0,0),Math.PI/2),n=(new Quaternion).setFromAxisAngle(new Vector3(0,0,1),e);this._addText(i,r,t.multiply(n),new Vector3(.04,0,0))}}_getXEdge(e){let i=this._size.y+.05+(.06+e)*this._level;const t=new Vector3(0,this._origin.y,this._origin.z);let n=t.clone().add(new Vector3(this._dimensioning.from,i,0)),s=t.clone().add(new Vector3(this._dimensioning.to,i,0));return new Line3(n,s)}_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 Vector3(0,this._origin.y,this._origin.z);let s=n.clone().add(new Vector3(this._dimensioning.from,i,0)),o=n.clone().add(new Vector3(this._dimensioning.from,t,0)),a=n.clone().add(new Vector3(this._dimensioning.to,i,0)),h=n.clone().add(new Vector3(this._dimensioning.to,t,0));this._addLine(s,o),this._addLine(a,h)}_getZEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new Vector3(this._origin.x,this._origin.y,0);let n=t.clone().add(new Vector3(i,0,this._dimensioning.from)),s=t.clone().add(new Vector3(i,0,this._dimensioning.to));return new Line3(n,s)}_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 s=new Vector3(this._origin.x,this._origin.y,0);let o=s.clone().add(new Vector3(t,0,this._dimensioning.from)),a=s.clone().add(new Vector3(n,0,this._dimensioning.from)),h=s.clone().add(new Vector3(t,0,this._dimensioning.to)),r=s.clone().add(new Vector3(n,0,this._dimensioning.to));this._addLine(o,a),this._addLine(h,r)}_getYEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new Vector3(this._origin.x,0,this._origin.z);let n=t.clone().add(new Vector3(i,this._dimensioning.from,0)),s=t.clone().add(new Vector3(i,this._dimensioning.to,0));return new Line3(n,s)}_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 s=new Vector3(this._origin.x,0,this._origin.z);let o=s.clone().add(new Vector3(t,this._dimensioning.from,0)),a=s.clone().add(new Vector3(n,this._dimensioning.from,0)),h=s.clone().add(new Vector3(t,this._dimensioning.to,0)),r=s.clone().add(new Vector3(n,this._dimensioning.to,0));this._addLine(o,a),this._addLine(h,r)}_addLine(e,i){let t=new BufferGeometry,n=[e.x,e.y,e.z,i.x,i.y,i.z];t.setAttribute("position",new BufferAttribute(new Float32Array(n),3)),this.add(new Line(t,this._lineMaterial))}_addText(e,i,t,n){let s=e.getCenter(new Vector3);n.x*=this._getXSign(),s.add(n);let o=i.boundingBox.getSize(new Vector3);i.center(),this._text.position.copy(s),this._text.quaternion.copy(t),this.add(this._text);let a=new PlaneGeometry(o.x+.02,o.y+.02,32);a.center(),this._plane.geometry=a,this._plane.position.copy(s),this._plane.quaternion.copy(t),this.add(this._plane)}_getXSign(){return this._cameraPosition.x>=0?1:-1}}__decorate([inject],ComponentDimensioning.prototype,"_cacheHolder",void 0),__decorate([inject],ComponentDimensioning.prototype,"_unitFormatter",void 0);export{ComponentDimensioning as default};
2
- //# sourceMappingURL=component-dimensioning-d6606e4b.js.map
1
+ import{_ as __decorate,i as inject}from"./roomle-dependency-injection-26971ef3.js";import{O as Object3D,a as Vector3,u as LineBasicMaterial,h as MeshBasicMaterial,w as DoubleSide,bo as MeshPhongMaterial,B as BufferGeometry,G as Line,z as Mesh,b as BufferAttribute,Q as Quaternion,bQ as Line3,b9 as PlaneGeometry}from"./main-thread-to-worker-4e303a39.js";import{T as TextGeometry}from"./TextGeometry-086a9652.js";const LINE_MATERIAL="component_dimensioning_line_material",PLANE_MATERIAL="component_dimensioning_plane_material",TEXT_MATERIAL="component_dimensioning_text_material";class ComponentDimensioning extends Object3D{constructor(e,i,t,n){super(),this._center=i.getCenter(new Vector3),this._size=i.getSize(new Vector3),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(LINE_MATERIAL)?this._lineMaterial=this._cacheHolder.materialCache.get(LINE_MATERIAL):(this._lineMaterial=new LineBasicMaterial({color:3618615}),this._cacheHolder.materialCache.set(LINE_MATERIAL,this._lineMaterial)),this._cacheHolder.materialCache.has(PLANE_MATERIAL)?this._planeMaterial=this._cacheHolder.materialCache.get(PLANE_MATERIAL):(this._planeMaterial=new MeshBasicMaterial({color:16777215,side:DoubleSide,opacity:.8,transparent:!0}),this._cacheHolder.materialCache.set(PLANE_MATERIAL,this._planeMaterial)),this._cacheHolder.materialCache.has(TEXT_MATERIAL)?this._textMaterial=this._cacheHolder.materialCache.get(TEXT_MATERIAL):(this._textMaterial=new MeshPhongMaterial({color:3618615}),this._cacheHolder.materialCache.set(TEXT_MATERIAL,this._textMaterial))}_init(){this._initMaterials();let e=new BufferGeometry;this._line=new Line(e,this._lineMaterial),this._line.name="component dimension line "+this._dimensioning.type.value,this._text=new Mesh(e,this._textMaterial),this._text.name="component dimension text "+this._dimensioning.type.value,this._plane=new Mesh(e,this._planeMaterial),this._plane.name="component dimension plane "+this._dimensioning.type.value;let i,t=new BufferGeometry,n=Math.round(Math.max(this._size.y,this._size.x,this._size.z)),s=Math.abs(this._dimensioning.to-this._dimensioning.from),o=.025+(n<4?0:.005*n);s<.3&&(o*=.5+s);let a={font:this._font,size:o,height:.001,curveSegments:2,bevelEnabled:!0,bevelThickness:.001,bevelSize:.001,depth:.001},h=this._dimensioning.label?this._dimensioning.label:this._unitFormatter.formatMMValueToUnitString(1e3*s),r=new TextGeometry(h,a);r.computeBoundingBox();let _=r.boundingBox.getSize(new Vector3).y;0===this._dimensioning.type.value&&(i=this._getXEdge(_),this._addXEdgeSideLines(_)),1===this._dimensioning.type.value&&(i=this._getYEdge(_),this._addYEdgeSideLines(_)),2===this._dimensioning.type.value&&(i=this._getZEdge(_),this._addZEdgeSideLines(_));let l=[i.start.x,i.start.y,i.start.z,i.end.x,i.end.y,i.end.z];if(t.setAttribute("position",new BufferAttribute(new Float32Array(l),3)),this._line.geometry.dispose(),this._line.geometry=t,this.add(this._line),this._text.geometry=r,0===this._dimensioning.type.value&&this._addText(i,r,new Quaternion,new Vector3(0,.04,0)),1===this._dimensioning.type.value){let e=new Quaternion,t=this._getXSign()>0?Math.PI/2:Math.PI/2*3;e.setFromAxisAngle(new Vector3(0,0,1),t),this._addText(i,r,e,new Vector3(.04,0,0))}if(2===this._dimensioning.type.value){let e=this._getXSign()>0?Math.PI/2:Math.PI/2*3,t=(new Quaternion).setFromAxisAngle(new Vector3(-1,0,0),Math.PI/2),n=(new Quaternion).setFromAxisAngle(new Vector3(0,0,1),e);this._addText(i,r,t.multiply(n),new Vector3(.04,0,0))}}_getXEdge(e){let i=this._size.y+.05+(.06+e)*this._level;const t=new Vector3(0,this._origin.y,this._origin.z);let n=t.clone().add(new Vector3(this._dimensioning.from,i,0)),s=t.clone().add(new Vector3(this._dimensioning.to,i,0));return new Line3(n,s)}_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 Vector3(0,this._origin.y,this._origin.z);let s=n.clone().add(new Vector3(this._dimensioning.from,i,0)),o=n.clone().add(new Vector3(this._dimensioning.from,t,0)),a=n.clone().add(new Vector3(this._dimensioning.to,i,0)),h=n.clone().add(new Vector3(this._dimensioning.to,t,0));this._addLine(s,o),this._addLine(a,h)}_getZEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new Vector3(this._origin.x,this._origin.y,0);let n=t.clone().add(new Vector3(i,0,this._dimensioning.from)),s=t.clone().add(new Vector3(i,0,this._dimensioning.to));return new Line3(n,s)}_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 s=new Vector3(this._origin.x,this._origin.y,0);let o=s.clone().add(new Vector3(t,0,this._dimensioning.from)),a=s.clone().add(new Vector3(n,0,this._dimensioning.from)),h=s.clone().add(new Vector3(t,0,this._dimensioning.to)),r=s.clone().add(new Vector3(n,0,this._dimensioning.to));this._addLine(o,a),this._addLine(h,r)}_getYEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new Vector3(this._origin.x,0,this._origin.z);let n=t.clone().add(new Vector3(i,this._dimensioning.from,0)),s=t.clone().add(new Vector3(i,this._dimensioning.to,0));return new Line3(n,s)}_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 s=new Vector3(this._origin.x,0,this._origin.z);let o=s.clone().add(new Vector3(t,this._dimensioning.from,0)),a=s.clone().add(new Vector3(n,this._dimensioning.from,0)),h=s.clone().add(new Vector3(t,this._dimensioning.to,0)),r=s.clone().add(new Vector3(n,this._dimensioning.to,0));this._addLine(o,a),this._addLine(h,r)}_addLine(e,i){let t=new BufferGeometry,n=[e.x,e.y,e.z,i.x,i.y,i.z];t.setAttribute("position",new BufferAttribute(new Float32Array(n),3)),this.add(new Line(t,this._lineMaterial))}_addText(e,i,t,n){let s=e.getCenter(new Vector3);n.x*=this._getXSign(),s.add(n);let o=i.boundingBox.getSize(new Vector3);i.center(),this._text.position.copy(s),this._text.quaternion.copy(t),this.add(this._text);let a=new PlaneGeometry(o.x+.02,o.y+.02,32);a.center(),this._plane.geometry=a,this._plane.position.copy(s),this._plane.quaternion.copy(t),this.add(this._plane)}_getXSign(){return this._cameraPosition.x>=0?1:-1}}__decorate([inject],ComponentDimensioning.prototype,"_cacheHolder",void 0),__decorate([inject],ComponentDimensioning.prototype,"_unitFormatter",void 0);export{ComponentDimensioning as default};
2
+ //# sourceMappingURL=component-dimensioning-f8556eb0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-dimensioning-f8556eb0.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{bD as Raycaster,bX as throttle,z as Mesh,v as MeshStandardMaterial,ad as Box3,a as Vector3,am as Frustum,k as Matrix4}from"./main-thread-to-worker-7eb0b620.js";import{ar as transitionTransparencyOfMaterial}from"./roomle-dependency-injection-a7692d20.js";class ComponentRaycastHelper{constructor(){this._nonTransparentComponent=null,this._raycaster=new Raycaster,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=throttle(this.checkComponentVisibility,100).bind(this),this.checkPreviewVisibility=throttle(this.checkPreviewVisibility,100).bind(this)}setCamera(e){this._camera=e}setObject(e){this._object=e}changeMaterialsOnSelect(e,t,a=!1,i){t!==this._nonTransparentComponent&&(this._nonTransparentComponent=t,this._changeMaterialsOnSelect(e,t,a,i))}_changeMaterialsOnSelect(e,t,a=!1,i){if(e.children.length>0&&e.children.forEach(s=>{const n=t&&e.id===t.id||a,r=!(s instanceof Mesh);s.userData.ignoreComponentRaycast||this._changeMaterialsOnSelect(s,t,(!n||!r)&&n,i)}),t)e instanceof Mesh&&e.material instanceof MeshStandardMaterial&&!e.userData.oldMaterial&&(e.userData.oldMaterial=e.material,e.material=e.material.clone(),a||transitionTransparencyOfMaterial(e,{opacity:.2,transparent:!0}).then(()=>{null==i||i()}));else if(e.userData.oldMaterial&&e instanceof Mesh&&e.material instanceof MeshStandardMaterial){const{opacity:t,transparent:a}=e.userData.oldMaterial;transitionTransparencyOfMaterial(e,{opacity:t,transparent:a}).then(()=>null==i?void 0:i()),e.userData.oldMaterial=void 0}}isComponentVisible(e){const t=[];e.traverse(e=>t.push(e.uuid));const a=(new Box3).setFromObject(e).getCenter(new Vector3),i=(new Vector3).subVectors(a,this._camera.position).normalize();this._raycaster.set(this._camera.position,i),this._raycaster.far=this._camera.position.distanceTo(a);const s=[];return this._raycaster.intersectObjects(this._object.children,!0).forEach(e=>{e.object.material.visible&&(t.includes(e.object.uuid)||e.object.userData.ignoreComponentRaycast||s.push(e))}),0===s.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 a=t.getComponentsForIds(e.getSelectedRuntimeComponentIds());if(a.length>1)return;const i=a[0];this.isComponentVisible(i)?this.changeMaterialsOnSelect(this._object,null):this.changeMaterialsOnSelect(this._object,i)}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 Frustum,a=(new Matrix4).multiplyMatrices(this._camera.projectionMatrix,this._camera.matrixWorldInverse),i=new Box3;return t.setFromProjectionMatrix(a),e.map(e=>(e=>{const a=i.setFromObject(e).getCenter(new Vector3);return t.containsPoint(a)})(e)).reduce((e,t)=>e&&t)}checkPreviewVisibility(e){e.hasPreviewLines()||(this.areAllPreviewsVisible(e)?this.changeMaterialsOnSelect(this._object,null):this.changeMaterialsOnSelect(this._object,{id:-1}))}}export{ComponentRaycastHelper as default};
2
- //# sourceMappingURL=component-raycast-helper-a8006ddd.js.map
1
+ import{bD as Raycaster,bY as throttle,z as Mesh,v as MeshStandardMaterial,ad as Box3,a as Vector3,am as Frustum,k as Matrix4}from"./main-thread-to-worker-4e303a39.js";import{ar as transitionTransparencyOfMaterial}from"./roomle-dependency-injection-26971ef3.js";class ComponentRaycastHelper{constructor(){this._nonTransparentComponent=null,this._raycaster=new Raycaster,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=throttle(this.checkComponentVisibility,100).bind(this),this.checkPreviewVisibility=throttle(this.checkPreviewVisibility,100).bind(this)}setCamera(e){this._camera=e}setObject(e){this._object=e}changeMaterialsOnSelect(e,t,a=!1,i){t!==this._nonTransparentComponent&&(this._nonTransparentComponent=t,this._changeMaterialsOnSelect(e,t,a,i))}_changeMaterialsOnSelect(e,t,a=!1,i){if(e.children.length>0&&e.children.forEach(s=>{const n=t&&e.id===t.id||a,r=!(s instanceof Mesh);s.userData.ignoreComponentRaycast||this._changeMaterialsOnSelect(s,t,(!n||!r)&&n,i)}),t)e instanceof Mesh&&e.material instanceof MeshStandardMaterial&&!e.userData.oldMaterial&&(e.userData.oldMaterial=e.material,e.material=e.material.clone(),a||transitionTransparencyOfMaterial(e,{opacity:.2,transparent:!0}).then(()=>{null==i||i()}));else if(e.userData.oldMaterial&&e instanceof Mesh&&e.material instanceof MeshStandardMaterial){const{opacity:t,transparent:a}=e.userData.oldMaterial;transitionTransparencyOfMaterial(e,{opacity:t,transparent:a}).then(()=>null==i?void 0:i()),e.userData.oldMaterial=void 0}}isComponentVisible(e){const t=[];e.traverse(e=>t.push(e.uuid));const a=(new Box3).setFromObject(e).getCenter(new Vector3),i=(new Vector3).subVectors(a,this._camera.position).normalize();this._raycaster.set(this._camera.position,i),this._raycaster.far=this._camera.position.distanceTo(a);const s=[];return this._raycaster.intersectObjects(this._object.children,!0).forEach(e=>{e.object.material.visible&&(t.includes(e.object.uuid)||e.object.userData.ignoreComponentRaycast||s.push(e))}),0===s.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 a=t.getComponentsForIds(e.getSelectedRuntimeComponentIds());if(a.length>1)return;const i=a[0];this.isComponentVisible(i)?this.changeMaterialsOnSelect(this._object,null):this.changeMaterialsOnSelect(this._object,i)}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 Frustum,a=(new Matrix4).multiplyMatrices(this._camera.projectionMatrix,this._camera.matrixWorldInverse),i=new Box3;return t.setFromProjectionMatrix(a),e.map(e=>(e=>{const a=i.setFromObject(e).getCenter(new Vector3);return t.containsPoint(a)})(e)).reduce((e,t)=>e&&t)}checkPreviewVisibility(e){e.hasPreviewLines()||(this.areAllPreviewsVisible(e)?this.changeMaterialsOnSelect(this._object,null):this.changeMaterialsOnSelect(this._object,{id:-1}))}}export{ComponentRaycastHelper as default};
2
+ //# sourceMappingURL=component-raycast-helper-158a222d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-raycast-helper-158a222d.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- System.register(["./main-thread-to-worker-7f5f8fc6.nomodule.js","./roomle-dependency-injection-80a18a06.nomodule.js"],(function(e){var t,i,n,a,s,r,c,o,l;return{setters:[function(e){t=e.bD,i=e.bX,n=e.z,a=e.v,s=e.ad,r=e.a,c=e.am,o=e.k},function(e){l=e.ar}],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-af6d2ec7.nomodule.js.map
1
+ System.register(["./main-thread-to-worker-ff3b0e7b.nomodule.js","./roomle-dependency-injection-667e246d.nomodule.js"],(function(e){var t,i,n,s,a,r,c,o,l;return{setters:[function(e){t=e.bD,i=e.bY,n=e.z,s=e.v,a=e.ad,r=e.a,c=e.am,o=e.k},function(e){l=e.ar}],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,a){if(e.children.length>0&&e.children.forEach(s=>{const r=t&&e.id===t.id||i,c=!(s instanceof n);s.userData.ignoreComponentRaycast||this._changeMaterialsOnSelect(s,t,(!r||!c)&&r,a)}),t)e instanceof n&&e.material instanceof s&&!e.userData.oldMaterial&&(e.userData.oldMaterial=e.material,e.material=e.material.clone(),i||l(e,{opacity:.2,transparent:!0}).then(()=>{null==a||a()}));else if(e.userData.oldMaterial&&e instanceof n&&e.material instanceof s){const{opacity:t,transparent:i}=e.userData.oldMaterial;l(e,{opacity:t,transparent:i}).then(()=>null==a?void 0:a()),e.userData.oldMaterial=void 0}}isComponentVisible(e){const t=[];e.traverse(e=>t.push(e.uuid));const i=(new a).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 s=[];return this._raycaster.intersectObjects(this._object.children,!0).forEach(e=>{e.object.material.visible&&(t.includes(e.object.uuid)||e.object.userData.ignoreComponentRaycast||s.push(e))}),0===s.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 a;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-f0e3053d.nomodule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-raycast-helper-f0e3053d.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- System.register(["./script-loader-f19e5147.nomodule.js","./roomle-dependency-injection-80a18a06.nomodule.js","./camera-behaviour-328a4451.nomodule.js","./component-raycast-helper-af6d2ec7.nomodule.js","./roomle-configurator-350a61fc.nomodule.js","./query-params-helper-b084eb54.nomodule.js","./main-thread-to-worker-7f5f8fc6.nomodule.js","./default-light-setting-db81ff6b.nomodule.js","./external-objects-b98b061c.nomodule.js"],(function(e){var o,n,t,r,a,c,i,s,l,u,p,d,f,m;return{setters:[function(e){o=e.S,n=e.M},function(e){t=e.D,r=e.L,a=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){d=e.C,f=e.a,m=e.R},function(){},function(){},function(){},function(){}],execute:function(){const h=[new t("logger",r),new t("rapi-access",a),new t("script-loader",o),new t("camera-control-3d",l),new t("camera-control",u),new t("data-syncer",c),new t("configurator-scene-manager",d,1),new t("configurator-view-model",f,1),new t("component-raycast-helper",p,0)];e("Configurator",class extends n{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"),o=this.lookup("rapi-access");this.lookup("dom-helper");const n=this.lookup("configurator-scene-manager");e&&e.cleanUp(),o&&o.cleanUp(),n&&n.cleanUp()}setupGlobals(e){const{kernelInstance:o,kernelContainer:n,planObjectId:t}=e||{};s.init({kernelInstance:o,kernelContainer:n,planObjectId:t})}getApi(){return this._configurator}bootFinished(){this._configurator=new m(this._context),this._configurator.getMain=()=>this,window.RoomleConfigurator||(window.RoomleConfigurator=this._configurator)}getContextName(){return"configurator"}})}}}));
2
- //# sourceMappingURL=configurator-2e647c98.nomodule.js.map
1
+ System.register(["./script-loader-af4dcc41.nomodule.js","./roomle-dependency-injection-667e246d.nomodule.js","./camera-behaviour-0f0475c0.nomodule.js","./component-raycast-helper-f0e3053d.nomodule.js","./roomle-configurator-665e9982.nomodule.js","./query-params-helper-8731c6a6.nomodule.js","./main-thread-to-worker-ff3b0e7b.nomodule.js","./default-light-setting-c997d655.nomodule.js","./external-objects-5b70c3f6.nomodule.js"],(function(e){var o,n,t,r,c,i,a,s,l,u,p,d,f,m;return{setters:[function(e){o=e.S,n=e.M},function(e){t=e.D,r=e.L,c=e.R,i=e.a,a=e.b,s=e.A},function(e){l=e.C,u=e.a},function(e){p=e.default},function(e){d=e.C,f=e.a,m=e.R},function(){},function(){},function(){},function(){}],execute:function(){const h=[new t("logger",r),new t("rapi-access",c),new t("script-loader",o),new t("camera-control-3d",l),new t("camera-control",u),new t("data-syncer",i),new t("configurator-scene-manager",d,1),new t("configurator-view-model",f,1),new t("component-raycast-helper",p,0)];e("Configurator",class extends n{setupDependencies(){a.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"),o=this.lookup("rapi-access");this.lookup("dom-helper");const n=this.lookup("configurator-scene-manager");e&&e.cleanUp(),o&&o.cleanUp(),n&&n.cleanUp()}setupGlobals(e){const{kernelInstance:o,kernelContainer:n,planObjectId:t}=e||{};s.init({kernelInstance:o,kernelContainer:n,planObjectId:t})}getApi(){return this._configurator}bootFinished(){this._configurator=new m(this._context),this._configurator.getMain=()=>this,window.RoomleConfigurator||(window.RoomleConfigurator=this._configurator)}getContextName(){return"configurator"}})}}}));
2
+ //# sourceMappingURL=configurator-19a5f2ec.nomodule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurator-19a5f2ec.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{S as ScriptLoader,M as Main}from"./script-loader-6ad7ba10.js";import{D as DependencyInjectionAssignment,L as Logger,R as RapiAccess,a as DataSyncer,b as RoomleDependencyInjection,A as AppContext}from"./roomle-dependency-injection-a7692d20.js";import{C as CameraControl3D,a as CameraControl}from"./camera-behaviour-9161f77c.js";import ComponentRaycastHelper from"./component-raycast-helper-a8006ddd.js";import{C as ConfiguratorSceneManager,a as ConfiguratorViewModel,R as RoomleConfigurator}from"./roomle-configurator-f81e7d6f.js";import"./query-params-helper-7f284eed.js";import"./main-thread-to-worker-7eb0b620.js";import"./default-light-setting-ef456067.js";import"./external-objects-3524f012.js";const INJECTABLES=[new DependencyInjectionAssignment("logger",Logger),new DependencyInjectionAssignment("rapi-access",RapiAccess),new DependencyInjectionAssignment("script-loader",ScriptLoader),new DependencyInjectionAssignment("camera-control-3d",CameraControl3D),new DependencyInjectionAssignment("camera-control",CameraControl),new DependencyInjectionAssignment("data-syncer",DataSyncer),new DependencyInjectionAssignment("configurator-scene-manager",ConfiguratorSceneManager,1),new DependencyInjectionAssignment("configurator-view-model",ConfiguratorViewModel,1),new DependencyInjectionAssignment("component-raycast-helper",ComponentRaycastHelper,0)];class Configurator extends Main{setupDependencies(){RoomleDependencyInjection.setup(INJECTABLES),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||{};AppContext.init({kernelInstance:n,kernelContainer:o,planObjectId:t})}getApi(){return this._configurator}bootFinished(){this._configurator=new RoomleConfigurator(this._context),this._configurator.getMain=()=>this,window.RoomleConfigurator||(window.RoomleConfigurator=this._configurator)}getContextName(){return"configurator"}}export{Configurator};
2
- //# sourceMappingURL=configurator-5803f0e6.js.map
1
+ import{S as ScriptLoader,M as Main}from"./script-loader-cc316440.js";import{D as DependencyInjectionAssignment,L as Logger,R as RapiAccess,a as DataSyncer,b as RoomleDependencyInjection,A as AppContext}from"./roomle-dependency-injection-26971ef3.js";import{C as CameraControl3D,a as CameraControl}from"./camera-behaviour-61d39bd3.js";import ComponentRaycastHelper from"./component-raycast-helper-158a222d.js";import{C as ConfiguratorSceneManager,a as ConfiguratorViewModel,R as RoomleConfigurator}from"./roomle-configurator-cb845650.js";import"./query-params-helper-7890ce69.js";import"./main-thread-to-worker-4e303a39.js";import"./default-light-setting-2a019375.js";import"./external-objects-bf17eb19.js";const INJECTABLES=[new DependencyInjectionAssignment("logger",Logger),new DependencyInjectionAssignment("rapi-access",RapiAccess),new DependencyInjectionAssignment("script-loader",ScriptLoader),new DependencyInjectionAssignment("camera-control-3d",CameraControl3D),new DependencyInjectionAssignment("camera-control",CameraControl),new DependencyInjectionAssignment("data-syncer",DataSyncer),new DependencyInjectionAssignment("configurator-scene-manager",ConfiguratorSceneManager,1),new DependencyInjectionAssignment("configurator-view-model",ConfiguratorViewModel,1),new DependencyInjectionAssignment("component-raycast-helper",ComponentRaycastHelper,0)];class Configurator extends Main{setupDependencies(){RoomleDependencyInjection.setup(INJECTABLES),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||{};AppContext.init({kernelInstance:n,kernelContainer:o,planObjectId:t})}getApi(){return this._configurator}bootFinished(){this._configurator=new RoomleConfigurator(this._context),this._configurator.getMain=()=>this,window.RoomleConfigurator||(window.RoomleConfigurator=this._configurator)}getContextName(){return"configurator"}}export{Configurator};
2
+ //# sourceMappingURL=configurator-3d0c3674.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurator-3d0c3674.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{Configurator}from"./configurator-3d0c3674.js";import"./script-loader-cc316440.js";import"./query-params-helper-7890ce69.js";import"./main-thread-to-worker-4e303a39.js";import"./roomle-dependency-injection-26971ef3.js";import"./camera-behaviour-61d39bd3.js";import"./component-raycast-helper-158a222d.js";import"./roomle-configurator-cb845650.js";import"./default-light-setting-2a019375.js";import"./external-objects-bf17eb19.js";(new Configurator).boot(),window.requestIdleCallback||(window.requestIdleCallback=e=>setTimeout(()=>{let o=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},1)),window.cancelIdleCallback||(window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)});
2
+ //# sourceMappingURL=configurator-main-5e7f0897.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurator-main-5e7f0897.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- System.register(["./configurator-2e647c98.nomodule.js","./script-loader-f19e5147.nomodule.js","./query-params-helper-b084eb54.nomodule.js","./main-thread-to-worker-7f5f8fc6.nomodule.js","./roomle-dependency-injection-80a18a06.nomodule.js","./camera-behaviour-328a4451.nomodule.js","./component-raycast-helper-af6d2ec7.nomodule.js","./roomle-configurator-350a61fc.nomodule.js","./default-light-setting-db81ff6b.nomodule.js","./external-objects-b98b061c.nomodule.js"],(function(){var e;return{setters:[function(o){e=o.Configurator},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){(new e).boot(),window.requestIdleCallback||(window.requestIdleCallback=e=>setTimeout(()=>{let o=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},1)),window.cancelIdleCallback||(window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)})}}}));
1
+ System.register(["./configurator-19a5f2ec.nomodule.js","./script-loader-af4dcc41.nomodule.js","./query-params-helper-8731c6a6.nomodule.js","./main-thread-to-worker-ff3b0e7b.nomodule.js","./roomle-dependency-injection-667e246d.nomodule.js","./camera-behaviour-0f0475c0.nomodule.js","./component-raycast-helper-f0e3053d.nomodule.js","./roomle-configurator-665e9982.nomodule.js","./default-light-setting-c997d655.nomodule.js","./external-objects-5b70c3f6.nomodule.js"],(function(){var e;return{setters:[function(o){e=o.Configurator},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){(new e).boot(),window.requestIdleCallback||(window.requestIdleCallback=e=>setTimeout(()=>{let o=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},1)),window.cancelIdleCallback||(window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)})}}}));
2
2
  //# sourceMappingURL=configurator-main.nomodule.js.map
@@ -1,2 +1,2 @@
1
- import{ad as convertToTHREE}from"./roomle-dependency-injection-a7692d20.js";import{aT as RingGeometry,h as MeshBasicMaterial,w as DoubleSide,z as Mesh}from"./main-thread-to-worker-7eb0b620.js";class ContinuousDrawingHelper{constructor(){this._currentInnerRadius=0}init(e,i,r){this._drawingGroup=e,this._continuousDrawingManager=i,this._kernelZoomFactor=r,this.update()}update(){this._initCircle(),this._updateCircle()}_initCircle(){if(this._circleMesh)return;const e=70/this._kernelZoomFactor/1e3,i=new RingGeometry(e,e+e/50,32),r=new MeshBasicMaterial({color:10066329,side:DoubleSide});this._circleMesh=new Mesh(i,r),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 RingGeometry(e,i,32)}const i=convertToTHREE(this._continuousDrawingManager.getStartPoint());i.y=5,this._circleMesh.position.copy(i),this._circleMesh.visible=this._continuousDrawingManager.shouldShowCircle(),this._currentInnerRadius=e}setKernelZoomFactor(e){this._kernelZoomFactor=e}endDrawing(){this._drawingGroup.remove(this._circleMesh),this._circleMesh=null}}export{ContinuousDrawingHelper as default};
2
- //# sourceMappingURL=continuous-drawing-helper-7caf11ea.js.map
1
+ import{ad as convertToTHREE}from"./roomle-dependency-injection-26971ef3.js";import{aT as RingGeometry,h as MeshBasicMaterial,w as DoubleSide,z as Mesh}from"./main-thread-to-worker-4e303a39.js";class ContinuousDrawingHelper{constructor(){this._currentInnerRadius=0}init(e,i,r){this._drawingGroup=e,this._continuousDrawingManager=i,this._kernelZoomFactor=r,this.update()}update(){this._initCircle(),this._updateCircle()}_initCircle(){if(this._circleMesh)return;const e=70/this._kernelZoomFactor/1e3,i=new RingGeometry(e,e+e/50,32),r=new MeshBasicMaterial({color:10066329,side:DoubleSide});this._circleMesh=new Mesh(i,r),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 RingGeometry(e,i,32)}const i=convertToTHREE(this._continuousDrawingManager.getStartPoint());i.y=5,this._circleMesh.position.copy(i),this._circleMesh.visible=this._continuousDrawingManager.shouldShowCircle(),this._currentInnerRadius=e}setKernelZoomFactor(e){this._kernelZoomFactor=e}endDrawing(){this._drawingGroup.remove(this._circleMesh),this._circleMesh=null}}export{ContinuousDrawingHelper as default};
2
+ //# sourceMappingURL=continuous-drawing-helper-6947990a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"continuous-drawing-helper-6947990a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- System.register(["./roomle-dependency-injection-80a18a06.nomodule.js","./main-thread-to-worker-7f5f8fc6.nomodule.js"],(function(e){var i,t,r,n,s;return{setters:[function(e){i=e.ad},function(e){t=e.aT,r=e.h,n=e.w,s=e.z}],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:n});this._circleMesh=new s(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-8b4ee035.nomodule.js.map
1
+ System.register(["./roomle-dependency-injection-667e246d.nomodule.js","./main-thread-to-worker-ff3b0e7b.nomodule.js"],(function(e){var i,t,r,n,s;return{setters:[function(e){i=e.ad},function(e){t=e.aT,r=e.h,n=e.w,s=e.z}],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:n});this._circleMesh=new s(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-7534a461.nomodule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"continuous-drawing-helper-7534a461.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{L as LightSetting}from"./camera-behaviour-9161f77c.js";import{ah as getGUI}from"./roomle-dependency-injection-a7692d20.js";import{D as DirectionalLight,C as Color,V as Vector2,a as Vector3,A as AmbientLight}from"./main-thread-to-worker-7eb0b620.js";class DefaultLightSetting extends LightSetting{constructor(i,t){super(i,t),this._params={ambientLight:{color:"#ffffff"},mainDirLight:{position:{x:-3,y:4,z:4},color:"#ffffff"},secondDirLight:{position:{x:3,y:4,z:3},color:"#ffffff"}},this._mainDirectionalLight=new DirectionalLight(new Color(this._params.mainDirLight.color),.8),this._mainDirectionalLight.position.set(this._params.mainDirLight.position.x,this._params.mainDirLight.position.y,this._params.mainDirLight.position.z),this._mainDirectionalLight.layers.set(1),this._mainDirectionalLight.castShadow=!0,this._mainDirectionalLight.shadow.camera.near=.1,this._mainDirectionalLight.shadow.camera.far=100,this._mainDirectionalLight.shadow.mapSize=new Vector2(1024,1024),this._mainDirectionalLight.visible=!0,this._mainDirectionalLight.lookAt(new Vector3(0,0,0)),this._secondDirectionalLight=new DirectionalLight(new Color(this._params.secondDirLight.color),.2),this._secondDirectionalLight.position.set(this._params.secondDirLight.position.x,this._params.secondDirLight.position.y,this._params.secondDirLight.position.z),this._secondDirectionalLight.layers.set(1),this._secondDirectionalLight.castShadow=!1,this._secondDirectionalLight.shadow.camera.near=.1,this._secondDirectionalLight.shadow.camera.far=100,this._secondDirectionalLight.shadow.mapSize=new Vector2(1024,1024),this._secondDirectionalLight.visible=!0,this._secondDirectionalLight.lookAt(new Vector3(0,0,0)),this._ambientLight=new AmbientLight(new Color(this._params.ambientLight.color),.5),this._ambientLight.layers.set(1),this.addToScene()}needsBounds(){return!0}updateBounds(i){const t=i.getSize(new Vector3),a=Math.max(Math.max(t.x,t.y),t.z)+1,o=a/2;this._mainDirectionalLight.shadow.camera.top=o,this._mainDirectionalLight.shadow.camera.bottom=-o,this._mainDirectionalLight.shadow.camera.left=-o,this._mainDirectionalLight.shadow.camera.right=o,this._mainDirectionalLight.shadow.camera.near=.01,this._mainDirectionalLight.shadow.camera.far=4*a,this._mainDirectionalLight.shadow.camera.updateProjectionMatrix(),this._secondDirectionalLight.shadow.camera.top=o,this._secondDirectionalLight.shadow.camera.bottom=-o,this._secondDirectionalLight.shadow.camera.left=-o,this._secondDirectionalLight.shadow.camera.right=o,this._secondDirectionalLight.shadow.camera.near=.01,this._secondDirectionalLight.shadow.camera.far=4*a,this._secondDirectionalLight.shadow.camera.updateProjectionMatrix()}addToScene(){this._scene.add(this._mainDirectionalLight),this._scene.add(this._secondDirectionalLight),this._scene.add(this._ambientLight)}removeFromScene(){this._scene.remove(this._mainDirectionalLight),this._scene.remove(this._secondDirectionalLight),this._scene.remove(this._ambientLight)}reload(){this.removeFromScene(),this.addToScene()}showGUI(){let i=getGUI();if(i){if(this._ambientLight){let t=i.addFolder("Ambient Light");t.add(this._ambientLight,"visible"),t.add(this._ambientLight,"intensity").min(0).max(5).step(.1),t.addColor(this._params.ambientLight,"color").onChange(i=>this._ambientLight.color=new Color(i))}if(this._mainDirectionalLight){let t=i.addFolder("Main Directional Light");t.add(this._mainDirectionalLight,"visible"),t.add(this._mainDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._mainDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new Color(i)),t.add(this._mainDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0)))}if(this._secondDirectionalLight){let t=i.addFolder("Second Directional Light");t.add(this._secondDirectionalLight,"visible"),t.add(this._secondDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._secondDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new Color(i)),t.add(this._secondDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0)))}}}}export{DefaultLightSetting as D};
2
- //# sourceMappingURL=default-light-setting-ef456067.js.map
1
+ import{L as LightSetting}from"./camera-behaviour-61d39bd3.js";import{ah as getGUI}from"./roomle-dependency-injection-26971ef3.js";import{D as DirectionalLight,C as Color,V as Vector2,a as Vector3,A as AmbientLight}from"./main-thread-to-worker-4e303a39.js";class DefaultLightSetting extends LightSetting{constructor(i,t){super(i,t),this._params={ambientLight:{color:"#ffffff"},mainDirLight:{position:{x:-3,y:4,z:4},color:"#ffffff"},secondDirLight:{position:{x:3,y:4,z:3},color:"#ffffff"}},this._mainDirectionalLight=new DirectionalLight(new Color(this._params.mainDirLight.color),.8),this._mainDirectionalLight.position.set(this._params.mainDirLight.position.x,this._params.mainDirLight.position.y,this._params.mainDirLight.position.z),this._mainDirectionalLight.layers.set(1),this._mainDirectionalLight.castShadow=!0,this._mainDirectionalLight.shadow.camera.near=.1,this._mainDirectionalLight.shadow.camera.far=100,this._mainDirectionalLight.shadow.mapSize=new Vector2(1024,1024),this._mainDirectionalLight.visible=!0,this._mainDirectionalLight.lookAt(new Vector3(0,0,0)),this._secondDirectionalLight=new DirectionalLight(new Color(this._params.secondDirLight.color),.2),this._secondDirectionalLight.position.set(this._params.secondDirLight.position.x,this._params.secondDirLight.position.y,this._params.secondDirLight.position.z),this._secondDirectionalLight.layers.set(1),this._secondDirectionalLight.castShadow=!1,this._secondDirectionalLight.shadow.camera.near=.1,this._secondDirectionalLight.shadow.camera.far=100,this._secondDirectionalLight.shadow.mapSize=new Vector2(1024,1024),this._secondDirectionalLight.visible=!0,this._secondDirectionalLight.lookAt(new Vector3(0,0,0)),this._ambientLight=new AmbientLight(new Color(this._params.ambientLight.color),.5),this._ambientLight.layers.set(1),this.addToScene()}needsBounds(){return!0}updateBounds(i){const t=i.getSize(new Vector3),a=Math.max(Math.max(t.x,t.y),t.z)+1,o=a/2;this._mainDirectionalLight.shadow.camera.top=o,this._mainDirectionalLight.shadow.camera.bottom=-o,this._mainDirectionalLight.shadow.camera.left=-o,this._mainDirectionalLight.shadow.camera.right=o,this._mainDirectionalLight.shadow.camera.near=.01,this._mainDirectionalLight.shadow.camera.far=4*a,this._mainDirectionalLight.shadow.camera.updateProjectionMatrix(),this._secondDirectionalLight.shadow.camera.top=o,this._secondDirectionalLight.shadow.camera.bottom=-o,this._secondDirectionalLight.shadow.camera.left=-o,this._secondDirectionalLight.shadow.camera.right=o,this._secondDirectionalLight.shadow.camera.near=.01,this._secondDirectionalLight.shadow.camera.far=4*a,this._secondDirectionalLight.shadow.camera.updateProjectionMatrix()}addToScene(){this._scene.add(this._mainDirectionalLight),this._scene.add(this._secondDirectionalLight),this._scene.add(this._ambientLight)}removeFromScene(){this._scene.remove(this._mainDirectionalLight),this._scene.remove(this._secondDirectionalLight),this._scene.remove(this._ambientLight)}reload(){this.removeFromScene(),this.addToScene()}showGUI(){let i=getGUI();if(i){if(this._ambientLight){let t=i.addFolder("Ambient Light");t.add(this._ambientLight,"visible"),t.add(this._ambientLight,"intensity").min(0).max(5).step(.1),t.addColor(this._params.ambientLight,"color").onChange(i=>this._ambientLight.color=new Color(i))}if(this._mainDirectionalLight){let t=i.addFolder("Main Directional Light");t.add(this._mainDirectionalLight,"visible"),t.add(this._mainDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._mainDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new Color(i)),t.add(this._mainDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0)))}if(this._secondDirectionalLight){let t=i.addFolder("Second Directional Light");t.add(this._secondDirectionalLight,"visible"),t.add(this._secondDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._secondDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new Color(i)),t.add(this._secondDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0)))}}}}export{DefaultLightSetting as D};
2
+ //# sourceMappingURL=default-light-setting-2a019375.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-light-setting-2a019375.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- System.register(["./camera-behaviour-328a4451.nomodule.js","./roomle-dependency-injection-80a18a06.nomodule.js","./main-thread-to-worker-7f5f8fc6.nomodule.js"],(function(i){var t,a,e,n,o,s,h;return{setters:[function(i){t=i.L},function(i){a=i.ah},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-db81ff6b.nomodule.js.map
1
+ System.register(["./camera-behaviour-0f0475c0.nomodule.js","./roomle-dependency-injection-667e246d.nomodule.js","./main-thread-to-worker-ff3b0e7b.nomodule.js"],(function(i){var t,a,e,n,o,s,h;return{setters:[function(i){t=i.L},function(i){a=i.ah},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-c997d655.nomodule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-light-setting-c997d655.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -49,7 +49,6 @@ export default class ConfiguratorViewModel implements ConfiguratorKernelCallback
49
49
  private _applyMeshTransform;
50
50
  private _applyMeshUVTransform;
51
51
  private _addMeshAnimations;
52
- private _setComponentAnimationMatrix;
53
52
  private _animateComponent;
54
53
  updateAnimationParameters(elementId: number | number[], parameters: KernelParameter[]): void;
55
54
  changeAnimationValue(elementId: number, parameterKey: string, value: string, applyToChildren: boolean, animate: boolean): void;
@@ -12,7 +12,6 @@ export default class PlanElementViewModel extends KernelViewModel {
12
12
  protected _isSelected: boolean;
13
13
  private _objectWaiter;
14
14
  protected _topView: boolean;
15
- isActivatedDuringDragIn: boolean;
16
15
  constructor(planObject: PlanObject);
17
16
  getSize(): Vector3;
18
17
  update(): void;
@@ -71,12 +71,12 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
71
71
  planObjectConstructionDone(_planObject: PlanObject): void;
72
72
  private _internalClearScene;
73
73
  protected _waitForAssets(): Promise<void>;
74
- preparePerspectiveImage(options?: PrepareImageOptions): Promise<Base64Image>;
74
+ preparePerspectiveImage(options?: PrepareImageOptions, _isolationMode?: boolean): Promise<Base64Image>;
75
75
  renderImage(renderOptions: RenderOptions): Promise<Base64Image>;
76
76
  preparePartImage(partId: number, options: PrepareImageOptions): Promise<any>;
77
77
  protected _calculateBoundingBoxOfAllMeshes(spacing?: number, showDimensions?: boolean): CameraTarget;
78
78
  private _externalMeshesAndMaterialsReady;
79
- prepareTopImage(options?: PrepareImageOptions): Promise<Base64Image>;
79
+ prepareTopImage(options?: PrepareImageOptions, _isolationMode?: boolean): Promise<Base64Image>;
80
80
  enableDragIn(dragEvent: DragEvent): void;
81
81
  private _zoomToComponentOnConsecutiveClick;
82
82
  resetCameraPositionToStart(): void;
@@ -49,7 +49,6 @@ export default class ConfiguratorViewModel implements ConfiguratorKernelCallback
49
49
  private _applyMeshTransform;
50
50
  private _applyMeshUVTransform;
51
51
  private _addMeshAnimations;
52
- private _setComponentAnimationMatrix;
53
52
  private _animateComponent;
54
53
  updateAnimationParameters(elementId: number | number[], parameters: KernelParameter[]): void;
55
54
  changeAnimationValue(elementId: number, parameterKey: string, value: string, applyToChildren: boolean, animate: boolean): void;
@@ -12,7 +12,6 @@ export default class PlanElementViewModel extends KernelViewModel {
12
12
  protected _isSelected: boolean;
13
13
  private _objectWaiter;
14
14
  protected _topView: boolean;
15
- isActivatedDuringDragIn: boolean;
16
15
  constructor(planObject: PlanObject);
17
16
  getSize(): Vector3;
18
17
  update(): void;
@@ -71,12 +71,12 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
71
71
  planObjectConstructionDone(_planObject: PlanObject): void;
72
72
  private _internalClearScene;
73
73
  protected _waitForAssets(): Promise<void>;
74
- preparePerspectiveImage(options?: PrepareImageOptions): Promise<Base64Image>;
74
+ preparePerspectiveImage(options?: PrepareImageOptions, _isolationMode?: boolean): Promise<Base64Image>;
75
75
  renderImage(renderOptions: RenderOptions): Promise<Base64Image>;
76
76
  preparePartImage(partId: number, options: PrepareImageOptions): Promise<any>;
77
77
  protected _calculateBoundingBoxOfAllMeshes(spacing?: number, showDimensions?: boolean): CameraTarget;
78
78
  private _externalMeshesAndMaterialsReady;
79
- prepareTopImage(options?: PrepareImageOptions): Promise<Base64Image>;
79
+ prepareTopImage(options?: PrepareImageOptions, _isolationMode?: boolean): Promise<Base64Image>;
80
80
  enableDragIn(dragEvent: DragEvent): void;
81
81
  private _zoomToComponentOnConsecutiveClick;
82
82
  resetCameraPositionToStart(): void;
@@ -1,3 +1,4 @@
1
+ import type { ExternalModuleInformation } from '../../typings/kernel';
1
2
  import type { CancelSelectionReasons } from '../../typings/planner';
2
3
  export interface ExternalObjectSegment {
3
4
  cmd: string;
@@ -128,7 +129,7 @@ export interface ExternalObjectUiCallback {
128
129
  * @param attributeId The ID of the attribute.
129
130
  * @param value The new value of the attribute.
130
131
  */
131
- onExternalObjectAttributeChanged(rootModuleId: string, subModuleId: string | null, attributeId: string, value: string): void;
132
+ onExternalObjectAttributeChanged(groupId: string, moduleIds: string | ExternalModuleInformation[] | null, attributeId: string, value: string): void;
132
133
  /**
133
134
  * "onExternalObjectModuleSelected" is invoked when the selection has been changed
134
135
  * by and user interaction and a group, a root module or a sub module is selected.
@@ -1,6 +1,6 @@
1
1
  import { UiCallback } from '../../common-core/src/utils/ui-callback';
2
2
  import type { CancelSelectionReasons, PlanInteractionHandler, PlanObjectPosition } from '../../typings/planner';
3
- import type { ConfiguratorKernelClass, UiPlanObject } from '../../typings/kernel';
3
+ import type { ConfiguratorKernelClass, ExternalModuleInformation, UiPlanObject } from '../../typings/kernel';
4
4
  import type { PlannerKernelContainer } from '../../typings/planner-kernel-container';
5
5
  import type { CAMERA_TYPE } from '../../common-core/src/cameracontrol/camera-type';
6
6
  import type { SELECTION_MODE } from '../../configurator-core/src/utils/selection-handler';
@@ -228,7 +228,7 @@ export default class RoomlePlannerUiCallback extends UiCallback implements Exter
228
228
  /**
229
229
  * documented in interface ExternalObjectUiCallback
230
230
  */
231
- onExternalObjectAttributeChanged: (rootModuleId: string, subModuleId: string | null, attributeId: string, value: string) => void;
231
+ onExternalObjectAttributeChanged: (groupId: string, moduleIds: string | ExternalModuleInformation[] | null, attributeId: string, value: string) => void;
232
232
  /**
233
233
  * documented in interface ExternalObjectUiCallback
234
234
  */
@@ -20,7 +20,7 @@ export interface PlannerKernelCallbackI {
20
20
  planElementChanged(plan: Plan, planObject: PlanElementViewModel): void;
21
21
  planElementRemoved(element: PlanElement): void;
22
22
  planObjectConfigurationLoaded(plan: Plan, element: PlanElement, success: boolean): void;
23
- planObjectConfigurationChanged(plan: Plan, object: PlanObject): void;
23
+ planObjectConfigurationChanged(plan: Plan, element: PlanElementViewModel): void;
24
24
  planBoundsChanged(): void;
25
25
  planHistoryStateChanged(): void;
26
26
  planCleared(): void;
@@ -76,6 +76,7 @@ export default class PlannerKernelAccess extends ConfiguratorKernelAccess {
76
76
  externalObjectComponentSplitOff(plan: Plan, planObject: PlanObject, splitGroups: ExternalObjectGroup[]): void;
77
77
  externalObjectArrangementChanged(plan: Plan, planObject: PlanObject, changedGroup: ExternalObjectGroup): void;
78
78
  planObjectConfigurationLoaded(plan: Plan, element: PlanElement, success: boolean): Promise<void>;
79
+ planObjectConfigurationChanged(plan: Plan, object: PlanObject): void;
79
80
  requestCatalogItem(catalogItemId: string): void;
80
81
  startedDrawing(): void;
81
82
  stoppedDrawing(): void;
@@ -24,7 +24,7 @@ export declare class PlannerSelectionHandlerEvent {
24
24
  export default class PlannerSelectionHandler extends EventDispatcher<PlannerSelectionHandlerEvent> {
25
25
  private _selectionMode;
26
26
  protected _selectedPlanElementViewModels: Map<number, PlanElementViewModel>;
27
- check(planElementViewModel: PlanElementViewModel, isDragIn: boolean): void;
27
+ check(planElementViewModel: PlanElementViewModel): void;
28
28
  removeSelection(): void;
29
29
  cancelSelection(reason: CancelSelectionReasons): void;
30
30
  private _checkStandard;
@@ -1,4 +1,4 @@
1
- import type { Plan, PlanElement, PlanObject } from '../../../typings/planner';
1
+ import type { Plan, PlanElement } from '../../../typings/planner';
2
2
  import type { PlannerKernelCallbackI } from '../services/planner-kernel-access';
3
3
  import type { RoomleComponent } from '../../../common-core/src/webgl/roomle-component-factory';
4
4
  import type PlannerSceneEventHandler from '../webgl/planner-scene-event-handler';
@@ -120,7 +120,7 @@ export default class PlanViewModel extends ConfiguratorViewModel implements Plan
120
120
  endPlanConstruction(_plan: Plan): void;
121
121
  planElementChanged(_plan: Plan, _planObject: PlanElementViewModel): void;
122
122
  planObjectConfigurationLoaded(_plan: Plan, planElement: PlanElement, success: boolean): void;
123
- planObjectConfigurationChanged(_plan: Plan, _object: PlanObject): void;
123
+ planObjectConfigurationChanged(_plan: Plan, _element: PlanElementViewModel): void;
124
124
  addMesh(planElement: PlanElement, material: any, vertices: Float32Array, indices: Int32Array, uvCoords: Float32Array, normals: Float32Array): void;
125
125
  removePlanObjectFromScene(planElementViewModel: PlanElementViewModel): void;
126
126
  private _isConstructionType;
@@ -7,7 +7,7 @@ import { type DimensionDefinition } from '../utils/measurements';
7
7
  export type WallDimension = DimensionDefinition<Vector3, Vector3>;
8
8
  export type WallDimensionTransferable = DimensionDefinition<Position2, Position3>;
9
9
  export declare const wallDimensionToTransferable: (wallDimension: WallDimension) => WallDimensionTransferable;
10
- export declare const getTopViewMaterial: () => MeshPhysicalMaterial;
10
+ export declare const getTopViewMaterial: (hasAttic?: boolean) => MeshPhysicalMaterial;
11
11
  export default class WallPlanElementViewModel extends PlanElementViewModel {
12
12
  private _lineForInvisibleWall?;
13
13
  private _hasAttachedAttic;
@@ -1,6 +1,6 @@
1
1
  import type { Base64Image, CanvasOffset } from '../../../common-core/src/common-interfaces';
2
2
  import type { PlannerKernelCallbackI } from '../services/planner-kernel-access';
3
- import type { CancelSelectionReasons, Plan, PlanElement, PlanObject } from '../../../typings/planner';
3
+ import type { CancelSelectionReasons, Plan, PlanElement } from '../../../typings/planner';
4
4
  import type { KernelPlanObjectComponent } from '../../../typings/kernel';
5
5
  import { type KernelEnum, type KernelPlanObject, type KernelVector3, type RuntimeId } from '../../../typings/kernel';
6
6
  import PlannerSceneEventHandler from './planner-scene-event-handler';
@@ -92,7 +92,7 @@ export default class PlannerSceneManager extends ConfiguratorSceneManager implem
92
92
  endPlanConstruction(_plan: Plan): void;
93
93
  addPlanObjectToScene(planViewModel: PlanObjectViewModel): Promise<void>;
94
94
  removePlanObjectFromScene(planViewModel: PlanElementViewModel): void;
95
- planElementChanged(_plan: Plan, planElementViewModel: PlanElementViewModel): Promise<void>;
95
+ planElementChanged(_plan: Plan, planElementViewModel: PlanElementViewModel): void;
96
96
  exportGLB(_exportObjects?: Object3D[], _id?: string): void;
97
97
  importGLB(url: string): void;
98
98
  clearScene(): void;
@@ -118,7 +118,7 @@ export default class PlannerSceneManager extends ConfiguratorSceneManager implem
118
118
  highlightPlanElementById(runtimeId: number | null): void;
119
119
  destroy(): void;
120
120
  planObjectConfigurationLoaded(plan: Plan, element: PlanElement, success: boolean): void;
121
- planObjectConfigurationChanged(_plan: Plan, _object: PlanObject): void;
121
+ planObjectConfigurationChanged(plan: Plan, element: PlanElementViewModel): Promise<void>;
122
122
  addMesh(_planElement: PlanElement, _material: any, _vertices: Float32Array, _indices: Int32Array, _uvCoords: Float32Array, _normals: Float32Array): void;
123
123
  updateCameraOnDrawWalls(): void;
124
124
  getBounds(): Box3;
@@ -137,7 +137,7 @@ export default class PlannerSceneManager extends ConfiguratorSceneManager implem
137
137
  planBoundsChanged(): void;
138
138
  planElementRemoved(element: PlanElement): void;
139
139
  private _onPlanChanged;
140
- prepareTopImage(options?: PrepareImageOptions): Promise<Base64Image>;
140
+ prepareTopImage(options?: PrepareImageOptions, isolationMode?: boolean): Promise<Base64Image>;
141
141
  preparePerspectiveImageOf(runtimeId: RuntimeId, options?: PrepareImageOptions): Promise<Base64Image>;
142
142
  protected _waitForAssets(): Promise<void>;
143
143
  _preparePerspectiveImage(options?: PrepareImageOptionsPlanner, isolationMode?: boolean): Promise<Base64Image>;
@@ -118,6 +118,7 @@ export interface KernelParameter {
118
118
  group: string;
119
119
  visibleInPlanner?: boolean;
120
120
  viewType: KernelViewType;
121
+ source: 'external' | 'internal';
121
122
  }
122
123
  export interface KernelParameterGroup {
123
124
  key: string;
@@ -437,17 +438,16 @@ export interface KernelExternalObjectDocking {
437
438
  parentModuleId: string;
438
439
  moduleName: string;
439
440
  }
440
- export interface ExternalAttributeInformation {
441
+ export interface ExternalModuleInformation {
441
442
  groupId: string;
442
443
  rootModuleId: string;
443
444
  subModuleId: string;
444
- attributeId: string;
445
- value: string;
446
445
  }
447
- export interface ExternalModuleInformation {
446
+ export interface ExternalAttributeInformation {
448
447
  groupId: string;
449
- rootModuleId: string;
450
- subModuleId: string;
448
+ moduleIds: ExternalModuleInformation[];
449
+ attributeId: string;
450
+ value: string;
451
451
  }
452
452
  export declare const enum ExportType {
453
453
  TC = 0,
@@ -573,12 +573,17 @@ export interface KernelMeshBuffer {
573
573
  normals: Float32Array;
574
574
  uvCoords: Float32Array;
575
575
  }
576
+ export interface KernelMeshAnimation {
577
+ matrix: Float32Array;
578
+ visibility: boolean;
579
+ initial: boolean;
580
+ }
576
581
  export interface KernelMeshAttributes {
577
582
  materialId: string;
578
583
  materialAttributes: Record<string, string> | null;
579
584
  transform: Float32Array;
580
585
  uvTransform: Float32Array | null;
581
- animations: Record<string, Float32Array> | null;
586
+ animations: Record<string, KernelMeshAnimation> | null;
582
587
  }
583
588
  export interface DebugValueMapDump {
584
589
  type: string;
@@ -1,3 +1,4 @@
1
+ import type { ExternalModuleInformation } from '../../typings/kernel';
1
2
  import type { CancelSelectionReasons } from '../../typings/planner';
2
3
  export interface ExternalObjectSegment {
3
4
  cmd: string;
@@ -128,7 +129,7 @@ export interface ExternalObjectUiCallback {
128
129
  * @param attributeId The ID of the attribute.
129
130
  * @param value The new value of the attribute.
130
131
  */
131
- onExternalObjectAttributeChanged(rootModuleId: string, subModuleId: string | null, attributeId: string, value: string): void;
132
+ onExternalObjectAttributeChanged(groupId: string, moduleIds: string | ExternalModuleInformation[] | null, attributeId: string, value: string): void;
132
133
  /**
133
134
  * "onExternalObjectModuleSelected" is invoked when the selection has been changed
134
135
  * by and user interaction and a group, a root module or a sub module is selected.
@@ -1,6 +1,6 @@
1
1
  import { UiCallback } from '../../common-core/src/utils/ui-callback';
2
2
  import type { CancelSelectionReasons, PlanInteractionHandler, PlanObjectPosition } from '../../typings/planner';
3
- import type { ConfiguratorKernelClass, UiPlanObject } from '../../typings/kernel';
3
+ import type { ConfiguratorKernelClass, ExternalModuleInformation, UiPlanObject } from '../../typings/kernel';
4
4
  import type { PlannerKernelContainer } from '../../typings/planner-kernel-container';
5
5
  import type { CAMERA_TYPE } from '../../common-core/src/cameracontrol/camera-type';
6
6
  import type { SELECTION_MODE } from '../../configurator-core/src/utils/selection-handler';
@@ -228,7 +228,7 @@ export default class RoomlePlannerUiCallback extends UiCallback implements Exter
228
228
  /**
229
229
  * documented in interface ExternalObjectUiCallback
230
230
  */
231
- onExternalObjectAttributeChanged: (rootModuleId: string, subModuleId: string | null, attributeId: string, value: string) => void;
231
+ onExternalObjectAttributeChanged: (groupId: string, moduleIds: string | ExternalModuleInformation[] | null, attributeId: string, value: string) => void;
232
232
  /**
233
233
  * documented in interface ExternalObjectUiCallback
234
234
  */
@@ -20,7 +20,7 @@ export interface PlannerKernelCallbackI {
20
20
  planElementChanged(plan: Plan, planObject: PlanElementViewModel): void;
21
21
  planElementRemoved(element: PlanElement): void;
22
22
  planObjectConfigurationLoaded(plan: Plan, element: PlanElement, success: boolean): void;
23
- planObjectConfigurationChanged(plan: Plan, object: PlanObject): void;
23
+ planObjectConfigurationChanged(plan: Plan, element: PlanElementViewModel): void;
24
24
  planBoundsChanged(): void;
25
25
  planHistoryStateChanged(): void;
26
26
  planCleared(): void;
@@ -76,6 +76,7 @@ export default class PlannerKernelAccess extends ConfiguratorKernelAccess {
76
76
  externalObjectComponentSplitOff(plan: Plan, planObject: PlanObject, splitGroups: ExternalObjectGroup[]): void;
77
77
  externalObjectArrangementChanged(plan: Plan, planObject: PlanObject, changedGroup: ExternalObjectGroup): void;
78
78
  planObjectConfigurationLoaded(plan: Plan, element: PlanElement, success: boolean): Promise<void>;
79
+ planObjectConfigurationChanged(plan: Plan, object: PlanObject): void;
79
80
  requestCatalogItem(catalogItemId: string): void;
80
81
  startedDrawing(): void;
81
82
  stoppedDrawing(): void;
@@ -24,7 +24,7 @@ export declare class PlannerSelectionHandlerEvent {
24
24
  export default class PlannerSelectionHandler extends EventDispatcher<PlannerSelectionHandlerEvent> {
25
25
  private _selectionMode;
26
26
  protected _selectedPlanElementViewModels: Map<number, PlanElementViewModel>;
27
- check(planElementViewModel: PlanElementViewModel, isDragIn: boolean): void;
27
+ check(planElementViewModel: PlanElementViewModel): void;
28
28
  removeSelection(): void;
29
29
  cancelSelection(reason: CancelSelectionReasons): void;
30
30
  private _checkStandard;