@roomle/web-sdk 3.6.0-alpha.2 → 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.
- package/lib/BufferGeometry-DLEagG41.mjs +1022 -0
- package/lib/BufferGeometry-DLEagG41.mjs.map +1 -0
- package/lib/ConfiguratorKernel.js +2 -2
- package/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/GLTFExporter-D8qsdwDK.mjs +1092 -0
- package/lib/GLTFExporter-D8qsdwDK.mjs.map +1 -0
- package/lib/Object3D-DSjIOhON.mjs +1713 -0
- package/lib/Object3D-DSjIOhON.mjs.map +1 -0
- package/lib/PointLightHelper-BnjxGaOG.mjs +257 -0
- package/lib/PointLightHelper-BnjxGaOG.mjs.map +1 -0
- package/lib/RoomleCore.js +4 -4
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/SpotLightHelper-DqsfqCrs.mjs +154 -0
- package/lib/SpotLightHelper-DqsfqCrs.mjs.map +1 -0
- package/lib/USDZExporter-DxIqi8St.mjs +296 -0
- package/lib/USDZExporter-DxIqi8St.mjs.map +1 -0
- package/lib/Vector4-DGmBYfpK.mjs +204 -0
- package/lib/Vector4-DGmBYfpK.mjs.map +1 -0
- package/lib/api-CNoIBuvr.mjs +55 -0
- package/lib/api-CNoIBuvr.mjs.map +1 -0
- package/lib/asset-loader.worker.js +1 -1
- package/lib/banana-for-scale-C_iNmlCT.mjs +36 -0
- package/lib/banana-for-scale-C_iNmlCT.mjs.map +1 -0
- package/lib/common-utils-DMSTohiS.mjs +187 -0
- package/lib/common-utils-DMSTohiS.mjs.map +1 -0
- package/lib/component-dimensioning-CvRmUja4.mjs +162 -0
- package/lib/component-dimensioning-CvRmUja4.mjs.map +1 -0
- package/lib/component-raycast-helper-CEp7wy9c.mjs +97 -0
- package/lib/component-raycast-helper-CEp7wy9c.mjs.map +1 -0
- package/lib/configurator-B_5XVG2O.mjs +45 -0
- package/lib/configurator-B_5XVG2O.mjs.map +1 -0
- package/lib/configurator-DCdvMM0o.mjs +2 -0
- package/lib/continuous-drawing-helper-v_5UAM9A.mjs +42 -0
- package/lib/continuous-drawing-helper-v_5UAM9A.mjs.map +1 -0
- package/lib/decorate-C1QnXPYw.mjs +35 -0
- package/lib/decorate-C1QnXPYw.mjs.map +1 -0
- package/lib/dimensioning-helper-DTcW85Oq.mjs +2 -0
- package/lib/dimensioning-helper-Fwpt1HTT.mjs +268 -0
- package/lib/dimensioning-helper-Fwpt1HTT.mjs.map +1 -0
- package/lib/fflate.module-dFNj5UPI.mjs +536 -0
- package/lib/fflate.module-dFNj5UPI.mjs.map +1 -0
- package/lib/glb-viewer-cP8g6bcm.mjs +315 -0
- package/lib/glb-viewer-cP8g6bcm.mjs.map +1 -0
- package/lib/glb-viewer-dZThmlwM.mjs +2 -0
- package/lib/homag-intelligence-LoOJ7roM.mjs +381 -0
- package/lib/homag-intelligence-LoOJ7roM.mjs.map +1 -0
- package/lib/imos-ix-poc-export-helper-CQh94HsO.mjs +161 -0
- package/lib/imos-ix-poc-export-helper-CQh94HsO.mjs.map +1 -0
- package/lib/kernel-BAQSG9r5.mjs +46 -0
- package/lib/kernel-BAQSG9r5.mjs.map +1 -0
- package/lib/kernel-utils-H74uNY1h.mjs +44 -0
- package/lib/kernel-utils-H74uNY1h.mjs.map +1 -0
- package/lib/layer-C_JtkhdO.mjs +8 -0
- package/lib/layer-C_JtkhdO.mjs.map +1 -0
- package/lib/main-BxEZ11ag.mjs +20461 -0
- package/lib/main-BxEZ11ag.mjs.map +1 -0
- package/lib/material-viewer-njBFF0Zg.mjs +292 -0
- package/lib/material-viewer-njBFF0Zg.mjs.map +1 -0
- package/lib/planner-Cr495Cyn.mjs +2 -0
- package/lib/planner-DY73rplC.mjs +44 -0
- package/lib/planner-DY73rplC.mjs.map +1 -0
- package/lib/plugin-system-D9K46xJk.mjs +55 -0
- package/lib/plugin-system-D9K46xJk.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +302 -134
- package/lib/roomle-sdk.js +7 -36
- package/lib/scene-renderer-D8HkTFeZ.mjs +3826 -0
- package/lib/scene-renderer-D8HkTFeZ.mjs.map +1 -0
- package/lib/script-loader-KBq8SjP6.mjs +45 -0
- package/lib/script-loader-KBq8SjP6.mjs.map +1 -0
- package/lib/static/draco/node_modules/three/examples/jsm/libs/draco/draco_decoder.js +34 -0
- package/lib/static/draco/node_modules/three/examples/jsm/libs/draco/draco_decoder.wasm +0 -0
- package/lib/static/draco/node_modules/three/examples/jsm/libs/draco/draco_encoder.js +33 -0
- package/lib/static/draco/node_modules/three/examples/jsm/libs/draco/draco_wasm_wrapper.js +117 -0
- package/lib/static/packages/workers/generated/asset-loader.worker.js +1 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -0
- package/lib/static/roomle-core-hsc/{configuratorCore.d.ts → node_modules/roomle-core-hsc/src/embind/configuratorCore.d.ts} +1 -2
- package/lib/static/roomle-core-hsc/{configuratorCoreInterface.d.ts → node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts} +22 -29
- package/lib/static/roomle-core-hsc/{src → node_modules/roomle-core-hsc/src}/embind/plannerCore.d.ts +1 -2
- package/lib/static/roomle-core-hsc/{src → node_modules/roomle-core-hsc/src}/embind/plannerCoreCallback.d.ts +1 -1
- package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCoreCallback.js +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreCallback.js.map +1 -0
- package/lib/static/roomle-core-hsc/{plannerCoreInterface.d.ts → node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.d.ts} +76 -81
- package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCoreInterface.js +1 -6
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js.map +1 -0
- package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/configurableObject.d.ts +2 -2
- package/lib/static/roomle-core-hsc/{src → node_modules/roomle-core-hsc/src}/loader/configurableObject.js +6 -6
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurableObject.js.map +1 -0
- package/lib/static/roomle-core-hsc/{src → node_modules/roomle-core-hsc/src}/loader/configurationLoader.js +1 -5
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationLoader.js.map +1 -0
- package/lib/static/roomle-core-hsc/{configurationManager.d.ts → node_modules/roomle-core-hsc/src/loader/configurationManager.d.ts} +1 -0
- package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/configurationManager.js +6 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationManager.js.map +1 -0
- package/lib/static/roomle-core-hsc/{src → node_modules/roomle-core-hsc/src}/loader/planElementManager.d.ts +2 -2
- package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/planElementManager.js.map +1 -1
- package/lib/static/roomle-core-hsc/{wasm_modern → node_modules/roomle-core-hsc/wasm_modern}/ConfiguratorKernel.js +2 -2
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/{wasm_modern → node_modules/roomle-core-hsc/wasm_modern}/RoomleCore.js +4 -4
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
- package/lib/stats-helper-HM0TaIM5.mjs +95 -0
- package/lib/stats-helper-HM0TaIM5.mjs.map +1 -0
- package/lib/three.core-CLIofecG.mjs +7629 -0
- package/lib/three.core-CLIofecG.mjs.map +1 -0
- package/lib/three.module-C4Q1skJQ.mjs +5795 -0
- package/lib/three.module-C4Q1skJQ.mjs.map +1 -0
- package/lib/three.webgpu-dFspy2yF.mjs +16057 -0
- package/lib/three.webgpu-dFspy2yF.mjs.map +1 -0
- package/lib/threejs-utils-jEzvlJF1.mjs +2233 -0
- package/lib/threejs-utils-jEzvlJF1.mjs.map +1 -0
- package/lib/tools-core-CZbPygRC.mjs +30 -0
- package/lib/tools-core-CZbPygRC.mjs.map +1 -0
- package/package.json +3 -3
- package/lib/BufferGeometry-BZdSmtHt.mjs +0 -2064
- package/lib/BufferGeometry-BZdSmtHt.mjs.map +0 -1
- package/lib/GLTFExporter-DiE_HuI6.mjs +0 -1286
- package/lib/GLTFExporter-DiE_HuI6.mjs.map +0 -1
- package/lib/PointLightHelper-BvRpTX7D.mjs +0 -522
- package/lib/PointLightHelper-BvRpTX7D.mjs.map +0 -1
- package/lib/SpotLightHelper-Byg39thi.mjs +0 -222
- package/lib/SpotLightHelper-Byg39thi.mjs.map +0 -1
- package/lib/USDZExporter-VBx9xybH.mjs +0 -545
- package/lib/USDZExporter-VBx9xybH.mjs.map +0 -1
- package/lib/banana-for-scale-C9_AyZkI.mjs +0 -50
- package/lib/banana-for-scale-C9_AyZkI.mjs.map +0 -1
- package/lib/component-dimensioning-DHTSa-If.mjs +0 -229
- package/lib/component-dimensioning-DHTSa-If.mjs.map +0 -1
- package/lib/continuous-drawing-helper-BNHRsd4B.mjs +0 -48
- package/lib/continuous-drawing-helper-BNHRsd4B.mjs.map +0 -1
- package/lib/homag-intelligence-BraN723F.mjs +0 -545
- package/lib/homag-intelligence-BraN723F.mjs.map +0 -1
- package/lib/imos-ix-poc-export-helper-D7ubISCJ.mjs +0 -180
- package/lib/imos-ix-poc-export-helper-D7ubISCJ.mjs.map +0 -1
- package/lib/index-C-Prfui2.mjs +0 -73502
- package/lib/index-C-Prfui2.mjs.map +0 -1
- package/lib/material-viewer-DyVGp6Xm.mjs +0 -450
- package/lib/material-viewer-DyVGp6Xm.mjs.map +0 -1
- package/lib/roomle-sdk.js.map +0 -1
- package/lib/static/asset-loader.worker.js +0 -1
- package/lib/static/draco/gltf/draco_decoder.js +0 -33
- package/lib/static/draco/gltf/draco_decoder.wasm +0 -0
- package/lib/static/draco/gltf/draco_encoder.js +0 -33
- package/lib/static/draco/gltf/draco_wasm_wrapper.js +0 -116
- package/lib/static/roomle-core-hsc/ConfiguratorKernel.js +0 -74
- package/lib/static/roomle-core-hsc/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/RoomleCore.js +0 -79
- package/lib/static/roomle-core-hsc/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/RoomleToolsCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/configurableObject.d.ts +0 -30
- package/lib/static/roomle-core-hsc/configurableObject.js +0 -111
- package/lib/static/roomle-core-hsc/configurableObject.js.map +0 -1
- package/lib/static/roomle-core-hsc/configurationLoader.js +0 -349
- package/lib/static/roomle-core-hsc/configurationLoader.js.map +0 -1
- package/lib/static/roomle-core-hsc/configurationManager.js +0 -141
- package/lib/static/roomle-core-hsc/configurationManager.js.map +0 -1
- package/lib/static/roomle-core-hsc/embind/configuratorCallback.d.ts +0 -82
- package/lib/static/roomle-core-hsc/embind/configuratorCallback.js +0 -355
- package/lib/static/roomle-core-hsc/embind/configuratorCallback.js.map +0 -1
- package/lib/static/roomle-core-hsc/embind/configuratorCore.d.ts +0 -20
- package/lib/static/roomle-core-hsc/embind/configuratorCore.js +0 -50
- package/lib/static/roomle-core-hsc/embind/configuratorCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/embind/configuratorCoreInterface.d.ts +0 -753
- package/lib/static/roomle-core-hsc/embind/configuratorCoreInterface.js +0 -99
- package/lib/static/roomle-core-hsc/embind/configuratorCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/embind/configuratorUtils.d.ts +0 -3
- package/lib/static/roomle-core-hsc/embind/configuratorUtils.js +0 -52
- package/lib/static/roomle-core-hsc/embind/configuratorUtils.js.map +0 -1
- package/lib/static/roomle-core-hsc/embind/coreModue.d.ts +0 -4
- package/lib/static/roomle-core-hsc/embind/coreModue.js +0 -3
- package/lib/static/roomle-core-hsc/embind/coreModue.js.map +0 -1
- package/lib/static/roomle-core-hsc/embind/coreModule.d.ts +0 -11
- package/lib/static/roomle-core-hsc/embind/coreModule.js +0 -19
- package/lib/static/roomle-core-hsc/embind/coreModule.js.map +0 -1
- package/lib/static/roomle-core-hsc/embind/plannerCore.d.ts +0 -32
- package/lib/static/roomle-core-hsc/embind/plannerCoreCallback.d.ts +0 -39
- package/lib/static/roomle-core-hsc/embind/plannerCoreCallback.js.map +0 -1
- package/lib/static/roomle-core-hsc/embind/plannerCoreInterface.d.ts +0 -858
- package/lib/static/roomle-core-hsc/embind/plannerCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/loader/configurableObject.js +0 -111
- package/lib/static/roomle-core-hsc/loader/configurableObject.js.map +0 -1
- package/lib/static/roomle-core-hsc/loader/configurationGeometryConstructor.d.ts +0 -21
- package/lib/static/roomle-core-hsc/loader/configurationGeometryConstructor.js +0 -90
- package/lib/static/roomle-core-hsc/loader/configurationGeometryConstructor.js.map +0 -1
- package/lib/static/roomle-core-hsc/loader/configurationLoader.d.ts +0 -116
- package/lib/static/roomle-core-hsc/loader/configurationLoader.js +0 -349
- package/lib/static/roomle-core-hsc/loader/configurationLoader.js.map +0 -1
- package/lib/static/roomle-core-hsc/loader/configurationManager.d.ts +0 -40
- package/lib/static/roomle-core-hsc/loader/configurationManager.js.map +0 -1
- package/lib/static/roomle-core-hsc/loader/planElementManager.d.ts +0 -96
- package/lib/static/roomle-core-hsc/loaderUtility.d.ts +0 -81
- package/lib/static/roomle-core-hsc/loaderUtility.js +0 -141
- package/lib/static/roomle-core-hsc/loaderUtility.js.map +0 -1
- package/lib/static/roomle-core-hsc/logger.d.ts +0 -29
- package/lib/static/roomle-core-hsc/logger.js +0 -61
- package/lib/static/roomle-core-hsc/logger.js.map +0 -1
- package/lib/static/roomle-core-hsc/package.json +0 -1
- package/lib/static/roomle-core-hsc/planElementManager.d.ts +0 -96
- package/lib/static/roomle-core-hsc/planElementManager.js +0 -300
- package/lib/static/roomle-core-hsc/planElementManager.js.map +0 -1
- package/lib/static/roomle-core-hsc/plannerCore.d.ts +0 -32
- package/lib/static/roomle-core-hsc/plannerCore.js +0 -111
- package/lib/static/roomle-core-hsc/plannerCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/plannerCoreCallback.d.ts +0 -39
- package/lib/static/roomle-core-hsc/plannerCoreCallback.js +0 -116
- package/lib/static/roomle-core-hsc/plannerCoreCallback.js.map +0 -1
- package/lib/static/roomle-core-hsc/plannerCoreInterface.js +0 -98
- package/lib/static/roomle-core-hsc/plannerCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/rapiAccess.d.ts +0 -70
- package/lib/static/roomle-core-hsc/rapiAccess.js +0 -227
- package/lib/static/roomle-core-hsc/rapiAccess.js.map +0 -1
- package/lib/static/roomle-core-hsc/serviceCore.d.ts +0 -20
- package/lib/static/roomle-core-hsc/serviceCore.js +0 -54
- package/lib/static/roomle-core-hsc/serviceCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/serviceCoreInterface.d.ts +0 -13
- package/lib/static/roomle-core-hsc/serviceCoreInterface.js +0 -3
- package/lib/static/roomle-core-hsc/serviceCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/configuratorCallback.d.ts +0 -82
- package/lib/static/roomle-core-hsc/src/embind/configuratorCallback.js +0 -355
- package/lib/static/roomle-core-hsc/src/embind/configuratorCallback.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/configuratorCore.d.ts +0 -20
- package/lib/static/roomle-core-hsc/src/embind/configuratorCore.js +0 -50
- package/lib/static/roomle-core-hsc/src/embind/configuratorCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts +0 -753
- package/lib/static/roomle-core-hsc/src/embind/configuratorCoreInterface.js +0 -99
- package/lib/static/roomle-core-hsc/src/embind/configuratorCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/configuratorUtils.d.ts +0 -3
- package/lib/static/roomle-core-hsc/src/embind/configuratorUtils.js +0 -52
- package/lib/static/roomle-core-hsc/src/embind/configuratorUtils.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/coreModue.d.ts +0 -4
- package/lib/static/roomle-core-hsc/src/embind/coreModue.js +0 -3
- package/lib/static/roomle-core-hsc/src/embind/coreModue.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/coreModule.d.ts +0 -11
- package/lib/static/roomle-core-hsc/src/embind/coreModule.js +0 -19
- package/lib/static/roomle-core-hsc/src/embind/coreModule.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/plannerCore.js +0 -111
- package/lib/static/roomle-core-hsc/src/embind/plannerCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreCallback.js +0 -116
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreCallback.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreInterface.d.ts +0 -858
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreInterface.js +0 -98
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/serviceCore.d.ts +0 -20
- package/lib/static/roomle-core-hsc/src/embind/serviceCore.js +0 -54
- package/lib/static/roomle-core-hsc/src/embind/serviceCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/serviceCoreInterface.d.ts +0 -13
- package/lib/static/roomle-core-hsc/src/embind/serviceCoreInterface.js +0 -3
- package/lib/static/roomle-core-hsc/src/embind/serviceCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/toolsCore.d.ts +0 -17
- package/lib/static/roomle-core-hsc/src/embind/toolsCore.js +0 -75
- package/lib/static/roomle-core-hsc/src/embind/toolsCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/toolsCoreInterface.d.ts +0 -40
- package/lib/static/roomle-core-hsc/src/embind/toolsCoreInterface.js +0 -8
- package/lib/static/roomle-core-hsc/src/embind/toolsCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/configurableObject.d.ts +0 -30
- package/lib/static/roomle-core-hsc/src/loader/configurableObject.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/configurationGeometryConstructor.d.ts +0 -21
- package/lib/static/roomle-core-hsc/src/loader/configurationGeometryConstructor.js +0 -90
- package/lib/static/roomle-core-hsc/src/loader/configurationGeometryConstructor.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/configurationLoader.d.ts +0 -116
- package/lib/static/roomle-core-hsc/src/loader/configurationLoader.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/configurationManager.d.ts +0 -40
- package/lib/static/roomle-core-hsc/src/loader/configurationManager.js +0 -141
- package/lib/static/roomle-core-hsc/src/loader/configurationManager.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/loaderUtility.d.ts +0 -81
- package/lib/static/roomle-core-hsc/src/loader/loaderUtility.js +0 -141
- package/lib/static/roomle-core-hsc/src/loader/loaderUtility.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/logger.d.ts +0 -29
- package/lib/static/roomle-core-hsc/src/loader/logger.js +0 -61
- package/lib/static/roomle-core-hsc/src/loader/logger.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/planElementManager.js +0 -300
- package/lib/static/roomle-core-hsc/src/loader/planElementManager.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/rapiAccess.d.ts +0 -70
- package/lib/static/roomle-core-hsc/src/loader/rapiAccess.js +0 -227
- package/lib/static/roomle-core-hsc/src/loader/rapiAccess.js.map +0 -1
- package/lib/static/roomle-core-hsc/toolsCore.d.ts +0 -17
- package/lib/static/roomle-core-hsc/toolsCore.js +0 -75
- package/lib/static/roomle-core-hsc/toolsCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/toolsCoreInterface.d.ts +0 -40
- package/lib/static/roomle-core-hsc/toolsCoreInterface.js +0 -8
- package/lib/static/roomle-core-hsc/toolsCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/wasm_modern/RoomleToolsCore.js +0 -74
- package/lib/static/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
- package/lib/stats-helper-UQlUyOTj.mjs +0 -108
- package/lib/stats-helper-UQlUyOTj.mjs.map +0 -1
- package/lib/three.webgpu-sHJcp001.mjs +0 -27625
- package/lib/three.webgpu-sHJcp001.mjs.map +0 -1
- package/lib/tools-core-wkPFRdnH.mjs +0 -36
- package/lib/tools-core-wkPFRdnH.mjs.map +0 -1
- /package/lib/static/draco/{README.md → node_modules/three/examples/jsm/libs/draco/README.md} +0 -0
- /package/lib/static/draco/{draco_decoder.js → node_modules/three/examples/jsm/libs/draco/gltf/draco_decoder.js} +0 -0
- /package/lib/static/draco/{draco_decoder.wasm → node_modules/three/examples/jsm/libs/draco/gltf/draco_decoder.wasm} +0 -0
- /package/lib/static/draco/{draco_encoder.js → node_modules/three/examples/jsm/libs/draco/gltf/draco_encoder.js} +0 -0
- /package/lib/static/draco/{draco_wasm_wrapper.js → node_modules/three/examples/jsm/libs/draco/gltf/draco_wasm_wrapper.js} +0 -0
- /package/lib/static/{budgeteer.sw.js → packages/workers/generated/budgeteer.sw.js} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCallback.d.ts → node_modules/roomle-core-hsc/src/embind/configuratorCallback.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCallback.js → node_modules/roomle-core-hsc/src/embind/configuratorCallback.js} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCallback.js.map → node_modules/roomle-core-hsc/src/embind/configuratorCallback.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCore.js → node_modules/roomle-core-hsc/src/embind/configuratorCore.js} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCore.js.map → node_modules/roomle-core-hsc/src/embind/configuratorCore.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCoreInterface.js → node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.js} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCoreInterface.js.map → node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorUtils.d.ts → node_modules/roomle-core-hsc/src/embind/configuratorUtils.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorUtils.js → node_modules/roomle-core-hsc/src/embind/configuratorUtils.js} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorUtils.js.map → node_modules/roomle-core-hsc/src/embind/configuratorUtils.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{coreModue.d.ts → node_modules/roomle-core-hsc/src/embind/coreModue.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{coreModue.js → node_modules/roomle-core-hsc/src/embind/coreModue.js} +0 -0
- /package/lib/static/roomle-core-hsc/{coreModue.js.map → node_modules/roomle-core-hsc/src/embind/coreModue.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{coreModule.d.ts → node_modules/roomle-core-hsc/src/embind/coreModule.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{coreModule.js → node_modules/roomle-core-hsc/src/embind/coreModule.js} +0 -0
- /package/lib/static/roomle-core-hsc/{coreModule.js.map → node_modules/roomle-core-hsc/src/embind/coreModule.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCore.js +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCore.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCore.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCore.js +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCore.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCoreInterface.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCoreInterface.js +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCoreInterface.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCore.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCore.js +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCore.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCoreInterface.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCoreInterface.js +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCoreInterface.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{configurationGeometryConstructor.d.ts → node_modules/roomle-core-hsc/src/loader/configurationGeometryConstructor.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{configurationGeometryConstructor.js → node_modules/roomle-core-hsc/src/loader/configurationGeometryConstructor.js} +0 -0
- /package/lib/static/roomle-core-hsc/{configurationGeometryConstructor.js.map → node_modules/roomle-core-hsc/src/loader/configurationGeometryConstructor.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{configurationLoader.d.ts → node_modules/roomle-core-hsc/src/loader/configurationLoader.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/loaderUtility.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/loaderUtility.js +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/loaderUtility.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/logger.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/logger.js +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/logger.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/planElementManager.js +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/rapiAccess.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/rapiAccess.js +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/rapiAccess.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{RoomleToolsCore.js → node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.js} +0 -0
|
@@ -0,0 +1,1022 @@
|
|
|
1
|
+
import { C as e, D as t, E as n, O as r, S as i, T as a, _ as o, a as s, b as c, c as l, g as u, h as d, i as f, k as p, l as m, m as h, o as g, p as _, r as v, s as y, t as b, v as x, w as S, x as C, y as w } from "./Object3D-DSjIOhON.mjs";
|
|
2
|
+
//#region ../../node_modules/three/src/math/Ray.js
|
|
3
|
+
var T = /* @__PURE__ */ new m(), E = /* @__PURE__ */ new m(), D = /* @__PURE__ */ new m(), O = /* @__PURE__ */ new m(), k = /* @__PURE__ */ new m(), A = /* @__PURE__ */ new m(), j = /* @__PURE__ */ new m(), M = class {
|
|
4
|
+
constructor(e = new m(), t = new m(0, 0, -1)) {
|
|
5
|
+
this.origin = e, this.direction = t;
|
|
6
|
+
}
|
|
7
|
+
set(e, t) {
|
|
8
|
+
return this.origin.copy(e), this.direction.copy(t), this;
|
|
9
|
+
}
|
|
10
|
+
copy(e) {
|
|
11
|
+
return this.origin.copy(e.origin), this.direction.copy(e.direction), this;
|
|
12
|
+
}
|
|
13
|
+
at(e, t) {
|
|
14
|
+
return t.copy(this.origin).addScaledVector(this.direction, e);
|
|
15
|
+
}
|
|
16
|
+
lookAt(e) {
|
|
17
|
+
return this.direction.copy(e).sub(this.origin).normalize(), this;
|
|
18
|
+
}
|
|
19
|
+
recast(e) {
|
|
20
|
+
return this.origin.copy(this.at(e, T)), this;
|
|
21
|
+
}
|
|
22
|
+
closestPointToPoint(e, t) {
|
|
23
|
+
t.subVectors(e, this.origin);
|
|
24
|
+
let n = t.dot(this.direction);
|
|
25
|
+
return n < 0 ? t.copy(this.origin) : t.copy(this.origin).addScaledVector(this.direction, n);
|
|
26
|
+
}
|
|
27
|
+
distanceToPoint(e) {
|
|
28
|
+
return Math.sqrt(this.distanceSqToPoint(e));
|
|
29
|
+
}
|
|
30
|
+
distanceSqToPoint(e) {
|
|
31
|
+
let t = T.subVectors(e, this.origin).dot(this.direction);
|
|
32
|
+
return t < 0 ? this.origin.distanceToSquared(e) : (T.copy(this.origin).addScaledVector(this.direction, t), T.distanceToSquared(e));
|
|
33
|
+
}
|
|
34
|
+
distanceSqToSegment(e, t, n, r) {
|
|
35
|
+
E.copy(e).add(t).multiplyScalar(.5), D.copy(t).sub(e).normalize(), O.copy(this.origin).sub(E);
|
|
36
|
+
let i = e.distanceTo(t) * .5, a = -this.direction.dot(D), o = O.dot(this.direction), s = -O.dot(D), c = O.lengthSq(), l = Math.abs(1 - a * a), u, d, f, p;
|
|
37
|
+
if (l > 0) if (u = a * s - o, d = a * o - s, p = i * l, u >= 0) if (d >= -p) if (d <= p) {
|
|
38
|
+
let e = 1 / l;
|
|
39
|
+
u *= e, d *= e, f = u * (u + a * d + 2 * o) + d * (a * u + d + 2 * s) + c;
|
|
40
|
+
} else d = i, u = Math.max(0, -(a * d + o)), f = -u * u + d * (d + 2 * s) + c;
|
|
41
|
+
else d = -i, u = Math.max(0, -(a * d + o)), f = -u * u + d * (d + 2 * s) + c;
|
|
42
|
+
else d <= -p ? (u = Math.max(0, -(-a * i + o)), d = u > 0 ? -i : Math.min(Math.max(-i, -s), i), f = -u * u + d * (d + 2 * s) + c) : d <= p ? (u = 0, d = Math.min(Math.max(-i, -s), i), f = d * (d + 2 * s) + c) : (u = Math.max(0, -(a * i + o)), d = u > 0 ? i : Math.min(Math.max(-i, -s), i), f = -u * u + d * (d + 2 * s) + c);
|
|
43
|
+
else d = a > 0 ? -i : i, u = Math.max(0, -(a * d + o)), f = -u * u + d * (d + 2 * s) + c;
|
|
44
|
+
return n && n.copy(this.origin).addScaledVector(this.direction, u), r && r.copy(E).addScaledVector(D, d), f;
|
|
45
|
+
}
|
|
46
|
+
intersectSphere(e, t) {
|
|
47
|
+
T.subVectors(e.center, this.origin);
|
|
48
|
+
let n = T.dot(this.direction), r = T.dot(T) - n * n, i = e.radius * e.radius;
|
|
49
|
+
if (r > i) return null;
|
|
50
|
+
let a = Math.sqrt(i - r), o = n - a, s = n + a;
|
|
51
|
+
return s < 0 ? null : o < 0 ? this.at(s, t) : this.at(o, t);
|
|
52
|
+
}
|
|
53
|
+
intersectsSphere(e) {
|
|
54
|
+
return e.radius < 0 ? !1 : this.distanceSqToPoint(e.center) <= e.radius * e.radius;
|
|
55
|
+
}
|
|
56
|
+
distanceToPlane(e) {
|
|
57
|
+
let t = e.normal.dot(this.direction);
|
|
58
|
+
if (t === 0) return e.distanceToPoint(this.origin) === 0 ? 0 : null;
|
|
59
|
+
let n = -(this.origin.dot(e.normal) + e.constant) / t;
|
|
60
|
+
return n >= 0 ? n : null;
|
|
61
|
+
}
|
|
62
|
+
intersectPlane(e, t) {
|
|
63
|
+
let n = this.distanceToPlane(e);
|
|
64
|
+
return n === null ? null : this.at(n, t);
|
|
65
|
+
}
|
|
66
|
+
intersectsPlane(e) {
|
|
67
|
+
let t = e.distanceToPoint(this.origin);
|
|
68
|
+
return t === 0 || e.normal.dot(this.direction) * t < 0;
|
|
69
|
+
}
|
|
70
|
+
intersectBox(e, t) {
|
|
71
|
+
let n, r, i, a, o, s, c = 1 / this.direction.x, l = 1 / this.direction.y, u = 1 / this.direction.z, d = this.origin;
|
|
72
|
+
return c >= 0 ? (n = (e.min.x - d.x) * c, r = (e.max.x - d.x) * c) : (n = (e.max.x - d.x) * c, r = (e.min.x - d.x) * c), l >= 0 ? (i = (e.min.y - d.y) * l, a = (e.max.y - d.y) * l) : (i = (e.max.y - d.y) * l, a = (e.min.y - d.y) * l), n > a || i > r || ((i > n || isNaN(n)) && (n = i), (a < r || isNaN(r)) && (r = a), u >= 0 ? (o = (e.min.z - d.z) * u, s = (e.max.z - d.z) * u) : (o = (e.max.z - d.z) * u, s = (e.min.z - d.z) * u), n > s || o > r) || ((o > n || n !== n) && (n = o), (s < r || r !== r) && (r = s), r < 0) ? null : this.at(n >= 0 ? n : r, t);
|
|
73
|
+
}
|
|
74
|
+
intersectsBox(e) {
|
|
75
|
+
return this.intersectBox(e, T) !== null;
|
|
76
|
+
}
|
|
77
|
+
intersectTriangle(e, t, n, r, i) {
|
|
78
|
+
k.subVectors(t, e), A.subVectors(n, e), j.crossVectors(k, A);
|
|
79
|
+
let a = this.direction.dot(j), o;
|
|
80
|
+
if (a > 0) {
|
|
81
|
+
if (r) return null;
|
|
82
|
+
o = 1;
|
|
83
|
+
} else if (a < 0) o = -1, a = -a;
|
|
84
|
+
else return null;
|
|
85
|
+
O.subVectors(this.origin, e);
|
|
86
|
+
let s = o * this.direction.dot(A.crossVectors(O, A));
|
|
87
|
+
if (s < 0) return null;
|
|
88
|
+
let c = o * this.direction.dot(k.cross(O));
|
|
89
|
+
if (c < 0 || s + c > a) return null;
|
|
90
|
+
let l = -o * O.dot(j);
|
|
91
|
+
return l < 0 ? null : this.at(l / a, i);
|
|
92
|
+
}
|
|
93
|
+
applyMatrix4(e) {
|
|
94
|
+
return this.origin.applyMatrix4(e), this.direction.transformDirection(e), this;
|
|
95
|
+
}
|
|
96
|
+
equals(e) {
|
|
97
|
+
return e.origin.equals(this.origin) && e.direction.equals(this.direction);
|
|
98
|
+
}
|
|
99
|
+
clone() {
|
|
100
|
+
return new this.constructor().copy(this);
|
|
101
|
+
}
|
|
102
|
+
}, N = /* @__PURE__ */ new f().set(.4123908, .3575843, .1804808, .212639, .7151687, .0721923, .0193308, .1191948, .9505322), P = /* @__PURE__ */ new f().set(3.2409699, -1.5373832, -.4986108, -.9692436, 1.8759675, .0415551, .0556301, -.203977, 1.0569715);
|
|
103
|
+
function ee() {
|
|
104
|
+
let e = {
|
|
105
|
+
enabled: !0,
|
|
106
|
+
workingColorSpace: a,
|
|
107
|
+
spaces: {},
|
|
108
|
+
convert: function(e, t, n) {
|
|
109
|
+
return this.enabled === !1 || t === n || !t || !n ? e : (this.spaces[t].transfer === "srgb" && (e.r = I(e.r), e.g = I(e.g), e.b = I(e.b)), this.spaces[t].primaries !== this.spaces[n].primaries && (e.applyMatrix3(this.spaces[t].toXYZ), e.applyMatrix3(this.spaces[n].fromXYZ)), this.spaces[n].transfer === "srgb" && (e.r = L(e.r), e.g = L(e.g), e.b = L(e.b)), e);
|
|
110
|
+
},
|
|
111
|
+
workingToColorSpace: function(e, t) {
|
|
112
|
+
return this.convert(e, this.workingColorSpace, t);
|
|
113
|
+
},
|
|
114
|
+
colorSpaceToWorking: function(e, t) {
|
|
115
|
+
return this.convert(e, t, this.workingColorSpace);
|
|
116
|
+
},
|
|
117
|
+
getPrimaries: function(e) {
|
|
118
|
+
return this.spaces[e].primaries;
|
|
119
|
+
},
|
|
120
|
+
getTransfer: function(e) {
|
|
121
|
+
return e === "" ? n : this.spaces[e].transfer;
|
|
122
|
+
},
|
|
123
|
+
getToneMappingMode: function(e) {
|
|
124
|
+
return this.spaces[e].outputColorSpaceConfig.toneMappingMode || "standard";
|
|
125
|
+
},
|
|
126
|
+
getLuminanceCoefficients: function(e, t = this.workingColorSpace) {
|
|
127
|
+
return e.fromArray(this.spaces[t].luminanceCoefficients);
|
|
128
|
+
},
|
|
129
|
+
define: function(e) {
|
|
130
|
+
Object.assign(this.spaces, e);
|
|
131
|
+
},
|
|
132
|
+
_getMatrix: function(e, t, n) {
|
|
133
|
+
return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ);
|
|
134
|
+
},
|
|
135
|
+
_getDrawingBufferColorSpace: function(e) {
|
|
136
|
+
return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace;
|
|
137
|
+
},
|
|
138
|
+
_getUnpackColorSpace: function(e = this.workingColorSpace) {
|
|
139
|
+
return this.spaces[e].workingColorSpaceConfig.unpackColorSpace;
|
|
140
|
+
},
|
|
141
|
+
fromWorkingColorSpace: function(t, n) {
|
|
142
|
+
return i("ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."), e.workingToColorSpace(t, n);
|
|
143
|
+
},
|
|
144
|
+
toWorkingColorSpace: function(t, n) {
|
|
145
|
+
return i("ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."), e.colorSpaceToWorking(t, n);
|
|
146
|
+
}
|
|
147
|
+
}, o = [
|
|
148
|
+
.64,
|
|
149
|
+
.33,
|
|
150
|
+
.3,
|
|
151
|
+
.6,
|
|
152
|
+
.15,
|
|
153
|
+
.06
|
|
154
|
+
], s = [
|
|
155
|
+
.2126,
|
|
156
|
+
.7152,
|
|
157
|
+
.0722
|
|
158
|
+
], c = [.3127, .329];
|
|
159
|
+
return e.define({
|
|
160
|
+
[a]: {
|
|
161
|
+
primaries: o,
|
|
162
|
+
whitePoint: c,
|
|
163
|
+
transfer: n,
|
|
164
|
+
toXYZ: N,
|
|
165
|
+
fromXYZ: P,
|
|
166
|
+
luminanceCoefficients: s,
|
|
167
|
+
workingColorSpaceConfig: { unpackColorSpace: t },
|
|
168
|
+
outputColorSpaceConfig: { drawingBufferColorSpace: t }
|
|
169
|
+
},
|
|
170
|
+
[t]: {
|
|
171
|
+
primaries: o,
|
|
172
|
+
whitePoint: c,
|
|
173
|
+
transfer: r,
|
|
174
|
+
toXYZ: N,
|
|
175
|
+
fromXYZ: P,
|
|
176
|
+
luminanceCoefficients: s,
|
|
177
|
+
outputColorSpaceConfig: { drawingBufferColorSpace: t }
|
|
178
|
+
}
|
|
179
|
+
}), e;
|
|
180
|
+
}
|
|
181
|
+
var F = /* @__PURE__ */ ee();
|
|
182
|
+
function I(e) {
|
|
183
|
+
return e < .04045 ? e * .0773993808 : (e * .9478672986 + .0521327014) ** 2.4;
|
|
184
|
+
}
|
|
185
|
+
function L(e) {
|
|
186
|
+
return e < .0031308 ? e * 12.92 : 1.055 * e ** .41666 - .055;
|
|
187
|
+
}
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region ../../node_modules/three/src/math/Color.js
|
|
190
|
+
var R = {
|
|
191
|
+
aliceblue: 15792383,
|
|
192
|
+
antiquewhite: 16444375,
|
|
193
|
+
aqua: 65535,
|
|
194
|
+
aquamarine: 8388564,
|
|
195
|
+
azure: 15794175,
|
|
196
|
+
beige: 16119260,
|
|
197
|
+
bisque: 16770244,
|
|
198
|
+
black: 0,
|
|
199
|
+
blanchedalmond: 16772045,
|
|
200
|
+
blue: 255,
|
|
201
|
+
blueviolet: 9055202,
|
|
202
|
+
brown: 10824234,
|
|
203
|
+
burlywood: 14596231,
|
|
204
|
+
cadetblue: 6266528,
|
|
205
|
+
chartreuse: 8388352,
|
|
206
|
+
chocolate: 13789470,
|
|
207
|
+
coral: 16744272,
|
|
208
|
+
cornflowerblue: 6591981,
|
|
209
|
+
cornsilk: 16775388,
|
|
210
|
+
crimson: 14423100,
|
|
211
|
+
cyan: 65535,
|
|
212
|
+
darkblue: 139,
|
|
213
|
+
darkcyan: 35723,
|
|
214
|
+
darkgoldenrod: 12092939,
|
|
215
|
+
darkgray: 11119017,
|
|
216
|
+
darkgreen: 25600,
|
|
217
|
+
darkgrey: 11119017,
|
|
218
|
+
darkkhaki: 12433259,
|
|
219
|
+
darkmagenta: 9109643,
|
|
220
|
+
darkolivegreen: 5597999,
|
|
221
|
+
darkorange: 16747520,
|
|
222
|
+
darkorchid: 10040012,
|
|
223
|
+
darkred: 9109504,
|
|
224
|
+
darksalmon: 15308410,
|
|
225
|
+
darkseagreen: 9419919,
|
|
226
|
+
darkslateblue: 4734347,
|
|
227
|
+
darkslategray: 3100495,
|
|
228
|
+
darkslategrey: 3100495,
|
|
229
|
+
darkturquoise: 52945,
|
|
230
|
+
darkviolet: 9699539,
|
|
231
|
+
deeppink: 16716947,
|
|
232
|
+
deepskyblue: 49151,
|
|
233
|
+
dimgray: 6908265,
|
|
234
|
+
dimgrey: 6908265,
|
|
235
|
+
dodgerblue: 2003199,
|
|
236
|
+
firebrick: 11674146,
|
|
237
|
+
floralwhite: 16775920,
|
|
238
|
+
forestgreen: 2263842,
|
|
239
|
+
fuchsia: 16711935,
|
|
240
|
+
gainsboro: 14474460,
|
|
241
|
+
ghostwhite: 16316671,
|
|
242
|
+
gold: 16766720,
|
|
243
|
+
goldenrod: 14329120,
|
|
244
|
+
gray: 8421504,
|
|
245
|
+
green: 32768,
|
|
246
|
+
greenyellow: 11403055,
|
|
247
|
+
grey: 8421504,
|
|
248
|
+
honeydew: 15794160,
|
|
249
|
+
hotpink: 16738740,
|
|
250
|
+
indianred: 13458524,
|
|
251
|
+
indigo: 4915330,
|
|
252
|
+
ivory: 16777200,
|
|
253
|
+
khaki: 15787660,
|
|
254
|
+
lavender: 15132410,
|
|
255
|
+
lavenderblush: 16773365,
|
|
256
|
+
lawngreen: 8190976,
|
|
257
|
+
lemonchiffon: 16775885,
|
|
258
|
+
lightblue: 11393254,
|
|
259
|
+
lightcoral: 15761536,
|
|
260
|
+
lightcyan: 14745599,
|
|
261
|
+
lightgoldenrodyellow: 16448210,
|
|
262
|
+
lightgray: 13882323,
|
|
263
|
+
lightgreen: 9498256,
|
|
264
|
+
lightgrey: 13882323,
|
|
265
|
+
lightpink: 16758465,
|
|
266
|
+
lightsalmon: 16752762,
|
|
267
|
+
lightseagreen: 2142890,
|
|
268
|
+
lightskyblue: 8900346,
|
|
269
|
+
lightslategray: 7833753,
|
|
270
|
+
lightslategrey: 7833753,
|
|
271
|
+
lightsteelblue: 11584734,
|
|
272
|
+
lightyellow: 16777184,
|
|
273
|
+
lime: 65280,
|
|
274
|
+
limegreen: 3329330,
|
|
275
|
+
linen: 16445670,
|
|
276
|
+
magenta: 16711935,
|
|
277
|
+
maroon: 8388608,
|
|
278
|
+
mediumaquamarine: 6737322,
|
|
279
|
+
mediumblue: 205,
|
|
280
|
+
mediumorchid: 12211667,
|
|
281
|
+
mediumpurple: 9662683,
|
|
282
|
+
mediumseagreen: 3978097,
|
|
283
|
+
mediumslateblue: 8087790,
|
|
284
|
+
mediumspringgreen: 64154,
|
|
285
|
+
mediumturquoise: 4772300,
|
|
286
|
+
mediumvioletred: 13047173,
|
|
287
|
+
midnightblue: 1644912,
|
|
288
|
+
mintcream: 16121850,
|
|
289
|
+
mistyrose: 16770273,
|
|
290
|
+
moccasin: 16770229,
|
|
291
|
+
navajowhite: 16768685,
|
|
292
|
+
navy: 128,
|
|
293
|
+
oldlace: 16643558,
|
|
294
|
+
olive: 8421376,
|
|
295
|
+
olivedrab: 7048739,
|
|
296
|
+
orange: 16753920,
|
|
297
|
+
orangered: 16729344,
|
|
298
|
+
orchid: 14315734,
|
|
299
|
+
palegoldenrod: 15657130,
|
|
300
|
+
palegreen: 10025880,
|
|
301
|
+
paleturquoise: 11529966,
|
|
302
|
+
palevioletred: 14381203,
|
|
303
|
+
papayawhip: 16773077,
|
|
304
|
+
peachpuff: 16767673,
|
|
305
|
+
peru: 13468991,
|
|
306
|
+
pink: 16761035,
|
|
307
|
+
plum: 14524637,
|
|
308
|
+
powderblue: 11591910,
|
|
309
|
+
purple: 8388736,
|
|
310
|
+
rebeccapurple: 6697881,
|
|
311
|
+
red: 16711680,
|
|
312
|
+
rosybrown: 12357519,
|
|
313
|
+
royalblue: 4286945,
|
|
314
|
+
saddlebrown: 9127187,
|
|
315
|
+
salmon: 16416882,
|
|
316
|
+
sandybrown: 16032864,
|
|
317
|
+
seagreen: 3050327,
|
|
318
|
+
seashell: 16774638,
|
|
319
|
+
sienna: 10506797,
|
|
320
|
+
silver: 12632256,
|
|
321
|
+
skyblue: 8900331,
|
|
322
|
+
slateblue: 6970061,
|
|
323
|
+
slategray: 7372944,
|
|
324
|
+
slategrey: 7372944,
|
|
325
|
+
snow: 16775930,
|
|
326
|
+
springgreen: 65407,
|
|
327
|
+
steelblue: 4620980,
|
|
328
|
+
tan: 13808780,
|
|
329
|
+
teal: 32896,
|
|
330
|
+
thistle: 14204888,
|
|
331
|
+
tomato: 16737095,
|
|
332
|
+
turquoise: 4251856,
|
|
333
|
+
violet: 15631086,
|
|
334
|
+
wheat: 16113331,
|
|
335
|
+
white: 16777215,
|
|
336
|
+
whitesmoke: 16119285,
|
|
337
|
+
yellow: 16776960,
|
|
338
|
+
yellowgreen: 10145074
|
|
339
|
+
}, z = {
|
|
340
|
+
h: 0,
|
|
341
|
+
s: 0,
|
|
342
|
+
l: 0
|
|
343
|
+
}, B = {
|
|
344
|
+
h: 0,
|
|
345
|
+
s: 0,
|
|
346
|
+
l: 0
|
|
347
|
+
};
|
|
348
|
+
function V(e, t, n) {
|
|
349
|
+
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * 6 * (2 / 3 - n) : e;
|
|
350
|
+
}
|
|
351
|
+
var H = class {
|
|
352
|
+
constructor(e, t, n) {
|
|
353
|
+
return this.isColor = !0, this.r = 1, this.g = 1, this.b = 1, this.set(e, t, n);
|
|
354
|
+
}
|
|
355
|
+
set(e, t, n) {
|
|
356
|
+
if (t === void 0 && n === void 0) {
|
|
357
|
+
let t = e;
|
|
358
|
+
t && t.isColor ? this.copy(t) : typeof t == "number" ? this.setHex(t) : typeof t == "string" && this.setStyle(t);
|
|
359
|
+
} else this.setRGB(e, t, n);
|
|
360
|
+
return this;
|
|
361
|
+
}
|
|
362
|
+
setScalar(e) {
|
|
363
|
+
return this.r = e, this.g = e, this.b = e, this;
|
|
364
|
+
}
|
|
365
|
+
setHex(e, n = t) {
|
|
366
|
+
return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255, F.colorSpaceToWorking(this, n), this;
|
|
367
|
+
}
|
|
368
|
+
setRGB(e, t, n, r = F.workingColorSpace) {
|
|
369
|
+
return this.r = e, this.g = t, this.b = n, F.colorSpaceToWorking(this, r), this;
|
|
370
|
+
}
|
|
371
|
+
setHSL(e, t, n, r = F.workingColorSpace) {
|
|
372
|
+
if (e = d(e, 1), t = _(t, 0, 1), n = _(n, 0, 1), t === 0) this.r = this.g = this.b = n;
|
|
373
|
+
else {
|
|
374
|
+
let r = n <= .5 ? n * (1 + t) : n + t - n * t, i = 2 * n - r;
|
|
375
|
+
this.r = V(i, r, e + 1 / 3), this.g = V(i, r, e), this.b = V(i, r, e - 1 / 3);
|
|
376
|
+
}
|
|
377
|
+
return F.colorSpaceToWorking(this, r), this;
|
|
378
|
+
}
|
|
379
|
+
setStyle(e, n = t) {
|
|
380
|
+
function r(t) {
|
|
381
|
+
t !== void 0 && parseFloat(t) < 1 && C("Color: Alpha component of " + e + " will be ignored.");
|
|
382
|
+
}
|
|
383
|
+
let i;
|
|
384
|
+
if (i = /^(\w+)\(([^\)]*)\)/.exec(e)) {
|
|
385
|
+
let t, a = i[1], o = i[2];
|
|
386
|
+
switch (a) {
|
|
387
|
+
case "rgb":
|
|
388
|
+
case "rgba":
|
|
389
|
+
if (t = /^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o)) return r(t[4]), this.setRGB(Math.min(255, parseInt(t[1], 10)) / 255, Math.min(255, parseInt(t[2], 10)) / 255, Math.min(255, parseInt(t[3], 10)) / 255, n);
|
|
390
|
+
if (t = /^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o)) return r(t[4]), this.setRGB(Math.min(100, parseInt(t[1], 10)) / 100, Math.min(100, parseInt(t[2], 10)) / 100, Math.min(100, parseInt(t[3], 10)) / 100, n);
|
|
391
|
+
break;
|
|
392
|
+
case "hsl":
|
|
393
|
+
case "hsla":
|
|
394
|
+
if (t = /^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o)) return r(t[4]), this.setHSL(parseFloat(t[1]) / 360, parseFloat(t[2]) / 100, parseFloat(t[3]) / 100, n);
|
|
395
|
+
break;
|
|
396
|
+
default: C("Color: Unknown color model " + e);
|
|
397
|
+
}
|
|
398
|
+
} else if (i = /^\#([A-Fa-f\d]+)$/.exec(e)) {
|
|
399
|
+
let t = i[1], r = t.length;
|
|
400
|
+
if (r === 3) return this.setRGB(parseInt(t.charAt(0), 16) / 15, parseInt(t.charAt(1), 16) / 15, parseInt(t.charAt(2), 16) / 15, n);
|
|
401
|
+
if (r === 6) return this.setHex(parseInt(t, 16), n);
|
|
402
|
+
C("Color: Invalid hex color " + e);
|
|
403
|
+
} else if (e && e.length > 0) return this.setColorName(e, n);
|
|
404
|
+
return this;
|
|
405
|
+
}
|
|
406
|
+
setColorName(e, n = t) {
|
|
407
|
+
let r = R[e.toLowerCase()];
|
|
408
|
+
return r === void 0 ? C("Color: Unknown color " + e) : this.setHex(r, n), this;
|
|
409
|
+
}
|
|
410
|
+
clone() {
|
|
411
|
+
return new this.constructor(this.r, this.g, this.b);
|
|
412
|
+
}
|
|
413
|
+
copy(e) {
|
|
414
|
+
return this.r = e.r, this.g = e.g, this.b = e.b, this;
|
|
415
|
+
}
|
|
416
|
+
copySRGBToLinear(e) {
|
|
417
|
+
return this.r = I(e.r), this.g = I(e.g), this.b = I(e.b), this;
|
|
418
|
+
}
|
|
419
|
+
copyLinearToSRGB(e) {
|
|
420
|
+
return this.r = L(e.r), this.g = L(e.g), this.b = L(e.b), this;
|
|
421
|
+
}
|
|
422
|
+
convertSRGBToLinear() {
|
|
423
|
+
return this.copySRGBToLinear(this), this;
|
|
424
|
+
}
|
|
425
|
+
convertLinearToSRGB() {
|
|
426
|
+
return this.copyLinearToSRGB(this), this;
|
|
427
|
+
}
|
|
428
|
+
getHex(e = t) {
|
|
429
|
+
return F.workingToColorSpace(U.copy(this), e), Math.round(_(U.r * 255, 0, 255)) * 65536 + Math.round(_(U.g * 255, 0, 255)) * 256 + Math.round(_(U.b * 255, 0, 255));
|
|
430
|
+
}
|
|
431
|
+
getHexString(e = t) {
|
|
432
|
+
return ("000000" + this.getHex(e).toString(16)).slice(-6);
|
|
433
|
+
}
|
|
434
|
+
getHSL(e, t = F.workingColorSpace) {
|
|
435
|
+
F.workingToColorSpace(U.copy(this), t);
|
|
436
|
+
let n = U.r, r = U.g, i = U.b, a = Math.max(n, r, i), o = Math.min(n, r, i), s, c, l = (o + a) / 2;
|
|
437
|
+
if (o === a) s = 0, c = 0;
|
|
438
|
+
else {
|
|
439
|
+
let e = a - o;
|
|
440
|
+
switch (c = l <= .5 ? e / (a + o) : e / (2 - a - o), a) {
|
|
441
|
+
case n:
|
|
442
|
+
s = (r - i) / e + (r < i ? 6 : 0);
|
|
443
|
+
break;
|
|
444
|
+
case r:
|
|
445
|
+
s = (i - n) / e + 2;
|
|
446
|
+
break;
|
|
447
|
+
case i:
|
|
448
|
+
s = (n - r) / e + 4;
|
|
449
|
+
break;
|
|
450
|
+
}
|
|
451
|
+
s /= 6;
|
|
452
|
+
}
|
|
453
|
+
return e.h = s, e.s = c, e.l = l, e;
|
|
454
|
+
}
|
|
455
|
+
getRGB(e, t = F.workingColorSpace) {
|
|
456
|
+
return F.workingToColorSpace(U.copy(this), t), e.r = U.r, e.g = U.g, e.b = U.b, e;
|
|
457
|
+
}
|
|
458
|
+
getStyle(e = t) {
|
|
459
|
+
F.workingToColorSpace(U.copy(this), e);
|
|
460
|
+
let n = U.r, r = U.g, i = U.b;
|
|
461
|
+
return e === "srgb" ? `rgb(${Math.round(n * 255)},${Math.round(r * 255)},${Math.round(i * 255)})` : `color(${e} ${n.toFixed(3)} ${r.toFixed(3)} ${i.toFixed(3)})`;
|
|
462
|
+
}
|
|
463
|
+
offsetHSL(e, t, n) {
|
|
464
|
+
return this.getHSL(z), this.setHSL(z.h + e, z.s + t, z.l + n);
|
|
465
|
+
}
|
|
466
|
+
add(e) {
|
|
467
|
+
return this.r += e.r, this.g += e.g, this.b += e.b, this;
|
|
468
|
+
}
|
|
469
|
+
addColors(e, t) {
|
|
470
|
+
return this.r = e.r + t.r, this.g = e.g + t.g, this.b = e.b + t.b, this;
|
|
471
|
+
}
|
|
472
|
+
addScalar(e) {
|
|
473
|
+
return this.r += e, this.g += e, this.b += e, this;
|
|
474
|
+
}
|
|
475
|
+
sub(e) {
|
|
476
|
+
return this.r = Math.max(0, this.r - e.r), this.g = Math.max(0, this.g - e.g), this.b = Math.max(0, this.b - e.b), this;
|
|
477
|
+
}
|
|
478
|
+
multiply(e) {
|
|
479
|
+
return this.r *= e.r, this.g *= e.g, this.b *= e.b, this;
|
|
480
|
+
}
|
|
481
|
+
multiplyScalar(e) {
|
|
482
|
+
return this.r *= e, this.g *= e, this.b *= e, this;
|
|
483
|
+
}
|
|
484
|
+
lerp(e, t) {
|
|
485
|
+
return this.r += (e.r - this.r) * t, this.g += (e.g - this.g) * t, this.b += (e.b - this.b) * t, this;
|
|
486
|
+
}
|
|
487
|
+
lerpColors(e, t, n) {
|
|
488
|
+
return this.r = e.r + (t.r - e.r) * n, this.g = e.g + (t.g - e.g) * n, this.b = e.b + (t.b - e.b) * n, this;
|
|
489
|
+
}
|
|
490
|
+
lerpHSL(e, t) {
|
|
491
|
+
this.getHSL(z), e.getHSL(B);
|
|
492
|
+
let n = o(z.h, B.h, t), r = o(z.s, B.s, t), i = o(z.l, B.l, t);
|
|
493
|
+
return this.setHSL(n, r, i), this;
|
|
494
|
+
}
|
|
495
|
+
setFromVector3(e) {
|
|
496
|
+
return this.r = e.x, this.g = e.y, this.b = e.z, this;
|
|
497
|
+
}
|
|
498
|
+
applyMatrix3(e) {
|
|
499
|
+
let t = this.r, n = this.g, r = this.b, i = e.elements;
|
|
500
|
+
return this.r = i[0] * t + i[3] * n + i[6] * r, this.g = i[1] * t + i[4] * n + i[7] * r, this.b = i[2] * t + i[5] * n + i[8] * r, this;
|
|
501
|
+
}
|
|
502
|
+
equals(e) {
|
|
503
|
+
return e.r === this.r && e.g === this.g && e.b === this.b;
|
|
504
|
+
}
|
|
505
|
+
fromArray(e, t = 0) {
|
|
506
|
+
return this.r = e[t], this.g = e[t + 1], this.b = e[t + 2], this;
|
|
507
|
+
}
|
|
508
|
+
toArray(e = [], t = 0) {
|
|
509
|
+
return e[t] = this.r, e[t + 1] = this.g, e[t + 2] = this.b, e;
|
|
510
|
+
}
|
|
511
|
+
fromBufferAttribute(e, t) {
|
|
512
|
+
return this.r = e.getX(t), this.g = e.getY(t), this.b = e.getZ(t), this;
|
|
513
|
+
}
|
|
514
|
+
toJSON() {
|
|
515
|
+
return this.getHex();
|
|
516
|
+
}
|
|
517
|
+
*[Symbol.iterator]() {
|
|
518
|
+
yield this.r, yield this.g, yield this.b;
|
|
519
|
+
}
|
|
520
|
+
}, U = /* @__PURE__ */ new H();
|
|
521
|
+
H.NAMES = R;
|
|
522
|
+
//#endregion
|
|
523
|
+
//#region ../../node_modules/three/src/materials/Material.js
|
|
524
|
+
var te = 0, ne = class extends v {
|
|
525
|
+
constructor() {
|
|
526
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: te++ }), this.uuid = u(), this.name = "", this.type = "Material", this.blending = 1, this.side = 0, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = 204, this.blendDst = 205, this.blendEquation = 100, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new H(0, 0, 0), this.blendAlpha = 0, this.depthFunc = 3, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = 519, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = S, this.stencilZFail = S, this.stencilZPass = S, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
|
|
527
|
+
}
|
|
528
|
+
get alphaTest() {
|
|
529
|
+
return this._alphaTest;
|
|
530
|
+
}
|
|
531
|
+
set alphaTest(e) {
|
|
532
|
+
this._alphaTest > 0 != e > 0 && this.version++, this._alphaTest = e;
|
|
533
|
+
}
|
|
534
|
+
onBeforeRender() {}
|
|
535
|
+
onBeforeCompile() {}
|
|
536
|
+
customProgramCacheKey() {
|
|
537
|
+
return this.onBeforeCompile.toString();
|
|
538
|
+
}
|
|
539
|
+
setValues(e) {
|
|
540
|
+
if (e !== void 0) for (let t in e) {
|
|
541
|
+
let n = e[t];
|
|
542
|
+
if (n === void 0) {
|
|
543
|
+
C(`Material: parameter '${t}' has value of undefined.`);
|
|
544
|
+
continue;
|
|
545
|
+
}
|
|
546
|
+
let r = this[t];
|
|
547
|
+
if (r === void 0) {
|
|
548
|
+
C(`Material: '${t}' is not a property of THREE.${this.type}.`);
|
|
549
|
+
continue;
|
|
550
|
+
}
|
|
551
|
+
r && r.isColor ? r.set(n) : r && r.isVector3 && n && n.isVector3 ? r.copy(n) : this[t] = n;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
toJSON(e) {
|
|
555
|
+
let t = e === void 0 || typeof e == "string";
|
|
556
|
+
t && (e = {
|
|
557
|
+
textures: {},
|
|
558
|
+
images: {}
|
|
559
|
+
});
|
|
560
|
+
let n = { metadata: {
|
|
561
|
+
version: 4.7,
|
|
562
|
+
type: "Material",
|
|
563
|
+
generator: "Material.toJSON"
|
|
564
|
+
} };
|
|
565
|
+
n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.sheenColorMap && this.sheenColorMap.isTexture && (n.sheenColorMap = this.sheenColorMap.toJSON(e).uuid), this.sheenRoughnessMap && this.sheenRoughnessMap.isTexture && (n.sheenRoughnessMap = this.sheenRoughnessMap.toJSON(e).uuid), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(e).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(e).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(e).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(e).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(e).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== Infinity && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== 1 && (n.blending = this.blending), this.side !== 0 && (n.side = this.side), this.vertexColors === !0 && (n.vertexColors = !0), this.opacity < 1 && (n.opacity = this.opacity), this.transparent === !0 && (n.transparent = !0), this.blendSrc !== 204 && (n.blendSrc = this.blendSrc), this.blendDst !== 205 && (n.blendDst = this.blendDst), this.blendEquation !== 100 && (n.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (n.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (n.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (n.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (n.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (n.blendAlpha = this.blendAlpha), this.depthFunc !== 3 && (n.depthFunc = this.depthFunc), this.depthTest === !1 && (n.depthTest = this.depthTest), this.depthWrite === !1 && (n.depthWrite = this.depthWrite), this.colorWrite === !1 && (n.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (n.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== 519 && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== 7680 && (n.stencilFail = this.stencilFail), this.stencilZFail !== 7680 && (n.stencilZFail = this.stencilZFail), this.stencilZPass !== 7680 && (n.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (n.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (n.rotation = this.rotation), this.polygonOffset === !0 && (n.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (n.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (n.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (n.linewidth = this.linewidth), this.dashSize !== void 0 && (n.dashSize = this.dashSize), this.gapSize !== void 0 && (n.gapSize = this.gapSize), this.scale !== void 0 && (n.scale = this.scale), this.dithering === !0 && (n.dithering = !0), this.alphaTest > 0 && (n.alphaTest = this.alphaTest), this.alphaHash === !0 && (n.alphaHash = !0), this.alphaToCoverage === !0 && (n.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (n.premultipliedAlpha = !0), this.forceSinglePass === !0 && (n.forceSinglePass = !0), this.allowOverride === !1 && (n.allowOverride = !1), this.wireframe === !0 && (n.wireframe = !0), this.wireframeLinewidth > 1 && (n.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (n.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (n.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (n.flatShading = !0), this.visible === !1 && (n.visible = !1), this.toneMapped === !1 && (n.toneMapped = !1), this.fog === !1 && (n.fog = !1), Object.keys(this.userData).length > 0 && (n.userData = this.userData);
|
|
566
|
+
function r(e) {
|
|
567
|
+
let t = [];
|
|
568
|
+
for (let n in e) {
|
|
569
|
+
let r = e[n];
|
|
570
|
+
delete r.metadata, t.push(r);
|
|
571
|
+
}
|
|
572
|
+
return t;
|
|
573
|
+
}
|
|
574
|
+
if (t) {
|
|
575
|
+
let t = r(e.textures), i = r(e.images);
|
|
576
|
+
t.length > 0 && (n.textures = t), i.length > 0 && (n.images = i);
|
|
577
|
+
}
|
|
578
|
+
return n;
|
|
579
|
+
}
|
|
580
|
+
clone() {
|
|
581
|
+
return new this.constructor().copy(this);
|
|
582
|
+
}
|
|
583
|
+
copy(e) {
|
|
584
|
+
this.name = e.name, this.blending = e.blending, this.side = e.side, this.vertexColors = e.vertexColors, this.opacity = e.opacity, this.transparent = e.transparent, this.blendSrc = e.blendSrc, this.blendDst = e.blendDst, this.blendEquation = e.blendEquation, this.blendSrcAlpha = e.blendSrcAlpha, this.blendDstAlpha = e.blendDstAlpha, this.blendEquationAlpha = e.blendEquationAlpha, this.blendColor.copy(e.blendColor), this.blendAlpha = e.blendAlpha, this.depthFunc = e.depthFunc, this.depthTest = e.depthTest, this.depthWrite = e.depthWrite, this.stencilWriteMask = e.stencilWriteMask, this.stencilFunc = e.stencilFunc, this.stencilRef = e.stencilRef, this.stencilFuncMask = e.stencilFuncMask, this.stencilFail = e.stencilFail, this.stencilZFail = e.stencilZFail, this.stencilZPass = e.stencilZPass, this.stencilWrite = e.stencilWrite;
|
|
585
|
+
let t = e.clippingPlanes, n = null;
|
|
586
|
+
if (t !== null) {
|
|
587
|
+
let e = t.length;
|
|
588
|
+
n = Array(e);
|
|
589
|
+
for (let r = 0; r !== e; ++r) n[r] = t[r].clone();
|
|
590
|
+
}
|
|
591
|
+
return this.clippingPlanes = n, this.clipIntersection = e.clipIntersection, this.clipShadows = e.clipShadows, this.shadowSide = e.shadowSide, this.colorWrite = e.colorWrite, this.precision = e.precision, this.polygonOffset = e.polygonOffset, this.polygonOffsetFactor = e.polygonOffsetFactor, this.polygonOffsetUnits = e.polygonOffsetUnits, this.dithering = e.dithering, this.alphaTest = e.alphaTest, this.alphaHash = e.alphaHash, this.alphaToCoverage = e.alphaToCoverage, this.premultipliedAlpha = e.premultipliedAlpha, this.forceSinglePass = e.forceSinglePass, this.allowOverride = e.allowOverride, this.visible = e.visible, this.toneMapped = e.toneMapped, this.userData = JSON.parse(JSON.stringify(e.userData)), this;
|
|
592
|
+
}
|
|
593
|
+
dispose() {
|
|
594
|
+
this.dispatchEvent({ type: "dispose" });
|
|
595
|
+
}
|
|
596
|
+
set needsUpdate(e) {
|
|
597
|
+
e === !0 && this.version++;
|
|
598
|
+
}
|
|
599
|
+
}, W = /* @__PURE__ */ new m(), G = /* @__PURE__ */ new y(), re = 0, K = class {
|
|
600
|
+
constructor(t, n, r = !1) {
|
|
601
|
+
if (Array.isArray(t)) throw TypeError("THREE.BufferAttribute: array should be a Typed Array.");
|
|
602
|
+
this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: re++ }), this.name = "", this.array = t, this.itemSize = n, this.count = t === void 0 ? 0 : t.length / n, this.normalized = r, this.usage = p, this.updateRanges = [], this.gpuType = e, this.version = 0;
|
|
603
|
+
}
|
|
604
|
+
onUploadCallback() {}
|
|
605
|
+
set needsUpdate(e) {
|
|
606
|
+
e === !0 && this.version++;
|
|
607
|
+
}
|
|
608
|
+
setUsage(e) {
|
|
609
|
+
return this.usage = e, this;
|
|
610
|
+
}
|
|
611
|
+
addUpdateRange(e, t) {
|
|
612
|
+
this.updateRanges.push({
|
|
613
|
+
start: e,
|
|
614
|
+
count: t
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
clearUpdateRanges() {
|
|
618
|
+
this.updateRanges.length = 0;
|
|
619
|
+
}
|
|
620
|
+
copy(e) {
|
|
621
|
+
return this.name = e.name, this.array = new e.array.constructor(e.array), this.itemSize = e.itemSize, this.count = e.count, this.normalized = e.normalized, this.usage = e.usage, this.gpuType = e.gpuType, this;
|
|
622
|
+
}
|
|
623
|
+
copyAt(e, t, n) {
|
|
624
|
+
e *= this.itemSize, n *= t.itemSize;
|
|
625
|
+
for (let r = 0, i = this.itemSize; r < i; r++) this.array[e + r] = t.array[n + r];
|
|
626
|
+
return this;
|
|
627
|
+
}
|
|
628
|
+
copyArray(e) {
|
|
629
|
+
return this.array.set(e), this;
|
|
630
|
+
}
|
|
631
|
+
applyMatrix3(e) {
|
|
632
|
+
if (this.itemSize === 2) for (let t = 0, n = this.count; t < n; t++) G.fromBufferAttribute(this, t), G.applyMatrix3(e), this.setXY(t, G.x, G.y);
|
|
633
|
+
else if (this.itemSize === 3) for (let t = 0, n = this.count; t < n; t++) W.fromBufferAttribute(this, t), W.applyMatrix3(e), this.setXYZ(t, W.x, W.y, W.z);
|
|
634
|
+
return this;
|
|
635
|
+
}
|
|
636
|
+
applyMatrix4(e) {
|
|
637
|
+
for (let t = 0, n = this.count; t < n; t++) W.fromBufferAttribute(this, t), W.applyMatrix4(e), this.setXYZ(t, W.x, W.y, W.z);
|
|
638
|
+
return this;
|
|
639
|
+
}
|
|
640
|
+
applyNormalMatrix(e) {
|
|
641
|
+
for (let t = 0, n = this.count; t < n; t++) W.fromBufferAttribute(this, t), W.applyNormalMatrix(e), this.setXYZ(t, W.x, W.y, W.z);
|
|
642
|
+
return this;
|
|
643
|
+
}
|
|
644
|
+
transformDirection(e) {
|
|
645
|
+
for (let t = 0, n = this.count; t < n; t++) W.fromBufferAttribute(this, t), W.transformDirection(e), this.setXYZ(t, W.x, W.y, W.z);
|
|
646
|
+
return this;
|
|
647
|
+
}
|
|
648
|
+
set(e, t = 0) {
|
|
649
|
+
return this.array.set(e, t), this;
|
|
650
|
+
}
|
|
651
|
+
getComponent(e, t) {
|
|
652
|
+
let n = this.array[e * this.itemSize + t];
|
|
653
|
+
return this.normalized && (n = h(n, this.array)), n;
|
|
654
|
+
}
|
|
655
|
+
setComponent(e, t, n) {
|
|
656
|
+
return this.normalized && (n = x(n, this.array)), this.array[e * this.itemSize + t] = n, this;
|
|
657
|
+
}
|
|
658
|
+
getX(e) {
|
|
659
|
+
let t = this.array[e * this.itemSize];
|
|
660
|
+
return this.normalized && (t = h(t, this.array)), t;
|
|
661
|
+
}
|
|
662
|
+
setX(e, t) {
|
|
663
|
+
return this.normalized && (t = x(t, this.array)), this.array[e * this.itemSize] = t, this;
|
|
664
|
+
}
|
|
665
|
+
getY(e) {
|
|
666
|
+
let t = this.array[e * this.itemSize + 1];
|
|
667
|
+
return this.normalized && (t = h(t, this.array)), t;
|
|
668
|
+
}
|
|
669
|
+
setY(e, t) {
|
|
670
|
+
return this.normalized && (t = x(t, this.array)), this.array[e * this.itemSize + 1] = t, this;
|
|
671
|
+
}
|
|
672
|
+
getZ(e) {
|
|
673
|
+
let t = this.array[e * this.itemSize + 2];
|
|
674
|
+
return this.normalized && (t = h(t, this.array)), t;
|
|
675
|
+
}
|
|
676
|
+
setZ(e, t) {
|
|
677
|
+
return this.normalized && (t = x(t, this.array)), this.array[e * this.itemSize + 2] = t, this;
|
|
678
|
+
}
|
|
679
|
+
getW(e) {
|
|
680
|
+
let t = this.array[e * this.itemSize + 3];
|
|
681
|
+
return this.normalized && (t = h(t, this.array)), t;
|
|
682
|
+
}
|
|
683
|
+
setW(e, t) {
|
|
684
|
+
return this.normalized && (t = x(t, this.array)), this.array[e * this.itemSize + 3] = t, this;
|
|
685
|
+
}
|
|
686
|
+
setXY(e, t, n) {
|
|
687
|
+
return e *= this.itemSize, this.normalized && (t = x(t, this.array), n = x(n, this.array)), this.array[e + 0] = t, this.array[e + 1] = n, this;
|
|
688
|
+
}
|
|
689
|
+
setXYZ(e, t, n, r) {
|
|
690
|
+
return e *= this.itemSize, this.normalized && (t = x(t, this.array), n = x(n, this.array), r = x(r, this.array)), this.array[e + 0] = t, this.array[e + 1] = n, this.array[e + 2] = r, this;
|
|
691
|
+
}
|
|
692
|
+
setXYZW(e, t, n, r, i) {
|
|
693
|
+
return e *= this.itemSize, this.normalized && (t = x(t, this.array), n = x(n, this.array), r = x(r, this.array), i = x(i, this.array)), this.array[e + 0] = t, this.array[e + 1] = n, this.array[e + 2] = r, this.array[e + 3] = i, this;
|
|
694
|
+
}
|
|
695
|
+
onUpload(e) {
|
|
696
|
+
return this.onUploadCallback = e, this;
|
|
697
|
+
}
|
|
698
|
+
clone() {
|
|
699
|
+
return new this.constructor(this.array, this.itemSize).copy(this);
|
|
700
|
+
}
|
|
701
|
+
toJSON() {
|
|
702
|
+
let e = {
|
|
703
|
+
itemSize: this.itemSize,
|
|
704
|
+
type: this.array.constructor.name,
|
|
705
|
+
array: Array.from(this.array),
|
|
706
|
+
normalized: this.normalized
|
|
707
|
+
};
|
|
708
|
+
return this.name !== "" && (e.name = this.name), this.usage !== 35044 && (e.usage = this.usage), e;
|
|
709
|
+
}
|
|
710
|
+
}, ie = class extends K {
|
|
711
|
+
constructor(e, t, n) {
|
|
712
|
+
super(new Uint16Array(e), t, n);
|
|
713
|
+
}
|
|
714
|
+
}, ae = class extends K {
|
|
715
|
+
constructor(e, t, n) {
|
|
716
|
+
super(new Uint32Array(e), t, n);
|
|
717
|
+
}
|
|
718
|
+
}, q = class extends K {
|
|
719
|
+
constructor(e, t, n) {
|
|
720
|
+
super(new Float32Array(e), t, n);
|
|
721
|
+
}
|
|
722
|
+
}, oe = 0, J = /* @__PURE__ */ new l(), Y = /* @__PURE__ */ new b(), X = /* @__PURE__ */ new m(), Z = /* @__PURE__ */ new g(), Q = /* @__PURE__ */ new g(), $ = /* @__PURE__ */ new m(), se = class e extends v {
|
|
723
|
+
constructor() {
|
|
724
|
+
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: oe++ }), this.uuid = u(), this.name = "", this.type = "BufferGeometry", this.index = null, this.indirect = null, this.indirectOffset = 0, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = {
|
|
725
|
+
start: 0,
|
|
726
|
+
count: Infinity
|
|
727
|
+
}, this.userData = {};
|
|
728
|
+
}
|
|
729
|
+
getIndex() {
|
|
730
|
+
return this.index;
|
|
731
|
+
}
|
|
732
|
+
setIndex(e) {
|
|
733
|
+
return Array.isArray(e) ? this.index = new (w(e) ? ae : ie)(e, 1) : this.index = e, this;
|
|
734
|
+
}
|
|
735
|
+
setIndirect(e, t = 0) {
|
|
736
|
+
return this.indirect = e, this.indirectOffset = t, this;
|
|
737
|
+
}
|
|
738
|
+
getIndirect() {
|
|
739
|
+
return this.indirect;
|
|
740
|
+
}
|
|
741
|
+
getAttribute(e) {
|
|
742
|
+
return this.attributes[e];
|
|
743
|
+
}
|
|
744
|
+
setAttribute(e, t) {
|
|
745
|
+
return this.attributes[e] = t, this;
|
|
746
|
+
}
|
|
747
|
+
deleteAttribute(e) {
|
|
748
|
+
return delete this.attributes[e], this;
|
|
749
|
+
}
|
|
750
|
+
hasAttribute(e) {
|
|
751
|
+
return this.attributes[e] !== void 0;
|
|
752
|
+
}
|
|
753
|
+
addGroup(e, t, n = 0) {
|
|
754
|
+
this.groups.push({
|
|
755
|
+
start: e,
|
|
756
|
+
count: t,
|
|
757
|
+
materialIndex: n
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
clearGroups() {
|
|
761
|
+
this.groups = [];
|
|
762
|
+
}
|
|
763
|
+
setDrawRange(e, t) {
|
|
764
|
+
this.drawRange.start = e, this.drawRange.count = t;
|
|
765
|
+
}
|
|
766
|
+
applyMatrix4(e) {
|
|
767
|
+
let t = this.attributes.position;
|
|
768
|
+
t !== void 0 && (t.applyMatrix4(e), t.needsUpdate = !0);
|
|
769
|
+
let n = this.attributes.normal;
|
|
770
|
+
if (n !== void 0) {
|
|
771
|
+
let t = new f().getNormalMatrix(e);
|
|
772
|
+
n.applyNormalMatrix(t), n.needsUpdate = !0;
|
|
773
|
+
}
|
|
774
|
+
let r = this.attributes.tangent;
|
|
775
|
+
return r !== void 0 && (r.transformDirection(e), r.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this;
|
|
776
|
+
}
|
|
777
|
+
applyQuaternion(e) {
|
|
778
|
+
return J.makeRotationFromQuaternion(e), this.applyMatrix4(J), this;
|
|
779
|
+
}
|
|
780
|
+
rotateX(e) {
|
|
781
|
+
return J.makeRotationX(e), this.applyMatrix4(J), this;
|
|
782
|
+
}
|
|
783
|
+
rotateY(e) {
|
|
784
|
+
return J.makeRotationY(e), this.applyMatrix4(J), this;
|
|
785
|
+
}
|
|
786
|
+
rotateZ(e) {
|
|
787
|
+
return J.makeRotationZ(e), this.applyMatrix4(J), this;
|
|
788
|
+
}
|
|
789
|
+
translate(e, t, n) {
|
|
790
|
+
return J.makeTranslation(e, t, n), this.applyMatrix4(J), this;
|
|
791
|
+
}
|
|
792
|
+
scale(e, t, n) {
|
|
793
|
+
return J.makeScale(e, t, n), this.applyMatrix4(J), this;
|
|
794
|
+
}
|
|
795
|
+
lookAt(e) {
|
|
796
|
+
return Y.lookAt(e), Y.updateMatrix(), this.applyMatrix4(Y.matrix), this;
|
|
797
|
+
}
|
|
798
|
+
center() {
|
|
799
|
+
return this.computeBoundingBox(), this.boundingBox.getCenter(X).negate(), this.translate(X.x, X.y, X.z), this;
|
|
800
|
+
}
|
|
801
|
+
setFromPoints(e) {
|
|
802
|
+
let t = this.getAttribute("position");
|
|
803
|
+
if (t === void 0) {
|
|
804
|
+
let t = [];
|
|
805
|
+
for (let n = 0, r = e.length; n < r; n++) {
|
|
806
|
+
let r = e[n];
|
|
807
|
+
t.push(r.x, r.y, r.z || 0);
|
|
808
|
+
}
|
|
809
|
+
this.setAttribute("position", new q(t, 3));
|
|
810
|
+
} else {
|
|
811
|
+
let n = Math.min(e.length, t.count);
|
|
812
|
+
for (let r = 0; r < n; r++) {
|
|
813
|
+
let n = e[r];
|
|
814
|
+
t.setXYZ(r, n.x, n.y, n.z || 0);
|
|
815
|
+
}
|
|
816
|
+
e.length > t.count && C("BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."), t.needsUpdate = !0;
|
|
817
|
+
}
|
|
818
|
+
return this;
|
|
819
|
+
}
|
|
820
|
+
computeBoundingBox() {
|
|
821
|
+
this.boundingBox === null && (this.boundingBox = new g());
|
|
822
|
+
let e = this.attributes.position, t = this.morphAttributes.position;
|
|
823
|
+
if (e && e.isGLBufferAttribute) {
|
|
824
|
+
c("BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.", this), this.boundingBox.set(new m(-Infinity, -Infinity, -Infinity), new m(Infinity, Infinity, Infinity));
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
827
|
+
if (e !== void 0) {
|
|
828
|
+
if (this.boundingBox.setFromBufferAttribute(e), t) for (let e = 0, n = t.length; e < n; e++) {
|
|
829
|
+
let n = t[e];
|
|
830
|
+
Z.setFromBufferAttribute(n), this.morphTargetsRelative ? ($.addVectors(this.boundingBox.min, Z.min), this.boundingBox.expandByPoint($), $.addVectors(this.boundingBox.max, Z.max), this.boundingBox.expandByPoint($)) : (this.boundingBox.expandByPoint(Z.min), this.boundingBox.expandByPoint(Z.max));
|
|
831
|
+
}
|
|
832
|
+
} else this.boundingBox.makeEmpty();
|
|
833
|
+
(isNaN(this.boundingBox.min.x) || isNaN(this.boundingBox.min.y) || isNaN(this.boundingBox.min.z)) && c("BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The \"position\" attribute is likely to have NaN values.", this);
|
|
834
|
+
}
|
|
835
|
+
computeBoundingSphere() {
|
|
836
|
+
this.boundingSphere === null && (this.boundingSphere = new s());
|
|
837
|
+
let e = this.attributes.position, t = this.morphAttributes.position;
|
|
838
|
+
if (e && e.isGLBufferAttribute) {
|
|
839
|
+
c("BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.", this), this.boundingSphere.set(new m(), Infinity);
|
|
840
|
+
return;
|
|
841
|
+
}
|
|
842
|
+
if (e) {
|
|
843
|
+
let n = this.boundingSphere.center;
|
|
844
|
+
if (Z.setFromBufferAttribute(e), t) for (let e = 0, n = t.length; e < n; e++) {
|
|
845
|
+
let n = t[e];
|
|
846
|
+
Q.setFromBufferAttribute(n), this.morphTargetsRelative ? ($.addVectors(Z.min, Q.min), Z.expandByPoint($), $.addVectors(Z.max, Q.max), Z.expandByPoint($)) : (Z.expandByPoint(Q.min), Z.expandByPoint(Q.max));
|
|
847
|
+
}
|
|
848
|
+
Z.getCenter(n);
|
|
849
|
+
let r = 0;
|
|
850
|
+
for (let t = 0, i = e.count; t < i; t++) $.fromBufferAttribute(e, t), r = Math.max(r, n.distanceToSquared($));
|
|
851
|
+
if (t) for (let i = 0, a = t.length; i < a; i++) {
|
|
852
|
+
let a = t[i], o = this.morphTargetsRelative;
|
|
853
|
+
for (let t = 0, i = a.count; t < i; t++) $.fromBufferAttribute(a, t), o && (X.fromBufferAttribute(e, t), $.add(X)), r = Math.max(r, n.distanceToSquared($));
|
|
854
|
+
}
|
|
855
|
+
this.boundingSphere.radius = Math.sqrt(r), isNaN(this.boundingSphere.radius) && c("BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The \"position\" attribute is likely to have NaN values.", this);
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
computeTangents() {
|
|
859
|
+
let e = this.index, t = this.attributes;
|
|
860
|
+
if (e === null || t.position === void 0 || t.normal === void 0 || t.uv === void 0) {
|
|
861
|
+
c("BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");
|
|
862
|
+
return;
|
|
863
|
+
}
|
|
864
|
+
let n = t.position, r = t.normal, i = t.uv;
|
|
865
|
+
this.hasAttribute("tangent") === !1 && this.setAttribute("tangent", new K(new Float32Array(4 * n.count), 4));
|
|
866
|
+
let a = this.getAttribute("tangent"), o = [], s = [];
|
|
867
|
+
for (let e = 0; e < n.count; e++) o[e] = new m(), s[e] = new m();
|
|
868
|
+
let l = new m(), u = new m(), d = new m(), f = new y(), p = new y(), h = new y(), g = new m(), _ = new m();
|
|
869
|
+
function v(e, t, r) {
|
|
870
|
+
l.fromBufferAttribute(n, e), u.fromBufferAttribute(n, t), d.fromBufferAttribute(n, r), f.fromBufferAttribute(i, e), p.fromBufferAttribute(i, t), h.fromBufferAttribute(i, r), u.sub(l), d.sub(l), p.sub(f), h.sub(f);
|
|
871
|
+
let a = 1 / (p.x * h.y - h.x * p.y);
|
|
872
|
+
isFinite(a) && (g.copy(u).multiplyScalar(h.y).addScaledVector(d, -p.y).multiplyScalar(a), _.copy(d).multiplyScalar(p.x).addScaledVector(u, -h.x).multiplyScalar(a), o[e].add(g), o[t].add(g), o[r].add(g), s[e].add(_), s[t].add(_), s[r].add(_));
|
|
873
|
+
}
|
|
874
|
+
let b = this.groups;
|
|
875
|
+
b.length === 0 && (b = [{
|
|
876
|
+
start: 0,
|
|
877
|
+
count: e.count
|
|
878
|
+
}]);
|
|
879
|
+
for (let t = 0, n = b.length; t < n; ++t) {
|
|
880
|
+
let n = b[t], r = n.start, i = n.count;
|
|
881
|
+
for (let t = r, n = r + i; t < n; t += 3) v(e.getX(t + 0), e.getX(t + 1), e.getX(t + 2));
|
|
882
|
+
}
|
|
883
|
+
let x = new m(), S = new m(), C = new m(), w = new m();
|
|
884
|
+
function T(e) {
|
|
885
|
+
C.fromBufferAttribute(r, e), w.copy(C);
|
|
886
|
+
let t = o[e];
|
|
887
|
+
x.copy(t), x.sub(C.multiplyScalar(C.dot(t))).normalize(), S.crossVectors(w, t);
|
|
888
|
+
let n = S.dot(s[e]) < 0 ? -1 : 1;
|
|
889
|
+
a.setXYZW(e, x.x, x.y, x.z, n);
|
|
890
|
+
}
|
|
891
|
+
for (let t = 0, n = b.length; t < n; ++t) {
|
|
892
|
+
let n = b[t], r = n.start, i = n.count;
|
|
893
|
+
for (let t = r, n = r + i; t < n; t += 3) T(e.getX(t + 0)), T(e.getX(t + 1)), T(e.getX(t + 2));
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
computeVertexNormals() {
|
|
897
|
+
let e = this.index, t = this.getAttribute("position");
|
|
898
|
+
if (t !== void 0) {
|
|
899
|
+
let n = this.getAttribute("normal");
|
|
900
|
+
if (n === void 0) n = new K(new Float32Array(t.count * 3), 3), this.setAttribute("normal", n);
|
|
901
|
+
else for (let e = 0, t = n.count; e < t; e++) n.setXYZ(e, 0, 0, 0);
|
|
902
|
+
let r = new m(), i = new m(), a = new m(), o = new m(), s = new m(), c = new m(), l = new m(), u = new m();
|
|
903
|
+
if (e) for (let d = 0, f = e.count; d < f; d += 3) {
|
|
904
|
+
let f = e.getX(d + 0), p = e.getX(d + 1), m = e.getX(d + 2);
|
|
905
|
+
r.fromBufferAttribute(t, f), i.fromBufferAttribute(t, p), a.fromBufferAttribute(t, m), l.subVectors(a, i), u.subVectors(r, i), l.cross(u), o.fromBufferAttribute(n, f), s.fromBufferAttribute(n, p), c.fromBufferAttribute(n, m), o.add(l), s.add(l), c.add(l), n.setXYZ(f, o.x, o.y, o.z), n.setXYZ(p, s.x, s.y, s.z), n.setXYZ(m, c.x, c.y, c.z);
|
|
906
|
+
}
|
|
907
|
+
else for (let e = 0, o = t.count; e < o; e += 3) r.fromBufferAttribute(t, e + 0), i.fromBufferAttribute(t, e + 1), a.fromBufferAttribute(t, e + 2), l.subVectors(a, i), u.subVectors(r, i), l.cross(u), n.setXYZ(e + 0, l.x, l.y, l.z), n.setXYZ(e + 1, l.x, l.y, l.z), n.setXYZ(e + 2, l.x, l.y, l.z);
|
|
908
|
+
this.normalizeNormals(), n.needsUpdate = !0;
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
normalizeNormals() {
|
|
912
|
+
let e = this.attributes.normal;
|
|
913
|
+
for (let t = 0, n = e.count; t < n; t++) $.fromBufferAttribute(e, t), $.normalize(), e.setXYZ(t, $.x, $.y, $.z);
|
|
914
|
+
}
|
|
915
|
+
toNonIndexed() {
|
|
916
|
+
function t(e, t) {
|
|
917
|
+
let n = e.array, r = e.itemSize, i = e.normalized, a = new n.constructor(t.length * r), o = 0, s = 0;
|
|
918
|
+
for (let i = 0, c = t.length; i < c; i++) {
|
|
919
|
+
o = e.isInterleavedBufferAttribute ? t[i] * e.data.stride + e.offset : t[i] * r;
|
|
920
|
+
for (let e = 0; e < r; e++) a[s++] = n[o++];
|
|
921
|
+
}
|
|
922
|
+
return new K(a, r, i);
|
|
923
|
+
}
|
|
924
|
+
if (this.index === null) return C("BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."), this;
|
|
925
|
+
let n = new e(), r = this.index.array, i = this.attributes;
|
|
926
|
+
for (let e in i) {
|
|
927
|
+
let a = i[e], o = t(a, r);
|
|
928
|
+
n.setAttribute(e, o);
|
|
929
|
+
}
|
|
930
|
+
let a = this.morphAttributes;
|
|
931
|
+
for (let e in a) {
|
|
932
|
+
let i = [], o = a[e];
|
|
933
|
+
for (let e = 0, n = o.length; e < n; e++) {
|
|
934
|
+
let n = o[e], a = t(n, r);
|
|
935
|
+
i.push(a);
|
|
936
|
+
}
|
|
937
|
+
n.morphAttributes[e] = i;
|
|
938
|
+
}
|
|
939
|
+
n.morphTargetsRelative = this.morphTargetsRelative;
|
|
940
|
+
let o = this.groups;
|
|
941
|
+
for (let e = 0, t = o.length; e < t; e++) {
|
|
942
|
+
let t = o[e];
|
|
943
|
+
n.addGroup(t.start, t.count, t.materialIndex);
|
|
944
|
+
}
|
|
945
|
+
return n;
|
|
946
|
+
}
|
|
947
|
+
toJSON() {
|
|
948
|
+
let e = { metadata: {
|
|
949
|
+
version: 4.7,
|
|
950
|
+
type: "BufferGeometry",
|
|
951
|
+
generator: "BufferGeometry.toJSON"
|
|
952
|
+
} };
|
|
953
|
+
if (e.uuid = this.uuid, e.type = this.type, this.name !== "" && (e.name = this.name), Object.keys(this.userData).length > 0 && (e.userData = this.userData), this.parameters !== void 0) {
|
|
954
|
+
let t = this.parameters;
|
|
955
|
+
for (let n in t) t[n] !== void 0 && (e[n] = t[n]);
|
|
956
|
+
return e;
|
|
957
|
+
}
|
|
958
|
+
e.data = { attributes: {} };
|
|
959
|
+
let t = this.index;
|
|
960
|
+
t !== null && (e.data.index = {
|
|
961
|
+
type: t.array.constructor.name,
|
|
962
|
+
array: Array.prototype.slice.call(t.array)
|
|
963
|
+
});
|
|
964
|
+
let n = this.attributes;
|
|
965
|
+
for (let t in n) {
|
|
966
|
+
let r = n[t];
|
|
967
|
+
e.data.attributes[t] = r.toJSON(e.data);
|
|
968
|
+
}
|
|
969
|
+
let r = {}, i = !1;
|
|
970
|
+
for (let t in this.morphAttributes) {
|
|
971
|
+
let n = this.morphAttributes[t], a = [];
|
|
972
|
+
for (let t = 0, r = n.length; t < r; t++) {
|
|
973
|
+
let r = n[t];
|
|
974
|
+
a.push(r.toJSON(e.data));
|
|
975
|
+
}
|
|
976
|
+
a.length > 0 && (r[t] = a, i = !0);
|
|
977
|
+
}
|
|
978
|
+
i && (e.data.morphAttributes = r, e.data.morphTargetsRelative = this.morphTargetsRelative);
|
|
979
|
+
let a = this.groups;
|
|
980
|
+
a.length > 0 && (e.data.groups = JSON.parse(JSON.stringify(a)));
|
|
981
|
+
let o = this.boundingSphere;
|
|
982
|
+
return o !== null && (e.data.boundingSphere = o.toJSON()), e;
|
|
983
|
+
}
|
|
984
|
+
clone() {
|
|
985
|
+
return new this.constructor().copy(this);
|
|
986
|
+
}
|
|
987
|
+
copy(e) {
|
|
988
|
+
this.index = null, this.attributes = {}, this.morphAttributes = {}, this.groups = [], this.boundingBox = null, this.boundingSphere = null;
|
|
989
|
+
let t = {};
|
|
990
|
+
this.name = e.name;
|
|
991
|
+
let n = e.index;
|
|
992
|
+
n !== null && this.setIndex(n.clone());
|
|
993
|
+
let r = e.attributes;
|
|
994
|
+
for (let e in r) {
|
|
995
|
+
let n = r[e];
|
|
996
|
+
this.setAttribute(e, n.clone(t));
|
|
997
|
+
}
|
|
998
|
+
let i = e.morphAttributes;
|
|
999
|
+
for (let e in i) {
|
|
1000
|
+
let n = [], r = i[e];
|
|
1001
|
+
for (let e = 0, i = r.length; e < i; e++) n.push(r[e].clone(t));
|
|
1002
|
+
this.morphAttributes[e] = n;
|
|
1003
|
+
}
|
|
1004
|
+
this.morphTargetsRelative = e.morphTargetsRelative;
|
|
1005
|
+
let a = e.groups;
|
|
1006
|
+
for (let e = 0, t = a.length; e < t; e++) {
|
|
1007
|
+
let t = a[e];
|
|
1008
|
+
this.addGroup(t.start, t.count, t.materialIndex);
|
|
1009
|
+
}
|
|
1010
|
+
let o = e.boundingBox;
|
|
1011
|
+
o !== null && (this.boundingBox = o.clone());
|
|
1012
|
+
let s = e.boundingSphere;
|
|
1013
|
+
return s !== null && (this.boundingSphere = s.clone()), this.drawRange.start = e.drawRange.start, this.drawRange.count = e.drawRange.count, this.userData = e.userData, this;
|
|
1014
|
+
}
|
|
1015
|
+
dispose() {
|
|
1016
|
+
this.dispatchEvent({ type: "dispose" });
|
|
1017
|
+
}
|
|
1018
|
+
};
|
|
1019
|
+
//#endregion
|
|
1020
|
+
export { M as a, H as i, q as n, ne as r, se as t };
|
|
1021
|
+
|
|
1022
|
+
//# sourceMappingURL=BufferGeometry-DLEagG41.mjs.map
|