@roomle/web-sdk 2.30.0 → 2.31.0-alpha.3

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 (258) hide show
  1. package/lib/banana-for-scale-141aac17.nomodule.js +2 -0
  2. package/lib/{banana-for-scale-6039ec99.nomodule.js.map → banana-for-scale-141aac17.nomodule.js.map} +1 -1
  3. package/lib/banana-for-scale-22914fa9.js +2 -0
  4. package/lib/{banana-for-scale-e0f3ceb7.js.map → banana-for-scale-22914fa9.js.map} +1 -1
  5. package/lib/{budgeteer-measure-8cfea554.js → budgeteer-measure-700b4d27.js} +2 -2
  6. package/lib/{budgeteer-measure-8cfea554.js.map → budgeteer-measure-700b4d27.js.map} +1 -1
  7. package/lib/budgeteer-measure.nomodule.js +1 -1
  8. package/lib/{component-dimensioning-a07c783b.nomodule.js → component-dimensioning-5e747b61.nomodule.js} +2 -2
  9. package/lib/component-dimensioning-5e747b61.nomodule.js.map +1 -0
  10. package/lib/{component-dimensioning-693bfa2f.js → component-dimensioning-fb7c1c69.js} +2 -2
  11. package/lib/component-dimensioning-fb7c1c69.js.map +1 -0
  12. package/lib/configurator-ac4b6505.js +2 -0
  13. package/lib/configurator-ac4b6505.js.map +1 -0
  14. package/lib/configurator-cefab5fe.nomodule.js +2 -0
  15. package/lib/configurator-cefab5fe.nomodule.js.map +1 -0
  16. package/lib/configurator-main-5779d018.js +2 -0
  17. package/lib/configurator-main-5779d018.js.map +1 -0
  18. package/lib/configurator-main.nomodule.js +1 -1
  19. package/lib/configurator-mesh-generator-5cd4381f.js +2 -0
  20. package/lib/configurator-mesh-generator-5cd4381f.js.map +1 -0
  21. package/lib/configurator-mesh-generator-719634c2.nomodule.js +2 -0
  22. package/lib/configurator-mesh-generator-719634c2.nomodule.js.map +1 -0
  23. package/lib/{default-light-setting-f8d25c8f.nomodule.js → default-light-setting-0cfc3fcd.nomodule.js} +2 -2
  24. package/lib/default-light-setting-0cfc3fcd.nomodule.js.map +1 -0
  25. package/lib/{default-light-setting-82c45035.js → default-light-setting-4c3fa180.js} +2 -2
  26. package/lib/default-light-setting-4c3fa180.js.map +1 -0
  27. package/lib/definitions/common-core/mock/kernel-instances.d.ts +4 -1
  28. package/lib/definitions/common-core/src/kernel-access.d.ts +4 -10
  29. package/lib/definitions/common-core/src/services/common-kernel-access.d.ts +18 -2
  30. package/lib/definitions/common-core/src/utils/init-data.d.ts +0 -2
  31. package/lib/definitions/common-core/src/utils/shims.d.ts +0 -11
  32. package/lib/definitions/common-core/src/utils/threejs-utils.d.ts +1 -0
  33. package/lib/definitions/common-core/src/webgl/layer.d.ts +1 -1
  34. package/lib/definitions/common-core/src/webgl/roomle-component-factory.d.ts +1 -1
  35. package/lib/definitions/common-core/src/webgl/scene-manager.d.ts +19 -8
  36. package/lib/definitions/configurator-core/mock/configurator-mock-data.d.ts +1 -0
  37. package/lib/definitions/configurator-core/src/roomle-configurator.d.ts +8 -8
  38. package/lib/definitions/configurator-core/src/static-files/geometries.d.ts +0 -3
  39. package/lib/definitions/configurator-core/src/webgl/configurator-scene-event-handler.d.ts +1 -3
  40. package/lib/definitions/configurator-core/src/webgl/{scene-helper.d.ts → configurator-scene-manager.d.ts} +18 -77
  41. package/lib/definitions/glb-viewer-core/src/webgl/glb-viewer-scene-manager.d.ts +1 -1
  42. package/lib/definitions/material-viewer/src/webgl/material-viewer-scene-manager.d.ts +1 -1
  43. package/lib/definitions/planner-core/src/roomle-planner.d.ts +32 -3
  44. package/lib/definitions/planner-core/src/services/planner-kernel-access.d.ts +0 -1
  45. package/lib/definitions/planner-core/src/view-model/node-plan-element-view-model.d.ts +6 -0
  46. package/lib/definitions/planner-core/src/view-model/plan-view-model.d.ts +6 -1
  47. package/lib/definitions/planner-core/src/view-model/wall-plan-element-view-model.d.ts +1 -0
  48. package/lib/definitions/planner-core/src/webgl/planner-scene-manager.d.ts +1 -1
  49. package/lib/definitions/typings/kernel.d.ts +4 -1
  50. package/lib/definitions/typings/planner.d.ts +16 -0
  51. package/lib/dimensioning-helper-154cc3a1.nomodule.js +2 -0
  52. package/lib/dimensioning-helper-154cc3a1.nomodule.js.map +1 -0
  53. package/lib/dimensioning-helper-3358a318.js +2 -0
  54. package/lib/dimensioning-helper-3358a318.js.map +1 -0
  55. package/lib/glb-viewer-79f4e8f2.nomodule.js +2 -0
  56. package/lib/{glb-viewer-15affc03.nomodule.js.map → glb-viewer-79f4e8f2.nomodule.js.map} +1 -1
  57. package/lib/glb-viewer-f03a2567.js +2 -0
  58. package/lib/{glb-viewer-7d23d927.js.map → glb-viewer-f03a2567.js.map} +1 -1
  59. package/lib/glb-viewer-main-0f214277.js +2 -0
  60. package/lib/glb-viewer-main-0f214277.js.map +1 -0
  61. package/lib/glb-viewer-main.nomodule.js +1 -1
  62. package/lib/image-renderer-2ef5040e.nomodule.js +2 -0
  63. package/lib/{image-renderer-c9c4c8f7.nomodule.js.map → image-renderer-2ef5040e.nomodule.js.map} +1 -1
  64. package/lib/image-renderer-aec6bf8b.js +2 -0
  65. package/lib/{image-renderer-6fc71da8.js.map → image-renderer-aec6bf8b.js.map} +1 -1
  66. package/lib/legacy/banana-for-scale-facecaed.legacy.js +2 -0
  67. package/lib/legacy/{banana-for-scale-e8b915f1.legacy.js.map → banana-for-scale-facecaed.legacy.js.map} +1 -1
  68. package/lib/legacy/budgeteer-measure.legacy.js +1 -1
  69. package/lib/legacy/{component-dimensioning-48101456.legacy.js → component-dimensioning-4caad30b.legacy.js} +2 -2
  70. package/lib/legacy/component-dimensioning-4caad30b.legacy.js.map +1 -0
  71. package/lib/legacy/configurator-8891cab5.legacy.js +2 -0
  72. package/lib/legacy/configurator-8891cab5.legacy.js.map +1 -0
  73. package/lib/legacy/configurator-main.legacy.js +1 -1
  74. package/lib/legacy/configurator-mesh-generator-d7c0f722.legacy.js +2 -0
  75. package/lib/legacy/configurator-mesh-generator-d7c0f722.legacy.js.map +1 -0
  76. package/lib/legacy/{default-light-setting-36654912.legacy.js → default-light-setting-f9c0f379.legacy.js} +2 -2
  77. package/lib/legacy/default-light-setting-f9c0f379.legacy.js.map +1 -0
  78. package/lib/legacy/dimensioning-helper-a8aa1a40.legacy.js +2 -0
  79. package/lib/legacy/dimensioning-helper-a8aa1a40.legacy.js.map +1 -0
  80. package/lib/legacy/glb-viewer-4f36a579.legacy.js +2 -0
  81. package/lib/legacy/{glb-viewer-bb4c879c.legacy.js.map → glb-viewer-4f36a579.legacy.js.map} +1 -1
  82. package/lib/legacy/glb-viewer-main.legacy.js +1 -1
  83. package/lib/legacy/image-renderer-b41c524a.legacy.js +2 -0
  84. package/lib/legacy/{image-renderer-0dcc5d03.legacy.js.map → image-renderer-b41c524a.legacy.js.map} +1 -1
  85. package/lib/legacy/{main-thread-to-worker-4c02f179.legacy.js → main-thread-to-worker-fb98950d.legacy.js} +2 -2
  86. package/lib/legacy/main-thread-to-worker-fb98950d.legacy.js.map +1 -0
  87. package/lib/legacy/material-viewer-7fab7335.legacy.js +2 -0
  88. package/lib/legacy/material-viewer-7fab7335.legacy.js.map +1 -0
  89. package/lib/legacy/material-viewer-main.legacy.js +1 -1
  90. package/lib/legacy/mesh-generator-e286194e.legacy.js +2 -0
  91. package/lib/legacy/mesh-generator-e286194e.legacy.js.map +1 -0
  92. package/lib/legacy/pixotron-2fe30835.legacy.js +2 -0
  93. package/lib/legacy/pixotron-2fe30835.legacy.js.map +1 -0
  94. package/lib/legacy/planner-68d375ba.legacy.js +2 -0
  95. package/lib/legacy/{planner-6fcb9010.legacy.js.map → planner-68d375ba.legacy.js.map} +1 -1
  96. package/lib/legacy/planner-main.legacy.js +1 -1
  97. package/lib/legacy/rapi-access-2a5f0d6e.legacy.js +16 -0
  98. package/lib/legacy/{rapi-access-3c63c74b.legacy.js.map → rapi-access-2a5f0d6e.legacy.js.map} +1 -1
  99. package/lib/legacy/roomle-sdk.legacy.js +1 -1
  100. package/lib/legacy/static/ConfiguratorKernel-2d65fb351a47e14f.wasm +0 -0
  101. package/lib/legacy/static/{ConfiguratorKernel-4ca6a302619d4901.js → ConfiguratorKernel-b3f9bde09ca9cb82.js} +3 -3
  102. package/lib/legacy/static/ConfiguratorKernelJs-0e232fcb92bd0fdf.js +143 -0
  103. package/lib/legacy/static/ConfiguratorKernelJs-5f8ff2d9e58b1c2e.mem +0 -0
  104. package/lib/legacy/static/RoomleCore-142e8c50aaf95e25.wasm +0 -0
  105. package/lib/legacy/static/{RoomleCore-0b27042fad1c1d39.js → RoomleCore-7aae58649d719a05.js} +4 -4
  106. package/lib/legacy/static/RoomleCoreJs-28f57d562097ad09.js +151 -0
  107. package/lib/legacy/static/RoomleCoreJs-7129d0003a480c2c.mem +0 -0
  108. package/lib/legacy/static/shaders-36d0319326c4463c.json +1 -0
  109. package/lib/legacy/{stats-helper-bf66b858.legacy.js → stats-helper-8a009d9b.legacy.js} +2 -2
  110. package/lib/legacy/{stats-helper-bf66b858.legacy.js.map → stats-helper-8a009d9b.legacy.js.map} +1 -1
  111. package/lib/{main-thread-to-worker-4fc95d50.nomodule.js → main-thread-to-worker-97315397.nomodule.js} +2 -2
  112. package/lib/main-thread-to-worker-97315397.nomodule.js.map +1 -0
  113. package/lib/{main-thread-to-worker-5447c1c5.js → main-thread-to-worker-9d399850.js} +2 -2
  114. package/lib/main-thread-to-worker-9d399850.js.map +1 -0
  115. package/lib/material-viewer-35a1667b.js +2 -0
  116. package/lib/material-viewer-35a1667b.js.map +1 -0
  117. package/lib/material-viewer-e9a19afe.nomodule.js +2 -0
  118. package/lib/material-viewer-e9a19afe.nomodule.js.map +1 -0
  119. package/lib/material-viewer-main-7584b24f.js +2 -0
  120. package/lib/material-viewer-main-7584b24f.js.map +1 -0
  121. package/lib/material-viewer-main.nomodule.js +1 -1
  122. package/lib/mesh-generator-d641da46.nomodule.js +2 -0
  123. package/lib/mesh-generator-d641da46.nomodule.js.map +1 -0
  124. package/lib/mesh-generator-e8cdc7cf.js +2 -0
  125. package/lib/mesh-generator-e8cdc7cf.js.map +1 -0
  126. package/lib/pixotron-9b23daa3.nomodule.js +2 -0
  127. package/lib/pixotron-9b23daa3.nomodule.js.map +1 -0
  128. package/lib/pixotron-f16e92fe.js +2 -0
  129. package/lib/pixotron-f16e92fe.js.map +1 -0
  130. package/lib/planner-92cd02ad.js +2 -0
  131. package/lib/{planner-7825b896.js.map → planner-92cd02ad.js.map} +1 -1
  132. package/lib/planner-e2d8f4ac.nomodule.js +2 -0
  133. package/lib/{planner-714bb53f.nomodule.js.map → planner-e2d8f4ac.nomodule.js.map} +1 -1
  134. package/lib/planner-main-994ac088.js +2 -0
  135. package/lib/planner-main-994ac088.js.map +1 -0
  136. package/lib/planner-main.nomodule.js +1 -1
  137. package/lib/rapi-access-184c82bc.js +16 -0
  138. package/lib/{rapi-access-6aa6bee0.js.map → rapi-access-184c82bc.js.map} +1 -1
  139. package/lib/rapi-access-5df63b00.nomodule.js +16 -0
  140. package/lib/{rapi-access-a4deb335.nomodule.js.map → rapi-access-5df63b00.nomodule.js.map} +1 -1
  141. package/lib/{roomle-sdk-b6d056a3.js → roomle-sdk-8880667c.js} +2 -2
  142. package/lib/roomle-sdk-8880667c.js.map +1 -0
  143. package/lib/roomle-sdk.nomodule.js +1 -1
  144. package/lib/static/ConfiguratorKernel-2d65fb351a47e14f.wasm +0 -0
  145. package/lib/static/{ConfiguratorKernel-4ca6a302619d4901.js → ConfiguratorKernel-b3f9bde09ca9cb82.js} +1 -1
  146. package/lib/static/ConfiguratorKernel-b3f9bde09ca9cb82.js.map +1 -0
  147. package/lib/static/ConfiguratorKernelJs-0e232fcb92bd0fdf.js +143 -0
  148. package/lib/static/ConfiguratorKernelJs-5f8ff2d9e58b1c2e.mem +0 -0
  149. package/lib/static/RoomleCore-142e8c50aaf95e25.wasm +0 -0
  150. package/lib/static/{RoomleCore-0b27042fad1c1d39.js → RoomleCore-7aae58649d719a05.js} +1 -1
  151. package/lib/static/RoomleCore-7aae58649d719a05.js.map +1 -0
  152. package/lib/static/RoomleCoreJs-28f57d562097ad09.js +151 -0
  153. package/lib/static/RoomleCoreJs-7129d0003a480c2c.mem +0 -0
  154. package/lib/static/shaders-36d0319326c4463c.json +1 -0
  155. package/lib/{stats-helper-38be1e59.nomodule.js → stats-helper-68cb7b1c.nomodule.js} +2 -2
  156. package/lib/{stats-helper-38be1e59.nomodule.js.map → stats-helper-68cb7b1c.nomodule.js.map} +1 -1
  157. package/lib/{stats-helper-3bba9132.js → stats-helper-fa2b0d75.js} +2 -2
  158. package/lib/{stats-helper-3bba9132.js.map → stats-helper-fa2b0d75.js.map} +1 -1
  159. package/package.json +2 -2
  160. package/lib/banana-for-scale-6039ec99.nomodule.js +0 -2
  161. package/lib/banana-for-scale-e0f3ceb7.js +0 -2
  162. package/lib/component-dimensioning-693bfa2f.js.map +0 -1
  163. package/lib/component-dimensioning-a07c783b.nomodule.js.map +0 -1
  164. package/lib/configurator-82d6aac4.nomodule.js +0 -2
  165. package/lib/configurator-82d6aac4.nomodule.js.map +0 -1
  166. package/lib/configurator-c8121d36.js +0 -2
  167. package/lib/configurator-c8121d36.js.map +0 -1
  168. package/lib/configurator-main-5578f7c1.js +0 -2
  169. package/lib/configurator-main-5578f7c1.js.map +0 -1
  170. package/lib/configurator-mesh-generator-202a8152.nomodule.js +0 -2
  171. package/lib/configurator-mesh-generator-202a8152.nomodule.js.map +0 -1
  172. package/lib/configurator-mesh-generator-31a1f944.js +0 -2
  173. package/lib/configurator-mesh-generator-31a1f944.js.map +0 -1
  174. package/lib/default-light-setting-82c45035.js.map +0 -1
  175. package/lib/default-light-setting-f8d25c8f.nomodule.js.map +0 -1
  176. package/lib/definitions/configurator-core/src/utils/addon-helper.d.ts +0 -39
  177. package/lib/definitions/configurator-core/src/webgl/environment/gltf-environment.d.ts +0 -18
  178. package/lib/dimensioning-helper-d3a04793.nomodule.js +0 -2
  179. package/lib/dimensioning-helper-d3a04793.nomodule.js.map +0 -1
  180. package/lib/dimensioning-helper-e6829ce0.js +0 -2
  181. package/lib/dimensioning-helper-e6829ce0.js.map +0 -1
  182. package/lib/glb-viewer-15affc03.nomodule.js +0 -2
  183. package/lib/glb-viewer-7d23d927.js +0 -2
  184. package/lib/glb-viewer-main-52c3545c.js +0 -2
  185. package/lib/glb-viewer-main-52c3545c.js.map +0 -1
  186. package/lib/image-renderer-6fc71da8.js +0 -2
  187. package/lib/image-renderer-c9c4c8f7.nomodule.js +0 -2
  188. package/lib/legacy/banana-for-scale-e8b915f1.legacy.js +0 -2
  189. package/lib/legacy/component-dimensioning-48101456.legacy.js.map +0 -1
  190. package/lib/legacy/configurator-680166a3.legacy.js +0 -2
  191. package/lib/legacy/configurator-680166a3.legacy.js.map +0 -1
  192. package/lib/legacy/configurator-mesh-generator-60b80890.legacy.js +0 -2
  193. package/lib/legacy/configurator-mesh-generator-60b80890.legacy.js.map +0 -1
  194. package/lib/legacy/default-light-setting-36654912.legacy.js.map +0 -1
  195. package/lib/legacy/dimensioning-helper-9f04bd0f.legacy.js +0 -2
  196. package/lib/legacy/dimensioning-helper-9f04bd0f.legacy.js.map +0 -1
  197. package/lib/legacy/glb-viewer-bb4c879c.legacy.js +0 -2
  198. package/lib/legacy/image-renderer-0dcc5d03.legacy.js +0 -2
  199. package/lib/legacy/main-thread-to-worker-4c02f179.legacy.js.map +0 -1
  200. package/lib/legacy/material-viewer-3e1c757c.legacy.js +0 -2
  201. package/lib/legacy/material-viewer-3e1c757c.legacy.js.map +0 -1
  202. package/lib/legacy/mesh-generator-06dd33ab.legacy.js +0 -2
  203. package/lib/legacy/mesh-generator-06dd33ab.legacy.js.map +0 -1
  204. package/lib/legacy/pixotron-5df83bdf.legacy.js +0 -2
  205. package/lib/legacy/pixotron-5df83bdf.legacy.js.map +0 -1
  206. package/lib/legacy/planner-6fcb9010.legacy.js +0 -2
  207. package/lib/legacy/rapi-access-3c63c74b.legacy.js +0 -16
  208. package/lib/legacy/scene-manager-1943ea73.legacy.js +0 -2
  209. package/lib/legacy/scene-manager-1943ea73.legacy.js.map +0 -1
  210. package/lib/legacy/static/AddButtonRound-8004fa7dffdf7501.glb +0 -0
  211. package/lib/legacy/static/ConfiguratorKernel-6713e1de96ef978c.wasm +0 -0
  212. package/lib/legacy/static/ConfiguratorKernelJs-48f878d7e377be5f.mem +0 -0
  213. package/lib/legacy/static/ConfiguratorKernelJs-df7e5e8c447ce141.js +0 -143
  214. package/lib/legacy/static/PhotoStudioRoom-5b94763849f82256.glb +0 -0
  215. package/lib/legacy/static/RoomleCore-e855c1668e7e1763.wasm +0 -0
  216. package/lib/legacy/static/RoomleCoreJs-582f2f94cdd9aadc.js +0 -151
  217. package/lib/legacy/static/RoomleCoreJs-fe17a5f3a30cab74.mem +0 -0
  218. package/lib/legacy/static/USM-config-gltf-ad488aada649b7a5.glb +0 -0
  219. package/lib/legacy/static/shaders-2fc4ae2ed0253c51.json +0 -1
  220. package/lib/main-thread-to-worker-4fc95d50.nomodule.js.map +0 -1
  221. package/lib/main-thread-to-worker-5447c1c5.js.map +0 -1
  222. package/lib/material-viewer-a13d25f9.nomodule.js +0 -2
  223. package/lib/material-viewer-a13d25f9.nomodule.js.map +0 -1
  224. package/lib/material-viewer-b38ac2ae.js +0 -2
  225. package/lib/material-viewer-b38ac2ae.js.map +0 -1
  226. package/lib/material-viewer-main-01208f3e.js +0 -2
  227. package/lib/material-viewer-main-01208f3e.js.map +0 -1
  228. package/lib/mesh-generator-21da9a0f.nomodule.js +0 -2
  229. package/lib/mesh-generator-21da9a0f.nomodule.js.map +0 -1
  230. package/lib/mesh-generator-76bdc62e.js +0 -2
  231. package/lib/mesh-generator-76bdc62e.js.map +0 -1
  232. package/lib/pixotron-102325cf.js +0 -2
  233. package/lib/pixotron-102325cf.js.map +0 -1
  234. package/lib/pixotron-b9c572b1.nomodule.js +0 -2
  235. package/lib/pixotron-b9c572b1.nomodule.js.map +0 -1
  236. package/lib/planner-714bb53f.nomodule.js +0 -2
  237. package/lib/planner-7825b896.js +0 -2
  238. package/lib/planner-main-20affea9.js +0 -2
  239. package/lib/planner-main-20affea9.js.map +0 -1
  240. package/lib/rapi-access-6aa6bee0.js +0 -16
  241. package/lib/rapi-access-a4deb335.nomodule.js +0 -16
  242. package/lib/roomle-sdk-b6d056a3.js.map +0 -1
  243. package/lib/scene-manager-65338406.nomodule.js +0 -2
  244. package/lib/scene-manager-65338406.nomodule.js.map +0 -1
  245. package/lib/scene-manager-a0e9a847.js +0 -2
  246. package/lib/scene-manager-a0e9a847.js.map +0 -1
  247. package/lib/static/AddButtonRound-8004fa7dffdf7501.glb +0 -0
  248. package/lib/static/ConfiguratorKernel-4ca6a302619d4901.js.map +0 -1
  249. package/lib/static/ConfiguratorKernel-6713e1de96ef978c.wasm +0 -0
  250. package/lib/static/ConfiguratorKernelJs-48f878d7e377be5f.mem +0 -0
  251. package/lib/static/ConfiguratorKernelJs-df7e5e8c447ce141.js +0 -143
  252. package/lib/static/PhotoStudioRoom-5b94763849f82256.glb +0 -0
  253. package/lib/static/RoomleCore-0b27042fad1c1d39.js.map +0 -1
  254. package/lib/static/RoomleCore-e855c1668e7e1763.wasm +0 -0
  255. package/lib/static/RoomleCoreJs-582f2f94cdd9aadc.js +0 -151
  256. package/lib/static/RoomleCoreJs-fe17a5f3a30cab74.mem +0 -0
  257. package/lib/static/USM-config-gltf-ad488aada649b7a5.glb +0 -0
  258. package/lib/static/shaders-2fc4ae2ed0253c51.json +0 -1
