@roomle/web-sdk 3.6.0-alpha.3 → 3.6.0-alpha.4

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 (327) hide show
  1. package/lib/BufferGeometry-DLEagG41.mjs +1022 -0
  2. package/lib/BufferGeometry-DLEagG41.mjs.map +1 -0
  3. package/lib/ConfiguratorKernel.wasm +0 -0
  4. package/lib/GLTFExporter-D8qsdwDK.mjs +1092 -0
  5. package/lib/GLTFExporter-D8qsdwDK.mjs.map +1 -0
  6. package/lib/Object3D-DSjIOhON.mjs +1713 -0
  7. package/lib/Object3D-DSjIOhON.mjs.map +1 -0
  8. package/lib/PointLightHelper-BnjxGaOG.mjs +257 -0
  9. package/lib/PointLightHelper-BnjxGaOG.mjs.map +1 -0
  10. package/lib/RoomleCore.wasm +0 -0
  11. package/lib/RoomleToolsCore.wasm +0 -0
  12. package/lib/SpotLightHelper-DqsfqCrs.mjs +154 -0
  13. package/lib/SpotLightHelper-DqsfqCrs.mjs.map +1 -0
  14. package/lib/USDZExporter-DxIqi8St.mjs +296 -0
  15. package/lib/USDZExporter-DxIqi8St.mjs.map +1 -0
  16. package/lib/Vector4-DGmBYfpK.mjs +204 -0
  17. package/lib/Vector4-DGmBYfpK.mjs.map +1 -0
  18. package/lib/api-CNoIBuvr.mjs +55 -0
  19. package/lib/api-CNoIBuvr.mjs.map +1 -0
  20. package/lib/banana-for-scale-C_iNmlCT.mjs +36 -0
  21. package/lib/banana-for-scale-C_iNmlCT.mjs.map +1 -0
  22. package/lib/common-utils-DMSTohiS.mjs +187 -0
  23. package/lib/common-utils-DMSTohiS.mjs.map +1 -0
  24. package/lib/component-dimensioning-CvRmUja4.mjs +162 -0
  25. package/lib/component-dimensioning-CvRmUja4.mjs.map +1 -0
  26. package/lib/component-raycast-helper-CEp7wy9c.mjs +97 -0
  27. package/lib/component-raycast-helper-CEp7wy9c.mjs.map +1 -0
  28. package/lib/configurator-B_5XVG2O.mjs +45 -0
  29. package/lib/configurator-B_5XVG2O.mjs.map +1 -0
  30. package/lib/configurator-DCdvMM0o.mjs +2 -0
  31. package/lib/continuous-drawing-helper-v_5UAM9A.mjs +42 -0
  32. package/lib/continuous-drawing-helper-v_5UAM9A.mjs.map +1 -0
  33. package/lib/decorate-C1QnXPYw.mjs +35 -0
  34. package/lib/decorate-C1QnXPYw.mjs.map +1 -0
  35. package/lib/dimensioning-helper-DTcW85Oq.mjs +2 -0
  36. package/lib/dimensioning-helper-Fwpt1HTT.mjs +268 -0
  37. package/lib/dimensioning-helper-Fwpt1HTT.mjs.map +1 -0
  38. package/lib/fflate.module-dFNj5UPI.mjs +536 -0
  39. package/lib/fflate.module-dFNj5UPI.mjs.map +1 -0
  40. package/lib/glb-viewer-cP8g6bcm.mjs +315 -0
  41. package/lib/glb-viewer-cP8g6bcm.mjs.map +1 -0
  42. package/lib/glb-viewer-dZThmlwM.mjs +2 -0
  43. package/lib/homag-intelligence-LoOJ7roM.mjs +381 -0
  44. package/lib/homag-intelligence-LoOJ7roM.mjs.map +1 -0
  45. package/lib/imos-ix-poc-export-helper-CQh94HsO.mjs +161 -0
  46. package/lib/imos-ix-poc-export-helper-CQh94HsO.mjs.map +1 -0
  47. package/lib/kernel-BAQSG9r5.mjs +46 -0
  48. package/lib/kernel-BAQSG9r5.mjs.map +1 -0
  49. package/lib/kernel-utils-H74uNY1h.mjs +44 -0
  50. package/lib/kernel-utils-H74uNY1h.mjs.map +1 -0
  51. package/lib/layer-C_JtkhdO.mjs +8 -0
  52. package/lib/layer-C_JtkhdO.mjs.map +1 -0
  53. package/lib/main-BxEZ11ag.mjs +20461 -0
  54. package/lib/main-BxEZ11ag.mjs.map +1 -0
  55. package/lib/material-viewer-njBFF0Zg.mjs +292 -0
  56. package/lib/material-viewer-njBFF0Zg.mjs.map +1 -0
  57. package/lib/planner-Cr495Cyn.mjs +2 -0
  58. package/lib/planner-DY73rplC.mjs +44 -0
  59. package/lib/planner-DY73rplC.mjs.map +1 -0
  60. package/lib/plugin-system-D9K46xJk.mjs +55 -0
  61. package/lib/plugin-system-D9K46xJk.mjs.map +1 -0
  62. package/lib/roomle-sdk.d.ts +15 -2
  63. package/lib/roomle-sdk.js +7 -36
  64. package/lib/scene-renderer-D8HkTFeZ.mjs +3826 -0
  65. package/lib/scene-renderer-D8HkTFeZ.mjs.map +1 -0
  66. package/lib/script-loader-KBq8SjP6.mjs +45 -0
  67. package/lib/script-loader-KBq8SjP6.mjs.map +1 -0
  68. package/lib/static/draco/node_modules/three/examples/jsm/libs/draco/draco_decoder.js +34 -0
  69. package/lib/static/draco/node_modules/three/examples/jsm/libs/draco/draco_decoder.wasm +0 -0
  70. package/lib/static/draco/node_modules/three/examples/jsm/libs/draco/draco_encoder.js +33 -0
  71. package/lib/static/draco/node_modules/three/examples/jsm/libs/draco/draco_wasm_wrapper.js +117 -0
  72. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -0
  73. package/lib/static/roomle-core-hsc/{src → node_modules/roomle-core-hsc/src}/embind/plannerCoreInterface.d.ts +2 -0
  74. package/lib/static/roomle-core-hsc/{wasm_modern → node_modules/roomle-core-hsc/wasm_modern}/ConfiguratorKernel.wasm +0 -0
  75. package/lib/static/roomle-core-hsc/{RoomleCore.wasm → node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm} +0 -0
  76. package/lib/static/roomle-core-hsc/{wasm_modern → node_modules/roomle-core-hsc/wasm_modern}/RoomleToolsCore.wasm +0 -0
  77. package/lib/stats-helper-HM0TaIM5.mjs +95 -0
  78. package/lib/stats-helper-HM0TaIM5.mjs.map +1 -0
  79. package/lib/three.core-CLIofecG.mjs +7629 -0
  80. package/lib/three.core-CLIofecG.mjs.map +1 -0
  81. package/lib/three.module-C4Q1skJQ.mjs +5795 -0
  82. package/lib/three.module-C4Q1skJQ.mjs.map +1 -0
  83. package/lib/three.webgpu-dFspy2yF.mjs +16057 -0
  84. package/lib/three.webgpu-dFspy2yF.mjs.map +1 -0
  85. package/lib/threejs-utils-jEzvlJF1.mjs +2233 -0
  86. package/lib/threejs-utils-jEzvlJF1.mjs.map +1 -0
  87. package/lib/tools-core-CZbPygRC.mjs +30 -0
  88. package/lib/tools-core-CZbPygRC.mjs.map +1 -0
  89. package/package.json +1 -1
  90. package/lib/BufferGeometry-C1o0MiFL.mjs +0 -2064
  91. package/lib/BufferGeometry-C1o0MiFL.mjs.map +0 -1
  92. package/lib/GLTFExporter-CXMBueJw.mjs +0 -1323
  93. package/lib/GLTFExporter-CXMBueJw.mjs.map +0 -1
  94. package/lib/PointLightHelper-ICWLqwjK.mjs +0 -522
  95. package/lib/PointLightHelper-ICWLqwjK.mjs.map +0 -1
  96. package/lib/SpotLightHelper-CW5lDGFp.mjs +0 -222
  97. package/lib/SpotLightHelper-CW5lDGFp.mjs.map +0 -1
  98. package/lib/USDZExporter-CUp3dX08.mjs +0 -552
  99. package/lib/USDZExporter-CUp3dX08.mjs.map +0 -1
  100. package/lib/banana-for-scale-CfQ8dnY2.mjs +0 -50
  101. package/lib/banana-for-scale-CfQ8dnY2.mjs.map +0 -1
  102. package/lib/component-dimensioning-C9AWhxvj.mjs +0 -237
  103. package/lib/component-dimensioning-C9AWhxvj.mjs.map +0 -1
  104. package/lib/continuous-drawing-helper-B5BlbPPz.mjs +0 -48
  105. package/lib/continuous-drawing-helper-B5BlbPPz.mjs.map +0 -1
  106. package/lib/homag-intelligence-UFo9Z8FS.mjs +0 -549
  107. package/lib/homag-intelligence-UFo9Z8FS.mjs.map +0 -1
  108. package/lib/imos-ix-poc-export-helper-CGSk-8yx.mjs +0 -180
  109. package/lib/imos-ix-poc-export-helper-CGSk-8yx.mjs.map +0 -1
  110. package/lib/index-DIyMlQBA.mjs +0 -100947
  111. package/lib/index-DIyMlQBA.mjs.map +0 -1
  112. package/lib/material-viewer-QTlidNBs.mjs +0 -451
  113. package/lib/material-viewer-QTlidNBs.mjs.map +0 -1
  114. package/lib/roomle-sdk.js.map +0 -1
  115. package/lib/static/draco/gltf/draco_decoder.js +0 -33
  116. package/lib/static/draco/gltf/draco_decoder.wasm +0 -0
  117. package/lib/static/draco/gltf/draco_encoder.js +0 -33
  118. package/lib/static/draco/gltf/draco_wasm_wrapper.js +0 -116
  119. package/lib/static/roomle-core-hsc/ConfiguratorKernel.wasm +0 -0
  120. package/lib/static/roomle-core-hsc/RoomleToolsCore.wasm +0 -0
  121. package/lib/static/roomle-core-hsc/embind/configuratorCallback.d.ts +0 -82
  122. package/lib/static/roomle-core-hsc/embind/configuratorCallback.js +0 -355
  123. package/lib/static/roomle-core-hsc/embind/configuratorCallback.js.map +0 -1
  124. package/lib/static/roomle-core-hsc/embind/configuratorCore.d.ts +0 -19
  125. package/lib/static/roomle-core-hsc/embind/configuratorCore.js +0 -50
  126. package/lib/static/roomle-core-hsc/embind/configuratorCore.js.map +0 -1
  127. package/lib/static/roomle-core-hsc/embind/configuratorCoreInterface.d.ts +0 -746
  128. package/lib/static/roomle-core-hsc/embind/configuratorCoreInterface.js +0 -99
  129. package/lib/static/roomle-core-hsc/embind/configuratorCoreInterface.js.map +0 -1
  130. package/lib/static/roomle-core-hsc/embind/configuratorUtils.d.ts +0 -3
  131. package/lib/static/roomle-core-hsc/embind/configuratorUtils.js +0 -52
  132. package/lib/static/roomle-core-hsc/embind/configuratorUtils.js.map +0 -1
  133. package/lib/static/roomle-core-hsc/embind/coreModue.d.ts +0 -4
  134. package/lib/static/roomle-core-hsc/embind/coreModue.js +0 -3
  135. package/lib/static/roomle-core-hsc/embind/coreModue.js.map +0 -1
  136. package/lib/static/roomle-core-hsc/embind/coreModule.d.ts +0 -11
  137. package/lib/static/roomle-core-hsc/embind/coreModule.js +0 -19
  138. package/lib/static/roomle-core-hsc/embind/coreModule.js.map +0 -1
  139. package/lib/static/roomle-core-hsc/embind/plannerCoreInterface.d.ts +0 -851
  140. package/lib/static/roomle-core-hsc/loader/configurableObject.d.ts +0 -30
  141. package/lib/static/roomle-core-hsc/loader/configurableObject.js +0 -111
  142. package/lib/static/roomle-core-hsc/loader/configurableObject.js.map +0 -1
  143. package/lib/static/roomle-core-hsc/loader/configurationGeometryConstructor.d.ts +0 -21
  144. package/lib/static/roomle-core-hsc/loader/configurationGeometryConstructor.js +0 -90
  145. package/lib/static/roomle-core-hsc/loader/configurationGeometryConstructor.js.map +0 -1
  146. package/lib/static/roomle-core-hsc/loader/configurationLoader.d.ts +0 -116
  147. package/lib/static/roomle-core-hsc/loader/configurationLoader.js +0 -345
  148. package/lib/static/roomle-core-hsc/loader/configurationLoader.js.map +0 -1
  149. package/lib/static/roomle-core-hsc/loader/configurationManager.d.ts +0 -41
  150. package/lib/static/roomle-core-hsc/loader/configurationManager.js +0 -147
  151. package/lib/static/roomle-core-hsc/loader/configurationManager.js.map +0 -1
  152. package/lib/static/roomle-core-hsc/loaderUtility.d.ts +0 -81
  153. package/lib/static/roomle-core-hsc/loaderUtility.js +0 -141
  154. package/lib/static/roomle-core-hsc/loaderUtility.js.map +0 -1
  155. package/lib/static/roomle-core-hsc/logger.d.ts +0 -29
  156. package/lib/static/roomle-core-hsc/logger.js +0 -61
  157. package/lib/static/roomle-core-hsc/logger.js.map +0 -1
  158. package/lib/static/roomle-core-hsc/package.json +0 -1
  159. package/lib/static/roomle-core-hsc/planElementManager.d.ts +0 -96
  160. package/lib/static/roomle-core-hsc/planElementManager.js +0 -300
  161. package/lib/static/roomle-core-hsc/planElementManager.js.map +0 -1
  162. package/lib/static/roomle-core-hsc/plannerCore.d.ts +0 -31
  163. package/lib/static/roomle-core-hsc/plannerCore.js +0 -111
  164. package/lib/static/roomle-core-hsc/plannerCore.js.map +0 -1
  165. package/lib/static/roomle-core-hsc/plannerCoreCallback.d.ts +0 -39
  166. package/lib/static/roomle-core-hsc/plannerCoreCallback.js +0 -116
  167. package/lib/static/roomle-core-hsc/plannerCoreCallback.js.map +0 -1
  168. package/lib/static/roomle-core-hsc/plannerCoreInterface.d.ts +0 -851
  169. package/lib/static/roomle-core-hsc/plannerCoreInterface.js +0 -93
  170. package/lib/static/roomle-core-hsc/plannerCoreInterface.js.map +0 -1
  171. package/lib/static/roomle-core-hsc/rapiAccess.d.ts +0 -70
  172. package/lib/static/roomle-core-hsc/rapiAccess.js +0 -227
  173. package/lib/static/roomle-core-hsc/rapiAccess.js.map +0 -1
  174. package/lib/static/roomle-core-hsc/serviceCore.d.ts +0 -20
  175. package/lib/static/roomle-core-hsc/serviceCore.js +0 -54
  176. package/lib/static/roomle-core-hsc/serviceCore.js.map +0 -1
  177. package/lib/static/roomle-core-hsc/serviceCoreInterface.d.ts +0 -13
  178. package/lib/static/roomle-core-hsc/serviceCoreInterface.js +0 -3
  179. package/lib/static/roomle-core-hsc/serviceCoreInterface.js.map +0 -1
  180. package/lib/static/roomle-core-hsc/src/embind/configuratorCallback.d.ts +0 -82
  181. package/lib/static/roomle-core-hsc/src/embind/configuratorCallback.js +0 -355
  182. package/lib/static/roomle-core-hsc/src/embind/configuratorCallback.js.map +0 -1
  183. package/lib/static/roomle-core-hsc/src/embind/configuratorCore.d.ts +0 -19
  184. package/lib/static/roomle-core-hsc/src/embind/configuratorCore.js +0 -50
  185. package/lib/static/roomle-core-hsc/src/embind/configuratorCore.js.map +0 -1
  186. package/lib/static/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts +0 -746
  187. package/lib/static/roomle-core-hsc/src/embind/configuratorCoreInterface.js +0 -99
  188. package/lib/static/roomle-core-hsc/src/embind/configuratorCoreInterface.js.map +0 -1
  189. package/lib/static/roomle-core-hsc/src/embind/configuratorUtils.d.ts +0 -3
  190. package/lib/static/roomle-core-hsc/src/embind/configuratorUtils.js +0 -52
  191. package/lib/static/roomle-core-hsc/src/embind/configuratorUtils.js.map +0 -1
  192. package/lib/static/roomle-core-hsc/src/embind/coreModue.d.ts +0 -4
  193. package/lib/static/roomle-core-hsc/src/embind/coreModue.js +0 -3
  194. package/lib/static/roomle-core-hsc/src/embind/coreModue.js.map +0 -1
  195. package/lib/static/roomle-core-hsc/src/embind/coreModule.d.ts +0 -11
  196. package/lib/static/roomle-core-hsc/src/embind/coreModule.js +0 -19
  197. package/lib/static/roomle-core-hsc/src/embind/coreModule.js.map +0 -1
  198. package/lib/static/roomle-core-hsc/src/embind/plannerCore.d.ts +0 -31
  199. package/lib/static/roomle-core-hsc/src/embind/plannerCore.js +0 -111
  200. package/lib/static/roomle-core-hsc/src/embind/plannerCore.js.map +0 -1
  201. package/lib/static/roomle-core-hsc/src/embind/plannerCoreCallback.d.ts +0 -39
  202. package/lib/static/roomle-core-hsc/src/embind/plannerCoreCallback.js +0 -116
  203. package/lib/static/roomle-core-hsc/src/embind/plannerCoreCallback.js.map +0 -1
  204. package/lib/static/roomle-core-hsc/src/embind/plannerCoreInterface.js +0 -93
  205. package/lib/static/roomle-core-hsc/src/embind/plannerCoreInterface.js.map +0 -1
  206. package/lib/static/roomle-core-hsc/src/embind/serviceCore.d.ts +0 -20
  207. package/lib/static/roomle-core-hsc/src/embind/serviceCore.js +0 -54
  208. package/lib/static/roomle-core-hsc/src/embind/serviceCore.js.map +0 -1
  209. package/lib/static/roomle-core-hsc/src/embind/serviceCoreInterface.d.ts +0 -13
  210. package/lib/static/roomle-core-hsc/src/embind/serviceCoreInterface.js +0 -3
  211. package/lib/static/roomle-core-hsc/src/embind/serviceCoreInterface.js.map +0 -1
  212. package/lib/static/roomle-core-hsc/src/embind/toolsCore.d.ts +0 -17
  213. package/lib/static/roomle-core-hsc/src/embind/toolsCore.js +0 -75
  214. package/lib/static/roomle-core-hsc/src/embind/toolsCore.js.map +0 -1
  215. package/lib/static/roomle-core-hsc/src/embind/toolsCoreInterface.d.ts +0 -40
  216. package/lib/static/roomle-core-hsc/src/embind/toolsCoreInterface.js +0 -8
  217. package/lib/static/roomle-core-hsc/src/embind/toolsCoreInterface.js.map +0 -1
  218. package/lib/static/roomle-core-hsc/src/loader/configurableObject.d.ts +0 -30
  219. package/lib/static/roomle-core-hsc/src/loader/configurableObject.js +0 -111
  220. package/lib/static/roomle-core-hsc/src/loader/configurableObject.js.map +0 -1
  221. package/lib/static/roomle-core-hsc/src/loader/configurationGeometryConstructor.d.ts +0 -21
  222. package/lib/static/roomle-core-hsc/src/loader/configurationGeometryConstructor.js +0 -90
  223. package/lib/static/roomle-core-hsc/src/loader/configurationGeometryConstructor.js.map +0 -1
  224. package/lib/static/roomle-core-hsc/src/loader/configurationLoader.d.ts +0 -116
  225. package/lib/static/roomle-core-hsc/src/loader/configurationLoader.js +0 -345
  226. package/lib/static/roomle-core-hsc/src/loader/configurationLoader.js.map +0 -1
  227. package/lib/static/roomle-core-hsc/src/loader/configurationManager.d.ts +0 -41
  228. package/lib/static/roomle-core-hsc/src/loader/configurationManager.js +0 -147
  229. package/lib/static/roomle-core-hsc/src/loader/configurationManager.js.map +0 -1
  230. package/lib/static/roomle-core-hsc/src/loader/loaderUtility.d.ts +0 -81
  231. package/lib/static/roomle-core-hsc/src/loader/loaderUtility.js +0 -141
  232. package/lib/static/roomle-core-hsc/src/loader/loaderUtility.js.map +0 -1
  233. package/lib/static/roomle-core-hsc/src/loader/logger.d.ts +0 -29
  234. package/lib/static/roomle-core-hsc/src/loader/logger.js +0 -61
  235. package/lib/static/roomle-core-hsc/src/loader/logger.js.map +0 -1
  236. package/lib/static/roomle-core-hsc/src/loader/planElementManager.d.ts +0 -96
  237. package/lib/static/roomle-core-hsc/src/loader/planElementManager.js +0 -300
  238. package/lib/static/roomle-core-hsc/src/loader/planElementManager.js.map +0 -1
  239. package/lib/static/roomle-core-hsc/src/loader/rapiAccess.d.ts +0 -70
  240. package/lib/static/roomle-core-hsc/src/loader/rapiAccess.js +0 -227
  241. package/lib/static/roomle-core-hsc/src/loader/rapiAccess.js.map +0 -1
  242. package/lib/static/roomle-core-hsc/toolsCore.d.ts +0 -17
  243. package/lib/static/roomle-core-hsc/toolsCore.js +0 -75
  244. package/lib/static/roomle-core-hsc/toolsCore.js.map +0 -1
  245. package/lib/static/roomle-core-hsc/toolsCoreInterface.d.ts +0 -40
  246. package/lib/static/roomle-core-hsc/toolsCoreInterface.js +0 -8
  247. package/lib/static/roomle-core-hsc/toolsCoreInterface.js.map +0 -1
  248. package/lib/static/roomle-core-hsc/wasm_modern/ConfiguratorKernel.js +0 -74
  249. package/lib/static/roomle-core-hsc/wasm_modern/RoomleCore.js +0 -79
  250. package/lib/static/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
  251. package/lib/static/roomle-core-hsc/wasm_modern/RoomleToolsCore.js +0 -74
  252. package/lib/stats-helper-cTITQsAT.mjs +0 -108
  253. package/lib/stats-helper-cTITQsAT.mjs.map +0 -1
  254. package/lib/tools-core-CCWbo8fD.mjs +0 -36
  255. package/lib/tools-core-CCWbo8fD.mjs.map +0 -1
  256. /package/lib/static/draco/{README.md → node_modules/three/examples/jsm/libs/draco/README.md} +0 -0
  257. /package/lib/static/draco/{draco_decoder.js → node_modules/three/examples/jsm/libs/draco/gltf/draco_decoder.js} +0 -0
  258. /package/lib/static/draco/{draco_decoder.wasm → node_modules/three/examples/jsm/libs/draco/gltf/draco_decoder.wasm} +0 -0
  259. /package/lib/static/draco/{draco_encoder.js → node_modules/three/examples/jsm/libs/draco/gltf/draco_encoder.js} +0 -0
  260. /package/lib/static/draco/{draco_wasm_wrapper.js → node_modules/three/examples/jsm/libs/draco/gltf/draco_wasm_wrapper.js} +0 -0
  261. /package/lib/static/{asset-loader.worker.js → packages/workers/generated/asset-loader.worker.js} +0 -0
  262. /package/lib/static/{budgeteer.sw.js → packages/workers/generated/budgeteer.sw.js} +0 -0
  263. /package/lib/static/roomle-core-hsc/{configuratorCallback.d.ts → node_modules/roomle-core-hsc/src/embind/configuratorCallback.d.ts} +0 -0
  264. /package/lib/static/roomle-core-hsc/{configuratorCallback.js → node_modules/roomle-core-hsc/src/embind/configuratorCallback.js} +0 -0
  265. /package/lib/static/roomle-core-hsc/{configuratorCallback.js.map → node_modules/roomle-core-hsc/src/embind/configuratorCallback.js.map} +0 -0
  266. /package/lib/static/roomle-core-hsc/{configuratorCore.d.ts → node_modules/roomle-core-hsc/src/embind/configuratorCore.d.ts} +0 -0
  267. /package/lib/static/roomle-core-hsc/{configuratorCore.js → node_modules/roomle-core-hsc/src/embind/configuratorCore.js} +0 -0
  268. /package/lib/static/roomle-core-hsc/{configuratorCore.js.map → node_modules/roomle-core-hsc/src/embind/configuratorCore.js.map} +0 -0
  269. /package/lib/static/roomle-core-hsc/{configuratorCoreInterface.d.ts → node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts} +0 -0
  270. /package/lib/static/roomle-core-hsc/{configuratorCoreInterface.js → node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.js} +0 -0
  271. /package/lib/static/roomle-core-hsc/{configuratorCoreInterface.js.map → node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.js.map} +0 -0
  272. /package/lib/static/roomle-core-hsc/{configuratorUtils.d.ts → node_modules/roomle-core-hsc/src/embind/configuratorUtils.d.ts} +0 -0
  273. /package/lib/static/roomle-core-hsc/{configuratorUtils.js → node_modules/roomle-core-hsc/src/embind/configuratorUtils.js} +0 -0
  274. /package/lib/static/roomle-core-hsc/{configuratorUtils.js.map → node_modules/roomle-core-hsc/src/embind/configuratorUtils.js.map} +0 -0
  275. /package/lib/static/roomle-core-hsc/{coreModue.d.ts → node_modules/roomle-core-hsc/src/embind/coreModue.d.ts} +0 -0
  276. /package/lib/static/roomle-core-hsc/{coreModue.js → node_modules/roomle-core-hsc/src/embind/coreModue.js} +0 -0
  277. /package/lib/static/roomle-core-hsc/{coreModue.js.map → node_modules/roomle-core-hsc/src/embind/coreModue.js.map} +0 -0
  278. /package/lib/static/roomle-core-hsc/{coreModule.d.ts → node_modules/roomle-core-hsc/src/embind/coreModule.d.ts} +0 -0
  279. /package/lib/static/roomle-core-hsc/{coreModule.js → node_modules/roomle-core-hsc/src/embind/coreModule.js} +0 -0
  280. /package/lib/static/roomle-core-hsc/{coreModule.js.map → node_modules/roomle-core-hsc/src/embind/coreModule.js.map} +0 -0
  281. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCore.d.ts +0 -0
  282. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCore.js +0 -0
  283. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCore.js.map +0 -0
  284. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCoreCallback.d.ts +0 -0
  285. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCoreCallback.js +0 -0
  286. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCoreCallback.js.map +0 -0
  287. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCoreInterface.js +0 -0
  288. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCoreInterface.js.map +0 -0
  289. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCore.d.ts +0 -0
  290. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCore.js +0 -0
  291. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCore.js.map +0 -0
  292. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCoreInterface.d.ts +0 -0
  293. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCoreInterface.js +0 -0
  294. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCoreInterface.js.map +0 -0
  295. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCore.d.ts +0 -0
  296. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCore.js +0 -0
  297. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCore.js.map +0 -0
  298. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCoreInterface.d.ts +0 -0
  299. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCoreInterface.js +0 -0
  300. /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCoreInterface.js.map +0 -0
  301. /package/lib/static/roomle-core-hsc/{configurableObject.d.ts → node_modules/roomle-core-hsc/src/loader/configurableObject.d.ts} +0 -0
  302. /package/lib/static/roomle-core-hsc/{configurableObject.js → node_modules/roomle-core-hsc/src/loader/configurableObject.js} +0 -0
  303. /package/lib/static/roomle-core-hsc/{configurableObject.js.map → node_modules/roomle-core-hsc/src/loader/configurableObject.js.map} +0 -0
  304. /package/lib/static/roomle-core-hsc/{configurationGeometryConstructor.d.ts → node_modules/roomle-core-hsc/src/loader/configurationGeometryConstructor.d.ts} +0 -0
  305. /package/lib/static/roomle-core-hsc/{configurationGeometryConstructor.js → node_modules/roomle-core-hsc/src/loader/configurationGeometryConstructor.js} +0 -0
  306. /package/lib/static/roomle-core-hsc/{configurationGeometryConstructor.js.map → node_modules/roomle-core-hsc/src/loader/configurationGeometryConstructor.js.map} +0 -0
  307. /package/lib/static/roomle-core-hsc/{configurationLoader.d.ts → node_modules/roomle-core-hsc/src/loader/configurationLoader.d.ts} +0 -0
  308. /package/lib/static/roomle-core-hsc/{configurationLoader.js → node_modules/roomle-core-hsc/src/loader/configurationLoader.js} +0 -0
  309. /package/lib/static/roomle-core-hsc/{configurationLoader.js.map → node_modules/roomle-core-hsc/src/loader/configurationLoader.js.map} +0 -0
  310. /package/lib/static/roomle-core-hsc/{configurationManager.d.ts → node_modules/roomle-core-hsc/src/loader/configurationManager.d.ts} +0 -0
  311. /package/lib/static/roomle-core-hsc/{configurationManager.js → node_modules/roomle-core-hsc/src/loader/configurationManager.js} +0 -0
  312. /package/lib/static/roomle-core-hsc/{configurationManager.js.map → node_modules/roomle-core-hsc/src/loader/configurationManager.js.map} +0 -0
  313. /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/loaderUtility.d.ts +0 -0
  314. /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/loaderUtility.js +0 -0
  315. /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/loaderUtility.js.map +0 -0
  316. /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/logger.d.ts +0 -0
  317. /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/logger.js +0 -0
  318. /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/logger.js.map +0 -0
  319. /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/planElementManager.d.ts +0 -0
  320. /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/planElementManager.js +0 -0
  321. /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/planElementManager.js.map +0 -0
  322. /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/rapiAccess.d.ts +0 -0
  323. /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/rapiAccess.js +0 -0
  324. /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/rapiAccess.js.map +0 -0
  325. /package/lib/static/roomle-core-hsc/{ConfiguratorKernel.js → node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.js} +0 -0
  326. /package/lib/static/roomle-core-hsc/{RoomleCore.js → node_modules/roomle-core-hsc/wasm_modern/RoomleCore.js} +0 -0
  327. /package/lib/static/roomle-core-hsc/{RoomleToolsCore.js → node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.js} +0 -0
