@roomle/web-sdk 2.42.0-alpha.2 → 2.42.0-alpha.4
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-838e9040.js → banana-for-scale-312b3d38.js} +2 -2
- package/lib/{banana-for-scale-838e9040.js.map → banana-for-scale-312b3d38.js.map} +1 -1
- package/lib/{banana-for-scale-5fa12ed9.nomodule.js → banana-for-scale-807476a7.nomodule.js} +2 -2
- package/lib/{banana-for-scale-5fa12ed9.nomodule.js.map → banana-for-scale-807476a7.nomodule.js.map} +1 -1
- package/lib/{component-dimensioning-8474148b.nomodule.js → component-dimensioning-30d9ca9f.nomodule.js} +2 -2
- package/lib/component-dimensioning-30d9ca9f.nomodule.js.map +1 -0
- package/lib/{component-dimensioning-41c57f18.js → component-dimensioning-a33315d8.js} +2 -2
- package/lib/component-dimensioning-a33315d8.js.map +1 -0
- package/lib/component-raycast-helper-48cf1971.nomodule.js +2 -0
- package/lib/component-raycast-helper-48cf1971.nomodule.js.map +1 -0
- package/lib/component-raycast-helper-c0fa5fa1.js +2 -0
- package/lib/component-raycast-helper-c0fa5fa1.js.map +1 -0
- package/lib/{configurator-d421e06c.nomodule.js → configurator-4ed21a21.nomodule.js} +2 -2
- package/lib/configurator-4ed21a21.nomodule.js.map +1 -0
- package/lib/{configurator-98ba81fc.js → configurator-5b924cd8.js} +2 -2
- package/lib/configurator-5b924cd8.js.map +1 -0
- package/lib/configurator-main-e9979577.js +2 -0
- package/lib/configurator-main-e9979577.js.map +1 -0
- package/lib/configurator-main.nomodule.js +1 -1
- package/lib/{default-light-setting-b9894c22.js → default-light-setting-0e959858.js} +2 -2
- package/lib/default-light-setting-0e959858.js.map +1 -0
- package/lib/{default-light-setting-f185dd1e.nomodule.js → default-light-setting-106fb519.nomodule.js} +2 -2
- package/lib/default-light-setting-106fb519.nomodule.js.map +1 -0
- package/lib/definitions/common-core/mock/kernel-instances.d.ts +2 -0
- package/lib/definitions/common-core/src/input/input-manager.d.ts +2 -1
- package/lib/definitions/common-core/src/view-model/plan-element-view-model.d.ts +5 -1
- package/lib/definitions/configurator-core/mock/configurator-mock-data.d.ts +30 -0
- package/lib/definitions/configurator-core/src/roomle-configurator.d.ts +13 -1
- package/lib/definitions/configurator-core/src/utils/raycast-helper.d.ts +1 -0
- package/lib/definitions/configurator-core/src/webgl/configurator-scene-event-handler.d.ts +1 -4
- package/lib/definitions/planner-core/mock/planner-mock-helper.d.ts +2 -1
- package/lib/definitions/planner-core/src/roomle-planner.d.ts +5 -0
- package/lib/definitions/planner-core/src/view-model/node-plan-element-view-model.d.ts +15 -1
- package/lib/definitions/planner-core/src/view-model/plan-view-model.d.ts +5 -3
- package/lib/definitions/planner-core/src/view-model/wall-plan-element-view-model.d.ts +3 -0
- package/lib/definitions/planner-core/src/webgl/planner-scene-event-handler.d.ts +18 -4
- package/lib/definitions/typings/helper.d.ts +1 -0
- package/lib/definitions/typings/kernel.d.ts +4 -0
- package/lib/definitions/typings/planner-kernel-container.d.ts +9 -6
- package/lib/definitions/typings/planner.d.ts +6 -2
- package/lib/{dimensioning-helper-38a82896.nomodule.js → dimensioning-helper-44c9f78f.nomodule.js} +2 -2
- package/lib/{dimensioning-helper-38a82896.nomodule.js.map → dimensioning-helper-44c9f78f.nomodule.js.map} +1 -1
- package/lib/{dimensioning-helper-6691ae3b.js → dimensioning-helper-d664f8d2.js} +2 -2
- package/lib/{dimensioning-helper-6691ae3b.js.map → dimensioning-helper-d664f8d2.js.map} +1 -1
- package/lib/{glb-viewer-5cca4df0.nomodule.js → glb-viewer-8b3edba8.nomodule.js} +2 -2
- package/lib/{glb-viewer-5cca4df0.nomodule.js.map → glb-viewer-8b3edba8.nomodule.js.map} +1 -1
- package/lib/{glb-viewer-a61d0002.js → glb-viewer-dcb48b33.js} +2 -2
- package/lib/{glb-viewer-a61d0002.js.map → glb-viewer-dcb48b33.js.map} +1 -1
- package/lib/glb-viewer-main-9da78995.js +2 -0
- package/lib/glb-viewer-main-9da78995.js.map +1 -0
- package/lib/glb-viewer-main.nomodule.js +1 -1
- package/lib/legacy/{banana-for-scale-b7841228.legacy.js → banana-for-scale-865d6357.legacy.js} +2 -2
- package/lib/legacy/{banana-for-scale-b7841228.legacy.js.map → banana-for-scale-865d6357.legacy.js.map} +1 -1
- package/lib/legacy/{component-dimensioning-b53cd7b1.legacy.js → component-dimensioning-1c54afe7.legacy.js} +2 -2
- package/lib/legacy/component-dimensioning-1c54afe7.legacy.js.map +1 -0
- package/lib/legacy/component-raycast-helper-6350f698.legacy.js +2 -0
- package/lib/legacy/component-raycast-helper-6350f698.legacy.js.map +1 -0
- package/lib/legacy/{configurator-7e6cdb14.legacy.js → configurator-9517618a.legacy.js} +2 -2
- package/lib/legacy/configurator-9517618a.legacy.js.map +1 -0
- package/lib/legacy/configurator-main.legacy.js +1 -1
- package/lib/legacy/{default-light-setting-ea82d55d.legacy.js → default-light-setting-cc1d5b0e.legacy.js} +2 -2
- package/lib/legacy/default-light-setting-cc1d5b0e.legacy.js.map +1 -0
- package/lib/legacy/{dimensioning-helper-56f69b2f.legacy.js → dimensioning-helper-020b84d9.legacy.js} +2 -2
- package/lib/legacy/{dimensioning-helper-56f69b2f.legacy.js.map → dimensioning-helper-020b84d9.legacy.js.map} +1 -1
- package/lib/legacy/{glb-viewer-4e61a9ab.legacy.js → glb-viewer-6cb3a7d2.legacy.js} +2 -2
- package/lib/legacy/{glb-viewer-4e61a9ab.legacy.js.map → glb-viewer-6cb3a7d2.legacy.js.map} +1 -1
- package/lib/legacy/glb-viewer-main.legacy.js +1 -1
- package/lib/legacy/{material-viewer-448a0127.legacy.js → material-viewer-254c5bd8.legacy.js} +2 -2
- package/lib/legacy/material-viewer-254c5bd8.legacy.js.map +1 -0
- package/lib/legacy/material-viewer-main.legacy.js +1 -1
- package/lib/legacy/{pixotron-62319727.legacy.js → pixotron-434aa0ab.legacy.js} +2 -2
- package/lib/legacy/{pixotron-62319727.legacy.js.map → pixotron-434aa0ab.legacy.js.map} +1 -1
- package/lib/legacy/planner-113fbfcc.legacy.js +2 -0
- package/lib/legacy/{planner-53955fdb.legacy.js.map → planner-113fbfcc.legacy.js.map} +1 -1
- package/lib/legacy/planner-main.legacy.js +1 -1
- package/lib/legacy/roomle-configurator-646da3d7.legacy.js +2 -0
- package/lib/legacy/{roomle-configurator-99dbcb54.legacy.js.map → roomle-configurator-646da3d7.legacy.js.map} +1 -1
- package/lib/legacy/roomle-dependency-injection-9619f44e.legacy.js +16 -0
- package/lib/legacy/{roomle-dependency-injection-c26dab0b.legacy.js.map → roomle-dependency-injection-9619f44e.legacy.js.map} +1 -1
- package/lib/legacy/roomle-sdk.legacy.js +1 -1
- package/lib/legacy/{script-loader-3b184b41.legacy.js → script-loader-7df0ee20.legacy.js} +2 -2
- package/lib/legacy/script-loader-7df0ee20.legacy.js.map +1 -0
- package/lib/legacy/static/ConfiguratorKernel-8f1a4eda36318abd.wasm +0 -0
- package/lib/legacy/static/ConfiguratorKernelJs-6a7758a43da62968.js +146 -0
- package/lib/legacy/static/ConfiguratorKernelJs-b36d5aa06f479270.mem +0 -0
- package/lib/legacy/static/RoomleCore-802f62dd7501a9dc.wasm +0 -0
- package/lib/legacy/static/RoomleCoreJs-1d65450d34a3ee60.mem +0 -0
- package/lib/legacy/static/RoomleCoreJs-f77e8a08a6a4163c.js +154 -0
- package/lib/legacy/static/RoomleToolsCore-1ba3eb620c3d42d6.wasm +0 -0
- package/lib/legacy/static/{rthree-508a6ceb9a1516ce.js → rthree-ffe182e11c947389.js} +1 -1
- package/lib/legacy/static/shaders-3aa6cc29708c227a.json +1 -0
- package/lib/legacy/{stats-helper-9bd35f32.legacy.js → stats-helper-36a7ab79.legacy.js} +2 -2
- package/lib/legacy/{stats-helper-9bd35f32.legacy.js.map → stats-helper-36a7ab79.legacy.js.map} +1 -1
- package/lib/legacy/{tools-core-f84193e3.legacy.js → tools-core-63ba845e.legacy.js} +2 -2
- package/lib/legacy/tools-core-63ba845e.legacy.js.map +1 -0
- package/lib/{material-viewer-866b89ad.js → material-viewer-1ae39f7f.js} +2 -2
- package/lib/material-viewer-1ae39f7f.js.map +1 -0
- package/lib/{material-viewer-e1341b98.nomodule.js → material-viewer-e0fd77bf.nomodule.js} +2 -2
- package/lib/material-viewer-e0fd77bf.nomodule.js.map +1 -0
- package/lib/material-viewer-main-1f7d4eef.js +2 -0
- package/lib/material-viewer-main-1f7d4eef.js.map +1 -0
- package/lib/material-viewer-main.nomodule.js +1 -1
- package/lib/{pixotron-c41e87c2.nomodule.js → pixotron-860d6892.nomodule.js} +2 -2
- package/lib/{pixotron-c41e87c2.nomodule.js.map → pixotron-860d6892.nomodule.js.map} +1 -1
- package/lib/{pixotron-85cd46b5.js → pixotron-bd597a7e.js} +2 -2
- package/lib/{pixotron-85cd46b5.js.map → pixotron-bd597a7e.js.map} +1 -1
- package/lib/planner-1faac4bb.js +2 -0
- package/lib/{planner-a1e3accc.js.map → planner-1faac4bb.js.map} +1 -1
- package/lib/planner-a6decd3d.nomodule.js +2 -0
- package/lib/{planner-42328cee.nomodule.js.map → planner-a6decd3d.nomodule.js.map} +1 -1
- package/lib/planner-main-3b90ea49.js +2 -0
- package/lib/planner-main-3b90ea49.js.map +1 -0
- package/lib/planner-main.nomodule.js +1 -1
- package/lib/roomle-configurator-00e31830.js +2 -0
- package/lib/{roomle-configurator-f521eb6e.js.map → roomle-configurator-00e31830.js.map} +1 -1
- package/lib/roomle-configurator-5a950938.nomodule.js +2 -0
- package/lib/{roomle-configurator-07c210d1.nomodule.js.map → roomle-configurator-5a950938.nomodule.js.map} +1 -1
- package/lib/roomle-dependency-injection-0d94a1f0.js +16 -0
- package/lib/{roomle-dependency-injection-04566455.js.map → roomle-dependency-injection-0d94a1f0.js.map} +1 -1
- package/lib/roomle-dependency-injection-2c9e6a4a.nomodule.js +16 -0
- package/lib/{roomle-dependency-injection-e2b49905.nomodule.js.map → roomle-dependency-injection-2c9e6a4a.nomodule.js.map} +1 -1
- package/lib/{roomle-sdk-3a8727f0.js → roomle-sdk-838b09db.js} +2 -2
- package/lib/roomle-sdk-838b09db.js.map +1 -0
- package/lib/roomle-sdk.nomodule.js +1 -1
- package/lib/{script-loader-d739ec59.js → script-loader-62963899.js} +2 -2
- package/lib/script-loader-62963899.js.map +1 -0
- package/lib/{script-loader-be607b87.nomodule.js → script-loader-de3cb4db.nomodule.js} +2 -2
- package/lib/script-loader-de3cb4db.nomodule.js.map +1 -0
- package/lib/static/ConfiguratorKernel-8f1a4eda36318abd.wasm +0 -0
- package/lib/static/ConfiguratorKernelJs-6a7758a43da62968.js +146 -0
- package/lib/static/ConfiguratorKernelJs-b36d5aa06f479270.mem +0 -0
- package/lib/static/RoomleCore-802f62dd7501a9dc.wasm +0 -0
- package/lib/static/RoomleCoreJs-1d65450d34a3ee60.mem +0 -0
- package/lib/static/RoomleCoreJs-f77e8a08a6a4163c.js +154 -0
- package/lib/static/RoomleToolsCore-1ba3eb620c3d42d6.wasm +0 -0
- package/lib/static/{rthree-508a6ceb9a1516ce.js → rthree-ffe182e11c947389.js} +1 -1
- package/lib/static/rthree-ffe182e11c947389.js.map +1 -0
- package/lib/static/shaders-3aa6cc29708c227a.json +1 -0
- package/lib/{stats-helper-16750f0c.js → stats-helper-2e67cf1e.js} +2 -2
- package/lib/{stats-helper-16750f0c.js.map → stats-helper-2e67cf1e.js.map} +1 -1
- package/lib/{stats-helper-4ba28da9.nomodule.js → stats-helper-6ea8bec0.nomodule.js} +2 -2
- package/lib/{stats-helper-4ba28da9.nomodule.js.map → stats-helper-6ea8bec0.nomodule.js.map} +1 -1
- package/lib/{tools-core-515f6246.js → tools-core-3a0c4b33.js} +2 -2
- package/lib/tools-core-3a0c4b33.js.map +1 -0
- package/lib/{tools-core-ccd3df0a.nomodule.js → tools-core-7a1824ac.nomodule.js} +2 -2
- package/lib/tools-core-7a1824ac.nomodule.js.map +1 -0
- package/package.json +2 -2
- package/lib/component-dimensioning-41c57f18.js.map +0 -1
- package/lib/component-dimensioning-8474148b.nomodule.js.map +0 -1
- package/lib/component-raycast-helper-a6fde2c2.nomodule.js +0 -2
- package/lib/component-raycast-helper-a6fde2c2.nomodule.js.map +0 -1
- package/lib/component-raycast-helper-d65edd26.js +0 -2
- package/lib/component-raycast-helper-d65edd26.js.map +0 -1
- package/lib/configurator-98ba81fc.js.map +0 -1
- package/lib/configurator-d421e06c.nomodule.js.map +0 -1
- package/lib/configurator-main-a7c383d1.js +0 -2
- package/lib/configurator-main-a7c383d1.js.map +0 -1
- package/lib/default-light-setting-b9894c22.js.map +0 -1
- package/lib/default-light-setting-f185dd1e.nomodule.js.map +0 -1
- package/lib/glb-viewer-main-93b2ae7c.js +0 -2
- package/lib/glb-viewer-main-93b2ae7c.js.map +0 -1
- package/lib/legacy/component-dimensioning-b53cd7b1.legacy.js.map +0 -1
- package/lib/legacy/component-raycast-helper-d762cdf0.legacy.js +0 -2
- package/lib/legacy/component-raycast-helper-d762cdf0.legacy.js.map +0 -1
- package/lib/legacy/configurator-7e6cdb14.legacy.js.map +0 -1
- package/lib/legacy/default-light-setting-ea82d55d.legacy.js.map +0 -1
- package/lib/legacy/material-viewer-448a0127.legacy.js.map +0 -1
- package/lib/legacy/planner-53955fdb.legacy.js +0 -2
- package/lib/legacy/roomle-configurator-99dbcb54.legacy.js +0 -2
- package/lib/legacy/roomle-dependency-injection-c26dab0b.legacy.js +0 -16
- package/lib/legacy/script-loader-3b184b41.legacy.js.map +0 -1
- package/lib/legacy/static/ConfiguratorKernel-9175a34fd81a8392.wasm +0 -0
- package/lib/legacy/static/ConfiguratorKernelJs-0fd77a1d940a1ffd.js +0 -146
- package/lib/legacy/static/ConfiguratorKernelJs-62cc4453c9163389.mem +0 -0
- package/lib/legacy/static/RoomleCore-b198b4723aed89db.wasm +0 -0
- package/lib/legacy/static/RoomleCoreJs-8443e4116da55b4d.mem +0 -0
- package/lib/legacy/static/RoomleCoreJs-e6983ab2e7b7b22b.js +0 -154
- package/lib/legacy/static/RoomleToolsCore-b46af3f3415df022.wasm +0 -0
- package/lib/legacy/static/shaders-27a090f1f6273b05.json +0 -1
- package/lib/legacy/tools-core-f84193e3.legacy.js.map +0 -1
- package/lib/material-viewer-866b89ad.js.map +0 -1
- package/lib/material-viewer-e1341b98.nomodule.js.map +0 -1
- package/lib/material-viewer-main-bdce28d1.js +0 -2
- package/lib/material-viewer-main-bdce28d1.js.map +0 -1
- package/lib/planner-42328cee.nomodule.js +0 -2
- package/lib/planner-a1e3accc.js +0 -2
- package/lib/planner-main-ded349f3.js +0 -2
- package/lib/planner-main-ded349f3.js.map +0 -1
- package/lib/roomle-configurator-07c210d1.nomodule.js +0 -2
- package/lib/roomle-configurator-f521eb6e.js +0 -2
- package/lib/roomle-dependency-injection-04566455.js +0 -16
- package/lib/roomle-dependency-injection-e2b49905.nomodule.js +0 -16
- package/lib/roomle-sdk-3a8727f0.js.map +0 -1
- package/lib/script-loader-be607b87.nomodule.js.map +0 -1
- package/lib/script-loader-d739ec59.js.map +0 -1
- package/lib/static/ConfiguratorKernel-9175a34fd81a8392.wasm +0 -0
- package/lib/static/ConfiguratorKernelJs-0fd77a1d940a1ffd.js +0 -146
- package/lib/static/ConfiguratorKernelJs-62cc4453c9163389.mem +0 -0
- package/lib/static/RoomleCore-b198b4723aed89db.wasm +0 -0
- package/lib/static/RoomleCoreJs-8443e4116da55b4d.mem +0 -0
- package/lib/static/RoomleCoreJs-e6983ab2e7b7b22b.js +0 -154
- package/lib/static/RoomleToolsCore-b46af3f3415df022.wasm +0 -0
- package/lib/static/rthree-508a6ceb9a1516ce.js.map +0 -1
- package/lib/static/shaders-27a090f1f6273b05.json +0 -1
- package/lib/tools-core-515f6246.js.map +0 -1
- package/lib/tools-core-ccd3df0a.nomodule.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as __decorate,i as inject,
|
|
2
|
-
//# sourceMappingURL=banana-for-scale-
|
|
1
|
+
import{_ as __decorate,i as inject,ai as ScenePluginDefaultImplementation}from"./roomle-dependency-injection-0d94a1f0.js";import{g as getAssetPath}from"./main-thread-to-worker-681bab1a.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),a=this._bounds.getCenter(new THREE.Vector3).clone();a.x-=e.x/2+.18,a.z+=e.z/2+.05,a.y=0;let t=.03;this._banana.scale.copy(new THREE.Vector3(t,t,t)),this._banana.rotation.y=.6,this._banana.position.copy(a)}this._scene.children.includes(this._banana)||this.addToScene()}}clearScene(e,a){super.clearScene(e,a),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-312b3d38.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banana-for-scale-
|
|
1
|
+
{"version":3,"file":"banana-for-scale-312b3d38.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=banana-for-scale-
|
|
1
|
+
System.register(["./roomle-dependency-injection-2c9e6a4a.nomodule.js","./main-thread-to-worker-7283a354.nomodule.js"],(function(e){var n,t,a,s;return{setters:[function(e){n=e._,t=e.i,a=e.ai},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-807476a7.nomodule.js.map
|
package/lib/{banana-for-scale-5fa12ed9.nomodule.js.map → banana-for-scale-807476a7.nomodule.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banana-for-scale-
|
|
1
|
+
{"version":3,"file":"banana-for-scale-807476a7.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
|
-
System.register(["./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=component-dimensioning-
|
|
1
|
+
System.register(["./roomle-dependency-injection-2c9e6a4a.nomodule.js","./main-thread-to-worker-7283a354.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-30d9ca9f.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-dimensioning-30d9ca9f.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-0d94a1f0.js";import"./main-thread-to-worker-681bab1a.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-a33315d8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-dimensioning-a33315d8.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./roomle-dependency-injection-2c9e6a4a.nomodule.js","./main-thread-to-worker-7283a354.nomodule.js"],(function(e){var t,i;return{setters:[function(e){t=e.a0},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-48cf1971.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-raycast-helper-48cf1971.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a0 as transitionTransparencyOfMaterial}from"./roomle-dependency-injection-0d94a1f0.js";import{t as throttle}from"./main-thread-to-worker-681bab1a.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-c0fa5fa1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-raycast-helper-c0fa5fa1.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-2c9e6a4a.nomodule.js","./main-thread-to-worker-7283a354.nomodule.js","./roomle-configurator-5a950938.nomodule.js","./pixotron-860d6892.nomodule.js","./script-loader-de3cb4db.nomodule.js","./component-raycast-helper-48cf1971.nomodule.js","./default-light-setting-106fb519.nomodule.js"],(function(e){var o,n,t,r,i,c,a,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,c=e.b,a=e.A},function(){},function(e){s=e.C,l=e.R},function(e){u=e.C,p=e.a},function(e){d=e.S,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",d),new o("camera-control-3d",u),new o("camera-control",p),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(){c.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||{};a.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-4ed21a21.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-4ed21a21.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-0d94a1f0.js";import"./main-thread-to-worker-681bab1a.js";import{C as ConfiguratorSceneManager,R as RoomleConfigurator}from"./roomle-configurator-00e31830.js";import{C as CameraControl3D,a as CameraControl}from"./pixotron-bd597a7e.js";import{S as ScriptLoader,M as Main}from"./script-loader-62963899.js";import ComponentRaycastHelper from"./component-raycast-helper-c0fa5fa1.js";import"./default-light-setting-0e959858.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-5b924cd8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-5b924cd8.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./query-params-helper-a271f9dc.js";import"./roomle-dependency-injection-0d94a1f0.js";import"./main-thread-to-worker-681bab1a.js";import"./roomle-configurator-00e31830.js";import"./pixotron-bd597a7e.js";import"./script-loader-62963899.js";import"./component-raycast-helper-c0fa5fa1.js";import"./default-light-setting-0e959858.js";import{Configurator}from"./configurator-5b924cd8.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-e9979577.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurator-main-e9979577.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-2c9e6a4a.nomodule.js","./main-thread-to-worker-7283a354.nomodule.js","./roomle-configurator-5a950938.nomodule.js","./pixotron-860d6892.nomodule.js","./script-loader-de3cb4db.nomodule.js","./component-raycast-helper-48cf1971.nomodule.js","./default-light-setting-106fb519.nomodule.js","./configurator-4ed21a21.nomodule.js"],(function(){var e;return{setters:[function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(o){e=o.Configurator}],execute:function(){(new e).boot(),window.requestIdleCallback||(window.requestIdleCallback=e=>setTimeout(()=>{let o=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},1)),window.cancelIdleCallback||(window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)})}}}));
|
|
2
2
|
//# sourceMappingURL=configurator-main.nomodule.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h as getGUI}from"./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=default-light-setting-
|
|
1
|
+
import{h as getGUI}from"./roomle-dependency-injection-0d94a1f0.js";import{L as LightSetting}from"./pixotron-bd597a7e.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-0e959858.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-light-setting-0e959858.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=default-light-setting-
|
|
1
|
+
System.register(["./roomle-dependency-injection-2c9e6a4a.nomodule.js","./pixotron-860d6892.nomodule.js"],(function(i){var t,a;return{setters:[function(i){t=i.h},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-106fb519.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-light-setting-106fb519.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -79,6 +79,8 @@ export declare const MOCK_MINIMAL_KERNEL_CONTAINER: {
|
|
|
79
79
|
};
|
|
80
80
|
export declare const MOCK_PLAN_INTERACTION_HANDLER: {
|
|
81
81
|
addPlanObjects: () => void;
|
|
82
|
+
startInteraction: () => void;
|
|
83
|
+
endInteraction: () => void;
|
|
82
84
|
getPlan: () => {
|
|
83
85
|
extRef: {
|
|
84
86
|
jsObject: PlanViewModel;
|
|
@@ -42,7 +42,6 @@ export declare class InputEvent {
|
|
|
42
42
|
export declare const MIN_MOVE_DISTANCE: number;
|
|
43
43
|
export default class InputManager extends EventDispatcher<InputEvent> implements Context, EventListenerObject {
|
|
44
44
|
_creator_: string;
|
|
45
|
-
private _debug;
|
|
46
45
|
private _domHelper;
|
|
47
46
|
private _downPosition;
|
|
48
47
|
private _downPositionRelative;
|
|
@@ -63,6 +62,7 @@ export default class InputManager extends EventDispatcher<InputEvent> implements
|
|
|
63
62
|
private _dragEVName;
|
|
64
63
|
private _dragEV;
|
|
65
64
|
private _boundingClientRect;
|
|
65
|
+
private _boundingClientRectInvalid;
|
|
66
66
|
constructor(creator: string);
|
|
67
67
|
enableDragIn(dragEvent?: DragEvent): void;
|
|
68
68
|
private _dragM;
|
|
@@ -95,5 +95,6 @@ export default class InputManager extends EventDispatcher<InputEvent> implements
|
|
|
95
95
|
private _onContextMenu;
|
|
96
96
|
protected _canDrag(_type: INPUT_EVENT_TYPE): boolean;
|
|
97
97
|
onElementHit(): void;
|
|
98
|
+
private _getBoundingClientRect;
|
|
98
99
|
updateSize(): void;
|
|
99
100
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import KernelViewModel from './kernel-view-model';
|
|
2
2
|
import { PlanObject } from '../../../typings/planner';
|
|
3
|
+
export declare const WALL_SELECTION_COLOR = 10526880;
|
|
3
4
|
export default class PlanElementViewModel extends KernelViewModel {
|
|
4
5
|
protected _container: THREE.Object3D;
|
|
5
6
|
protected _boundingBox: THREE.Mesh;
|
|
6
7
|
private _object;
|
|
7
8
|
private _selectionMesh;
|
|
9
|
+
protected _isSelected: boolean;
|
|
8
10
|
private _primaryColor;
|
|
9
11
|
private _objectWaiter;
|
|
10
12
|
constructor(planObject: PlanObject);
|
|
@@ -18,7 +20,7 @@ export default class PlanElementViewModel extends KernelViewModel {
|
|
|
18
20
|
setObject(object: THREE.Object3D): void;
|
|
19
21
|
getObject(): import("three").Object3D;
|
|
20
22
|
getObjectAsync(): Promise<import("three").Object3D>;
|
|
21
|
-
addMesh(mesh: THREE.
|
|
23
|
+
addMesh(mesh: THREE.Object3D): void;
|
|
22
24
|
getMesh(material: any): THREE.Mesh;
|
|
23
25
|
getContainer(): THREE.Object3D;
|
|
24
26
|
getId(): number;
|
|
@@ -28,5 +30,7 @@ export default class PlanElementViewModel extends KernelViewModel {
|
|
|
28
30
|
protected _generateBoundingBox(size: THREE.Vector3, color: number): THREE.Mesh;
|
|
29
31
|
select(): void;
|
|
30
32
|
deselect(): void;
|
|
33
|
+
hoverOn(): void;
|
|
34
|
+
hoverOff(): void;
|
|
31
35
|
setPrimaryColor(color: string): void;
|
|
32
36
|
}
|
|
@@ -2,6 +2,7 @@ import { KernelPossibleChild } from '../../typings/kernel';
|
|
|
2
2
|
export declare const USM_PARTLIST: any;
|
|
3
3
|
export declare const CUBE_PARTLIST: any;
|
|
4
4
|
export declare const USM_KERNEL_POSSIBLE_CHILD: KernelPossibleChild;
|
|
5
|
+
export declare const USM_KERNEL_IMPOSSIBLE_CHILD: KernelPossibleChild;
|
|
5
6
|
export declare const USM_RAPI_COMPONENT: {
|
|
6
7
|
externalIdentifier: string;
|
|
7
8
|
catalog: string;
|
|
@@ -31,6 +32,35 @@ export declare const USM_RAPI_COMPONENT: {
|
|
|
31
32
|
version: number;
|
|
32
33
|
__rapi_path__: string;
|
|
33
34
|
};
|
|
35
|
+
export declare const USM_IMPOSSIBLE_COMPONENT: {
|
|
36
|
+
id: string;
|
|
37
|
+
externalIdentifier: string;
|
|
38
|
+
catalog: string;
|
|
39
|
+
type: string;
|
|
40
|
+
detailType: string;
|
|
41
|
+
configuration: string;
|
|
42
|
+
active: boolean;
|
|
43
|
+
updated: string;
|
|
44
|
+
created: string;
|
|
45
|
+
perspectiveImage: string;
|
|
46
|
+
labels: string[];
|
|
47
|
+
tags: string[];
|
|
48
|
+
orderable: boolean;
|
|
49
|
+
label: string;
|
|
50
|
+
language: string;
|
|
51
|
+
translations: {
|
|
52
|
+
id: string;
|
|
53
|
+
language: string;
|
|
54
|
+
label: string;
|
|
55
|
+
created: string;
|
|
56
|
+
updated: string;
|
|
57
|
+
}[];
|
|
58
|
+
links: {
|
|
59
|
+
tags: string;
|
|
60
|
+
};
|
|
61
|
+
version: number;
|
|
62
|
+
__rapi_path__: string;
|
|
63
|
+
};
|
|
34
64
|
export declare const USM_ADDON_TAG: {
|
|
35
65
|
id: string;
|
|
36
66
|
global: boolean;
|
|
@@ -617,11 +617,23 @@ export default class RoomleConfigurator implements GlobalAPI, Context, KernelUti
|
|
|
617
617
|
*/
|
|
618
618
|
getParametersOfComponent(componentRuntimeId: number): UiKernelParameter[];
|
|
619
619
|
private _addGroupsToParameters;
|
|
620
|
+
private _getChildrenOf;
|
|
620
621
|
/**
|
|
621
622
|
* Returns all possible children and the default child for a given component
|
|
622
623
|
* @param componentRuntimeId
|
|
624
|
+
* @param onlyPossible: boolean true if you only want possibleChildren
|
|
625
|
+
* @param onlyVisible: boolean true if you only want visible children
|
|
623
626
|
*/
|
|
624
|
-
|
|
627
|
+
getChildrenOfPlanComponent(componentRuntimeId: number, onlyPossible?: boolean, onlyVisible?: boolean): Promise<{
|
|
628
|
+
tags: any;
|
|
629
|
+
defaultChild: UiPossibleChild;
|
|
630
|
+
}>;
|
|
631
|
+
/**
|
|
632
|
+
* Returns all possible children and the default child for the plan object
|
|
633
|
+
* @param onlyPossible: boolean true if you only want possibleChildren
|
|
634
|
+
* @param onlyVisible: boolean true if you only want visible children
|
|
635
|
+
*/
|
|
636
|
+
getChildrenOfPlanObject(onlyPossible?: boolean, onlyVisible?: boolean): Promise<{
|
|
625
637
|
tags: any;
|
|
626
638
|
defaultChild: UiPossibleChild;
|
|
627
639
|
}>;
|
|
@@ -3,6 +3,7 @@ import { SceneEventInfo } from '../webgl/configurator-scene-event-handler';
|
|
|
3
3
|
import EventDispatcher from './event-dispatcher';
|
|
4
4
|
export declare const enum OBJECT_EVENT {
|
|
5
5
|
CLICK = "select",
|
|
6
|
+
DOUBLE_CLICK = "double_click",
|
|
6
7
|
HOVER_ON = "hover_on",
|
|
7
8
|
HOVER_OFF = "hover_off",
|
|
8
9
|
HOVER_MOVE = "hover_move",
|
|
@@ -12,10 +12,7 @@ export declare const enum SCENE_EVENT {
|
|
|
12
12
|
DRAG_END = 6,
|
|
13
13
|
CLICK_PREVIEW = 7,
|
|
14
14
|
SELECT_COMPONENT = 8,
|
|
15
|
-
DESELECT_COMPONENT = 9
|
|
16
|
-
DRAW = 10,
|
|
17
|
-
DRAWING_START = 11,
|
|
18
|
-
DRAWING_END = 12
|
|
15
|
+
DESELECT_COMPONENT = 9
|
|
19
16
|
}
|
|
20
17
|
export declare class SceneEventInfo {
|
|
21
18
|
component: RoomleComponent;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PlanObject } from '../../typings/planner';
|
|
2
2
|
import { RapiItem } from '../../typings/rapi-types';
|
|
3
|
+
import { PlanElementType } from '../../typings/planner-kernel-container';
|
|
3
4
|
export declare const PLAN_OBJECT_ROTATION: number;
|
|
4
|
-
export declare const createPlanObject: () => PlanObject;
|
|
5
|
+
export declare const createPlanObject: (type?: PlanElementType) => PlanObject;
|
|
5
6
|
export declare const getRapiItem: () => RapiItem;
|
|
6
7
|
export declare const MOCK_RUNTIME_COMPONENTID = 49;
|
|
7
8
|
export declare const MOCK_MESHID = "adidas-focs:ShelfTable_Table_Large_Metall";
|
|
@@ -14,6 +14,7 @@ import { DynamicLightSettingSource } from '../../common-core/src/lightsetting/dy
|
|
|
14
14
|
import { KernelParameter, KernelPartList, UiPlanObject } from '../../typings/kernel';
|
|
15
15
|
import UnitFormatter from '../../configurator-core/src/services/unit-formatter';
|
|
16
16
|
import RoomleConfigurator from '../../configurator-core/src/roomle-configurator';
|
|
17
|
+
import { PlannerKernelContainer } from '../../typings/planner-kernel-container';
|
|
17
18
|
export interface RoomlePlannerCallback {
|
|
18
19
|
switchToConfigurator: () => Promise<Configurator>;
|
|
19
20
|
switchToViewer: () => Promise<GlbViewer>;
|
|
@@ -210,4 +211,8 @@ export default class RoomlePlanner implements KernelAccessCallbackI, RoomlePlann
|
|
|
210
211
|
* returns unit formatter for formatting input und output values in scene
|
|
211
212
|
*/
|
|
212
213
|
getUnitFormatter(): UnitFormatter;
|
|
214
|
+
/**
|
|
215
|
+
* @returns an object which has all type constants from Roomle Core (C/C++)
|
|
216
|
+
*/
|
|
217
|
+
get PlannerCoreTypes(): PlannerKernelContainer;
|
|
213
218
|
}
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import { PlanObject } from '../../../typings/planner';
|
|
2
2
|
import PlanElementViewModel from '../../../common-core/src/view-model/plan-element-view-model';
|
|
3
3
|
export default class NodePlanElementViewModel extends PlanElementViewModel {
|
|
4
|
+
private _topView;
|
|
5
|
+
private _nodeUiMesh;
|
|
6
|
+
private _sphere;
|
|
7
|
+
private _innerRingMesh;
|
|
8
|
+
private _outerRingMesh;
|
|
4
9
|
constructor(planObject: PlanObject);
|
|
5
|
-
|
|
10
|
+
update(): void;
|
|
11
|
+
private _initNodeMesh;
|
|
12
|
+
setTopView(enabled: boolean): void;
|
|
13
|
+
getSize(): THREE.Vector3;
|
|
14
|
+
show(): void;
|
|
15
|
+
hide(): void;
|
|
16
|
+
select(): void;
|
|
17
|
+
deselect(): void;
|
|
18
|
+
hoverOn(): void;
|
|
19
|
+
hoverOff(): void;
|
|
6
20
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import PlanObjectViewModel from '../../../common-core/src/view-model/plan-object-view-model';
|
|
2
1
|
import { Plan, PlanElement } from '../../../typings/planner';
|
|
3
2
|
import { PlannerKernelCallbackI } from '../services/planner-kernel-access';
|
|
4
3
|
import { RoomleComponent } from '../../../common-core/src/webgl/roomle-component-factory';
|
|
@@ -11,9 +10,10 @@ import WallPlanElementViewModel from './wall-plan-element-view-model';
|
|
|
11
10
|
import PlanElementViewModel from '../../../common-core/src/view-model/plan-element-view-model';
|
|
12
11
|
import MeshGenerator from '../../../common-core/src/webgl/mesh-generator';
|
|
13
12
|
import { CAMERA_TYPE } from '../../../common-core/src/cameracontrol/camera-type';
|
|
13
|
+
import NodePlanElementViewModel from './node-plan-element-view-model';
|
|
14
14
|
export declare const GROUP_CONSTRUCTION = "Construction";
|
|
15
15
|
export declare const GROUP_CEILING = "Ceiling";
|
|
16
|
-
export declare const GROUP_FLOOR = "
|
|
16
|
+
export declare const GROUP_FLOOR = "Floor";
|
|
17
17
|
export default class PlanViewModel extends ConfiguratorViewModel implements PlannerKernelCallbackI {
|
|
18
18
|
private _plannerMeshGenerator;
|
|
19
19
|
private _roomlePlannerUiCallback;
|
|
@@ -21,6 +21,7 @@ export default class PlanViewModel extends ConfiguratorViewModel implements Plan
|
|
|
21
21
|
private _configurablePlanObjectViewModels;
|
|
22
22
|
private _staticPlanObjectViewModels;
|
|
23
23
|
private _wallPlanObjectViewModels;
|
|
24
|
+
private _nodePlanObjectViewModels;
|
|
24
25
|
private _constructionGroup;
|
|
25
26
|
private _ceilingGroup;
|
|
26
27
|
private _floorGroup;
|
|
@@ -34,7 +35,7 @@ export default class PlanViewModel extends ConfiguratorViewModel implements Plan
|
|
|
34
35
|
addPlanElementViewModel(planElementViewModel: PlanElementViewModel): void;
|
|
35
36
|
protected _addRootComponent(component: RoomleComponent): void;
|
|
36
37
|
private _getPlanObjectViewModelForRuntimeId;
|
|
37
|
-
getPlanObjectForId(id: number):
|
|
38
|
+
getPlanObjectForId(id: number): PlanElementViewModel;
|
|
38
39
|
getConstructionGroup(): THREE.Group;
|
|
39
40
|
getCeilingGroup(): THREE.Group;
|
|
40
41
|
getFloorGroup(): THREE.Group;
|
|
@@ -56,6 +57,7 @@ export default class PlanViewModel extends ConfiguratorViewModel implements Plan
|
|
|
56
57
|
getStaticPlanObjectViewModels(): StaticPlanObjectViewModel[];
|
|
57
58
|
getConfigurablePlanObjectViewModels(): ConfiguratorPlanObjectViewModel[];
|
|
58
59
|
getWallPlanObjectViewModels(): WallPlanElementViewModel[];
|
|
60
|
+
getNodePlanObjectViewModels(): NodePlanElementViewModel[];
|
|
59
61
|
protected _generateMesh(runtimeComponentId: number, geometryId: string, material: any, vertices: Int32Array, indices: Int32Array, uvCoords: Float32Array, normals: Float32Array, type?: KernelEnum, newGeometryInstance?: boolean): THREE.Mesh;
|
|
60
62
|
protected _setMaterial(mesh: THREE.Mesh, material: any, _type?: KernelEnum): void;
|
|
61
63
|
Editor3dComponentCreated(id: number, position: KernelVector3, eulerAngles: KernelVector3, parentObjectRuntimeId: number, isRootComponent: boolean): void;
|
|
@@ -8,7 +8,17 @@ import { PlanInteractionHandler } from '../../../typings/planner';
|
|
|
8
8
|
export declare const enum PLANNER_SCENE_EVENT {
|
|
9
9
|
SELECT_PLAN_ELEMENT = 0,
|
|
10
10
|
DESELECT_PLAN_ELEMENT = 1,
|
|
11
|
-
STATE_CHANGED = 2
|
|
11
|
+
STATE_CHANGED = 2,
|
|
12
|
+
HOVER_ON = 3,
|
|
13
|
+
HOVER_OFF = 4,
|
|
14
|
+
DRAW = 5,
|
|
15
|
+
DRAWING_START = 6,
|
|
16
|
+
DRAWING_END = 7,
|
|
17
|
+
DRAG_START = 8,
|
|
18
|
+
DRAG_MOVE = 9,
|
|
19
|
+
DRAG_END = 10,
|
|
20
|
+
INTERACTION = 11,
|
|
21
|
+
CLICK_OUTSIDE = 12
|
|
12
22
|
}
|
|
13
23
|
export declare const enum PLANNER_SCENE_EVENT_STATE {
|
|
14
24
|
IDLE = 0,
|
|
@@ -40,10 +50,12 @@ export default class PlannerSceneEventHandler extends SceneEventHandler<SceneEve
|
|
|
40
50
|
private _draggedObject;
|
|
41
51
|
private _hoveredObject;
|
|
42
52
|
private _position;
|
|
53
|
+
private _isDrawingEnabled;
|
|
43
54
|
private _isCurrentlyDrawing;
|
|
44
55
|
private _state;
|
|
45
56
|
private _point;
|
|
46
57
|
private isSnappingActive;
|
|
58
|
+
private _floorDrawingPlane;
|
|
47
59
|
constructor(creator: string, scene: THREE.Scene, camera: THREE.Camera, inputManager: InputManager);
|
|
48
60
|
disable(): void;
|
|
49
61
|
get planInteractionHandler(): PlanInteractionHandler;
|
|
@@ -55,7 +67,9 @@ export default class PlannerSceneEventHandler extends SceneEventHandler<SceneEve
|
|
|
55
67
|
addWallHandlers(planElementViewModel: PlanElementViewModel): void;
|
|
56
68
|
private _addPlanObjectHandlers;
|
|
57
69
|
private _addPlanElementHandlers;
|
|
70
|
+
private _createFloorMeshWithHandler;
|
|
58
71
|
private _clickElement;
|
|
72
|
+
private _doubleClickElement;
|
|
59
73
|
private _hoverOn;
|
|
60
74
|
private _hoverOff;
|
|
61
75
|
private _setCursor;
|
|
@@ -78,14 +92,14 @@ export default class PlannerSceneEventHandler extends SceneEventHandler<SceneEve
|
|
|
78
92
|
addComponentDragInHandler(planViewModel: PlanElementViewModel): void;
|
|
79
93
|
enableSnapping(): void;
|
|
80
94
|
disableSnapping(): void;
|
|
81
|
-
enableWallDrawing():
|
|
82
|
-
cancelWallDrawing():
|
|
95
|
+
enableWallDrawing(): THREE.Mesh;
|
|
96
|
+
cancelWallDrawing(): THREE.Mesh;
|
|
83
97
|
escapeDrawing(): void;
|
|
84
98
|
private _toggleDrawing;
|
|
85
99
|
private _endWallDrawing;
|
|
86
100
|
private _startWallDrawing;
|
|
87
101
|
private _drawWallOnMouseMove;
|
|
88
102
|
private _createNode;
|
|
89
|
-
private
|
|
103
|
+
private _getIntersectionPointWithScene;
|
|
90
104
|
private _setStateAndCursor;
|
|
91
105
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type Values<T> = T[keyof T];
|
|
@@ -107,6 +107,7 @@ export interface UiPossibleChild extends RapiElement {
|
|
|
107
107
|
isItem: boolean;
|
|
108
108
|
isComponent: boolean;
|
|
109
109
|
group: string;
|
|
110
|
+
possible: boolean;
|
|
110
111
|
}
|
|
111
112
|
export interface UiPossibleChildTag extends RapiTag {
|
|
112
113
|
possibleChildren: UiPossibleChild[];
|
|
@@ -321,7 +322,10 @@ export interface ConfiguratorKernelClass {
|
|
|
321
322
|
getComponentId(componentId: number): RapiId;
|
|
322
323
|
getPlanObject(planObjectId: number): PlanObject;
|
|
323
324
|
getPlanComponentPossibleChildren(componentId: number): KernelPossibleChild[];
|
|
325
|
+
getChildrenOfPlanComponent(componentId: number, onlyPossible: boolean, onlyVisible: boolean): KernelPossibleChild[];
|
|
326
|
+
getChildrenOfPlanObject(planObjectId: number, onlyPossible: boolean, onlyVisible: boolean): KernelPossibleChild[];
|
|
324
327
|
getPlanObjectPossibleChildren(componentId: number): KernelPossibleChild[];
|
|
328
|
+
getPlanObjectChildren(planObjectId: number, onlyPossible: boolean, onlyVisible: boolean): KernelPossibleChild[];
|
|
325
329
|
getRootPlanComponentIdFromObjectId(planObjectId: number): number;
|
|
326
330
|
getFullPartList(): KernelPartList;
|
|
327
331
|
getSerializedConfiguration(planObjectOrComponentId: number): ConfigurationString;
|