@roomle/web-sdk 2.35.0 → 2.36.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{banana-for-scale-01a40f7a.nomodule.js → banana-for-scale-7d269b84.nomodule.js} +2 -2
- package/lib/{banana-for-scale-01a40f7a.nomodule.js.map → banana-for-scale-7d269b84.nomodule.js.map} +1 -1
- package/lib/{banana-for-scale-ae7acba1.js → banana-for-scale-fccf40b0.js} +2 -2
- package/lib/{banana-for-scale-ae7acba1.js.map → banana-for-scale-fccf40b0.js.map} +1 -1
- package/lib/{component-dimensioning-cbcaf431.nomodule.js → component-dimensioning-7f0b21cb.nomodule.js} +2 -2
- package/lib/component-dimensioning-7f0b21cb.nomodule.js.map +1 -0
- package/lib/{component-dimensioning-78625f46.js → component-dimensioning-85dba72d.js} +2 -2
- package/lib/component-dimensioning-85dba72d.js.map +1 -0
- package/lib/{component-raycast-helper-549c8ae1.js → component-raycast-helper-9b0a9001.js} +2 -2
- package/lib/component-raycast-helper-9b0a9001.js.map +1 -0
- package/lib/{component-raycast-helper-13b853d3.nomodule.js → component-raycast-helper-de345b4a.nomodule.js} +2 -2
- package/lib/component-raycast-helper-de345b4a.nomodule.js.map +1 -0
- package/lib/{configurator-ee75ff28.js → configurator-6549a336.js} +2 -2
- package/lib/configurator-6549a336.js.map +1 -0
- package/lib/{configurator-8bbf3a38.nomodule.js → configurator-c9710d21.nomodule.js} +2 -2
- package/lib/configurator-c9710d21.nomodule.js.map +1 -0
- package/lib/configurator-dummy-app.js +1 -1
- package/lib/configurator-dummy-app.js.map +1 -1
- package/lib/configurator-main-2345d721.js +2 -0
- package/lib/configurator-main-2345d721.js.map +1 -0
- package/lib/configurator-main.nomodule.js +1 -1
- package/lib/{default-light-setting-6dd9587a.nomodule.js → default-light-setting-84270b95.nomodule.js} +2 -2
- package/lib/default-light-setting-84270b95.nomodule.js.map +1 -0
- package/lib/{default-light-setting-702bc838.js → default-light-setting-9ed8c484.js} +2 -2
- package/lib/default-light-setting-9ed8c484.js.map +1 -0
- package/lib/definitions/common-core/src/services/environment-loader.d.ts +6 -0
- package/lib/definitions/common-core/src/utils/common-utils.d.ts +6 -0
- package/lib/definitions/common-core/src/view-model/configurator-view-model.d.ts +2 -0
- package/lib/definitions/common-core/src/view-model/plan-element-view-model.d.ts +1 -0
- package/lib/definitions/configurator-core/src/utils/component-dimensioning-helper.d.ts +2 -1
- package/lib/definitions/configurator-core/src/webgl/configurator-scene-manager.d.ts +2 -1
- package/lib/{dimensioning-helper-d8ccc5a9.nomodule.js → dimensioning-helper-118608cf.nomodule.js} +2 -2
- package/lib/{dimensioning-helper-d8ccc5a9.nomodule.js.map → dimensioning-helper-118608cf.nomodule.js.map} +1 -1
- package/lib/{dimensioning-helper-98e00844.js → dimensioning-helper-27aa6b1c.js} +2 -2
- package/lib/{dimensioning-helper-98e00844.js.map → dimensioning-helper-27aa6b1c.js.map} +1 -1
- package/lib/{glb-viewer-17793f36.js → glb-viewer-90bdd054.js} +2 -2
- package/lib/{glb-viewer-17793f36.js.map → glb-viewer-90bdd054.js.map} +1 -1
- package/lib/{glb-viewer-963970fb.nomodule.js → glb-viewer-a63b0463.nomodule.js} +2 -2
- package/lib/{glb-viewer-963970fb.nomodule.js.map → glb-viewer-a63b0463.nomodule.js.map} +1 -1
- package/lib/glb-viewer-main-d705f227.js +2 -0
- package/lib/glb-viewer-main-d705f227.js.map +1 -0
- package/lib/glb-viewer-main.nomodule.js +1 -1
- package/lib/legacy/{banana-for-scale-1cad6906.legacy.js → banana-for-scale-f0f24a8a.legacy.js} +2 -2
- package/lib/legacy/{banana-for-scale-1cad6906.legacy.js.map → banana-for-scale-f0f24a8a.legacy.js.map} +1 -1
- package/lib/legacy/{component-dimensioning-77ba0d28.legacy.js → component-dimensioning-f6319d77.legacy.js} +2 -2
- package/lib/legacy/component-dimensioning-f6319d77.legacy.js.map +1 -0
- package/lib/legacy/{component-raycast-helper-feb21fd3.legacy.js → component-raycast-helper-f25362d3.legacy.js} +2 -2
- package/lib/legacy/component-raycast-helper-f25362d3.legacy.js.map +1 -0
- package/lib/legacy/{configurator-55749e3c.legacy.js → configurator-9516b676.legacy.js} +2 -2
- package/lib/legacy/configurator-9516b676.legacy.js.map +1 -0
- package/lib/legacy/configurator-main.legacy.js +1 -1
- package/lib/legacy/{default-light-setting-d15a9123.legacy.js → default-light-setting-57b4da0a.legacy.js} +2 -2
- package/lib/legacy/default-light-setting-57b4da0a.legacy.js.map +1 -0
- package/lib/legacy/{dimensioning-helper-54f30880.legacy.js → dimensioning-helper-68dc010f.legacy.js} +2 -2
- package/lib/legacy/{dimensioning-helper-54f30880.legacy.js.map → dimensioning-helper-68dc010f.legacy.js.map} +1 -1
- package/lib/legacy/{glb-viewer-a0468968.legacy.js → glb-viewer-8f0ba881.legacy.js} +2 -2
- package/lib/legacy/{glb-viewer-a0468968.legacy.js.map → glb-viewer-8f0ba881.legacy.js.map} +1 -1
- package/lib/legacy/glb-viewer-main.legacy.js +1 -1
- package/lib/legacy/{material-viewer-c1b64c49.legacy.js → material-viewer-80422a2f.legacy.js} +2 -2
- package/lib/legacy/material-viewer-80422a2f.legacy.js.map +1 -0
- package/lib/legacy/material-viewer-main.legacy.js +1 -1
- package/lib/legacy/{pixotron-c3147237.legacy.js → pixotron-d723be5f.legacy.js} +2 -2
- package/lib/legacy/{pixotron-c3147237.legacy.js.map → pixotron-d723be5f.legacy.js.map} +1 -1
- package/lib/legacy/planner-a38d4453.legacy.js +2 -0
- package/lib/legacy/{planner-408cc0e1.legacy.js.map → planner-a38d4453.legacy.js.map} +1 -1
- package/lib/legacy/planner-main.legacy.js +1 -1
- package/lib/legacy/roomle-configurator-30b6b70d.legacy.js +2 -0
- package/lib/legacy/{roomle-configurator-60e1c49a.legacy.js.map → roomle-configurator-30b6b70d.legacy.js.map} +1 -1
- package/lib/legacy/roomle-dependency-injection-82abffba.legacy.js +16 -0
- package/lib/legacy/{roomle-dependency-injection-07d3dd01.legacy.js.map → roomle-dependency-injection-82abffba.legacy.js.map} +1 -1
- package/lib/legacy/roomle-sdk.legacy.js +1 -1
- package/lib/legacy/static/{ConfiguratorKernel-648649775f904f5a.js → ConfiguratorKernel-65576c77dcbcf095.js} +73 -73
- package/lib/legacy/static/ConfiguratorKernel-9f67b7e88d0bd992.wasm +0 -0
- package/lib/legacy/static/ConfiguratorKernelJs-4dc085be87a3e6e0.mem +0 -0
- package/lib/legacy/static/ConfiguratorKernelJs-935c7588ff18e960.js +146 -0
- package/lib/legacy/static/RoomleCore-893a02359b06c69e.js +129 -0
- package/lib/legacy/static/RoomleCore-b631890cd6f7f9df.wasm +0 -0
- package/lib/legacy/static/RoomleCoreJs-0bb526365f5c3f91.mem +0 -0
- package/lib/legacy/static/RoomleCoreJs-f5fe1b6e08c282c6.js +154 -0
- package/lib/legacy/static/shaders-63802d07b3443bcb.json +1 -0
- package/lib/legacy/{stats-helper-a5b6d704.legacy.js → stats-helper-129e98f2.legacy.js} +2 -2
- package/lib/legacy/{stats-helper-a5b6d704.legacy.js.map → stats-helper-129e98f2.legacy.js.map} +1 -1
- package/lib/{material-viewer-9487c5d3.nomodule.js → material-viewer-6d67a7fe.nomodule.js} +2 -2
- package/lib/material-viewer-6d67a7fe.nomodule.js.map +1 -0
- package/lib/{material-viewer-03aa07c6.js → material-viewer-d4c555be.js} +2 -2
- package/lib/material-viewer-d4c555be.js.map +1 -0
- package/lib/material-viewer-main-470ce4f6.js +2 -0
- package/lib/material-viewer-main-470ce4f6.js.map +1 -0
- package/lib/material-viewer-main.nomodule.js +1 -1
- package/lib/{pixotron-00bf7542.nomodule.js → pixotron-067be719.nomodule.js} +2 -2
- package/lib/{pixotron-00bf7542.nomodule.js.map → pixotron-067be719.nomodule.js.map} +1 -1
- package/lib/{pixotron-891cc455.js → pixotron-28ef478c.js} +2 -2
- package/lib/{pixotron-891cc455.js.map → pixotron-28ef478c.js.map} +1 -1
- package/lib/planner-4ca8aa4e.nomodule.js +2 -0
- package/lib/{planner-d8fe36fa.nomodule.js.map → planner-4ca8aa4e.nomodule.js.map} +1 -1
- package/lib/planner-959a2f93.js +2 -0
- package/lib/{planner-420e2309.js.map → planner-959a2f93.js.map} +1 -1
- package/lib/planner-dummy-app.js +1 -1
- package/lib/planner-dummy-app.js.map +1 -1
- package/lib/planner-main-75a2b465.js +2 -0
- package/lib/planner-main-75a2b465.js.map +1 -0
- package/lib/planner-main.nomodule.js +1 -1
- package/lib/roomle-configurator-1799a79d.js +2 -0
- package/lib/{roomle-configurator-ee548bf9.js.map → roomle-configurator-1799a79d.js.map} +1 -1
- package/lib/roomle-configurator-a55bbbfe.nomodule.js +2 -0
- package/lib/{roomle-configurator-ac23719f.nomodule.js.map → roomle-configurator-a55bbbfe.nomodule.js.map} +1 -1
- package/lib/roomle-dependency-injection-c680c022.nomodule.js +16 -0
- package/lib/{roomle-dependency-injection-86b1fe1f.nomodule.js.map → roomle-dependency-injection-c680c022.nomodule.js.map} +1 -1
- package/lib/roomle-dependency-injection-dcf7fa2f.js +16 -0
- package/lib/{roomle-dependency-injection-b3b8e294.js.map → roomle-dependency-injection-dcf7fa2f.js.map} +1 -1
- package/lib/{roomle-sdk-b40ffe47.js → roomle-sdk-572b0df0.js} +2 -2
- package/lib/roomle-sdk-572b0df0.js.map +1 -0
- package/lib/roomle-sdk.nomodule.js +1 -1
- package/lib/static/ConfiguratorKernel-65576c77dcbcf095.js +1 -0
- package/lib/static/ConfiguratorKernel-65576c77dcbcf095.js.map +1 -0
- package/lib/static/ConfiguratorKernel-9f67b7e88d0bd992.wasm +0 -0
- package/lib/static/ConfiguratorKernelJs-4dc085be87a3e6e0.mem +0 -0
- package/lib/static/ConfiguratorKernelJs-935c7588ff18e960.js +146 -0
- package/lib/static/RoomleCore-893a02359b06c69e.js +1 -0
- package/lib/static/RoomleCore-893a02359b06c69e.js.map +1 -0
- package/lib/static/RoomleCore-b631890cd6f7f9df.wasm +0 -0
- package/lib/static/RoomleCoreJs-0bb526365f5c3f91.mem +0 -0
- package/lib/static/RoomleCoreJs-f5fe1b6e08c282c6.js +154 -0
- package/lib/static/shaders-63802d07b3443bcb.json +1 -0
- package/lib/{stats-helper-13e5c35b.js → stats-helper-2bc9b875.js} +2 -2
- package/lib/{stats-helper-13e5c35b.js.map → stats-helper-2bc9b875.js.map} +1 -1
- package/lib/{stats-helper-399776ca.nomodule.js → stats-helper-e9cb51e8.nomodule.js} +2 -2
- package/lib/{stats-helper-399776ca.nomodule.js.map → stats-helper-e9cb51e8.nomodule.js.map} +1 -1
- package/package.json +2 -2
- package/lib/component-dimensioning-78625f46.js.map +0 -1
- package/lib/component-dimensioning-cbcaf431.nomodule.js.map +0 -1
- package/lib/component-raycast-helper-13b853d3.nomodule.js.map +0 -1
- package/lib/component-raycast-helper-549c8ae1.js.map +0 -1
- package/lib/configurator-8bbf3a38.nomodule.js.map +0 -1
- package/lib/configurator-ee75ff28.js.map +0 -1
- package/lib/configurator-main-3b1ccf10.js +0 -2
- package/lib/configurator-main-3b1ccf10.js.map +0 -1
- package/lib/default-light-setting-6dd9587a.nomodule.js.map +0 -1
- package/lib/default-light-setting-702bc838.js.map +0 -1
- package/lib/glb-viewer-main-d6b02ed8.js +0 -2
- package/lib/glb-viewer-main-d6b02ed8.js.map +0 -1
- package/lib/legacy/component-dimensioning-77ba0d28.legacy.js.map +0 -1
- package/lib/legacy/component-raycast-helper-feb21fd3.legacy.js.map +0 -1
- package/lib/legacy/configurator-55749e3c.legacy.js.map +0 -1
- package/lib/legacy/default-light-setting-d15a9123.legacy.js.map +0 -1
- package/lib/legacy/material-viewer-c1b64c49.legacy.js.map +0 -1
- package/lib/legacy/planner-408cc0e1.legacy.js +0 -2
- package/lib/legacy/roomle-configurator-60e1c49a.legacy.js +0 -2
- package/lib/legacy/roomle-dependency-injection-07d3dd01.legacy.js +0 -16
- package/lib/legacy/static/ConfiguratorKernel-b4d2685e62f9e4b5.wasm +0 -0
- package/lib/legacy/static/ConfiguratorKernelJs-920679f2aabf7dbc.js +0 -143
- package/lib/legacy/static/ConfiguratorKernelJs-9ac93b7a4aacd6d1.mem +0 -0
- package/lib/legacy/static/RoomleCore-0b58c19a64d2b307.js +0 -129
- package/lib/legacy/static/RoomleCore-6293af9714e2dfbb.wasm +0 -0
- package/lib/legacy/static/RoomleCoreJs-3aae1893a351b096.mem +0 -0
- package/lib/legacy/static/RoomleCoreJs-e967877c65d6d8b8.js +0 -151
- package/lib/legacy/static/shaders-660cf55cf5a61a2d.json +0 -1
- package/lib/material-viewer-03aa07c6.js.map +0 -1
- package/lib/material-viewer-9487c5d3.nomodule.js.map +0 -1
- package/lib/material-viewer-main-d5d5b287.js +0 -2
- package/lib/material-viewer-main-d5d5b287.js.map +0 -1
- package/lib/planner-420e2309.js +0 -2
- package/lib/planner-d8fe36fa.nomodule.js +0 -2
- package/lib/planner-main-f766df76.js +0 -2
- package/lib/planner-main-f766df76.js.map +0 -1
- package/lib/roomle-configurator-ac23719f.nomodule.js +0 -2
- package/lib/roomle-configurator-ee548bf9.js +0 -2
- package/lib/roomle-dependency-injection-86b1fe1f.nomodule.js +0 -16
- package/lib/roomle-dependency-injection-b3b8e294.js +0 -16
- package/lib/roomle-sdk-b40ffe47.js.map +0 -1
- package/lib/static/ConfiguratorKernel-648649775f904f5a.js +0 -1
- package/lib/static/ConfiguratorKernel-648649775f904f5a.js.map +0 -1
- package/lib/static/ConfiguratorKernel-b4d2685e62f9e4b5.wasm +0 -0
- package/lib/static/ConfiguratorKernelJs-920679f2aabf7dbc.js +0 -143
- package/lib/static/ConfiguratorKernelJs-9ac93b7a4aacd6d1.mem +0 -0
- package/lib/static/RoomleCore-0b58c19a64d2b307.js +0 -1
- package/lib/static/RoomleCore-0b58c19a64d2b307.js.map +0 -1
- package/lib/static/RoomleCore-6293af9714e2dfbb.wasm +0 -0
- package/lib/static/RoomleCoreJs-3aae1893a351b096.mem +0 -0
- package/lib/static/RoomleCoreJs-e967877c65d6d8b8.js +0 -151
- package/lib/static/shaders-660cf55cf5a61a2d.json +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=banana-for-scale-
|
|
1
|
+
System.register(["./roomle-dependency-injection-c680c022.nomodule.js","./main-thread-to-worker-1f6a23af.nomodule.js"],(function(e){var n,t,a,s;return{setters:[function(e){n=e._,t=e.i,a=e.af},function(e){s=e.g}],execute:function(){e("default",(()=>{class e extends a{setScene(e){this._scene=e,this._staticItemLoader.loadGLB(s()+"static/banana_div2-1351c98ec2986be1.glb").then(e=>{this._banana=e,this.updateBounds(null)})}updateBounds(e){if(e&&(this._bounds=e),this._bounds){if(this._banana){const e=this._bounds.getSize(new THREE.Vector3),n=this._bounds.getCenter(new THREE.Vector3).clone();n.x-=e.x/2+.18,n.z+=e.z/2+.05,n.y=0;let t=.03;this._banana.scale.copy(new THREE.Vector3(t,t,t)),this._banana.rotation.y=.6,this._banana.position.copy(n)}this._scene.children.includes(this._banana)||this.addToScene()}}clearScene(e,n){super.clearScene(e,n),this.removeFromScene()}addToScene(){this._scene&&this._banana&&this._scene.add(this._banana)}removeFromScene(){this._scene&&this._banana&&this._scene.remove(this._banana)}}return n([t],e.prototype,"_staticItemLoader",void 0),e})())}}}));
|
|
2
|
+
//# sourceMappingURL=banana-for-scale-7d269b84.nomodule.js.map
|
package/lib/{banana-for-scale-01a40f7a.nomodule.js.map → banana-for-scale-7d269b84.nomodule.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banana-for-scale-
|
|
1
|
+
{"version":3,"file":"banana-for-scale-7d269b84.nomodule.js","sources":["../../packages/configurator-core/public/geometry/banana_div2.glb"],"sourcesContent":["export default \"static/banana_div2-1351c98ec2986be1.glb\""],"names":[],"mappings":"uUAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as __decorate,i as inject,af as ScenePluginDefaultImplementation}from"./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=banana-for-scale-
|
|
1
|
+
import{_ as __decorate,i as inject,af as ScenePluginDefaultImplementation}from"./roomle-dependency-injection-dcf7fa2f.js";import{g as getAssetPath}from"./main-thread-to-worker-ed1f7708.js";let BananaForScale=(()=>{class e extends ScenePluginDefaultImplementation{setScene(e){this._scene=e,this._staticItemLoader.loadGLB(getAssetPath()+"static/banana_div2-1351c98ec2986be1.glb").then(e=>{this._banana=e,this.updateBounds(null)})}updateBounds(e){if(e&&(this._bounds=e),this._bounds){if(this._banana){const e=this._bounds.getSize(new THREE.Vector3),t=this._bounds.getCenter(new THREE.Vector3).clone();t.x-=e.x/2+.18,t.z+=e.z/2+.05,t.y=0;let a=.03;this._banana.scale.copy(new THREE.Vector3(a,a,a)),this._banana.rotation.y=.6,this._banana.position.copy(t)}this._scene.children.includes(this._banana)||this.addToScene()}}clearScene(e,t){super.clearScene(e,t),this.removeFromScene()}addToScene(){this._scene&&this._banana&&this._scene.add(this._banana)}removeFromScene(){this._scene&&this._banana&&this._scene.remove(this._banana)}}return __decorate([inject],e.prototype,"_staticItemLoader",void 0),e})();export default BananaForScale;
|
|
2
|
+
//# sourceMappingURL=banana-for-scale-fccf40b0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banana-for-scale-
|
|
1
|
+
{"version":3,"file":"banana-for-scale-fccf40b0.js","sources":["../../packages/configurator-core/public/geometry/banana_div2.glb"],"sourcesContent":["export default \"static/banana_div2-1351c98ec2986be1.glb\""],"names":[],"mappings":"+UAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=component-dimensioning-
|
|
1
|
+
System.register(["./roomle-dependency-injection-c680c022.nomodule.js","./main-thread-to-worker-1f6a23af.nomodule.js"],(function(e){var i,t;return{setters:[function(e){i=e._,t=e.i},function(){}],execute:function(){const n="component_dimensioning_line_material",s="component_dimensioning_plane_material",o="component_dimensioning_text_material";e("default",(()=>{class e extends THREE.Object3D{constructor(e,i,t,n){super(),this._center=i.getCenter(new THREE.Vector3),this._size=i.getSize(new THREE.Vector3),this._origin=this._center.clone().sub(this._size.clone().multiplyScalar(.5)),this._dimensioning=e,this._level=this._dimensioning.maxLevel-this._dimensioning.level,this._font=t,this._cameraPosition=n,this._init()}_initMaterials(){this._cacheHolder.materialCache.has(n)?this._lineMaterial=this._cacheHolder.materialCache.get(n):(this._lineMaterial=new THREE.LineBasicMaterial({color:3618615}),this._cacheHolder.materialCache.set(n,this._lineMaterial)),this._cacheHolder.materialCache.has(s)?this._planeMaterial=this._cacheHolder.materialCache.get(s):(this._planeMaterial=new THREE.MeshBasicMaterial({color:16777215,side:THREE.DoubleSide,opacity:.8,transparent:!0}),this._cacheHolder.materialCache.set(s,this._planeMaterial)),this._cacheHolder.materialCache.has(o)?this._textMaterial=this._cacheHolder.materialCache.get(o):(this._textMaterial=new THREE.MeshPhongMaterial({color:3618615}),this._cacheHolder.materialCache.set(o,this._textMaterial))}_init(){this._initMaterials();let e=new THREE.Geometry;this._line=new THREE.Line(e,this._lineMaterial),this._line.name="component dimension line "+this._dimensioning.type.value,this._text=new THREE.Mesh(e,this._textMaterial),this._text.name="component dimension text "+this._dimensioning.type.value,this._plane=new THREE.Mesh(e,this._planeMaterial),this._plane.name="component dimension plane "+this._dimensioning.type.value;let i,t=new THREE.Geometry,n=Math.round(Math.max(this._size.y,this._size.x,this._size.z)),s=Math.abs(this._dimensioning.to-this._dimensioning.from),o=.025+(n<4?0:.005*n);s<.3&&(o*=.5+s);let a={font:this._font,size:o,height:.001,curveSegments:2,bevelEnabled:!0,bevelThickness:.001,bevelSize:.001},h=this._dimensioning.label?this._dimensioning.label:this._unitFormatter.formatMMValueToUnitString(1e3*s),_=new THREE.TextGeometry(h,a);_.computeBoundingBox();let d=_.boundingBox.getSize(new THREE.Vector3).y;if(0===this._dimensioning.type.value&&(i=this._getXEdge(d),this._addXEdgeSideLines(d)),1===this._dimensioning.type.value&&(i=this._getYEdge(d),this._addYEdgeSideLines(d)),2===this._dimensioning.type.value&&(i=this._getZEdge(d),this._addZEdgeSideLines(d)),t.vertices.push(i.start,i.end),this._line.geometry.dispose(),this._line.geometry=t,this.add(this._line),this._text.geometry=_,0===this._dimensioning.type.value&&this._addText(i,_,new THREE.Quaternion,new THREE.Vector3(0,.04,0)),1===this._dimensioning.type.value){let e=new THREE.Quaternion,t=this._getXSign()>0?Math.PI/2:Math.PI/2*3;e.setFromAxisAngle(new THREE.Vector3(0,0,1),t),this._addText(i,_,e,new THREE.Vector3(.04,0,0))}if(2===this._dimensioning.type.value){let e=this._getXSign()>0?Math.PI/2:Math.PI/2*3,t=(new THREE.Quaternion).setFromAxisAngle(new THREE.Vector3(-1,0,0),Math.PI/2),n=(new THREE.Quaternion).setFromAxisAngle(new THREE.Vector3(0,0,1),e);this._addText(i,_,t.multiply(n),new THREE.Vector3(.04,0,0))}}_getXEdge(e){let i=this._size.y+.05+(.06+e)*this._level;const t=new THREE.Vector3(0,this._origin.y,this._origin.z);let n=t.clone().add(new THREE.Vector3(this._dimensioning.from,i,0)),s=t.clone().add(new THREE.Vector3(this._dimensioning.to,i,0));return new THREE.Line3(n,s)}_addXEdgeSideLines(e){let i=this._size.y+.05+(.06+e)*(this._level-.5),t=this._size.y+.05+(.06+e)*this._level;const n=new THREE.Vector3(0,this._origin.y,this._origin.z);let s=n.clone().add(new THREE.Vector3(this._dimensioning.from,i,0)),o=n.clone().add(new THREE.Vector3(this._dimensioning.from,t,0)),a=n.clone().add(new THREE.Vector3(this._dimensioning.to,i,0)),h=n.clone().add(new THREE.Vector3(this._dimensioning.to,t,0));this._addLine(s,o),this._addLine(a,h)}_getZEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new THREE.Vector3(this._origin.x,this._origin.y,0);let n=t.clone().add(new THREE.Vector3(i,0,this._dimensioning.from)),s=t.clone().add(new THREE.Vector3(i,0,this._dimensioning.to));return new THREE.Line3(n,s)}_addZEdgeSideLines(e){let i=this._getXSign()>0?this._size.x:0,t=i+.05+(.06+e)*(this._level-.5),n=i+.05+(.06+e)*this._level;t*=this._getXSign(),n*=this._getXSign();const s=new THREE.Vector3(this._origin.x,this._origin.y,0);let o=s.clone().add(new THREE.Vector3(t,0,this._dimensioning.from)),a=s.clone().add(new THREE.Vector3(n,0,this._dimensioning.from)),h=s.clone().add(new THREE.Vector3(t,0,this._dimensioning.to)),_=s.clone().add(new THREE.Vector3(n,0,this._dimensioning.to));this._addLine(o,a),this._addLine(h,_)}_getYEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new THREE.Vector3(this._origin.x,0,this._origin.z);let n=t.clone().add(new THREE.Vector3(i,this._dimensioning.from,0)),s=t.clone().add(new THREE.Vector3(i,this._dimensioning.to,0));return new THREE.Line3(n,s)}_addYEdgeSideLines(e){let i=this._getXSign()>0?this._size.x:0,t=i+.05+(.06+e)*(this._level-.5),n=i+.05+(.06+e)*this._level;t*=this._getXSign(),n*=this._getXSign();const s=new THREE.Vector3(this._origin.x,0,this._origin.z);let o=s.clone().add(new THREE.Vector3(t,this._dimensioning.from,0)),a=s.clone().add(new THREE.Vector3(n,this._dimensioning.from,0)),h=s.clone().add(new THREE.Vector3(t,this._dimensioning.to,0)),_=s.clone().add(new THREE.Vector3(n,this._dimensioning.to,0));this._addLine(o,a),this._addLine(h,_)}_addLine(e,i){let t=new THREE.Geometry;t.vertices.push(e,i),this.add(new THREE.Line(t,this._lineMaterial))}_addText(e,i,t,n){let s=e.getCenter(new THREE.Vector3);n.x*=this._getXSign(),s.add(n);let o=i.boundingBox.getSize(new THREE.Vector3);i.center(),this._text.position.copy(s),this._text.quaternion.copy(t),this.add(this._text);let a=new THREE.PlaneGeometry(o.x+.02,o.y+.02,32);a.center(),this._plane.geometry=a,this._plane.position.copy(s),this._plane.quaternion.copy(t),this.add(this._plane)}_getXSign(){return this._cameraPosition.x>=0?1:-1}}return i([t],e.prototype,"_cacheHolder",void 0),i([t],e.prototype,"_unitFormatter",void 0),e})())}}}));
|
|
2
|
+
//# sourceMappingURL=component-dimensioning-7f0b21cb.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-dimensioning-7f0b21cb.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as __decorate,i as inject}from"./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=component-dimensioning-
|
|
1
|
+
import{_ as __decorate,i as inject}from"./roomle-dependency-injection-dcf7fa2f.js";import"./main-thread-to-worker-ed1f7708.js";const LINE_MATERIAL="component_dimensioning_line_material",PLANE_MATERIAL="component_dimensioning_plane_material",TEXT_MATERIAL="component_dimensioning_text_material";let ComponentDimensioning=(()=>{class e extends THREE.Object3D{constructor(e,i,t,n){super(),this._center=i.getCenter(new THREE.Vector3),this._size=i.getSize(new THREE.Vector3),this._origin=this._center.clone().sub(this._size.clone().multiplyScalar(.5)),this._dimensioning=e,this._level=this._dimensioning.maxLevel-this._dimensioning.level,this._font=t,this._cameraPosition=n,this._init()}_initMaterials(){this._cacheHolder.materialCache.has(LINE_MATERIAL)?this._lineMaterial=this._cacheHolder.materialCache.get(LINE_MATERIAL):(this._lineMaterial=new THREE.LineBasicMaterial({color:3618615}),this._cacheHolder.materialCache.set(LINE_MATERIAL,this._lineMaterial)),this._cacheHolder.materialCache.has(PLANE_MATERIAL)?this._planeMaterial=this._cacheHolder.materialCache.get(PLANE_MATERIAL):(this._planeMaterial=new THREE.MeshBasicMaterial({color:16777215,side:THREE.DoubleSide,opacity:.8,transparent:!0}),this._cacheHolder.materialCache.set(PLANE_MATERIAL,this._planeMaterial)),this._cacheHolder.materialCache.has(TEXT_MATERIAL)?this._textMaterial=this._cacheHolder.materialCache.get(TEXT_MATERIAL):(this._textMaterial=new THREE.MeshPhongMaterial({color:3618615}),this._cacheHolder.materialCache.set(TEXT_MATERIAL,this._textMaterial))}_init(){this._initMaterials();let e=new THREE.Geometry;this._line=new THREE.Line(e,this._lineMaterial),this._line.name="component dimension line "+this._dimensioning.type.value,this._text=new THREE.Mesh(e,this._textMaterial),this._text.name="component dimension text "+this._dimensioning.type.value,this._plane=new THREE.Mesh(e,this._planeMaterial),this._plane.name="component dimension plane "+this._dimensioning.type.value;let i,t=new THREE.Geometry,n=Math.round(Math.max(this._size.y,this._size.x,this._size.z)),s=Math.abs(this._dimensioning.to-this._dimensioning.from),o=.025+(n<4?0:.005*n);s<.3&&(o*=.5+s);let a={font:this._font,size:o,height:.001,curveSegments:2,bevelEnabled:!0,bevelThickness:.001,bevelSize:.001},h=this._dimensioning.label?this._dimensioning.label:this._unitFormatter.formatMMValueToUnitString(1e3*s),_=new THREE.TextGeometry(h,a);_.computeBoundingBox();let d=_.boundingBox.getSize(new THREE.Vector3).y;if(0===this._dimensioning.type.value&&(i=this._getXEdge(d),this._addXEdgeSideLines(d)),1===this._dimensioning.type.value&&(i=this._getYEdge(d),this._addYEdgeSideLines(d)),2===this._dimensioning.type.value&&(i=this._getZEdge(d),this._addZEdgeSideLines(d)),t.vertices.push(i.start,i.end),this._line.geometry.dispose(),this._line.geometry=t,this.add(this._line),this._text.geometry=_,0===this._dimensioning.type.value&&this._addText(i,_,new THREE.Quaternion,new THREE.Vector3(0,.04,0)),1===this._dimensioning.type.value){let e=new THREE.Quaternion,t=this._getXSign()>0?Math.PI/2:Math.PI/2*3;e.setFromAxisAngle(new THREE.Vector3(0,0,1),t),this._addText(i,_,e,new THREE.Vector3(.04,0,0))}if(2===this._dimensioning.type.value){let e=this._getXSign()>0?Math.PI/2:Math.PI/2*3,t=(new THREE.Quaternion).setFromAxisAngle(new THREE.Vector3(-1,0,0),Math.PI/2),n=(new THREE.Quaternion).setFromAxisAngle(new THREE.Vector3(0,0,1),e);this._addText(i,_,t.multiply(n),new THREE.Vector3(.04,0,0))}}_getXEdge(e){let i=this._size.y+.05+(.06+e)*this._level;const t=new THREE.Vector3(0,this._origin.y,this._origin.z);let n=t.clone().add(new THREE.Vector3(this._dimensioning.from,i,0)),s=t.clone().add(new THREE.Vector3(this._dimensioning.to,i,0));return new THREE.Line3(n,s)}_addXEdgeSideLines(e){let i=this._size.y+.05+(.06+e)*(this._level-.5),t=this._size.y+.05+(.06+e)*this._level;const n=new THREE.Vector3(0,this._origin.y,this._origin.z);let s=n.clone().add(new THREE.Vector3(this._dimensioning.from,i,0)),o=n.clone().add(new THREE.Vector3(this._dimensioning.from,t,0)),a=n.clone().add(new THREE.Vector3(this._dimensioning.to,i,0)),h=n.clone().add(new THREE.Vector3(this._dimensioning.to,t,0));this._addLine(s,o),this._addLine(a,h)}_getZEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new THREE.Vector3(this._origin.x,this._origin.y,0);let n=t.clone().add(new THREE.Vector3(i,0,this._dimensioning.from)),s=t.clone().add(new THREE.Vector3(i,0,this._dimensioning.to));return new THREE.Line3(n,s)}_addZEdgeSideLines(e){let i=this._getXSign()>0?this._size.x:0,t=i+.05+(.06+e)*(this._level-.5),n=i+.05+(.06+e)*this._level;t*=this._getXSign(),n*=this._getXSign();const s=new THREE.Vector3(this._origin.x,this._origin.y,0);let o=s.clone().add(new THREE.Vector3(t,0,this._dimensioning.from)),a=s.clone().add(new THREE.Vector3(n,0,this._dimensioning.from)),h=s.clone().add(new THREE.Vector3(t,0,this._dimensioning.to)),_=s.clone().add(new THREE.Vector3(n,0,this._dimensioning.to));this._addLine(o,a),this._addLine(h,_)}_getYEdge(e){let i=(this._getXSign()>0?this._size.x:0)+.05+(.06+e)*this._level;i*=this._getXSign();const t=new THREE.Vector3(this._origin.x,0,this._origin.z);let n=t.clone().add(new THREE.Vector3(i,this._dimensioning.from,0)),s=t.clone().add(new THREE.Vector3(i,this._dimensioning.to,0));return new THREE.Line3(n,s)}_addYEdgeSideLines(e){let i=this._getXSign()>0?this._size.x:0,t=i+.05+(.06+e)*(this._level-.5),n=i+.05+(.06+e)*this._level;t*=this._getXSign(),n*=this._getXSign();const s=new THREE.Vector3(this._origin.x,0,this._origin.z);let o=s.clone().add(new THREE.Vector3(t,this._dimensioning.from,0)),a=s.clone().add(new THREE.Vector3(n,this._dimensioning.from,0)),h=s.clone().add(new THREE.Vector3(t,this._dimensioning.to,0)),_=s.clone().add(new THREE.Vector3(n,this._dimensioning.to,0));this._addLine(o,a),this._addLine(h,_)}_addLine(e,i){let t=new THREE.Geometry;t.vertices.push(e,i),this.add(new THREE.Line(t,this._lineMaterial))}_addText(e,i,t,n){let s=e.getCenter(new THREE.Vector3);n.x*=this._getXSign(),s.add(n);let o=i.boundingBox.getSize(new THREE.Vector3);i.center(),this._text.position.copy(s),this._text.quaternion.copy(t),this.add(this._text);let a=new THREE.PlaneGeometry(o.x+.02,o.y+.02,32);a.center(),this._plane.geometry=a,this._plane.position.copy(s),this._plane.quaternion.copy(t),this.add(this._plane)}_getXSign(){return this._cameraPosition.x>=0?1:-1}}return __decorate([inject],e.prototype,"_cacheHolder",void 0),__decorate([inject],e.prototype,"_unitFormatter",void 0),e})();export default ComponentDimensioning;
|
|
2
|
+
//# sourceMappingURL=component-dimensioning-85dba72d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-dimensioning-85dba72d.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Y as transitionTransparencyOfMaterial}from"./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=component-raycast-helper-
|
|
1
|
+
import{Y as transitionTransparencyOfMaterial}from"./roomle-dependency-injection-dcf7fa2f.js";import{t as throttle}from"./main-thread-to-worker-ed1f7708.js";export default class{constructor(){this._nonTransparentComponent=null,this._raycaster=new THREE.Raycaster,this._raycaster.near=.1,this._raycaster.layers.enable(3)}init(e,t){this._scene=e,this._camera=t,this.checkComponentVisibility=throttle(this.checkComponentVisibility,100).bind(this),this.checkPreviewVisibility=throttle(this.checkPreviewVisibility,100).bind(this)}changeMaterialsOnSelect(e,t,i=!1){t!==this._nonTransparentComponent&&(this._nonTransparentComponent=t,this._changeMaterialsOnSelect(e,t,i))}_changeMaterialsOnSelect(e,t,i=!1){if(e.children.length>0&&e.children.forEach(a=>{const s=t&&e.id===t.id||i,n=!(a instanceof THREE.Mesh);this._changeMaterialsOnSelect(a,t,(!s||!n)&&s)}),t)e instanceof THREE.Mesh&&e.material instanceof THREE.MeshStandardMaterial&&!e.userData.oldMaterial&&(e.userData.oldMaterial=e.material,e.material=e.material.clone(),i||transitionTransparencyOfMaterial(e,{opacity:.2,transparent:!0}));else if(e.userData.oldMaterial&&e instanceof THREE.Mesh&&e.material instanceof THREE.MeshStandardMaterial){const{opacity:t,transparent:i}=e.userData.oldMaterial;transitionTransparencyOfMaterial(e,{opacity:t,transparent:i}),e.userData.oldMaterial=void 0}}isComponentVisible(e){const t=[];e.traverse(e=>t.push(e.uuid));const i=(new THREE.Box3).setFromObject(e).getCenter(new THREE.Vector3),a=(new THREE.Vector3).subVectors(i,this._camera.position).normalize();this._raycaster.set(this._camera.position,a),this._raycaster.far=this._camera.position.distanceTo(i);const s=[];return this._raycaster.intersectObjects(this._scene.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._scene,null)}checkComponentVisibility(e,t){if(!e.hasSelection())return;const i=t.getComponentsForIds(e.getSelectedRuntimeComponentIds());if(i.length>1)return;const a=i[0];this.isComponentVisible(a)?this.changeMaterialsOnSelect(this._scene,null):this.changeMaterialsOnSelect(this._scene,a)}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)}checkPreviewVisibility(e){this.areAllPreviewsVisible(e)?this.changeMaterialsOnSelect(this._scene,null):this.changeMaterialsOnSelect(this._scene,{id:-1})}}
|
|
2
|
+
//# sourceMappingURL=component-raycast-helper-9b0a9001.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-raycast-helper-9b0a9001.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=component-raycast-helper-
|
|
1
|
+
System.register(["./roomle-dependency-injection-c680c022.nomodule.js","./main-thread-to-worker-1f6a23af.nomodule.js"],(function(e){var t,i;return{setters:[function(e){t=e.Y},function(e){i=e.t}],execute:function(){e("default",class{constructor(){this._nonTransparentComponent=null,this._raycaster=new THREE.Raycaster,this._raycaster.near=.1,this._raycaster.layers.enable(3)}init(e,t){this._scene=e,this._camera=t,this.checkComponentVisibility=i(this.checkComponentVisibility,100).bind(this),this.checkPreviewVisibility=i(this.checkPreviewVisibility,100).bind(this)}changeMaterialsOnSelect(e,t,i=!1){t!==this._nonTransparentComponent&&(this._nonTransparentComponent=t,this._changeMaterialsOnSelect(e,t,i))}_changeMaterialsOnSelect(e,i,n=!1){if(e.children.length>0&&e.children.forEach(t=>{const s=i&&e.id===i.id||n,a=!(t instanceof THREE.Mesh);this._changeMaterialsOnSelect(t,i,(!s||!a)&&s)}),i)e instanceof THREE.Mesh&&e.material instanceof THREE.MeshStandardMaterial&&!e.userData.oldMaterial&&(e.userData.oldMaterial=e.material,e.material=e.material.clone(),n||t(e,{opacity:.2,transparent:!0}));else if(e.userData.oldMaterial&&e instanceof THREE.Mesh&&e.material instanceof THREE.MeshStandardMaterial){const{opacity:i,transparent:n}=e.userData.oldMaterial;t(e,{opacity:i,transparent:n}),e.userData.oldMaterial=void 0}}isComponentVisible(e){const t=[];e.traverse(e=>t.push(e.uuid));const i=(new THREE.Box3).setFromObject(e).getCenter(new THREE.Vector3),n=(new THREE.Vector3).subVectors(i,this._camera.position).normalize();this._raycaster.set(this._camera.position,n),this._raycaster.far=this._camera.position.distanceTo(i);const s=[];return this._raycaster.intersectObjects(this._scene.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._scene,null)}checkComponentVisibility(e,t){if(!e.hasSelection())return;const i=t.getComponentsForIds(e.getSelectedRuntimeComponentIds());if(i.length>1)return;const n=i[0];this.isComponentVisible(n)?this.changeMaterialsOnSelect(this._scene,null):this.changeMaterialsOnSelect(this._scene,n)}areAllPreviewsVisible(e){if(!e.hasPreviews())return!0;const t=e.getPreviews();return 0===t.length||t.map(e=>this.isComponentVisible(e)).reduce((e,t)=>e&&t)}checkPreviewVisibility(e){this.areAllPreviewsVisible(e)?this.changeMaterialsOnSelect(this._scene,null):this.changeMaterialsOnSelect(this._scene,{id:-1})}})}}}));
|
|
2
|
+
//# sourceMappingURL=component-raycast-helper-de345b4a.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-raycast-helper-de345b4a.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./query-params-helper-a271f9dc.js";import{D as DependencyInjectionAssignment,L as Logger,R as RapiAccess,a as DataSyncer,C as ConfiguratorViewModel,b as RoomleDependencyInjection,A as AppContext}from"./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=configurator-
|
|
1
|
+
import"./query-params-helper-a271f9dc.js";import{D as DependencyInjectionAssignment,L as Logger,R as RapiAccess,a as DataSyncer,C as ConfiguratorViewModel,b as RoomleDependencyInjection,A as AppContext}from"./roomle-dependency-injection-dcf7fa2f.js";import"./main-thread-to-worker-ed1f7708.js";import{C as ConfiguratorSceneManager,R as RoomleConfigurator}from"./roomle-configurator-1799a79d.js";import{S as ScriptLoader,C as CameraControl3D,a as CameraControl,M as Main}from"./pixotron-28ef478c.js";import ComponentRaycastHelper from"./component-raycast-helper-9b0a9001.js";import"./default-light-setting-9ed8c484.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"),o=(this.lookup("dom-helper"),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-6549a336.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-6549a336.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./query-params-helper-c231e1b8.nomodule.js","./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=configurator-
|
|
1
|
+
System.register(["./query-params-helper-c231e1b8.nomodule.js","./roomle-dependency-injection-c680c022.nomodule.js","./main-thread-to-worker-1f6a23af.nomodule.js","./roomle-configurator-a55bbbfe.nomodule.js","./pixotron-067be719.nomodule.js","./component-raycast-helper-de345b4a.nomodule.js","./default-light-setting-84270b95.nomodule.js"],(function(e){var o,n,t,r,i,a,c,s,l,u,p,d,f,g;return{setters:[function(){},function(e){o=e.D,n=e.L,t=e.R,r=e.a,i=e.C,a=e.b,c=e.A},function(){},function(e){s=e.C,l=e.R},function(e){u=e.S,p=e.C,d=e.a,f=e.M},function(e){g=e.default},function(){}],execute:function(){const h=[new o("logger",n),new o("rapi-access",t),new o("script-loader",u),new o("camera-control-3d",p),new o("camera-control",d),new o("data-syncer",r),new o("configurator-scene-manager",s,1),new o("configurator-view-model",i,1),new o("component-raycast-helper",g,0)];e("Configurator",class extends f{setupDependencies(){a.setup(h),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"),n=(this.lookup("dom-helper"),this.lookup("configurator-scene-manager"));e&&e.cleanUp(),o&&o.cleanUp(),n&&n.cleanUp()}setupGlobals(e){const{kernelInstance:o,kernelContainer:n,planObjectId:t}=e||{};c.init({kernelInstance:o,kernelContainer:n,planObjectId:t})}getApi(){return this._configurator}bootFinished(){this._configurator=new l(this._context),this._configurator.getMain=()=>this,window.RoomleConfigurator||(window.RoomleConfigurator=this._configurator)}getContextName(){return"configurator"}})}}}));
|
|
2
|
+
//# sourceMappingURL=configurator-c9710d21.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-c9710d21.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let register=function(e){document.querySelectorAll(".load"+e).forEach(o=>o.addEventListener("click",o=>{const t="load"+e+"ById";changeButtonDisabled(!0),RoomleConfigurator[t](o.target.dataset.rmlId).then(()=>changeButtonDisabled(!1))}))},changeButtonDisabled=function(e){document.querySelectorAll("button").forEach((function(o){o.disabled=e}))},loadConfiguration=function(e,o){changeButtonDisabled(!0),RoomleConfigurator.loadConfiguration(e,o).then(()=>changeButtonDisabled(!1))};register("Configuration"),register("ConfigurableItem");const sofa='{"children":[{"children":[],"componentId":"KIKA:Avignon1073","dockChild":"{((-(Width)/2.00)+12.00),(-(Depth)/2.00),0.00}","dockParent":"[{(Width/2.00),(Depth/2.00),0.00}]","dockPosition":"{480.00,480.00,0.00}","parameters":{"Armteil":"Ohne","Basic":"Basic","Bettfunktion":"Ohne","Depth":"960.00","Legs":"Chrom","Material":"KIKA:Toroanthrazit95","Stauraum":"Ohne","Width":"1300.00","allowLeftDocking":"0.00","allowRightDocking":"1.00"}},{"children":[],"componentId":"KIKA:Avignon3100","dockChild":"{(Width/2.00),(-(Depth)/2.00),0.00}","dockParent":"[{(-(Width)/2.00),(-(Depth)/2.00),0.00}]","dockPosition":"{-480.00,-480.00,0.00}","parameters":{"Armteil":"Ohne","Basic":"Basic","Bettfunktion":"Ohne","Depth":"960.00","Legs":"Chrom","Material":"KIKA:Toroanthrazit95","Stauraum":"Ohne","Width":"1740.00","allowLeftDocking":"1.00","allowRightDocking":"0.00"}}],"componentId":"KIKA:Avignon5010","dockChild":"","dockParent":"","dockPosition":"","parameters":{"Armteil":"Ohne","Basic":"Basic","Bettfunktion":"Ohne","Depth":"960.00","Legs":"Chrom","Material":"KIKA:Toroanthrazit95","Stauraum":"Ohne","Width":"960.00","allowLeftDocking":"1.00","allowRightDocking":"1.00"}}',usmBig='{"children":[{"children":[],"componentId":"usm:frame","dockChild":"{width,0.00,0.00}","dockParent":"[{0.00,0.00,0.00}]","dockPosition":"{0.00,0.00,0.00}","parameters":{"addOnsInside":"0.00","allowLeftNeighbor":"0.00","allowRightNeighbor":"1.00","backplaneType":"Ohne","bottomNeighborDoor":"none","colorMaterial":"usm:green","depth":"350.00","door":"onlyTop","hasBottom":"1.00","hasLeftNeighbor":"0.00","hasLeftSide":"0.00","hasRightNeighbor":"1.00","hasRightSide":"1.00","hasTopNeighbor":"0.00","height":"350.00","isLastFrame":"0.00","leftNeighborDoor":"none","level":"0.00","pulloutInside":"none","tablarBufferBottom":"50.00","tablarBufferTop":"50.00","width":"500.00"}},{"children":[{"children":[],"componentId":"usm:frame","dockChild":"{(width/2.00),0.00,0.00}","dockParent":"[{(width/2.00),0.00,height}]","dockPosition":"{375.00,0.00,350.00}","parameters":{"addOnsInside":"0.00","allowLeftNeighbor":"1.00","allowRightNeighbor":"1.00","backplaneType":"Ohne","bottomNeighborDoor":"Folding door","colorMaterial":"usm:green","depth":"350.00","door":"onlyTop","hasBottom":"1.00","hasLeftNeighbor":"0.00","hasLeftSide":"0.00","hasRightNeighbor":"0.00","hasRightSide":"0.00","hasTopNeighbor":"0.00","height":"350.00","isLastFrame":"0.00","leftNeighborDoor":"none","level":"2.00","pulloutInside":"none","tablarBufferBottom":"50.00","tablarBufferTop":"50.00","width":"750.00"}}],"componentId":"usm:frame","dockChild":"{(width/2.00),0.00,0.00}","dockParent":"[{(width/2.00),0.00,height}]","dockPosition":"{375.00,-0.00,350.00}","parameters":{"addOnsInside":"0.00","allowLeftNeighbor":"1.00","allowRightNeighbor":"1.00","backplaneType":"Voll","bottomNeighborDoor":"None","colorMaterial":"usm:green","depth":"350.00","door":"Folding door","hasBottom":"1.00","hasLeftNeighbor":"0.00","hasLeftSide":"1.00","hasRightNeighbor":"0.00","hasRightSide":"0.00","hasTopNeighbor":"1.00","height":"350.00","isLastFrame":"0.00","leftNeighborDoor":"none","level":"1.00","pulloutInside":"none","tablarBufferBottom":"130.00","tablarBufferTop":"50.00","width":"750.00"}},{"children":[{"children":[{"children":[],"componentId":"usm:inosboxopen","dockChild":"{120.00,0.00,0.00}","dockParent":"[{132.00,15.00,15.00}]","dockPosition":"{132.00,15.00,15.00}","parameters":{"variant":"klein"}}],"componentId":"usm:frame","dockChild":"{0.00,0.00,0.00}","dockParent":"[{width,0.00,0.00}]","dockPosition":"{500.00,0.00,0.00}","parameters":{"addOnsInside":"1.00","allowLeftNeighbor":"1.00","allowRightNeighbor":"0.00","backplaneType":"Ohne","bottomNeighborDoor":"none","colorMaterial":"usm:green","depth":"350.00","door":"onlyTop","hasBottom":"1.00","hasLeftNeighbor":"1.00","hasLeftSide":"0.00","hasRightNeighbor":"0.00","hasRightSide":"0.00","hasTopNeighbor":"0.00","height":"350.00","isLastFrame":"0.00","leftNeighborDoor":"onlyTop","level":"0.00","pulloutInside":"none","tablarBufferBottom":"50.00","tablarBufferTop":"50.00","width":"500.00"}}],"componentId":"usm:frame","dockChild":"{0.00,0.00,0.00}","dockParent":"[{width,0.00,0.00}]","dockPosition":"{750.00,0.00,0.00}","parameters":{"addOnsInside":"0.00","allowLeftNeighbor":"1.00","allowRightNeighbor":"0.00","backplaneType":"Ohne","bottomNeighborDoor":"none","colorMaterial":"usm:green","depth":"350.00","door":"onlyTop","hasBottom":"1.00","hasLeftNeighbor":"1.00","hasLeftSide":"1.00","hasRightNeighbor":"1.00","hasRightSide":"0.00","hasTopNeighbor":"0.00","height":"350.00","isLastFrame":"0.00","leftNeighborDoor":"None","level":"0.00","pulloutInside":"none","tablarBufferBottom":"50.00","tablarBufferTop":"50.00","width":"500.00"}}],"componentId":"usm:frame","dockChild":"","dockParent":"","dockPosition":"","parameters":{"addOnsInside":"0.00","allowLeftNeighbor":"1.00","allowRightNeighbor":"1.00","backplaneType":"Voll","bottomNeighborDoor":"none","colorMaterial":"usm:green","depth":"350.00","door":"None","hasBottom":"1.00","hasLeftNeighbor":"1.00","hasLeftSide":"1.00","hasRightNeighbor":"1.00","hasRightSide":"1.00","hasTopNeighbor":"1.00","height":"350.00","isLastFrame":"0.00","leftNeighborDoor":"onlyTop","level":"0.00","pulloutInside":"none","tablarBufferBottom":"50.00","tablarBufferTop":"50.00","width":"750.00"}}',usmSmall='{"componentId": "usm:frame", "parameters":{"width":"350.00"}}',fantoni='{"componentId":"fantoni_1:ME_60_Curved_Table"}',possibleChild={isItem:!1,isComponent:!0,configuration:'{"componentId":"usm:frame"}',id:"usm:frame"},possibleChildFantoni={isItem:!1,isComponent:!0,configuration:'{"componentId":"fantoni_1:ME_60_Curved_Table"}',id:"fantoni_1:ME_60_Curved_Table"},possibleChildMuuto={isItem:!0,isComponent:!1,configuration:'{"children":[],"componentId":"muuto:Muuto-Stacked","dockChild":"","dockParent":"","dockPosition":"","parameters":{"ColourElements":"muuto:Esche","Colourbackboard":"muuto:Esche","Elements":"Boxsmallwithbackboard","Height":"436.00","Width":"218.00"}}',id:"muuto:Muuto-StackedBoxsmallwithbackboard"},possbileChildUmdasch={isItem:!1,isComponent:!0,configuration:'{"children":[],"componentId":"umdasch:DamenBlazer03h","dockChild":"{0.00,-0.00,0.00}","dockParent":"[{-(((Achse-10.00)/2.00)),-(-((Tiefe-8.00))),3.00},{((Achse-10.00)/2.00),-(-((Tiefe-8.00))),3.00}]","dockPosition":"{223.31,392.00,3.00}","parameters":{"AnzahlMalPreis":"1","BreiteBuegel":"0","BreiteWare":"0","BuegelJaNein":"Ja","DickeWare":"40","FarbeBuegel":"umdasch:X65","HaengeAbstand":"20","HoeheWare":"0"}}',id:"umdasch:DamenBlazer03h"},getPreloadHint=function(e){return JSON.parse(e).componentId};document.getElementById("load-configuration-sofa").addEventListener("click",()=>loadConfiguration(sofa,getPreloadHint(sofa))),document.getElementById("load-configuration-string-big").addEventListener("click",()=>loadConfiguration(usmBig,getPreloadHint(usmBig))),document.getElementById("load-configuration-string-small").addEventListener("click",()=>loadConfiguration(usmSmall,getPreloadHint(usmSmall))),document.getElementById("load-configuration-fantoni").addEventListener("click",()=>loadConfiguration(fantoni,getPreloadHint(fantoni))),document.getElementById("load-configuration-muuto").addEventListener("click",()=>loadConfiguration('{"componentId":"muuto:Muuto-Stacked"}'),getPreloadHint(fantoni)),document.getElementById("debug-scene-graph").addEventListener("click",()=>RoomleConfigurator.debugSceneGraph()),document.getElementById("component-change-width").addEventListener("click",()=>RoomleConfigurator.setParameter("width","350.00")),document.getElementById("preview-dockings").addEventListener("click",()=>RoomleConfigurator.previewDockings(possibleChild)),document.getElementById("preview-dockings-fantoni").addEventListener("click",()=>RoomleConfigurator.previewDockings(possibleChildFantoni)),document.getElementById("preview-dockings-muuto").addEventListener("click",()=>RoomleConfigurator.previewDockings(possibleChildMuuto)),document.getElementById("preview-dockings-umdasch").addEventListener("click",()=>RoomleConfigurator.previewDockings(possbileChildUmdasch)),document.getElementById("image").addEventListener("click",()=>{RoomleConfigurator.preparePerspectiveImage({showDimensions:!0}).then(e=>{const o="debug-image",t=document.getElementById(o);t&&document.body.removeChild(t);const n=document.createElement("img");n.src=e.image,n.id=o,n.style="width: "+e.width+"; height: "+e.height+"; position: fixed; top: 0; right: 0; border: solid 1px black",document.body.appendChild(n),n.addEventListener("click",()=>{document.body.removeChild(document.getElementById(o))})})}),document.getElementById("top-image").addEventListener("click",()=>{RoomleConfigurator.prepareTopImage({showDimensions:!0}).then(e=>{const o="debug-image",t=document.getElementById(o);t&&document.body.removeChild(t);const n=document.createElement("img");n.src=e.image,n.id=o,n.style="width: "+e.width+"; height: "+e.height+"; position: fixed; top: 0; right: 0; border: solid 1px black",document.body.appendChild(n),n.addEventListener("click",()=>{document.body.removeChild(document.getElementById(o))})})}),document.getElementById("render-image").addEventListener("click",()=>{let e="true"==document.getElementById("input-configuration").value;RoomleConfigurator.renderImage({useCurrentPerspective:e}).then(e=>{const o="debug-image",t=document.getElementById(o);t&&document.body.removeChild(t);const n=document.createElement("img");n.src=e.image,n.id=o,n.style="width: "+e.width+"; height: "+e.height+"; position: fixed; top: 0; right: 0; border: solid 1px black",document.body.appendChild(n),n.addEventListener("click",()=>{document.body.removeChild(document.getElementById(o))})})}),document.getElementById("part-image").addEventListener("click",()=>{let e=document.getElementById("input-configuration").value;e=e?parseInt(e):17,RoomleConfigurator.preparePartImage(e).then(e=>{const o="debug-image",t=document.getElementById(o);t&&document.body.removeChild(t);const n=document.createElement("img");n.src=e.image,n.id=o,n.style="width: "+e.width+"; height: "+e.height+"; position: fixed; top: 0; right: 0; border: solid 1px black",document.body.appendChild(n),n.addEventListener("click",()=>{document.body.removeChild(document.getElementById(o))})})}),document.getElementById("component-delete").addEventListener("click",()=>RoomleConfigurator.requestDeleteComponent()),document.getElementById("camera-reset").addEventListener("click",()=>RoomleConfigurator.resetCameraPosition());const freeText=function(e){return function(){const o=document.getElementById("input-configuration").value;if(!o||""===o)return;const t="load"+e;changeButtonDisabled(!0),RoomleConfigurator[t](o).then(()=>changeButtonDisabled(!1))}};document.getElementById("load-configuration").addEventListener("click",freeText("Configuration")),document.getElementById("load-rapi-configuration").addEventListener("click",freeText("ConfigurationById")),document.getElementById("load-item").addEventListener("click",freeText("ConfigurableItemById")),document.getElementById("pause").addEventListener("click",()=>{for(var e=document.getElementById("roomle-configurator");e.firstChild;)e.removeChild(e.firstChild);RoomleConfigurator.pauseTest()}),document.getElementById("resume").addEventListener("click",()=>RoomleConfigurator.resumeTest(document.getElementById("roomle-configurator"))),document.getElementById("component-info").addEventListener("click",()=>{RoomleConfigurator.callbacks.componentPositionsUpdated=e=>function(e){const o=document.getElementById("roomle-configurator");o.querySelectorAll(".uiComponent").forEach(e=>e.remove()),e.forEach(e=>{const t=document.createElement("span");t.innerHTML="+",t.classList.add("uiComponent"),t.style="position: fixed; top: "+e.position.y+"px; left: "+e.position.x+"px; border: solid 1px black",o.appendChild(t)})}(e),RoomleConfigurator.callbacks.cameraPositionChanges=()=>{document.getElementById("roomle-configurator").querySelectorAll(".uiComponent").forEach(e=>e.remove())}}),window.RoomleConfigurator.callbacks.onUpdateComponentParameters=function(e){e.forEach(e=>{e.key,e.value,e.validValues.forEach(e=>{e.value})})},window.performance.mark("load_overall_start"),getPreloadHint(usmBig),window.RoomleConfigurator.init(document.getElementById("roomle-configurator"),{}).then(e=>{changeButtonDisabled(!1)},e=>{}).then(()=>RoomleConfigurator.loadConfiguration(usmBig)).then(()=>{window.performance.mark("load_overall_end"),window.performance.measure("load_overall","load_overall_start","load_overall_end")});
|
|
1
|
+
let register=function(e){document.querySelectorAll(".load"+e).forEach(o=>o.addEventListener("click",o=>{const t="load"+e+"ById";changeButtonDisabled(!0),RoomleConfigurator[t](o.target.dataset.rmlId).then(()=>changeButtonDisabled(!1))}))},changeButtonDisabled=function(e){document.querySelectorAll("button").forEach((function(o){o.disabled=e}))},loadConfiguration=function(e,o){changeButtonDisabled(!0),RoomleConfigurator.loadConfiguration(e,o).then(()=>changeButtonDisabled(!1))};register("Configuration"),register("ConfigurableItem");const sofa='{"children":[{"children":[],"componentId":"KIKA:Avignon1073","dockChild":"{((-(Width)/2.00)+12.00),(-(Depth)/2.00),0.00}","dockParent":"[{(Width/2.00),(Depth/2.00),0.00}]","dockPosition":"{480.00,480.00,0.00}","parameters":{"Armteil":"Ohne","Basic":"Basic","Bettfunktion":"Ohne","Depth":"960.00","Legs":"Chrom","Material":"KIKA:Toroanthrazit95","Stauraum":"Ohne","Width":"1300.00","allowLeftDocking":"0.00","allowRightDocking":"1.00"}},{"children":[],"componentId":"KIKA:Avignon3100","dockChild":"{(Width/2.00),(-(Depth)/2.00),0.00}","dockParent":"[{(-(Width)/2.00),(-(Depth)/2.00),0.00}]","dockPosition":"{-480.00,-480.00,0.00}","parameters":{"Armteil":"Ohne","Basic":"Basic","Bettfunktion":"Ohne","Depth":"960.00","Legs":"Chrom","Material":"KIKA:Toroanthrazit95","Stauraum":"Ohne","Width":"1740.00","allowLeftDocking":"1.00","allowRightDocking":"0.00"}}],"componentId":"KIKA:Avignon5010","dockChild":"","dockParent":"","dockPosition":"","parameters":{"Armteil":"Ohne","Basic":"Basic","Bettfunktion":"Ohne","Depth":"960.00","Legs":"Chrom","Material":"KIKA:Toroanthrazit95","Stauraum":"Ohne","Width":"960.00","allowLeftDocking":"1.00","allowRightDocking":"1.00"}}',usmBig='{"children":[{"children":[],"componentId":"usm:frame","dockChild":"{width,0.00,0.00}","dockParent":"[{0.00,0.00,0.00}]","dockPosition":"{0.00,0.00,0.00}","parameters":{"addOnsInside":"0.00","allowLeftNeighbor":"0.00","allowRightNeighbor":"1.00","backplaneType":"Ohne","bottomNeighborDoor":"none","colorMaterial":"usm:green","depth":"350.00","door":"onlyTop","hasBottom":"1.00","hasLeftNeighbor":"0.00","hasLeftSide":"0.00","hasRightNeighbor":"1.00","hasRightSide":"1.00","hasTopNeighbor":"0.00","height":"350.00","isLastFrame":"0.00","leftNeighborDoor":"none","level":"0.00","pulloutInside":"none","tablarBufferBottom":"50.00","tablarBufferTop":"50.00","width":"500.00"}},{"children":[{"children":[],"componentId":"usm:frame","dockChild":"{(width/2.00),0.00,0.00}","dockParent":"[{(width/2.00),0.00,height}]","dockPosition":"{375.00,0.00,350.00}","parameters":{"addOnsInside":"0.00","allowLeftNeighbor":"1.00","allowRightNeighbor":"1.00","backplaneType":"Ohne","bottomNeighborDoor":"Folding door","colorMaterial":"usm:green","depth":"350.00","door":"onlyTop","hasBottom":"1.00","hasLeftNeighbor":"0.00","hasLeftSide":"0.00","hasRightNeighbor":"0.00","hasRightSide":"0.00","hasTopNeighbor":"0.00","height":"350.00","isLastFrame":"0.00","leftNeighborDoor":"none","level":"2.00","pulloutInside":"none","tablarBufferBottom":"50.00","tablarBufferTop":"50.00","width":"750.00"}}],"componentId":"usm:frame","dockChild":"{(width/2.00),0.00,0.00}","dockParent":"[{(width/2.00),0.00,height}]","dockPosition":"{375.00,-0.00,350.00}","parameters":{"addOnsInside":"0.00","allowLeftNeighbor":"1.00","allowRightNeighbor":"1.00","backplaneType":"Voll","bottomNeighborDoor":"None","colorMaterial":"usm:green","depth":"350.00","door":"Folding door","hasBottom":"1.00","hasLeftNeighbor":"0.00","hasLeftSide":"1.00","hasRightNeighbor":"0.00","hasRightSide":"0.00","hasTopNeighbor":"1.00","height":"350.00","isLastFrame":"0.00","leftNeighborDoor":"none","level":"1.00","pulloutInside":"none","tablarBufferBottom":"130.00","tablarBufferTop":"50.00","width":"750.00"}},{"children":[{"children":[{"children":[],"componentId":"usm:inosboxopen","dockChild":"{120.00,0.00,0.00}","dockParent":"[{132.00,15.00,15.00}]","dockPosition":"{132.00,15.00,15.00}","parameters":{"variant":"klein"}}],"componentId":"usm:frame","dockChild":"{0.00,0.00,0.00}","dockParent":"[{width,0.00,0.00}]","dockPosition":"{500.00,0.00,0.00}","parameters":{"addOnsInside":"1.00","allowLeftNeighbor":"1.00","allowRightNeighbor":"0.00","backplaneType":"Ohne","bottomNeighborDoor":"none","colorMaterial":"usm:green","depth":"350.00","door":"onlyTop","hasBottom":"1.00","hasLeftNeighbor":"1.00","hasLeftSide":"0.00","hasRightNeighbor":"0.00","hasRightSide":"0.00","hasTopNeighbor":"0.00","height":"350.00","isLastFrame":"0.00","leftNeighborDoor":"onlyTop","level":"0.00","pulloutInside":"none","tablarBufferBottom":"50.00","tablarBufferTop":"50.00","width":"500.00"}}],"componentId":"usm:frame","dockChild":"{0.00,0.00,0.00}","dockParent":"[{width,0.00,0.00}]","dockPosition":"{750.00,0.00,0.00}","parameters":{"addOnsInside":"0.00","allowLeftNeighbor":"1.00","allowRightNeighbor":"0.00","backplaneType":"Ohne","bottomNeighborDoor":"none","colorMaterial":"usm:green","depth":"350.00","door":"onlyTop","hasBottom":"1.00","hasLeftNeighbor":"1.00","hasLeftSide":"1.00","hasRightNeighbor":"1.00","hasRightSide":"0.00","hasTopNeighbor":"0.00","height":"350.00","isLastFrame":"0.00","leftNeighborDoor":"None","level":"0.00","pulloutInside":"none","tablarBufferBottom":"50.00","tablarBufferTop":"50.00","width":"500.00"}}],"componentId":"usm:frame","dockChild":"","dockParent":"","dockPosition":"","parameters":{"addOnsInside":"0.00","allowLeftNeighbor":"1.00","allowRightNeighbor":"1.00","backplaneType":"Voll","bottomNeighborDoor":"none","colorMaterial":"usm:green","depth":"350.00","door":"None","hasBottom":"1.00","hasLeftNeighbor":"1.00","hasLeftSide":"1.00","hasRightNeighbor":"1.00","hasRightSide":"1.00","hasTopNeighbor":"1.00","height":"350.00","isLastFrame":"0.00","leftNeighborDoor":"onlyTop","level":"0.00","pulloutInside":"none","tablarBufferBottom":"50.00","tablarBufferTop":"50.00","width":"750.00"}}',usmSmall='{"componentId": "usm:frame", "parameters":{"width":"350.00"}}',fantoni='{"componentId":"fantoni_1:ME_60_Curved_Table"}',possibleChild={isItem:!1,isComponent:!0,configuration:'{"componentId":"usm:frame"}',id:"usm:frame"},possibleChildFantoni={isItem:!1,isComponent:!0,configuration:'{"componentId":"fantoni_1:ME_60_Curved_Table"}',id:"fantoni_1:ME_60_Curved_Table"},possibleChildMuuto={isItem:!0,isComponent:!1,configuration:'{"children":[],"componentId":"muuto:Muuto-Stacked","dockChild":"","dockParent":"","dockPosition":"","parameters":{"ColourElements":"muuto:Esche","Colourbackboard":"muuto:Esche","Elements":"Boxsmallwithbackboard","Height":"436.00","Width":"218.00"}}',id:"muuto:Muuto-StackedBoxsmallwithbackboard"},possbileChildUmdasch={isItem:!1,isComponent:!0,configuration:'{"children":[],"componentId":"umdasch:DamenBlazer03h","dockChild":"{0.00,-0.00,0.00}","dockParent":"[{-(((Achse-10.00)/2.00)),-(-((Tiefe-8.00))),3.00},{((Achse-10.00)/2.00),-(-((Tiefe-8.00))),3.00}]","dockPosition":"{223.31,392.00,3.00}","parameters":{"AnzahlMalPreis":"1","BreiteBuegel":"0","BreiteWare":"0","BuegelJaNein":"Ja","DickeWare":"40","FarbeBuegel":"umdasch:X65","HaengeAbstand":"20","HoeheWare":"0"}}',id:"umdasch:DamenBlazer03h"},getPreloadHint=function(e){return JSON.parse(e).componentId};document.getElementById("load-configuration-sofa").addEventListener("click",()=>loadConfiguration(sofa,getPreloadHint(sofa))),document.getElementById("load-configuration-string-big").addEventListener("click",()=>loadConfiguration(usmBig,getPreloadHint(usmBig))),document.getElementById("load-configuration-string-small").addEventListener("click",()=>loadConfiguration(usmSmall,getPreloadHint(usmSmall))),document.getElementById("load-configuration-fantoni").addEventListener("click",()=>loadConfiguration(fantoni,getPreloadHint(fantoni))),document.getElementById("load-configuration-muuto").addEventListener("click",()=>loadConfiguration('{"componentId":"muuto:Muuto-Stacked"}'),getPreloadHint(fantoni)),document.getElementById("debug-scene-graph").addEventListener("click",()=>RoomleConfigurator.debugSceneGraph()),document.getElementById("component-change-width").addEventListener("click",()=>RoomleConfigurator.setParameter("width","350.00")),document.getElementById("preview-dockings").addEventListener("click",()=>RoomleConfigurator.previewDockings(possibleChild)),document.getElementById("preview-dockings-fantoni").addEventListener("click",()=>RoomleConfigurator.previewDockings(possibleChildFantoni)),document.getElementById("preview-dockings-muuto").addEventListener("click",()=>RoomleConfigurator.previewDockings(possibleChildMuuto)),document.getElementById("preview-dockings-umdasch").addEventListener("click",()=>RoomleConfigurator.previewDockings(possbileChildUmdasch)),document.getElementById("image").addEventListener("click",()=>{RoomleConfigurator.preparePerspectiveImage({showDimensions:!0}).then(e=>{const o="debug-image",t=document.getElementById(o);t&&document.body.removeChild(t);const n=document.createElement("img");n.src=e.image,n.id=o,n.style="width: "+e.width+"; height: "+e.height+"; position: fixed; top: 0; right: 0; border: solid 1px black",document.body.appendChild(n),n.addEventListener("click",()=>{document.body.removeChild(document.getElementById(o))})})}),document.getElementById("top-image").addEventListener("click",()=>{RoomleConfigurator.prepareTopImage({showDimensions:!0}).then(e=>{const o="debug-image",t=document.getElementById(o);t&&document.body.removeChild(t);const n=document.createElement("img");n.src=e.image,n.id=o,n.style="width: "+e.width+"; height: "+e.height+"; position: fixed; top: 0; right: 0; border: solid 1px black",document.body.appendChild(n),n.addEventListener("click",()=>{document.body.removeChild(document.getElementById(o))})})}),document.getElementById("render-image").addEventListener("click",()=>{let e="true"==document.getElementById("input-configuration").value;RoomleConfigurator.renderImage({useCurrentPerspective:e}).then(e=>{const o="debug-image",t=document.getElementById(o);t&&document.body.removeChild(t);const n=document.createElement("img");n.src=e.image,n.id=o,n.style="width: "+e.width+"; height: "+e.height+"; position: fixed; top: 0; right: 0; border: solid 1px black",document.body.appendChild(n),n.addEventListener("click",()=>{document.body.removeChild(document.getElementById(o))})})}),document.getElementById("part-image").addEventListener("click",()=>{let e=document.getElementById("input-configuration").value;e=e?parseInt(e):17,RoomleConfigurator.preparePartImage(e).then(e=>{const o="debug-image",t=document.getElementById(o);t&&document.body.removeChild(t);const n=document.createElement("img");n.src=e.image,n.id=o,n.style="width: "+e.width+"; height: "+e.height+"; position: fixed; top: 0; right: 0; border: solid 1px black",document.body.appendChild(n),n.addEventListener("click",()=>{document.body.removeChild(document.getElementById(o))})})}),document.getElementById("component-delete").addEventListener("click",()=>RoomleConfigurator.requestDeleteComponent()),document.getElementById("camera-reset").addEventListener("click",()=>RoomleConfigurator.resetCameraPosition());const freeText=function(e){return function(){const o=document.getElementById("input-configuration").value;if(!o||""===o)return;const t="load"+e;changeButtonDisabled(!0),RoomleConfigurator[t](o).then(()=>changeButtonDisabled(!1))}};document.getElementById("load-configuration").addEventListener("click",freeText("Configuration")),document.getElementById("load-rapi-configuration").addEventListener("click",freeText("ConfigurationById")),document.getElementById("load-item").addEventListener("click",freeText("ConfigurableItemById")),document.getElementById("pause").addEventListener("click",()=>{for(var e=document.getElementById("roomle-configurator");e.firstChild;)e.removeChild(e.firstChild);RoomleConfigurator.pauseTest()}),document.getElementById("resume").addEventListener("click",()=>RoomleConfigurator.resumeTest(document.getElementById("roomle-configurator"))),document.getElementById("component-info").addEventListener("click",()=>{RoomleConfigurator.callbacks.componentPositionsUpdated=e=>function(e){const o=document.getElementById("roomle-configurator");o.querySelectorAll(".uiComponent").forEach(e=>e.remove()),e.forEach(e=>{const t=document.createElement("span");t.innerHTML="+",t.classList.add("uiComponent"),t.style="position: fixed; top: "+e.position.y+"px; left: "+e.position.x+"px; border: solid 1px black",o.appendChild(t)})}(e),RoomleConfigurator.callbacks.cameraPositionChanges=()=>{document.getElementById("roomle-configurator").querySelectorAll(".uiComponent").forEach(e=>e.remove())}}),window.RoomleConfigurator.callbacks.onUpdateComponentParameters=function(e){e.forEach(e=>{e.key,e.value,e.validValues.forEach(e=>{e.value})})},window.performance.mark("load_overall_start"),getPreloadHint(usmBig),window.RoomleConfigurator.init(document.getElementById("roomle-configurator"),{}).then(e=>{changeButtonDisabled(!1)},e=>{}).then(()=>{const e=new URLSearchParams(window.location.search).get("id");return e?RoomleConfigurator.loadConfigurationById(e):RoomleConfigurator.loadConfiguration(usmBig)}).then(()=>{window.performance.mark("load_overall_end"),window.performance.measure("load_overall","load_overall_start","load_overall_end")});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["0"],"names":["register","type","document","querySelectorAll","forEach","elem","addEventListener","event","method","changeButtonDisabled","RoomleConfigurator","target","dataset","rmlId","then","isDisabled","button","disabled","loadConfiguration","configString","options","sofa","usmBig","usmSmall","fantoni","possibleChild","isItem","isComponent","configuration","id","possibleChildFantoni","possibleChildMuuto","possbileChildUmdasch","getPreloadHint","definition","JSON","parse","componentId","getElementById","debugSceneGraph","setParameter","previewDockings","preparePerspectiveImage","showDimensions","base64Image","imgId","old","body","removeChild","img","createElement","src","image","style","width","height","appendChild","prepareTopImage","useCurrentPerspective","value","renderImage","partId","parseInt","preparePartImage","requestDeleteComponent","resetCameraPosition","freeText","configuratorElement","firstChild","pauseTest","resumeTest","callbacks","componentPositionsUpdated","uiComponentInfos","uiComponentInfo","canvas","e","remove","componentInfo","span","innerHTML","classList","add","position","y","x","addComponentActions","cameraPositionChanges","window","onUpdateComponentParameters","componentParameters","parameter","key","validValues","validValue","performance","mark","init","success","error","measure"],"mappings":"AAAA,IAAIA,SAAW,SAAUC,GACrBC,SAASC,iBAAiB,QAAUF,GAAMG,QAASC,GAASA,EAAKC,iBAAiB,QAAUC,IACxF,MAAMC,EAAS,OAASP,EAAO,OAC/BQ,sBAAqB,GACrBC,mBAAmBF,GAAQD,EAAMI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,YAAYC,KAAK,sBACG/D,eAAeX,QAC1CkE,OAAO9E,mBAAmBuF,KAAK/F,SAASoC,eAAe,uBAAwB,IAE5ExB,KAAMoF,IACLzF,sBAAqB,IACrB0F,OAEDrF,KAAK,
|
|
1
|
+
{"version":3,"sources":["0"],"names":["register","type","document","querySelectorAll","forEach","elem","addEventListener","event","method","changeButtonDisabled","RoomleConfigurator","target","dataset","rmlId","then","isDisabled","button","disabled","loadConfiguration","configString","options","sofa","usmBig","usmSmall","fantoni","possibleChild","isItem","isComponent","configuration","id","possibleChildFantoni","possibleChildMuuto","possbileChildUmdasch","getPreloadHint","definition","JSON","parse","componentId","getElementById","debugSceneGraph","setParameter","previewDockings","preparePerspectiveImage","showDimensions","base64Image","imgId","old","body","removeChild","img","createElement","src","image","style","width","height","appendChild","prepareTopImage","useCurrentPerspective","value","renderImage","partId","parseInt","preparePartImage","requestDeleteComponent","resetCameraPosition","freeText","configuratorElement","firstChild","pauseTest","resumeTest","callbacks","componentPositionsUpdated","uiComponentInfos","uiComponentInfo","canvas","e","remove","componentInfo","span","innerHTML","classList","add","position","y","x","addComponentActions","cameraPositionChanges","window","onUpdateComponentParameters","componentParameters","parameter","key","validValues","validValue","performance","mark","init","success","error","URLSearchParams","location","search","get","loadConfigurationById","measure"],"mappings":"AAAA,IAAIA,SAAW,SAAUC,GACrBC,SAASC,iBAAiB,QAAUF,GAAMG,QAASC,GAASA,EAAKC,iBAAiB,QAAUC,IACxF,MAAMC,EAAS,OAASP,EAAO,OAC/BQ,sBAAqB,GACrBC,mBAAmBF,GAAQD,EAAMI,OAAOC,QAAQC,OAAOC,KAAK,IAAML,sBAAqB,QAI3FA,qBAAuB,SAAUM,GACjCb,SAASC,iBAAiB,UAAUC,SAAQ,SAAUY,GAClDA,EAAOC,SAAWF,MAItBG,kBAAoB,SAAUC,EAAcC,GAC5CX,sBAAqB,GACrBC,mBAAmBQ,kBAAkBC,EAAcC,GAASN,KAAK,IAAML,sBAAqB,KAGhGT,SAAS,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zCnB,mBAAmBQ,kBAAkBI,UAEjDR,KAAK,KAEJ0E,OAAOO,YAAYC,KAAK,oBACxBR,OAAOO,YAAYU,QAAQ,eAAgB,qBAAsB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./query-params-helper-a271f9dc.js";import"./roomle-dependency-injection-dcf7fa2f.js";import"./main-thread-to-worker-ed1f7708.js";import"./roomle-configurator-1799a79d.js";import"./pixotron-28ef478c.js";import"./component-raycast-helper-9b0a9001.js";import"./default-light-setting-9ed8c484.js";import{Configurator}from"./configurator-6549a336.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-2345d721.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-main-2345d721.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./query-params-helper-c231e1b8.nomodule.js","./roomle-dependency-injection-
|
|
1
|
+
System.register(["./query-params-helper-c231e1b8.nomodule.js","./roomle-dependency-injection-c680c022.nomodule.js","./main-thread-to-worker-1f6a23af.nomodule.js","./roomle-configurator-a55bbbfe.nomodule.js","./pixotron-067be719.nomodule.js","./component-raycast-helper-de345b4a.nomodule.js","./default-light-setting-84270b95.nomodule.js","./configurator-c9710d21.nomodule.js"],(function(){var e;return{setters:[function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(n){e=n.Configurator}],execute:function(){(new e).boot(),window.requestIdleCallback||(window.requestIdleCallback=e=>setTimeout(()=>{let n=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},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=default-light-setting-
|
|
1
|
+
System.register(["./roomle-dependency-injection-c680c022.nomodule.js","./pixotron-067be719.nomodule.js"],(function(i){var t,a;return{setters:[function(i){t=i.k},function(i){a=i.L}],execute:function(){i("D",class extends a{constructor(i,t){super(i,t),this._params={ambientLight:{color:"#ffffff"},mainDirLight:{position:{x:-3,y:4,z:4},color:"#ffffff"},secondDirLight:{position:{x:3,y:4,z:3},color:"#ffffff"}},this._mainDirectionalLight=new THREE.DirectionalLight(new THREE.Color(this._params.mainDirLight.color),.8),this._mainDirectionalLight.position.set(this._params.mainDirLight.position.x,this._params.mainDirLight.position.y,this._params.mainDirLight.position.z),this._mainDirectionalLight.layers.set(1),this._mainDirectionalLight.castShadow=!0,this._mainDirectionalLight.shadow.camera.near=.1,this._mainDirectionalLight.shadow.camera.far=100,this._mainDirectionalLight.shadow.mapSize=new THREE.Vector2(1024,1024),this._mainDirectionalLight.visible=!0,this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0)),this._secondDirectionalLight=new THREE.DirectionalLight(new THREE.Color(this._params.secondDirLight.color),.2),this._secondDirectionalLight.position.set(this._params.secondDirLight.position.x,this._params.secondDirLight.position.y,this._params.secondDirLight.position.z),this._secondDirectionalLight.layers.set(1),this._secondDirectionalLight.castShadow=!1,this._secondDirectionalLight.shadow.camera.near=.1,this._secondDirectionalLight.shadow.camera.far=100,this._secondDirectionalLight.shadow.mapSize=new THREE.Vector2(1024,1024),this._secondDirectionalLight.visible=!0,this._secondDirectionalLight.lookAt(new THREE.Vector3(0,0,0)),this._ambientLight=new THREE.AmbientLight(new THREE.Color(this._params.ambientLight.color),.5),this._ambientLight.layers.set(1),this.addToScene()}needsBounds(){return!0}updateBounds(i){const t=i.getSize(new THREE.Vector3),a=Math.max(Math.max(t.x,t.y),t.z)+1,o=a/2;this._mainDirectionalLight.shadow.camera.top=o,this._mainDirectionalLight.shadow.camera.bottom=-o,this._mainDirectionalLight.shadow.camera.left=-o,this._mainDirectionalLight.shadow.camera.right=o,this._mainDirectionalLight.shadow.camera.near=.01,this._mainDirectionalLight.shadow.camera.far=4*a,this._mainDirectionalLight.shadow.camera.updateProjectionMatrix(),this._secondDirectionalLight.shadow.camera.top=o,this._secondDirectionalLight.shadow.camera.bottom=-o,this._secondDirectionalLight.shadow.camera.left=-o,this._secondDirectionalLight.shadow.camera.right=o,this._secondDirectionalLight.shadow.camera.near=.01,this._secondDirectionalLight.shadow.camera.far=4*a,this._secondDirectionalLight.shadow.camera.updateProjectionMatrix()}addToScene(){this._scene.add(this._mainDirectionalLight),this._scene.add(this._secondDirectionalLight),this._scene.add(this._ambientLight)}removeFromScene(){this._scene.remove(this._mainDirectionalLight),this._scene.remove(this._secondDirectionalLight),this._scene.remove(this._ambientLight)}reload(){this.removeFromScene(),this.addToScene()}showGUI(){let i=t();if(i){if(this._ambientLight){let t=i.addFolder("Ambient Light");t.add(this._ambientLight,"visible"),t.add(this._ambientLight,"intensity").min(0).max(5).step(.1),t.addColor(this._params.ambientLight,"color").onChange(i=>this._ambientLight.color=new THREE.Color(i))}if(this._mainDirectionalLight){let t=i.addFolder("Main Directional Light");t.add(this._mainDirectionalLight,"visible"),t.add(this._mainDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._mainDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new THREE.Color(i)),t.add(this._mainDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0)))}if(this._secondDirectionalLight){let t=i.addFolder("Second Directional Light");t.add(this._secondDirectionalLight,"visible"),t.add(this._secondDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._secondDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new THREE.Color(i)),t.add(this._secondDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0)))}}}})}}}));
|
|
2
|
+
//# sourceMappingURL=default-light-setting-84270b95.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-light-setting-84270b95.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{k as getGUI}from"./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=default-light-setting-
|
|
1
|
+
import{k as getGUI}from"./roomle-dependency-injection-dcf7fa2f.js";import{L as LightSetting}from"./pixotron-28ef478c.js";class DefaultLightSetting extends LightSetting{constructor(i,t){super(i,t),this._params={ambientLight:{color:"#ffffff"},mainDirLight:{position:{x:-3,y:4,z:4},color:"#ffffff"},secondDirLight:{position:{x:3,y:4,z:3},color:"#ffffff"}},this._mainDirectionalLight=new THREE.DirectionalLight(new THREE.Color(this._params.mainDirLight.color),.8),this._mainDirectionalLight.position.set(this._params.mainDirLight.position.x,this._params.mainDirLight.position.y,this._params.mainDirLight.position.z),this._mainDirectionalLight.layers.set(1),this._mainDirectionalLight.castShadow=!0,this._mainDirectionalLight.shadow.camera.near=.1,this._mainDirectionalLight.shadow.camera.far=100,this._mainDirectionalLight.shadow.mapSize=new THREE.Vector2(1024,1024),this._mainDirectionalLight.visible=!0,this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0)),this._secondDirectionalLight=new THREE.DirectionalLight(new THREE.Color(this._params.secondDirLight.color),.2),this._secondDirectionalLight.position.set(this._params.secondDirLight.position.x,this._params.secondDirLight.position.y,this._params.secondDirLight.position.z),this._secondDirectionalLight.layers.set(1),this._secondDirectionalLight.castShadow=!1,this._secondDirectionalLight.shadow.camera.near=.1,this._secondDirectionalLight.shadow.camera.far=100,this._secondDirectionalLight.shadow.mapSize=new THREE.Vector2(1024,1024),this._secondDirectionalLight.visible=!0,this._secondDirectionalLight.lookAt(new THREE.Vector3(0,0,0)),this._ambientLight=new THREE.AmbientLight(new THREE.Color(this._params.ambientLight.color),.5),this._ambientLight.layers.set(1),this.addToScene()}needsBounds(){return!0}updateBounds(i){const t=i.getSize(new THREE.Vector3),a=Math.max(Math.max(t.x,t.y),t.z)+1,o=a/2;this._mainDirectionalLight.shadow.camera.top=o,this._mainDirectionalLight.shadow.camera.bottom=-o,this._mainDirectionalLight.shadow.camera.left=-o,this._mainDirectionalLight.shadow.camera.right=o,this._mainDirectionalLight.shadow.camera.near=.01,this._mainDirectionalLight.shadow.camera.far=4*a,this._mainDirectionalLight.shadow.camera.updateProjectionMatrix(),this._secondDirectionalLight.shadow.camera.top=o,this._secondDirectionalLight.shadow.camera.bottom=-o,this._secondDirectionalLight.shadow.camera.left=-o,this._secondDirectionalLight.shadow.camera.right=o,this._secondDirectionalLight.shadow.camera.near=.01,this._secondDirectionalLight.shadow.camera.far=4*a,this._secondDirectionalLight.shadow.camera.updateProjectionMatrix()}addToScene(){this._scene.add(this._mainDirectionalLight),this._scene.add(this._secondDirectionalLight),this._scene.add(this._ambientLight)}removeFromScene(){this._scene.remove(this._mainDirectionalLight),this._scene.remove(this._secondDirectionalLight),this._scene.remove(this._ambientLight)}reload(){this.removeFromScene(),this.addToScene()}showGUI(){let i=getGUI();if(i){if(this._ambientLight){let t=i.addFolder("Ambient Light");t.add(this._ambientLight,"visible"),t.add(this._ambientLight,"intensity").min(0).max(5).step(.1),t.addColor(this._params.ambientLight,"color").onChange(i=>this._ambientLight.color=new THREE.Color(i))}if(this._mainDirectionalLight){let t=i.addFolder("Main Directional Light");t.add(this._mainDirectionalLight,"visible"),t.add(this._mainDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._mainDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new THREE.Color(i)),t.add(this._mainDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._mainDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0)))}if(this._secondDirectionalLight){let t=i.addFolder("Second Directional Light");t.add(this._secondDirectionalLight,"visible"),t.add(this._secondDirectionalLight,"intensity").min(0).max(10).step(.1),t.add(this._secondDirectionalLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(i=>this._mainDirectionalLight.color=new THREE.Color(i)),t.add(this._secondDirectionalLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0))),t.add(this._secondDirectionalLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirectionalLight.lookAt(new THREE.Vector3(0,0,0)))}}}}export{DefaultLightSetting as D};
|
|
2
|
+
//# sourceMappingURL=default-light-setting-9ed8c484.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-light-setting-9ed8c484.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -9,6 +9,7 @@ export default class EnvironmentLoader implements Context {
|
|
|
9
9
|
private _renderer;
|
|
10
10
|
private _scene;
|
|
11
11
|
private _envChangedCallback;
|
|
12
|
+
private _onEnvMapUpdate;
|
|
12
13
|
static setEnvironmentMap(material: THREE.MeshStandardMaterial, envMap: THREE.Texture): void;
|
|
13
14
|
constructor(creator: string);
|
|
14
15
|
getEnvironmentMap(): THREE.Texture;
|
|
@@ -17,5 +18,10 @@ export default class EnvironmentLoader implements Context {
|
|
|
17
18
|
setRendererAndScene(renderer: THREE.WebGLRenderer, scene: THREE.Scene): void;
|
|
18
19
|
registerEnvironmentChangedCallback(callBack: any): void;
|
|
19
20
|
private _updateEnvironmentMap;
|
|
21
|
+
/**
|
|
22
|
+
* Every function added here gets only called once
|
|
23
|
+
* @param fun
|
|
24
|
+
*/
|
|
25
|
+
onEnvMapUpdate(fun: () => void): void;
|
|
20
26
|
setEnvMap(material: THREE.MeshStandardMaterial): void;
|
|
21
27
|
}
|
|
@@ -42,3 +42,9 @@ export declare const removeItem: (arr: any[], element: any) => void;
|
|
|
42
42
|
export declare type ValuesFromObject<T> = T[keyof T];
|
|
43
43
|
export declare const copy: <T>(object: T) => T;
|
|
44
44
|
export declare const isWebGl2: () => boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Creates a proxy around that class that logs all calls to it
|
|
47
|
+
* @param obj the class to trace
|
|
48
|
+
* @param name the tag under which it will be logged
|
|
49
|
+
*/
|
|
50
|
+
export declare const traceMethodCalls: (obj: object, name: string) => any;
|
|
@@ -38,6 +38,7 @@ export default class ConfiguratorViewModel implements ConfiguratorKernelCallback
|
|
|
38
38
|
private _subPartGuard;
|
|
39
39
|
protected _components: Map<number, RoomleComponent>;
|
|
40
40
|
private _previews;
|
|
41
|
+
protected _componentNumberOfPossibleChildren: Map<number, number>;
|
|
41
42
|
protected _componentFactory: RoomleComponentFactory;
|
|
42
43
|
constructor(creator: string);
|
|
43
44
|
get materialQueue(): PromiseQueue<void>;
|
|
@@ -48,6 +49,7 @@ export default class ConfiguratorViewModel implements ConfiguratorKernelCallback
|
|
|
48
49
|
private _changeMeshOfComponent;
|
|
49
50
|
private _removeMeshFromComponent;
|
|
50
51
|
getComponent(componentId: number): RoomleComponent;
|
|
52
|
+
getNumberOfPossibleChildrenForComponent(componentId: number): number;
|
|
51
53
|
tryToMergeComponents(): void;
|
|
52
54
|
private _requestMergeComponents;
|
|
53
55
|
private _mergeNextComponent;
|
|
@@ -23,6 +23,7 @@ export default class PlanElementViewModel extends KernelViewModel {
|
|
|
23
23
|
getContainer(): THREE.Object3D;
|
|
24
24
|
getId(): number;
|
|
25
25
|
clear(): void;
|
|
26
|
+
remove(): void;
|
|
26
27
|
hidePreviewBox(): void;
|
|
27
28
|
protected _generateBoundingBox(size: THREE.Vector3, color: number): THREE.Mesh;
|
|
28
29
|
select(): void;
|
|
@@ -5,11 +5,12 @@ export default class ComponentDimensioningHelper implements Context {
|
|
|
5
5
|
private _plannerKernelAccess;
|
|
6
6
|
private _camera;
|
|
7
7
|
private _activeComponents;
|
|
8
|
+
private _componentDimensioningsExist;
|
|
8
9
|
constructor(creator: string);
|
|
9
10
|
setCamera(camera: THREE.PerspectiveCamera): void;
|
|
10
11
|
add(component: RoomleComponent): boolean;
|
|
11
12
|
remove(component: RoomleComponent, remove?: boolean): Promise<void>;
|
|
12
13
|
hasComponentDimensions(): boolean;
|
|
13
14
|
reset(): Promise<void>;
|
|
14
|
-
|
|
15
|
+
invalidateDimensioningsCache(componentRuntimeId?: number): void;
|
|
15
16
|
}
|
|
@@ -21,6 +21,7 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
21
21
|
private _memoryManager;
|
|
22
22
|
protected _configuratorContext: ConfiguratorContext;
|
|
23
23
|
private _componentDimensioningHelper;
|
|
24
|
+
private _configuratorViewModel;
|
|
24
25
|
private _configuratorHistory;
|
|
25
26
|
protected _plannerKernelAccess: PlannerKernelAccess;
|
|
26
27
|
protected _viewModel: ConfiguratorViewModel;
|
|
@@ -46,7 +47,7 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
|
|
|
46
47
|
private _materialLoaded;
|
|
47
48
|
private _applySSR;
|
|
48
49
|
pause(): void;
|
|
49
|
-
protected _setupScene(offset?: CanvasOffset, transparent?: boolean): void;
|
|
50
|
+
protected _setupScene(offset?: CanvasOffset, transparent?: boolean, skipLightSetup?: boolean): void;
|
|
50
51
|
sceneCleared(shouldHardReset: boolean): void;
|
|
51
52
|
display(component: RoomleComponent): void;
|
|
52
53
|
debugSceneGraph(id?: number): void;
|
package/lib/{dimensioning-helper-d8ccc5a9.nomodule.js → dimensioning-helper-118608cf.nomodule.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=dimensioning-helper-
|
|
1
|
+
System.register(["./roomle-dependency-injection-c680c022.nomodule.js","./main-thread-to-worker-1f6a23af.nomodule.js"],(function(e){var t,i,s,n,h;return{setters:[function(e){t=e.m,i=e._,s=e.i,n=e.e,h=e.ae},function(){}],execute:function(){const o="component_dimensioning_plane_material",a="component_dimensioning_text_material";let _=(()=>{class e extends THREE.Object3D{constructor(e){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=e,this._position=new THREE.Vector3,this._initMaterials(),this._init(),this._update()}_initMaterials(){this._cacheHolder.materialCache.has(o)?this._planeMaterial=this._cacheHolder.materialCache.get(o):(this._planeMaterial=new THREE.MeshBasicMaterial({color:16777215,side:THREE.DoubleSide,opacity:.8,transparent:!0}),this._cacheHolder.materialCache.set(o,this._planeMaterial)),this._cacheHolder.materialCache.has(a)?this._textMaterial=this._cacheHolder.materialCache.get(a):(this._textMaterial=new THREE.MeshPhongMaterial({color:3618615}),this._cacheHolder.materialCache.set(a,this._textMaterial))}_init(){let e=new THREE.Geometry;this._text=new THREE.Mesh(e,this._textMaterial),this._text.name="text with background text "+this._label,this._plane=new THREE.Mesh(e,this._planeMaterial),this._plane.name="text with background plane "+this._label,this._textGeometry=new THREE.TextGeometry(this._label,this._parameters),this._textGeometry.computeBoundingBox(),this._text.geometry=this._textGeometry,this.add(this._text),this.add(this._plane)}update(e,t,i,s){this._position.copy(e),this._dimensioningType=t,this._cameraPosition=s,this._label=i;const n=this._cameraPosition.distanceTo(this._text.position),h=Math.max(.01,n/100),o=Math.max(5e-4,n/5e3);this._parameters.bevelThickness=o,this._parameters.bevelSize=o,this._parameters.size=h,this._textGeometry=new THREE.TextGeometry(this._label,this._parameters),this._textGeometry.computeBoundingBox(),this._text.geometry=this._textGeometry,this._update()}_update(){if(this.topDown){let e=new THREE.Quaternion;e.setFromAxisAngle(new THREE.Vector3(-1,0,0),Math.PI/2),this._updateText(this._textGeometry,e,new THREE.Vector3)}else if(this._updateText(this._textGeometry,new THREE.Quaternion,new THREE.Vector3),this._cameraPosition){const e=Math.atan2(this._cameraPosition.x-this._position.x,this._cameraPosition.z-this._position.z);this._text.rotation.y=e,this._plane.rotation.y=e}}_updateText(e,t,i){let s=new THREE.Vector3;s.copy(this._position),i.x*=this._getXSign(),s.add(i);let n=e.boundingBox.getSize(new THREE.Vector3);e.center(),this._text.position.copy(s),this._text.quaternion.copy(t);let h=new THREE.PlaneGeometry(n.x+.02,n.y+.02,32);h.center(),this._plane.geometry=h,this._plane.position.copy(s),this._plane.quaternion.copy(t)}_getXSign(){return!this._cameraPosition||this._cameraPosition.x>=0?1:-1}dispose(){t(this)}}return i([s],e.prototype,"_cacheHolder",void 0),e})();e("default",(()=>{class e{constructor(e){this._cameraPosition=new THREE.Vector3,this._textUpdated=!1,this._topDimensions=!1,this._initialized=new n,this._enabled=!1,this._dimensionsVisible=!1,this._creator_=e,this._lineMaterial=new THREE.LineBasicMaterial({color:3618615,linewidth:2});let t=new THREE.Geometry;this._widthLine=new THREE.Line(t,this._lineMaterial),this._widthLine.name="dimension width line",this._heightLine=new THREE.Line(t,this._lineMaterial),this._heightLine.name="dimension height line",this._depthLine=new THREE.Line(t,this._lineMaterial),this._depthLine.name="dimension depth line",this._planeMaterial=new THREE.MeshBasicMaterial({color:16777215,side:THREE.DoubleSide,opacity:.8,transparent:!0}),h.loadFont("static/rubik_regular_sub-eb3f3b61078695cc.json").then(e=>{this._font=e,this._loaded()})}_loaded(){this.update(!1),this.addToScene(this._scene,this._uiScene),this._initialized.resolve()}_performUpdate(e){this._enabled&&(this._lineBounds||e)&&this._font&&(this._updateHeight(),this._updateWidth(),this._updateDepth())}_updateWidth(){let e=new THREE.Geometry,t=this._getWidthEdge();e.vertices.push(t.start,t.end),this._widthLine.geometry.dispose(),this._widthLine.geometry=e;let i=t.getCenter(new THREE.Vector3);this._widthText||(this._widthText=new _(this._font)),this._widthText.topDown=this._topDimensions;const s=this._unitFormatter.formatMMValueToUnitString(1e3*this._dimensions.x);this._widthText.update(i,0,s,this._cameraPosition)}_updateHeight(){let e=new THREE.Geometry,t=this._getHeightEdge();e.vertices.push(t.start,t.end),this._heightLine.geometry.dispose(),this._heightLine.geometry=e;let i=t.getCenter(new THREE.Vector3);this._heightText||(this._heightText=new _(this._font)),this._heightText.topDown=this._topDimensions;const s=this._unitFormatter.formatMMValueToUnitString(1e3*this._dimensions.y);this._heightText.update(i,1,s,this._cameraPosition)}_updateDepth(){let e=new THREE.Geometry,t=this._getDepthEdge();e.vertices.push(t.start,t.end),this._depthLine.geometry.dispose(),this._depthLine.geometry=e;let i=t.getCenter(new THREE.Vector3);this._depthText||(this._depthText=new _(this._font)),this._depthText.topDown=this._topDimensions;const s=this._unitFormatter.formatMMValueToUnitString(1e3*this._dimensions.z);this._depthText.update(i,2,s,this._cameraPosition)}updateBounds(e){this._dimensions=e.getSize(new THREE.Vector3),this._lineBounds=e.clone();let t=this._lineBounds.min.y<0?this._lineBounds.min.y:0;t-=.01,this._lineBounds.expandByVector(new THREE.Vector3(.05,t,.05)),this._textUpdated=!1,this.update()}update(e=!1){this._enabled&&!this._dimensionsVisible&&(this._dimensionsVisible=!0,this._visibilityChangedCallback()),this._performUpdate(e)}addToScene(e,t){this._widthText&&this._widthLine&&this._heightText&&this._heightLine&&this._heightText&&this._heightLine&&(e.add(this._widthLine),t.add(this._widthText),e.add(this._heightLine),t.add(this._heightText),e.add(this._depthLine),t.add(this._depthText))}removeFromScene(e,t){e.remove(this._widthLine),t.remove(this._widthText),e.remove(this._heightLine),t.remove(this._heightText),e.remove(this._depthLine),t.remove(this._depthText)}_getWidthEdge(){return this._cameraPosition.z>=0?new THREE.Line3(new THREE.Vector3(this._lineBounds.min.x,this._lineBounds.min.y,this._lineBounds.max.z),new THREE.Vector3(this._lineBounds.max.x,this._lineBounds.min.y,this._lineBounds.max.z)):new THREE.Line3(new THREE.Vector3(this._lineBounds.min.x,this._lineBounds.min.y,this._lineBounds.min.z),new THREE.Vector3(this._lineBounds.max.x,this._lineBounds.min.y,this._lineBounds.min.z))}_getDepthEdge(){return this._cameraPosition.x>=0?new THREE.Line3(new THREE.Vector3(this._lineBounds.max.x,this._lineBounds.min.y,this._lineBounds.min.z),new THREE.Vector3(this._lineBounds.max.x,this._lineBounds.min.y,this._lineBounds.max.z)):new THREE.Line3(new THREE.Vector3(this._lineBounds.min.x,this._lineBounds.min.y,this._lineBounds.min.z),new THREE.Vector3(this._lineBounds.min.x,this._lineBounds.min.y,this._lineBounds.max.z))}_getHeightEdge(){return this._cameraPosition.x>=0&&this._cameraPosition.z>=0?new THREE.Line3(new THREE.Vector3(this._lineBounds.max.x,this._lineBounds.min.y,this._lineBounds.max.z),new THREE.Vector3(this._lineBounds.max.x,this._lineBounds.max.y,this._lineBounds.max.z)):this._cameraPosition.x<0&&this._cameraPosition.z>=0?new THREE.Line3(new THREE.Vector3(this._lineBounds.min.x,this._lineBounds.min.y,this._lineBounds.max.z),new THREE.Vector3(this._lineBounds.min.x,this._lineBounds.max.y,this._lineBounds.max.z)):this._cameraPosition.x>=0&&this._cameraPosition.z<0?new THREE.Line3(new THREE.Vector3(this._lineBounds.max.x,this._lineBounds.min.y,this._lineBounds.min.z),new THREE.Vector3(this._lineBounds.max.x,this._lineBounds.max.y,this._lineBounds.min.z)):new THREE.Line3(new THREE.Vector3(this._lineBounds.min.x,this._lineBounds.min.y,this._lineBounds.min.z),new THREE.Vector3(this._lineBounds.min.x,this._lineBounds.max.y,this._lineBounds.min.z))}onDimensionsVisibilityChanged(e){this._onChange=e}enableTopDimensions(){this.enableDimensions(),this._topDimensions=!0,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.addToScene(this._scene,this._uiScene)}disableDimensions(){this._enabled=!1,this._dimensionsVisible&&(this._dimensionsVisible=!1,this._visibilityChangedCallback()),this.removeFromScene(this._scene,this._uiScene)}_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 e=new THREE.Box3;return e.expandByObject(this._widthLine),e.expandByObject(this._widthText),e.expandByObject(this._heightLine),e.expandByObject(this._heightText),e.expandByObject(this._depthLine),e.expandByObject(this._depthText),e}setVisibility(e){this._heightLine&&this._widthLine&&this._depthLine&&this._heightText&&this._widthText&&this._depthText&&(this._heightLine.visible=e,this._heightText.visible=e,this._widthLine.visible=e,this._widthText.visible=e,this._depthLine.visible=e,this._depthText.visible=e)}moveCameraStart(e){this.setVisibility(!1),this._cameraPosition=e,this.update()}moveCameraEnd(e){this.setVisibility(!0),this._cameraPosition=e,this.update()}clearScene(e){this._clear()}setScene(e){this._scene=e}setUiScene(e){this._uiScene=e}needsUiScene(){return!0}isInitialized(){return this._initialized.wait()}areDimensionsEnabled(){return this._enabled}}return i([s],e.prototype,"_unitFormatter",void 0),e})())}}}));
|
|
2
|
+
//# sourceMappingURL=dimensioning-helper-118608cf.nomodule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimensioning-helper-
|
|
1
|
+
{"version":3,"file":"dimensioning-helper-118608cf.nomodule.js","sources":["../../packages/configurator-core/public/fonts/rubik_regular_sub.json"],"sourcesContent":["export default \"static/rubik_regular_sub-eb3f3b61078695cc.json\""],"names":[],"mappings":"ioHAAe"}
|