@@ -1,522 +0,0 @@
1
- import { V as f, X as U, Y as nt, Z as ot, O as rt, Q as at, W as ct, _ as Z, $ as ht, a0 as lt } from "./index-DIyMlQBA.mjs";
2
- import { M as ut, C as pt, B as st, R as ft, F as X } from "./BufferGeometry-C1o0MiFL.mjs";
3
- const x = /* @__PURE__ */ new f(), B = /* @__PURE__ */ new f(), k = /* @__PURE__ */ new f(), P = /* @__PURE__ */ new f(), T = /* @__PURE__ */ new f(), S = /* @__PURE__ */ new f(), $ = /* @__PURE__ */ new f(), N = /* @__PURE__ */ new f(), C = /* @__PURE__ */ new f(), G = /* @__PURE__ */ new f(), H = /* @__PURE__ */ new U(), E = /* @__PURE__ */ new U(), J = /* @__PURE__ */ new U();
4
- class v {
5
- /**
6
- * Constructs a new triangle.
7
- *
8
- * @param {Vector3} [a=(0,0,0)] - The first corner of the triangle.
9
- * @param {Vector3} [b=(0,0,0)] - The second corner of the triangle.
10
- * @param {Vector3} [c=(0,0,0)] - The third corner of the triangle.
11
- */
12
- constructor(t = new f(), e = new f(), i = new f()) {
13
- this.a = t, this.b = e, this.c = i;
14
- }
15
- /**
16
- * Computes the normal vector of a triangle.
17
- *
18
- * @param {Vector3} a - The first corner of the triangle.
19
- * @param {Vector3} b - The second corner of the triangle.
20
- * @param {Vector3} c - The third corner of the triangle.
21
- * @param {Vector3} target - The target vector that is used to store the method's result.
22
- * @return {Vector3} The triangle's normal.
23
- */
24
- static getNormal(t, e, i, s) {
25
- s.subVectors(i, e), x.subVectors(t, e), s.cross(x);
26
- const n = s.lengthSq();
27
- return n > 0 ? s.multiplyScalar(1 / Math.sqrt(n)) : s.set(0, 0, 0);
28
- }
29
- /**
30
- * Computes a barycentric coordinates from the given vector.
31
- * Returns `null` if the triangle is degenerate.
32
- *
33
- * @param {Vector3} point - A point in 3D space.
34
- * @param {Vector3} a - The first corner of the triangle.
35
- * @param {Vector3} b - The second corner of the triangle.
36
- * @param {Vector3} c - The third corner of the triangle.
37
- * @param {Vector3} target - The target vector that is used to store the method's result.
38
- * @return {?Vector3} The barycentric coordinates for the given point
39
- */
40
- static getBarycoord(t, e, i, s, n) {
41
- x.subVectors(s, e), B.subVectors(i, e), k.subVectors(t, e);
42
- const a = x.dot(x), o = x.dot(B), r = x.dot(k), u = B.dot(B), c = B.dot(k), l = a * u - o * o;
43
- if (l === 0)
44
- return n.set(0, 0, 0), null;
45
- const M = 1 / l, d = (u * r - o * c) * M, p = (a * c - o * r) * M;
46
- return n.set(1 - d - p, p, d);
47
- }
48
- /**
49
- * Returns `true` if the given point, when projected onto the plane of the
50
- * triangle, lies within the triangle.
51
- *
52
- * @param {Vector3} point - The point in 3D space to test.
53
- * @param {Vector3} a - The first corner of the triangle.
54
- * @param {Vector3} b - The second corner of the triangle.
55
- * @param {Vector3} c - The third corner of the triangle.
56
- * @return {boolean} Whether the given point, when projected onto the plane of the
57
- * triangle, lies within the triangle or not.
58
- */
59
- static containsPoint(t, e, i, s) {
60
- return this.getBarycoord(t, e, i, s, P) === null ? !1 : P.x >= 0 && P.y >= 0 && P.x + P.y <= 1;
61
- }
62
- /**
63
- * Computes the value barycentrically interpolated for the given point on the
64
- * triangle. Returns `null` if the triangle is degenerate.
65
- *
66
- * @param {Vector3} point - Position of interpolated point.
67
- * @param {Vector3} p1 - The first corner of the triangle.
68
- * @param {Vector3} p2 - The second corner of the triangle.
69
- * @param {Vector3} p3 - The third corner of the triangle.
70
- * @param {Vector3} v1 - Value to interpolate of first vertex.
71
- * @param {Vector3} v2 - Value to interpolate of second vertex.
72
- * @param {Vector3} v3 - Value to interpolate of third vertex.
73
- * @param {Vector3} target - The target vector that is used to store the method's result.
74
- * @return {?Vector3} The interpolated value.
75
- */
76
- static getInterpolation(t, e, i, s, n, a, o, r) {
77
- return this.getBarycoord(t, e, i, s, P) === null ? (r.x = 0, r.y = 0, "z" in r && (r.z = 0), "w" in r && (r.w = 0), null) : (r.setScalar(0), r.addScaledVector(n, P.x), r.addScaledVector(a, P.y), r.addScaledVector(o, P.z), r);
78
- }
79
- /**
80
- * Computes the value barycentrically interpolated for the given attribute and indices.
81
- *
82
- * @param {BufferAttribute} attr - The attribute to interpolate.
83
- * @param {number} i1 - Index of first vertex.
84
- * @param {number} i2 - Index of second vertex.
85
- * @param {number} i3 - Index of third vertex.
86
- * @param {Vector3} barycoord - The barycoordinate value to use to interpolate.
87
- * @param {Vector3} target - The target vector that is used to store the method's result.
88
- * @return {Vector3} The interpolated attribute value.
89
- */
90
- static getInterpolatedAttribute(t, e, i, s, n, a) {
91
- return H.setScalar(0), E.setScalar(0), J.setScalar(0), H.fromBufferAttribute(t, e), E.fromBufferAttribute(t, i), J.fromBufferAttribute(t, s), a.setScalar(0), a.addScaledVector(H, n.x), a.addScaledVector(E, n.y), a.addScaledVector(J, n.z), a;
92
- }
93
- /**
94
- * Returns `true` if the triangle is oriented towards the given direction.
95
- *
96
- * @param {Vector3} a - The first corner of the triangle.
97
- * @param {Vector3} b - The second corner of the triangle.
98
- * @param {Vector3} c - The third corner of the triangle.
99
- * @param {Vector3} direction - The (normalized) direction vector.
100
- * @return {boolean} Whether the triangle is oriented towards the given direction or not.
101
- */
102
- static isFrontFacing(t, e, i, s) {
103
- return x.subVectors(i, e), B.subVectors(t, e), x.cross(B).dot(s) < 0;
104
- }
105
- /**
106
- * Sets the triangle's vertices by copying the given values.
107
- *
108
- * @param {Vector3} a - The first corner of the triangle.
109
- * @param {Vector3} b - The second corner of the triangle.
110
- * @param {Vector3} c - The third corner of the triangle.
111
- * @return {Triangle} A reference to this triangle.
112
- */
113
- set(t, e, i) {
114
- return this.a.copy(t), this.b.copy(e), this.c.copy(i), this;
115
- }
116
- /**
117
- * Sets the triangle's vertices by copying the given array values.
118
- *
119
- * @param {Array<Vector3>} points - An array with 3D points.
120
- * @param {number} i0 - The array index representing the first corner of the triangle.
121
- * @param {number} i1 - The array index representing the second corner of the triangle.
122
- * @param {number} i2 - The array index representing the third corner of the triangle.
123
- * @return {Triangle} A reference to this triangle.
124
- */
125
- setFromPointsAndIndices(t, e, i, s) {
126
- return this.a.copy(t[e]), this.b.copy(t[i]), this.c.copy(t[s]), this;
127
- }
128
- /**
129
- * Sets the triangle's vertices by copying the given attribute values.
130
- *
131
- * @param {BufferAttribute} attribute - A buffer attribute with 3D points data.
132
- * @param {number} i0 - The attribute index representing the first corner of the triangle.
133
- * @param {number} i1 - The attribute index representing the second corner of the triangle.
134
- * @param {number} i2 - The attribute index representing the third corner of the triangle.
135
- * @return {Triangle} A reference to this triangle.
136
- */
137
- setFromAttributeAndIndices(t, e, i, s) {
138
- return this.a.fromBufferAttribute(t, e), this.b.fromBufferAttribute(t, i), this.c.fromBufferAttribute(t, s), this;
139
- }
140
- /**
141
- * Returns a new triangle with copied values from this instance.
142
- *
143
- * @return {Triangle} A clone of this instance.
144
- */
145
- clone() {
146
- return new this.constructor().copy(this);
147
- }
148
- /**
149
- * Copies the values of the given triangle to this instance.
150
- *
151
- * @param {Triangle} triangle - The triangle to copy.
152
- * @return {Triangle} A reference to this triangle.
153
- */
154
- copy(t) {
155
- return this.a.copy(t.a), this.b.copy(t.b), this.c.copy(t.c), this;
156
- }
157
- /**
158
- * Computes the area of the triangle.
159
- *
160
- * @return {number} The triangle's area.
161
- */
162
- getArea() {
163
- return x.subVectors(this.c, this.b), B.subVectors(this.a, this.b), x.cross(B).length() * 0.5;
164
- }
165
- /**
166
- * Computes the midpoint of the triangle.
167
- *
168
- * @param {Vector3} target - The target vector that is used to store the method's result.
169
- * @return {Vector3} The triangle's midpoint.
170
- */
171
- getMidpoint(t) {
172
- return t.addVectors(this.a, this.b).add(this.c).multiplyScalar(1 / 3);
173
- }
174
- /**
175
- * Computes the normal of the triangle.
176
- *
177
- * @param {Vector3} target - The target vector that is used to store the method's result.
178
- * @return {Vector3} The triangle's normal.
179
- */
180
- getNormal(t) {
181
- return v.getNormal(this.a, this.b, this.c, t);
182
- }
183
- /**
184
- * Computes a plane the triangle lies within.
185
- *
186
- * @param {Plane} target - The target vector that is used to store the method's result.
187
- * @return {Plane} The plane the triangle lies within.
188
- */
189
- getPlane(t) {
190
- return t.setFromCoplanarPoints(this.a, this.b, this.c);
191
- }
192
- /**
193
- * Computes a barycentric coordinates from the given vector.
194
- * Returns `null` if the triangle is degenerate.
195
- *
196
- * @param {Vector3} point - A point in 3D space.
197
- * @param {Vector3} target - The target vector that is used to store the method's result.
198
- * @return {?Vector3} The barycentric coordinates for the given point
199
- */
200
- getBarycoord(t, e) {
201
- return v.getBarycoord(t, this.a, this.b, this.c, e);
202
- }
203
- /**
204
- * Computes the value barycentrically interpolated for the given point on the
205
- * triangle. Returns `null` if the triangle is degenerate.
206
- *
207
- * @param {Vector3} point - Position of interpolated point.
208
- * @param {Vector3} v1 - Value to interpolate of first vertex.
209
- * @param {Vector3} v2 - Value to interpolate of second vertex.
210
- * @param {Vector3} v3 - Value to interpolate of third vertex.
211
- * @param {Vector3} target - The target vector that is used to store the method's result.
212
- * @return {?Vector3} The interpolated value.
213
- */
214
- getInterpolation(t, e, i, s, n) {
215
- return v.getInterpolation(t, this.a, this.b, this.c, e, i, s, n);
216
- }
217
- /**
218
- * Returns `true` if the given point, when projected onto the plane of the
219
- * triangle, lies within the triangle.
220
- *
221
- * @param {Vector3} point - The point in 3D space to test.
222
- * @return {boolean} Whether the given point, when projected onto the plane of the
223
- * triangle, lies within the triangle or not.
224
- */
225
- containsPoint(t) {
226
- return v.containsPoint(t, this.a, this.b, this.c);
227
- }
228
- /**
229
- * Returns `true` if the triangle is oriented towards the given direction.
230
- *
231
- * @param {Vector3} direction - The (normalized) direction vector.
232
- * @return {boolean} Whether the triangle is oriented towards the given direction or not.
233
- */
234
- isFrontFacing(t) {
235
- return v.isFrontFacing(this.a, this.b, this.c, t);
236
- }
237
- /**
238
- * Returns `true` if this triangle intersects with the given box.
239
- *
240
- * @param {Box3} box - The box to intersect.
241
- * @return {boolean} Whether this triangle intersects with the given box or not.
242
- */
243
- intersectsBox(t) {
244
- return t.intersectsTriangle(this);
245
- }
246
- /**
247
- * Returns the closest point on the triangle to the given point.
248
- *
249
- * @param {Vector3} p - The point to compute the closest point for.
250
- * @param {Vector3} target - The target vector that is used to store the method's result.
251
- * @return {Vector3} The closest point on the triangle.
252
- */
253
- closestPointToPoint(t, e) {
254
- const i = this.a, s = this.b, n = this.c;
255
- let a, o;
256
- T.subVectors(s, i), S.subVectors(n, i), N.subVectors(t, i);
257
- const r = T.dot(N), u = S.dot(N);
258
- if (r <= 0 && u <= 0)
259
- return e.copy(i);
260
- C.subVectors(t, s);
261
- const c = T.dot(C), l = S.dot(C);
262
- if (c >= 0 && l <= c)
263
- return e.copy(s);
264
- const M = r * l - c * u;
265
- if (M <= 0 && r >= 0 && c <= 0)
266
- return a = r / (r - c), e.copy(i).addScaledVector(T, a);
267
- G.subVectors(t, n);
268
- const d = T.dot(G), p = S.dot(G);
269
- if (p >= 0 && d <= p)
270
- return e.copy(n);
271
- const w = d * u - r * p;
272
- if (w <= 0 && u >= 0 && p <= 0)
273
- return o = u / (u - p), e.copy(i).addScaledVector(S, o);
274
- const h = c * p - d * l;
275
- if (h <= 0 && l - c >= 0 && d - p >= 0)
276
- return $.subVectors(n, s), o = (l - c) / (l - c + (d - p)), e.copy(s).addScaledVector($, o);
277
- const m = 1 / (h + w + M);
278
- return a = w * m, o = M * m, e.copy(i).addScaledVector(T, a).addScaledVector(S, o);
279
- }
280
- /**
281
- * Returns `true` if this triangle is equal with the given one.
282
- *
283
- * @param {Triangle} triangle - The triangle to test for equality.
284
- * @return {boolean} Whether this triangle is equal with the given one.
285
- */
286
- equals(t) {
287
- return t.a.equals(this.a) && t.b.equals(this.b) && t.c.equals(this.c);
288
- }
289
- }
290
- class it extends ut {
291
- /**
292
- * Constructs a new mesh basic material.
293
- *
294
- * @param {Object} [parameters] - An object with one or more properties
295
- * defining the material's appearance. Any property of the material
296
- * (including any property from inherited materials) can be passed
297
- * in here. Color values can be passed any type of value accepted
298
- * by {@link Color#set}.
299
- */
300
- constructor(t) {
301
- super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new pt(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new nt(), this.combine = ot, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(t);
302
- }
303
- copy(t) {
304
- return super.copy(t), this.color.copy(t.color), this.map = t.map, this.lightMap = t.lightMap, this.lightMapIntensity = t.lightMapIntensity, this.aoMap = t.aoMap, this.aoMapIntensity = t.aoMapIntensity, this.specularMap = t.specularMap, this.alphaMap = t.alphaMap, this.envMap = t.envMap, this.envMapRotation.copy(t.envMapRotation), this.combine = t.combine, this.reflectivity = t.reflectivity, this.refractionRatio = t.refractionRatio, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.wireframeLinecap = t.wireframeLinecap, this.wireframeLinejoin = t.wireframeLinejoin, this.fog = t.fog, this;
305
- }
306
- }
307
- const K = /* @__PURE__ */ new ct(), _ = /* @__PURE__ */ new ft(), R = /* @__PURE__ */ new at(), tt = /* @__PURE__ */ new f(), F = /* @__PURE__ */ new f(), j = /* @__PURE__ */ new f(), q = /* @__PURE__ */ new f(), Q = /* @__PURE__ */ new f(), z = /* @__PURE__ */ new f(), et = /* @__PURE__ */ new f(), D = /* @__PURE__ */ new f();
308
- class dt extends rt {
309
- /**
310
- * Constructs a new mesh.
311
- *
312
- * @param {BufferGeometry} [geometry] - The mesh geometry.
313
- * @param {Material|Array<Material>} [material] - The mesh material.
314
- */
315
- constructor(t = new st(), e = new it()) {
316
- super(), this.isMesh = !0, this.type = "Mesh", this.geometry = t, this.material = e, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.count = 1, this.updateMorphTargets();
317
- }
318
- copy(t, e) {
319
- return super.copy(t, e), t.morphTargetInfluences !== void 0 && (this.morphTargetInfluences = t.morphTargetInfluences.slice()), t.morphTargetDictionary !== void 0 && (this.morphTargetDictionary = Object.assign({}, t.morphTargetDictionary)), this.material = Array.isArray(t.material) ? t.material.slice() : t.material, this.geometry = t.geometry, this;
320
- }
321
- /**
322
- * Sets the values of {@link Mesh#morphTargetDictionary} and {@link Mesh#morphTargetInfluences}
323
- * to make sure existing morph targets can influence this 3D object.
324
- */
325
- updateMorphTargets() {
326
- const e = this.geometry.morphAttributes, i = Object.keys(e);
327
- if (i.length > 0) {
328
- const s = e[i[0]];
329
- if (s !== void 0) {
330
- this.morphTargetInfluences = [], this.morphTargetDictionary = {};
331
- for (let n = 0, a = s.length; n < a; n++) {
332
- const o = s[n].name || String(n);
333
- this.morphTargetInfluences.push(0), this.morphTargetDictionary[o] = n;
334
- }
335
- }
336
- }
337
- }
338
- /**
339
- * Returns the local-space position of the vertex at the given index, taking into
340
- * account the current animation state of both morph targets and skinning.
341
- *
342
- * @param {number} index - The vertex index.
343
- * @param {Vector3} target - The target object that is used to store the method's result.
344
- * @return {Vector3} The vertex position in local space.
345
- */
346
- getVertexPosition(t, e) {
347
- const i = this.geometry, s = i.attributes.position, n = i.morphAttributes.position, a = i.morphTargetsRelative;
348
- e.fromBufferAttribute(s, t);
349
- const o = this.morphTargetInfluences;
350
- if (n && o) {
351
- z.set(0, 0, 0);
352
- for (let r = 0, u = n.length; r < u; r++) {
353
- const c = o[r], l = n[r];
354
- c !== 0 && (Q.fromBufferAttribute(l, t), a ? z.addScaledVector(Q, c) : z.addScaledVector(Q.sub(e), c));
355
- }
356
- e.add(z);
357
- }
358
- return e;
359
- }
360
- /**
361
- * Computes intersection points between a casted ray and this line.
362
- *
363
- * @param {Raycaster} raycaster - The raycaster.
364
- * @param {Array<Object>} intersects - The target array that holds the intersection points.
365
- */
366
- raycast(t, e) {
367
- const i = this.geometry, s = this.material, n = this.matrixWorld;
368
- s !== void 0 && (i.boundingSphere === null && i.computeBoundingSphere(), R.copy(i.boundingSphere), R.applyMatrix4(n), _.copy(t.ray).recast(t.near), !(R.containsPoint(_.origin) === !1 && (_.intersectSphere(R, tt) === null || _.origin.distanceToSquared(tt) > (t.far - t.near) ** 2)) && (K.copy(n).invert(), _.copy(t.ray).applyMatrix4(K), !(i.boundingBox !== null && _.intersectsBox(i.boundingBox) === !1) && this._computeIntersections(t, e, _)));
369
- }
370
- _computeIntersections(t, e, i) {
371
- let s;
372
- const n = this.geometry, a = this.material, o = n.index, r = n.attributes.position, u = n.attributes.uv, c = n.attributes.uv1, l = n.attributes.normal, M = n.groups, d = n.drawRange;
373
- if (o !== null)
374
- if (Array.isArray(a))
375
- for (let p = 0, w = M.length; p < w; p++) {
376
- const h = M[p], m = a[h.materialIndex], b = Math.max(h.start, d.start), g = Math.min(o.count, Math.min(h.start + h.count, d.start + d.count));
377
- for (let y = b, A = g; y < A; y += 3) {
378
- const V = o.getX(y), L = o.getX(y + 1), W = o.getX(y + 2);
379
- s = O(this, m, t, i, u, c, l, V, L, W), s && (s.faceIndex = Math.floor(y / 3), s.face.materialIndex = h.materialIndex, e.push(s));
380
- }
381
- }
382
- else {
383
- const p = Math.max(0, d.start), w = Math.min(o.count, d.start + d.count);
384
- for (let h = p, m = w; h < m; h += 3) {
385
- const b = o.getX(h), g = o.getX(h + 1), y = o.getX(h + 2);
386
- s = O(this, a, t, i, u, c, l, b, g, y), s && (s.faceIndex = Math.floor(h / 3), e.push(s));
387
- }
388
- }
389
- else if (r !== void 0)
390
- if (Array.isArray(a))
391
- for (let p = 0, w = M.length; p < w; p++) {
392
- const h = M[p], m = a[h.materialIndex], b = Math.max(h.start, d.start), g = Math.min(r.count, Math.min(h.start + h.count, d.start + d.count));
393
- for (let y = b, A = g; y < A; y += 3) {
394
- const V = y, L = y + 1, W = y + 2;
395
- s = O(this, m, t, i, u, c, l, V, L, W), s && (s.faceIndex = Math.floor(y / 3), s.face.materialIndex = h.materialIndex, e.push(s));
396
- }
397
- }
398
- else {
399
- const p = Math.max(0, d.start), w = Math.min(r.count, d.start + d.count);
400
- for (let h = p, m = w; h < m; h += 3) {
401
- const b = h, g = h + 1, y = h + 2;
402
- s = O(this, a, t, i, u, c, l, b, g, y), s && (s.faceIndex = Math.floor(h / 3), e.push(s));
403
- }
404
- }
405
- }
406
- }
407
- function mt(I, t, e, i, s, n, a, o) {
408
- let r;
409
- if (t.side === ht ? r = i.intersectTriangle(a, n, s, !0, o) : r = i.intersectTriangle(s, n, a, t.side === lt, o), r === null) return null;
410
- D.copy(o), D.applyMatrix4(I.matrixWorld);
411
- const u = e.ray.origin.distanceTo(D);
412
- return u < e.near || u > e.far ? null : {
413
- distance: u,
414
- point: D.clone(),
415
- object: I
416
- };
417
- }
418
- function O(I, t, e, i, s, n, a, o, r, u) {
419
- I.getVertexPosition(o, F), I.getVertexPosition(r, j), I.getVertexPosition(u, q);
420
- const c = mt(I, t, e, i, F, j, q, et);
421
- if (c) {
422
- const l = new f();
423
- v.getBarycoord(et, F, j, q, l), s && (c.uv = v.getInterpolatedAttribute(s, o, r, u, l, new Z())), n && (c.uv1 = v.getInterpolatedAttribute(n, o, r, u, l, new Z())), a && (c.normal = v.getInterpolatedAttribute(a, o, r, u, l, new f()), c.normal.dot(i.direction) > 0 && c.normal.multiplyScalar(-1));
424
- const M = {
425
- a: o,
426
- b: r,
427
- c: u,
428
- normal: new f(),
429
- materialIndex: 0
430
- };
431
- v.getNormal(F, j, q, M.normal), c.face = M, c.barycoord = l;
432
- }
433
- return c;
434
- }
435
- class Y extends st {
436
- /**
437
- * Constructs a new sphere geometry.
438
- *
439
- * @param {number} [radius=1] - The sphere radius.
440
- * @param {number} [widthSegments=32] - The number of horizontal segments. Minimum value is `3`.
441
- * @param {number} [heightSegments=16] - The number of vertical segments. Minimum value is `2`.
442
- * @param {number} [phiStart=0] - The horizontal starting angle in radians.
443
- * @param {number} [phiLength=Math.PI*2] - The horizontal sweep angle size.
444
- * @param {number} [thetaStart=0] - The vertical starting angle in radians.
445
- * @param {number} [thetaLength=Math.PI] - The vertical sweep angle size.
446
- */
447
- constructor(t = 1, e = 32, i = 16, s = 0, n = Math.PI * 2, a = 0, o = Math.PI) {
448
- super(), this.type = "SphereGeometry", this.parameters = {
449
- radius: t,
450
- widthSegments: e,
451
- heightSegments: i,
452
- phiStart: s,
453
- phiLength: n,
454
- thetaStart: a,
455
- thetaLength: o
456
- }, e = Math.max(3, Math.floor(e)), i = Math.max(2, Math.floor(i));
457
- const r = Math.min(a + o, Math.PI);
458
- let u = 0;
459
- const c = [], l = new f(), M = new f(), d = [], p = [], w = [], h = [];
460
- for (let m = 0; m <= i; m++) {
461
- const b = [], g = m / i;
462
- let y = 0;
463
- m === 0 && a === 0 ? y = 0.5 / e : m === i && r === Math.PI && (y = -0.5 / e);
464
- for (let A = 0; A <= e; A++) {
465
- const V = A / e;
466
- l.x = -t * Math.cos(s + V * n) * Math.sin(a + g * o), l.y = t * Math.cos(a + g * o), l.z = t * Math.sin(s + V * n) * Math.sin(a + g * o), p.push(l.x, l.y, l.z), M.copy(l).normalize(), w.push(M.x, M.y, M.z), h.push(V + y, 1 - g), b.push(u++);
467
- }
468
- c.push(b);
469
- }
470
- for (let m = 0; m < i; m++)
471
- for (let b = 0; b < e; b++) {
472
- const g = c[m][b + 1], y = c[m][b], A = c[m + 1][b], V = c[m + 1][b + 1];
473
- (m !== 0 || a > 0) && d.push(g, y, V), (m !== i - 1 || r < Math.PI) && d.push(y, A, V);
474
- }
475
- this.setIndex(d), this.setAttribute("position", new X(p, 3)), this.setAttribute("normal", new X(w, 3)), this.setAttribute("uv", new X(h, 2));
476
- }
477
- copy(t) {
478
- return super.copy(t), this.parameters = Object.assign({}, t.parameters), this;
479
- }
480
- /**
481
- * Factory method for creating an instance of this class from the given
482
- * JSON object.
483
- *
484
- * @param {Object} data - A JSON object representing the serialized geometry.
485
- * @return {SphereGeometry} A new instance.
486
- */
487
- static fromJSON(t) {
488
- return new Y(t.radius, t.widthSegments, t.heightSegments, t.phiStart, t.phiLength, t.thetaStart, t.thetaLength);
489
- }
490
- }
491
- class bt extends dt {
492
- /**
493
- * Constructs a new point light helper.
494
- *
495
- * @param {PointLight} light - The light to be visualized.
496
- * @param {number} [sphereSize=1] - The size of the sphere helper.
497
- * @param {number|Color|string} [color] - The helper's color. If not set, the helper will take
498
- * the color of the light.
499
- */
500
- constructor(t, e, i) {
501
- const s = new Y(e, 4, 2), n = new it({ wireframe: !0, fog: !1, toneMapped: !1 });
502
- super(s, n), this.light = t, this.color = i, this.type = "PointLightHelper", this.matrix = this.light.matrixWorld, this.matrixAutoUpdate = !1, this.update();
503
- }
504
- /**
505
- * Frees the GPU-related resources allocated by this instance. Call this
506
- * method whenever this instance is no longer used in your app.
507
- */
508
- dispose() {
509
- this.geometry.dispose(), this.material.dispose();
510
- }
511
- /**
512
- * Updates the helper to match the position of the
513
- * light being visualized.
514
- */
515
- update() {
516
- this.light.updateWorldMatrix(!0, !1), this.color !== void 0 ? this.material.color.set(this.color) : this.material.color.copy(this.light.color);
517
- }
518
- }
519
- export {
520
- bt as PointLightHelper
521
- };
522
- //# sourceMappingURL=PointLightHelper-ICWLqwjK.mjs.map