@roomle/web-sdk 2.86.0-bo-mvp.9 → 2.87.0-alpha.1
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 +0 -5
- package/lib/{TextGeometry-6c37ac59.nomodule.js → TextGeometry-028ef3cf.nomodule.js} +2 -2
- package/lib/{TextGeometry-6c37ac59.nomodule.js.map → TextGeometry-028ef3cf.nomodule.js.map} +1 -1
- package/lib/{TextGeometry-64e47e97.js → TextGeometry-def07ca8.js} +2 -2
- package/lib/{TextGeometry-64e47e97.js.map → TextGeometry-def07ca8.js.map} +1 -1
- package/lib/banana-for-scale-b2d9cbc9.js +2 -0
- package/lib/banana-for-scale-b2d9cbc9.js.map +1 -0
- package/lib/banana-for-scale-e0a1a8f1.nomodule.js +2 -0
- package/lib/banana-for-scale-e0a1a8f1.nomodule.js.map +1 -0
- package/lib/{budgeteer-measure-a84ddf03.js → budgeteer-measure-e4c7fe1a.js} +2 -2
- package/lib/{budgeteer-measure-a84ddf03.js.map → budgeteer-measure-e4c7fe1a.js.map} +1 -1
- package/lib/budgeteer-measure.nomodule.js +1 -1
- package/lib/camera-behaviour-326d2222.nomodule.js +2 -0
- package/lib/{camera-behaviour-b2675d79.nomodule.js.map → camera-behaviour-326d2222.nomodule.js.map} +1 -1
- package/lib/camera-behaviour-945d9ff2.js +2 -0
- package/lib/{camera-behaviour-6a9b7cad.js.map → camera-behaviour-945d9ff2.js.map} +1 -1
- package/lib/{component-dimensioning-688d0e0a.nomodule.js → component-dimensioning-b4521b9b.nomodule.js} +2 -2
- package/lib/component-dimensioning-b4521b9b.nomodule.js.map +1 -0
- package/lib/{component-dimensioning-7fbc828d.js → component-dimensioning-c7ed3400.js} +2 -2
- package/lib/component-dimensioning-c7ed3400.js.map +1 -0
- package/lib/{component-raycast-helper-2d1eaeba.nomodule.js → component-raycast-helper-14987296.nomodule.js} +2 -2
- package/lib/component-raycast-helper-14987296.nomodule.js.map +1 -0
- package/lib/{component-raycast-helper-05605544.js → component-raycast-helper-96390e25.js} +2 -2
- package/lib/component-raycast-helper-96390e25.js.map +1 -0
- package/lib/configurator-5bf3781b.nomodule.js +2 -0
- package/lib/configurator-5bf3781b.nomodule.js.map +1 -0
- package/lib/configurator-664af113.js +2 -0
- package/lib/configurator-664af113.js.map +1 -0
- package/lib/configurator-main-f26b40d7.js +2 -0
- package/lib/configurator-main-f26b40d7.js.map +1 -0
- package/lib/configurator-main.nomodule.js +1 -1
- package/lib/{continuous-drawing-helper-ace47360.js → continuous-drawing-helper-2e02ceb2.js} +2 -2
- package/lib/continuous-drawing-helper-2e02ceb2.js.map +1 -0
- package/lib/{continuous-drawing-helper-d899205f.nomodule.js → continuous-drawing-helper-40dda690.nomodule.js} +2 -2
- package/lib/continuous-drawing-helper-40dda690.nomodule.js.map +1 -0
- package/lib/{jszip.min-bcba1021.nomodule.js → default-light-setting-1aee22fe.nomodule.js} +2 -2
- package/lib/default-light-setting-1aee22fe.nomodule.js.map +1 -0
- package/lib/{jszip.min-57906d3b.js → default-light-setting-36de53a7.js} +2 -2
- package/lib/default-light-setting-36de53a7.js.map +1 -0
- package/lib/definitions/common-core/__tests__/utils/map-to-ui-plan-objects.d.ts +1 -0
- package/lib/definitions/common-core/src/configurator-kernel-access.d.ts +2 -5
- package/lib/definitions/common-core/src/utils/shims.d.ts +0 -10
- package/lib/definitions/configurator-core/src/roomle-configurator.d.ts +0 -10
- package/lib/definitions/configurator-core/src/static-files/geometries.d.ts +1 -2
- package/lib/definitions/configurator-core/src/webgl/configurator-scene-manager.d.ts +0 -4
- package/lib/definitions/planner-core/src/roomle-planner-ui-callback.d.ts +1 -125
- package/lib/definitions/planner-core/src/roomle-planner.d.ts +2 -25
- package/lib/definitions/planner-core/src/services/planner-kernel-access.d.ts +4 -25
- package/lib/definitions/planner-core/src/utils/map-to-ui-plan-objects.d.ts +1 -1
- package/lib/definitions/planner-core/src/view-model/plan-view-model.d.ts +0 -1
- package/lib/definitions/planner-core/src/webgl/planner-scene-manager.d.ts +0 -2
- package/lib/definitions/typings/kernel.d.ts +17 -0
- package/lib/{dimensioning-helper-36582764.js → dimensioning-helper-3ebc307d.js} +2 -2
- package/lib/{dimensioning-helper-36582764.js.map → dimensioning-helper-3ebc307d.js.map} +1 -1
- package/lib/{dimensioning-helper-2945077e.nomodule.js → dimensioning-helper-fea487cd.nomodule.js} +2 -2
- package/lib/{dimensioning-helper-2945077e.nomodule.js.map → dimensioning-helper-fea487cd.nomodule.js.map} +1 -1
- package/lib/glb-viewer-1026813c.nomodule.js +2 -0
- package/lib/glb-viewer-1026813c.nomodule.js.map +1 -0
- package/lib/{glb-viewer-camera-behaviour-b8416fc4.nomodule.js → glb-viewer-camera-behaviour-3e5fd8e3.nomodule.js} +2 -2
- package/lib/glb-viewer-camera-behaviour-3e5fd8e3.nomodule.js.map +1 -0
- package/lib/{glb-viewer-camera-behaviour-59819d3f.js → glb-viewer-camera-behaviour-b14bed1c.js} +2 -2
- package/lib/glb-viewer-camera-behaviour-b14bed1c.js.map +1 -0
- package/lib/glb-viewer-d9f6ed0d.js +2 -0
- package/lib/glb-viewer-d9f6ed0d.js.map +1 -0
- package/lib/glb-viewer-main-af0b3784.js +2 -0
- package/lib/glb-viewer-main-af0b3784.js.map +1 -0
- package/lib/glb-viewer-main.nomodule.js +1 -1
- package/lib/legacy/{TextGeometry-50d12ddd.legacy.js → TextGeometry-c00b7ecb.legacy.js} +2 -2
- package/lib/legacy/{TextGeometry-50d12ddd.legacy.js.map → TextGeometry-c00b7ecb.legacy.js.map} +1 -1
- package/lib/legacy/banana-for-scale-ec2384a0.legacy.js +2 -0
- package/lib/legacy/banana-for-scale-ec2384a0.legacy.js.map +1 -0
- package/lib/legacy/budgeteer-measure.legacy.js +1 -1
- package/lib/legacy/camera-behaviour-6720c826.legacy.js +2 -0
- package/lib/legacy/{camera-behaviour-bf20b84a.legacy.js.map → camera-behaviour-6720c826.legacy.js.map} +1 -1
- package/lib/legacy/{component-dimensioning-13ef19d5.legacy.js → component-dimensioning-68b5d829.legacy.js} +2 -2
- package/lib/legacy/component-dimensioning-68b5d829.legacy.js.map +1 -0
- package/lib/legacy/{component-raycast-helper-a785f2c6.legacy.js → component-raycast-helper-65e36b5c.legacy.js} +2 -2
- package/lib/legacy/component-raycast-helper-65e36b5c.legacy.js.map +1 -0
- package/lib/legacy/configurator-3a0c4bc8.legacy.js +2 -0
- package/lib/legacy/configurator-3a0c4bc8.legacy.js.map +1 -0
- package/lib/legacy/configurator-main.legacy.js +1 -1
- package/lib/legacy/{continuous-drawing-helper-2633a60b.legacy.js → continuous-drawing-helper-f9ce987d.legacy.js} +2 -2
- package/lib/legacy/continuous-drawing-helper-f9ce987d.legacy.js.map +1 -0
- package/lib/legacy/{jszip.min-5c79c19a.legacy.js → default-light-setting-b4976358.legacy.js} +2 -2
- package/lib/legacy/default-light-setting-b4976358.legacy.js.map +1 -0
- package/lib/legacy/{dimensioning-helper-6a2b856c.legacy.js → dimensioning-helper-57d5e73e.legacy.js} +2 -2
- package/lib/legacy/{dimensioning-helper-6a2b856c.legacy.js.map → dimensioning-helper-57d5e73e.legacy.js.map} +1 -1
- package/lib/legacy/glb-viewer-a5dfdf43.legacy.js +2 -0
- package/lib/legacy/glb-viewer-a5dfdf43.legacy.js.map +1 -0
- package/lib/legacy/{glb-viewer-camera-behaviour-618647ad.legacy.js → glb-viewer-camera-behaviour-b34a5ae1.legacy.js} +2 -2
- package/lib/legacy/glb-viewer-camera-behaviour-b34a5ae1.legacy.js.map +1 -0
- package/lib/legacy/glb-viewer-main.legacy.js +1 -1
- package/lib/legacy/{main-thread-to-worker-f02de9c2.legacy.js → main-thread-to-worker-a28094cc.legacy.js} +3 -3
- package/lib/legacy/{main-thread-to-worker-f02de9c2.legacy.js.map → main-thread-to-worker-a28094cc.legacy.js.map} +1 -1
- package/lib/legacy/{material-viewer-fb86574e.legacy.js → material-viewer-8715a2e9.legacy.js} +2 -2
- package/lib/legacy/material-viewer-8715a2e9.legacy.js.map +1 -0
- package/lib/legacy/material-viewer-main.legacy.js +1 -1
- package/lib/legacy/planner-5b81ada7.legacy.js +2 -0
- package/lib/legacy/{planner-a173ca26.legacy.js.map → planner-5b81ada7.legacy.js.map} +1 -1
- package/lib/legacy/planner-main.legacy.js +1 -1
- package/lib/legacy/{query-params-helper-0f7e3d70.legacy.js → query-params-helper-81aac523.legacy.js} +2 -2
- package/lib/legacy/query-params-helper-81aac523.legacy.js.map +1 -0
- package/lib/legacy/roomle-configurator-ec55f937.legacy.js +2 -0
- package/lib/legacy/roomle-configurator-ec55f937.legacy.js.map +1 -0
- package/lib/legacy/{roomle-dependency-injection-3859ceb0.legacy.js → roomle-dependency-injection-9f9085b4.legacy.js} +3 -3
- package/lib/legacy/{roomle-dependency-injection-3859ceb0.legacy.js.map → roomle-dependency-injection-9f9085b4.legacy.js.map} +1 -1
- package/lib/legacy/roomle-sdk.legacy.js +1 -1
- package/lib/legacy/{script-loader-91e80925.legacy.js → script-loader-4930be72.legacy.js} +2 -2
- package/lib/legacy/script-loader-4930be72.legacy.js.map +1 -0
- package/lib/legacy/static/ConfiguratorKernel-9ea80d0a61a9ef8b.wasm +0 -0
- package/lib/legacy/static/{ConfiguratorKernel-ac72763bed504c93.js → ConfiguratorKernel-b59321891a4db889.js} +5 -5
- package/lib/legacy/static/{RoomleCore-68f295d905afacc4.js → RoomleCore-80c55bc5e228d066.js} +4 -4
- package/lib/legacy/static/RoomleCore-ba2659fe3669eee6.wasm +0 -0
- package/lib/legacy/static/RoomleToolsCore-f9ff20842a88560a.wasm +0 -0
- package/lib/legacy/static/banana-bbcc0e46fc0ee694.glb +0 -0
- package/lib/legacy/{stats-helper-022f1efc.legacy.js → stats-helper-79add899.legacy.js} +2 -2
- package/lib/legacy/stats-helper-79add899.legacy.js.map +1 -0
- package/lib/legacy/{tools-core-92f08984.legacy.js → tools-core-477c9567.legacy.js} +2 -2
- package/lib/legacy/tools-core-477c9567.legacy.js.map +1 -0
- package/lib/{main-thread-to-worker-a33146dd.nomodule.js → main-thread-to-worker-1a58abb6.nomodule.js} +2 -2
- package/lib/{main-thread-to-worker-a33146dd.nomodule.js.map → main-thread-to-worker-1a58abb6.nomodule.js.map} +1 -1
- package/lib/{main-thread-to-worker-af604b88.js → main-thread-to-worker-554053aa.js} +2 -2
- package/lib/{main-thread-to-worker-af604b88.js.map → main-thread-to-worker-554053aa.js.map} +1 -1
- package/lib/{material-viewer-93907045.nomodule.js → material-viewer-5f21f5cd.nomodule.js} +2 -2
- package/lib/material-viewer-5f21f5cd.nomodule.js.map +1 -0
- package/lib/{material-viewer-0607803c.js → material-viewer-b2827bb6.js} +2 -2
- package/lib/material-viewer-b2827bb6.js.map +1 -0
- package/lib/material-viewer-main-af8b0085.js +2 -0
- package/lib/material-viewer-main-af8b0085.js.map +1 -0
- package/lib/material-viewer-main.nomodule.js +1 -1
- package/lib/planner-2913754c.nomodule.js +2 -0
- package/lib/{planner-4ca54eb0.nomodule.js.map → planner-2913754c.nomodule.js.map} +1 -1
- package/lib/planner-b97471f0.js +2 -0
- package/lib/{planner-0febc715.js.map → planner-b97471f0.js.map} +1 -1
- package/lib/planner-main-1aa8c4a3.js +2 -0
- package/lib/planner-main-1aa8c4a3.js.map +1 -0
- package/lib/planner-main.nomodule.js +1 -1
- package/lib/{query-params-helper-ff314078.nomodule.js → query-params-helper-a2901800.nomodule.js} +2 -2
- package/lib/query-params-helper-a2901800.nomodule.js.map +1 -0
- package/lib/{query-params-helper-15c8e313.js → query-params-helper-a5a14aba.js} +2 -2
- package/lib/query-params-helper-a5a14aba.js.map +1 -0
- package/lib/roomle-configurator-b8201841.nomodule.js +2 -0
- package/lib/roomle-configurator-b8201841.nomodule.js.map +1 -0
- package/lib/roomle-configurator-e4b19e9b.js +2 -0
- package/lib/roomle-configurator-e4b19e9b.js.map +1 -0
- package/lib/{roomle-dependency-injection-24cca85c.nomodule.js → roomle-dependency-injection-32fd5057.nomodule.js} +3 -3
- package/lib/{roomle-dependency-injection-24cca85c.nomodule.js.map → roomle-dependency-injection-32fd5057.nomodule.js.map} +1 -1
- package/lib/{roomle-dependency-injection-3a4888b0.js → roomle-dependency-injection-ca07b7e9.js} +3 -3
- package/lib/{roomle-dependency-injection-3a4888b0.js.map → roomle-dependency-injection-ca07b7e9.js.map} +1 -1
- package/lib/{roomle-sdk-867466a1.js → roomle-sdk-d8109354.js} +2 -2
- package/lib/roomle-sdk-d8109354.js.map +1 -0
- package/lib/roomle-sdk.nomodule.js +1 -1
- package/lib/{script-loader-f025358e.js → script-loader-63d77bd8.js} +2 -2
- package/lib/script-loader-63d77bd8.js.map +1 -0
- package/lib/{script-loader-ff6b5fa6.nomodule.js → script-loader-9ec3b760.nomodule.js} +2 -2
- package/lib/script-loader-9ec3b760.nomodule.js.map +1 -0
- package/lib/static/ConfiguratorKernel-9ea80d0a61a9ef8b.wasm +0 -0
- package/lib/static/{ConfiguratorKernel-ac72763bed504c93.js → ConfiguratorKernel-b59321891a4db889.js} +5 -5
- package/lib/static/{RoomleCore-68f295d905afacc4.js → RoomleCore-80c55bc5e228d066.js} +4 -4
- package/lib/static/RoomleCore-ba2659fe3669eee6.wasm +0 -0
- package/lib/static/RoomleToolsCore-f9ff20842a88560a.wasm +0 -0
- package/lib/static/banana-bbcc0e46fc0ee694.glb +0 -0
- package/lib/{stats-helper-b41d00a0.js → stats-helper-41ab250f.js} +2 -2
- package/lib/stats-helper-41ab250f.js.map +1 -0
- package/lib/{stats-helper-71d9bc03.nomodule.js → stats-helper-83562dab.nomodule.js} +2 -2
- package/lib/stats-helper-83562dab.nomodule.js.map +1 -0
- package/lib/{tools-core-f64d5cdb.js → tools-core-9f7e8491.js} +2 -2
- package/lib/tools-core-9f7e8491.js.map +1 -0
- package/lib/{tools-core-4d12c618.nomodule.js → tools-core-ae63e62c.nomodule.js} +2 -2
- package/lib/tools-core-ae63e62c.nomodule.js.map +1 -0
- package/package.json +2 -2
- package/lib/banana-for-scale-7d78f48c.nomodule.js +0 -2
- package/lib/banana-for-scale-7d78f48c.nomodule.js.map +0 -1
- package/lib/banana-for-scale-988a6552.js +0 -2
- package/lib/banana-for-scale-988a6552.js.map +0 -1
- package/lib/camera-behaviour-6a9b7cad.js +0 -2
- package/lib/camera-behaviour-b2675d79.nomodule.js +0 -2
- package/lib/component-dimensioning-688d0e0a.nomodule.js.map +0 -1
- package/lib/component-dimensioning-7fbc828d.js.map +0 -1
- package/lib/component-raycast-helper-05605544.js.map +0 -1
- package/lib/component-raycast-helper-2d1eaeba.nomodule.js.map +0 -1
- package/lib/configurator-a2f6214f.nomodule.js +0 -2
- package/lib/configurator-a2f6214f.nomodule.js.map +0 -1
- package/lib/configurator-a53389bb.js +0 -2
- package/lib/configurator-a53389bb.js.map +0 -1
- package/lib/configurator-main-6acc5265.js +0 -2
- package/lib/configurator-main-6acc5265.js.map +0 -1
- package/lib/continuous-drawing-helper-ace47360.js.map +0 -1
- package/lib/continuous-drawing-helper-d899205f.nomodule.js.map +0 -1
- package/lib/definitions/configurator-core/src/export/production-manager-export.d.ts +0 -35
- package/lib/definitions/configurator-core/src/utils/export-helper.d.ts +0 -38
- package/lib/definitions/planner-core/src/external-object-api-callbacks.d.ts +0 -116
- package/lib/definitions/planner-core/src/external-object-api.d.ts +0 -85
- package/lib/definitions/planner-core/src/roomle-planner-external-object.d.ts +0 -61
- package/lib/glb-viewer-1990581c.js +0 -2
- package/lib/glb-viewer-1990581c.js.map +0 -1
- package/lib/glb-viewer-69402862.nomodule.js +0 -2
- package/lib/glb-viewer-69402862.nomodule.js.map +0 -1
- package/lib/glb-viewer-camera-behaviour-59819d3f.js.map +0 -1
- package/lib/glb-viewer-camera-behaviour-b8416fc4.nomodule.js.map +0 -1
- package/lib/glb-viewer-main-e8d972d4.js +0 -2
- package/lib/glb-viewer-main-e8d972d4.js.map +0 -1
- package/lib/jszip.min-57906d3b.js.map +0 -1
- package/lib/jszip.min-bcba1021.nomodule.js.map +0 -1
- package/lib/legacy/banana-for-scale-e0d9cc94.legacy.js +0 -2
- package/lib/legacy/banana-for-scale-e0d9cc94.legacy.js.map +0 -1
- package/lib/legacy/camera-behaviour-bf20b84a.legacy.js +0 -2
- package/lib/legacy/component-dimensioning-13ef19d5.legacy.js.map +0 -1
- package/lib/legacy/component-raycast-helper-a785f2c6.legacy.js.map +0 -1
- package/lib/legacy/configurator-4034eb3e.legacy.js +0 -2
- package/lib/legacy/configurator-4034eb3e.legacy.js.map +0 -1
- package/lib/legacy/continuous-drawing-helper-2633a60b.legacy.js.map +0 -1
- package/lib/legacy/glb-viewer-camera-behaviour-618647ad.legacy.js.map +0 -1
- package/lib/legacy/glb-viewer-f5bdbfae.legacy.js +0 -2
- package/lib/legacy/glb-viewer-f5bdbfae.legacy.js.map +0 -1
- package/lib/legacy/jszip.min-5c79c19a.legacy.js.map +0 -1
- package/lib/legacy/material-viewer-fb86574e.legacy.js.map +0 -1
- package/lib/legacy/planner-a173ca26.legacy.js +0 -2
- package/lib/legacy/query-params-helper-0f7e3d70.legacy.js.map +0 -1
- package/lib/legacy/roomle-configurator-36a27fbd.legacy.js +0 -2
- package/lib/legacy/roomle-configurator-36a27fbd.legacy.js.map +0 -1
- package/lib/legacy/script-loader-91e80925.legacy.js.map +0 -1
- package/lib/legacy/static/ConfiguratorKernel-769f167b05de0eeb.wasm +0 -0
- package/lib/legacy/static/RoomleCore-98f486d9f27b0a0e.wasm +0 -0
- package/lib/legacy/static/RoomleToolsCore-ee66388735c6e147.wasm +0 -0
- package/lib/legacy/static/banana_div2-1351c98ec2986be1.glb +0 -0
- package/lib/legacy/static/monkey-0ab775bb33780513.obj +0 -7966
- package/lib/legacy/stats-helper-022f1efc.legacy.js.map +0 -1
- package/lib/legacy/tools-core-92f08984.legacy.js.map +0 -1
- package/lib/material-viewer-0607803c.js.map +0 -1
- package/lib/material-viewer-93907045.nomodule.js.map +0 -1
- package/lib/material-viewer-main-020a9715.js +0 -2
- package/lib/material-viewer-main-020a9715.js.map +0 -1
- package/lib/planner-0febc715.js +0 -2
- package/lib/planner-4ca54eb0.nomodule.js +0 -2
- package/lib/planner-main-605b72c1.js +0 -2
- package/lib/planner-main-605b72c1.js.map +0 -1
- package/lib/query-params-helper-15c8e313.js.map +0 -1
- package/lib/query-params-helper-ff314078.nomodule.js.map +0 -1
- package/lib/roomle-configurator-64318e1f.nomodule.js +0 -2
- package/lib/roomle-configurator-64318e1f.nomodule.js.map +0 -1
- package/lib/roomle-configurator-b33481ea.js +0 -2
- package/lib/roomle-configurator-b33481ea.js.map +0 -1
- package/lib/roomle-sdk-867466a1.js.map +0 -1
- package/lib/script-loader-f025358e.js.map +0 -1
- package/lib/script-loader-ff6b5fa6.nomodule.js.map +0 -1
- package/lib/static/ConfiguratorKernel-769f167b05de0eeb.wasm +0 -0
- package/lib/static/RoomleCore-98f486d9f27b0a0e.wasm +0 -0
- package/lib/static/RoomleToolsCore-ee66388735c6e147.wasm +0 -0
- package/lib/static/banana_div2-1351c98ec2986be1.glb +0 -0
- package/lib/static/monkey-0ab775bb33780513.obj +0 -7966
- package/lib/stats-helper-71d9bc03.nomodule.js.map +0 -1
- package/lib/stats-helper-b41d00a0.js.map +0 -1
- package/lib/tools-core-4d12c618.nomodule.js.map +0 -1
- package/lib/tools-core-f64d5cdb.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=component-dimensioning-
|
|
1
|
+
System.register(["./roomle-dependency-injection-32fd5057.nomodule.js","./main-thread-to-worker-1a58abb6.nomodule.js","./TextGeometry-028ef3cf.nomodule.js"],(function(e){var i,t,n,s,o,a,h,d,_,l,r,g,m,c,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.bn,_=e.B,l=e.G,r=e.z,g=e.b,m=e.Q,c=e.bG,w=e.b8},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()}_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 _;this._line=new l(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 _,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),c=new p(d,h);c.computeBoundingBox();let w=c.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=c,0===this._dimensioning.type.value&&this._addText(i,c,new m,new s(0,.04,0)),1===this._dimensioning.type.value){let e=new m,t=this._getXSign()>0?Math.PI/2:Math.PI/2*3;e.setFromAxisAngle(new s(0,0,1),t),this._addText(i,c,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 m).setFromAxisAngle(new s(-1,0,0),Math.PI/2),n=(new m).setFromAxisAngle(new s(0,0,1),e);this._addText(i,c,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 c(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 c(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)),_=o.clone().add(new s(n,0,this._dimensioning.to));this._addLine(a,h),this._addLine(d,_)}_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 c(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)),_=o.clone().add(new s(n,this._dimensioning.to,0));this._addLine(a,h),this._addLine(d,_)}_addLine(e,i){let t=new _,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 l(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-b4521b9b.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-dimensioning-b4521b9b.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-ca07b7e9.js";import{O as Object3D,a as Vector3,u as LineBasicMaterial,h as MeshBasicMaterial,w as DoubleSide,bn as MeshPhongMaterial,B as BufferGeometry,G as Line,z as Mesh,b as BufferAttribute,Q as Quaternion,bG as Line3,b8 as PlaneGeometry}from"./main-thread-to-worker-554053aa.js";import{T as TextGeometry}from"./TextGeometry-def07ca8.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()}_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},h=this._dimensioning.label?this._dimensioning.label:this._unitFormatter.formatMMValueToUnitString(1e3*s),r=new TextGeometry(h,a);r.computeBoundingBox();let _=r.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 d=[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(d),3)),this._line.geometry.dispose(),this._line.geometry=t,this.add(this._line),this._text.geometry=r,0===this._dimensioning.type.value&&this._addText(i,r,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,r,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,r,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)),h=n.clone().add(new Vector3(this._dimensioning.to,t,0));this._addLine(s,o),this._addLine(a,h)}_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)),h=s.clone().add(new Vector3(t,0,this._dimensioning.to)),r=s.clone().add(new Vector3(n,0,this._dimensioning.to));this._addLine(o,a),this._addLine(h,r)}_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)),h=s.clone().add(new Vector3(t,this._dimensioning.to,0)),r=s.clone().add(new Vector3(n,this._dimensioning.to,0));this._addLine(o,a),this._addLine(h,r)}_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-c7ed3400.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-dimensioning-c7ed3400.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-1a58abb6.nomodule.js","./roomle-dependency-injection-32fd5057.nomodule.js"],(function(e){var t,i,n,s,a,r,c,o,l;return{setters:[function(e){t=e.bw,i=e.bP,n=e.z,s=e.v,a=e.ad,r=e.a,c=e.am,o=e.k},function(e){l=e.ao}],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){t!==this._nonTransparentComponent&&(this._nonTransparentComponent=t,this._changeMaterialsOnSelect(e,t,i))}_changeMaterialsOnSelect(e,t,i=!1){if(e.children.length>0&&e.children.forEach(s=>{const a=t&&e.id===t.id||i,r=!(s instanceof n);this._changeMaterialsOnSelect(s,t,(!a||!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}));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}),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-14987296.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-raycast-helper-14987296.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{bw as Raycaster,bP 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{bw as Raycaster,bP 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-554053aa.js";import{ao as transitionTransparencyOfMaterial}from"./roomle-dependency-injection-ca07b7e9.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){t!==this._nonTransparentComponent&&(this._nonTransparentComponent=t,this._changeMaterialsOnSelect(e,t,a))}_changeMaterialsOnSelect(e,t,a=!1){if(e.children.length>0&&e.children.forEach(i=>{const s=t&&e.id===t.id||a,r=!(i instanceof Mesh);this._changeMaterialsOnSelect(i,t,(!s||!r)&&s)}),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}));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}),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-96390e25.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-raycast-helper-96390e25.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./script-loader-9ec3b760.nomodule.js","./roomle-dependency-injection-32fd5057.nomodule.js","./camera-behaviour-326d2222.nomodule.js","./component-raycast-helper-14987296.nomodule.js","./roomle-configurator-b8201841.nomodule.js","./query-params-helper-a2901800.nomodule.js","./main-thread-to-worker-1a58abb6.nomodule.js","./default-light-setting-1aee22fe.nomodule.js"],(function(e){var o,n,t,r,a,i,c,s,l,u,p,d,f,h;return{setters:[function(e){o=e.S,n=e.M},function(e){t=e.D,r=e.L,a=e.R,i=e.a,c=e.b,s=e.A},function(e){l=e.C,u=e.a},function(e){p=e.default},function(e){d=e.C,f=e.a,h=e.R},function(){},function(){},function(){}],execute:function(){const m=[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",i),new t("configurator-scene-manager",d,1),new t("configurator-view-model",f,1),new t("component-raycast-helper",p,0)];e("Configurator",class extends n{setupDependencies(){c.setup(m),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-5bf3781b.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-5bf3781b.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{S as ScriptLoader,M as Main}from"./script-loader-63d77bd8.js";import{D as DependencyInjectionAssignment,L as Logger,R as RapiAccess,a as DataSyncer,b as RoomleDependencyInjection,A as AppContext}from"./roomle-dependency-injection-ca07b7e9.js";import{C as CameraControl3D,a as CameraControl}from"./camera-behaviour-945d9ff2.js";import ComponentRaycastHelper from"./component-raycast-helper-96390e25.js";import{C as ConfiguratorSceneManager,a as ConfiguratorViewModel,R as RoomleConfigurator}from"./roomle-configurator-e4b19e9b.js";import"./query-params-helper-a5a14aba.js";import"./main-thread-to-worker-554053aa.js";import"./default-light-setting-36de53a7.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-664af113.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-664af113.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Configurator}from"./configurator-664af113.js";import"./script-loader-63d77bd8.js";import"./query-params-helper-a5a14aba.js";import"./main-thread-to-worker-554053aa.js";import"./roomle-dependency-injection-ca07b7e9.js";import"./camera-behaviour-945d9ff2.js";import"./component-raycast-helper-96390e25.js";import"./roomle-configurator-e4b19e9b.js";import"./default-light-setting-36de53a7.js";(new Configurator).boot(),window.requestIdleCallback||(window.requestIdleCallback=e=>setTimeout(()=>{let a=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-a))})},1)),window.cancelIdleCallback||(window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)});
|
|
2
|
+
//# sourceMappingURL=configurator-main-f26b40d7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-main-f26b40d7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./configurator-
|
|
1
|
+
System.register(["./configurator-5bf3781b.nomodule.js","./script-loader-9ec3b760.nomodule.js","./query-params-helper-a2901800.nomodule.js","./main-thread-to-worker-1a58abb6.nomodule.js","./roomle-dependency-injection-32fd5057.nomodule.js","./camera-behaviour-326d2222.nomodule.js","./component-raycast-helper-14987296.nomodule.js","./roomle-configurator-b8201841.nomodule.js","./default-light-setting-1aee22fe.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
|
-
import{ab as convertToTHREE}from"./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=continuous-drawing-helper-
|
|
1
|
+
import{ab as convertToTHREE}from"./roomle-dependency-injection-ca07b7e9.js";import{aT as RingGeometry,h as MeshBasicMaterial,w as DoubleSide,z as Mesh}from"./main-thread-to-worker-554053aa.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-2e02ceb2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuous-drawing-helper-2e02ceb2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=continuous-drawing-helper-
|
|
1
|
+
System.register(["./roomle-dependency-injection-32fd5057.nomodule.js","./main-thread-to-worker-1a58abb6.nomodule.js"],(function(e){var i,t,r,n,s;return{setters:[function(e){i=e.ab},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-40dda690.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuous-drawing-helper-40dda690.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./camera-behaviour-
|
|
2
|
-
//# sourceMappingURL=
|
|
1
|
+
System.register(["./camera-behaviour-326d2222.nomodule.js","./roomle-dependency-injection-32fd5057.nomodule.js","./main-thread-to-worker-1a58abb6.nomodule.js"],(function(i){var t,a,e,n,o,s,h;return{setters:[function(i){t=i.L},function(i){a=i.af},function(i){e=i.D,n=i.C,o=i.V,s=i.a,h=i.A}],execute:function(){i("D",class extends t{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 e(new n(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 o(1024,1024),this._mainDirectionalLight.visible=!0,this._mainDirectionalLight.lookAt(new s(0,0,0)),this._secondDirectionalLight=new e(new n(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 o(1024,1024),this._secondDirectionalLight.visible=!0,this._secondDirectionalLight.lookAt(new s(0,0,0)),this._ambientLight=new h(new n(this._params.ambientLight.color),.5),this._ambientLight.layers.set(1),this.addToScene()}needsBounds(){return!0}updateBounds(i){const t=i.getSize(new s),a=Math.max(Math.max(t.x,t.y),t.z)+1,e=a/2;this._mainDirectionalLight.shadow.camera.top=e,this._mainDirectionalLight.shadow.camera.bottom=-e,this._mainDirectionalLight.shadow.camera.left=-e,this._mainDirectionalLight.shadow.camera.right=e,this._mainDirectionalLight.shadow.camera.near=.01,this._mainDirectionalLight.shadow.camera.far=4*a,this._mainDirectionalLight.shadow.camera.updateProjectionMatrix(),this._secondDirectionalLight.shadow.camera.top=e,this._secondDirectionalLight.shadow.camera.bottom=-e,this._secondDirectionalLight.shadow.camera.left=-e,this._secondDirectionalLight.shadow.camera.right=e,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=a();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 n(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 n(i)),t.add(this._mainDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0))),t.add(this._mainDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0))),t.add(this._mainDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(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 n(i)),t.add(this._secondDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0))),t.add(this._secondDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0))),t.add(this._secondDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new s(0,0,0)))}}}})}}}));
|
|
2
|
+
//# sourceMappingURL=default-light-setting-1aee22fe.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-light-setting-1aee22fe.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{L as LightSetting}from"./camera-behaviour-
|
|
2
|
-
//# sourceMappingURL=
|
|
1
|
+
import{L as LightSetting}from"./camera-behaviour-945d9ff2.js";import{af as getGUI}from"./roomle-dependency-injection-ca07b7e9.js";import{D as DirectionalLight,C as Color,V as Vector2,a as Vector3,A as AmbientLight}from"./main-thread-to-worker-554053aa.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 DirectionalLight(new 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 Vector2(1024,1024),this._mainDirectionalLight.visible=!0,this._mainDirectionalLight.lookAt(new Vector3(0,0,0)),this._secondDirectionalLight=new DirectionalLight(new 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 Vector2(1024,1024),this._secondDirectionalLight.visible=!0,this._secondDirectionalLight.lookAt(new Vector3(0,0,0)),this._ambientLight=new AmbientLight(new Color(this._params.ambientLight.color),.5),this._ambientLight.layers.set(1),this.addToScene()}needsBounds(){return!0}updateBounds(i){const t=i.getSize(new 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 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 Color(i)),t.add(this._mainDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new 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 Color(i)),t.add(this._secondDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new Vector3(0,0,0)))}}}}export{DefaultLightSetting as D};
|
|
2
|
+
//# sourceMappingURL=default-light-setting-36de53a7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-light-setting-36de53a7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -38,8 +38,8 @@ export default class ConfiguratorKernelAccess extends CommonKernelAccess {
|
|
|
38
38
|
private _addAnimationParameters;
|
|
39
39
|
private _updateComponentParameters;
|
|
40
40
|
selectionChange(componentId: number, isRoot: boolean): void;
|
|
41
|
-
protected _componentSelectionChanged(_planObject: PlanObject, _component: KernelComponent
|
|
42
|
-
protected
|
|
41
|
+
protected _componentSelectionChanged(_planObject: PlanObject, _component: KernelComponent): void;
|
|
42
|
+
protected _parameterChanged(_objectOrComponentId: number, _parameterKey: string, _value: string): void;
|
|
43
43
|
multiSelectionChange(runtimeComponentIds: number[], rootComponentId: number): void;
|
|
44
44
|
private _updateCommonComponentDependencies;
|
|
45
45
|
private _updateComponentChildren;
|
|
@@ -50,11 +50,8 @@ export default class ConfiguratorKernelAccess extends CommonKernelAccess {
|
|
|
50
50
|
updatePlanObjectDependencies(planObjectId: number): void;
|
|
51
51
|
private _updateConfigurationHasChildren;
|
|
52
52
|
dockComponent(parentId: number, parentDockId: number, childId: number, childDockId: number): void;
|
|
53
|
-
dockExternalObjectComponent(_parentId: number, _parentDockId: number, _childId: number, _childDockId: number): void;
|
|
54
53
|
changeUseOfHDGeometry(context: ConfiguratorContext, useHDGeometry: boolean): void;
|
|
55
54
|
webGlPreviewDockings(context: ConfiguratorContext, dragIn: boolean): void;
|
|
56
|
-
webGlPreviewDockingsForKernelObjects(context: ConfiguratorContext, dragIn: boolean): void;
|
|
57
|
-
webGlPreviewDockingsForExternalObjects(context: ConfiguratorContext, _dragIn: boolean): void;
|
|
58
55
|
previewDockingsWithDrag(componentId: number, planObjectId: number): void;
|
|
59
56
|
cancelDocking(componentId: number): void;
|
|
60
57
|
loadConfiguration(configuration: ConfigurationString): void;
|
|
@@ -92,16 +92,6 @@ 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;
|
|
105
95
|
}
|
|
106
96
|
export type RoomleColors = keyof typeof ROOMLE_COLORS;
|
|
107
97
|
export type ColorsIn3dScene = Record<RoomleColors, HexColorString | HexColorNumber>;
|
|
@@ -21,7 +21,6 @@ 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';
|
|
25
24
|
interface ConfigurationLoadedResponse {
|
|
26
25
|
partList: KernelPartList;
|
|
27
26
|
errors: string[];
|
|
@@ -646,9 +645,7 @@ export default class RoomleConfigurator implements GlobalAPI, Context, KernelUti
|
|
|
646
645
|
defaultChild: UiPossibleChild;
|
|
647
646
|
}>;
|
|
648
647
|
private _addAdditionalInfoToPossibleChildren;
|
|
649
|
-
private _getPossibleChildren;
|
|
650
648
|
private _getPossibleChildrenForKernelPossibleChildren;
|
|
651
|
-
private _getPossibleChildrenForExternalPossibleChildren;
|
|
652
649
|
/**
|
|
653
650
|
* returns unit formatter for formatting input und output values in scene
|
|
654
651
|
*/
|
|
@@ -669,12 +666,9 @@ export default class RoomleConfigurator implements GlobalAPI, Context, KernelUti
|
|
|
669
666
|
getTools(): Promise<RoomleToolsCore>;
|
|
670
667
|
exportImageFromCamera(filename?: string, shouldWaitForAssets?: boolean): Promise<void>;
|
|
671
668
|
calcPartsPriceSum(partList: KernelPartList): Promise<KernelPartListPrice>;
|
|
672
|
-
generateBlueOceanPoCJSON(): Promise<any>;
|
|
673
669
|
generateProductionServiceExport(defaultExportDefinition?: string): Promise<any>;
|
|
674
670
|
generateTCExport(defaultExportDefinition?: string): Promise<any>;
|
|
675
671
|
generateIMOSiXExport(defaultExportDefinition?: string): Promise<any>;
|
|
676
|
-
generateHOMAGiXExport(defaultExportDefinition?: string, homagIxOrderData?: HomagIxOrderParams, homagIxHeaderParams?: HomagIxHeaderParams, homagIxArticleParams?: HomagIxArticleParams): Promise<string>;
|
|
677
|
-
downloadHomagIxExportPoC(): Promise<any>;
|
|
678
672
|
generateExport(exportType: ExportType, defaultExportDefinition?: string): Promise<any>;
|
|
679
673
|
setEnvironmentMap(params: {
|
|
680
674
|
url?: string;
|
|
@@ -682,9 +676,5 @@ export default class RoomleConfigurator implements GlobalAPI, Context, KernelUti
|
|
|
682
676
|
rotation?: number;
|
|
683
677
|
maxLightSources?: number;
|
|
684
678
|
}): 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>;
|
|
689
679
|
}
|
|
690
680
|
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { default as BANANA_FILE_NAME } from '../../public/geometry/
|
|
2
|
-
export { default as MONKEY_OBJ_FILE_NAME } from '../../public/geometry/monkey.obj';
|
|
1
|
+
export { default as BANANA_FILE_NAME } from '../../public/geometry/banana.glb';
|
|
@@ -100,7 +100,6 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
100
100
|
protected disablePanning(): void;
|
|
101
101
|
cancelPreviousDockings(): void;
|
|
102
102
|
cancelComponentSelection(resetCamera?: boolean): void;
|
|
103
|
-
protected notifyPlannerOnComponentSelectionCancel(): void;
|
|
104
103
|
private _cancelSelection;
|
|
105
104
|
private _selectComponent;
|
|
106
105
|
private _deselectComponent;
|
|
@@ -117,8 +116,6 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
117
116
|
requestDockingsPreview(userInitiated: boolean, possibleChild?: UiPossibleChild, dragEvent?: DragEvent, dragIn?: boolean): void;
|
|
118
117
|
private _requestDockingsPreviewWithDrag;
|
|
119
118
|
private _dockComponent;
|
|
120
|
-
private _dockKernelComponent;
|
|
121
|
-
private _dockExternalComponent;
|
|
122
119
|
private _onSelectedRuntimeComponentsChange;
|
|
123
120
|
private _onSelectedRuntimeComponentChange;
|
|
124
121
|
requestDeleteSelectedComponent(): void;
|
|
@@ -152,5 +149,4 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
152
149
|
protected _shouldRenderUi(): boolean;
|
|
153
150
|
protected setEventHandlerObject(object: Object3D): void;
|
|
154
151
|
protected _readyForRender(): void;
|
|
155
|
-
animateElement(elementId: number, parameterName: string, value: string, applyToChildren: boolean, animate: boolean): void;
|
|
156
152
|
}
|
|
@@ -14,7 +14,6 @@ import type { MeasurementLineDimension, MeasurementLineDimensionTransferable } f
|
|
|
14
14
|
import type { ConstructionMeasurementsTransferable } from './utils/measurements';
|
|
15
15
|
import type { FloorAreaDataTransferable } from './view-model/floor-plan-element-view-model';
|
|
16
16
|
import { type BASE_CONTEXT } from '../../common-core/src/main';
|
|
17
|
-
import type { ExternalObjectGroup, ExternalObjectGroupAndModules, ExternalObjectGroupPosition, ExternalObjectRootModuleCollection, ExternalObjectUiCallback } from './external-object-api-callbacks';
|
|
18
17
|
export interface SelectionPayload {
|
|
19
18
|
item?: RapiItem;
|
|
20
19
|
configuration?: RapiConfiguration;
|
|
@@ -30,7 +29,7 @@ export declare const PLAN_ELEMENT_CHANGE_TYPES: {
|
|
|
30
29
|
readonly CHANGED: "changed";
|
|
31
30
|
readonly REMOVED: "removed";
|
|
32
31
|
};
|
|
33
|
-
export default class RoomlePlannerUiCallback extends UiCallback
|
|
32
|
+
export default class RoomlePlannerUiCallback extends UiCallback {
|
|
34
33
|
constructor(creator: string);
|
|
35
34
|
onItemsLoaded: () => void;
|
|
36
35
|
onCameraChanged: (type: Enumify<typeof CAMERA_TYPE>) => void;
|
|
@@ -151,133 +150,10 @@ export default class RoomlePlannerUiCallback extends UiCallback implements Exter
|
|
|
151
150
|
* @param floorAreasData An array of objects, each representing the area and related data for each room within the floor plan.
|
|
152
151
|
*/
|
|
153
152
|
onFloorPlanAreasUpdated: (floorAreasData: FloorAreaDataTransferable[]) => void;
|
|
154
|
-
/**
|
|
155
|
-
* Callback invoked when the selection of a component has been canceled.
|
|
156
|
-
*/
|
|
157
|
-
onComponentSelectionCancel: () => void;
|
|
158
|
-
/**
|
|
159
|
-
* Callback invoked when a plan snapshot is saved.
|
|
160
|
-
* @param planId The ID of the plan snapshot.
|
|
161
|
-
*/
|
|
162
|
-
onPlanSnapshotCreated: (planId: string) => void;
|
|
163
|
-
/**
|
|
164
|
-
* Callback invoked when an object is started to be configured.
|
|
165
|
-
*/
|
|
166
|
-
onStartConfiguring: () => Promise<void>;
|
|
167
|
-
/**
|
|
168
|
-
* Callback invoked when configuration is finished.
|
|
169
|
-
*/
|
|
170
|
-
onBackToPlanner: () => Promise<void>;
|
|
171
153
|
/**
|
|
172
154
|
* This callback is invoked when the context of the planner changes
|
|
173
155
|
* For example when it switches from planner to configurator, or from planner to viewer
|
|
174
156
|
* @param context
|
|
175
157
|
*/
|
|
176
158
|
onContextChanged: (context: BASE_CONTEXT) => void;
|
|
177
|
-
/**
|
|
178
|
-
* documented in interface ExternalObjectUiCallback
|
|
179
|
-
*/
|
|
180
|
-
onMergeExternalObjectGroup: (targetGroup: ExternalObjectGroupAndModules, sourceGroupId: string) => void;
|
|
181
|
-
/**
|
|
182
|
-
* documented in interface ExternalObjectUiCallback
|
|
183
|
-
*/
|
|
184
|
-
onSplitExternalObjectGroup: (originalGroup: ExternalObjectGroupAndModules, newGroupedRootModules: ExternalObjectRootModuleCollection) => void;
|
|
185
|
-
/**
|
|
186
|
-
* documented in interface ExternalObjectUiCallback
|
|
187
|
-
*/
|
|
188
|
-
onDeleteExternalObjectGroup: (groupIdToDelete: string) => void;
|
|
189
|
-
/**
|
|
190
|
-
* documented in interface ExternalObjectUiCallback
|
|
191
|
-
*/
|
|
192
|
-
onDeleteExternalObjectRootModule: (_remainingGroup: ExternalObjectGroupAndModules, rootModuleIdToDelete: string) => void;
|
|
193
|
-
/**
|
|
194
|
-
* documented in interface ExternalObjectUiCallback
|
|
195
|
-
*/
|
|
196
|
-
onDeleteExternalObjectSubModule: (rootModuleId: string, subModuleIdToDelete: string) => void;
|
|
197
|
-
/**
|
|
198
|
-
* documented in interface ExternalObjectUiCallback
|
|
199
|
-
*/
|
|
200
|
-
onDuplicateExternalObjectGroup: (sourceGroupId: string, newGroupPosition: ExternalObjectGroupPosition) => void;
|
|
201
|
-
/**
|
|
202
|
-
* documented in interface ExternalObjectUiCallback
|
|
203
|
-
*/
|
|
204
|
-
onMoveExternalObjectGroup: (group: ExternalObjectGroup) => void;
|
|
205
|
-
/**
|
|
206
|
-
* documented in interface ExternalObjectUiCallback
|
|
207
|
-
*/
|
|
208
|
-
onExternalObjectEnvironmentChanged: (affectedGroupIds: string[]) => void;
|
|
209
|
-
/**
|
|
210
|
-
* documented in interface ExternalObjectUiCallback
|
|
211
|
-
*/
|
|
212
|
-
onExternalObjectGroupChanged: (stringifiedGroupData: string) => void;
|
|
213
|
-
/**
|
|
214
|
-
* documented in interface ExternalObjectUiCallback
|
|
215
|
-
*/
|
|
216
|
-
onExternalObjectAttributeChanged: (rootModuleId: string, subModuleId: string | null, attributeId: string, value: string) => void;
|
|
217
|
-
/**
|
|
218
|
-
* documented in interface ExternalObjectUiCallback
|
|
219
|
-
*/
|
|
220
|
-
onExternalObjectModuleSelected: (groupId: string, rootModuleId: string | null, subModuleId: string | null) => void;
|
|
221
|
-
/**
|
|
222
|
-
* Legacy callback, can be deleted as soon as the implementation in the Homag TC has been adapted to the new API
|
|
223
|
-
*
|
|
224
|
-
* Callback invoked when the selection of an external component has changed.
|
|
225
|
-
* @param groupId The ID of the plan object to which the external component is attached.
|
|
226
|
-
* @param moduleId The ID of the selected external component.
|
|
227
|
-
*/
|
|
228
|
-
onExternalComponentSelectionChanged: (groupId: string, moduleId: string | null) => void;
|
|
229
|
-
/**
|
|
230
|
-
* Legacy callback, can be deleted as soon as the implementation in the Homag TC has been adapted to the new API
|
|
231
|
-
*
|
|
232
|
-
* Callback invoked when the attribute value of an external component has changed.
|
|
233
|
-
* @param groupId The ID of the plan object to which the external component is attached.
|
|
234
|
-
* @param moduleId The module ID of the selected external component.
|
|
235
|
-
* @param attrId The id of the changed attribute.
|
|
236
|
-
* @param value The new value of the changed attribute.
|
|
237
|
-
*/
|
|
238
|
-
onExternalComponentParameterChanged: (groupId: string, moduleId: string, attrId: string, value: string) => void;
|
|
239
|
-
/**
|
|
240
|
-
* Legacy callback, can be deleted as soon as the implementation in the Homag TC has been adapted to the new API
|
|
241
|
-
* Modules of external objects must always be created by the Homag TC, therefore this callback does not exist in the new API.
|
|
242
|
-
*
|
|
243
|
-
* Callback invoked when an external object is created.
|
|
244
|
-
* @param groupId The ID of the new external object.
|
|
245
|
-
* @param configuration The serialized article data Json.
|
|
246
|
-
*/
|
|
247
|
-
onExternalPlanObjectCreated: (groupId: string, configuration: string) => void;
|
|
248
|
-
/**
|
|
249
|
-
* Legacy callback, can be deleted as soon as the implementation in the Homag TC has been adapted to the new API
|
|
250
|
-
* Modules of external objects must always be manipulated by the Homag TC, therefore this callback does not exist in the new API.
|
|
251
|
-
*
|
|
252
|
-
* Callback invoked when an external object has been changed (undo/redo).
|
|
253
|
-
* @param planObjectId The ID of the plan object to which the external component is attached.
|
|
254
|
-
* @param groupId The ID of the new external object.
|
|
255
|
-
* @param configuration The serialized article data Json.
|
|
256
|
-
*/
|
|
257
|
-
onExternalPlanObjectChanged: (groupId: string, configuration: string) => void;
|
|
258
|
-
/**
|
|
259
|
-
* Legacy callback, can be deleted as soon as the implementation in the Homag TC has been adapted to the new API
|
|
260
|
-
*
|
|
261
|
-
* Callback invoked when an external object is deleted.
|
|
262
|
-
* @param groupId The ID of the external object to be removed.
|
|
263
|
-
*/
|
|
264
|
-
onExternalPlanObjectRemoved: (articleId: string) => void;
|
|
265
|
-
/**
|
|
266
|
-
* Legacy callback, can be deleted as soon as the implementation in the Homag TC has been adapted to the new API
|
|
267
|
-
*
|
|
268
|
-
* Callback invoked when a root module or sub-module of an external object is deleted.
|
|
269
|
-
* @param groupId The ID of the external object that is the owner of the module.
|
|
270
|
-
* @param moduleId The ID of the module to be removed.
|
|
271
|
-
*/
|
|
272
|
-
onExternalPlanComponentRemoved: (groupId: string, moduleId: string) => void;
|
|
273
|
-
/**
|
|
274
|
-
* Legacy callback, can be deleted as soon as the implementation in the Homag TC has been adapted to the new API
|
|
275
|
-
* Modules of external objects must always be manipulated by the Homag TC, therefore this callback does not exist in the new API.
|
|
276
|
-
*
|
|
277
|
-
* Callback invoked when a module is added to an external object.
|
|
278
|
-
* @param groupId The ID of the external object to which the module is added.
|
|
279
|
-
* @param parentModuleId The ID of th module to which the module is added. If the new module is a root module, this argument is null.
|
|
280
|
-
* @param moduleName The name of the module to be added. This must be one of the "allowedChildModules" of the parent module.
|
|
281
|
-
*/
|
|
282
|
-
onExternalPlanComponentAdded: (groupId: string, parentModuleId: string | null, moduleName: string) => void;
|
|
283
159
|
}
|
|
@@ -22,9 +22,6 @@ import type WallPlanElementViewModel from './view-model/wall-plan-element-view-m
|
|
|
22
22
|
import type ConfiguratorContext from '../../common-core/src/webgl/configurator-context';
|
|
23
23
|
import type { PlanObject } from '../../typings/planner';
|
|
24
24
|
import type IdbManager from '../../common-core/src/services/idb-manager';
|
|
25
|
-
import type { TcAPI } from './roomle-planner-external-object';
|
|
26
|
-
import type { ExternalObjectAPI, ExternalObjectApiConfiguration } from './external-object-api';
|
|
27
|
-
export type ID_TYPE = 'rml_id' | 'tc_id' | 'rml_serialized' | 'tc_serialized';
|
|
28
25
|
export interface RoomlePlannerCallback {
|
|
29
26
|
switchToConfigurator: () => Promise<Configurator>;
|
|
30
27
|
switchToViewer: () => Promise<GlbViewer>;
|
|
@@ -60,7 +57,7 @@ export interface BatchPaintMaterial {
|
|
|
60
57
|
rgbValue?: number;
|
|
61
58
|
catalogItemId?: RapiId;
|
|
62
59
|
}
|
|
63
|
-
export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlannerCallback, GlobalAPI, Context, KernelUtilityForUi, ExternalEmbeddable<RoomlePlannerUiCallback>, RubensAPI
|
|
60
|
+
export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlannerCallback, GlobalAPI, Context, KernelUtilityForUi, ExternalEmbeddable<RoomlePlannerUiCallback>, RubensAPI {
|
|
64
61
|
_creator_: string;
|
|
65
62
|
private _configuratorContext;
|
|
66
63
|
private _domHelper;
|
|
@@ -225,7 +222,7 @@ export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlann
|
|
|
225
222
|
* Disable the selection of multiple elements.
|
|
226
223
|
*/
|
|
227
224
|
disableMultiselect(): void;
|
|
228
|
-
dragInObject(
|
|
225
|
+
dragInObject(id: RapiId, dragEvent: DragEvent): Promise<RuntimeId>;
|
|
229
226
|
/**
|
|
230
227
|
* enable snapping of object to object and object to wall
|
|
231
228
|
*/
|
|
@@ -356,24 +353,4 @@ export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlann
|
|
|
356
353
|
* @returns {Promise<string>} - A promise that resolves to the URL.
|
|
357
354
|
*/
|
|
358
355
|
resolveShortUrl(shortUrl: string): Promise<string>;
|
|
359
|
-
downloadHomagIxExportPoC(): Promise<any>;
|
|
360
|
-
configureExternalObjectApi(configurationJson: string | ExternalObjectApiConfiguration): void;
|
|
361
|
-
loadExternalObjectLibrary(libraryJson: string | object): void;
|
|
362
|
-
loadExternalObjectGroup(groupJson: string | object, findFreeSpaceInPlane: boolean): Promise<void>;
|
|
363
|
-
private _loadExternalObjectGroup;
|
|
364
|
-
removeExternalObjectGroup(groupId: string): Promise<void>;
|
|
365
|
-
selectExternalObjectGroup(groupId: string): Promise<void>;
|
|
366
|
-
selectExternalObjectRootModule(rootModuleId: string): Promise<void>;
|
|
367
|
-
selectExternalObjectSubModule(rootModuleId: string, subModuleId: string): Promise<void>;
|
|
368
|
-
openOrCloseGeometryOfExternalObject(groupIdOrRootModuleId: string, subModuleId: string | null, open: boolean, animate: boolean): Promise<void>;
|
|
369
|
-
private _selectKernelComponent;
|
|
370
|
-
_selectExternalObjectGroup(groupId: string, switchToPlanner: boolean): Promise<void>;
|
|
371
|
-
_selectExternalObjectModule(rootModuleId: string, subModuleId: string | null, selectPlanObject: boolean, switchToConfigurator: boolean): Promise<void>;
|
|
372
|
-
loadTCProperties(propertiesJson: string | ExternalObjectApiConfiguration): void;
|
|
373
|
-
loadTCMasterData(masterDataJson: string | object): void;
|
|
374
|
-
loadTCArticles(articleJson: string): Promise<void>;
|
|
375
|
-
removeTCArticle(groupId: string): Promise<void>;
|
|
376
|
-
selectTCArticle(groupId: string): Promise<void>;
|
|
377
|
-
selectTCModule(groupId: string, moduleId: string): Promise<void>;
|
|
378
|
-
openCloseTCArticle(groupId: string, open: boolean, animate: boolean): Promise<void>;
|
|
379
356
|
}
|