@roomle/web-sdk 2.89.0 → 2.90.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/lib/{banana-for-scale-7428c6ea.js → banana-for-scale-9ae08103.js} +2 -2
- package/lib/{banana-for-scale-7428c6ea.js.map → banana-for-scale-9ae08103.js.map} +1 -1
- package/lib/{banana-for-scale-f86f4987.nomodule.js → banana-for-scale-d31a3d1c.nomodule.js} +2 -2
- package/lib/{banana-for-scale-f86f4987.nomodule.js.map → banana-for-scale-d31a3d1c.nomodule.js.map} +1 -1
- package/lib/camera-behaviour-76965e97.js +2 -0
- package/lib/{camera-behaviour-b9ce9523.js.map → camera-behaviour-76965e97.js.map} +1 -1
- package/lib/camera-behaviour-b6ff24ab.nomodule.js +2 -0
- package/lib/{camera-behaviour-43652f02.nomodule.js.map → camera-behaviour-b6ff24ab.nomodule.js.map} +1 -1
- package/lib/{component-dimensioning-9a4693bd.nomodule.js → component-dimensioning-37755712.nomodule.js} +2 -2
- package/lib/component-dimensioning-37755712.nomodule.js.map +1 -0
- package/lib/{component-dimensioning-e618f2c4.js → component-dimensioning-cdd7bd58.js} +2 -2
- package/lib/component-dimensioning-cdd7bd58.js.map +1 -0
- package/lib/{component-raycast-helper-ac7ab652.nomodule.js → component-raycast-helper-1d8c2fdb.nomodule.js} +2 -2
- package/lib/component-raycast-helper-1d8c2fdb.nomodule.js.map +1 -0
- package/lib/{component-raycast-helper-2322d2eb.js → component-raycast-helper-3a428a4e.js} +2 -2
- package/lib/component-raycast-helper-3a428a4e.js.map +1 -0
- package/lib/{configurator-41ceddf2.nomodule.js → configurator-046b2ff5.nomodule.js} +2 -2
- package/lib/configurator-046b2ff5.nomodule.js.map +1 -0
- package/lib/{configurator-2d8344bd.js → configurator-c192a739.js} +2 -2
- package/lib/configurator-c192a739.js.map +1 -0
- package/lib/configurator-main-f2d1cb3c.js +2 -0
- package/lib/configurator-main-f2d1cb3c.js.map +1 -0
- package/lib/configurator-main.nomodule.js +1 -1
- package/lib/{continuous-drawing-helper-405d8b9c.nomodule.js → continuous-drawing-helper-e62e27a4.nomodule.js} +2 -2
- package/lib/continuous-drawing-helper-e62e27a4.nomodule.js.map +1 -0
- package/lib/{continuous-drawing-helper-ffcc1e62.js → continuous-drawing-helper-f34581fd.js} +2 -2
- package/lib/continuous-drawing-helper-f34581fd.js.map +1 -0
- package/lib/{default-light-setting-cd1f564d.nomodule.js → default-light-setting-541fa1a3.nomodule.js} +2 -2
- package/lib/default-light-setting-541fa1a3.nomodule.js.map +1 -0
- package/lib/{default-light-setting-2f58f07d.js → default-light-setting-5a2dfb25.js} +2 -2
- package/lib/default-light-setting-5a2dfb25.js.map +1 -0
- package/lib/definitions/common-core/src/cameracontrol/glb-viewer-camera-behaviour.d.ts +2 -0
- package/lib/definitions/common-core/src/configurator-kernel-access.d.ts +5 -2
- package/lib/definitions/common-core/src/main.d.ts +2 -0
- package/lib/definitions/common-core/src/services/global-callback.d.ts +4 -0
- package/lib/definitions/common-core/src/utils/init-data.d.ts +1 -0
- package/lib/definitions/common-core/src/utils/shims.d.ts +5 -0
- package/lib/definitions/common-core/src/utils/ui-callback.d.ts +1 -0
- package/lib/definitions/common-core/src/webgl/scene-manager.d.ts +2 -1
- package/lib/definitions/configurator-core/src/static-files/settings.d.ts +1 -0
- package/lib/definitions/configurator-core/src/webgl/configurator-scene-manager.d.ts +4 -2
- package/lib/definitions/glb-viewer-core/src/roomle-glb-viewer.d.ts +10 -0
- package/lib/definitions/glb-viewer-core/src/webgl/glb-viewer-scene-manager.d.ts +3 -0
- package/lib/definitions/material-viewer/src/roomle-material-viewer.d.ts +7 -0
- package/lib/definitions/planner-core/src/external-object-api-callbacks.d.ts +123 -0
- package/lib/definitions/planner-core/src/external-object-api.d.ts +91 -0
- package/lib/definitions/planner-core/src/roomle-planner-ui-callback.d.ts +71 -1
- package/lib/definitions/planner-core/src/roomle-planner.d.ts +25 -3
- package/lib/definitions/planner-core/src/services/planner-kernel-access.d.ts +28 -9
- package/lib/definitions/planner-core/src/utils/map-to-ui-plan-objects.d.ts +1 -1
- package/lib/definitions/planner-core/src/webgl/planner-scene-event-handler.d.ts +1 -0
- package/lib/definitions/planner-core/src/webgl/planner-scene-manager.d.ts +3 -1
- package/lib/definitions/typings/planner-kernel-container.d.ts +8 -4
- package/lib/definitions/typings/planner.d.ts +1 -0
- package/lib/definitions/typings/rapi-types.d.ts +1 -0
- package/lib/{dimensioning-helper-b94cde35.js → dimensioning-helper-4fd2c2ff.js} +2 -2
- package/lib/{dimensioning-helper-b94cde35.js.map → dimensioning-helper-4fd2c2ff.js.map} +1 -1
- package/lib/{dimensioning-helper-5d9d30f9.nomodule.js → dimensioning-helper-7070ccc0.nomodule.js} +2 -2
- package/lib/{dimensioning-helper-5d9d30f9.nomodule.js.map → dimensioning-helper-7070ccc0.nomodule.js.map} +1 -1
- package/lib/glb-viewer-2360a13a.nomodule.js +2 -0
- package/lib/{glb-viewer-260047bc.nomodule.js.map → glb-viewer-2360a13a.nomodule.js.map} +1 -1
- package/lib/glb-viewer-camera-behaviour-0b3515af.js +2 -0
- package/lib/glb-viewer-camera-behaviour-0b3515af.js.map +1 -0
- package/lib/glb-viewer-camera-behaviour-94797884.nomodule.js +2 -0
- package/lib/glb-viewer-camera-behaviour-94797884.nomodule.js.map +1 -0
- package/lib/glb-viewer-f7bd52dd.js +2 -0
- package/lib/{glb-viewer-b8230cd7.js.map → glb-viewer-f7bd52dd.js.map} +1 -1
- package/lib/glb-viewer-main-f1de2999.js +2 -0
- package/lib/glb-viewer-main-f1de2999.js.map +1 -0
- package/lib/glb-viewer-main.nomodule.js +1 -1
- package/lib/legacy/{banana-for-scale-b3f452d8.legacy.js → banana-for-scale-e3ffd284.legacy.js} +2 -2
- package/lib/legacy/{banana-for-scale-b3f452d8.legacy.js.map → banana-for-scale-e3ffd284.legacy.js.map} +1 -1
- package/lib/legacy/camera-behaviour-fe94effa.legacy.js +2 -0
- package/lib/legacy/{camera-behaviour-9f5b20f1.legacy.js.map → camera-behaviour-fe94effa.legacy.js.map} +1 -1
- package/lib/legacy/{component-dimensioning-71ecb8d7.legacy.js → component-dimensioning-a98a250d.legacy.js} +2 -2
- package/lib/legacy/component-dimensioning-a98a250d.legacy.js.map +1 -0
- package/lib/legacy/{component-raycast-helper-f494197b.legacy.js → component-raycast-helper-797c8320.legacy.js} +2 -2
- package/lib/legacy/component-raycast-helper-797c8320.legacy.js.map +1 -0
- package/lib/legacy/{configurator-341eac3b.legacy.js → configurator-3f545130.legacy.js} +2 -2
- package/lib/legacy/configurator-3f545130.legacy.js.map +1 -0
- package/lib/legacy/configurator-main.legacy.js +1 -1
- package/lib/legacy/{continuous-drawing-helper-15c1080c.legacy.js → continuous-drawing-helper-ac6f1f98.legacy.js} +2 -2
- package/lib/legacy/continuous-drawing-helper-ac6f1f98.legacy.js.map +1 -0
- package/lib/legacy/{default-light-setting-a84d4ce3.legacy.js → default-light-setting-4974dc40.legacy.js} +2 -2
- package/lib/legacy/default-light-setting-4974dc40.legacy.js.map +1 -0
- package/lib/legacy/{dimensioning-helper-21cd7ec9.legacy.js → dimensioning-helper-704985a4.legacy.js} +2 -2
- package/lib/legacy/{dimensioning-helper-21cd7ec9.legacy.js.map → dimensioning-helper-704985a4.legacy.js.map} +1 -1
- package/lib/legacy/glb-viewer-098bc0c4.legacy.js +2 -0
- package/lib/legacy/{glb-viewer-8948dbf1.legacy.js.map → glb-viewer-098bc0c4.legacy.js.map} +1 -1
- package/lib/legacy/glb-viewer-camera-behaviour-1d714f21.legacy.js +2 -0
- package/lib/legacy/glb-viewer-camera-behaviour-1d714f21.legacy.js.map +1 -0
- package/lib/legacy/glb-viewer-main.legacy.js +1 -1
- package/lib/legacy/{material-viewer-f920cf61.legacy.js → material-viewer-c1ccfc6f.legacy.js} +2 -2
- package/lib/legacy/material-viewer-c1ccfc6f.legacy.js.map +1 -0
- package/lib/legacy/material-viewer-main.legacy.js +1 -1
- package/lib/{planner-dc46cffa.nomodule.js.map → legacy/planner-9ee3acdb.legacy.js} +2 -1
- package/lib/legacy/planner-9ee3acdb.legacy.js.map +1 -0
- package/lib/legacy/planner-main.legacy.js +1 -1
- package/lib/legacy/roomle-configurator-29c4c75a.legacy.js +2 -0
- package/lib/legacy/roomle-configurator-29c4c75a.legacy.js.map +1 -0
- package/lib/legacy/roomle-dependency-injection-6cdcf7e7.legacy.js +9 -0
- package/lib/legacy/{roomle-dependency-injection-14f08323.legacy.js.map → roomle-dependency-injection-6cdcf7e7.legacy.js.map} +1 -1
- package/lib/legacy/roomle-sdk.legacy.js +1 -1
- package/lib/legacy/{script-loader-b290b011.legacy.js → script-loader-7aacb4ed.legacy.js} +2 -2
- package/lib/legacy/script-loader-7aacb4ed.legacy.js.map +1 -0
- package/lib/legacy/static/{ConfiguratorKernel-12b6adb96ca3adde.wasm → ConfiguratorKernel-0263bf9d01bf5f3d.wasm} +0 -0
- package/lib/legacy/static/RoomleCore-6eda46ae151ef628.wasm +0 -0
- package/lib/legacy/static/RoomleToolsCore-f6f58c0735b1a3cf.wasm +0 -0
- package/lib/legacy/static/default-external-object-api-configuration-f4223d765ebaf6d6.json +70 -0
- package/lib/legacy/{stats-helper-c24a34c6.legacy.js → stats-helper-f4778e39.legacy.js} +2 -2
- package/lib/legacy/stats-helper-f4778e39.legacy.js.map +1 -0
- package/lib/legacy/{tools-core-661d8607.legacy.js → tools-core-b0b14916.legacy.js} +2 -2
- package/lib/legacy/tools-core-b0b14916.legacy.js.map +1 -0
- package/lib/{material-viewer-b2bfab43.js → material-viewer-4b869ac2.js} +2 -2
- package/lib/material-viewer-4b869ac2.js.map +1 -0
- package/lib/{material-viewer-710e51f0.nomodule.js → material-viewer-69d78d72.nomodule.js} +2 -2
- package/lib/material-viewer-69d78d72.nomodule.js.map +1 -0
- package/lib/material-viewer-main-4d5f1e9e.js +2 -0
- package/lib/material-viewer-main-4d5f1e9e.js.map +1 -0
- package/lib/material-viewer-main.nomodule.js +1 -1
- package/lib/planner-abbbabdf.js +2 -0
- package/lib/planner-abbbabdf.js.map +1 -0
- package/lib/planner-f790ce8b.nomodule.js +2 -0
- package/lib/planner-f790ce8b.nomodule.js.map +1 -0
- package/lib/planner-main-b588a3d2.js +2 -0
- package/lib/planner-main-b588a3d2.js.map +1 -0
- package/lib/planner-main.nomodule.js +1 -1
- package/lib/roomle-configurator-287fed53.js +2 -0
- package/lib/roomle-configurator-287fed53.js.map +1 -0
- package/lib/roomle-configurator-93a3281e.nomodule.js +2 -0
- package/lib/roomle-configurator-93a3281e.nomodule.js.map +1 -0
- package/lib/{roomle-dependency-injection-edb9b846.js → roomle-dependency-injection-e4430a4c.js} +3 -3
- package/lib/{roomle-dependency-injection-edb9b846.js.map → roomle-dependency-injection-e4430a4c.js.map} +1 -1
- package/lib/{roomle-dependency-injection-c8484fe9.nomodule.js → roomle-dependency-injection-ea70bcda.nomodule.js} +3 -3
- package/lib/{roomle-dependency-injection-c8484fe9.nomodule.js.map → roomle-dependency-injection-ea70bcda.nomodule.js.map} +1 -1
- package/lib/{roomle-sdk-592f3c36.js → roomle-sdk-7cee212d.js} +2 -2
- package/lib/roomle-sdk-7cee212d.js.map +1 -0
- package/lib/roomle-sdk.nomodule.js +1 -1
- package/lib/{script-loader-ecbdc7e4.nomodule.js → script-loader-400da0b9.nomodule.js} +2 -2
- package/lib/script-loader-400da0b9.nomodule.js.map +1 -0
- package/lib/{script-loader-afe6afe8.js → script-loader-489d9c78.js} +2 -2
- package/lib/script-loader-489d9c78.js.map +1 -0
- package/lib/static/{ConfiguratorKernel-12b6adb96ca3adde.wasm → ConfiguratorKernel-0263bf9d01bf5f3d.wasm} +0 -0
- package/lib/static/RoomleCore-6eda46ae151ef628.wasm +0 -0
- package/lib/static/RoomleToolsCore-f6f58c0735b1a3cf.wasm +0 -0
- package/lib/static/default-external-object-api-configuration-f4223d765ebaf6d6.json +70 -0
- package/lib/{stats-helper-9d3fdd3a.nomodule.js → stats-helper-50c4093e.nomodule.js} +2 -2
- package/lib/stats-helper-50c4093e.nomodule.js.map +1 -0
- package/lib/{stats-helper-f99231bd.js → stats-helper-dc7ac20a.js} +2 -2
- package/lib/stats-helper-dc7ac20a.js.map +1 -0
- package/lib/{tools-core-013b69d1.js → tools-core-2ddb4014.js} +2 -2
- package/lib/tools-core-2ddb4014.js.map +1 -0
- package/lib/{tools-core-f49e03a2.nomodule.js → tools-core-95a5e175.nomodule.js} +2 -2
- package/lib/tools-core-95a5e175.nomodule.js.map +1 -0
- package/package.json +2 -2
- package/lib/camera-behaviour-43652f02.nomodule.js +0 -2
- package/lib/camera-behaviour-b9ce9523.js +0 -2
- package/lib/component-dimensioning-9a4693bd.nomodule.js.map +0 -1
- package/lib/component-dimensioning-e618f2c4.js.map +0 -1
- package/lib/component-raycast-helper-2322d2eb.js.map +0 -1
- package/lib/component-raycast-helper-ac7ab652.nomodule.js.map +0 -1
- package/lib/configurator-2d8344bd.js.map +0 -1
- package/lib/configurator-41ceddf2.nomodule.js.map +0 -1
- package/lib/configurator-main-bf8d09c4.js +0 -2
- package/lib/configurator-main-bf8d09c4.js.map +0 -1
- package/lib/continuous-drawing-helper-405d8b9c.nomodule.js.map +0 -1
- package/lib/continuous-drawing-helper-ffcc1e62.js.map +0 -1
- package/lib/default-light-setting-2f58f07d.js.map +0 -1
- package/lib/default-light-setting-cd1f564d.nomodule.js.map +0 -1
- package/lib/glb-viewer-260047bc.nomodule.js +0 -2
- package/lib/glb-viewer-b8230cd7.js +0 -2
- package/lib/glb-viewer-camera-behaviour-bb5d665c.nomodule.js +0 -2
- package/lib/glb-viewer-camera-behaviour-bb5d665c.nomodule.js.map +0 -1
- package/lib/glb-viewer-camera-behaviour-c8770d6f.js +0 -2
- package/lib/glb-viewer-camera-behaviour-c8770d6f.js.map +0 -1
- package/lib/glb-viewer-main-d2f400c4.js +0 -2
- package/lib/glb-viewer-main-d2f400c4.js.map +0 -1
- package/lib/legacy/camera-behaviour-9f5b20f1.legacy.js +0 -2
- package/lib/legacy/component-dimensioning-71ecb8d7.legacy.js.map +0 -1
- package/lib/legacy/component-raycast-helper-f494197b.legacy.js.map +0 -1
- package/lib/legacy/configurator-341eac3b.legacy.js.map +0 -1
- package/lib/legacy/continuous-drawing-helper-15c1080c.legacy.js.map +0 -1
- package/lib/legacy/default-light-setting-a84d4ce3.legacy.js.map +0 -1
- package/lib/legacy/glb-viewer-8948dbf1.legacy.js +0 -2
- package/lib/legacy/glb-viewer-camera-behaviour-99467597.legacy.js +0 -2
- package/lib/legacy/glb-viewer-camera-behaviour-99467597.legacy.js.map +0 -1
- package/lib/legacy/material-viewer-f920cf61.legacy.js.map +0 -1
- package/lib/legacy/planner-4a0f8e20.legacy.js +0 -2
- package/lib/legacy/planner-4a0f8e20.legacy.js.map +0 -1
- package/lib/legacy/roomle-configurator-27c46725.legacy.js +0 -2
- package/lib/legacy/roomle-configurator-27c46725.legacy.js.map +0 -1
- package/lib/legacy/roomle-dependency-injection-14f08323.legacy.js +0 -9
- package/lib/legacy/script-loader-b290b011.legacy.js.map +0 -1
- package/lib/legacy/static/RoomleCore-c85533e04f7ad99d.wasm +0 -0
- package/lib/legacy/static/RoomleToolsCore-e3f4a53eb148e920.wasm +0 -0
- package/lib/legacy/stats-helper-c24a34c6.legacy.js.map +0 -1
- package/lib/legacy/tools-core-661d8607.legacy.js.map +0 -1
- package/lib/material-viewer-710e51f0.nomodule.js.map +0 -1
- package/lib/material-viewer-b2bfab43.js.map +0 -1
- package/lib/material-viewer-main-bb293110.js +0 -2
- package/lib/material-viewer-main-bb293110.js.map +0 -1
- package/lib/planner-79c09fe7.js +0 -2
- package/lib/planner-79c09fe7.js.map +0 -1
- package/lib/planner-dc46cffa.nomodule.js +0 -2
- package/lib/planner-main-3986faa6.js +0 -2
- package/lib/planner-main-3986faa6.js.map +0 -1
- package/lib/roomle-configurator-4c3e832d.nomodule.js +0 -2
- package/lib/roomle-configurator-4c3e832d.nomodule.js.map +0 -1
- package/lib/roomle-configurator-6b7c59e8.js +0 -2
- package/lib/roomle-configurator-6b7c59e8.js.map +0 -1
- package/lib/roomle-sdk-592f3c36.js.map +0 -1
- package/lib/script-loader-afe6afe8.js.map +0 -1
- package/lib/script-loader-ecbdc7e4.nomodule.js.map +0 -1
- package/lib/static/RoomleCore-c85533e04f7ad99d.wasm +0 -0
- package/lib/static/RoomleToolsCore-e3f4a53eb148e920.wasm +0 -0
- package/lib/stats-helper-9d3fdd3a.nomodule.js.map +0 -1
- package/lib/stats-helper-f99231bd.js.map +0 -1
- package/lib/tools-core-013b69d1.js.map +0 -1
- package/lib/tools-core-f49e03a2.nomodule.js.map +0 -1
|
@@ -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-554053aa.js";import{ap as transitionTransparencyOfMaterial}from"./roomle-dependency-injection-
|
|
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{ap as transitionTransparencyOfMaterial}from"./roomle-dependency-injection-e4430a4c.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);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-3a428a4e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-raycast-helper-3a428a4e.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./script-loader-
|
|
2
|
-
//# sourceMappingURL=configurator-
|
|
1
|
+
System.register(["./script-loader-400da0b9.nomodule.js","./roomle-dependency-injection-ea70bcda.nomodule.js","./camera-behaviour-b6ff24ab.nomodule.js","./component-raycast-helper-1d8c2fdb.nomodule.js","./roomle-configurator-93a3281e.nomodule.js","./query-params-helper-a2901800.nomodule.js","./main-thread-to-worker-1a58abb6.nomodule.js","./default-light-setting-541fa1a3.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-046b2ff5.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-046b2ff5.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{S as ScriptLoader,M as Main}from"./script-loader-
|
|
2
|
-
//# sourceMappingURL=configurator-
|
|
1
|
+
import{S as ScriptLoader,M as Main}from"./script-loader-489d9c78.js";import{D as DependencyInjectionAssignment,L as Logger,R as RapiAccess,a as DataSyncer,b as RoomleDependencyInjection,A as AppContext}from"./roomle-dependency-injection-e4430a4c.js";import{C as CameraControl3D,a as CameraControl}from"./camera-behaviour-76965e97.js";import ComponentRaycastHelper from"./component-raycast-helper-3a428a4e.js";import{C as ConfiguratorSceneManager,a as ConfiguratorViewModel,R as RoomleConfigurator}from"./roomle-configurator-287fed53.js";import"./query-params-helper-a5a14aba.js";import"./main-thread-to-worker-554053aa.js";import"./default-light-setting-5a2dfb25.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-c192a739.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-c192a739.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Configurator}from"./configurator-c192a739.js";import"./script-loader-489d9c78.js";import"./query-params-helper-a5a14aba.js";import"./main-thread-to-worker-554053aa.js";import"./roomle-dependency-injection-e4430a4c.js";import"./camera-behaviour-76965e97.js";import"./component-raycast-helper-3a428a4e.js";import"./roomle-configurator-287fed53.js";import"./default-light-setting-5a2dfb25.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-f2d1cb3c.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-main-f2d1cb3c.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./configurator-
|
|
1
|
+
System.register(["./configurator-046b2ff5.nomodule.js","./script-loader-400da0b9.nomodule.js","./query-params-helper-a2901800.nomodule.js","./main-thread-to-worker-1a58abb6.nomodule.js","./roomle-dependency-injection-ea70bcda.nomodule.js","./camera-behaviour-b6ff24ab.nomodule.js","./component-raycast-helper-1d8c2fdb.nomodule.js","./roomle-configurator-93a3281e.nomodule.js","./default-light-setting-541fa1a3.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-ea70bcda.nomodule.js","./main-thread-to-worker-1a58abb6.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-e62e27a4.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuous-drawing-helper-e62e27a4.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-e4430a4c.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-f34581fd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuous-drawing-helper-f34581fd.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./camera-behaviour-
|
|
2
|
-
//# sourceMappingURL=default-light-setting-
|
|
1
|
+
System.register(["./camera-behaviour-b6ff24ab.nomodule.js","./roomle-dependency-injection-ea70bcda.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.ag},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-541fa1a3.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-light-setting-541fa1a3.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{L as LightSetting}from"./camera-behaviour-
|
|
2
|
-
//# sourceMappingURL=default-light-setting-
|
|
1
|
+
import{L as LightSetting}from"./camera-behaviour-76965e97.js";import{ag as getGUI}from"./roomle-dependency-injection-e4430a4c.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-5a2dfb25.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-light-setting-5a2dfb25.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import CameraBehaviour from './camera-behaviour';
|
|
2
2
|
import type AdjustableCameraControl3D from '../../../glb-viewer-core/src/camera-control/adjustable-camera-control-3d';
|
|
3
3
|
import { type Box3 } from 'three';
|
|
4
|
+
import type { CameraParameter } from './camera-control';
|
|
4
5
|
export default class GlbViewerCameraBehaviour extends CameraBehaviour {
|
|
5
6
|
get cameraControl(): AdjustableCameraControl3D;
|
|
6
7
|
updateCameraOnItemLoaded(bounds: Box3): void;
|
|
8
|
+
externalApiMoveCamera(cameraParameter: CameraParameter): Promise<void>;
|
|
7
9
|
}
|
|
@@ -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): void;
|
|
42
|
-
protected
|
|
41
|
+
protected _componentSelectionChanged(_planObject: PlanObject, _component: KernelComponent, _planComponentSelection: boolean): void;
|
|
42
|
+
protected _externalObjectParameterChanged(_objectOrComponentId: number, _parameterKey: string, _value: string): void;
|
|
43
43
|
multiSelectionChange(runtimeComponentIds: number[], rootComponentId: number): void;
|
|
44
44
|
private _updateCommonComponentDependencies;
|
|
45
45
|
private _updateComponentChildren;
|
|
@@ -50,8 +50,11 @@ 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;
|
|
53
54
|
changeUseOfHDGeometry(context: ConfiguratorContext, useHDGeometry: boolean): void;
|
|
54
55
|
webGlPreviewDockings(context: ConfiguratorContext, dragIn: boolean): void;
|
|
56
|
+
webGlPreviewDockingsForKernelObjects(context: ConfiguratorContext, dragIn: boolean): void;
|
|
57
|
+
webGlPreviewDockingsForExternalObjects(context: ConfiguratorContext, _dragIn: boolean): void;
|
|
55
58
|
previewDockingsWithDrag(componentId: number, planObjectId: number): void;
|
|
56
59
|
cancelDocking(componentId: number): void;
|
|
57
60
|
loadConfiguration(configuration: ConfigurationString): void;
|
|
@@ -5,6 +5,7 @@ import type { CanvasOffset } from './common-interfaces';
|
|
|
5
5
|
import type UnitFormatter from '../../configurator-core/src/services/unit-formatter';
|
|
6
6
|
import type { Scene } from 'three';
|
|
7
7
|
import type IdbManager from './services/idb-manager';
|
|
8
|
+
import type { GlobalCallback } from './services/global-callback';
|
|
8
9
|
export interface EnvMapParams {
|
|
9
10
|
/**
|
|
10
11
|
* url of the env map (exr or hdr)
|
|
@@ -51,6 +52,7 @@ export interface GlobalAPI {
|
|
|
51
52
|
getUnitFormatter(): UnitFormatter;
|
|
52
53
|
getStorage(): IdbManager;
|
|
53
54
|
setEnvironmentMap(params: EnvMapParams): void;
|
|
55
|
+
get globalCallbacks(): GlobalCallback;
|
|
54
56
|
}
|
|
55
57
|
/**
|
|
56
58
|
* Shared API between configurator and planner
|
|
@@ -28,4 +28,8 @@ export declare class GlobalCallback extends UiCallback {
|
|
|
28
28
|
* @returns void
|
|
29
29
|
*/
|
|
30
30
|
onApiJsonReceived: (_url: string, _rapiPath: RAPI_PATHS, _json: any) => Promise<Nullable<RapiJsonBox> | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* is called the scene is ready for rendering it as an image
|
|
33
|
+
*/
|
|
34
|
+
onReadyForRender: () => void;
|
|
31
35
|
}
|
|
@@ -67,6 +67,7 @@ export default class InitData implements Context, Omit<InitDataDefinition, 'colo
|
|
|
67
67
|
showPrice?: boolean;
|
|
68
68
|
applyCurrentGlobalParameters?: boolean;
|
|
69
69
|
configureInRoom?: boolean;
|
|
70
|
+
discardExternalObjectsWhenLoadingPlan?: boolean;
|
|
70
71
|
featureFlags: FeatureFlags;
|
|
71
72
|
mode?: Enumify<typeof CAMERA_TYPE>;
|
|
72
73
|
edit?: boolean;
|
|
@@ -66,6 +66,11 @@ export interface GlobalInitDataDefinition {
|
|
|
66
66
|
* @description If set to true, the Roomle Renderer is used for perspective and top images this should help the E2E tests of Joe to migrate from comparing Roomle Renderer images to Three.js Renderer images
|
|
67
67
|
*/
|
|
68
68
|
e2eRoomleRendererForImages?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @description When loading a plan, the external objects from the plan XML are discarded
|
|
72
|
+
*/
|
|
73
|
+
discardExternalObjectsWhenLoadingPlan?: boolean;
|
|
69
74
|
}
|
|
70
75
|
export interface FeatureFlags {
|
|
71
76
|
pulsePreview?: boolean;
|
|
@@ -9,6 +9,7 @@ export declare class UiCallback implements Context {
|
|
|
9
9
|
get(target: UiCallback, prop: keyof UiCallback): UiCallback[keyof UiCallback];
|
|
10
10
|
cameraStartsMoving: () => void;
|
|
11
11
|
/**
|
|
12
|
+
* @deprecated has been moved to global callbacks
|
|
12
13
|
* is called the scene is ready for rendering it as an image
|
|
13
14
|
*/
|
|
14
15
|
onReadyForRender: () => void;
|
|
@@ -24,6 +24,7 @@ import type CameraBehaviourState from '../cameracontrol/camera-behaviour-state';
|
|
|
24
24
|
import type CameraBehaviour from '../cameracontrol/camera-behaviour';
|
|
25
25
|
import type { Nullable } from '../../../typings/helper';
|
|
26
26
|
import type GlobalInitData from '../utils/global-init-data';
|
|
27
|
+
import type { GlobalCallback } from '../services/global-callback';
|
|
27
28
|
export default abstract class SceneManager implements Context, LifeCycleCallbacks, EventListenerObject {
|
|
28
29
|
_creator_: string;
|
|
29
30
|
protected _domHelper: DomHelper;
|
|
@@ -33,11 +34,11 @@ export default abstract class SceneManager implements Context, LifeCycleCallback
|
|
|
33
34
|
protected _hdrEnvironmentLoader: HdrEnvironmentLoader;
|
|
34
35
|
protected _initData: InitData;
|
|
35
36
|
protected _globalInitData: GlobalInitData;
|
|
37
|
+
protected _globalCallback: GlobalCallback;
|
|
36
38
|
protected _idbManager: IdbManager;
|
|
37
39
|
protected _pluginSystem: PluginSystem;
|
|
38
40
|
protected _imageRenderer: ImageRenderer;
|
|
39
41
|
protected _cameraBehaviourState: CameraBehaviourState;
|
|
40
|
-
private _globalCallback;
|
|
41
42
|
protected _scene: Scene;
|
|
42
43
|
protected _uiScene: Scene;
|
|
43
44
|
private _depthWriteMaterial;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DEFAULT_EXTERNAL_OBJECT_API_CONFIGURATION } from '../../public/settings/default-external-object-api-configuration.json';
|
|
@@ -29,7 +29,6 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
29
29
|
private _memoryManager;
|
|
30
30
|
protected _configuratorContext: ConfiguratorContext;
|
|
31
31
|
private _componentDimensioningHelper;
|
|
32
|
-
private _configuratorViewModel;
|
|
33
32
|
private _configuratorHistory;
|
|
34
33
|
protected _configuratorUiCallbacks: ConfiguratorUiCallbacks;
|
|
35
34
|
protected _plannerKernelAccess: PlannerKernelAccess;
|
|
@@ -79,7 +78,6 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
79
78
|
enableDragIn(dragEvent: DragEvent): void;
|
|
80
79
|
private _zoomToComponentOnConsecutiveClick;
|
|
81
80
|
resetCameraPositionToStart(): void;
|
|
82
|
-
private _clearSelectionAndHovers;
|
|
83
81
|
resetPreviews(): void;
|
|
84
82
|
changeOffset(offset: CanvasOffset): void;
|
|
85
83
|
setCameraOffset(offset: CanvasOffset): void;
|
|
@@ -100,6 +98,7 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
100
98
|
protected disablePanning(): void;
|
|
101
99
|
cancelPreviousDockings(): void;
|
|
102
100
|
cancelComponentSelection(resetCamera?: boolean): void;
|
|
101
|
+
protected notifyPlannerOnComponentSelectionCancel(_isExternalObject: boolean): void;
|
|
103
102
|
private _cancelSelection;
|
|
104
103
|
private _selectComponent;
|
|
105
104
|
private _deselectComponent;
|
|
@@ -116,6 +115,8 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
116
115
|
requestDockingsPreview(userInitiated: boolean, possibleChild?: UiPossibleChild, dragEvent?: DragEvent, dragIn?: boolean): void;
|
|
117
116
|
private _requestDockingsPreviewWithDrag;
|
|
118
117
|
private _dockComponent;
|
|
118
|
+
private _dockKernelComponent;
|
|
119
|
+
private _dockExternalComponent;
|
|
119
120
|
private _onSelectedRuntimeComponentsChange;
|
|
120
121
|
private _onSelectedRuntimeComponentChange;
|
|
121
122
|
requestDeleteSelectedComponent(): void;
|
|
@@ -149,4 +150,5 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
149
150
|
protected _shouldRenderUi(): boolean;
|
|
150
151
|
protected setEventHandlerObject(object: Object3D): void;
|
|
151
152
|
protected _readyForRender(): void;
|
|
153
|
+
animateElement(elementId: number, parameterName: string, value: string, applyToChildren: boolean, animate: boolean): void;
|
|
152
154
|
}
|
|
@@ -8,6 +8,8 @@ import type { GlobalInitDataDefinition, InitDataDefinition } from '../../common-
|
|
|
8
8
|
import type UnitFormatter from '../../configurator-core/src/services/unit-formatter';
|
|
9
9
|
import type { Scene } from 'three';
|
|
10
10
|
import type IdbManager from '../../common-core/src/services/idb-manager';
|
|
11
|
+
import type { CameraParameter } from '../../common-core/src/cameracontrol/camera-control';
|
|
12
|
+
import type { GlobalCallback } from '../../common-core/src/services/global-callback';
|
|
11
13
|
interface RenderCameraInformation {
|
|
12
14
|
fieldOfView: number;
|
|
13
15
|
rotation: Position3;
|
|
@@ -27,6 +29,7 @@ export default class RoomleGLBViewer implements GlobalAPI, Context, ExternalEmbe
|
|
|
27
29
|
private _lifeCycleManager;
|
|
28
30
|
private _initData;
|
|
29
31
|
private _globalInitData;
|
|
32
|
+
private _globalCallback;
|
|
30
33
|
private _unitFormatter;
|
|
31
34
|
protected _idbManager: IdbManager;
|
|
32
35
|
private _sceneManager;
|
|
@@ -94,5 +97,12 @@ export default class RoomleGLBViewer implements GlobalAPI, Context, ExternalEmbe
|
|
|
94
97
|
rotation?: number;
|
|
95
98
|
maxLightSources?: number;
|
|
96
99
|
}): void;
|
|
100
|
+
exportCanvasScreenshot(quality?: number): Promise<string>;
|
|
101
|
+
moveCamera(cameraParameter: CameraParameter): Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
* Use this callbacks to hook in your functionality
|
|
105
|
+
*/
|
|
106
|
+
get globalCallbacks(): GlobalCallback;
|
|
97
107
|
}
|
|
98
108
|
export {};
|
|
@@ -6,6 +6,7 @@ import { CAMERA_TYPE } from '../../../common-core/src/cameracontrol/camera-type'
|
|
|
6
6
|
import type { Enumify } from '../../../common-core/src/types';
|
|
7
7
|
import { Box3, Vector3, WebGLRenderer } from 'three';
|
|
8
8
|
import GlbViewerCameraBehaviour from '../../../common-core/src/cameracontrol/glb-viewer-camera-behaviour';
|
|
9
|
+
import { type CameraParameter } from '../../../common-core/src/cameracontrol/camera-control';
|
|
9
10
|
export default class GLBViewerSceneManager extends SceneManager implements GLBRenderWorkerListener {
|
|
10
11
|
private _glbInputManager;
|
|
11
12
|
private _rapiAccess;
|
|
@@ -29,4 +30,6 @@ export default class GLBViewerSceneManager extends SceneManager implements GLBRe
|
|
|
29
30
|
protected get glbViewerCameraBehaviour(): GlbViewerCameraBehaviour;
|
|
30
31
|
getGeometryBounds(): Box3;
|
|
31
32
|
cameraBehaviourChanged(): void;
|
|
33
|
+
moveCamera(cameraParameter: CameraParameter): Promise<void>;
|
|
34
|
+
protected _readyForRender(): void;
|
|
32
35
|
}
|
|
@@ -10,6 +10,7 @@ import type { CanvasOffset } from '../../common-core/src/common-interfaces';
|
|
|
10
10
|
import type UnitFormatter from '../../configurator-core/src/services/unit-formatter';
|
|
11
11
|
import type { Scene } from 'three';
|
|
12
12
|
import type IdbManager from '../../common-core/src/services/idb-manager';
|
|
13
|
+
import type { GlobalCallback } from '../../common-core/src/services/global-callback';
|
|
13
14
|
export default class RoomleMaterialViewer implements GlobalAPI, Context, ExternalEmbeddable<RoomleMaterialViewerUiCallback> {
|
|
14
15
|
_creator_: string;
|
|
15
16
|
private _domHelper;
|
|
@@ -17,6 +18,7 @@ export default class RoomleMaterialViewer implements GlobalAPI, Context, Externa
|
|
|
17
18
|
private _lifeCycleManager;
|
|
18
19
|
private _roomleMaterialViewerUiCallback;
|
|
19
20
|
private _initData;
|
|
21
|
+
private _globalCallback;
|
|
20
22
|
private _rapiAccess;
|
|
21
23
|
private _unitFormatter;
|
|
22
24
|
protected _idbManager: IdbManager;
|
|
@@ -116,4 +118,9 @@ export default class RoomleMaterialViewer implements GlobalAPI, Context, Externa
|
|
|
116
118
|
rotation?: number;
|
|
117
119
|
maxLightSources?: number;
|
|
118
120
|
}): void;
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
* Use this callbacks to hook in your functionality
|
|
124
|
+
*/
|
|
125
|
+
get globalCallbacks(): GlobalCallback;
|
|
119
126
|
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
export interface ExternalObjectGroupPosition {
|
|
2
|
+
pos: number[];
|
|
3
|
+
rotation?: number;
|
|
4
|
+
}
|
|
5
|
+
export interface ExternalObjectGroup {
|
|
6
|
+
groupId: string;
|
|
7
|
+
pos: number[];
|
|
8
|
+
rotation?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface ExternalObjectRootModule {
|
|
11
|
+
moduleId: string;
|
|
12
|
+
pos: number[];
|
|
13
|
+
rotation?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface ExternalObjectGroupAndModules {
|
|
16
|
+
groupId?: string;
|
|
17
|
+
pos: number[];
|
|
18
|
+
rotation?: number;
|
|
19
|
+
rootModules: ExternalObjectRootModule[];
|
|
20
|
+
}
|
|
21
|
+
export interface ExternalObjectUiCallback {
|
|
22
|
+
/** "onMergeExternalObjectGroup" is invoked when a group of root modules is merged into another group of root modules.
|
|
23
|
+
* The group with the ID "sourceGroupId" is merged into the group with the ID "targetGroup.id".
|
|
24
|
+
* The root modules of the source group are added to the target group and the soured group does no longer exist.
|
|
25
|
+
* "targetGroup" contains information about all root modules of the target group (both present and new)
|
|
26
|
+
* and their relative position and orientation.
|
|
27
|
+
* @param targetGroup The target group of root modules.
|
|
28
|
+
* @param sourceGroupId The ID of the source group of root modules.
|
|
29
|
+
*/
|
|
30
|
+
onMergeExternalObjectGroup(targetGroup: ExternalObjectGroupAndModules, sourceGroupId: string): void;
|
|
31
|
+
/**
|
|
32
|
+
* "onSplitExternalObjectGroup" is invoked when one or more root modules are split from a group of root modules.
|
|
33
|
+
* The split root modules form a new group, which must be assigned a new ID.
|
|
34
|
+
* "originalGroup" contains the information about the original group and the remaining root modules.
|
|
35
|
+
* "newGroupedRootModules" contains the location and orientation of the new groups and root modules that have been split off.
|
|
36
|
+
* @param splitGroup The original group of root modules.
|
|
37
|
+
* @param newGroupedRootModules The new group of root modules.
|
|
38
|
+
*/
|
|
39
|
+
onSplitExternalObjectGroup(splitGroup: ExternalObjectGroupAndModules, newGroupedRootModules: ExternalObjectGroupAndModules | ExternalObjectGroupAndModules[]): void;
|
|
40
|
+
/**
|
|
41
|
+
* "onDeleteExternalObjectGroup" is invoked when a group of root modules and all the root modules it contains are deleted.
|
|
42
|
+
* The group with the ID "groupIdToDelete" is removed from the plan and is completely deleted.
|
|
43
|
+
* @param groupIdToDelete The ID of the group of root modules.
|
|
44
|
+
*/
|
|
45
|
+
onDeleteExternalObjectGroup(groupIdToDelete: string): void;
|
|
46
|
+
/**
|
|
47
|
+
* "onDeleteExternalObjectRootModule" is invoked when a root module is deleted from a group of root modules.
|
|
48
|
+
* The root module with the ID "rootModuleIdToDelete" is removed from the group with the ID "group.id" and is completely deleted.
|
|
49
|
+
* "group" contains the information about the group and the remaining root modules.
|
|
50
|
+
* If removing the root module results in a group of root modules being split into two or more groups,
|
|
51
|
+
* "splitGroups" contains the information about the new groups and root modules.
|
|
52
|
+
* This callback is not be called when the solely remaining root module of a group is deleted.
|
|
53
|
+
* In this case, "onDeleteExternalObjectGroup" is called.
|
|
54
|
+
* @param group The group of root modules.
|
|
55
|
+
* @param rootModuleIdToDelete The ID of the root module.
|
|
56
|
+
* @param splitGroups The new groups of root modules that have been split off.
|
|
57
|
+
*/
|
|
58
|
+
onDeleteExternalObjectRootModule(remainingGroup: ExternalObjectGroupAndModules, rootModuleIdToDelete: string, splitOffGroups?: ExternalObjectGroupAndModules[]): void;
|
|
59
|
+
/**
|
|
60
|
+
* "onDeleteExternalObjectSubModule" is invoked when a sub module is deleted from a root module.
|
|
61
|
+
* The sub module with the ID "subModuleIdToDelete" is removed from the root module with the ID "rootModuleId"
|
|
62
|
+
* and is completely deleted.
|
|
63
|
+
* @param rootModuleId The ID of the root module.
|
|
64
|
+
* @param subModuleIdToDelete The ID of the sub module.
|
|
65
|
+
*/
|
|
66
|
+
onDeleteExternalObjectSubModule(rootModuleId: string, subModuleIdToDelete: string): void;
|
|
67
|
+
/**
|
|
68
|
+
* "onDuplicateExternalObjectGroup" is invoked when a group of root modules is duplicated.
|
|
69
|
+
* This event request generating a completely new group with the an new root modules
|
|
70
|
+
* with exactly the same structure as the group wih the ID "sourceGroupId".
|
|
71
|
+
* The new group is placed at the position and orientation defined in "newGroupPosition".
|
|
72
|
+
* @param sourceGroupId The ID of the source group of root modules.
|
|
73
|
+
* @param newGroupPosition The position and orientation of the new group.
|
|
74
|
+
*/
|
|
75
|
+
onDuplicateExternalObjectGroup(sourceGroupId: string, newGroupPosition: ExternalObjectGroupPosition): void;
|
|
76
|
+
/**
|
|
77
|
+
* “onMovedExternalObjectGroup” is invoked when a group of root modules is moved or rotated to a new position.
|
|
78
|
+
* The group with the ID "group.id" is moved to the new position and orientation defined in "group".
|
|
79
|
+
* @param group The group of root modules.
|
|
80
|
+
*/
|
|
81
|
+
onMovedExternalObjectGroup(group: ExternalObjectGroup): void;
|
|
82
|
+
/**
|
|
83
|
+
* "onExternalObjectEnvironmentChanged" is invoked when the plan (walls, doors, windows, etc.) has changed.
|
|
84
|
+
* "affectedGroupIds" contains the IDs of all groups of root modules that are affected by the change.
|
|
85
|
+
* @param affectedGroupIds The IDs of the groups of root modules that are affected by the change.
|
|
86
|
+
*/
|
|
87
|
+
onExternalObjectEnvironmentChanged(affectedGroupIds: string[]): void;
|
|
88
|
+
/**
|
|
89
|
+
* "onExternalObjectGroupChanged" is invoked when the modules of a group itself have changed.
|
|
90
|
+
* This can be the case in relation with undo/redo operations.
|
|
91
|
+
* "stringifiedGroupData" contains the complete information about the group and the root modules.
|
|
92
|
+
* @param stringifiedGroupData The group data as string.
|
|
93
|
+
*/
|
|
94
|
+
onExternalObjectGroupChanged(stringifiedGroupData: string): void;
|
|
95
|
+
/**
|
|
96
|
+
* `onExternalObjectGroupLoaded` is invoked when an external object is loaded from a plan.
|
|
97
|
+
* @param stringifiedGroupData The group data as string.
|
|
98
|
+
*/
|
|
99
|
+
onExternalObjectGroupLoaded(stringifiedGroupData: string): void;
|
|
100
|
+
/**
|
|
101
|
+
* "oneExternalObjectAttributeChanged" is invoked when an attribute of a root module or sub module has changed.
|
|
102
|
+
* The attribute with the ID "attributeId" of the sub module with the ID "subModuleId"
|
|
103
|
+
* of the root module with the ID "rootModuleId" has the new value "value".
|
|
104
|
+
* If "subModuleId" is "null", an attribute of the root module has changed.
|
|
105
|
+
* @param rootModuleId The ID of the root module.
|
|
106
|
+
* @param subModuleId The ID of the sub module or "null".
|
|
107
|
+
* @param attributeId The ID of the attribute.
|
|
108
|
+
* @param value The new value of the attribute.
|
|
109
|
+
*/
|
|
110
|
+
onExternalObjectAttributeChanged(rootModuleId: string, subModuleId: string | null, attributeId: string, value: string): void;
|
|
111
|
+
/**
|
|
112
|
+
* "onExternalObjectModuleSelected" is invoked when the selection has been changed
|
|
113
|
+
* by and user interaction and a group, a root module or a sub module is selected.
|
|
114
|
+
* @param groupId The ID of the group of root modules.
|
|
115
|
+
* @param rootModuleId The ID of the root modules. Is `null` if a group is selected.
|
|
116
|
+
* @param subModuleId The ID of the sub module. Is `null` if a group or a root module is selected.
|
|
117
|
+
*/
|
|
118
|
+
onExternalObjectModuleSelected(groupId: string, rootModuleId: string | null, subModuleId: string | null): void;
|
|
119
|
+
/**
|
|
120
|
+
* "onExternalObjectSelectionCancel" is invoked when the selection of a group, root module or sub module is canceled.
|
|
121
|
+
*/
|
|
122
|
+
onExternalObjectSelectionCancel(): void;
|
|
123
|
+
}
|