@roomle/web-sdk 2.91.0-alpha.4 → 2.91.0-alpha.6
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-3f0f302f.nomodule.js → banana-for-scale-bcd6108e.nomodule.js} +2 -2
- package/lib/{banana-for-scale-3f0f302f.nomodule.js.map → banana-for-scale-bcd6108e.nomodule.js.map} +1 -1
- package/lib/{banana-for-scale-2c5e1a36.js → banana-for-scale-d91a9919.js} +2 -2
- package/lib/{banana-for-scale-2c5e1a36.js.map → banana-for-scale-d91a9919.js.map} +1 -1
- package/lib/{camera-behaviour-1cba9d22.nomodule.js → camera-behaviour-91fe7454.nomodule.js} +2 -2
- package/lib/{camera-behaviour-1cba9d22.nomodule.js.map → camera-behaviour-91fe7454.nomodule.js.map} +1 -1
- package/lib/{camera-behaviour-58eab044.js → camera-behaviour-e33c54d2.js} +2 -2
- package/lib/{camera-behaviour-58eab044.js.map → camera-behaviour-e33c54d2.js.map} +1 -1
- package/lib/{component-dimensioning-d564d11a.nomodule.js → component-dimensioning-57796828.nomodule.js} +2 -2
- package/lib/component-dimensioning-57796828.nomodule.js.map +1 -0
- package/lib/{component-dimensioning-cec6a099.js → component-dimensioning-ab341345.js} +2 -2
- package/lib/component-dimensioning-ab341345.js.map +1 -0
- package/lib/{component-raycast-helper-c179e9da.js → component-raycast-helper-1cbfa1cf.js} +2 -2
- package/lib/component-raycast-helper-1cbfa1cf.js.map +1 -0
- package/lib/{component-raycast-helper-787378e9.nomodule.js → component-raycast-helper-b0a355c6.nomodule.js} +2 -2
- package/lib/component-raycast-helper-b0a355c6.nomodule.js.map +1 -0
- package/lib/{configurator-48b31311.js → configurator-30f6aebc.js} +2 -2
- package/lib/configurator-30f6aebc.js.map +1 -0
- package/lib/{configurator-d204b1ff.nomodule.js → configurator-aa074be0.nomodule.js} +2 -2
- package/lib/configurator-aa074be0.nomodule.js.map +1 -0
- package/lib/configurator-main-371321a0.js +2 -0
- package/lib/configurator-main-371321a0.js.map +1 -0
- package/lib/configurator-main.nomodule.js +1 -1
- package/lib/{continuous-drawing-helper-072a365a.nomodule.js → continuous-drawing-helper-f48c5c99.nomodule.js} +2 -2
- package/lib/continuous-drawing-helper-f48c5c99.nomodule.js.map +1 -0
- package/lib/{continuous-drawing-helper-8c724f37.js → continuous-drawing-helper-f851ec2b.js} +2 -2
- package/lib/continuous-drawing-helper-f851ec2b.js.map +1 -0
- package/lib/{default-light-setting-032f7ae8.js → default-light-setting-4ae60352.js} +2 -2
- package/lib/default-light-setting-4ae60352.js.map +1 -0
- package/lib/{default-light-setting-74599c8e.nomodule.js → default-light-setting-71209600.nomodule.js} +2 -2
- package/lib/default-light-setting-71209600.nomodule.js.map +1 -0
- package/lib/definitions/common-core/src/webgl/renderer/materials/postprocessing-material-plugin.d.ts +1 -1
- package/lib/definitions/configurator-core/src/webgl/configurator-scene-manager.d.ts +1 -0
- package/lib/definitions/packages/common-core/src/webgl/renderer/materials/postprocessing-material-plugin.d.ts +1 -1
- package/lib/definitions/packages/configurator-core/src/webgl/configurator-scene-manager.d.ts +1 -0
- package/lib/definitions/packages/planner-core/src/external-object-api-callbacks.d.ts +4 -4
- package/lib/definitions/packages/planner-core/src/external-object-api.d.ts +5 -0
- package/lib/definitions/packages/planner-core/src/roomle-planner-ui-callback.d.ts +1 -1
- package/lib/definitions/packages/planner-core/src/roomle-planner.d.ts +2 -1
- package/lib/definitions/packages/planner-core/src/view-model/wall-plan-element-view-model.d.ts +8 -0
- package/lib/definitions/packages/typings/kernel.d.ts +34 -9
- package/lib/definitions/packages/typings/planner.d.ts +3 -1
- package/lib/definitions/planner-core/src/external-object-api-callbacks.d.ts +4 -4
- package/lib/definitions/planner-core/src/external-object-api.d.ts +5 -0
- package/lib/definitions/planner-core/src/roomle-planner-ui-callback.d.ts +1 -1
- package/lib/definitions/planner-core/src/roomle-planner.d.ts +2 -1
- package/lib/definitions/planner-core/src/view-model/wall-plan-element-view-model.d.ts +8 -0
- package/lib/definitions/typings/kernel.d.ts +34 -9
- package/lib/definitions/typings/planner.d.ts +3 -1
- package/lib/{dimensioning-helper-8f696cba.nomodule.js → dimensioning-helper-917188dc.nomodule.js} +2 -2
- package/lib/{dimensioning-helper-8f696cba.nomodule.js.map → dimensioning-helper-917188dc.nomodule.js.map} +1 -1
- package/lib/{dimensioning-helper-768e8286.js → dimensioning-helper-ee45d815.js} +2 -2
- package/lib/{dimensioning-helper-768e8286.js.map → dimensioning-helper-ee45d815.js.map} +1 -1
- package/lib/{glb-viewer-c93aca14.js → glb-viewer-7c2afe5e.js} +2 -2
- package/lib/{glb-viewer-c93aca14.js.map → glb-viewer-7c2afe5e.js.map} +1 -1
- package/lib/{glb-viewer-2bbca5ca.nomodule.js → glb-viewer-bd8b140e.nomodule.js} +2 -2
- package/lib/{glb-viewer-2bbca5ca.nomodule.js.map → glb-viewer-bd8b140e.nomodule.js.map} +1 -1
- package/lib/{glb-viewer-camera-behaviour-a5c457f3.js → glb-viewer-camera-behaviour-444497cc.js} +2 -2
- package/lib/glb-viewer-camera-behaviour-444497cc.js.map +1 -0
- package/lib/{glb-viewer-camera-behaviour-2012295c.nomodule.js → glb-viewer-camera-behaviour-a734f42e.nomodule.js} +2 -2
- package/lib/glb-viewer-camera-behaviour-a734f42e.nomodule.js.map +1 -0
- package/lib/glb-viewer-main-8dc04ca9.js +2 -0
- package/lib/glb-viewer-main-8dc04ca9.js.map +1 -0
- package/lib/glb-viewer-main.nomodule.js +1 -1
- package/lib/legacy/{banana-for-scale-6a7a278a.legacy.js → banana-for-scale-ec7d4a4d.legacy.js} +2 -2
- package/lib/legacy/{banana-for-scale-6a7a278a.legacy.js.map → banana-for-scale-ec7d4a4d.legacy.js.map} +1 -1
- package/lib/legacy/{camera-behaviour-f5b7c798.legacy.js → camera-behaviour-543d47b2.legacy.js} +2 -2
- package/lib/legacy/{camera-behaviour-f5b7c798.legacy.js.map → camera-behaviour-543d47b2.legacy.js.map} +1 -1
- package/lib/legacy/{component-dimensioning-7dfc8dc5.legacy.js → component-dimensioning-1fcab2c0.legacy.js} +2 -2
- package/lib/legacy/component-dimensioning-1fcab2c0.legacy.js.map +1 -0
- package/lib/legacy/{component-raycast-helper-d2b88fdd.legacy.js → component-raycast-helper-2a8761e9.legacy.js} +2 -2
- package/lib/legacy/component-raycast-helper-2a8761e9.legacy.js.map +1 -0
- package/lib/legacy/{configurator-d34a50d0.legacy.js → configurator-d424be52.legacy.js} +2 -2
- package/lib/legacy/configurator-d424be52.legacy.js.map +1 -0
- package/lib/legacy/configurator-main.legacy.js +1 -1
- package/lib/legacy/{continuous-drawing-helper-eec29f83.legacy.js → continuous-drawing-helper-cddeac3f.legacy.js} +2 -2
- package/lib/legacy/continuous-drawing-helper-cddeac3f.legacy.js.map +1 -0
- package/lib/legacy/{default-light-setting-9dc30fff.legacy.js → default-light-setting-4081b29c.legacy.js} +2 -2
- package/lib/legacy/default-light-setting-4081b29c.legacy.js.map +1 -0
- package/lib/legacy/{dimensioning-helper-34e607ec.legacy.js → dimensioning-helper-48d06029.legacy.js} +2 -2
- package/lib/legacy/{dimensioning-helper-34e607ec.legacy.js.map → dimensioning-helper-48d06029.legacy.js.map} +1 -1
- package/lib/legacy/{glb-viewer-f6b5374a.legacy.js → glb-viewer-45a54aac.legacy.js} +2 -2
- package/lib/legacy/{glb-viewer-f6b5374a.legacy.js.map → glb-viewer-45a54aac.legacy.js.map} +1 -1
- package/lib/legacy/{glb-viewer-camera-behaviour-31593108.legacy.js → glb-viewer-camera-behaviour-8439ae3c.legacy.js} +2 -2
- package/lib/legacy/glb-viewer-camera-behaviour-8439ae3c.legacy.js.map +1 -0
- package/lib/legacy/glb-viewer-main.legacy.js +1 -1
- package/lib/legacy/{material-viewer-4207ad85.legacy.js → material-viewer-8a0ecffa.legacy.js} +2 -2
- package/lib/legacy/material-viewer-8a0ecffa.legacy.js.map +1 -0
- package/lib/legacy/material-viewer-main.legacy.js +1 -1
- package/lib/legacy/{planner-7338bf85.legacy.js → planner-83550385.legacy.js} +2 -2
- package/lib/legacy/{planner-7338bf85.legacy.js.map → planner-83550385.legacy.js.map} +1 -1
- package/lib/legacy/planner-main.legacy.js +1 -1
- package/lib/legacy/roomle-configurator-fecb47f4.legacy.js +2 -0
- package/lib/legacy/roomle-configurator-fecb47f4.legacy.js.map +1 -0
- package/lib/legacy/roomle-dependency-injection-ad99aa55.legacy.js +9 -0
- package/lib/legacy/{roomle-dependency-injection-efa91e83.legacy.js.map → roomle-dependency-injection-ad99aa55.legacy.js.map} +1 -1
- package/lib/legacy/roomle-sdk.legacy.js +1 -1
- package/lib/legacy/{script-loader-cefd4bf9.legacy.js → script-loader-9b28185e.legacy.js} +2 -2
- package/lib/legacy/script-loader-9b28185e.legacy.js.map +1 -0
- package/lib/legacy/static/{ConfiguratorKernel-44357cf7219395c9.js → ConfiguratorKernel-2ddc08f9542fc91f.js} +7 -7
- package/lib/legacy/static/ConfiguratorKernel-f97bc2369a55d27b.wasm +0 -0
- package/lib/legacy/static/RoomleCore-4b4852e1f2b0c28d.wasm +0 -0
- package/lib/legacy/static/{RoomleCore-077080ce4dd282d0.js → RoomleCore-f2d7b1b87640ef15.js} +2 -2
- package/lib/legacy/static/RoomleToolsCore-59b7cb5377f338bf.wasm +0 -0
- package/lib/legacy/static/default-external-object-api-configuration-1e7103889f664a3f.json +16 -0
- package/lib/legacy/{stats-helper-3575eac3.legacy.js → stats-helper-7371d582.legacy.js} +2 -2
- package/lib/legacy/stats-helper-7371d582.legacy.js.map +1 -0
- package/lib/legacy/{tools-core-3a199865.legacy.js → tools-core-10ea2678.legacy.js} +2 -2
- package/lib/legacy/tools-core-10ea2678.legacy.js.map +1 -0
- package/lib/{material-viewer-22c9572f.nomodule.js → material-viewer-5cd6c53a.nomodule.js} +2 -2
- package/lib/material-viewer-5cd6c53a.nomodule.js.map +1 -0
- package/lib/{material-viewer-0310d9de.js → material-viewer-8a5b55df.js} +2 -2
- package/lib/material-viewer-8a5b55df.js.map +1 -0
- package/lib/material-viewer-main-67bdadb7.js +2 -0
- package/lib/material-viewer-main-67bdadb7.js.map +1 -0
- package/lib/material-viewer-main.nomodule.js +1 -1
- package/lib/{planner-436cedd4.nomodule.js → planner-ca6c7355.nomodule.js} +2 -2
- package/lib/{planner-436cedd4.nomodule.js.map → planner-ca6c7355.nomodule.js.map} +1 -1
- package/lib/{planner-ba857597.js → planner-db1bf332.js} +2 -2
- package/lib/{planner-ba857597.js.map → planner-db1bf332.js.map} +1 -1
- package/lib/planner-main-dc561918.js +2 -0
- package/lib/planner-main-dc561918.js.map +1 -0
- package/lib/planner-main.nomodule.js +1 -1
- package/lib/roomle-configurator-c05eae25.js +2 -0
- package/lib/roomle-configurator-c05eae25.js.map +1 -0
- package/lib/roomle-configurator-fcd63c2f.nomodule.js +2 -0
- package/lib/roomle-configurator-fcd63c2f.nomodule.js.map +1 -0
- package/lib/{roomle-dependency-injection-c1df005a.nomodule.js → roomle-dependency-injection-4a02b093.nomodule.js} +3 -3
- package/lib/{roomle-dependency-injection-c1df005a.nomodule.js.map → roomle-dependency-injection-4a02b093.nomodule.js.map} +1 -1
- package/lib/{roomle-dependency-injection-d93f74a2.js → roomle-dependency-injection-7fd12bfd.js} +3 -3
- package/lib/{roomle-dependency-injection-d93f74a2.js.map → roomle-dependency-injection-7fd12bfd.js.map} +1 -1
- package/lib/{roomle-sdk-063b2f3d.js → roomle-sdk-8be83df3.js} +2 -2
- package/lib/roomle-sdk-8be83df3.js.map +1 -0
- package/lib/roomle-sdk.nomodule.js +1 -1
- package/lib/{script-loader-1e3bbddc.nomodule.js → script-loader-b6e9fce9.nomodule.js} +2 -2
- package/lib/script-loader-b6e9fce9.nomodule.js.map +1 -0
- package/lib/{script-loader-c8c6f4d6.js → script-loader-d7ad07ff.js} +2 -2
- package/lib/script-loader-d7ad07ff.js.map +1 -0
- package/lib/static/{ConfiguratorKernel-44357cf7219395c9.js → ConfiguratorKernel-2ddc08f9542fc91f.js} +1 -1
- package/lib/static/{ConfiguratorKernel-44357cf7219395c9.js.map → ConfiguratorKernel-2ddc08f9542fc91f.js.map} +1 -1
- package/lib/static/ConfiguratorKernel-f97bc2369a55d27b.wasm +0 -0
- package/lib/static/RoomleCore-4b4852e1f2b0c28d.wasm +0 -0
- package/lib/static/{RoomleCore-077080ce4dd282d0.js → RoomleCore-f2d7b1b87640ef15.js} +1 -1
- package/lib/static/{RoomleCore-077080ce4dd282d0.js.map → RoomleCore-f2d7b1b87640ef15.js.map} +1 -1
- package/lib/static/RoomleToolsCore-59b7cb5377f338bf.wasm +0 -0
- package/lib/static/default-external-object-api-configuration-1e7103889f664a3f.json +16 -0
- package/lib/{stats-helper-91bba9e4.nomodule.js → stats-helper-04b7f9c6.nomodule.js} +2 -2
- package/lib/stats-helper-04b7f9c6.nomodule.js.map +1 -0
- package/lib/{stats-helper-0eecf89a.js → stats-helper-2ff2d771.js} +2 -2
- package/lib/stats-helper-2ff2d771.js.map +1 -0
- package/lib/{tools-core-0b6d0766.nomodule.js → tools-core-aff641a4.nomodule.js} +2 -2
- package/lib/tools-core-aff641a4.nomodule.js.map +1 -0
- package/lib/{tools-core-45afcb6a.js → tools-core-c1160496.js} +2 -2
- package/lib/tools-core-c1160496.js.map +1 -0
- package/package.json +2 -2
- package/lib/component-dimensioning-cec6a099.js.map +0 -1
- package/lib/component-dimensioning-d564d11a.nomodule.js.map +0 -1
- package/lib/component-raycast-helper-787378e9.nomodule.js.map +0 -1
- package/lib/component-raycast-helper-c179e9da.js.map +0 -1
- package/lib/configurator-48b31311.js.map +0 -1
- package/lib/configurator-d204b1ff.nomodule.js.map +0 -1
- package/lib/configurator-main-d9498384.js +0 -2
- package/lib/configurator-main-d9498384.js.map +0 -1
- package/lib/continuous-drawing-helper-072a365a.nomodule.js.map +0 -1
- package/lib/continuous-drawing-helper-8c724f37.js.map +0 -1
- package/lib/default-light-setting-032f7ae8.js.map +0 -1
- package/lib/default-light-setting-74599c8e.nomodule.js.map +0 -1
- package/lib/glb-viewer-camera-behaviour-2012295c.nomodule.js.map +0 -1
- package/lib/glb-viewer-camera-behaviour-a5c457f3.js.map +0 -1
- package/lib/glb-viewer-main-0bc225e0.js +0 -2
- package/lib/glb-viewer-main-0bc225e0.js.map +0 -1
- package/lib/legacy/component-dimensioning-7dfc8dc5.legacy.js.map +0 -1
- package/lib/legacy/component-raycast-helper-d2b88fdd.legacy.js.map +0 -1
- package/lib/legacy/configurator-d34a50d0.legacy.js.map +0 -1
- package/lib/legacy/continuous-drawing-helper-eec29f83.legacy.js.map +0 -1
- package/lib/legacy/default-light-setting-9dc30fff.legacy.js.map +0 -1
- package/lib/legacy/glb-viewer-camera-behaviour-31593108.legacy.js.map +0 -1
- package/lib/legacy/material-viewer-4207ad85.legacy.js.map +0 -1
- package/lib/legacy/roomle-configurator-b2af674d.legacy.js +0 -2
- package/lib/legacy/roomle-configurator-b2af674d.legacy.js.map +0 -1
- package/lib/legacy/roomle-dependency-injection-efa91e83.legacy.js +0 -9
- package/lib/legacy/script-loader-cefd4bf9.legacy.js.map +0 -1
- package/lib/legacy/static/ConfiguratorKernel-732bdd63f6c11dc1.wasm +0 -0
- package/lib/legacy/static/RoomleCore-35e23065d11c19d3.wasm +0 -0
- package/lib/legacy/static/RoomleToolsCore-775a48881eb11aa7.wasm +0 -0
- package/lib/legacy/static/default-external-object-api-configuration-f4223d765ebaf6d6.json +0 -70
- package/lib/legacy/stats-helper-3575eac3.legacy.js.map +0 -1
- package/lib/legacy/tools-core-3a199865.legacy.js.map +0 -1
- package/lib/material-viewer-0310d9de.js.map +0 -1
- package/lib/material-viewer-22c9572f.nomodule.js.map +0 -1
- package/lib/material-viewer-main-3483efae.js +0 -2
- package/lib/material-viewer-main-3483efae.js.map +0 -1
- package/lib/planner-main-8e1ad100.js +0 -2
- package/lib/planner-main-8e1ad100.js.map +0 -1
- package/lib/roomle-configurator-86c9ddbe.nomodule.js +0 -2
- package/lib/roomle-configurator-86c9ddbe.nomodule.js.map +0 -1
- package/lib/roomle-configurator-c64b5412.js +0 -2
- package/lib/roomle-configurator-c64b5412.js.map +0 -1
- package/lib/roomle-sdk-063b2f3d.js.map +0 -1
- package/lib/script-loader-1e3bbddc.nomodule.js.map +0 -1
- package/lib/script-loader-c8c6f4d6.js.map +0 -1
- package/lib/static/ConfiguratorKernel-732bdd63f6c11dc1.wasm +0 -0
- package/lib/static/RoomleCore-35e23065d11c19d3.wasm +0 -0
- package/lib/static/RoomleToolsCore-775a48881eb11aa7.wasm +0 -0
- package/lib/static/default-external-object-api-configuration-f4223d765ebaf6d6.json +0 -70
- package/lib/stats-helper-0eecf89a.js.map +0 -1
- package/lib/stats-helper-91bba9e4.nomodule.js.map +0 -1
- package/lib/tools-core-0b6d0766.nomodule.js.map +0 -1
- package/lib/tools-core-45afcb6a.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-aa074be0.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Configurator}from"./configurator-30f6aebc.js";import"./script-loader-d7ad07ff.js";import"./query-params-helper-47365ce8.js";import"./main-thread-to-worker-67108fb3.js";import"./roomle-dependency-injection-7fd12bfd.js";import"./camera-behaviour-e33c54d2.js";import"./component-raycast-helper-1cbfa1cf.js";import"./roomle-configurator-c05eae25.js";import"./default-light-setting-4ae60352.js";(new Configurator).boot(),window.requestIdleCallback||(window.requestIdleCallback=e=>setTimeout(()=>{let o=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},1)),window.cancelIdleCallback||(window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)});
|
|
2
|
+
//# sourceMappingURL=configurator-main-371321a0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-main-371321a0.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./configurator-
|
|
1
|
+
System.register(["./configurator-aa074be0.nomodule.js","./script-loader-b6e9fce9.nomodule.js","./query-params-helper-728f722d.nomodule.js","./main-thread-to-worker-45d16085.nomodule.js","./roomle-dependency-injection-4a02b093.nomodule.js","./camera-behaviour-91fe7454.nomodule.js","./component-raycast-helper-b0a355c6.nomodule.js","./roomle-configurator-fcd63c2f.nomodule.js","./default-light-setting-71209600.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-4a02b093.nomodule.js","./main-thread-to-worker-45d16085.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-f48c5c99.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuous-drawing-helper-f48c5c99.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-7fd12bfd.js";import{aT as RingGeometry,h as MeshBasicMaterial,w as DoubleSide,z as Mesh}from"./main-thread-to-worker-67108fb3.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-f851ec2b.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuous-drawing-helper-f851ec2b.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-e33c54d2.js";import{ag as getGUI}from"./roomle-dependency-injection-7fd12bfd.js";import{D as DirectionalLight,C as Color,V as Vector2,a as Vector3,A as AmbientLight}from"./main-thread-to-worker-67108fb3.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-4ae60352.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-light-setting-4ae60352.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./camera-behaviour-
|
|
2
|
-
//# sourceMappingURL=default-light-setting-
|
|
1
|
+
System.register(["./camera-behaviour-91fe7454.nomodule.js","./roomle-dependency-injection-4a02b093.nomodule.js","./main-thread-to-worker-45d16085.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-71209600.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-light-setting-71209600.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/lib/definitions/common-core/src/webgl/renderer/materials/postprocessing-material-plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type MeshStandardMaterial, type Texture } from 'three';
|
|
2
2
|
import type { Nullable } from '../../../../../typings/helper';
|
|
3
3
|
export declare class PostProcessingMaterialPlugin {
|
|
4
4
|
applyAoAndShadowToAlpha: boolean;
|
|
@@ -131,6 +131,7 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
131
131
|
private _updateComponentPosition;
|
|
132
132
|
protected _updateBounds(box: Box3, geometryBox?: Box3, geometryChanged?: boolean): void;
|
|
133
133
|
moveCamera(cameraParameter: CameraParameter): Promise<void>;
|
|
134
|
+
getSelectedRuntimeComponentIds(): number[];
|
|
134
135
|
selectComponent(runtimeId: number): void;
|
|
135
136
|
highlightParts(ids: number[]): void;
|
|
136
137
|
private _shouldHighlightComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type MeshStandardMaterial, type Texture } from 'three';
|
|
2
2
|
import type { Nullable } from '../../../../../typings/helper';
|
|
3
3
|
export declare class PostProcessingMaterialPlugin {
|
|
4
4
|
applyAoAndShadowToAlpha: boolean;
|
package/lib/definitions/packages/configurator-core/src/webgl/configurator-scene-manager.d.ts
CHANGED
|
@@ -131,6 +131,7 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
131
131
|
private _updateComponentPosition;
|
|
132
132
|
protected _updateBounds(box: Box3, geometryBox?: Box3, geometryChanged?: boolean): void;
|
|
133
133
|
moveCamera(cameraParameter: CameraParameter): Promise<void>;
|
|
134
|
+
getSelectedRuntimeComponentIds(): number[];
|
|
134
135
|
selectComponent(runtimeId: number): void;
|
|
135
136
|
highlightParts(ids: number[]): void;
|
|
136
137
|
private _shouldHighlightComponent;
|
|
@@ -22,12 +22,12 @@ export interface ExternalObjectUiCallback {
|
|
|
22
22
|
/** "onMergeExternalObjectGroup" is invoked when a group of root modules is merged into another group of root modules.
|
|
23
23
|
* The group with the ID "sourceGroupId" is merged into the group with the ID "targetGroup.id".
|
|
24
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
|
-
*
|
|
25
|
+
* "targetGroup" contains information about all root modules of the target group (both present and new) and their relative position and orientation.
|
|
26
|
+
* "idsOfGroupsMerged" are the IDs of the groups whose modules must be merged into the target group and therefore the groups that must be deleted.
|
|
27
27
|
* @param targetGroup The target group of root modules.
|
|
28
|
-
* @param
|
|
28
|
+
* @param idsOfGroupsMerged The IDs of the groups merged into the target group.
|
|
29
29
|
*/
|
|
30
|
-
onMergeExternalObjectGroup(targetGroup: ExternalObjectGroupAndModules,
|
|
30
|
+
onMergeExternalObjectGroup(targetGroup: ExternalObjectGroupAndModules, idsOfGroupsMerged: string | string[]): void;
|
|
31
31
|
/**
|
|
32
32
|
* "onSplitExternalObjectGroup" is invoked when one or more root modules are split from a group of root modules.
|
|
33
33
|
* The split root modules form a new group, which must be assigned a new ID.
|
|
@@ -46,6 +46,11 @@ export interface ExternalObjectAPI {
|
|
|
46
46
|
* @param findFreeSpaceInPlan A free space is automatically searched for in the plane.
|
|
47
47
|
*/
|
|
48
48
|
loadExternalObjectGroup(groupJson: string | object, findFreeSpaceInPlan: boolean): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* "renderImagesOfExternalObjectGroups" renders images of groups of modules.
|
|
51
|
+
* @param groupJson The group JSON as string or object.
|
|
52
|
+
*/
|
|
53
|
+
renderImageOfExternalObjectGroup(groupsJson: string | object): Promise<Map<string, string>>;
|
|
49
54
|
/**
|
|
50
55
|
* "removeExternalObjectGroup" removes a group and all its modules from the plan.
|
|
51
56
|
* @param groupId The ID of the group of modules.
|
|
@@ -178,7 +178,7 @@ export default class RoomlePlannerUiCallback extends UiCallback implements Exter
|
|
|
178
178
|
/**
|
|
179
179
|
* documented in interface ExternalObjectUiCallback
|
|
180
180
|
*/
|
|
181
|
-
onMergeExternalObjectGroup: (targetGroup: ExternalObjectGroupAndModules,
|
|
181
|
+
onMergeExternalObjectGroup: (targetGroup: ExternalObjectGroupAndModules, idsOfGroupsMerged: string | string[]) => void;
|
|
182
182
|
/**
|
|
183
183
|
* documented in interface ExternalObjectUiCallback
|
|
184
184
|
*/
|
|
@@ -364,6 +364,7 @@ export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlann
|
|
|
364
364
|
loadExternalObjectLibrary(libraryJson: string | object): void;
|
|
365
365
|
loadExternalObjectGroup(groupJson: string | object, findFreeSpaceInPlan: boolean): Promise<void>;
|
|
366
366
|
private _loadExternalObjectGroup;
|
|
367
|
+
renderImageOfExternalObjectGroup(groupsJson: string | object): Promise<Map<string, string>>;
|
|
367
368
|
removeExternalObjectGroup(groupId: string): Promise<void>;
|
|
368
369
|
removeExternalObjectRootModule(rootModuleId: string): void;
|
|
369
370
|
selectExternalObjectGroup(groupId: string): Promise<void>;
|
|
@@ -372,7 +373,7 @@ export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlann
|
|
|
372
373
|
openOrCloseGeometryOfExternalObject(groupIdOrRootModuleId: string, subModuleId: string | null, open: boolean, animate: boolean): Promise<void>;
|
|
373
374
|
private _selectKernelComponent;
|
|
374
375
|
_selectExternalObjectGroup(groupId: string, switchToPlanner: boolean): Promise<void>;
|
|
375
|
-
_selectExternalObjectModule(rootModuleId: string, subModuleId: string | null, selectPlanObject: boolean, switchToConfigurator: boolean): Promise<void>;
|
|
376
|
+
_selectExternalObjectModule(rootModuleId: string, subModuleId: string | null, selectPlanObject: boolean, switchToConfigurator: boolean, selectComponent: boolean): Promise<void>;
|
|
376
377
|
/**
|
|
377
378
|
* @internal
|
|
378
379
|
* Use this callbacks to hook in your functionality
|
package/lib/definitions/packages/planner-core/src/view-model/wall-plan-element-view-model.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type WallDimensionTransferable = DimensionDefinition<Position2, Position3
|
|
|
9
9
|
export declare const wallDimensionToTransferable: (wallDimension: WallDimension) => WallDimensionTransferable;
|
|
10
10
|
export declare const getTopViewMaterial: () => MeshPhysicalMaterial;
|
|
11
11
|
export default class WallPlanElementViewModel extends PlanElementViewModel {
|
|
12
|
+
private _lineForInvisibleWall?;
|
|
12
13
|
constructor(planObject: PlanObject);
|
|
13
14
|
get isSelected(): boolean;
|
|
14
15
|
getWallDimension(zoomFactor: number, clientWidth: number, clientHeight: number): WallDimension;
|
|
@@ -26,4 +27,11 @@ export default class WallPlanElementViewModel extends PlanElementViewModel {
|
|
|
26
27
|
protected _updateBoundingBox(): void;
|
|
27
28
|
private _setBoundingBoxValues;
|
|
28
29
|
protected _generateBoundingBox(): RoomleEventedMesh;
|
|
30
|
+
private _computeLineVertices;
|
|
31
|
+
private _createLineForInvisibleWall;
|
|
32
|
+
private _updateLineGeometry;
|
|
33
|
+
private _addThinLineForInvisibleWall;
|
|
34
|
+
private _updateThinLine;
|
|
35
|
+
private _removeThinLineForInvisibleWall;
|
|
36
|
+
update(): void;
|
|
29
37
|
}
|
|
@@ -14,6 +14,9 @@ export interface KernelVector3 {
|
|
|
14
14
|
y: number;
|
|
15
15
|
z: number;
|
|
16
16
|
}
|
|
17
|
+
export interface KernelMatrix4 {
|
|
18
|
+
m: number[];
|
|
19
|
+
}
|
|
17
20
|
export interface KernelValue {
|
|
18
21
|
value: string;
|
|
19
22
|
label: string;
|
|
@@ -223,9 +226,16 @@ export interface KernelPlanObject extends KernelPlanObjectBase {
|
|
|
223
226
|
parameters: KernelParameter[];
|
|
224
227
|
animations?: KernelAnimation[];
|
|
225
228
|
}
|
|
229
|
+
export declare const CORE_PLAN_COMPONENT_TYPE_DTO: {
|
|
230
|
+
readonly ROOT_COMPONENT: 0;
|
|
231
|
+
readonly COMPONENT: 1;
|
|
232
|
+
readonly ROOT_MODULE: 2;
|
|
233
|
+
readonly SUB_MODULE: 3;
|
|
234
|
+
};
|
|
226
235
|
export interface KernelPlanObjectComponent extends KernelPlanObjectBase {
|
|
227
236
|
planComponentRuntimeId: number;
|
|
228
237
|
componentId: string;
|
|
238
|
+
type: KernelComponentTypeDto;
|
|
229
239
|
parentObjectId: number;
|
|
230
240
|
childObjectIds: ems.EmsArray<number>;
|
|
231
241
|
}
|
|
@@ -241,23 +251,38 @@ export interface EmscriptenMap<K, V> {
|
|
|
241
251
|
set: (key: K, value: V) => void;
|
|
242
252
|
size: () => number;
|
|
243
253
|
}
|
|
254
|
+
export interface KernelComponentTypeDto {
|
|
255
|
+
value: Enumify<typeof CORE_PLAN_COMPONENT_TYPE_DTO>;
|
|
256
|
+
}
|
|
244
257
|
export interface KernelComponent {
|
|
258
|
+
[key: string]: any;
|
|
259
|
+
externalComponent: boolean;
|
|
260
|
+
type: KernelComponentTypeDto;
|
|
245
261
|
id: number;
|
|
246
|
-
|
|
247
|
-
bounds: KernelVector3;
|
|
248
|
-
boxForMeasurement: KernelCube;
|
|
262
|
+
valid: boolean;
|
|
249
263
|
deletionLocked: boolean;
|
|
264
|
+
objectId: number;
|
|
265
|
+
rootId: number;
|
|
266
|
+
rootSiblingIds: number[];
|
|
267
|
+
parentId: number;
|
|
268
|
+
childIds: EmscriptenList;
|
|
269
|
+
label: string;
|
|
270
|
+
labelIsCalculated: boolean;
|
|
271
|
+
componentId: string;
|
|
272
|
+
hash: string;
|
|
250
273
|
position: KernelVector3;
|
|
251
274
|
rotation: KernelVector3;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
275
|
+
transform: KernelMatrix4;
|
|
276
|
+
globalTransform: KernelMatrix4;
|
|
277
|
+
bounds: KernelVector3;
|
|
278
|
+
boundingBox: KernelCube;
|
|
279
|
+
boxForMeasurement: KernelCube;
|
|
255
280
|
parameters: KernelParameter[];
|
|
256
281
|
parameterGroups: KernelParameterGroup[];
|
|
282
|
+
possibleChildren: KernelPossibleChild[];
|
|
283
|
+
addOnSpots: AddOnSpot[];
|
|
257
284
|
dimensionings: Dimensioning[];
|
|
258
|
-
|
|
259
|
-
animations?: KernelAnimation[];
|
|
260
|
-
[key: string]: any;
|
|
285
|
+
animations: KernelAnimation[];
|
|
261
286
|
}
|
|
262
287
|
export declare const enum DIMENSIONING_TYPE {
|
|
263
288
|
X = 0,
|
|
@@ -37,6 +37,7 @@ export interface PlanElement extends KernelObject {
|
|
|
37
37
|
getMeshCenter(): KernelVector3;
|
|
38
38
|
getMeshOffsetRelativeToObject(): KernelVector3;
|
|
39
39
|
getId(): number;
|
|
40
|
+
readonly hidden: boolean;
|
|
40
41
|
}
|
|
41
42
|
export interface RectangleReferencePoints {
|
|
42
43
|
bottom: KernelVector3;
|
|
@@ -156,12 +157,13 @@ export interface PlanInteractionHandler {
|
|
|
156
157
|
moveElementBy(planObject: KernelObject, distance: KernelVector3): void;
|
|
157
158
|
duplicatePlanObject(object: PlanObject, count: number, findFreeSpaceInPlan: boolean): PlanObject[];
|
|
158
159
|
duplicatePlanObjects(objects: PlanObjectList, count: number, findFreeSpaceInPlan: boolean): PlanObject[];
|
|
160
|
+
setElementVisibility(element: PlanElement, isVisible: boolean): void;
|
|
159
161
|
moveObjectsBy(planObjects: KernelObjectPtrList, distance: KernelVector3): void;
|
|
160
162
|
rotateObjectTo(planObject: KernelObject, angleInRad: number): void;
|
|
161
163
|
setObjectRotation(planObject: KernelObject, angleInRad: number): void;
|
|
162
164
|
addPlanObjects(list: KernelObjectPtrList, findFreeSpaceInPlan: boolean): PlanObject[];
|
|
163
165
|
addPlanObjectFromItem(object: KernelObject, position: KernelVector3, type: number, findFreeSpaceInPlan: boolean): PlanObject;
|
|
164
|
-
addOrUpdateExternalPlanObjects(serialzedConfiguration: string, position: KernelVector3, rotationInRad: number, findFreeSpaceInPlan: boolean, applyGlobalChildMode: boolean): PlanObject[];
|
|
166
|
+
addOrUpdateExternalPlanObjects(serialzedConfiguration: string, position: KernelVector3, rotationInRad: number, findFreeSpaceInPlan: boolean, applyGlobalChildMode: boolean, isVisible: boolean): PlanObject[];
|
|
165
167
|
catalogItemLoaded(catalogItem: KernelCatalogItem): void;
|
|
166
168
|
removeElement(planObject: KernelObject): void;
|
|
167
169
|
removeObjectWithId(objectId: string): void;
|
|
@@ -22,12 +22,12 @@ export interface ExternalObjectUiCallback {
|
|
|
22
22
|
/** "onMergeExternalObjectGroup" is invoked when a group of root modules is merged into another group of root modules.
|
|
23
23
|
* The group with the ID "sourceGroupId" is merged into the group with the ID "targetGroup.id".
|
|
24
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
|
-
*
|
|
25
|
+
* "targetGroup" contains information about all root modules of the target group (both present and new) and their relative position and orientation.
|
|
26
|
+
* "idsOfGroupsMerged" are the IDs of the groups whose modules must be merged into the target group and therefore the groups that must be deleted.
|
|
27
27
|
* @param targetGroup The target group of root modules.
|
|
28
|
-
* @param
|
|
28
|
+
* @param idsOfGroupsMerged The IDs of the groups merged into the target group.
|
|
29
29
|
*/
|
|
30
|
-
onMergeExternalObjectGroup(targetGroup: ExternalObjectGroupAndModules,
|
|
30
|
+
onMergeExternalObjectGroup(targetGroup: ExternalObjectGroupAndModules, idsOfGroupsMerged: string | string[]): void;
|
|
31
31
|
/**
|
|
32
32
|
* "onSplitExternalObjectGroup" is invoked when one or more root modules are split from a group of root modules.
|
|
33
33
|
* The split root modules form a new group, which must be assigned a new ID.
|
|
@@ -46,6 +46,11 @@ export interface ExternalObjectAPI {
|
|
|
46
46
|
* @param findFreeSpaceInPlan A free space is automatically searched for in the plane.
|
|
47
47
|
*/
|
|
48
48
|
loadExternalObjectGroup(groupJson: string | object, findFreeSpaceInPlan: boolean): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* "renderImagesOfExternalObjectGroups" renders images of groups of modules.
|
|
51
|
+
* @param groupJson The group JSON as string or object.
|
|
52
|
+
*/
|
|
53
|
+
renderImageOfExternalObjectGroup(groupsJson: string | object): Promise<Map<string, string>>;
|
|
49
54
|
/**
|
|
50
55
|
* "removeExternalObjectGroup" removes a group and all its modules from the plan.
|
|
51
56
|
* @param groupId The ID of the group of modules.
|
|
@@ -178,7 +178,7 @@ export default class RoomlePlannerUiCallback extends UiCallback implements Exter
|
|
|
178
178
|
/**
|
|
179
179
|
* documented in interface ExternalObjectUiCallback
|
|
180
180
|
*/
|
|
181
|
-
onMergeExternalObjectGroup: (targetGroup: ExternalObjectGroupAndModules,
|
|
181
|
+
onMergeExternalObjectGroup: (targetGroup: ExternalObjectGroupAndModules, idsOfGroupsMerged: string | string[]) => void;
|
|
182
182
|
/**
|
|
183
183
|
* documented in interface ExternalObjectUiCallback
|
|
184
184
|
*/
|
|
@@ -364,6 +364,7 @@ export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlann
|
|
|
364
364
|
loadExternalObjectLibrary(libraryJson: string | object): void;
|
|
365
365
|
loadExternalObjectGroup(groupJson: string | object, findFreeSpaceInPlan: boolean): Promise<void>;
|
|
366
366
|
private _loadExternalObjectGroup;
|
|
367
|
+
renderImageOfExternalObjectGroup(groupsJson: string | object): Promise<Map<string, string>>;
|
|
367
368
|
removeExternalObjectGroup(groupId: string): Promise<void>;
|
|
368
369
|
removeExternalObjectRootModule(rootModuleId: string): void;
|
|
369
370
|
selectExternalObjectGroup(groupId: string): Promise<void>;
|
|
@@ -372,7 +373,7 @@ export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlann
|
|
|
372
373
|
openOrCloseGeometryOfExternalObject(groupIdOrRootModuleId: string, subModuleId: string | null, open: boolean, animate: boolean): Promise<void>;
|
|
373
374
|
private _selectKernelComponent;
|
|
374
375
|
_selectExternalObjectGroup(groupId: string, switchToPlanner: boolean): Promise<void>;
|
|
375
|
-
_selectExternalObjectModule(rootModuleId: string, subModuleId: string | null, selectPlanObject: boolean, switchToConfigurator: boolean): Promise<void>;
|
|
376
|
+
_selectExternalObjectModule(rootModuleId: string, subModuleId: string | null, selectPlanObject: boolean, switchToConfigurator: boolean, selectComponent: boolean): Promise<void>;
|
|
376
377
|
/**
|
|
377
378
|
* @internal
|
|
378
379
|
* Use this callbacks to hook in your functionality
|
|
@@ -9,6 +9,7 @@ export type WallDimensionTransferable = DimensionDefinition<Position2, Position3
|
|
|
9
9
|
export declare const wallDimensionToTransferable: (wallDimension: WallDimension) => WallDimensionTransferable;
|
|
10
10
|
export declare const getTopViewMaterial: () => MeshPhysicalMaterial;
|
|
11
11
|
export default class WallPlanElementViewModel extends PlanElementViewModel {
|
|
12
|
+
private _lineForInvisibleWall?;
|
|
12
13
|
constructor(planObject: PlanObject);
|
|
13
14
|
get isSelected(): boolean;
|
|
14
15
|
getWallDimension(zoomFactor: number, clientWidth: number, clientHeight: number): WallDimension;
|
|
@@ -26,4 +27,11 @@ export default class WallPlanElementViewModel extends PlanElementViewModel {
|
|
|
26
27
|
protected _updateBoundingBox(): void;
|
|
27
28
|
private _setBoundingBoxValues;
|
|
28
29
|
protected _generateBoundingBox(): RoomleEventedMesh;
|
|
30
|
+
private _computeLineVertices;
|
|
31
|
+
private _createLineForInvisibleWall;
|
|
32
|
+
private _updateLineGeometry;
|
|
33
|
+
private _addThinLineForInvisibleWall;
|
|
34
|
+
private _updateThinLine;
|
|
35
|
+
private _removeThinLineForInvisibleWall;
|
|
36
|
+
update(): void;
|
|
29
37
|
}
|
|
@@ -14,6 +14,9 @@ export interface KernelVector3 {
|
|
|
14
14
|
y: number;
|
|
15
15
|
z: number;
|
|
16
16
|
}
|
|
17
|
+
export interface KernelMatrix4 {
|
|
18
|
+
m: number[];
|
|
19
|
+
}
|
|
17
20
|
export interface KernelValue {
|
|
18
21
|
value: string;
|
|
19
22
|
label: string;
|
|
@@ -223,9 +226,16 @@ export interface KernelPlanObject extends KernelPlanObjectBase {
|
|
|
223
226
|
parameters: KernelParameter[];
|
|
224
227
|
animations?: KernelAnimation[];
|
|
225
228
|
}
|
|
229
|
+
export declare const CORE_PLAN_COMPONENT_TYPE_DTO: {
|
|
230
|
+
readonly ROOT_COMPONENT: 0;
|
|
231
|
+
readonly COMPONENT: 1;
|
|
232
|
+
readonly ROOT_MODULE: 2;
|
|
233
|
+
readonly SUB_MODULE: 3;
|
|
234
|
+
};
|
|
226
235
|
export interface KernelPlanObjectComponent extends KernelPlanObjectBase {
|
|
227
236
|
planComponentRuntimeId: number;
|
|
228
237
|
componentId: string;
|
|
238
|
+
type: KernelComponentTypeDto;
|
|
229
239
|
parentObjectId: number;
|
|
230
240
|
childObjectIds: ems.EmsArray<number>;
|
|
231
241
|
}
|
|
@@ -241,23 +251,38 @@ export interface EmscriptenMap<K, V> {
|
|
|
241
251
|
set: (key: K, value: V) => void;
|
|
242
252
|
size: () => number;
|
|
243
253
|
}
|
|
254
|
+
export interface KernelComponentTypeDto {
|
|
255
|
+
value: Enumify<typeof CORE_PLAN_COMPONENT_TYPE_DTO>;
|
|
256
|
+
}
|
|
244
257
|
export interface KernelComponent {
|
|
258
|
+
[key: string]: any;
|
|
259
|
+
externalComponent: boolean;
|
|
260
|
+
type: KernelComponentTypeDto;
|
|
245
261
|
id: number;
|
|
246
|
-
|
|
247
|
-
bounds: KernelVector3;
|
|
248
|
-
boxForMeasurement: KernelCube;
|
|
262
|
+
valid: boolean;
|
|
249
263
|
deletionLocked: boolean;
|
|
264
|
+
objectId: number;
|
|
265
|
+
rootId: number;
|
|
266
|
+
rootSiblingIds: number[];
|
|
267
|
+
parentId: number;
|
|
268
|
+
childIds: EmscriptenList;
|
|
269
|
+
label: string;
|
|
270
|
+
labelIsCalculated: boolean;
|
|
271
|
+
componentId: string;
|
|
272
|
+
hash: string;
|
|
250
273
|
position: KernelVector3;
|
|
251
274
|
rotation: KernelVector3;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
275
|
+
transform: KernelMatrix4;
|
|
276
|
+
globalTransform: KernelMatrix4;
|
|
277
|
+
bounds: KernelVector3;
|
|
278
|
+
boundingBox: KernelCube;
|
|
279
|
+
boxForMeasurement: KernelCube;
|
|
255
280
|
parameters: KernelParameter[];
|
|
256
281
|
parameterGroups: KernelParameterGroup[];
|
|
282
|
+
possibleChildren: KernelPossibleChild[];
|
|
283
|
+
addOnSpots: AddOnSpot[];
|
|
257
284
|
dimensionings: Dimensioning[];
|
|
258
|
-
|
|
259
|
-
animations?: KernelAnimation[];
|
|
260
|
-
[key: string]: any;
|
|
285
|
+
animations: KernelAnimation[];
|
|
261
286
|
}
|
|
262
287
|
export declare const enum DIMENSIONING_TYPE {
|
|
263
288
|
X = 0,
|
|
@@ -37,6 +37,7 @@ export interface PlanElement extends KernelObject {
|
|
|
37
37
|
getMeshCenter(): KernelVector3;
|
|
38
38
|
getMeshOffsetRelativeToObject(): KernelVector3;
|
|
39
39
|
getId(): number;
|
|
40
|
+
readonly hidden: boolean;
|
|
40
41
|
}
|
|
41
42
|
export interface RectangleReferencePoints {
|
|
42
43
|
bottom: KernelVector3;
|
|
@@ -156,12 +157,13 @@ export interface PlanInteractionHandler {
|
|
|
156
157
|
moveElementBy(planObject: KernelObject, distance: KernelVector3): void;
|
|
157
158
|
duplicatePlanObject(object: PlanObject, count: number, findFreeSpaceInPlan: boolean): PlanObject[];
|
|
158
159
|
duplicatePlanObjects(objects: PlanObjectList, count: number, findFreeSpaceInPlan: boolean): PlanObject[];
|
|
160
|
+
setElementVisibility(element: PlanElement, isVisible: boolean): void;
|
|
159
161
|
moveObjectsBy(planObjects: KernelObjectPtrList, distance: KernelVector3): void;
|
|
160
162
|
rotateObjectTo(planObject: KernelObject, angleInRad: number): void;
|
|
161
163
|
setObjectRotation(planObject: KernelObject, angleInRad: number): void;
|
|
162
164
|
addPlanObjects(list: KernelObjectPtrList, findFreeSpaceInPlan: boolean): PlanObject[];
|
|
163
165
|
addPlanObjectFromItem(object: KernelObject, position: KernelVector3, type: number, findFreeSpaceInPlan: boolean): PlanObject;
|
|
164
|
-
addOrUpdateExternalPlanObjects(serialzedConfiguration: string, position: KernelVector3, rotationInRad: number, findFreeSpaceInPlan: boolean, applyGlobalChildMode: boolean): PlanObject[];
|
|
166
|
+
addOrUpdateExternalPlanObjects(serialzedConfiguration: string, position: KernelVector3, rotationInRad: number, findFreeSpaceInPlan: boolean, applyGlobalChildMode: boolean, isVisible: boolean): PlanObject[];
|
|
165
167
|
catalogItemLoaded(catalogItem: KernelCatalogItem): void;
|
|
166
168
|
removeElement(planObject: KernelObject): void;
|
|
167
169
|
removeObjectWithId(objectId: string): void;
|
package/lib/{dimensioning-helper-8f696cba.nomodule.js → dimensioning-helper-917188dc.nomodule.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=dimensioning-helper-
|
|
1
|
+
System.register(["./roomle-dependency-injection-4a02b093.nomodule.js","./main-thread-to-worker-45d16085.nomodule.js","./TextGeometry-e9f8b213.nomodule.js"],(function(t){var i,e,s,n,h,o,a,_,d,r,p,m,l,c,x,u,g,w,b,y,T,L,z;return{setters:[function(t){i=t.aW,e=t.H,s=t._,n=t.i,h=t.j,o=t.aX,a=t.ac},function(t){_=t.O,d=t.a,r=t.h,p=t.w,m=t.bo,l=t.B,c=t.z,x=t.Q,u=t.b9,g=t.K,w=t.u,b=t.G,y=t.b,T=t.bH,L=t.ad},function(t){z=t.T}],execute:function(){const G="component_dimensioning_plane_material",M="component_dimensioning_text_material";class j extends _{constructor(t){super(),this._label="",this._parameters={font:null,size:.1,height:.001,curveSegments:2,bevelEnabled:!0,bevelThickness:.001,bevelSize:.001},this.topDown=!1,this._parameters.font=t,this._position=new d,this._initMaterials(),this._init(),this._update()}_initMaterials(){this._cacheHolder.materialCache.has(G)?this._planeMaterial=this._cacheHolder.materialCache.get(G):(this._planeMaterial=new r({color:16777215,side:p,opacity:.8,transparent:!0}),this._cacheHolder.materialCache.set(G,this._planeMaterial)),this._cacheHolder.materialCache.has(M)?this._textMaterial=this._cacheHolder.materialCache.get(M):(this._textMaterial=new m({color:3618615}),this._cacheHolder.materialCache.set(M,this._textMaterial))}_init(){let t=new l;this._text=new c(t,this._textMaterial),this._text.userData.ignoreComponentRaycast=!0,this._text.name="text with background text "+this._label,this._plane=new c(t,this._planeMaterial),this._plane.userData.ignoreComponentRaycast=!0,this._plane.name="text with background plane "+this._label,this._textGeometry=new z(this._label,this._parameters),this._textGeometry.computeBoundingBox(),this._text.geometry=this._textGeometry,this.add(this._text),this.add(this._plane)}update(t,i,e){this._position.copy(t),this._cameraPosition=e,this._label=i;const s=this.getWorldPosition(new d),n=this._cameraPosition.distanceTo(s),h=Math.max(.01,n/150),o=Math.max(5e-4,n/5e3);this._parameters.bevelThickness=o,this._parameters.bevelSize=o,this._parameters.size=h,this._textGeometry=new z(this._label,this._parameters),this._textGeometry.computeBoundingBox(),this._text.geometry=this._textGeometry,this._update()}_update(){if(this.topDown){let t=new x;t.setFromAxisAngle(new d(-1,0,0),Math.PI/2),this._updateText(this._textGeometry,t,new d)}else if(this._updateText(this._textGeometry,new x,new d),this._cameraPosition){const t=this.getWorldPosition(new d),e=i(Math.atan2(this._cameraPosition.x-t.x,this._cameraPosition.z-t.z)-this.parent.rotation.y);this._text.rotation.y=e,this._plane.rotation.y=e}}_updateText(t,i,e){let s=new d;s.copy(this._position),e.x*=this._getXSign(),s.add(e);let n=t.boundingBox.getSize(new d);t.center(),this._text.position.copy(s),i&&this._text.quaternion.copy(i);let h=new u(n.x+.02,n.y+.02,32);h.center(),this._plane.geometry=h,this._plane.position.copy(s),i&&this._plane.quaternion.copy(i)}_getXSign(){return!this._cameraPosition||this._cameraPosition.x>=0?1:-1}dispose(){e(this)}}s([n],j.prototype,"_cacheHolder",void 0);class D{constructor(t){this._objectRotation=0,this._cameraPosition=new d,this._topDimensions=!1,this._initialized=new h,this._enabled=!1,this._dimensionsVisible=!1,this._dimensionLineGroup=new g,this._dimensionTextGroup=new _,this._creator_=t,this._lineMaterial=new w({color:3618615,linewidth:2});let i=new l;this._widthLine=new b(i,this._lineMaterial),this._widthLine.userData.ignoreComponentRaycast=!0,this._widthLine.name="dimension width line",this._dimensionLineGroup.add(this._widthLine),this._heightLine=new b(i,this._lineMaterial),this._heightLine.userData.ignoreComponentRaycast=!0,this._heightLine.name="dimension height line",this._dimensionLineGroup.add(this._heightLine),this._depthLine=new b(i,this._lineMaterial),this._depthLine.userData.ignoreComponentRaycast=!0,this._depthLine.name="dimension depth line",this._dimensionLineGroup.add(this._depthLine),this._planeMaterial=new r({color:16777215,side:p,opacity:.8,transparent:!0}),o.loadFont("static/lato_regular_sub-d4b30187185acc59.json").then(t=>{this._font=t,this._loaded()})}_loaded(){this.update(!1),this.addToObject(this._object),this.addToUiScene(this._uiScene),this._initialized.resolve()}_performUpdate(t){this._enabled&&(this._dimensions||t)&&this._font&&(this._updateHeight(),this._updateWidth(),this._updateDepth())}_updateWidth(){let t=new l,i=this._getWidthEdge(),e=[i.start.x,i.start.y,i.start.z,i.end.x,i.end.y,i.end.z];t.setAttribute("position",new y(new Float32Array(e),3)),this._widthLine.geometry.dispose(),this._widthLine.geometry=t;let s=i.getCenter(new d);this._widthText||(this._widthText=new j(this._font),this._dimensionTextGroup.add(this._widthText)),this._widthText.topDown=this._topDimensions;const n=this._unitFormatter.formatMMValueToUnitString(1e3*this._dimensions.x);this._widthText.update(s,n,this._cameraPosition)}_updateHeight(){let t=new l,i=this._getHeightEdge(),e=[i.start.x,i.start.y,i.start.z,i.end.x,i.end.y,i.end.z];t.setAttribute("position",new y(new Float32Array(e),3)),this._heightLine.geometry.dispose(),this._heightLine.geometry=t;let s=i.getCenter(new d);this._heightText||(this._heightText=new j(this._font),this._dimensionTextGroup.add(this._heightText)),this._heightText.topDown=this._topDimensions;const n=this._unitFormatter.formatMMValueToUnitString(1e3*this._dimensions.y);this._heightText.update(s,n,this._cameraPosition)}_updateDepth(){let t=new l,i=this._getDepthEdge(),e=[i.start.x,i.start.y,i.start.z,i.end.x,i.end.y,i.end.z];t.setAttribute("position",new y(new Float32Array(e),3)),this._depthLine.geometry.dispose(),this._depthLine.geometry=t;let s=i.getCenter(new d);this._depthText||(this._depthText=new j(this._font),this._dimensionTextGroup.add(this._depthText)),this._depthText.topDown=this._topDimensions;const n=this._unitFormatter.formatMMValueToUnitString(-1e3*this._dimensions.z);this._depthText.update(s,n,this._cameraPosition)}updateSize(t){this._origin=a(t.origin),this._dimensionLineGroup.position.x=this._origin.x-this._object.position.x,this._dimensionLineGroup.position.y=this._origin.y-this._object.position.y,this._dimensionLineGroup.position.z=this._origin.z-this._object.position.z,this._dimensions=a(t.size);const i=this._dimensionLineGroup.localToWorld(new d);this._dimensionTextGroup.position.copy(i),this.update()}update(t=!1){this._enabled&&!this._dimensionsVisible&&(this._dimensionsVisible=!0,this._visibilityChangedCallback()),this._performUpdate(t)}addToObject(t){this._widthText&&this._widthLine&&this._heightText&&this._heightLine&&this._heightText&&this._heightLine&&t.add(this._dimensionLineGroup)}removeFromObject(t){t.remove(this._dimensionLineGroup),this.update()}addToUiScene(t){if(!(this._widthText&&this._heightText&&this._depthText&&this._object))return;const i=this._dimensionLineGroup.localToWorld(new d);this._dimensionTextGroup.position.copy(i),this._dimensionTextGroup.rotation.y=this._objectRotation,t.add(this._dimensionTextGroup),this.update()}removeFromUiScene(t){t.remove(this._dimensionTextGroup),this.update()}_getWidthEdge(){const t=this._getRotation();return t>Math.PI/2||t<-Math.PI/2?new T(new d(-.05,0,this._dimensions.z-.05),new d(this._dimensions.x+.05,0,this._dimensions.z-.05)):new T(new d(-.05,0,.05),new d(this._dimensions.x+.05,0,.05))}_getDepthEdge(){return this._getRotation()>0?new T(new d(.05+this._dimensions.x,0,.05),new d(.05+this._dimensions.x,0,this._dimensions.z-.05)):new T(new d(-.05,0,.05),new d(-.05,0,this._dimensions.z-.05))}_getHeightEdge(){const t=this._getRotation();return t>0&&t<Math.PI/2?new T(new d(-.05,0,.05),new d(-.05,this._dimensions.y+.05,.05)):t>Math.PI/2?new T(new d(-.05,0,this._dimensions.z-.05),new d(-.05,this._dimensions.y+.05,this._dimensions.z-.05)):t<-Math.PI/2?new T(new d(.05+this._dimensions.x,0,this._dimensions.z-.05),new d(.05+this._dimensions.x,this._dimensions.y+.05,this._dimensions.z-.05)):new T(new d(.05+this._dimensions.x,0,.05),new d(.05+this._dimensions.x,this._dimensions.y+.05,.05))}onDimensionsVisibilityChanged(t){this._onChange=t}enableTopDimensions(){this._topDimensions=!0,this.enableDimensions(),this._heightLine.visible=!1,this._heightText.visible=!1,this.update(!0)}disableTopDimensions(){this._topDimensions=!1,this._heightLine.visible=!0,this._heightText.visible=!0,this.disableDimensions()}enableDimensions(){this._enabled=!0,this.update(!0),this.addToObject(this._object),this.addToUiScene(this._uiScene)}disableDimensions(){this._enabled=!1,this._dimensionsVisible&&(this._dimensionsVisible=!1,this._visibilityChangedCallback()),this.removeFromUiScene(this._uiScene),this.removeFromObject(this._object)}_visibilityChangedCallback(){this._onChange&&this._onChange(this._dimensionsVisible)}_clear(){this._lineMaterial.dispose(),this._planeMaterial.dispose(),this._widthLine.geometry.dispose(),this._heightLine.geometry.dispose(),this._depthLine.geometry.dispose(),this._heightText.dispose(),this._heightText.dispose(),this._depthText.dispose()}getBoundingBox(){const t=new L;return t.expandByObject(this._widthLine),t.expandByObject(this._widthText),t.expandByObject(this._heightLine),t.expandByObject(this._heightText),t.expandByObject(this._depthLine),t.expandByObject(this._depthText),t}setVisibility(t){this._dimensionLineGroup&&this._dimensionTextGroup&&(this._dimensionLineGroup.visible=t,this._dimensionTextGroup.visible=t)}moveCameraStart(t){this.setVisibility(!1),this._cameraPosition=t,this.update()}moveCameraEnd(t){this.setVisibility(!0),this._cameraPosition=t,this.update()}clearScene(t){this._clear()}setObject(t,i=0){this._object=t,this._objectRotation=i}setUiScene(t){this._uiScene=t}isInitialized(){return this._initialized.wait()}areDimensionsEnabled(){return this._enabled}_getRotation(){const t=this._object.getWorldPosition(new d);return i(Math.atan2(this._cameraPosition.x-t.x,this._cameraPosition.z-t.z)-this._objectRotation)}}t("default",D),s([n],D.prototype,"_unitFormatter",void 0)}}}));
|
|
2
|
+
//# sourceMappingURL=dimensioning-helper-917188dc.nomodule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimensioning-helper-
|
|
1
|
+
{"version":3,"file":"dimensioning-helper-917188dc.nomodule.js","sources":["../../packages/configurator-core/public/fonts/lato_regular_sub.json"],"sourcesContent":["export default \"static/lato_regular_sub-d4b30187185acc59.json\""],"names":[],"mappings":"w4HAAe"}
|