@@ -1,2 +1,2 @@
1
- import{h as getGUI}from"./rapi-access-6aa6bee0.js";import{L as LightSetting}from"./pixotron-102325cf.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 THREE.DirectionalLight(new THREE.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 THREE.Vector2(1024,1024),this._mainDirectionalLight.visible=!0,this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0)),this._secondDirectionalLight=new THREE.DirectionalLight(new THREE.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 THREE.Vector2(1024,1024),this._secondDirectionalLight.visible=!0,this._secondDirectionalLight.lookAt(new THREE.Vector3(0,0,0)),this._ambientLight=new THREE.AmbientLight(new THREE.Color(this._params.ambientLight.color),.5),this._ambientLight.layers.set(1),this.addToScene()}needsBounds(){return!0}updateBounds(i){const t=i.getSize(new THREE.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 THREE.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 THREE.Color(i)),t.add(this._mainDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.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 THREE.Color(i)),t.add(this._secondDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0)))}}}}export{DefaultLightSetting as D};
2
- //# sourceMappingURL=default-light-setting-82c45035.js.map
1
+ import{J as getGUI}from"./rapi-access-184c82bc.js";import{L as LightSetting}from"./pixotron-f16e92fe.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 THREE.DirectionalLight(new THREE.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 THREE.Vector2(1024,1024),this._mainDirectionalLight.visible=!0,this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0)),this._secondDirectionalLight=new THREE.DirectionalLight(new THREE.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 THREE.Vector2(1024,1024),this._secondDirectionalLight.visible=!0,this._secondDirectionalLight.lookAt(new THREE.Vector3(0,0,0)),this._ambientLight=new THREE.AmbientLight(new THREE.Color(this._params.ambientLight.color),.5),this._ambientLight.layers.set(1),this.addToScene()}needsBounds(){return!0}updateBounds(i){const t=i.getSize(new THREE.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 THREE.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 THREE.Color(i)),t.add(this._mainDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.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 THREE.Color(i)),t.add(this._secondDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0)))}}}}export{DefaultLightSetting as D};
2
+ //# sourceMappingURL=default-light-setting-4c3fa180.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-light-setting-4c3fa180.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { KernelObject } from '../../typings/planner';
1
+ import { KernelObject, PlanOverview } from '../../typings/planner';
2
2
  import PlanViewModel from '../../planner-core/src/view-model/plan-view-model';
