@roomle/web-sdk 2.92.0-alpha.1 → 2.92.0-bo-mvp.2
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/.releaserc.json +5 -0
- package/lib/{TextGeometry-ab643210.js → TextGeometry-8993e971.js} +2 -2
- package/lib/{TextGeometry-ab643210.js.map → TextGeometry-8993e971.js.map} +1 -1
- package/lib/{TextGeometry-cd81779b.nomodule.js → TextGeometry-ca6aef04.nomodule.js} +2 -2
- package/lib/{TextGeometry-cd81779b.nomodule.js.map → TextGeometry-ca6aef04.nomodule.js.map} +1 -1
- package/lib/{banana-for-scale-202ac191.js → banana-for-scale-ea551437.js} +2 -2
- package/lib/{banana-for-scale-202ac191.js.map → banana-for-scale-ea551437.js.map} +1 -1
- package/lib/{banana-for-scale-302f3bf4.nomodule.js → banana-for-scale-ee52cc10.nomodule.js} +2 -2
- package/lib/{banana-for-scale-302f3bf4.nomodule.js.map → banana-for-scale-ee52cc10.nomodule.js.map} +1 -1
- package/lib/{budgeteer-measure-f6505461.js → budgeteer-measure-196e37c3.js} +2 -2
- package/lib/{budgeteer-measure-f6505461.js.map → budgeteer-measure-196e37c3.js.map} +1 -1
- package/lib/budgeteer-measure.nomodule.js +1 -1
- package/lib/camera-behaviour-68cb697a.js +2 -0
- package/lib/{camera-behaviour-8c28dd02.js.map → camera-behaviour-68cb697a.js.map} +1 -1
- package/lib/camera-behaviour-cbd39e83.nomodule.js +2 -0
- package/lib/{camera-behaviour-d9e7bb9a.nomodule.js.map → camera-behaviour-cbd39e83.nomodule.js.map} +1 -1
- package/lib/{component-dimensioning-89f64ac6.nomodule.js → component-dimensioning-cd4bbc5a.nomodule.js} +2 -2
- package/lib/component-dimensioning-cd4bbc5a.nomodule.js.map +1 -0
- package/lib/{component-dimensioning-c7f3fdf1.js → component-dimensioning-ee9ca296.js} +2 -2
- package/lib/component-dimensioning-ee9ca296.js.map +1 -0
- package/lib/{component-raycast-helper-93d309bb.nomodule.js → component-raycast-helper-0d125b72.nomodule.js} +2 -2
- package/lib/component-raycast-helper-0d125b72.nomodule.js.map +1 -0
- package/lib/{component-raycast-helper-51e476f8.js → component-raycast-helper-6c4596e5.js} +2 -2
- package/lib/component-raycast-helper-6c4596e5.js.map +1 -0
- package/lib/configurator-3fdb7e1e.js +2 -0
- package/lib/configurator-3fdb7e1e.js.map +1 -0
- package/lib/configurator-ef768a98.nomodule.js +2 -0
- package/lib/configurator-ef768a98.nomodule.js.map +1 -0
- package/lib/configurator-main-7080315e.js +2 -0
- package/lib/configurator-main-7080315e.js.map +1 -0
- package/lib/configurator-main.nomodule.js +1 -1
- package/lib/{continuous-drawing-helper-635ac12c.nomodule.js → continuous-drawing-helper-4f5f3885.nomodule.js} +2 -2
- package/lib/continuous-drawing-helper-4f5f3885.nomodule.js.map +1 -0
- package/lib/{continuous-drawing-helper-a05eb2fd.js → continuous-drawing-helper-7893ce81.js} +2 -2
- package/lib/continuous-drawing-helper-7893ce81.js.map +1 -0
- package/lib/definitions/common-core/src/utils/init-data.d.ts +1 -0
- package/lib/definitions/common-core/src/utils/shims.d.ts +15 -0
- package/lib/definitions/configurator-core/src/export/production-manager-export.d.ts +35 -0
- package/lib/definitions/configurator-core/src/roomle-configurator.d.ts +7 -0
- package/lib/definitions/configurator-core/src/utils/export-helper.d.ts +38 -0
- package/lib/definitions/configurator-core/src/webgl/configurator-scene-manager.d.ts +1 -0
- package/lib/definitions/packages/common-core/src/utils/init-data.d.ts +1 -0
- package/lib/definitions/packages/common-core/src/utils/shims.d.ts +15 -0
- package/lib/definitions/packages/configurator-core/src/export/production-manager-export.d.ts +35 -0
- package/lib/definitions/packages/configurator-core/src/roomle-configurator.d.ts +7 -0
- package/lib/definitions/packages/configurator-core/src/utils/export-helper.d.ts +38 -0
- package/lib/definitions/packages/configurator-core/src/webgl/configurator-scene-manager.d.ts +1 -0
- package/lib/definitions/packages/planner-core/src/external-object-api-callbacks.d.ts +0 -6
- package/lib/definitions/packages/planner-core/src/external-object-api.d.ts +1 -2
- package/lib/definitions/packages/planner-core/src/roomle-planner-ui-callback.d.ts +0 -4
- package/lib/definitions/packages/planner-core/src/roomle-planner.d.ts +2 -1
- package/lib/definitions/packages/planner-core/src/services/planner-kernel-access.d.ts +2 -4
- package/lib/definitions/packages/planner-core/src/view-model/plan-view-model.d.ts +2 -1
- package/lib/definitions/packages/typings/kernel.d.ts +1 -5
- package/lib/definitions/packages/typings/planner.d.ts +1 -2
- package/lib/definitions/planner-core/src/external-object-api-callbacks.d.ts +0 -6
- package/lib/definitions/planner-core/src/external-object-api.d.ts +1 -2
- package/lib/definitions/planner-core/src/roomle-planner-ui-callback.d.ts +0 -4
- package/lib/definitions/planner-core/src/roomle-planner.d.ts +2 -1
- package/lib/definitions/planner-core/src/services/planner-kernel-access.d.ts +2 -4
- package/lib/definitions/planner-core/src/view-model/plan-view-model.d.ts +2 -1
- package/lib/definitions/typings/kernel.d.ts +1 -5
- package/lib/definitions/typings/planner.d.ts +1 -2
- package/lib/{dimensioning-helper-6ee9c413.nomodule.js → dimensioning-helper-911f3a8f.nomodule.js} +2 -2
- package/lib/dimensioning-helper-911f3a8f.nomodule.js.map +1 -0
- package/lib/{dimensioning-helper-67fc299c.js → dimensioning-helper-c179e9d5.js} +2 -2
- package/lib/{dimensioning-helper-67fc299c.js.map → dimensioning-helper-c179e9d5.js.map} +1 -1
- package/lib/glb-viewer-1a31f57b.js +2 -0
- package/lib/glb-viewer-1a31f57b.js.map +1 -0
- package/lib/glb-viewer-629e03fb.nomodule.js +2 -0
- package/lib/glb-viewer-629e03fb.nomodule.js.map +1 -0
- package/lib/{glb-viewer-camera-behaviour-4248585f.js → glb-viewer-camera-behaviour-1046b5dc.js} +2 -2
- package/lib/glb-viewer-camera-behaviour-1046b5dc.js.map +1 -0
- package/lib/{glb-viewer-camera-behaviour-a2c7cdc4.nomodule.js → glb-viewer-camera-behaviour-cd14cc63.nomodule.js} +2 -2
- package/lib/glb-viewer-camera-behaviour-cd14cc63.nomodule.js.map +1 -0
- package/lib/glb-viewer-main-9c0839d7.js +2 -0
- package/lib/glb-viewer-main-9c0839d7.js.map +1 -0
- package/lib/glb-viewer-main.nomodule.js +1 -1
- package/lib/{default-light-setting-8e65fd97.js → jszip.min-de487fbf.js} +2 -2
- package/lib/jszip.min-de487fbf.js.map +1 -0
- package/lib/{default-light-setting-3faa43c8.nomodule.js → jszip.min-eb1d7949.nomodule.js} +2 -2
- package/lib/jszip.min-eb1d7949.nomodule.js.map +1 -0
- package/lib/legacy/{TextGeometry-f4299b59.legacy.js → TextGeometry-e55daee4.legacy.js} +2 -2
- package/lib/legacy/{TextGeometry-f4299b59.legacy.js.map → TextGeometry-e55daee4.legacy.js.map} +1 -1
- package/lib/legacy/{banana-for-scale-93485939.legacy.js → banana-for-scale-20f255f8.legacy.js} +2 -2
- package/lib/legacy/{banana-for-scale-93485939.legacy.js.map → banana-for-scale-20f255f8.legacy.js.map} +1 -1
- package/lib/legacy/budgeteer-measure.legacy.js +1 -1
- package/lib/legacy/camera-behaviour-f41d8649.legacy.js +2 -0
- package/lib/legacy/{camera-behaviour-4fe27ff7.legacy.js.map → camera-behaviour-f41d8649.legacy.js.map} +1 -1
- package/lib/legacy/{component-dimensioning-e5cfd1ab.legacy.js → component-dimensioning-fa23a4c8.legacy.js} +2 -2
- package/lib/legacy/component-dimensioning-fa23a4c8.legacy.js.map +1 -0
- package/lib/legacy/{component-raycast-helper-8f71260f.legacy.js → component-raycast-helper-9f7c3519.legacy.js} +2 -2
- package/lib/legacy/component-raycast-helper-9f7c3519.legacy.js.map +1 -0
- package/lib/legacy/configurator-a7474a38.legacy.js +2 -0
- package/lib/legacy/configurator-a7474a38.legacy.js.map +1 -0
- package/lib/legacy/configurator-main.legacy.js +1 -1
- package/lib/legacy/{continuous-drawing-helper-73604af9.legacy.js → continuous-drawing-helper-f4273988.legacy.js} +2 -2
- package/lib/legacy/continuous-drawing-helper-f4273988.legacy.js.map +1 -0
- package/lib/legacy/{dimensioning-helper-00914543.legacy.js → dimensioning-helper-7bb32212.legacy.js} +2 -2
- package/lib/legacy/dimensioning-helper-7bb32212.legacy.js.map +1 -0
- package/lib/legacy/{glb-viewer-camera-behaviour-37ecbc95.legacy.js → glb-viewer-camera-behaviour-4b57b4ea.legacy.js} +2 -2
- package/lib/legacy/glb-viewer-camera-behaviour-4b57b4ea.legacy.js.map +1 -0
- package/lib/legacy/glb-viewer-e38723d5.legacy.js +2 -0
- package/lib/legacy/glb-viewer-e38723d5.legacy.js.map +1 -0
- package/lib/legacy/glb-viewer-main.legacy.js +1 -1
- package/lib/legacy/{default-light-setting-b77f3f60.legacy.js → jszip.min-c061ea69.legacy.js} +2 -2
- package/lib/legacy/jszip.min-c061ea69.legacy.js.map +1 -0
- package/lib/legacy/{main-thread-to-worker-7c2b8bc9.legacy.js → main-thread-to-worker-88f0947e.legacy.js} +3 -3
- package/lib/legacy/{main-thread-to-worker-7c2b8bc9.legacy.js.map → main-thread-to-worker-88f0947e.legacy.js.map} +1 -1
- package/lib/legacy/{material-viewer-198c5354.legacy.js → material-viewer-4478996f.legacy.js} +2 -2
- package/lib/legacy/material-viewer-4478996f.legacy.js.map +1 -0
- package/lib/legacy/material-viewer-main.legacy.js +1 -1
- package/lib/legacy/planner-00573585.legacy.js +2 -0
- package/lib/legacy/planner-00573585.legacy.js.map +1 -0
- package/lib/legacy/planner-main.legacy.js +1 -1
- package/lib/legacy/{query-params-helper-aca6a1b1.legacy.js → query-params-helper-06b6ab82.legacy.js} +2 -2
- package/lib/legacy/query-params-helper-06b6ab82.legacy.js.map +1 -0
- package/lib/legacy/roomle-configurator-bfb2fe06.legacy.js +2 -0
- package/lib/legacy/roomle-configurator-bfb2fe06.legacy.js.map +1 -0
- package/lib/legacy/{roomle-dependency-injection-85983111.legacy.js → roomle-dependency-injection-d5e74ce9.legacy.js} +3 -3
- package/lib/legacy/roomle-dependency-injection-d5e74ce9.legacy.js.map +1 -0
- package/lib/legacy/roomle-sdk.legacy.js +1 -1
- package/lib/legacy/{script-loader-9a99d227.legacy.js → script-loader-8837d9fb.legacy.js} +2 -2
- package/lib/legacy/script-loader-8837d9fb.legacy.js.map +1 -0
- package/lib/{static/ConfiguratorKernel-73bf6b2e57d12b3f.wasm → legacy/static/ConfiguratorKernel-ed6b639434c12f00.wasm} +0 -0
- package/lib/legacy/static/RoomleCore-03b470aa4ab0d900.wasm +0 -0
- package/lib/{static/RoomleToolsCore-5bc2529db8e8ae66.wasm → legacy/static/RoomleToolsCore-e4d90f566f692631.wasm} +0 -0
- package/lib/legacy/static/default-external-object-api-configuration-c4294f96099e0d09.json +70 -0
- package/lib/legacy/static/{lato_regular_sub-9dd2262895ccc1a9.json → lato_regular-d4b30187185acc59.json} +0 -19
- package/lib/{static/lato_regular-16ba9d6f2866947d.json → legacy/static/lato_regular_sub-d4b30187185acc59.json} +0 -19
- package/lib/legacy/{stats-helper-55ffdeaa.legacy.js → stats-helper-ef10fb95.legacy.js} +2 -2
- package/lib/legacy/stats-helper-ef10fb95.legacy.js.map +1 -0
- package/lib/legacy/{tools-core-9784a457.legacy.js → tools-core-f43a007d.legacy.js} +2 -2
- package/lib/legacy/tools-core-f43a007d.legacy.js.map +1 -0
- package/lib/{main-thread-to-worker-ee3036b3.js → main-thread-to-worker-b9299c65.js} +2 -2
- package/lib/{main-thread-to-worker-ee3036b3.js.map → main-thread-to-worker-b9299c65.js.map} +1 -1
- package/lib/{main-thread-to-worker-2529fa31.nomodule.js → main-thread-to-worker-cdc86ed6.nomodule.js} +2 -2
- package/lib/{main-thread-to-worker-2529fa31.nomodule.js.map → main-thread-to-worker-cdc86ed6.nomodule.js.map} +1 -1
- package/lib/{material-viewer-64918a91.nomodule.js → material-viewer-62c6edfd.nomodule.js} +2 -2
- package/lib/material-viewer-62c6edfd.nomodule.js.map +1 -0
- package/lib/{material-viewer-30d9f69c.js → material-viewer-90857b05.js} +2 -2
- package/lib/material-viewer-90857b05.js.map +1 -0
- package/lib/material-viewer-main-7a946b4d.js +2 -0
- package/lib/material-viewer-main-7a946b4d.js.map +1 -0
- package/lib/material-viewer-main.nomodule.js +1 -1
- package/lib/planner-4f6b3385.nomodule.js +2 -0
- package/lib/planner-4f6b3385.nomodule.js.map +1 -0
- package/lib/planner-d4723a51.js +2 -0
- package/lib/planner-d4723a51.js.map +1 -0
- package/lib/planner-main-e8fc9839.js +2 -0
- package/lib/planner-main-e8fc9839.js.map +1 -0
- package/lib/planner-main.nomodule.js +1 -1
- package/lib/{query-params-helper-c9492f35.js → query-params-helper-45cc26ae.js} +2 -2
- package/lib/query-params-helper-45cc26ae.js.map +1 -0
- package/lib/{query-params-helper-51a53f8c.nomodule.js → query-params-helper-6eaaca17.nomodule.js} +2 -2
- package/lib/query-params-helper-6eaaca17.nomodule.js.map +1 -0
- package/lib/roomle-configurator-108492a3.nomodule.js +2 -0
- package/lib/roomle-configurator-108492a3.nomodule.js.map +1 -0
- package/lib/roomle-configurator-5f01c0e2.js +2 -0
- package/lib/roomle-configurator-5f01c0e2.js.map +1 -0
- package/lib/{roomle-dependency-injection-23dd0a1d.js → roomle-dependency-injection-33aa065b.js} +3 -3
- package/lib/roomle-dependency-injection-33aa065b.js.map +1 -0
- package/lib/{roomle-dependency-injection-c5ca418b.nomodule.js → roomle-dependency-injection-6ac8b14d.nomodule.js} +3 -3
- package/lib/roomle-dependency-injection-6ac8b14d.nomodule.js.map +1 -0
- package/lib/{roomle-sdk-75a568e8.js → roomle-sdk-f653ff8c.js} +2 -2
- package/lib/roomle-sdk-f653ff8c.js.map +1 -0
- package/lib/roomle-sdk.nomodule.js +1 -1
- package/lib/{script-loader-7d698745.js → script-loader-094d2fae.js} +2 -2
- package/lib/script-loader-094d2fae.js.map +1 -0
- package/lib/{script-loader-9bc923ad.nomodule.js → script-loader-8da7be7d.nomodule.js} +2 -2
- package/lib/script-loader-8da7be7d.nomodule.js.map +1 -0
- package/lib/{legacy/static/ConfiguratorKernel-73bf6b2e57d12b3f.wasm → static/ConfiguratorKernel-ed6b639434c12f00.wasm} +0 -0
- package/lib/static/RoomleCore-03b470aa4ab0d900.wasm +0 -0
- package/lib/{legacy/static/RoomleToolsCore-5bc2529db8e8ae66.wasm → static/RoomleToolsCore-e4d90f566f692631.wasm} +0 -0
- package/lib/static/default-external-object-api-configuration-c4294f96099e0d09.json +70 -0
- package/lib/static/{lato_regular_sub-9dd2262895ccc1a9.json → lato_regular-d4b30187185acc59.json} +0 -19
- package/lib/{legacy/static/lato_regular-16ba9d6f2866947d.json → static/lato_regular_sub-d4b30187185acc59.json} +0 -19
- package/lib/{stats-helper-a56923e6.js → stats-helper-b0f993a8.js} +2 -2
- package/lib/stats-helper-b0f993a8.js.map +1 -0
- package/lib/{stats-helper-23834305.nomodule.js → stats-helper-d5001902.nomodule.js} +2 -2
- package/lib/stats-helper-d5001902.nomodule.js.map +1 -0
- package/lib/{tools-core-e4fd29c8.js → tools-core-11e7657e.js} +2 -2
- package/lib/tools-core-11e7657e.js.map +1 -0
- package/lib/{tools-core-14625d0d.nomodule.js → tools-core-661d8e04.nomodule.js} +2 -2
- package/lib/tools-core-661d8e04.nomodule.js.map +1 -0
- package/package.json +2 -2
- package/lib/camera-behaviour-8c28dd02.js +0 -2
- package/lib/camera-behaviour-d9e7bb9a.nomodule.js +0 -2
- package/lib/component-dimensioning-89f64ac6.nomodule.js.map +0 -1
- package/lib/component-dimensioning-c7f3fdf1.js.map +0 -1
- package/lib/component-raycast-helper-51e476f8.js.map +0 -1
- package/lib/component-raycast-helper-93d309bb.nomodule.js.map +0 -1
- package/lib/configurator-138ff4d6.js +0 -2
- package/lib/configurator-138ff4d6.js.map +0 -1
- package/lib/configurator-763751b1.nomodule.js +0 -2
- package/lib/configurator-763751b1.nomodule.js.map +0 -1
- package/lib/configurator-main-a6cf0a03.js +0 -2
- package/lib/configurator-main-a6cf0a03.js.map +0 -1
- package/lib/continuous-drawing-helper-635ac12c.nomodule.js.map +0 -1
- package/lib/continuous-drawing-helper-a05eb2fd.js.map +0 -1
- package/lib/default-light-setting-3faa43c8.nomodule.js.map +0 -1
- package/lib/default-light-setting-8e65fd97.js.map +0 -1
- package/lib/dimensioning-helper-6ee9c413.nomodule.js.map +0 -1
- package/lib/glb-viewer-03c22c0f.nomodule.js +0 -2
- package/lib/glb-viewer-03c22c0f.nomodule.js.map +0 -1
- package/lib/glb-viewer-ab8e6a11.js +0 -2
- package/lib/glb-viewer-ab8e6a11.js.map +0 -1
- package/lib/glb-viewer-camera-behaviour-4248585f.js.map +0 -1
- package/lib/glb-viewer-camera-behaviour-a2c7cdc4.nomodule.js.map +0 -1
- package/lib/glb-viewer-main-613614ad.js +0 -2
- package/lib/glb-viewer-main-613614ad.js.map +0 -1
- package/lib/legacy/camera-behaviour-4fe27ff7.legacy.js +0 -2
- package/lib/legacy/component-dimensioning-e5cfd1ab.legacy.js.map +0 -1
- package/lib/legacy/component-raycast-helper-8f71260f.legacy.js.map +0 -1
- package/lib/legacy/configurator-cc125174.legacy.js +0 -2
- package/lib/legacy/configurator-cc125174.legacy.js.map +0 -1
- package/lib/legacy/continuous-drawing-helper-73604af9.legacy.js.map +0 -1
- package/lib/legacy/default-light-setting-b77f3f60.legacy.js.map +0 -1
- package/lib/legacy/dimensioning-helper-00914543.legacy.js.map +0 -1
- package/lib/legacy/glb-viewer-4bd7cb56.legacy.js +0 -2
- package/lib/legacy/glb-viewer-4bd7cb56.legacy.js.map +0 -1
- package/lib/legacy/glb-viewer-camera-behaviour-37ecbc95.legacy.js.map +0 -1
- package/lib/legacy/material-viewer-198c5354.legacy.js.map +0 -1
- package/lib/legacy/planner-edab8352.legacy.js +0 -2
- package/lib/legacy/planner-edab8352.legacy.js.map +0 -1
- package/lib/legacy/query-params-helper-aca6a1b1.legacy.js.map +0 -1
- package/lib/legacy/roomle-configurator-2ae41dc7.legacy.js +0 -2
- package/lib/legacy/roomle-configurator-2ae41dc7.legacy.js.map +0 -1
- package/lib/legacy/roomle-dependency-injection-85983111.legacy.js.map +0 -1
- package/lib/legacy/script-loader-9a99d227.legacy.js.map +0 -1
- package/lib/legacy/static/RoomleCore-1cea7b5dbe5c833c.wasm +0 -0
- package/lib/legacy/static/default-external-object-api-configuration-1e7103889f664a3f.json +0 -16
- package/lib/legacy/stats-helper-55ffdeaa.legacy.js.map +0 -1
- package/lib/legacy/tools-core-9784a457.legacy.js.map +0 -1
- package/lib/material-viewer-30d9f69c.js.map +0 -1
- package/lib/material-viewer-64918a91.nomodule.js.map +0 -1
- package/lib/material-viewer-main-2ffe8dd1.js +0 -2
- package/lib/material-viewer-main-2ffe8dd1.js.map +0 -1
- package/lib/planner-78d40e69.js +0 -2
- package/lib/planner-78d40e69.js.map +0 -1
- package/lib/planner-999b833e.nomodule.js +0 -2
- package/lib/planner-999b833e.nomodule.js.map +0 -1
- package/lib/planner-main-5a97273f.js +0 -2
- package/lib/planner-main-5a97273f.js.map +0 -1
- package/lib/query-params-helper-51a53f8c.nomodule.js.map +0 -1
- package/lib/query-params-helper-c9492f35.js.map +0 -1
- package/lib/roomle-configurator-0b80be00.js +0 -2
- package/lib/roomle-configurator-0b80be00.js.map +0 -1
- package/lib/roomle-configurator-9f4d0a4c.nomodule.js +0 -2
- package/lib/roomle-configurator-9f4d0a4c.nomodule.js.map +0 -1
- package/lib/roomle-dependency-injection-23dd0a1d.js.map +0 -1
- package/lib/roomle-dependency-injection-c5ca418b.nomodule.js.map +0 -1
- package/lib/roomle-sdk-75a568e8.js.map +0 -1
- package/lib/script-loader-7d698745.js.map +0 -1
- package/lib/script-loader-9bc923ad.nomodule.js.map +0 -1
- package/lib/static/RoomleCore-1cea7b5dbe5c833c.wasm +0 -0
- package/lib/static/default-external-object-api-configuration-1e7103889f664a3f.json +0 -16
- package/lib/stats-helper-23834305.nomodule.js.map +0 -1
- package/lib/stats-helper-a56923e6.js.map +0 -1
- package/lib/tools-core-14625d0d.nomodule.js.map +0 -1
- package/lib/tools-core-e4fd29c8.js.map +0 -1
package/lib/{camera-behaviour-d9e7bb9a.nomodule.js.map → camera-behaviour-cbd39e83.nomodule.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"camera-behaviour-
|
|
1
|
+
{"version":3,"file":"camera-behaviour-cbd39e83.nomodule.js","sources":["../../packages/three-build/src/Tween.js","../../node_modules/three/examples/jsm/objects/GroundedSkybox.js","../../packages/common-core/public/textures/env/legacy_env.exr","../../packages/common-core/public/textures/env/default_1k.exr"],"sourcesContent":["export default \"static/Tween-d57ee5d181fce582.js\"","import { Mesh, MeshBasicMaterial, SphereGeometry, Vector3 } from 'three';\n\n/**\n * A ground-projected skybox. The height is how far the camera that took the photo was above the ground - \n * a larger value will magnify the downward part of the image. By default the object is centered at the camera, \n * so it is often helpful to set skybox.position.y = height to put the ground at the origin. Set the radius \n * large enough to ensure your user's camera stays inside.\n */\n\nclass GroundedSkybox extends Mesh {\n\n\tconstructor( map, height, radius, resolution = 128 ) {\n\n\t\tif ( height <= 0 || radius <= 0 || resolution <= 0 ) {\n\n\t\t\tthrow new Error( 'GroundedSkybox height, radius, and resolution must be positive.' );\n\n\t\t}\n\n\t\tconst geometry = new SphereGeometry( radius, 2 * resolution, resolution );\n\t\tgeometry.scale( 1, 1, -1 );\n\n\t\tconst pos = geometry.getAttribute( 'position' );\n\t\tconst tmp = new Vector3();\n\n\t\tfor ( let i = 0; i < pos.count; ++ i ) {\n\n\t\t\ttmp.fromBufferAttribute( pos, i );\n\t\t\tif ( tmp.y < 0 ) {\n\n\t\t\t\t// Smooth out the transition from flat floor to sphere:\n\t\t\t\tconst y1 = - height * 3 / 2;\n\t\t\t\tconst f =\n\t\t\t\t\t\ttmp.y < y1 ? - height / tmp.y : ( 1 - tmp.y * tmp.y / ( 3 * y1 * y1 ) );\n\t\t\t\ttmp.multiplyScalar( f );\n\t\t\t\ttmp.toArray( pos.array, 3 * i );\n\n\t\t\t}\n\n\t\t}\n\n\t\tpos.needsUpdate = true;\n\n\t\tsuper( geometry, new MeshBasicMaterial( { map, depthWrite: false } ) );\n\n\t}\n\n}\n\nexport { GroundedSkybox };\n","export default \"static/legacy_env-d5810ec5057d4716.exr\"","export default \"static/default_1k-2aa6d42244d30fb1.exr\""],"names":["exports","GroundedSkybox","Mesh","[object Object]","map","height","radius","resolution","Error","geometry","SphereGeometry","scale","pos","getAttribute","tmp","Vector3","i","count","fromBufferAttribute","y","y1","f","multiplyScalar","toArray","array","needsUpdate","super","MeshBasicMaterial","depthWrite"],"mappings":"ylCAAeA,EAAA,IAAA,wg9CCSf,MAAMC,WAAuBC,EAE5BC,YAAaC,EAAKC,EAAQC,EAAQC,EAAa,KAE9C,GAAKF,GAAU,GAAKC,GAAU,GAAKC,GAAc,EAEhD,MAAM,IAAIC,MAAO,mEAIlB,MAAMC,EAAW,IAAIC,GAAgBJ,EAAQ,EAAIC,EAAYA,GAC7DE,EAASE,MAAO,EAAG,GAAI,GAEvB,MAAMC,EAAMH,EAASI,aAAc,YAC7BC,EAAM,IAAIC,EAEhB,IAAM,IAAIC,EAAI,EAAGA,EAAIJ,EAAIK,QAAUD,EAGlC,GADAF,EAAII,oBAAqBN,EAAKI,GACzBF,EAAIK,EAAI,EAAI,CAGhB,MAAMC,EAAgB,GAATf,EAAa,EACpBgB,EACJP,EAAIK,EAAIC,GAAOf,EAASS,EAAIK,EAAM,EAAIL,EAAIK,EAAIL,EAAIK,GAAM,EAAIC,EAAKA,GACnEN,EAAIQ,eAAgBD,GACpBP,EAAIS,QAASX,EAAIY,MAAO,EAAIR,GAM9BJ,EAAIa,aAAc,EAElBC,MAAOjB,EAAU,IAAIkB,GAAmB,CAAEvB,IAAAA,EAAKwB,YAAY,qznBC3C9C,g6CCAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=component-dimensioning-
|
|
1
|
+
System.register(["./roomle-dependency-injection-6ac8b14d.nomodule.js","./main-thread-to-worker-cdc86ed6.nomodule.js","./TextGeometry-ca6aef04.nomodule.js"],(function(e){var i,t,n,s,o,a,h,d,l,_,r,g,c,m,w,p;return{setters:[function(e){i=e._,t=e.i},function(e){n=e.O,s=e.a,o=e.u,a=e.h,h=e.w,d=e.bo,l=e.B,_=e.G,r=e.z,g=e.b,c=e.Q,m=e.bJ,w=e.b9},function(e){p=e.T}],execute:function(){const u="component_dimensioning_line_material",x="component_dimensioning_plane_material",y="component_dimensioning_text_material";class v extends n{constructor(e,i,t,n){super(),this._center=i.getCenter(new s),this._size=i.getSize(new s),this._origin=this._center.clone().sub(this._size.clone().multiplyScalar(.5)),this._dimensioning=e,this._level=this._dimensioning.maxLevel-this._dimensioning.level,this._font=t,this._cameraPosition=n,this._init()}clone(){console.warn("Will not clone ComponentDimensioning")}_initMaterials(){this._cacheHolder.materialCache.has(u)?this._lineMaterial=this._cacheHolder.materialCache.get(u):(this._lineMaterial=new o({color:3618615}),this._cacheHolder.materialCache.set(u,this._lineMaterial)),this._cacheHolder.materialCache.has(x)?this._planeMaterial=this._cacheHolder.materialCache.get(x):(this._planeMaterial=new a({color:16777215,side:h,opacity:.8,transparent:!0}),this._cacheHolder.materialCache.set(x,this._planeMaterial)),this._cacheHolder.materialCache.has(y)?this._textMaterial=this._cacheHolder.materialCache.get(y):(this._textMaterial=new d({color:3618615}),this._cacheHolder.materialCache.set(y,this._textMaterial))}_init(){this._initMaterials();let e=new l;this._line=new _(e,this._lineMaterial),this._line.name="component dimension line "+this._dimensioning.type.value,this._text=new r(e,this._textMaterial),this._text.name="component dimension text "+this._dimensioning.type.value,this._plane=new r(e,this._planeMaterial),this._plane.name="component dimension plane "+this._dimensioning.type.value;let i,t=new l,n=Math.round(Math.max(this._size.y,this._size.x,this._size.z)),o=Math.abs(this._dimensioning.to-this._dimensioning.from),a=.025+(n<4?0:.005*n);o<.3&&(a*=.5+o);let h={font:this._font,size:a,height:.001,curveSegments:2,bevelEnabled:!0,bevelThickness:.001,bevelSize:.001},d=this._dimensioning.label?this._dimensioning.label:this._unitFormatter.formatMMValueToUnitString(1e3*o),m=new p(d,h);m.computeBoundingBox();let w=m.boundingBox.getSize(new s).y;0===this._dimensioning.type.value&&(i=this._getXEdge(w),this._addXEdgeSideLines(w)),1===this._dimensioning.type.value&&(i=this._getYEdge(w),this._addYEdgeSideLines(w)),2===this._dimensioning.type.value&&(i=this._getZEdge(w),this._addZEdgeSideLines(w));let u=[i.start.x,i.start.y,i.start.z,i.end.x,i.end.y,i.end.z];if(t.setAttribute("position",new g(new Float32Array(u),3)),this._line.geometry.dispose(),this._line.geometry=t,this.add(this._line),this._text.geometry=m,0===this._dimensioning.type.value&&this._addText(i,m,new c,new s(0,.04,0)),1===this._dimensioning.type.value){let e=new c,t=this._getXSign()>0?Math.PI/2:Math.PI/2*3;e.setFromAxisAngle(new s(0,0,1),t),this._addText(i,m,e,new s(.04,0,0))}if(2===this._dimensioning.type.value){let e=this._getXSign()>0?Math.PI/2:Math.PI/2*3,t=(new c).setFromAxisAngle(new s(-1,0,0),Math.PI/2),n=(new c).setFromAxisAngle(new s(0,0,1),e);this._addText(i,m,t.multiply(n),new s(.04,0,0))}}_getXEdge(e){let i=this._size.y+.05+(.06+e)*this._level;const t=new s(0,this._origin.y,this._origin.z);let n=t.clone().add(new s(this._dimensioning.from,i,0)),o=t.clone().add(new s(this._dimensioning.to,i,0));return new m(n,o)}_addXEdgeSideLines(e){let i=this._size.y+.05+(.06+e)*(this._level-.5),t=this._size.y+.05+(.06+e)*this._level;const n=new s(0,this._origin.y,this._origin.z);let o=n.clone().add(new s(this._dimensioning.from,i,0)),a=n.clone().add(new s(this._dimensioning.from,t,0)),h=n.clone().add(new s(this._dimensioning.to,i,0)),d=n.clone().add(new s(this._dimensioning.to,t,0));this._addLine(o,a),this._addLine(h,d)}_getZEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new s(this._origin.x,this._origin.y,0);let n=t.clone().add(new s(i,0,this._dimensioning.from)),o=t.clone().add(new s(i,0,this._dimensioning.to));return new m(n,o)}_addZEdgeSideLines(e){let i=this._getXSign()>0?this._size.x:0,t=i+.05+(.06+e)*(this._level-.5),n=i+.05+(.06+e)*this._level;t*=this._getXSign(),n*=this._getXSign();const o=new s(this._origin.x,this._origin.y,0);let a=o.clone().add(new s(t,0,this._dimensioning.from)),h=o.clone().add(new s(n,0,this._dimensioning.from)),d=o.clone().add(new s(t,0,this._dimensioning.to)),l=o.clone().add(new s(n,0,this._dimensioning.to));this._addLine(a,h),this._addLine(d,l)}_getYEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new s(this._origin.x,0,this._origin.z);let n=t.clone().add(new s(i,this._dimensioning.from,0)),o=t.clone().add(new s(i,this._dimensioning.to,0));return new m(n,o)}_addYEdgeSideLines(e){let i=this._getXSign()>0?this._size.x:0,t=i+.05+(.06+e)*(this._level-.5),n=i+.05+(.06+e)*this._level;t*=this._getXSign(),n*=this._getXSign();const o=new s(this._origin.x,0,this._origin.z);let a=o.clone().add(new s(t,this._dimensioning.from,0)),h=o.clone().add(new s(n,this._dimensioning.from,0)),d=o.clone().add(new s(t,this._dimensioning.to,0)),l=o.clone().add(new s(n,this._dimensioning.to,0));this._addLine(a,h),this._addLine(d,l)}_addLine(e,i){let t=new l,n=[e.x,e.y,e.z,i.x,i.y,i.z];t.setAttribute("position",new g(new Float32Array(n),3)),this.add(new _(t,this._lineMaterial))}_addText(e,i,t,n){let o=e.getCenter(new s);n.x*=this._getXSign(),o.add(n);let a=i.boundingBox.getSize(new s);i.center(),this._text.position.copy(o),this._text.quaternion.copy(t),this.add(this._text);let h=new w(a.x+.02,a.y+.02,32);h.center(),this._plane.geometry=h,this._plane.position.copy(o),this._plane.quaternion.copy(t),this.add(this._plane)}_getXSign(){return this._cameraPosition.x>=0?1:-1}}e("default",v),i([t],v.prototype,"_cacheHolder",void 0),i([t],v.prototype,"_unitFormatter",void 0)}}}));
|
|
2
|
+
//# sourceMappingURL=component-dimensioning-cd4bbc5a.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-dimensioning-cd4bbc5a.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as __decorate,i as inject}from"./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=component-dimensioning-
|
|
1
|
+
import{_ as __decorate,i as inject}from"./roomle-dependency-injection-33aa065b.js";import{O as Object3D,a as Vector3,u as LineBasicMaterial,h as MeshBasicMaterial,w as DoubleSide,bo as MeshPhongMaterial,B as BufferGeometry,G as Line,z as Mesh,b as BufferAttribute,Q as Quaternion,bJ as Line3,b9 as PlaneGeometry}from"./main-thread-to-worker-b9299c65.js";import{T as TextGeometry}from"./TextGeometry-8993e971.js";const LINE_MATERIAL="component_dimensioning_line_material",PLANE_MATERIAL="component_dimensioning_plane_material",TEXT_MATERIAL="component_dimensioning_text_material";class ComponentDimensioning extends Object3D{constructor(e,i,t,n){super(),this._center=i.getCenter(new Vector3),this._size=i.getSize(new Vector3),this._origin=this._center.clone().sub(this._size.clone().multiplyScalar(.5)),this._dimensioning=e,this._level=this._dimensioning.maxLevel-this._dimensioning.level,this._font=t,this._cameraPosition=n,this._init()}clone(){console.warn("Will not clone ComponentDimensioning")}_initMaterials(){this._cacheHolder.materialCache.has(LINE_MATERIAL)?this._lineMaterial=this._cacheHolder.materialCache.get(LINE_MATERIAL):(this._lineMaterial=new LineBasicMaterial({color:3618615}),this._cacheHolder.materialCache.set(LINE_MATERIAL,this._lineMaterial)),this._cacheHolder.materialCache.has(PLANE_MATERIAL)?this._planeMaterial=this._cacheHolder.materialCache.get(PLANE_MATERIAL):(this._planeMaterial=new MeshBasicMaterial({color:16777215,side:DoubleSide,opacity:.8,transparent:!0}),this._cacheHolder.materialCache.set(PLANE_MATERIAL,this._planeMaterial)),this._cacheHolder.materialCache.has(TEXT_MATERIAL)?this._textMaterial=this._cacheHolder.materialCache.get(TEXT_MATERIAL):(this._textMaterial=new MeshPhongMaterial({color:3618615}),this._cacheHolder.materialCache.set(TEXT_MATERIAL,this._textMaterial))}_init(){this._initMaterials();let e=new BufferGeometry;this._line=new Line(e,this._lineMaterial),this._line.name="component dimension line "+this._dimensioning.type.value,this._text=new Mesh(e,this._textMaterial),this._text.name="component dimension text "+this._dimensioning.type.value,this._plane=new Mesh(e,this._planeMaterial),this._plane.name="component dimension plane "+this._dimensioning.type.value;let i,t=new BufferGeometry,n=Math.round(Math.max(this._size.y,this._size.x,this._size.z)),s=Math.abs(this._dimensioning.to-this._dimensioning.from),o=.025+(n<4?0:.005*n);s<.3&&(o*=.5+s);let a={font:this._font,size:o,height:.001,curveSegments:2,bevelEnabled:!0,bevelThickness:.001,bevelSize:.001},r=this._dimensioning.label?this._dimensioning.label:this._unitFormatter.formatMMValueToUnitString(1e3*s),h=new TextGeometry(r,a);h.computeBoundingBox();let _=h.boundingBox.getSize(new Vector3).y;0===this._dimensioning.type.value&&(i=this._getXEdge(_),this._addXEdgeSideLines(_)),1===this._dimensioning.type.value&&(i=this._getYEdge(_),this._addYEdgeSideLines(_)),2===this._dimensioning.type.value&&(i=this._getZEdge(_),this._addZEdgeSideLines(_));let l=[i.start.x,i.start.y,i.start.z,i.end.x,i.end.y,i.end.z];if(t.setAttribute("position",new BufferAttribute(new Float32Array(l),3)),this._line.geometry.dispose(),this._line.geometry=t,this.add(this._line),this._text.geometry=h,0===this._dimensioning.type.value&&this._addText(i,h,new Quaternion,new Vector3(0,.04,0)),1===this._dimensioning.type.value){let e=new Quaternion,t=this._getXSign()>0?Math.PI/2:Math.PI/2*3;e.setFromAxisAngle(new Vector3(0,0,1),t),this._addText(i,h,e,new Vector3(.04,0,0))}if(2===this._dimensioning.type.value){let e=this._getXSign()>0?Math.PI/2:Math.PI/2*3,t=(new Quaternion).setFromAxisAngle(new Vector3(-1,0,0),Math.PI/2),n=(new Quaternion).setFromAxisAngle(new Vector3(0,0,1),e);this._addText(i,h,t.multiply(n),new Vector3(.04,0,0))}}_getXEdge(e){let i=this._size.y+.05+(.06+e)*this._level;const t=new Vector3(0,this._origin.y,this._origin.z);let n=t.clone().add(new Vector3(this._dimensioning.from,i,0)),s=t.clone().add(new Vector3(this._dimensioning.to,i,0));return new Line3(n,s)}_addXEdgeSideLines(e){let i=this._size.y+.05+(.06+e)*(this._level-.5),t=this._size.y+.05+(.06+e)*this._level;const n=new Vector3(0,this._origin.y,this._origin.z);let s=n.clone().add(new Vector3(this._dimensioning.from,i,0)),o=n.clone().add(new Vector3(this._dimensioning.from,t,0)),a=n.clone().add(new Vector3(this._dimensioning.to,i,0)),r=n.clone().add(new Vector3(this._dimensioning.to,t,0));this._addLine(s,o),this._addLine(a,r)}_getZEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new Vector3(this._origin.x,this._origin.y,0);let n=t.clone().add(new Vector3(i,0,this._dimensioning.from)),s=t.clone().add(new Vector3(i,0,this._dimensioning.to));return new Line3(n,s)}_addZEdgeSideLines(e){let i=this._getXSign()>0?this._size.x:0,t=i+.05+(.06+e)*(this._level-.5),n=i+.05+(.06+e)*this._level;t*=this._getXSign(),n*=this._getXSign();const s=new Vector3(this._origin.x,this._origin.y,0);let o=s.clone().add(new Vector3(t,0,this._dimensioning.from)),a=s.clone().add(new Vector3(n,0,this._dimensioning.from)),r=s.clone().add(new Vector3(t,0,this._dimensioning.to)),h=s.clone().add(new Vector3(n,0,this._dimensioning.to));this._addLine(o,a),this._addLine(r,h)}_getYEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new Vector3(this._origin.x,0,this._origin.z);let n=t.clone().add(new Vector3(i,this._dimensioning.from,0)),s=t.clone().add(new Vector3(i,this._dimensioning.to,0));return new Line3(n,s)}_addYEdgeSideLines(e){let i=this._getXSign()>0?this._size.x:0,t=i+.05+(.06+e)*(this._level-.5),n=i+.05+(.06+e)*this._level;t*=this._getXSign(),n*=this._getXSign();const s=new Vector3(this._origin.x,0,this._origin.z);let o=s.clone().add(new Vector3(t,this._dimensioning.from,0)),a=s.clone().add(new Vector3(n,this._dimensioning.from,0)),r=s.clone().add(new Vector3(t,this._dimensioning.to,0)),h=s.clone().add(new Vector3(n,this._dimensioning.to,0));this._addLine(o,a),this._addLine(r,h)}_addLine(e,i){let t=new BufferGeometry,n=[e.x,e.y,e.z,i.x,i.y,i.z];t.setAttribute("position",new BufferAttribute(new Float32Array(n),3)),this.add(new Line(t,this._lineMaterial))}_addText(e,i,t,n){let s=e.getCenter(new Vector3);n.x*=this._getXSign(),s.add(n);let o=i.boundingBox.getSize(new Vector3);i.center(),this._text.position.copy(s),this._text.quaternion.copy(t),this.add(this._text);let a=new PlaneGeometry(o.x+.02,o.y+.02,32);a.center(),this._plane.geometry=a,this._plane.position.copy(s),this._plane.quaternion.copy(t),this.add(this._plane)}_getXSign(){return this._cameraPosition.x>=0?1:-1}}__decorate([inject],ComponentDimensioning.prototype,"_cacheHolder",void 0),__decorate([inject],ComponentDimensioning.prototype,"_unitFormatter",void 0);export{ComponentDimensioning as default};
|
|
2
|
+
//# sourceMappingURL=component-dimensioning-ee9ca296.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-dimensioning-ee9ca296.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./main-thread-to-worker-
|
|
2
|
-
//# sourceMappingURL=component-raycast-helper-
|
|
1
|
+
System.register(["./main-thread-to-worker-cdc86ed6.nomodule.js","./roomle-dependency-injection-6ac8b14d.nomodule.js"],(function(e){var t,i,n,s,a,r,c,o,l;return{setters:[function(e){t=e.bx,i=e.bR,n=e.z,s=e.v,a=e.ad,r=e.a,c=e.am,o=e.k},function(e){l=e.ap}],execute:function(){e("default",class{constructor(){this._nonTransparentComponent=null,this._raycaster=new t,this._raycaster.near=.1,this._raycaster.layers.enable(3),this._raycaster.layers.enable(4),this._raycaster.layers.enable(5),this._raycaster.layers.enable(6)}init(e,t){this._object=e,this._camera=t,this.checkComponentVisibility=i(this.checkComponentVisibility,100).bind(this),this.checkPreviewVisibility=i(this.checkPreviewVisibility,100).bind(this)}setCamera(e){this._camera=e}setObject(e){this._object=e}changeMaterialsOnSelect(e,t,i=!1,n){t!==this._nonTransparentComponent&&(this._nonTransparentComponent=t,this._changeMaterialsOnSelect(e,t,i,n))}_changeMaterialsOnSelect(e,t,i=!1,a){if(e.children.length>0&&e.children.forEach(s=>{const r=t&&e.id===t.id||i,c=!(s instanceof n);s.userData.ignoreComponentRaycast||this._changeMaterialsOnSelect(s,t,(!r||!c)&&r,a)}),t)e instanceof n&&e.material instanceof s&&!e.userData.oldMaterial&&(e.userData.oldMaterial=e.material,e.material=e.material.clone(),i||l(e,{opacity:.2,transparent:!0}).then(()=>{null==a||a()}));else if(e.userData.oldMaterial&&e instanceof n&&e.material instanceof s){const{opacity:t,transparent:i}=e.userData.oldMaterial;l(e,{opacity:t,transparent:i}).then(()=>null==a?void 0:a()),e.userData.oldMaterial=void 0}}isComponentVisible(e){const t=[];e.traverse(e=>t.push(e.uuid));const i=(new a).setFromObject(e).getCenter(new r),n=(new r).subVectors(i,this._camera.position).normalize();this._raycaster.set(this._camera.position,n),this._raycaster.far=this._camera.position.distanceTo(i);const s=[];return this._raycaster.intersectObjects(this._object.children,!0).forEach(e=>{e.object.material.visible&&(t.includes(e.object.uuid)||e.object.userData.ignoreComponentRaycast||s.push(e))}),0===s.length}checkComponentAndPreviewVisibility(e,t){e.hasSelection()?this.checkComponentVisibility(e,t):t.hasPreviews()?this.checkPreviewVisibility(t):this.changeMaterialsOnSelect(this._object,null)}checkComponentVisibility(e,t){if(!e.hasSelection())return;const i=t.getComponentsForIds(e.getSelectedRuntimeComponentIds());if(i.length>1)return;const n=i[0];this.isComponentVisible(n)?this.changeMaterialsOnSelect(this._object,null):this.changeMaterialsOnSelect(this._object,n)}areAllPreviewsVisible(e){if(!e.hasPreviews())return!0;const t=e.getPreviews();return 0===t.length||t.map(e=>this.isComponentVisible(e)).reduce((e,t)=>e&&t)}areAllComponentsInFrustum(e){if(0===e.length)return!0;const t=new c,i=(new o).multiplyMatrices(this._camera.projectionMatrix,this._camera.matrixWorldInverse),n=new a;return t.setFromProjectionMatrix(i),e.map(e=>(e=>{const i=n.setFromObject(e).getCenter(new r);return t.containsPoint(i)})(e)).reduce((e,t)=>e&&t)}checkPreviewVisibility(e){e.hasPreviewLines()||(this.areAllPreviewsVisible(e)?this.changeMaterialsOnSelect(this._object,null):this.changeMaterialsOnSelect(this._object,{id:-1}))}})}}}));
|
|
2
|
+
//# sourceMappingURL=component-raycast-helper-0d125b72.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-raycast-helper-0d125b72.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{bx as Raycaster,bR as throttle,z as Mesh,v as MeshStandardMaterial,ad as Box3,a as Vector3,am as Frustum,k as Matrix4}from"./main-thread-to-worker-
|
|
2
|
-
//# sourceMappingURL=component-raycast-helper-
|
|
1
|
+
import{bx as Raycaster,bR as throttle,z as Mesh,v as MeshStandardMaterial,ad as Box3,a as Vector3,am as Frustum,k as Matrix4}from"./main-thread-to-worker-b9299c65.js";import{ap as transitionTransparencyOfMaterial}from"./roomle-dependency-injection-33aa065b.js";class ComponentRaycastHelper{constructor(){this._nonTransparentComponent=null,this._raycaster=new Raycaster,this._raycaster.near=.1,this._raycaster.layers.enable(3),this._raycaster.layers.enable(4),this._raycaster.layers.enable(5),this._raycaster.layers.enable(6)}init(e,t){this._object=e,this._camera=t,this.checkComponentVisibility=throttle(this.checkComponentVisibility,100).bind(this),this.checkPreviewVisibility=throttle(this.checkPreviewVisibility,100).bind(this)}setCamera(e){this._camera=e}setObject(e){this._object=e}changeMaterialsOnSelect(e,t,a=!1,i){t!==this._nonTransparentComponent&&(this._nonTransparentComponent=t,this._changeMaterialsOnSelect(e,t,a,i))}_changeMaterialsOnSelect(e,t,a=!1,i){if(e.children.length>0&&e.children.forEach(s=>{const n=t&&e.id===t.id||a,r=!(s instanceof Mesh);s.userData.ignoreComponentRaycast||this._changeMaterialsOnSelect(s,t,(!n||!r)&&n,i)}),t)e instanceof Mesh&&e.material instanceof MeshStandardMaterial&&!e.userData.oldMaterial&&(e.userData.oldMaterial=e.material,e.material=e.material.clone(),a||transitionTransparencyOfMaterial(e,{opacity:.2,transparent:!0}).then(()=>{null==i||i()}));else if(e.userData.oldMaterial&&e instanceof Mesh&&e.material instanceof MeshStandardMaterial){const{opacity:t,transparent:a}=e.userData.oldMaterial;transitionTransparencyOfMaterial(e,{opacity:t,transparent:a}).then(()=>null==i?void 0:i()),e.userData.oldMaterial=void 0}}isComponentVisible(e){const t=[];e.traverse(e=>t.push(e.uuid));const a=(new Box3).setFromObject(e).getCenter(new Vector3),i=(new Vector3).subVectors(a,this._camera.position).normalize();this._raycaster.set(this._camera.position,i),this._raycaster.far=this._camera.position.distanceTo(a);const s=[];return this._raycaster.intersectObjects(this._object.children,!0).forEach(e=>{e.object.material.visible&&(t.includes(e.object.uuid)||e.object.userData.ignoreComponentRaycast||s.push(e))}),0===s.length}checkComponentAndPreviewVisibility(e,t){e.hasSelection()?this.checkComponentVisibility(e,t):t.hasPreviews()?this.checkPreviewVisibility(t):this.changeMaterialsOnSelect(this._object,null)}checkComponentVisibility(e,t){if(!e.hasSelection())return;const a=t.getComponentsForIds(e.getSelectedRuntimeComponentIds());if(a.length>1)return;const i=a[0];this.isComponentVisible(i)?this.changeMaterialsOnSelect(this._object,null):this.changeMaterialsOnSelect(this._object,i)}areAllPreviewsVisible(e){if(!e.hasPreviews())return!0;const t=e.getPreviews();return 0===t.length||t.map(e=>this.isComponentVisible(e)).reduce((e,t)=>e&&t)}areAllComponentsInFrustum(e){if(0===e.length)return!0;const t=new Frustum,a=(new Matrix4).multiplyMatrices(this._camera.projectionMatrix,this._camera.matrixWorldInverse),i=new Box3;return t.setFromProjectionMatrix(a),e.map(e=>(e=>{const a=i.setFromObject(e).getCenter(new Vector3);return t.containsPoint(a)})(e)).reduce((e,t)=>e&&t)}checkPreviewVisibility(e){e.hasPreviewLines()||(this.areAllPreviewsVisible(e)?this.changeMaterialsOnSelect(this._object,null):this.changeMaterialsOnSelect(this._object,{id:-1}))}}export{ComponentRaycastHelper as default};
|
|
2
|
+
//# sourceMappingURL=component-raycast-helper-6c4596e5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-raycast-helper-6c4596e5.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{S as ScriptLoader,M as Main}from"./script-loader-094d2fae.js";import{D as DependencyInjectionAssignment,L as Logger,R as RapiAccess,a as DataSyncer,b as RoomleDependencyInjection,A as AppContext}from"./roomle-dependency-injection-33aa065b.js";import{C as CameraControl3D,a as CameraControl}from"./camera-behaviour-68cb697a.js";import ComponentRaycastHelper from"./component-raycast-helper-6c4596e5.js";import{C as ConfiguratorSceneManager,a as ConfiguratorViewModel,R as RoomleConfigurator}from"./roomle-configurator-5f01c0e2.js";import"./query-params-helper-45cc26ae.js";import"./main-thread-to-worker-b9299c65.js";import"./jszip.min-de487fbf.js";const INJECTABLES=[new DependencyInjectionAssignment("logger",Logger),new DependencyInjectionAssignment("rapi-access",RapiAccess),new DependencyInjectionAssignment("script-loader",ScriptLoader),new DependencyInjectionAssignment("camera-control-3d",CameraControl3D),new DependencyInjectionAssignment("camera-control",CameraControl),new DependencyInjectionAssignment("data-syncer",DataSyncer),new DependencyInjectionAssignment("configurator-scene-manager",ConfiguratorSceneManager,1),new DependencyInjectionAssignment("configurator-view-model",ConfiguratorViewModel,1),new DependencyInjectionAssignment("component-raycast-helper",ComponentRaycastHelper,0)];class Configurator extends Main{setupDependencies(){RoomleDependencyInjection.setup(INJECTABLES),this.lookup("planner-kernel-access",this._context).init(1),this.lookup("rapi-access",this._context),this.lookup("script-loader",this._context),this.lookup("logger",this._context)}cleanUpGlobals(){delete window.RoomleConfigurator}cleanUpDependencies(){const e=this.lookup("script-loader"),n=this.lookup("rapi-access");this.lookup("dom-helper");const o=this.lookup("configurator-scene-manager");e&&e.cleanUp(),n&&n.cleanUp(),o&&o.cleanUp()}setupGlobals(e){const{kernelInstance:n,kernelContainer:o,planObjectId:t}=e||{};AppContext.init({kernelInstance:n,kernelContainer:o,planObjectId:t})}getApi(){return this._configurator}bootFinished(){this._configurator=new RoomleConfigurator(this._context),this._configurator.getMain=()=>this,window.RoomleConfigurator||(window.RoomleConfigurator=this._configurator)}getContextName(){return"configurator"}}export{Configurator};
|
|
2
|
+
//# sourceMappingURL=configurator-3fdb7e1e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-3fdb7e1e.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./script-loader-8da7be7d.nomodule.js","./roomle-dependency-injection-6ac8b14d.nomodule.js","./camera-behaviour-cbd39e83.nomodule.js","./component-raycast-helper-0d125b72.nomodule.js","./roomle-configurator-108492a3.nomodule.js","./query-params-helper-6eaaca17.nomodule.js","./main-thread-to-worker-cdc86ed6.nomodule.js","./jszip.min-eb1d7949.nomodule.js"],(function(e){var o,n,t,r,a,c,i,s,l,u,d,p,m,h;return{setters:[function(e){o=e.S,n=e.M},function(e){t=e.D,r=e.L,a=e.R,c=e.a,i=e.b,s=e.A},function(e){l=e.C,u=e.a},function(e){d=e.default},function(e){p=e.C,m=e.a,h=e.R},function(){},function(){},function(){}],execute:function(){const f=[new t("logger",r),new t("rapi-access",a),new t("script-loader",o),new t("camera-control-3d",l),new t("camera-control",u),new t("data-syncer",c),new t("configurator-scene-manager",p,1),new t("configurator-view-model",m,1),new t("component-raycast-helper",d,0)];e("Configurator",class extends n{setupDependencies(){i.setup(f),this.lookup("planner-kernel-access",this._context).init(1),this.lookup("rapi-access",this._context),this.lookup("script-loader",this._context),this.lookup("logger",this._context)}cleanUpGlobals(){delete window.RoomleConfigurator}cleanUpDependencies(){const e=this.lookup("script-loader"),o=this.lookup("rapi-access");this.lookup("dom-helper");const n=this.lookup("configurator-scene-manager");e&&e.cleanUp(),o&&o.cleanUp(),n&&n.cleanUp()}setupGlobals(e){const{kernelInstance:o,kernelContainer:n,planObjectId:t}=e||{};s.init({kernelInstance:o,kernelContainer:n,planObjectId:t})}getApi(){return this._configurator}bootFinished(){this._configurator=new h(this._context),this._configurator.getMain=()=>this,window.RoomleConfigurator||(window.RoomleConfigurator=this._configurator)}getContextName(){return"configurator"}})}}}));
|
|
2
|
+
//# sourceMappingURL=configurator-ef768a98.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-ef768a98.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Configurator}from"./configurator-3fdb7e1e.js";import"./script-loader-094d2fae.js";import"./query-params-helper-45cc26ae.js";import"./main-thread-to-worker-b9299c65.js";import"./roomle-dependency-injection-33aa065b.js";import"./camera-behaviour-68cb697a.js";import"./component-raycast-helper-6c4596e5.js";import"./roomle-configurator-5f01c0e2.js";import"./jszip.min-de487fbf.js";(new Configurator).boot(),window.requestIdleCallback||(window.requestIdleCallback=e=>setTimeout(()=>{let o=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},1)),window.cancelIdleCallback||(window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)});
|
|
2
|
+
//# sourceMappingURL=configurator-main-7080315e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-main-7080315e.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./configurator-
|
|
1
|
+
System.register(["./configurator-ef768a98.nomodule.js","./script-loader-8da7be7d.nomodule.js","./query-params-helper-6eaaca17.nomodule.js","./main-thread-to-worker-cdc86ed6.nomodule.js","./roomle-dependency-injection-6ac8b14d.nomodule.js","./camera-behaviour-cbd39e83.nomodule.js","./component-raycast-helper-0d125b72.nomodule.js","./roomle-configurator-108492a3.nomodule.js","./jszip.min-eb1d7949.nomodule.js"],(function(){var e;return{setters:[function(o){e=o.Configurator},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){(new e).boot(),window.requestIdleCallback||(window.requestIdleCallback=e=>setTimeout(()=>{let o=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},1)),window.cancelIdleCallback||(window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)})}}}));
|
|
2
2
|
//# sourceMappingURL=configurator-main.nomodule.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=continuous-drawing-helper-
|
|
1
|
+
System.register(["./roomle-dependency-injection-6ac8b14d.nomodule.js","./main-thread-to-worker-cdc86ed6.nomodule.js"],(function(e){var i,t,r,n,s;return{setters:[function(e){i=e.ac},function(e){t=e.aT,r=e.h,n=e.w,s=e.z}],execute:function(){e("default",class{constructor(){this._currentInnerRadius=0}init(e,i,t){this._drawingGroup=e,this._continuousDrawingManager=i,this._kernelZoomFactor=t,this.update()}update(){this._initCircle(),this._updateCircle()}_initCircle(){if(this._circleMesh)return;const e=70/this._kernelZoomFactor/1e3,i=new t(e,e+e/50,32),c=new r({color:10066329,side:n});this._circleMesh=new s(i,c),this._circleMesh.name="Circle",this._circleMesh.rotation.set(Math.PI/2,0,0),this._circleMesh.visible=this._continuousDrawingManager.shouldShowCircle(),this._drawingGroup.add(this._circleMesh)}_updateCircle(){if(!this._circleMesh)return;const e=70/this._kernelZoomFactor/1e3;if(e!==this._currentInnerRadius){const i=e+e/50;this._circleMesh.geometry=new t(e,i,32)}const r=i(this._continuousDrawingManager.getStartPoint());r.y=5,this._circleMesh.position.copy(r),this._circleMesh.visible=this._continuousDrawingManager.shouldShowCircle(),this._currentInnerRadius=e}setKernelZoomFactor(e){this._kernelZoomFactor=e}endDrawing(){this._drawingGroup.remove(this._circleMesh),this._circleMesh=null}})}}}));
|
|
2
|
+
//# sourceMappingURL=continuous-drawing-helper-4f5f3885.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuous-drawing-helper-4f5f3885.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ac as convertToTHREE}from"./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=continuous-drawing-helper-
|
|
1
|
+
import{ac as convertToTHREE}from"./roomle-dependency-injection-33aa065b.js";import{aT as RingGeometry,h as MeshBasicMaterial,w as DoubleSide,z as Mesh}from"./main-thread-to-worker-b9299c65.js";class ContinuousDrawingHelper{constructor(){this._currentInnerRadius=0}init(e,i,r){this._drawingGroup=e,this._continuousDrawingManager=i,this._kernelZoomFactor=r,this.update()}update(){this._initCircle(),this._updateCircle()}_initCircle(){if(this._circleMesh)return;const e=70/this._kernelZoomFactor/1e3,i=new RingGeometry(e,e+e/50,32),r=new MeshBasicMaterial({color:10066329,side:DoubleSide});this._circleMesh=new Mesh(i,r),this._circleMesh.name="Circle",this._circleMesh.rotation.set(Math.PI/2,0,0),this._circleMesh.visible=this._continuousDrawingManager.shouldShowCircle(),this._drawingGroup.add(this._circleMesh)}_updateCircle(){if(!this._circleMesh)return;const e=70/this._kernelZoomFactor/1e3;if(e!==this._currentInnerRadius){const i=e+e/50;this._circleMesh.geometry=new RingGeometry(e,i,32)}const i=convertToTHREE(this._continuousDrawingManager.getStartPoint());i.y=5,this._circleMesh.position.copy(i),this._circleMesh.visible=this._continuousDrawingManager.shouldShowCircle(),this._currentInnerRadius=e}setKernelZoomFactor(e){this._kernelZoomFactor=e}endDrawing(){this._drawingGroup.remove(this._circleMesh),this._circleMesh=null}}export{ContinuousDrawingHelper as default};
|
|
2
|
+
//# sourceMappingURL=continuous-drawing-helper-7893ce81.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuous-drawing-helper-7893ce81.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -30,6 +30,7 @@ export default class InitData implements Context, Omit<InitDataDefinition, 'colo
|
|
|
30
30
|
stats?: boolean;
|
|
31
31
|
_measureTraffic?: boolean;
|
|
32
32
|
debug?: boolean;
|
|
33
|
+
debugGeometry?: boolean;
|
|
33
34
|
usePriceService?: boolean;
|
|
34
35
|
disableDebugGUI?: boolean;
|
|
35
36
|
disableEnvMap?: boolean;
|
|
@@ -92,6 +92,16 @@ export interface FeatureFlags {
|
|
|
92
92
|
* as it is not possible to guess which side of the wall of the room currently being entered is the inside of the wall.
|
|
93
93
|
*/
|
|
94
94
|
drawPreviewMode?: Enumify<typeof DRAW_PREVIEW_MODES>;
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
* @description Enables special behavior for the BO-PoC
|
|
98
|
+
*/
|
|
99
|
+
boPoC?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
* @description Enables special debug behavior for the BO-PoC
|
|
103
|
+
*/
|
|
104
|
+
boPoCDebug?: boolean;
|
|
95
105
|
}
|
|
96
106
|
export type RoomleColors = keyof typeof ROOMLE_COLORS;
|
|
97
107
|
export type ColorsIn3dScene = Record<RoomleColors, HexColorString | HexColorNumber>;
|
|
@@ -221,6 +231,11 @@ export interface CommonInitData {
|
|
|
221
231
|
* - Free camera movement (no restrictions, camera stays after reload, panning using Shift key)
|
|
222
232
|
*/
|
|
223
233
|
debug?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* @description This flag enables:
|
|
236
|
+
* - External object docking vector debug geometry
|
|
237
|
+
*/
|
|
238
|
+
debugGeometry?: boolean;
|
|
224
239
|
/**
|
|
225
240
|
* @description If set to true, prices are calculated using the Roomle price service.
|
|
226
241
|
* For more information ask your Roomle contact.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
interface PmEntityDefinition {
|
|
2
|
+
attributes: Record<string, any>;
|
|
3
|
+
modules: PmEntityDefinition[];
|
|
4
|
+
}
|
|
5
|
+
interface PmDefinition {
|
|
6
|
+
entities: PmEntityDefinition[];
|
|
7
|
+
materialIds: Set<string>;
|
|
8
|
+
materials?: Record<string, any>;
|
|
9
|
+
textures?: Record<string, any>;
|
|
10
|
+
}
|
|
11
|
+
export declare class ProductionManagerExport {
|
|
12
|
+
private getMaterials?;
|
|
13
|
+
private exportImages?;
|
|
14
|
+
private date?;
|
|
15
|
+
imageFolderName: string;
|
|
16
|
+
private materialAttributes;
|
|
17
|
+
constructor(parameter?: any, getMaterials?: (materialIds: string[]) => Promise<any[]>);
|
|
18
|
+
convertTcExportData(tcExportData: any): Promise<PmDefinition>;
|
|
19
|
+
addMaterialsToDefinition(pmDefinition: PmDefinition): Promise<void>;
|
|
20
|
+
addTexturesToDefinition(pmDefinition: PmDefinition): void;
|
|
21
|
+
convertMaterialIdToImageName(materialId: string, url: string): string;
|
|
22
|
+
private getDiffuseMap;
|
|
23
|
+
private convertTcArticle;
|
|
24
|
+
createExportXml(pmDefinition: PmDefinition, customerData?: string): string;
|
|
25
|
+
private getDummyCustomerData;
|
|
26
|
+
private getDummyEntityData;
|
|
27
|
+
private createXMLDocument;
|
|
28
|
+
private createExportXMLDocument;
|
|
29
|
+
private createEntities;
|
|
30
|
+
private createEntity;
|
|
31
|
+
private createParameter;
|
|
32
|
+
private createImages;
|
|
33
|
+
private createImage;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -21,6 +21,7 @@ import type { GlobalCallback } from '../../common-core/src/services/global-callb
|
|
|
21
21
|
import type RoomleToolsCore from '../../tools-core/src/roomle-tools-core';
|
|
22
22
|
import type { Scene } from 'three';
|
|
23
23
|
import type IdbManager from '../../common-core/src/services/idb-manager';
|
|
24
|
+
import type { HomagIxArticleParams, HomagIxHeaderParams, HomagIxOrderParams } from './utils/export-helper';
|
|
24
25
|
import type { ConfiguratorDebugAPI } from './configurator-debug-api';
|
|
25
26
|
interface ConfigurationLoadedResponse {
|
|
26
27
|
partList: KernelPartList;
|
|
@@ -670,6 +671,8 @@ export default class RoomleConfigurator implements GlobalAPI, Context, KernelUti
|
|
|
670
671
|
generateProductionServiceExport(defaultExportDefinition?: string): Promise<any>;
|
|
671
672
|
generateTCExport(defaultExportDefinition?: string): Promise<any>;
|
|
672
673
|
generateIMOSiXExport(defaultExportDefinition?: string): Promise<any>;
|
|
674
|
+
generateHOMAGiXExport(defaultExportDefinition?: string, homagIxOrderData?: HomagIxOrderParams, homagIxHeaderParams?: HomagIxHeaderParams, homagIxArticleParams?: HomagIxArticleParams): Promise<string>;
|
|
675
|
+
downloadHomagIxExportPoC(): Promise<any>;
|
|
673
676
|
generateExport(exportType: ExportType, defaultExportDefinition?: string): Promise<any>;
|
|
674
677
|
setEnvironmentMap(params: {
|
|
675
678
|
url?: string;
|
|
@@ -679,6 +682,10 @@ export default class RoomleConfigurator implements GlobalAPI, Context, KernelUti
|
|
|
679
682
|
}): void;
|
|
680
683
|
enableEvents(): void;
|
|
681
684
|
disableEvents(): void;
|
|
685
|
+
createProductManagerExportPoC(defaultExportDefinition?: string, send?: (content: any) => void | null): Promise<any>;
|
|
686
|
+
getFileFromUrl(url: string, fileNmame: string, defaultType: string): Promise<File>;
|
|
687
|
+
downloadProductManagerExportPoC(defaultExportDefinition?: string): Promise<any>;
|
|
688
|
+
postProductManagerExportPoC(defaultExportDefinition?: string, requestData?: Record<string, string>): Promise<any>;
|
|
682
689
|
enableDebugging(): void;
|
|
683
690
|
}
|
|
684
691
|
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface HomagIxOrderParams {
|
|
2
|
+
orderNumber?: string;
|
|
3
|
+
dispatchDate?: string;
|
|
4
|
+
basketNumber?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface HomagIxHeaderParams {
|
|
7
|
+
comm?: string;
|
|
8
|
+
articleno?: string;
|
|
9
|
+
customer?: string;
|
|
10
|
+
retailer?: string;
|
|
11
|
+
client?: string;
|
|
12
|
+
program?: string;
|
|
13
|
+
employee?: string;
|
|
14
|
+
textLong?: string;
|
|
15
|
+
textShort?: string;
|
|
16
|
+
colour?: string[];
|
|
17
|
+
info?: string[];
|
|
18
|
+
address?: string[];
|
|
19
|
+
billingAddress?: string[];
|
|
20
|
+
shippingAddress?: string[];
|
|
21
|
+
orderPriceInfo?: string[];
|
|
22
|
+
customInfo?: string[];
|
|
23
|
+
}
|
|
24
|
+
export interface HomagIxArticleParams {
|
|
25
|
+
articleTextInfo1?: string;
|
|
26
|
+
articleTextInfo2?: string;
|
|
27
|
+
articlePriceInfo1?: string;
|
|
28
|
+
articlePriceInfo2?: string;
|
|
29
|
+
articlePriceInfo3?: string;
|
|
30
|
+
deliveryPeriod?: string;
|
|
31
|
+
supplier?: string;
|
|
32
|
+
discount?: number;
|
|
33
|
+
discountAbs?: number;
|
|
34
|
+
}
|
|
35
|
+
export declare const createHomagIxXml: (orderData: HomagIxOrderParams, headerData: HomagIxHeaderParams, articleShopData: HomagIxArticleParams, articleCoreData: any) => string;
|
|
36
|
+
export declare const getFakeOrderParams: () => HomagIxOrderParams;
|
|
37
|
+
export declare const getFakeHeaderParams: () => HomagIxHeaderParams;
|
|
38
|
+
export declare const getFakeArticleParams: () => HomagIxArticleParams;
|
|
@@ -57,6 +57,7 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
57
57
|
protected shouldClearShadowsAndAO(): boolean;
|
|
58
58
|
resume(): void;
|
|
59
59
|
private _materialLoaded;
|
|
60
|
+
waitForMaterialQueue(): Promise<void>;
|
|
60
61
|
pause(): void;
|
|
61
62
|
protected _setupScene(offset?: CanvasOffset, transparent?: boolean, skipLightSetup?: boolean): void;
|
|
62
63
|
sceneCleared(shouldHardReset: boolean): void;
|
|
@@ -30,6 +30,7 @@ export default class InitData implements Context, Omit<InitDataDefinition, 'colo
|
|
|
30
30
|
stats?: boolean;
|
|
31
31
|
_measureTraffic?: boolean;
|
|
32
32
|
debug?: boolean;
|
|
33
|
+
debugGeometry?: boolean;
|
|
33
34
|
usePriceService?: boolean;
|
|
34
35
|
disableDebugGUI?: boolean;
|
|
35
36
|
disableEnvMap?: boolean;
|
|
@@ -92,6 +92,16 @@ export interface FeatureFlags {
|
|
|
92
92
|
* as it is not possible to guess which side of the wall of the room currently being entered is the inside of the wall.
|
|
93
93
|
*/
|
|
94
94
|
drawPreviewMode?: Enumify<typeof DRAW_PREVIEW_MODES>;
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
* @description Enables special behavior for the BO-PoC
|
|
98
|
+
*/
|
|
99
|
+
boPoC?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
* @description Enables special debug behavior for the BO-PoC
|
|
103
|
+
*/
|
|
104
|
+
boPoCDebug?: boolean;
|
|
95
105
|
}
|
|
96
106
|
export type RoomleColors = keyof typeof ROOMLE_COLORS;
|
|
97
107
|
export type ColorsIn3dScene = Record<RoomleColors, HexColorString | HexColorNumber>;
|
|
@@ -221,6 +231,11 @@ export interface CommonInitData {
|
|
|
221
231
|
* - Free camera movement (no restrictions, camera stays after reload, panning using Shift key)
|
|
222
232
|
*/
|
|
223
233
|
debug?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* @description This flag enables:
|
|
236
|
+
* - External object docking vector debug geometry
|
|
237
|
+
*/
|
|
238
|
+
debugGeometry?: boolean;
|
|
224
239
|
/**
|
|
225
240
|
* @description If set to true, prices are calculated using the Roomle price service.
|
|
226
241
|
* For more information ask your Roomle contact.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
interface PmEntityDefinition {
|
|
2
|
+
attributes: Record<string, any>;
|
|
3
|
+
modules: PmEntityDefinition[];
|
|
4
|
+
}
|
|
5
|
+
interface PmDefinition {
|
|
6
|
+
entities: PmEntityDefinition[];
|
|
7
|
+
materialIds: Set<string>;
|
|
8
|
+
materials?: Record<string, any>;
|
|
9
|
+
textures?: Record<string, any>;
|
|
10
|
+
}
|
|
11
|
+
export declare class ProductionManagerExport {
|
|
12
|
+
private getMaterials?;
|
|
13
|
+
private exportImages?;
|
|
14
|
+
private date?;
|
|
15
|
+
imageFolderName: string;
|
|
16
|
+
private materialAttributes;
|
|
17
|
+
constructor(parameter?: any, getMaterials?: (materialIds: string[]) => Promise<any[]>);
|
|
18
|
+
convertTcExportData(tcExportData: any): Promise<PmDefinition>;
|
|
19
|
+
addMaterialsToDefinition(pmDefinition: PmDefinition): Promise<void>;
|
|
20
|
+
addTexturesToDefinition(pmDefinition: PmDefinition): void;
|
|
21
|
+
convertMaterialIdToImageName(materialId: string, url: string): string;
|
|
22
|
+
private getDiffuseMap;
|
|
23
|
+
private convertTcArticle;
|
|
24
|
+
createExportXml(pmDefinition: PmDefinition, customerData?: string): string;
|
|
25
|
+
private getDummyCustomerData;
|
|
26
|
+
private getDummyEntityData;
|
|
27
|
+
private createXMLDocument;
|
|
28
|
+
private createExportXMLDocument;
|
|
29
|
+
private createEntities;
|
|
30
|
+
private createEntity;
|
|
31
|
+
private createParameter;
|
|
32
|
+
private createImages;
|
|
33
|
+
private createImage;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -21,6 +21,7 @@ import type { GlobalCallback } from '../../common-core/src/services/global-callb
|
|
|
21
21
|
import type RoomleToolsCore from '../../tools-core/src/roomle-tools-core';
|
|
22
22
|
import type { Scene } from 'three';
|
|
23
23
|
import type IdbManager from '../../common-core/src/services/idb-manager';
|
|
24
|
+
import type { HomagIxArticleParams, HomagIxHeaderParams, HomagIxOrderParams } from './utils/export-helper';
|
|
24
25
|
import type { ConfiguratorDebugAPI } from './configurator-debug-api';
|
|
25
26
|
interface ConfigurationLoadedResponse {
|
|
26
27
|
partList: KernelPartList;
|
|
@@ -670,6 +671,8 @@ export default class RoomleConfigurator implements GlobalAPI, Context, KernelUti
|
|
|
670
671
|
generateProductionServiceExport(defaultExportDefinition?: string): Promise<any>;
|
|
671
672
|
generateTCExport(defaultExportDefinition?: string): Promise<any>;
|
|
672
673
|
generateIMOSiXExport(defaultExportDefinition?: string): Promise<any>;
|
|
674
|
+
generateHOMAGiXExport(defaultExportDefinition?: string, homagIxOrderData?: HomagIxOrderParams, homagIxHeaderParams?: HomagIxHeaderParams, homagIxArticleParams?: HomagIxArticleParams): Promise<string>;
|
|
675
|
+
downloadHomagIxExportPoC(): Promise<any>;
|
|
673
676
|
generateExport(exportType: ExportType, defaultExportDefinition?: string): Promise<any>;
|
|
674
677
|
setEnvironmentMap(params: {
|
|
675
678
|
url?: string;
|
|
@@ -679,6 +682,10 @@ export default class RoomleConfigurator implements GlobalAPI, Context, KernelUti
|
|
|
679
682
|
}): void;
|
|
680
683
|
enableEvents(): void;
|
|
681
684
|
disableEvents(): void;
|
|
685
|
+
createProductManagerExportPoC(defaultExportDefinition?: string, send?: (content: any) => void | null): Promise<any>;
|
|
686
|
+
getFileFromUrl(url: string, fileNmame: string, defaultType: string): Promise<File>;
|
|
687
|
+
downloadProductManagerExportPoC(defaultExportDefinition?: string): Promise<any>;
|
|
688
|
+
postProductManagerExportPoC(defaultExportDefinition?: string, requestData?: Record<string, string>): Promise<any>;
|
|
682
689
|
enableDebugging(): void;
|
|
683
690
|
}
|
|
684
691
|
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface HomagIxOrderParams {
|
|
2
|
+
orderNumber?: string;
|
|
3
|
+
dispatchDate?: string;
|
|
4
|
+
basketNumber?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface HomagIxHeaderParams {
|
|
7
|
+
comm?: string;
|
|
8
|
+
articleno?: string;
|
|
9
|
+
customer?: string;
|
|
10
|
+
retailer?: string;
|
|
11
|
+
client?: string;
|
|
12
|
+
program?: string;
|
|
13
|
+
employee?: string;
|
|
14
|
+
textLong?: string;
|
|
15
|
+
textShort?: string;
|
|
16
|
+
colour?: string[];
|
|
17
|
+
info?: string[];
|
|
18
|
+
address?: string[];
|
|
19
|
+
billingAddress?: string[];
|
|
20
|
+
shippingAddress?: string[];
|
|
21
|
+
orderPriceInfo?: string[];
|
|
22
|
+
customInfo?: string[];
|
|
23
|
+
}
|
|
24
|
+
export interface HomagIxArticleParams {
|
|
25
|
+
articleTextInfo1?: string;
|
|
26
|
+
articleTextInfo2?: string;
|
|
27
|
+
articlePriceInfo1?: string;
|
|
28
|
+
articlePriceInfo2?: string;
|
|
29
|
+
articlePriceInfo3?: string;
|
|
30
|
+
deliveryPeriod?: string;
|
|
31
|
+
supplier?: string;
|
|
32
|
+
discount?: number;
|
|
33
|
+
discountAbs?: number;
|
|
34
|
+
}
|
|
35
|
+
export declare const createHomagIxXml: (orderData: HomagIxOrderParams, headerData: HomagIxHeaderParams, articleShopData: HomagIxArticleParams, articleCoreData: any) => string;
|
|
36
|
+
export declare const getFakeOrderParams: () => HomagIxOrderParams;
|
|
37
|
+
export declare const getFakeHeaderParams: () => HomagIxHeaderParams;
|
|
38
|
+
export declare const getFakeArticleParams: () => HomagIxArticleParams;
|
package/lib/definitions/packages/configurator-core/src/webgl/configurator-scene-manager.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
57
57
|
protected shouldClearShadowsAndAO(): boolean;
|
|
58
58
|
resume(): void;
|
|
59
59
|
private _materialLoaded;
|
|
60
|
+
waitForMaterialQueue(): Promise<void>;
|
|
60
61
|
pause(): void;
|
|
61
62
|
protected _setupScene(offset?: CanvasOffset, transparent?: boolean, skipLightSetup?: boolean): void;
|
|
62
63
|
sceneCleared(shouldHardReset: boolean): void;
|
|
@@ -37,12 +37,6 @@ export interface ExternalObjectUiCallback {
|
|
|
37
37
|
* @param newGroupedRootModules The new group of root modules.
|
|
38
38
|
*/
|
|
39
39
|
onSplitExternalObjectGroup(splitGroup: ExternalObjectGroupAndModules, newGroupedRootModules: ExternalObjectGroupAndModules | ExternalObjectGroupAndModules[]): void;
|
|
40
|
-
/**
|
|
41
|
-
* "onExternalObjectGroupArrangementChanged" is invoked when the arrangement (position and rotation) of the root modules of a group has changed .
|
|
42
|
-
* "changedGroup" contains the information about the root modules of the group.
|
|
43
|
-
* @param changedGroup The new arranged group and its root modules .
|
|
44
|
-
*/
|
|
45
|
-
onExternalObjectGroupArrangementChanged(changedGroup: ExternalObjectGroupAndModules): void;
|
|
46
40
|
/**
|
|
47
41
|
* "onDeleteExternalObjectGroup" is invoked when a group of root modules and all the root modules it contains are deleted.
|
|
48
42
|
* The group with the ID "groupIdToDelete" is removed from the plan and is completely deleted.
|
|
@@ -44,9 +44,8 @@ export interface ExternalObjectAPI {
|
|
|
44
44
|
* The initial location of the group and the IDs of the modules are defined in the group JSON.
|
|
45
45
|
* @param groupJson The group JSON as string or object.
|
|
46
46
|
* @param findFreeSpaceInPlan A free space is automatically searched for in the plane.
|
|
47
|
-
* @param verifyArrangement Verify whether the root modules of the group need to be rearranged as they have changed in size.
|
|
48
47
|
*/
|
|
49
|
-
loadExternalObjectGroup(groupJson: string | object, findFreeSpaceInPlan: boolean
|
|
48
|
+
loadExternalObjectGroup(groupJson: string | object, findFreeSpaceInPlan: boolean): Promise<void>;
|
|
50
49
|
/**
|
|
51
50
|
* "renderImagesOfExternalObjectGroups" renders images of groups of modules.
|
|
52
51
|
* @param groupJson The group JSON as string or object.
|
|
@@ -183,10 +183,6 @@ export default class RoomlePlannerUiCallback extends UiCallback implements Exter
|
|
|
183
183
|
* documented in interface ExternalObjectUiCallback
|
|
184
184
|
*/
|
|
185
185
|
onSplitExternalObjectGroup: (originalGroup: ExternalObjectGroupAndModules, newGroupedRootModules: ExternalObjectGroupAndModules | ExternalObjectGroupAndModules[]) => void;
|
|
186
|
-
/**
|
|
187
|
-
* documented in interface ExternalObjectUiCallback
|
|
188
|
-
*/
|
|
189
|
-
onExternalObjectGroupArrangementChanged: (changedGroup: ExternalObjectGroupAndModules) => void;
|
|
190
186
|
/**
|
|
191
187
|
* documented in interface ExternalObjectUiCallback
|
|
192
188
|
*/
|
|
@@ -369,9 +369,10 @@ export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlann
|
|
|
369
369
|
resolveShortUrl(shortUrl: string): Promise<string>;
|
|
370
370
|
enableEvents(): void;
|
|
371
371
|
disableEvents(): void;
|
|
372
|
+
downloadHomagIxExportPoC(): Promise<any>;
|
|
372
373
|
configureExternalObjectApi(configurationJson: string | ExternalObjectApiConfiguration): Promise<void>;
|
|
373
374
|
loadExternalObjectLibrary(libraryJson: string | object): void;
|
|
374
|
-
loadExternalObjectGroup(groupJson: string | object, findFreeSpaceInPlan: boolean
|
|
375
|
+
loadExternalObjectGroup(groupJson: string | object, findFreeSpaceInPlan: boolean): Promise<void>;
|
|
375
376
|
private _loadExternalObjectGroup;
|
|
376
377
|
renderImagesOfExternalObjectGroup(groupsJson: string | object): Promise<{
|
|
377
378
|
[key: string]: string;
|
|
@@ -70,9 +70,8 @@ export default class PlannerKernelAccess extends ConfiguratorKernelAccess {
|
|
|
70
70
|
externalObjectComponentDeleted(plan: Plan, planObject: PlanObject, remainingGroupOrGroups: ExternalObjectGroupAndModules | ExternalObjectGroupAndModules[], deletedRootModuleId: string): void;
|
|
71
71
|
externalObjectConfigurationDuplicated(plan: Plan, planObject: PlanObject, sourceGroupId: string, newGroupPosition: ExternalObjectGroupPosition): void;
|
|
72
72
|
externalObjectConfigurationMoved(plan: Plan, planObject: PlanObject, movedGroup: ExternalObjectGroup): void;
|
|
73
|
-
externalObjectConfigurationsMerged(plan: Plan, planObject: PlanObject, mergedGroup: ExternalObjectGroupAndModules,
|
|
73
|
+
externalObjectConfigurationsMerged(plan: Plan, planObject: PlanObject, mergedGroup: ExternalObjectGroupAndModules, idsOfGroupsMerged: string | string[]): void;
|
|
74
74
|
externalObjectComponentSplitOff(plan: Plan, planObject: PlanObject, splitGroups: ExternalObjectGroupAndModules[]): void;
|
|
75
|
-
externalObjectArrangementChanged(plan: Plan, planObject: PlanObject, changedGroup: ExternalObjectGroupAndModules): void;
|
|
76
75
|
planObjectConfigurationLoaded(plan: Plan, element: PlanElement, success: boolean): Promise<void>;
|
|
77
76
|
requestCatalogItem(catalogItemId: string): void;
|
|
78
77
|
startedDrawing(): void;
|
|
@@ -98,9 +97,8 @@ export default class PlannerKernelAccess extends ConfiguratorKernelAccess {
|
|
|
98
97
|
protected _externalObjectComponentDeleted(remainingGroupOrGroups: ExternalObjectGroupAndModules | ExternalObjectGroupAndModules[], deletedRootModuleId: string): void;
|
|
99
98
|
_externalObjectConfigurationDuplicated(sourceGroupId: string, newGroupPosition: ExternalObjectGroupPosition): void;
|
|
100
99
|
_externalObjectConfigurationsMoved(movedGroup: ExternalObjectGroup): void;
|
|
101
|
-
_externalObjectConfigurationsMerged(mergedGroup: ExternalObjectGroupAndModules,
|
|
100
|
+
_externalObjectConfigurationsMerged(mergedGroup: ExternalObjectGroupAndModules, idsOfGroupsMerged: string | string[]): void;
|
|
102
101
|
_externalObjectComponentSplitOff(splitGroups: ExternalObjectGroupAndModules[]): void;
|
|
103
|
-
_externalObjectArrangementChanged(changedGroup: ExternalObjectGroupAndModules): void;
|
|
104
102
|
planSnapshotCreated(planSnapshot: RapiPlanSnapshotPostData): void;
|
|
105
103
|
requestDeleteComponents(componentIds: number[]): void;
|
|
106
104
|
requestDeleteComponent(componentId: number): void;
|