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