3
3
  export declare const MOCK_MINIMAL_KERNEL_INSTANCE: {
4
4
  setEnvironmentVariable: () => void;
@@ -14,6 +14,9 @@ export declare const MOCK_MINIMAL_KERNEL_CONTAINER: {
14
14
  registerPlannerCallback: () => void;
15
15
  unregisterConfiguratorCallback: () => void;
16
16
  PlanInteractionHandler: () => void;
17
+ PlanModelViewHelper: {
18
+ getPlanOverview: () => PlanOverview;
19
+ };
17
20
  UnitMeasureFormatter: () => void;
18
21
  Unit: {};
19
22
  UnitStringType: {};
@@ -1,9 +1,11 @@
1
1
  import ConfiguratorContext from './webgl/configurator-context';
2
- import { EmscriptenString, KernelParameter, KernelParameterGroup, KernelPart, KernelPartList, KernelVector3, PlanObject, VariantsList } from '../../typings/kernel';
2
+ import { ConfiguratorKernelClass, EmscriptenString, KernelParameter, KernelParameterGroup, KernelVector3, PlanObject, VariantsList } from '../../typings/kernel';
3
3
  import CommonKernelAccess from './services/common-kernel-access';
4
4
  import { ArticleNumber, ConfigurationHash, ConfigurationString, RapiId, RapiPrice } from '../../typings/rapi-types';
5
5
  import { CommonConfiguratorKernelCallbackI } from './common-configurator-kernel-callback';
6
+ import GlobalInitData from './utils/global-init-data';
6
7
  import { PromiseQueue } from './utils/promise-queue';
8
+ export declare const setupConfiguratorKernelInstance: (kernelInstance: ConfiguratorKernelClass, globalInitData: GlobalInitData) => void;
7
9
  export interface ConfiguratorKernelCallbackI extends CommonConfiguratorKernelCallbackI {
8
10
  planObjectCreated(conversationId: number, planObjectId: number): void;
9
11
  planObjectUpdated(planObject: PlanObject): void;
@@ -18,16 +20,11 @@ export interface ConfiguratorKernelCallbackI extends CommonConfiguratorKernelCal
18
20
  finishParameterChange(resolve: () => void, reject: () => void): void;
19
21
  }
20
22
  export default class KernelAccess extends CommonKernelAccess {
21
- private _unitFormatter;
22
23
  private _memoryManager;
23
24
  private _configuratorKernelAccessCallback;
24
- private _configuratorContext;
25
- private _initData;
26
- private _globalInitData;
27
25
  private _configuratorHistory;
28
26
  externalMeshQueue: PromiseQueue<void>;
29
27
  muteKernelCallbacks: boolean;
30
- private _lastPartListHash;
31
28
  constructor(creator: string);
32
29
  private _loadSuccess;
33
30
  private _loadError;
@@ -54,11 +51,8 @@ export default class KernelAccess extends CommonKernelAccess {
54
51
  changePlanObjectParameter(planObjectId: number, parameterKey: string, type: string, value: string, resolve: () => void, reject: () => void): void;
55
52
  private _finishParameterChange;
56
53
  requestDeleteComponents(componentIds: number[]): void;
57
- private _calcPrice;
58
54
  loadComponentIntoKernel(component: string, componentId: RapiId): void;
59
- addUiDataAndPriceToPartList(partList: KernelPartList, hash: string): Promise<KernelPartList>;
60
55
  requestPartListAndUpdatePricesOfParts(hash?: ConfigurationHash, _prices?: Map<ArticleNumber, RapiPrice>): Promise<void>;
61
- addUiDataToPartList(partList: KernelPart[], hash: string): KernelPart[];
62
56
  requestSync(conversationId: number, planObjectId: number): void;
63
57
  getGlobalParameters(planObjectId: number, rootComponentParametersAsGlobal: boolean): Promise<KernelParameter[]>;
64
58
  getPartList(): Promise<unknown>;
@@ -86,7 +80,7 @@ export default class KernelAccess extends CommonKernelAccess {
86
80
  Editor3dGeometryNotReady(id: number): void;
87
81
  Editor3dPlanObjectConstructionDone(planObjectId: number): Promise<{
88
82
  totalSum: number;
89
- partMap: Map<string, KernelPart>;
83
+ partMap: Map<string, import("../../typings/kernel").KernelPart>;
90
84
  }>;
91
85
  Editor3dBeginGroup(): void;
92
86
  Editor3dEndGroup(): void;
@@ -2,13 +2,17 @@ import RapiAccess from '../rapi-access';
2
2
  import ScriptLoader from '../script-loader';
3
3
  import KernelIo from '../kernel-io';
4
4
  import DataSyncer from './data-syncer';
5
- import { RapiId } from '../../../typings/rapi-types';
5
+ import { ArticleNumber, ConfigurationHash, PriceId, RapiId, RapiPrice } from '../../../typings/rapi-types';
6
6
  import { LifeCycleCallbacks } from '../life-cycle-manager';
7
7
  import { Context } from '../di/context';
8
- import { ConfigurationObject, ConfiguratorKernelClass, KernelVector3 } from '../../../typings/kernel';
8
+ import { ConfigurationObject, ConfiguratorKernelClass, KernelPart, KernelPartList, KernelVector3 } from '../../../typings/kernel';
9
9
  import { ConfiguratorKernelCallbackI } from '../kernel-access';
10
10
  import ConfiguratorUiCallbacks from '../../../configurator-core/src/services/configurator-ui-callback';
11
11
  import { GlobalCallback } from './global-callback';
12
+ import InitData from '../utils/init-data';
13
+ import UnitFormatter from '../../../configurator-core/src/services/unit-formatter';
14
+ import ConfiguratorContext from '../webgl/configurator-context';
15
+ import GlobalInitData from '../utils/global-init-data';
12
16
  export declare const enum KERNEL_TYPE {
13
17
  PLANNER = 0,
14
18
  CONFIGURATOR = 1
@@ -28,6 +32,11 @@ export default abstract class CommonKernelAccess implements LifeCycleCallbacks,
28
32
  private _requestedMaterialIds;
29
33
  protected _configuratorUiCallbacks: ConfiguratorUiCallbacks;
30
34
  protected _globalCallback: GlobalCallback;
35
+ protected _initData: InitData;
36
+ protected _unitFormatter: UnitFormatter;
37
+ protected _configuratorContext: ConfiguratorContext;
38
+ protected _globalInitData: GlobalInitData;
39
+ protected _lastPartListHash: string;
31
40
  protected _configuratorKernelCallbackListener: Set<ConfiguratorKernelCallbackI>;
32
41
  protected _cachedGroupIds: string[];
33
42
  protected _waitingForGroups: boolean;
@@ -100,5 +109,12 @@ export default abstract class CommonKernelAccess implements LifeCycleCallbacks,
100
109
  resume(): void;
101
110
  destroy(): void;
102
111
  protected _handleCortoMesh<T>(buffer: ArrayBuffer, meshId: string, quality: number): void;
112
+ protected _calcPrice(): Promise<{
113
+ totalSum: number;
114
+ partMap: Map<PriceId, KernelPart>;
115
+ }>;
116
+ addUiDataAndPriceToPartList(partList: KernelPartList, hash: string): Promise<KernelPartList>;
117
+ addUiDataToPartList(partList: KernelPart[], hash: string): KernelPart[];
118
+ requestPartListAndUpdatePricesOfParts(hash?: ConfigurationHash, _prices?: Map<ArticleNumber, RapiPrice>): Promise<void>;
103
119
  }
104
120
  export {};
@@ -30,8 +30,6 @@ export default class InitData implements Context, CommonInitData, ConfiguratorIn
30
30
  disableDebugGUI?: boolean;
31
31
  disableEnvMap?: boolean;
32
32
  offlineSync?: string;
33
- addOnSpots?: boolean;
34
- plusInPreview?: boolean;
35
33
  initialFloorMaterial?: string;
36
34
  dls?: string;
37
35
  ls?: string;
@@ -186,17 +186,6 @@ export interface ConfiguratorInitData {
186
186
  * Download all necessary files to run the configurator in offline mode
187
187
  */
188
188
  offlineSync?: string;
189
- /**
190
- * @deprecated
191
- * If set to true we are showing plus icon where addons can be added.
192
- * This has to be scripted. For more information ask your Roomle contact.
193
- */
194
- addOnSpots?: boolean;
195
- /**
196
- * @deprecated
197
- * If set to true we show a plus in the addon preview boxes.
198
- */
199
- plusInPreview?: boolean;
200
189
  /**
201
190
  * Set the floor material which is used when loading the configurator
202
191
  * For different options see {@link EnvironmentSetting}
@@ -48,3 +48,4 @@ export declare const getSelectionGeometry: (position: THREE.Vector3, size: THREE
48
48
  export declare const vectorIsZero: (vector: THREE.Vector3) => boolean;
49
49
  export declare const getMaterialId: (material: any, type?: KernelEnum) => string;
50
50
  export declare const vectorIsEqual: (vector1: THREE.Vector3, vector2: THREE.Vector3, tolerance?: number) => boolean;
51
+ export declare const getYRotationOfObject: (object: THREE.Object3D) => number;
@@ -7,7 +7,7 @@ export declare const enum LAYER {
7
7
  UI = 5,
8
8
  GIZMO = 6,
9
9
  DIMENSIONS = 7,
10
- ADDONSPOTS = 8
10
+ CONSTRUCTION = 8
11
11
  }
12
12
  declare const _default: {};
13
13
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { CanvasOffset } from '../common-interfaces';
2
2
  import { KernelCube, KernelVector3 } from '../../../typings/kernel';
3
3
  export interface RoomleComponent extends THREE.Object3D {
4
- roomleId: number;
4
+ runtimeId: number;
5
5
  parentObjectId: number;
6
6
  meshes: THREE.Mesh[];
7
7
  boundingBox: THREE.Box3;
@@ -17,6 +17,7 @@ import PixotronUtil from './pixotron-util';
17
17
  import { DynamicLightSettingSource } from '../lightsetting/dynamic-light-setting-loader';
18
18
  import InitData from '../utils/init-data';
19
19
  import { PerspectiveOffsetCamera } from './roomle-component-factory';
20
+ import PluginSystem from '../../../configurator-core/src/webgl/plugin-system';
20
21
  export default abstract class SceneManager implements Context, LifeCycleCallbacks, EventListenerObject {
21
22
  _creator_: string;
22
23
  protected _domHelper: DomHelper;
@@ -25,13 +26,16 @@ export default abstract class SceneManager implements Context, LifeCycleCallback
25
26
  private _staticItemLoader;
26
27
  protected _environmentLoader: EnvironmentLoader;
27
28
  protected _initData: InitData;
29
+ protected _pluginSystem: PluginSystem;
28
30
  protected _scene: THREE.Scene;
31
+ protected _uiScene: THREE.Scene;
32
+ private _depthWriteMaterial;
29
33
  protected _cameraControl: CameraControl;
30
34
  protected _lightSetting: LightSetting;
31
35
  protected _environment: Environment;
32
36
  protected _maxAnisotropy: number;
33
37
  protected _renderer: THREE.WebGLRenderer;
34
- private _renderTarget;
38
+ protected _renderTarget: THREE.WebGLRenderTarget | THREE.WebGLMultisampleRenderTarget;
35
39
  private _clock;
36
40
  private _delta;
37
41
  protected _renderLoopFunction: () => void;
@@ -45,7 +49,7 @@ export default abstract class SceneManager implements Context, LifeCycleCallback
45
49
  private _running;
46
50
  private _statsHelper;
47
51
  private _canvasID;
48
- protected abstract createCameraControl(mode: CAMERA_TYPE): void;
52
+ protected abstract createCameraControl(mode: CAMERA_TYPE, offset: CanvasOffset): void;
49
53
  protected abstract _getInputManager(): InputManager;
50
54
  abstract sceneChanged(): void;
51
55
  abstract getPixotronParams(): any;
@@ -53,7 +57,7 @@ export default abstract class SceneManager implements Context, LifeCycleCallback
53
57
  abstract getBakedShadowParams(): BakedShadowParams;
54
58
  protected onBeforeRender(): void;
55
59
  protected _onAfterRender: () => void;
56
- constructor(creator: string, offset: CanvasOffset, canvasID: string, mode?: CAMERA_TYPE, transparent?: boolean);
60
+ protected constructor(creator: string, offset: CanvasOffset, canvasID: string, mode?: CAMERA_TYPE, transparent?: boolean);
57
61
  protected _changeCameraControl(cameraControl: CameraControl): void;
58
62
  cameraControlChanged(): void;
59
63
  protected _addCameraControlListener(): void;
@@ -68,20 +72,24 @@ export default abstract class SceneManager implements Context, LifeCycleCallback
68
72
  */
69
73
  protected _renderWithoutShadowsAndAO(): void;
70
74
  protected _requestRender(): void;
75
+ private _shouldRenderUi;
76
+ private _renderUi;
71
77
  private _animateCamera;
78
+ protected shouldClearShadowsAndAO(): boolean;
72
79
  protected _setupScene(offset?: CanvasOffset, transparent?: boolean): void;
73
80
  private _tabVisible;
74
- setupScene(offset?: CanvasOffset, transparent?: boolean): void;
75
- updateCamera(): void;
81
+ updateCamera(_changeCamera?: boolean): void;
76
82
  private _onWindowResize;
77
83
  protected _isPartOfScene(object: THREE.Object3D): boolean;
78
84
  cleanUp(): void;
79
85
  clearScene(): void;
80
- enableHD(): void;
86
+ enableHD(source?: DynamicLightSettingSource): void;
87
+ private _enableAutoQuality;
88
+ private _enableSSR;
81
89
  protected _loadGLTF(gltfJSON: string, position?: THREE.Vector3, rotation?: number, size?: THREE.Vector3, scale?: THREE.Vector3, color?: number, callback?: (percent: number) => void): Promise<THREE.Object3D>;
82
90
  protected _loadGLB(url: string, position?: THREE.Vector3, rotation?: number, size?: THREE.Vector3, scale?: THREE.Vector3, color?: number, colorable?: boolean, callback?: (percent: number) => void): Promise<THREE.Object3D>;
83
91
  private _setCamera;
84
- showGUI(): void;
92
+ showGUI(): Promise<void>;
85
93
  protected _guiLoaded(): void;
86
94
  protected _addGUIListener(gui: GUI): void;
87
95
  protected _guiParamChanged(): void;
@@ -93,12 +101,15 @@ export default abstract class SceneManager implements Context, LifeCycleCallback
93
101
  destroy(): void;
94
102
  handleEvent(evt: Event): void;
95
103
  loadSceneSettings(sceneSetting: SceneSettings): Promise<void>;
104
+ setBackgroundColor(hex: string): void;
105
+ setBackgroundImage(url: string): void;
106
+ setBakedShadow(hex: string, url: string): void;
96
107
  protected _setEnvironment(environment: Environment): void;
97
108
  loadQualitySetting(qualitySetting: QualitySetting): void;
98
109
  loadDynamicLightSetting(source: DynamicLightSettingSource): Promise<void>;
99
110
  getScene(): THREE.Scene;
100
111
  updateScene(): void;
101
- protected _updateBounds(bounds: THREE.Box3): void;
112
+ protected _updateBounds(bounds: THREE.Box3, geometryChanged?: boolean): void;
102
113
  setCameraOffset(offset: CanvasOffset): void;
103
114
  getCameraOffset(): CanvasOffset;
104
115
  getPerspectiveOffsetCamera(): PerspectiveOffsetCamera;
@@ -1,4 +1,5 @@
1
1
  import { KernelPossibleChild } from '../../typings/kernel';
2
+ export declare const USM_PARTLIST: any;
2
3
  export declare const USM_KERNEL_POSSIBLE_CHILD: KernelPossibleChild;
3
4
  export declare const USM_RAPI_COMPONENT: {
4
5
  externalIdentifier: string;
@@ -42,7 +42,7 @@ export default class RoomleConfigurator implements GlobalAPI, Context, KernelUti
42
42
  private _threeLoader;
43
43
  private _scriptLoader;
44
44
  private _configuratorContext;
45
- private _sceneHelper;
45
+ private _configuratorSceneManager;
46
46
  private _initData;
47
47
  private _globalInitData;
48
48
  private _globalCallback;
@@ -587,15 +587,15 @@ export default class RoomleConfigurator implements GlobalAPI, Context, KernelUti
587
587
  */
588
588
  highlightParts(ids: number[]): void;
589
589
  /**
590
- * Undo last action
591
- * calls configuratorHistory.undo where array of last configuration are stored
592
- */
590
+ * Undo last action
591
+ * calls configuratorHistory.undo where array of last configuration are stored
592
+ */
593
593
  undo(): void;
594
594
  /**
595
- * Redo last action
596
- * calls configuratorHistory.redo where array of last configuration are stored
597
- * only possible if undo was called before
598
- */
595
+ * Redo last action
596
+ * calls configuratorHistory.redo where array of last configuration are stored
597
+ * only possible if undo was called before
598
+ */
599
599
  redo(): void;
600
600
  /**
601
601
  * clears current configurator history
@@ -1,4 +1 @@
1
- export { default as ADD_BUTTON_ROUND_FILE_NAME } from '../../public/geometry/AddButtonRound.glb';
2
1
  export { default as BANANA_FILE_NAME } from '../../public/geometry/banana_div2.glb';
3
- export { default as PHOTO_STUDIO_ROOM_FILE_NAME } from '../../public/geometry/PhotoStudioRoom.glb';
4
- export { default as USM_CONFIG_GLTF_FILE_NAME } from '../../public/geometry/USM-config-gltf.glb';
@@ -1,7 +1,6 @@
1
1
  import { PreviewComponent, PreviewLineComponent, RoomleComponent } from '../../../common-core/src/webgl/roomle-component-factory';
2
2
  import InputManager, { INPUT_EVENT_TYPE } from '../../../common-core/src/input/input-manager';
3
3
  import { SELECTION_MODE } from '../utils/selection-handler';
4
- import AddonHelper from '../utils/addon-helper';
5
4
  import SceneEventHandler from '../../../common-core/src/webgl/scene-event-handler';
6
5
  export declare const enum SCENE_EVENT {
7
6
  INTERACTION = 0,
@@ -40,14 +39,13 @@ export default class ConfiguratorSceneEventHandler extends SceneEventHandler<Sce
40
39
  _creator_: string;
41
40
  private _selectionHandler;
42
41
  private _cameraMoving;
43
- private _addonHelper;
44
42
  private _hoveredComponent;
45
43
  private _hoveredPreview;
46
44
  private _draggedComponent;
47
45
  private _previewLineIntersection;
48
46
  private _dragStartPosition;
49
47
  private _dragStartRotation;
50
- constructor(creator: string, scene: THREE.Scene, camera: THREE.PerspectiveCamera, inputManager: InputManager, addonHelper?: AddonHelper);
48
+ constructor(creator: string, scene: THREE.Scene, camera: THREE.PerspectiveCamera, inputManager: InputManager);
51
49
  private _addInputListeners;
52
50
  addComponentHandlers(component: RoomleComponent): void;
53
51
  addComponentDragInHandler(component: RoomleComponent): void;
@@ -1,95 +1,47 @@
1
1
  import { PreviewComponent, PreviewLineComponent, RoomleComponent } from '../../../common-core/src/webgl/roomle-component-factory';
2
+ import InputManager from '../../../common-core/src/input/input-manager';
2
3
  import { SELECTION_MODE } from '../utils/selection-handler';
3
4
  import { Base64Image, CanvasOffset } from '../../../common-core/src/common-interfaces';
4
5
  import { KernelComponent, PlanObject, UiPossibleChild } from '../../../typings/kernel';
5
- import { DynamicLightSettingSource } from '../../../common-core/src/lightsetting/dynamic-light-setting-loader';
6
6
  import { SceneSettings } from '../../../common-core/src/scene-settings-loader';
7
7
  import { RapiMaterial } from '../../../typings/rapi-types';
8
- import { Context } from '../../../common-core/src/di/context';
9
- import { LifeCycleCallbacks } from '../../../common-core/src/life-cycle-manager';
8
+ import { BakedShadowParams } from '../../../typings/pixotron';
10
9
  import { ConfiguratorViewModelCallbackI } from '../../../common-core/src/view-model/configurator-view-model';
11
10
  import { CameraParameter } from '../../../common-core/src/cameracontrol/camera-control';
12
11
  import { PrepareImageOptions, RenderOptions } from '../../../common-core/src/webgl/image-renderer';
13
- export default class SceneHelper implements Context, LifeCycleCallbacks, EventListenerObject, ConfiguratorViewModelCallbackI {
12
+ import SceneManager from '../../../common-core/src/webgl/scene-manager';
13
+ import { CAMERA_TYPE } from '../../../common-core/src/cameracontrol/camera-type';
14
+ export default class ConfiguratorSceneManager extends SceneManager implements ConfiguratorViewModelCallbackI {
14
15
  _creator_: string;
15
- private _domHelper;
16
- private _scriptLoader;
17
16
  private _configuratorInputManager;
18
17
  private _configuratorUiCallbacks;
19
18
  private _configuratorMeshGenerator;
20
19
  private _memoryManager;
21
- private _lifeCycleManager;
22
20
  private _configuratorContext;
23
21
  private _kernelAccess;
24
22
  private _componentDimensioningHelper;
25
23
  private _configuratorViewModel;
26
- private _environmentLoader;
27
- private _pluginSystem;
28
- private _initData;
29
24
  private _configuratorHistory;
30
25
  private _componentFactory;
31
26
  private _componentRaycastHelper;
32
- private _pixotron;
33
- private _pixotronUtil;
34
- private _composer;
35
- private _outlinePass;
36
- private _forceRender;
37
- private _updateShadowsAndAO;
38
- private _statsHelper;
39
- private _renderer;
40
- private _renderTarget;
41
- private _maxAnisotropy;
42
- private _clock;
43
- private _delta;
44
27
  private _dimensionHelper;
45
28
  private _uiIntersectionHelper;
46
29
  private _sceneEventHandler;
47
- private _cameraControl;
48
- private _addonHelper;
49
- private _scene;
50
- private _uiScene;
51
- private _depthWriteMaterial;
52
30
  private _camera;
53
- private _environment;
54
- private _lightSetting;
55
- private _lastChange;
56
- private _running;
57
- private _onAfterRender;
58
31
  constructor(creator: string, offset: CanvasOffset);
59
32
  private _initOptionalModules;
60
33
  private _showDockings;
61
34
  cancelDockings(): void;
62
35
  private _cancelDockings;
63
- stopRenderLoop(): void;
64
36
  private _onHoverOn;
65
37
  private _onHoverOff;
66
38
  private _highlight;
67
- private _shouldRenderUi;
68
- private _renderUi;
69
- /**
70
- * Start render loop and update everything (AA, AO, Shadows, etc)
71
- * @private
72
- */
73
- private _renderEverything;
74
- /**
75
- * Start render loop and render the scene but keep shadows and AO, needed for material changes
76
- * @private
77
- */
78
- private _renderWithoutShadowsAndAO;
79
- /**
80
- * start render loop
81
- * @private
82
- */
83
- private _requestRender;
84
- private _checkLayers;
85
- private _animateCamera;
39
+ protected shouldClearShadowsAndAO(): boolean;
86
40
  resume(): void;
87
41
  private _materialLoaded;
88
42
  private _applySSR;
89
43
  pause(): void;
90
- destroy(): void;
91
44
  protected _setupScene(offset?: CanvasOffset): void;
92
- private _tabVisible;
93
45
  sceneCleared(shouldHardReset: boolean): void;
94
46
  display(component: RoomleComponent): void;
95
47
  debugSceneGraph(id?: number): void;
@@ -105,7 +57,6 @@ export default class SceneHelper implements Context, LifeCycleCallbacks, EventLi
105
57
  private _externalMeshesAndMaterialsReady;
106
58
  prepareTopImage(options?: PrepareImageOptions): Promise<Base64Image>;
107
59
  enableDragIn(dragEvent: DragEvent): void;
108
- private _getYRotationOfObject;
109
60
  zoomToComponent(component: RoomleComponent): void;
110
61
  resetCamera(): void;
111
62
  resetCameraToState(): void;
@@ -113,41 +64,26 @@ export default class SceneHelper implements Context, LifeCycleCallbacks, EventLi
113
64
  private _clearSelectionAndHovers;
114
65
  resetPreviews(): void;
115
66
  changeOffset(offset: CanvasOffset): void;
116
- private _onWindowResize;
117
- updateSize(changeCamera?: boolean): void;
67
+ updateCamera(changeCamera?: boolean): void;
118
68
  setCameraOffset(offset: CanvasOffset): void;
119
69
  getCameraOffset(): CanvasOffset;
120
- private _onKeyDown;
121
- private _onKeyUp;
70
+ protected _onKeyDown(event: KeyboardEvent): void;
71
+ protected _onKeyUp(event: KeyboardEvent): void;
122
72
  cancelPreviousDockings(): void;
123
73
  cancelSelection(resetCamera?: boolean): void;
124
74
  private _cancelSelection;
125
75
  private _selectComponent;
126
76
  private _deselectComponent;
127
77
  getScreenXY(position: THREE.Vector3): import("three").Vector3;
128
- cleanUp(): void;
129
78
  setSelectionMode(mode: SELECTION_MODE): void;
130
79
  changeFloorMaterial(material: RapiMaterial): Promise<void>;
131
- enableHD(source?: DynamicLightSettingSource): void;
132
- private reEnableHD;
133
- private _enableAutoQuality;
134
- private _enableSSR;
135
- loadDynamicLightSetting(source: DynamicLightSettingSource): Promise<void>;
136
80
  exportGLB(): void;
137
- showGUI(): void;
138
- private _addGUIListener;
139
81
  zoomIn(value?: number): void;
140
82
  zoomOut(value?: number): void;
141
- showStats(): void;
142
83
  showDimensions(): Promise<void>;
143
84
  private _initDimensions;
144
85
  hideDimensions(): void;
145
86
  loadSceneSettings(sceneSetting: SceneSettings): Promise<void>;
146
- setBackgroundColor(hex: string): void;
147
- setBackgroundImage(url: string): void;
148
- setBakedShadow(hex: string, url: string): void;
149
- private _setEnvironment;
150
- handleEvent(evt: Event): void;
151
87
  private _updateCameraToBounds;
152
88
  requestDockingsPreview(userInitiated: boolean, possibleChild?: UiPossibleChild, dragEvent?: DragEvent, dragIn?: boolean): void;
153
89
  private _requestDockingsPreviewWithDrag;
@@ -155,7 +91,7 @@ export default class SceneHelper implements Context, LifeCycleCallbacks, EventLi
155
91
  private _onSelectedRuntimeComponentsChange;
156
92
  private _onSelectedRuntimeComponentChange;
157
93
  requestDeleteSelectedComponent(): void;
158
- componentUpdated(component: RoomleComponent, kernelComponent: KernelComponent): void;
94
+ componentUpdated(component: RoomleComponent, _kernelComponent: KernelComponent): void;
159
95
  planObjectUpdated(planObject: PlanObject, geometryChanged: boolean): void;
160
96
  componentDeleted(component: RoomleComponent): void;
161
97
  previewConstructionDone(component: RoomleComponent, hasPreviews: boolean): void;
@@ -164,11 +100,16 @@ export default class SceneHelper implements Context, LifeCycleCallbacks, EventLi
164
100
  addPreviewHandlers(previewComponent: PreviewComponent): void;
165
101
  addPreviewLineHandlers(previewLineComponent: PreviewLineComponent): void;
166
102
  private _updateComponentPosition;
167
- getScene(): THREE.Scene;
168
- private _updateBounds;
169
- updateScene(): void;
103
+ protected _updateBounds(box: THREE.Box3, geometryChanged?: boolean): void;
170
104
  moveCamera(cameraParameter: CameraParameter): Promise<void>;
171
105
  selectComponent(runtimeId: number): void;
172
106
  highlightParts(ids: number[]): void;
173
107
  private _shouldHighlight;
108
+ protected _getInputManager(): InputManager;
109
+ createCameraControl(_mode: CAMERA_TYPE, offset: CanvasOffset): void;
110
+ getBakedShadowParams(): BakedShadowParams;
111
+ getBounds(): THREE.Box3;
112
+ getPixotronParams(): any;
113
+ sceneChanged(): void;
114
+ private _getCameraControl;
174
115
  }
@@ -11,7 +11,7 @@ export default class GLBViewerSceneManager extends SceneManager implements GLBRe
11
11
  private _standardSceneBackgroundColor;
12
12
  private _itemsCount;
13
13
  constructor(creator: string, offset: CanvasOffset);
14
- protected createCameraControl(_mode: CAMERA_TYPE): void;
14
+ protected createCameraControl(_mode: CAMERA_TYPE, _offset: CanvasOffset): void;
15
15
  protected _getInputManager(): InputManager;
16
16
  loadStaticItem(id: string, callback?: (percent: number) => void): Promise<void>;
17
17
  loadGLB(url: string, automaticallyAdjustCamera?: boolean, scaling?: THREE.Vector3, callback?: (percent: number) => void): Promise<void>;
@@ -28,7 +28,7 @@ export default class MaterialViewerSceneManager extends SceneManager {
28
28
  loadMaterialShading(materialShading: RapiMaterialShading): Promise<void>;
29
29
  private _setMaterial;
30
30
  getMaterialShading(): RapiMaterialShading;
31
- protected createCameraControl(_mode: CAMERA_TYPE): void;
31
+ protected createCameraControl(_mode: CAMERA_TYPE, _offset: CanvasOffset): void;
32
32
  protected _getInputManager(): InputManager;
33
33
  sceneChanged(): void;
34
34
  getPixotronParams(): any;
@@ -10,8 +10,9 @@ import { PlanInteractionHandler, PlanModelViewHelper, PlanOverview } from '../..
10
10
  import { KernelAccessCallbackI } from '../../common-core/src/kernel-access-callback';
11
11
  import InitData from '../../common-core/src/utils/init-data';
12
12
  import { CanvasOffset, Position3 } from '../../common-core/src/common-interfaces';
13
- import { KernelPlanObject } from '../../typings/kernel';
14
13
  import { PrepareImageOptions } from '../../common-core/src/webgl/image-renderer';
14
+ import { DynamicLightSettingSource } from '../../common-core/src/lightsetting/dynamic-light-setting-loader';
15
+ import { KernelParameter, KernelPartList, UiPlanObject } from '../../typings/kernel';
15
16
  export interface RoomlePlannerCallback {
16
17
  switchToConfigurator: () => Promise<Configurator>;
17
18
  switchToViewer: () => Promise<GlbViewer>;
@@ -19,6 +20,14 @@ export interface RoomlePlannerCallback {
19
20
  deleteSelection: () => void;
20
21
  rotateSelection: (rotateBy: number) => void;
21
22
  }
23
+ export interface WallDefinition {
24
+ from: Position3;
25
+ to: Position3;
26
+ props?: {
27
+ thickness: number;
28
+ height: number;
29
+ };
30
+ }
22
31
  export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlannerCallback, GlobalAPI, BackstackCallbacks, Context, KernelUtilityForUi, ExternalEmbeddable<RoomlePlannerUiCallback> {
23
32
  _creator_: string;
24
33
  private _domHelper;
@@ -34,6 +43,7 @@ export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlann
34
43
  private _dataSyncer;
35
44
  protected _initData: InitData;
36
45
  private _globalInitData;
46
+ private _unitFormatter;
37
47
  private _planInteractionHandler;
38
48
  private _sceneManager;
39
49
  private _plan;
@@ -63,7 +73,7 @@ export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlann
63
73
  exportGLB(): void;
64
74
  importGLB(url: string): void;
65
75
  private _initPromiseCallback;
66
- enableHD(): Promise<void>;
76
+ enableHD(source?: DynamicLightSettingSource): Promise<void>;
67
77
  isReady(): void;
68
78
  showBenchmarks(): void;
69
79
  switchToConfigurator(): Promise<Configurator>;
@@ -128,7 +138,7 @@ export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlann
128
138
  * returns all objects found in the current plan
129
139
  * this includes info about size, rotation, id and parts
130
140
  */
131
- getObjects(): Promise<KernelPlanObject[]>;
141
+ getObjects(): Promise<UiPlanObject[]>;
132
142
  /**
133
143
  * get all info available for the current plan, including objects, rooms and walls
134
144
  */
@@ -160,4 +170,23 @@ export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlann
160
170
  * disable all types of snapping
161
171
  */
162
172
  disableSnapping(): void;
173
+ /**
174
+ * get the Partlist of certain runtimeID
175
+ * can be used if partlist of a selected Item is needed
176
+ * @param id runtimeID of a configurable item
177
+ * @returns kernelPartlist with processed price, currency and RAL colors
178
+ */
179
+ getPartlistOf(id: number): Promise<KernelPartList | null>;
180
+ /**
181
+ * Returns the formatted value based on the parameter.unitType
182
+ *
183
+ * @param value
184
+ * @param parameter
185
+ */
186
+ formatValueToUnitString(value: number, parameter: KernelParameter): string | number;
187
+ /**
188
+ * Draws walls according to the wall definitions
189
+ * this can be used to create a room on the fly
190
+ */
191
+ drawWalls(wallDefinitions: WallDefinition[]): void;
163
192
  }
@@ -23,7 +23,6 @@ export interface PlannerKernelCallbackI {
23
23
  export default class PlannerKernelAccess extends CommonKernelAccess {
24
24
  private _kernelAccessCallback;
25
25
  private _roomlePlannerUiCallback;
26
- private _initData;
27
26
  private _planInteractionHandler;
28
27
  private _plannerKernelCallbackListener;
29
28
  get kernelContainer(): any;