@roomle/web-sdk 2.91.0 → 2.92.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-115e3392.js → banana-for-scale-13feb618.js} +2 -2
- package/lib/{banana-for-scale-115e3392.js.map → banana-for-scale-13feb618.js.map} +1 -1
- package/lib/{banana-for-scale-5f4571dc.nomodule.js → banana-for-scale-442a88ff.nomodule.js} +2 -2
- package/lib/{banana-for-scale-5f4571dc.nomodule.js.map → banana-for-scale-442a88ff.nomodule.js.map} +1 -1
- package/lib/camera-behaviour-c04ea122.nomodule.js +2 -0
- package/lib/{camera-behaviour-4529f941.nomodule.js.map → camera-behaviour-c04ea122.nomodule.js.map} +1 -1
- package/lib/camera-behaviour-fc28ffa2.js +2 -0
- package/lib/{camera-behaviour-6655dd85.js.map → camera-behaviour-fc28ffa2.js.map} +1 -1
- package/lib/{component-dimensioning-6b14c702.nomodule.js → component-dimensioning-883b127b.nomodule.js} +2 -2
- package/lib/component-dimensioning-883b127b.nomodule.js.map +1 -0
- package/lib/{component-dimensioning-b6155a8d.js → component-dimensioning-8f56f4c1.js} +2 -2
- package/lib/component-dimensioning-8f56f4c1.js.map +1 -0
- package/lib/{component-raycast-helper-e668cdce.js → component-raycast-helper-2b452782.js} +2 -2
- package/lib/component-raycast-helper-2b452782.js.map +1 -0
- package/lib/{component-raycast-helper-432fc0eb.nomodule.js → component-raycast-helper-7d7969eb.nomodule.js} +2 -2
- package/lib/component-raycast-helper-7d7969eb.nomodule.js.map +1 -0
- package/lib/{configurator-d025bec5.js → configurator-9451c4c5.js} +2 -2
- package/lib/configurator-9451c4c5.js.map +1 -0
- package/lib/{configurator-58b9f93a.nomodule.js → configurator-a27d2c7c.nomodule.js} +2 -2
- package/lib/configurator-a27d2c7c.nomodule.js.map +1 -0
- package/lib/configurator-main-ef2e46fa.js +2 -0
- package/lib/configurator-main-ef2e46fa.js.map +1 -0
- package/lib/configurator-main.nomodule.js +1 -1
- package/lib/{continuous-drawing-helper-cddf72fb.nomodule.js → continuous-drawing-helper-73df9c05.nomodule.js} +2 -2
- package/lib/continuous-drawing-helper-73df9c05.nomodule.js.map +1 -0
- package/lib/{continuous-drawing-helper-6feb7326.js → continuous-drawing-helper-82540edf.js} +2 -2
- package/lib/continuous-drawing-helper-82540edf.js.map +1 -0
- package/lib/{default-light-setting-5d41bac3.js → default-light-setting-bc814c91.js} +2 -2
- package/lib/default-light-setting-bc814c91.js.map +1 -0
- package/lib/{default-light-setting-06a8234c.nomodule.js → default-light-setting-c2f9aa52.nomodule.js} +2 -2
- package/lib/default-light-setting-c2f9aa52.nomodule.js.map +1 -0
- package/lib/definitions/common-core/mock/kernel-instances.d.ts +126 -1
- package/lib/definitions/packages/common-core/mock/kernel-instances.d.ts +126 -1
- package/lib/definitions/packages/planner-core/src/external-object-api-callbacks.d.ts +6 -0
- package/lib/definitions/packages/planner-core/src/external-object-api.d.ts +2 -1
- package/lib/definitions/packages/planner-core/src/roomle-planner-ui-callback.d.ts +4 -0
- package/lib/definitions/packages/planner-core/src/roomle-planner.d.ts +1 -1
- package/lib/definitions/packages/planner-core/src/services/planner-kernel-access.d.ts +2 -0
- package/lib/definitions/packages/planner-core/src/view-model/plan-view-model.d.ts +2 -1
- package/lib/definitions/packages/typings/kernel.d.ts +3 -0
- package/lib/definitions/packages/typings/planner.d.ts +2 -1
- package/lib/definitions/planner-core/src/external-object-api-callbacks.d.ts +6 -0
- package/lib/definitions/planner-core/src/external-object-api.d.ts +2 -1
- package/lib/definitions/planner-core/src/roomle-planner-ui-callback.d.ts +4 -0
- package/lib/definitions/planner-core/src/roomle-planner.d.ts +1 -1
- package/lib/definitions/planner-core/src/services/planner-kernel-access.d.ts +2 -0
- package/lib/definitions/planner-core/src/view-model/plan-view-model.d.ts +2 -1
- package/lib/definitions/typings/kernel.d.ts +3 -0
- package/lib/definitions/typings/planner.d.ts +2 -1
- package/lib/{dimensioning-helper-187f03bc.nomodule.js → dimensioning-helper-3b156a60.nomodule.js} +2 -2
- package/lib/dimensioning-helper-3b156a60.nomodule.js.map +1 -0
- package/lib/{dimensioning-helper-bd95e7e5.js → dimensioning-helper-6e693058.js} +2 -2
- package/lib/{dimensioning-helper-bd95e7e5.js.map → dimensioning-helper-6e693058.js.map} +1 -1
- package/lib/{glb-viewer-5003c354.js → glb-viewer-2137918c.js} +2 -2
- package/lib/{glb-viewer-5003c354.js.map → glb-viewer-2137918c.js.map} +1 -1
- package/lib/{glb-viewer-2aabd773.nomodule.js → glb-viewer-666fc8ad.nomodule.js} +2 -2
- package/lib/{glb-viewer-2aabd773.nomodule.js.map → glb-viewer-666fc8ad.nomodule.js.map} +1 -1
- package/lib/{glb-viewer-camera-behaviour-23d16e7b.nomodule.js → glb-viewer-camera-behaviour-055c3f60.nomodule.js} +2 -2
- package/lib/glb-viewer-camera-behaviour-055c3f60.nomodule.js.map +1 -0
- package/lib/{glb-viewer-camera-behaviour-bae641ed.js → glb-viewer-camera-behaviour-c6aefcf9.js} +2 -2
- package/lib/glb-viewer-camera-behaviour-c6aefcf9.js.map +1 -0
- package/lib/glb-viewer-main-da7a1daf.js +2 -0
- package/lib/glb-viewer-main-da7a1daf.js.map +1 -0
- package/lib/glb-viewer-main.nomodule.js +1 -1
- package/lib/legacy/{banana-for-scale-ffdc3d10.legacy.js → banana-for-scale-110065d9.legacy.js} +2 -2
- package/lib/legacy/{banana-for-scale-ffdc3d10.legacy.js.map → banana-for-scale-110065d9.legacy.js.map} +1 -1
- package/lib/legacy/camera-behaviour-983f4494.legacy.js +2 -0
- package/lib/legacy/{camera-behaviour-3168ac2d.legacy.js.map → camera-behaviour-983f4494.legacy.js.map} +1 -1
- package/lib/legacy/{component-dimensioning-e20be0de.legacy.js → component-dimensioning-c9a20149.legacy.js} +2 -2
- package/lib/legacy/component-dimensioning-c9a20149.legacy.js.map +1 -0
- package/lib/legacy/{component-raycast-helper-67d32d48.legacy.js → component-raycast-helper-e0bf3625.legacy.js} +2 -2
- package/lib/legacy/component-raycast-helper-e0bf3625.legacy.js.map +1 -0
- package/lib/legacy/{configurator-33c3031e.legacy.js → configurator-390a4d29.legacy.js} +2 -2
- package/lib/legacy/configurator-390a4d29.legacy.js.map +1 -0
- package/lib/legacy/configurator-main.legacy.js +1 -1
- package/lib/legacy/{continuous-drawing-helper-6882d797.legacy.js → continuous-drawing-helper-74abd278.legacy.js} +2 -2
- package/lib/legacy/continuous-drawing-helper-74abd278.legacy.js.map +1 -0
- package/lib/legacy/{default-light-setting-f3355244.legacy.js → default-light-setting-43c8819e.legacy.js} +2 -2
- package/lib/legacy/default-light-setting-43c8819e.legacy.js.map +1 -0
- package/lib/legacy/{dimensioning-helper-6b992e8e.legacy.js → dimensioning-helper-4c94ad1e.legacy.js} +2 -2
- package/lib/legacy/dimensioning-helper-4c94ad1e.legacy.js.map +1 -0
- package/lib/legacy/{glb-viewer-8fe0ea1a.legacy.js → glb-viewer-a32f5731.legacy.js} +2 -2
- package/lib/legacy/{glb-viewer-8fe0ea1a.legacy.js.map → glb-viewer-a32f5731.legacy.js.map} +1 -1
- package/lib/legacy/{glb-viewer-camera-behaviour-c9764576.legacy.js → glb-viewer-camera-behaviour-9bb34932.legacy.js} +2 -2
- package/lib/legacy/glb-viewer-camera-behaviour-9bb34932.legacy.js.map +1 -0
- package/lib/legacy/glb-viewer-main.legacy.js +1 -1
- package/lib/legacy/{material-viewer-b98269f0.legacy.js → material-viewer-2f835286.legacy.js} +2 -2
- package/lib/legacy/material-viewer-2f835286.legacy.js.map +1 -0
- package/lib/legacy/material-viewer-main.legacy.js +1 -1
- package/lib/legacy/{planner-c1965352.legacy.js → planner-2b665067.legacy.js} +2 -2
- package/lib/legacy/{planner-c1965352.legacy.js.map → planner-2b665067.legacy.js.map} +1 -1
- package/lib/legacy/planner-main.legacy.js +1 -1
- package/lib/legacy/roomle-configurator-67484a39.legacy.js +2 -0
- package/lib/legacy/roomle-configurator-67484a39.legacy.js.map +1 -0
- package/lib/legacy/{roomle-dependency-injection-fb20931f.legacy.js → roomle-dependency-injection-cd60042a.legacy.js} +3 -3
- package/lib/legacy/{roomle-dependency-injection-fb20931f.legacy.js.map → roomle-dependency-injection-cd60042a.legacy.js.map} +1 -1
- package/lib/legacy/roomle-sdk.legacy.js +1 -1
- package/lib/legacy/{script-loader-d21d8f18.legacy.js → script-loader-69a7b1da.legacy.js} +2 -2
- package/lib/legacy/script-loader-69a7b1da.legacy.js.map +1 -0
- package/lib/legacy/static/ConfiguratorKernel-e132b04a27c3ee9c.wasm +0 -0
- package/lib/legacy/static/RoomleCore-7939bc06d0858f00.wasm +0 -0
- package/lib/legacy/static/RoomleToolsCore-12ca6b3033a10135.wasm +0 -0
- package/lib/legacy/static/{lato_regular_sub-d4b30187185acc59.json → lato_regular-16ba9d6f2866947d.json} +19 -0
- package/lib/{static/lato_regular-d4b30187185acc59.json → legacy/static/lato_regular_sub-9dd2262895ccc1a9.json} +19 -0
- package/lib/legacy/{stats-helper-6a4d2e9c.legacy.js → stats-helper-750768ee.legacy.js} +2 -2
- package/lib/legacy/stats-helper-750768ee.legacy.js.map +1 -0
- package/lib/legacy/{tools-core-7619dc34.legacy.js → tools-core-5b269778.legacy.js} +2 -2
- package/lib/legacy/tools-core-5b269778.legacy.js.map +1 -0
- package/lib/{material-viewer-c44154a7.nomodule.js → material-viewer-2efa371b.nomodule.js} +2 -2
- package/lib/material-viewer-2efa371b.nomodule.js.map +1 -0
- package/lib/{material-viewer-50ea432c.js → material-viewer-fe10e215.js} +2 -2
- package/lib/material-viewer-fe10e215.js.map +1 -0
- package/lib/material-viewer-main-35f26a9d.js +2 -0
- package/lib/material-viewer-main-35f26a9d.js.map +1 -0
- package/lib/material-viewer-main.nomodule.js +1 -1
- package/lib/{planner-d275c381.nomodule.js → planner-4a43385b.nomodule.js} +2 -2
- package/lib/{planner-d275c381.nomodule.js.map → planner-4a43385b.nomodule.js.map} +1 -1
- package/lib/{planner-1093f2f0.js → planner-de023666.js} +2 -2
- package/lib/{planner-1093f2f0.js.map → planner-de023666.js.map} +1 -1
- package/lib/planner-main-bdfddd75.js +2 -0
- package/lib/planner-main-bdfddd75.js.map +1 -0
- package/lib/planner-main.nomodule.js +1 -1
- package/lib/roomle-configurator-f18faa9f.nomodule.js +2 -0
- package/lib/roomle-configurator-f18faa9f.nomodule.js.map +1 -0
- package/lib/roomle-configurator-f44dea1e.js +2 -0
- package/lib/roomle-configurator-f44dea1e.js.map +1 -0
- package/lib/{roomle-dependency-injection-63fb4571.nomodule.js → roomle-dependency-injection-893517a6.nomodule.js} +3 -3
- package/lib/{roomle-dependency-injection-63fb4571.nomodule.js.map → roomle-dependency-injection-893517a6.nomodule.js.map} +1 -1
- package/lib/{roomle-dependency-injection-35a6999d.js → roomle-dependency-injection-9242f5d6.js} +3 -3
- package/lib/{roomle-dependency-injection-35a6999d.js.map → roomle-dependency-injection-9242f5d6.js.map} +1 -1
- package/lib/{roomle-sdk-eb140454.js → roomle-sdk-3e796e13.js} +2 -2
- package/lib/roomle-sdk-3e796e13.js.map +1 -0
- package/lib/roomle-sdk.nomodule.js +1 -1
- package/lib/{script-loader-063584f8.js → script-loader-b968d839.js} +2 -2
- package/lib/script-loader-b968d839.js.map +1 -0
- package/lib/{script-loader-9a32dfe3.nomodule.js → script-loader-e352706c.nomodule.js} +2 -2
- package/lib/script-loader-e352706c.nomodule.js.map +1 -0
- package/lib/static/ConfiguratorKernel-e132b04a27c3ee9c.wasm +0 -0
- package/lib/static/RoomleCore-7939bc06d0858f00.wasm +0 -0
- package/lib/static/RoomleToolsCore-12ca6b3033a10135.wasm +0 -0
- package/lib/static/{lato_regular_sub-d4b30187185acc59.json → lato_regular-16ba9d6f2866947d.json} +19 -0
- package/lib/{legacy/static/lato_regular-d4b30187185acc59.json → static/lato_regular_sub-9dd2262895ccc1a9.json} +19 -0
- package/lib/{stats-helper-f8bfd8cf.nomodule.js → stats-helper-36ce3dff.nomodule.js} +2 -2
- package/lib/stats-helper-36ce3dff.nomodule.js.map +1 -0
- package/lib/{stats-helper-7266bf37.js → stats-helper-ad318a94.js} +2 -2
- package/lib/stats-helper-ad318a94.js.map +1 -0
- package/lib/{tools-core-785085ab.js → tools-core-3b6364e3.js} +2 -2
- package/lib/tools-core-3b6364e3.js.map +1 -0
- package/lib/{tools-core-596d932f.nomodule.js → tools-core-e2be15e3.nomodule.js} +2 -2
- package/lib/tools-core-e2be15e3.nomodule.js.map +1 -0
- package/package.json +2 -2
- package/lib/camera-behaviour-4529f941.nomodule.js +0 -2
- package/lib/camera-behaviour-6655dd85.js +0 -2
- package/lib/component-dimensioning-6b14c702.nomodule.js.map +0 -1
- package/lib/component-dimensioning-b6155a8d.js.map +0 -1
- package/lib/component-raycast-helper-432fc0eb.nomodule.js.map +0 -1
- package/lib/component-raycast-helper-e668cdce.js.map +0 -1
- package/lib/configurator-58b9f93a.nomodule.js.map +0 -1
- package/lib/configurator-d025bec5.js.map +0 -1
- package/lib/configurator-main-edf9f78d.js +0 -2
- package/lib/configurator-main-edf9f78d.js.map +0 -1
- package/lib/continuous-drawing-helper-6feb7326.js.map +0 -1
- package/lib/continuous-drawing-helper-cddf72fb.nomodule.js.map +0 -1
- package/lib/default-light-setting-06a8234c.nomodule.js.map +0 -1
- package/lib/default-light-setting-5d41bac3.js.map +0 -1
- package/lib/dimensioning-helper-187f03bc.nomodule.js.map +0 -1
- package/lib/glb-viewer-camera-behaviour-23d16e7b.nomodule.js.map +0 -1
- package/lib/glb-viewer-camera-behaviour-bae641ed.js.map +0 -1
- package/lib/glb-viewer-main-bb26b108.js +0 -2
- package/lib/glb-viewer-main-bb26b108.js.map +0 -1
- package/lib/legacy/camera-behaviour-3168ac2d.legacy.js +0 -2
- package/lib/legacy/component-dimensioning-e20be0de.legacy.js.map +0 -1
- package/lib/legacy/component-raycast-helper-67d32d48.legacy.js.map +0 -1
- package/lib/legacy/configurator-33c3031e.legacy.js.map +0 -1
- package/lib/legacy/continuous-drawing-helper-6882d797.legacy.js.map +0 -1
- package/lib/legacy/default-light-setting-f3355244.legacy.js.map +0 -1
- package/lib/legacy/dimensioning-helper-6b992e8e.legacy.js.map +0 -1
- package/lib/legacy/glb-viewer-camera-behaviour-c9764576.legacy.js.map +0 -1
- package/lib/legacy/material-viewer-b98269f0.legacy.js.map +0 -1
- package/lib/legacy/roomle-configurator-c28abcdd.legacy.js +0 -2
- package/lib/legacy/roomle-configurator-c28abcdd.legacy.js.map +0 -1
- package/lib/legacy/script-loader-d21d8f18.legacy.js.map +0 -1
- package/lib/legacy/static/ConfiguratorKernel-6cce1141c9762c0a.wasm +0 -0
- package/lib/legacy/static/RoomleCore-54379d494811fbc5.wasm +0 -0
- package/lib/legacy/static/RoomleToolsCore-f3e17de54b500915.wasm +0 -0
- package/lib/legacy/stats-helper-6a4d2e9c.legacy.js.map +0 -1
- package/lib/legacy/tools-core-7619dc34.legacy.js.map +0 -1
- package/lib/material-viewer-50ea432c.js.map +0 -1
- package/lib/material-viewer-c44154a7.nomodule.js.map +0 -1
- package/lib/material-viewer-main-5a64b465.js +0 -2
- package/lib/material-viewer-main-5a64b465.js.map +0 -1
- package/lib/planner-main-46df17f4.js +0 -2
- package/lib/planner-main-46df17f4.js.map +0 -1
- package/lib/roomle-configurator-4478bdd2.js +0 -2
- package/lib/roomle-configurator-4478bdd2.js.map +0 -1
- package/lib/roomle-configurator-9c7e9859.nomodule.js +0 -2
- package/lib/roomle-configurator-9c7e9859.nomodule.js.map +0 -1
- package/lib/roomle-sdk-eb140454.js.map +0 -1
- package/lib/script-loader-063584f8.js.map +0 -1
- package/lib/script-loader-9a32dfe3.nomodule.js.map +0 -1
- package/lib/static/ConfiguratorKernel-6cce1141c9762c0a.wasm +0 -0
- package/lib/static/RoomleCore-54379d494811fbc5.wasm +0 -0
- package/lib/static/RoomleToolsCore-f3e17de54b500915.wasm +0 -0
- package/lib/stats-helper-7266bf37.js.map +0 -1
- package/lib/stats-helper-f8bfd8cf.nomodule.js.map +0 -1
- package/lib/tools-core-596d932f.nomodule.js.map +0 -1
- package/lib/tools-core-785085ab.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./roomle-dependency-injection-
|
|
1
|
+
System.register(["./roomle-dependency-injection-cd60042a.legacy.js","./main-thread-to-worker-7c2b8bc9.legacy.js"],(function(e,t){var a,r,n,o,i,s;return{setters:[function(e){a=e.b,r=e.D,n=e.R,o=e.aT,i=e.aU,s=e.aV},function(){}],execute:function(){e("default",class{static getConfigurator(e,a){return a=this._setupDI("configurator",e,a),new Promise((e,r)=>t.import("./configurator-390a4d29.legacy.js").then(({Configurator:t})=>e(new t(a)),r))}static getPlanner(e,a){return a=this._setupDI("planner",e,a),new Promise((e,r)=>t.import("./planner-2b665067.legacy.js").then(({Planner:t})=>e(new t(a)),r))}static async getGlbViewer(e,a){return a=this._setupDI("glb-viewer",e,a),new Promise((e,r)=>t.import("./glb-viewer-a32f5731.legacy.js").then(({GlbViewer:t})=>e(new t(a)),r))}static getMaterialViewer(e,a){return a=this._setupDI("configurator",e,a),new Promise((e,r)=>t.import("./material-viewer-2f835286.legacy.js").then(({MaterialViewer:t})=>e(new t(a)),r))}static getCoreTools(e,a){return a=this._setupDI("tools-core",e,a),new Promise((e,r)=>t.import("./tools-core-5b269778.legacy.js").then(({ToolsCore:t})=>{const r=new t(a);r.boot(),e(r)},r))}static getRapiAccess(){return a.addToContainer([new r("rapi-access",n,0),new r("global-callback",o,0)]),Promise.resolve(a.lookup("rapi-access"))}static get callbacks(){return a.addToContainer([new r("global-callback",o,0)]),Promise.resolve(a.lookup("global-callback"))}static setGlobalInitData(e){e&&(a.addToContainer([new r("global-init-data",i,0)]),a.lookup("global-init-data").setOverrides(e))}static getContext(e){return a.getContext(e)}static _setupDI(e,t,n){return t&&(a.addToContainer([new r("init-data",s,1)]),n||(n=a.getContext(e)),a.lookup("init-data",n).setOverrides(t)),n}})}}}));
|
|
2
2
|
//# sourceMappingURL=roomle-sdk.legacy.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./query-params-helper-aca6a1b1.legacy.js","./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=script-loader-
|
|
1
|
+
System.register(["./query-params-helper-aca6a1b1.legacy.js","./roomle-dependency-injection-cd60042a.legacy.js","./main-thread-to-worker-7c2b8bc9.legacy.js"],(function(e){var t,o,n,i,_,s,r;return{setters:[function(e){t=e.g},function(e){o=e.b,n=e.B,i=e.I,_=e._,s=e.i},function(e){r=e.g}],execute:function(){e("M",class{constructor(e){this._context=e||o.getContext(this.getContextName()),n.start("loadingTime")}_setupCommonGlobals(){window.__RML__DEBUG__||(window.__RML__DEBUG__={}),window.__RML__ENV__||(window.__RML__ENV__={},window.__RML__ENV__.assetPath||(window.__RML__ENV__.assetPath=""))}_setupCommonDependencies(){o.setup(i);const e=t();this.lookup("global-init-data").setOverrides(e),this.lookup("init-data",this._context).setOverrides(e)}_cleanUpCommonGlobals(){window.__RML__DEBUG__&&(window.__RML__DEBUG__.Kernel&&window.__RML__DEBUG__.Kernel.clearAll&&window.__RML__DEBUG__.Kernel.clearAll(),delete window.__RML__DEBUG__),delete window.__RML__ENV__;for(const e in window.THREE)if(window.hasOwnProperty(e))try{delete window.THREE[e]}catch(e){console.error(e)}window.THREE=void 0}_cleanUpCommonDependencies(){}boot(e){this._setupCommonGlobals(),this._setupCommonDependencies(),this.setupGlobals(e),this.setupDependencies(),this.bootFinished()}lookup(e,t){return window.__RML__DI__.lookup(e,t)}teardown(){this.cleanUpDependencies(),this._cleanUpCommonDependencies(),this.cleanUpGlobals(),this._cleanUpCommonGlobals(),window.__RML__DI__&&delete window.__RML__DI__}pause(){this.lookup("life-cycle-manager",this._context).pause(),window.TWEEN&&TWEEN.removeAll()}resume(e){e&&this.lookup("dom-helper",this._context).setDomElement(e),this.lookup("life-cycle-manager",this._context).resume()}destroy(){this.pause(),this.lookup("life-cycle-manager",this._context).destroy(),o.cleanUp(this._context)}getRapiAccess(){return this.lookup("rapi-access",this._context)}});let c={},l={};class a{constructor(e){this._creator_=e}fetch(e,t){return this._singlePromiseFactory.create(5,e,(o,i)=>{!function(e,t,o,i){if(-1===e.indexOf("http")&&(e=r()+e),c[e])return o();if(t.id&&l[t.id])return i(new Error('There is already a script with ID "'+t.id+'"'));n.start("load_"+t.id.replace(/-/g,"_"));const _=document.createElement("script");_.async=!1,_.src=e,_.id=t.id,_.onload=()=>{c[e]=!0,l[t.id]=!0,Object.defineProperty(o,"name",{value:"resolve-"+t.id}),o()},_.onerror=e=>{i(e)},document.body.appendChild(_)}(e,t,o,i)})}loadScripts(e){const t=[];return e.forEach(e=>{let o=this.fetch(e.name,{id:e.id});t.push(o)}),Promise.all(t)}cleanUp(){for(let e in l)if(l.hasOwnProperty(e)){const t=document.getElementById(e);t&&t.parentElement.removeChild(t)}c={},l={}}}e("S",a),_([s],a.prototype,"_singlePromiseFactory",void 0)}}}));
|
|
2
|
+
//# sourceMappingURL=script-loader-69a7b1da.legacy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"script-loader-69a7b1da.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -108,6 +108,25 @@
|
|
|
108
108
|
"x_max": 684,
|
|
109
109
|
"o": "m 215 601 q 263 648 238 627 q 318 684 289 669 q 379 707 347 699 q 449 715 411 715 q 550 695 506 715 q 624 641 594 676 q 669 557 653 606 q 684 448 684 508 l 684 0 l 560 0 l 560 448 q 523 572 560 528 q 413 616 487 616 q 310 590 358 616 q 222 518 263 563 l 222 0 l 98 0 l 98 703 l 172 703 q 205 678 199 703 l 215 601 z "
|
|
110
110
|
},
|
|
111
|
+
"x": {
|
|
112
|
+
"ha": 692,
|
|
113
|
+
"x_min": 16,
|
|
114
|
+
"x_max": 676,
|
|
115
|
+
"o": "m 676 0 l 557 0 q 533 8 542 0 q 519 26 524 16 l 342 301 q 336 282 339 292 q 327 265 333 273 l 163 26 q 148 8 156 16 q 126 0 140 0 l 16 0 l 263 361 l 26 703 l 144 703 q 167 699 160 703 q 179 685 174 694 l 352 421 q 369 460 358 441 l 521 682 q 534 698 527 692 q 552 703 542 703 l 666 703 l 429 367 l 676 0 z "
|
|
116
|
+
},
|
|
117
|
+
"(": {
|
|
118
|
+
"ha": 371,
|
|
119
|
+
"x_min": 63,
|
|
120
|
+
"x_max": 330,
|
|
121
|
+
"o": "m 170 437 q 208 148 170 288 q 319 -119 246 8 q 324 -152 330 -140 q 308 -170 319 -163 l 253 -203 q 165 -45 201 -124 q 106 113 128 33 q 73 272 83 192 q 63 437 63 352 q 73 601 63 521 q 106 761 83 682 q 165 918 128 840 q 253 1077 201 997 l 308 1043 q 324 1025 319 1036 q 319 992 330 1013 q 208 726 246 866 q 170 437 170 585 z "
|
|
122
|
+
},
|
|
123
|
+
")": {
|
|
124
|
+
"ha": 371,
|
|
125
|
+
"x_min": 44,
|
|
126
|
+
"x_max": 308,
|
|
127
|
+
"o": "m 201 437 q 163 726 201 585 q 52 992 125 866 q 45 1011 47 1003 q 46 1025 44 1019 q 52 1035 48 1031 q 63 1043 57 1040 l 117 1077 q 206 918 169 997 q 265 761 242 840 q 298 601 288 682 q 308 437 308 521 q 298 272 308 352 q 265 113 288 192 q 206 -45 242 33 q 117 -203 169 -124 l 63 -170 q 52 -162 57 -167 q 46 -152 48 -158 q 45 -137 44 -146 q 52 -119 47 -129 q 163 148 125 8 q 201 437 201 288 z "
|
|
128
|
+
},
|
|
129
|
+
|
|
111
130
|
"t": {
|
|
112
131
|
"ha": 498,
|
|
113
132
|
"x_min": 30,
|
|
@@ -60,6 +60,25 @@
|
|
|
60
60
|
"x_max": 719,
|
|
61
61
|
"o": "m 197 703 q 210 618 197 656 q 249 556 224 581 q 311 517 274 530 q 392 503 347 503 q 481 520 442 503 q 546 563 519 536 q 586 626 572 590 q 600 699 600 661 q 585 784 600 746 q 544 848 570 822 q 481 889 517 874 q 401 903 444 903 q 317 888 355 903 q 253 847 280 873 q 211 783 226 820 q 197 703 197 747 m 485 397 q 514 435 501 417 q 539 471 527 453 q 453 424 501 440 q 351 408 405 408 q 245 427 295 408 q 156 482 194 446 q 95 572 118 519 q 73 694 73 625 q 97 816 73 759 q 165 915 122 873 q 269 982 209 958 q 402 1006 330 1006 q 532 983 474 1006 q 632 917 590 959 q 696 815 674 874 q 719 685 719 756 q 711 603 719 642 q 688 527 703 565 q 651 454 673 490 q 603 379 630 417 l 360 29 q 335 8 351 16 q 297 0 318 0 l 183 0 l 485 397 z "
|
|
62
62
|
},
|
|
63
|
+
"x": {
|
|
64
|
+
"ha": 692,
|
|
65
|
+
"x_min": 16,
|
|
66
|
+
"x_max": 676,
|
|
67
|
+
"o": "m 676 0 l 557 0 q 533 8 542 0 q 519 26 524 16 l 342 301 q 336 282 339 292 q 327 265 333 273 l 163 26 q 148 8 156 16 q 126 0 140 0 l 16 0 l 263 361 l 26 703 l 144 703 q 167 699 160 703 q 179 685 174 694 l 352 421 q 369 460 358 441 l 521 682 q 534 698 527 692 q 552 703 542 703 l 666 703 l 429 367 l 676 0 z "
|
|
68
|
+
},
|
|
69
|
+
"(": {
|
|
70
|
+
"ha": 371,
|
|
71
|
+
"x_min": 63,
|
|
72
|
+
"x_max": 330,
|
|
73
|
+
"o": "m 170 437 q 208 148 170 288 q 319 -119 246 8 q 324 -152 330 -140 q 308 -170 319 -163 l 253 -203 q 165 -45 201 -124 q 106 113 128 33 q 73 272 83 192 q 63 437 63 352 q 73 601 63 521 q 106 761 83 682 q 165 918 128 840 q 253 1077 201 997 l 308 1043 q 324 1025 319 1036 q 319 992 330 1013 q 208 726 246 866 q 170 437 170 585 z "
|
|
74
|
+
},
|
|
75
|
+
")": {
|
|
76
|
+
"ha": 371,
|
|
77
|
+
"x_min": 44,
|
|
78
|
+
"x_max": 308,
|
|
79
|
+
"o": "m 201 437 q 163 726 201 585 q 52 992 125 866 q 45 1011 47 1003 q 46 1025 44 1019 q 52 1035 48 1031 q 63 1043 57 1040 l 117 1077 q 206 918 169 997 q 265 761 242 840 q 298 601 288 682 q 308 437 308 521 q 298 272 308 352 q 265 113 288 192 q 206 -45 242 33 q 117 -203 169 -124 l 63 -170 q 52 -162 57 -167 q 46 -152 48 -158 q 45 -137 44 -146 q 52 -119 47 -129 q 163 148 125 8 q 201 437 201 288 z "
|
|
80
|
+
},
|
|
81
|
+
|
|
63
82
|
" ": {
|
|
64
83
|
"ha": 356,
|
|
65
84
|
"x_min": 0,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./roomle-dependency-injection-
|
|
2
|
-
//# sourceMappingURL=stats-helper-
|
|
1
|
+
System.register(["./roomle-dependency-injection-cd60042a.legacy.js","./main-thread-to-worker-7c2b8bc9.legacy.js"],(function(e){var t,a;return{setters:[function(e){t=e._,a=e.i},function(){}],execute:function(){class s{constructor(){this._statPanels=[]}_init(){let e=new Stats;e.showPanel(0),e.dom.style.cssText="position:absolute;top:0px;left:0px;z-index:110;",document.body.appendChild(e.dom),this._statPanels.push(e);let t=new Stats;t.showPanel(2),t.dom.style.cssText="position:absolute;top:50px;left:0px;z-index:110;",document.body.appendChild(t.dom),this._statPanels.push(t);let a=new Stats;this._drawPanel=a.addPanel(new Stats.Panel("draw","#0f0","#000")),a.showPanel(3),a.dom.style.cssText="position:absolute;top:100px;left:0px;z-index:110;",document.body.appendChild(a.dom),this._statPanels.push(a);let s=new Stats;this._trianglesPanel=s.addPanel(new Stats.Panel("poly","#0f0","#000")),s.showPanel(3),s.dom.style.cssText="position:absolute;top:150px;left:0px;z-index:110;",document.body.appendChild(s.dom),this._statPanels.push(s);let n=new Stats;this._geometryPanel=n.addPanel(new Stats.Panel("geo","#f00","#000")),n.showPanel(3),n.dom.style.cssText="position:absolute;top:200px;left:0px;z-index:110;",document.body.appendChild(n.dom),this._statPanels.push(n);let l=new Stats;this._texturePanel=l.addPanel(new Stats.Panel("tex","#f00","#000")),l.showPanel(3),l.dom.style.cssText="position:absolute;top:250px;left:0px;z-index:110;",document.body.appendChild(l.dom),this._statPanels.push(l);let o=new Stats;this._materialPanel=o.addPanel(new Stats.Panel("mat","#f00","#000")),o.showPanel(3),o.dom.style.cssText="position:absolute;top:300px;left:0px;z-index:110;",document.body.appendChild(o.dom),this._statPanels.push(o);let d=new Stats;this._qualityPanel=d.addPanel(new Stats.Panel("quality","#fff","#000")),d.showPanel(3),d.dom.style.cssText="position:absolute;top:350px;left:0px;z-index:110;",document.body.appendChild(d.dom),this._statPanels.push(d)}updateRenderInfo(e){this._drawPanel&&e.render.calls>0&&this._drawPanel.update(e.render.calls,500),this._trianglesPanel&&e.render.triangles>0&&this._trianglesPanel.update(e.render.triangles,1e4),this._geometryPanel&&e.memory.geometries>0&&this._geometryPanel.update(e.memory.geometries,1e4),this._texturePanel&&e.memory.textures>0&&this._texturePanel.update(e.memory.textures,1e4),this._materialPanel&&this._cacheHolder.materialCache.size>0&&this._materialPanel.update(this._cacheHolder.materialCache.size,1e3),this._statPanels.length>0&&this._statPanels.forEach(e=>e.update())}updateQualityInfo(e){this._qualityPanel&&e&&this._qualityPanel.update(e.getQuality(),5)}}e("default",s),t([a],s.prototype,"_cacheHolder",void 0)}}}));
|
|
2
|
+
//# sourceMappingURL=stats-helper-750768ee.legacy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stats-helper-750768ee.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./script-loader-
|
|
2
|
-
//# sourceMappingURL=tools-core-
|
|
1
|
+
System.register(["./script-loader-69a7b1da.legacy.js","./roomle-dependency-injection-cd60042a.legacy.js","./query-params-helper-aca6a1b1.legacy.js","./main-thread-to-worker-7c2b8bc9.legacy.js"],(function(o){var e,t,s,n;return{setters:[function(o){e=o.S,t=o.M},function(o){s=o.D,n=o.b},function(){},function(){}],execute:function(){const l=[new s("script-loader",e)];o("ToolsCore",class extends t{setupGlobals(){}setupDependencies(){n.setup(l),this.lookup("logger",this._context)}cleanUpGlobals(){this._tools=void 0,window.RoomleToolsCore&&delete window.RoomleToolsCore}cleanUpDependencies(){const o=this.lookup("script-loader");o&&o.cleanUp()}bootFinished(){this._tools=this.lookup("roomle-tools-core",this._context),window.RoomleToolsCore||(window.RoomleToolsCore=this._tools)}getApi(){return this._tools}getContextName(){return"tools-core"}})}}}));
|
|
2
|
+
//# sourceMappingURL=tools-core-5b269778.legacy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-core-5b269778.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./script-loader-
|
|
2
|
-
//# sourceMappingURL=material-viewer-
|
|
1
|
+
System.register(["./script-loader-e352706c.nomodule.js","./roomle-dependency-injection-893517a6.nomodule.js","./camera-behaviour-c04ea122.nomodule.js","./main-thread-to-worker-2529fa31.nomodule.js","./query-params-helper-51a53f8c.nomodule.js"],(function(e){var t,a,i,r,s,n,o,l,h,_,m,c,d,g,u,p,M,C,w,y,f,v,b,S,P,x,F,G,I,U,R,T,k,A,B,D;return{setters:[function(e){t=e.S,a=e.M},function(e){i=e._,r=e.i,s=e.u,n=e.x,o=e.y,l=e.a7,h=e.aO,_=e.aP,m=e.ag,c=e.aQ,d=e.af,g=e.aR,u=e.D,p=e.L,M=e.aM,C=e.aS,w=e.R,y=e.b},function(e){f=e.b,v=e.S,b=e.B,S=e.C,P=e.F,x=e.T},function(e){F=e.aE,G=e.aP,I=e.z,U=e.C,R=e.ad,T=e.w,k=e.a7,A=e.aS,B=e.b9,D=e.a9},function(){}],execute:function(){class E extends f{get cameraControl(){return this._cameraControl}}class O extends v{constructor(e,t){super(e,t,s.RMV,F.CAMERA_3D),this._sceneParams={type:"cube"},this._materialParams={color:"#ffffff",metallic:.5,alpha:0,alphaCutoff:0,doubleSided:!1},this._renderer.capabilities.maxTextures>8&&this.loadDynamicLightSetting(n.createDynamicLightSettingSource(null,o.CAMERA)),this._initScene()}_initScene(){const e=new G(1,1,1,100,100,100),t=l.createMeshPhysicalMaterial({color:this._initData.colors.PRIMARY});this._setMaterial(t),this._mesh=new I(e,this._material),this._mesh.castShadow=!0,this._mesh.position.setY(.5),this._scene.add(this._mesh);const{initialFloorMaterial:a}=this._initData;if(a?this.changeFloorMaterialById(a):this._environment=new b(this._scene,null,new U(16777215)),this.cameraBehaviour.cameraControl instanceof S){const e=new R;e.setFromObject(this._mesh),console.trace("reset camera"),this.cameraBehaviour.cameraControl.updateAndReset(e)}this.showGUI()}loadMaterialId(e){return new Promise(t=>{this._configuratorMeshGenerator.loadMaterial(e,1e3,1e3).then(e=>{this._setMaterial(e),this._mesh.material=this._material,this._updateGUI(),this._requestRender(),t()})})}loadMaterial(e){return new Promise(t=>{e.__rapi_path__||(e.__rapi_path__="materials"),this._mesh.material=this._material,this._configuratorMeshGenerator.loadTextures(e,this._material,100,100).then(()=>{this._updateGUI(),this._requestRender()}),t()})}loadMaterialShading(e){return new Promise(t=>{let a={shading:e};this._setMaterial(h(this._material,a)),this._mesh.material=this._material,this._updateGUI(),this._requestRender(),t()})}resetMaterial(){this._initScene()}_setMaterial(e){this._material=e,this._materialParams.alpha=e.opacity,this._materialParams.alphaCutoff=e.alphaTest,this._materialParams.color="#"+e.color.getHexString(),this._materialParams.doubleSided=e.side===T,this._materialParams.metallic=1===e.metalness?1:e.reflectivity}getMaterialShading(e=1){return _(this._material,e)}createCameraControl(e,t){this._changeCameraBehaviour(new E(new S(this._creator_,this._getInputManager(),null),this._cameraBehaviourState))}_getInputManager(){return this._inputManager}sceneChanged(){}getBounds(){return this._mesh?(new R).setFromObject(this._mesh):null}getGeometryBounds(){return null}_guiLoaded(){this._updateGUI()}_updateGUI(){let e=m();e&&(this._guiGeometryFolder||(this._guiGeometryFolder=e.addFolder("Geometry"),this._guiGeometryFolder.add(this._sceneParams,"type",{Cube:"cube",Sphere:"sphere",PlaneVertical:"plane_vertical",PlaneHorizontal:"plane_horizontal"}).onChange(e=>{this._setGeometry()})),this._material&&(this._guiMaterialFolder&&e.removeFolder(this._guiMaterialFolder),this._guiMaterialFolder=e.addFolder("Material"),this._guiMaterialFolder.addColor(this._materialParams,"color").onChange(e=>{this._material.color=new U(e),this._shadingChanged()}),this._guiMaterialFolder.add(this._materialParams,"metallic").min(0).max(1).step(.01).onChange(e=>{this._material.metalness=1===e?1:.5,this._material.reflectivity=e||.5,this._shadingChanged()}),this._guiMaterialFolder.add(this._material,"roughness").min(0).max(1).step(.01).onChange(e=>{this._shadingChanged()}),this._guiMaterialFolder.add(this._material,"transmission").min(0).max(1).step(.01).onChange(e=>{this._material.transmission=e,e>0&&(this._material.opacity=1,this._material.alphaTest=.5,this._material.depthWrite=!1,this._material.transparent=!0,this._material.metalness=0),this._mesh.castShadow=!this._material.transparent,this._shadingChanged()}),this._guiMaterialFolder.add(this._materialParams,"alpha").min(0).max(1).step(.01).onChange(e=>{this._material.transparent=e<1,this._material.opacity=e,this._material.depthWrite=e>=1,this._mesh.castShadow=!this._material.transparent,this._shadingChanged()}),this._guiMaterialFolder.add(this._materialParams,"alphaCutoff").min(0).max(1).step(.01).onChange(e=>{this._material.alphaTest=e||0,this._shadingChanged()}),this._guiMaterialFolder.add(this._materialParams,"doubleSided").onChange(e=>{this._material.side=e?T:k,this._shadingChanged()})),this._addGUIListener(e))}_shadingChanged(){this._roomleMaterialViewerUiCallback.onMaterialShadingChanged(_(this._material))}setGeometry(e){this._sceneParams.type=e,this._setGeometry()}_setGeometry(){let e;"cube"===this._sceneParams.type&&(e=new G(1,1,1,100,100,100)),"sphere"===this._sceneParams.type&&(e=new A(.5,100,100)),"plane_horizontal"===this._sceneParams.type&&(e=new B(1,1),e.rotateX(-Math.PI/2)),"plane_vertical"===this._sceneParams.type&&(e=new B(1,1)),this._mesh.geometry=e,this._renderEverything()}async changeFloorMaterialById(e){const t=await this._rapiAccess.getMaterial(e);return this._environment&&this._environment instanceof P||(this._environment=new P(this._scene,this._environment,!0)),new Promise((e,a)=>{this._environment.changeFloorMaterial(t,this._maxAnisotropy).then(()=>{this._requestRender(),e()},a)})}async addTexture(e,t){const a=100/(0===e.mmWidth?1:e.mmWidth),i=100/(0===e.mmHeight?1:e.mmHeight);if(t){const r=new Image;r.src=t;const s=new D;s.image=r,r.onload=function(){s.needsUpdate=!0},c(s,e,this._material,this._maxAnisotropy,a,i,this._renderer.capabilities.maxTextures)}else await d(e.image,e,this._material,this._maxAnisotropy,a,i,this._renderer.capabilities.maxTextures);this._requestRender()}removeTexture(e){"ORM"===e.mapping&&(this._material.aoMap=null,this._material.roughnessMap=null,this._material.metalnessMap=null),"RGB"!==e.mapping&&"RGBA"!==e.mapping||(this._material.map=null),"XYZ"===e.mapping&&(this._material.normalMap=null),this._material.needsUpdate=!0,this._requestRender()}clearCache(){this._configuratorMeshGenerator.clear()}}i([r],O.prototype,"_inputManager",void 0),i([r],O.prototype,"_configuratorMeshGenerator",void 0),i([r],O.prototype,"_roomleMaterialViewerUiCallback",void 0),i([r],O.prototype,"_rapiAccess",void 0);class V{constructor(e){this._creator_=e}setCameraOffset(e){this._sceneManager.setCameraOffset(e)}getCameraOffset(){return this._sceneManager.getCameraOffset()}init(e){return this._domHelper.setDomElement(e),this._sceneManager?(this._lifeCycleManager.resume(),Promise.resolve()):new Promise(this._initPromiseCallback.bind(this))}_initPromiseCallback(e,t){Promise.all([this._scriptLoader.fetch(x,{id:"tween-js"})]).then(()=>{this._sceneManager=new O(this._creator_,{left:0,top:1,right:1,bottom:0}),this._sceneManager.enableHD(),e()})}get callbacks(){return this._roomleMaterialViewerUiCallback}set callbacks(e){this._roomleMaterialViewerUiCallback=e}loadMaterialShading(e){return this._sceneManager.loadMaterialShading(e)}resetMaterial(){this._sceneManager.resetMaterial()}loadMaterial(e,t={}){return t.flushCache&&this._clearCaches(),this._sceneManager.loadMaterial(e)}loadMaterialId(e,t={}){return t.flushCache&&this._clearCaches(),this._sceneManager.loadMaterialId(e)}getMaterialShading(e=1){return this._sceneManager.getMaterialShading(e)}loadSceneSetting(e){return this._sceneManager.loadSceneSettings(e)}setOverrides(e){e&&this._initData.setOverrides(e)}updateSize(){this._sceneManager.updateCamera()}getMain(){}resumeTest(e){this._domHelper.setDomElement(e),this._lifeCycleManager.resume()}pauseTest(){this._lifeCycleManager.pause()}showGUI(){this._sceneManager.showGUI()}async changeFloorMaterialById(e){return this._sceneManager.changeFloorMaterialById(e)}setGeometry(e){this._sceneManager.setGeometry(e)}async addTexture(e,t){return this._sceneManager.addTexture(e,t)}removeTexture(e){return this._sceneManager.removeTexture(e)}_clearCaches(){this._rapiAccess.cleanUp(),this._sceneManager.clearCache()}getScene(){return this._sceneManager.getScene()}updateScene(){this._sceneManager.updateScene()}getUnitFormatter(){return this._unitFormatter}getStorage(){return this._idbManager}setEnvironmentMap(e){const{url:t,intensity:a,rotation:i,maxLightSources:r}=e;this._sceneManager.setEnvironmentMap(t,a,i,r)}get globalCallbacks(){return this._globalCallback}}i([r],V.prototype,"_domHelper",void 0),i([r],V.prototype,"_scriptLoader",void 0),i([r],V.prototype,"_lifeCycleManager",void 0),i([r],V.prototype,"_roomleMaterialViewerUiCallback",void 0),i([r],V.prototype,"_initData",void 0),i([r],V.prototype,"_globalCallback",void 0),i([r],V.prototype,"_rapiAccess",void 0),i([r],V.prototype,"_unitFormatter",void 0),i([r],V.prototype,"_idbManager",void 0);const j=[new u("script-loader",t),new u("logger",p),new u("input-manager",M,1),new u("configurator-mesh-generator",C),new u("rapi-access",w),new u("roomle-material-viewer-ui-callback",class extends g{constructor(e){super(e),this.onMaterialShadingChanged=e=>{}}},1)];e("MaterialViewer",class extends a{setupGlobals(){}setupDependencies(){y.setup(j),this.lookup("logger",this._context)}cleanUpGlobals(){throw new Error("Method not implemented.")}cleanUpDependencies(){throw new Error("Method not implemented.")}bootFinished(){this._viewer=new V(this._context),window.RoomleMaterialViewer||(window.RoomleMaterialViewer=this._viewer)}getApi(){return this._viewer}getContextName(){return"material-viewer"}})}}}));
|
|
2
|
+
//# sourceMappingURL=material-viewer-2efa371b.nomodule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"material-viewer-2efa371b.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{S as ScriptLoader,M as Main}from"./script-loader-063584f8.js";import{_ as __decorate,i as inject,u as CANVAS_ID,x as DynamicLightSettingLoader,y as PREDEFINED_LIGHTSETTING,a7 as MaterialCreator,aO as setMaterial,aP as getMaterialShading,ag as getGUI,aQ as addExistingTexture,af as addTexture,aR as UiCallback,D as DependencyInjectionAssignment,L as Logger,aM as InputManager,aS as ConfiguratorMeshGenerator,R as RapiAccess,b as RoomleDependencyInjection}from"./roomle-dependency-injection-35a6999d.js";import{b as CameraBehaviour,S as SceneManager,B as BackgroundEnvironment,C as CameraControl3D,F as FloorEnvironment,T as TWEEN_FILE_NAME}from"./camera-behaviour-6655dd85.js";import{aE as CAMERA_TYPE,aP as BoxGeometry,z as Mesh,C as Color,ad as Box3,w as DoubleSide,a7 as FrontSide,aS as SphereGeometry,b9 as PlaneGeometry,a9 as Texture}from"./main-thread-to-worker-ee3036b3.js";import"./query-params-helper-c9492f35.js";class MaterialViewerCameraBehaviour extends CameraBehaviour{get cameraControl(){return this._cameraControl}}class MaterialViewerSceneManager extends SceneManager{constructor(e,a){super(e,a,CANVAS_ID.RMV,CAMERA_TYPE.CAMERA_3D),this._sceneParams={type:"cube"},this._materialParams={color:"#ffffff",metallic:.5,alpha:0,alphaCutoff:0,doubleSided:!1},this._renderer.capabilities.maxTextures>8&&this.loadDynamicLightSetting(DynamicLightSettingLoader.createDynamicLightSettingSource(null,PREDEFINED_LIGHTSETTING.CAMERA)),this._initScene()}_initScene(){const e=new BoxGeometry(1,1,1,100,100,100),a=MaterialCreator.createMeshPhysicalMaterial({color:this._initData.colors.PRIMARY});this._setMaterial(a),this._mesh=new Mesh(e,this._material),this._mesh.castShadow=!0,this._mesh.position.setY(.5),this._scene.add(this._mesh);const{initialFloorMaterial:t}=this._initData;if(t?this.changeFloorMaterialById(t):this._environment=new BackgroundEnvironment(this._scene,null,new Color(16777215)),this.cameraBehaviour.cameraControl instanceof CameraControl3D){const e=new Box3;e.setFromObject(this._mesh),console.trace("reset camera"),this.cameraBehaviour.cameraControl.updateAndReset(e)}this.showGUI()}loadMaterialId(e){return new Promise(a=>{this._configuratorMeshGenerator.loadMaterial(e,1e3,1e3).then(e=>{this._setMaterial(e),this._mesh.material=this._material,this._updateGUI(),this._requestRender(),a()})})}loadMaterial(e){return new Promise(a=>{e.__rapi_path__||(e.__rapi_path__="materials"),this._mesh.material=this._material,this._configuratorMeshGenerator.loadTextures(e,this._material,100,100).then(()=>{this._updateGUI(),this._requestRender()}),a()})}loadMaterialShading(e){return new Promise(a=>{let t={shading:e};this._setMaterial(setMaterial(this._material,t)),this._mesh.material=this._material,this._updateGUI(),this._requestRender(),a()})}resetMaterial(){this._initScene()}_setMaterial(e){this._material=e,this._materialParams.alpha=e.opacity,this._materialParams.alphaCutoff=e.alphaTest,this._materialParams.color="#"+e.color.getHexString(),this._materialParams.doubleSided=e.side===DoubleSide,this._materialParams.metallic=1===e.metalness?1:e.reflectivity}getMaterialShading(e=1){return getMaterialShading(this._material,e)}createCameraControl(e,a){this._changeCameraBehaviour(new MaterialViewerCameraBehaviour(new CameraControl3D(this._creator_,this._getInputManager(),null),this._cameraBehaviourState))}_getInputManager(){return this._inputManager}sceneChanged(){}getBounds(){return this._mesh?(new Box3).setFromObject(this._mesh):null}getGeometryBounds(){return null}_guiLoaded(){this._updateGUI()}_updateGUI(){let e=getGUI();e&&(this._guiGeometryFolder||(this._guiGeometryFolder=e.addFolder("Geometry"),this._guiGeometryFolder.add(this._sceneParams,"type",{Cube:"cube",Sphere:"sphere",PlaneVertical:"plane_vertical",PlaneHorizontal:"plane_horizontal"}).onChange(e=>{this._setGeometry()})),this._material&&(this._guiMaterialFolder&&e.removeFolder(this._guiMaterialFolder),this._guiMaterialFolder=e.addFolder("Material"),this._guiMaterialFolder.addColor(this._materialParams,"color").onChange(e=>{this._material.color=new Color(e),this._shadingChanged()}),this._guiMaterialFolder.add(this._materialParams,"metallic").min(0).max(1).step(.01).onChange(e=>{this._material.metalness=1===e?1:.5,this._material.reflectivity=e||.5,this._shadingChanged()}),this._guiMaterialFolder.add(this._material,"roughness").min(0).max(1).step(.01).onChange(e=>{this._shadingChanged()}),this._guiMaterialFolder.add(this._material,"transmission").min(0).max(1).step(.01).onChange(e=>{this._material.transmission=e,e>0&&(this._material.opacity=1,this._material.alphaTest=.5,this._material.depthWrite=!1,this._material.transparent=!0,this._material.metalness=0),this._mesh.castShadow=!this._material.transparent,this._shadingChanged()}),this._guiMaterialFolder.add(this._materialParams,"alpha").min(0).max(1).step(.01).onChange(e=>{this._material.transparent=e<1,this._material.opacity=e,this._material.depthWrite=e>=1,this._mesh.castShadow=!this._material.transparent,this._shadingChanged()}),this._guiMaterialFolder.add(this._materialParams,"alphaCutoff").min(0).max(1).step(.01).onChange(e=>{this._material.alphaTest=e||0,this._shadingChanged()}),this._guiMaterialFolder.add(this._materialParams,"doubleSided").onChange(e=>{this._material.side=e?DoubleSide:FrontSide,this._shadingChanged()})),this._addGUIListener(e))}_shadingChanged(){this._roomleMaterialViewerUiCallback.onMaterialShadingChanged(getMaterialShading(this._material))}setGeometry(e){this._sceneParams.type=e,this._setGeometry()}_setGeometry(){let e;"cube"===this._sceneParams.type&&(e=new BoxGeometry(1,1,1,100,100,100)),"sphere"===this._sceneParams.type&&(e=new SphereGeometry(.5,100,100)),"plane_horizontal"===this._sceneParams.type&&(e=new PlaneGeometry(1,1),e.rotateX(-Math.PI/2)),"plane_vertical"===this._sceneParams.type&&(e=new PlaneGeometry(1,1)),this._mesh.geometry=e,this._renderEverything()}async changeFloorMaterialById(e){const a=await this._rapiAccess.getMaterial(e);return this._environment&&this._environment instanceof FloorEnvironment||(this._environment=new FloorEnvironment(this._scene,this._environment,!0)),new Promise((e,t)=>{this._environment.changeFloorMaterial(a,this._maxAnisotropy).then(()=>{this._requestRender(),e()},t)})}async addTexture(e,a){const t=100/(0===e.mmWidth?1:e.mmWidth),r=100/(0===e.mmHeight?1:e.mmHeight);if(a){const i=new Image;i.src=a;const s=new Texture;s.image=i,i.onload=function(){s.needsUpdate=!0},addExistingTexture(s,e,this._material,this._maxAnisotropy,t,r,this._renderer.capabilities.maxTextures)}else await addTexture(e.image,e,this._material,this._maxAnisotropy,t,r,this._renderer.capabilities.maxTextures);this._requestRender()}removeTexture(e){"ORM"===e.mapping&&(this._material.aoMap=null,this._material.roughnessMap=null,this._material.metalnessMap=null),"RGB"!==e.mapping&&"RGBA"!==e.mapping||(this._material.map=null),"XYZ"===e.mapping&&(this._material.normalMap=null),this._material.needsUpdate=!0,this._requestRender()}clearCache(){this._configuratorMeshGenerator.clear()}}__decorate([inject],MaterialViewerSceneManager.prototype,"_inputManager",void 0),__decorate([inject],MaterialViewerSceneManager.prototype,"_configuratorMeshGenerator",void 0),__decorate([inject],MaterialViewerSceneManager.prototype,"_roomleMaterialViewerUiCallback",void 0),__decorate([inject],MaterialViewerSceneManager.prototype,"_rapiAccess",void 0);class RoomleMaterialViewer{constructor(e){this._creator_=e}setCameraOffset(e){this._sceneManager.setCameraOffset(e)}getCameraOffset(){return this._sceneManager.getCameraOffset()}init(e){return this._domHelper.setDomElement(e),this._sceneManager?(this._lifeCycleManager.resume(),Promise.resolve()):new Promise(this._initPromiseCallback.bind(this))}_initPromiseCallback(e,a){Promise.all([this._scriptLoader.fetch(TWEEN_FILE_NAME,{id:"tween-js"})]).then(()=>{this._sceneManager=new MaterialViewerSceneManager(this._creator_,{left:0,top:1,right:1,bottom:0}),this._sceneManager.enableHD(),e()})}get callbacks(){return this._roomleMaterialViewerUiCallback}set callbacks(e){this._roomleMaterialViewerUiCallback=e}loadMaterialShading(e){return this._sceneManager.loadMaterialShading(e)}resetMaterial(){this._sceneManager.resetMaterial()}loadMaterial(e,a={}){return a.flushCache&&this._clearCaches(),this._sceneManager.loadMaterial(e)}loadMaterialId(e,a={}){return a.flushCache&&this._clearCaches(),this._sceneManager.loadMaterialId(e)}getMaterialShading(e=1){return this._sceneManager.getMaterialShading(e)}loadSceneSetting(e){return this._sceneManager.loadSceneSettings(e)}setOverrides(e){e&&this._initData.setOverrides(e)}updateSize(){this._sceneManager.updateCamera()}getMain(){}resumeTest(e){this._domHelper.setDomElement(e),this._lifeCycleManager.resume()}pauseTest(){this._lifeCycleManager.pause()}showGUI(){this._sceneManager.showGUI()}async changeFloorMaterialById(e){return this._sceneManager.changeFloorMaterialById(e)}setGeometry(e){this._sceneManager.setGeometry(e)}async addTexture(e,a){return this._sceneManager.addTexture(e,a)}removeTexture(e){return this._sceneManager.removeTexture(e)}_clearCaches(){this._rapiAccess.cleanUp(),this._sceneManager.clearCache()}getScene(){return this._sceneManager.getScene()}updateScene(){this._sceneManager.updateScene()}getUnitFormatter(){return this._unitFormatter}getStorage(){return this._idbManager}setEnvironmentMap(e){const{url:a,intensity:t,rotation:r,maxLightSources:i}=e;this._sceneManager.setEnvironmentMap(a,t,r,i)}get globalCallbacks(){return this._globalCallback}}__decorate([inject],RoomleMaterialViewer.prototype,"_domHelper",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_scriptLoader",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_lifeCycleManager",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_roomleMaterialViewerUiCallback",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_initData",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_globalCallback",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_rapiAccess",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_unitFormatter",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_idbManager",void 0);const INJECTABLES=[new DependencyInjectionAssignment("script-loader",ScriptLoader),new DependencyInjectionAssignment("logger",Logger),new DependencyInjectionAssignment("input-manager",InputManager,1),new DependencyInjectionAssignment("configurator-mesh-generator",ConfiguratorMeshGenerator),new DependencyInjectionAssignment("rapi-access",RapiAccess),new DependencyInjectionAssignment("roomle-material-viewer-ui-callback",class extends UiCallback{constructor(e){super(e),this.onMaterialShadingChanged=e=>{}}},1)];class MaterialViewer extends Main{setupGlobals(){}setupDependencies(){RoomleDependencyInjection.setup(INJECTABLES),this.lookup("logger",this._context)}cleanUpGlobals(){throw new Error("Method not implemented.")}cleanUpDependencies(){throw new Error("Method not implemented.")}bootFinished(){this._viewer=new RoomleMaterialViewer(this._context),window.RoomleMaterialViewer||(window.RoomleMaterialViewer=this._viewer)}getApi(){return this._viewer}getContextName(){return"material-viewer"}}export{MaterialViewer};
|
|
2
|
-
//# sourceMappingURL=material-viewer-
|
|
1
|
+
import{S as ScriptLoader,M as Main}from"./script-loader-b968d839.js";import{_ as __decorate,i as inject,u as CANVAS_ID,x as DynamicLightSettingLoader,y as PREDEFINED_LIGHTSETTING,a7 as MaterialCreator,aO as setMaterial,aP as getMaterialShading,ag as getGUI,aQ as addExistingTexture,af as addTexture,aR as UiCallback,D as DependencyInjectionAssignment,L as Logger,aM as InputManager,aS as ConfiguratorMeshGenerator,R as RapiAccess,b as RoomleDependencyInjection}from"./roomle-dependency-injection-9242f5d6.js";import{b as CameraBehaviour,S as SceneManager,B as BackgroundEnvironment,C as CameraControl3D,F as FloorEnvironment,T as TWEEN_FILE_NAME}from"./camera-behaviour-fc28ffa2.js";import{aE as CAMERA_TYPE,aP as BoxGeometry,z as Mesh,C as Color,ad as Box3,w as DoubleSide,a7 as FrontSide,aS as SphereGeometry,b9 as PlaneGeometry,a9 as Texture}from"./main-thread-to-worker-ee3036b3.js";import"./query-params-helper-c9492f35.js";class MaterialViewerCameraBehaviour extends CameraBehaviour{get cameraControl(){return this._cameraControl}}class MaterialViewerSceneManager extends SceneManager{constructor(e,a){super(e,a,CANVAS_ID.RMV,CAMERA_TYPE.CAMERA_3D),this._sceneParams={type:"cube"},this._materialParams={color:"#ffffff",metallic:.5,alpha:0,alphaCutoff:0,doubleSided:!1},this._renderer.capabilities.maxTextures>8&&this.loadDynamicLightSetting(DynamicLightSettingLoader.createDynamicLightSettingSource(null,PREDEFINED_LIGHTSETTING.CAMERA)),this._initScene()}_initScene(){const e=new BoxGeometry(1,1,1,100,100,100),a=MaterialCreator.createMeshPhysicalMaterial({color:this._initData.colors.PRIMARY});this._setMaterial(a),this._mesh=new Mesh(e,this._material),this._mesh.castShadow=!0,this._mesh.position.setY(.5),this._scene.add(this._mesh);const{initialFloorMaterial:t}=this._initData;if(t?this.changeFloorMaterialById(t):this._environment=new BackgroundEnvironment(this._scene,null,new Color(16777215)),this.cameraBehaviour.cameraControl instanceof CameraControl3D){const e=new Box3;e.setFromObject(this._mesh),console.trace("reset camera"),this.cameraBehaviour.cameraControl.updateAndReset(e)}this.showGUI()}loadMaterialId(e){return new Promise(a=>{this._configuratorMeshGenerator.loadMaterial(e,1e3,1e3).then(e=>{this._setMaterial(e),this._mesh.material=this._material,this._updateGUI(),this._requestRender(),a()})})}loadMaterial(e){return new Promise(a=>{e.__rapi_path__||(e.__rapi_path__="materials"),this._mesh.material=this._material,this._configuratorMeshGenerator.loadTextures(e,this._material,100,100).then(()=>{this._updateGUI(),this._requestRender()}),a()})}loadMaterialShading(e){return new Promise(a=>{let t={shading:e};this._setMaterial(setMaterial(this._material,t)),this._mesh.material=this._material,this._updateGUI(),this._requestRender(),a()})}resetMaterial(){this._initScene()}_setMaterial(e){this._material=e,this._materialParams.alpha=e.opacity,this._materialParams.alphaCutoff=e.alphaTest,this._materialParams.color="#"+e.color.getHexString(),this._materialParams.doubleSided=e.side===DoubleSide,this._materialParams.metallic=1===e.metalness?1:e.reflectivity}getMaterialShading(e=1){return getMaterialShading(this._material,e)}createCameraControl(e,a){this._changeCameraBehaviour(new MaterialViewerCameraBehaviour(new CameraControl3D(this._creator_,this._getInputManager(),null),this._cameraBehaviourState))}_getInputManager(){return this._inputManager}sceneChanged(){}getBounds(){return this._mesh?(new Box3).setFromObject(this._mesh):null}getGeometryBounds(){return null}_guiLoaded(){this._updateGUI()}_updateGUI(){let e=getGUI();e&&(this._guiGeometryFolder||(this._guiGeometryFolder=e.addFolder("Geometry"),this._guiGeometryFolder.add(this._sceneParams,"type",{Cube:"cube",Sphere:"sphere",PlaneVertical:"plane_vertical",PlaneHorizontal:"plane_horizontal"}).onChange(e=>{this._setGeometry()})),this._material&&(this._guiMaterialFolder&&e.removeFolder(this._guiMaterialFolder),this._guiMaterialFolder=e.addFolder("Material"),this._guiMaterialFolder.addColor(this._materialParams,"color").onChange(e=>{this._material.color=new Color(e),this._shadingChanged()}),this._guiMaterialFolder.add(this._materialParams,"metallic").min(0).max(1).step(.01).onChange(e=>{this._material.metalness=1===e?1:.5,this._material.reflectivity=e||.5,this._shadingChanged()}),this._guiMaterialFolder.add(this._material,"roughness").min(0).max(1).step(.01).onChange(e=>{this._shadingChanged()}),this._guiMaterialFolder.add(this._material,"transmission").min(0).max(1).step(.01).onChange(e=>{this._material.transmission=e,e>0&&(this._material.opacity=1,this._material.alphaTest=.5,this._material.depthWrite=!1,this._material.transparent=!0,this._material.metalness=0),this._mesh.castShadow=!this._material.transparent,this._shadingChanged()}),this._guiMaterialFolder.add(this._materialParams,"alpha").min(0).max(1).step(.01).onChange(e=>{this._material.transparent=e<1,this._material.opacity=e,this._material.depthWrite=e>=1,this._mesh.castShadow=!this._material.transparent,this._shadingChanged()}),this._guiMaterialFolder.add(this._materialParams,"alphaCutoff").min(0).max(1).step(.01).onChange(e=>{this._material.alphaTest=e||0,this._shadingChanged()}),this._guiMaterialFolder.add(this._materialParams,"doubleSided").onChange(e=>{this._material.side=e?DoubleSide:FrontSide,this._shadingChanged()})),this._addGUIListener(e))}_shadingChanged(){this._roomleMaterialViewerUiCallback.onMaterialShadingChanged(getMaterialShading(this._material))}setGeometry(e){this._sceneParams.type=e,this._setGeometry()}_setGeometry(){let e;"cube"===this._sceneParams.type&&(e=new BoxGeometry(1,1,1,100,100,100)),"sphere"===this._sceneParams.type&&(e=new SphereGeometry(.5,100,100)),"plane_horizontal"===this._sceneParams.type&&(e=new PlaneGeometry(1,1),e.rotateX(-Math.PI/2)),"plane_vertical"===this._sceneParams.type&&(e=new PlaneGeometry(1,1)),this._mesh.geometry=e,this._renderEverything()}async changeFloorMaterialById(e){const a=await this._rapiAccess.getMaterial(e);return this._environment&&this._environment instanceof FloorEnvironment||(this._environment=new FloorEnvironment(this._scene,this._environment,!0)),new Promise((e,t)=>{this._environment.changeFloorMaterial(a,this._maxAnisotropy).then(()=>{this._requestRender(),e()},t)})}async addTexture(e,a){const t=100/(0===e.mmWidth?1:e.mmWidth),r=100/(0===e.mmHeight?1:e.mmHeight);if(a){const i=new Image;i.src=a;const s=new Texture;s.image=i,i.onload=function(){s.needsUpdate=!0},addExistingTexture(s,e,this._material,this._maxAnisotropy,t,r,this._renderer.capabilities.maxTextures)}else await addTexture(e.image,e,this._material,this._maxAnisotropy,t,r,this._renderer.capabilities.maxTextures);this._requestRender()}removeTexture(e){"ORM"===e.mapping&&(this._material.aoMap=null,this._material.roughnessMap=null,this._material.metalnessMap=null),"RGB"!==e.mapping&&"RGBA"!==e.mapping||(this._material.map=null),"XYZ"===e.mapping&&(this._material.normalMap=null),this._material.needsUpdate=!0,this._requestRender()}clearCache(){this._configuratorMeshGenerator.clear()}}__decorate([inject],MaterialViewerSceneManager.prototype,"_inputManager",void 0),__decorate([inject],MaterialViewerSceneManager.prototype,"_configuratorMeshGenerator",void 0),__decorate([inject],MaterialViewerSceneManager.prototype,"_roomleMaterialViewerUiCallback",void 0),__decorate([inject],MaterialViewerSceneManager.prototype,"_rapiAccess",void 0);class RoomleMaterialViewer{constructor(e){this._creator_=e}setCameraOffset(e){this._sceneManager.setCameraOffset(e)}getCameraOffset(){return this._sceneManager.getCameraOffset()}init(e){return this._domHelper.setDomElement(e),this._sceneManager?(this._lifeCycleManager.resume(),Promise.resolve()):new Promise(this._initPromiseCallback.bind(this))}_initPromiseCallback(e,a){Promise.all([this._scriptLoader.fetch(TWEEN_FILE_NAME,{id:"tween-js"})]).then(()=>{this._sceneManager=new MaterialViewerSceneManager(this._creator_,{left:0,top:1,right:1,bottom:0}),this._sceneManager.enableHD(),e()})}get callbacks(){return this._roomleMaterialViewerUiCallback}set callbacks(e){this._roomleMaterialViewerUiCallback=e}loadMaterialShading(e){return this._sceneManager.loadMaterialShading(e)}resetMaterial(){this._sceneManager.resetMaterial()}loadMaterial(e,a={}){return a.flushCache&&this._clearCaches(),this._sceneManager.loadMaterial(e)}loadMaterialId(e,a={}){return a.flushCache&&this._clearCaches(),this._sceneManager.loadMaterialId(e)}getMaterialShading(e=1){return this._sceneManager.getMaterialShading(e)}loadSceneSetting(e){return this._sceneManager.loadSceneSettings(e)}setOverrides(e){e&&this._initData.setOverrides(e)}updateSize(){this._sceneManager.updateCamera()}getMain(){}resumeTest(e){this._domHelper.setDomElement(e),this._lifeCycleManager.resume()}pauseTest(){this._lifeCycleManager.pause()}showGUI(){this._sceneManager.showGUI()}async changeFloorMaterialById(e){return this._sceneManager.changeFloorMaterialById(e)}setGeometry(e){this._sceneManager.setGeometry(e)}async addTexture(e,a){return this._sceneManager.addTexture(e,a)}removeTexture(e){return this._sceneManager.removeTexture(e)}_clearCaches(){this._rapiAccess.cleanUp(),this._sceneManager.clearCache()}getScene(){return this._sceneManager.getScene()}updateScene(){this._sceneManager.updateScene()}getUnitFormatter(){return this._unitFormatter}getStorage(){return this._idbManager}setEnvironmentMap(e){const{url:a,intensity:t,rotation:r,maxLightSources:i}=e;this._sceneManager.setEnvironmentMap(a,t,r,i)}get globalCallbacks(){return this._globalCallback}}__decorate([inject],RoomleMaterialViewer.prototype,"_domHelper",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_scriptLoader",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_lifeCycleManager",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_roomleMaterialViewerUiCallback",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_initData",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_globalCallback",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_rapiAccess",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_unitFormatter",void 0),__decorate([inject],RoomleMaterialViewer.prototype,"_idbManager",void 0);const INJECTABLES=[new DependencyInjectionAssignment("script-loader",ScriptLoader),new DependencyInjectionAssignment("logger",Logger),new DependencyInjectionAssignment("input-manager",InputManager,1),new DependencyInjectionAssignment("configurator-mesh-generator",ConfiguratorMeshGenerator),new DependencyInjectionAssignment("rapi-access",RapiAccess),new DependencyInjectionAssignment("roomle-material-viewer-ui-callback",class extends UiCallback{constructor(e){super(e),this.onMaterialShadingChanged=e=>{}}},1)];class MaterialViewer extends Main{setupGlobals(){}setupDependencies(){RoomleDependencyInjection.setup(INJECTABLES),this.lookup("logger",this._context)}cleanUpGlobals(){throw new Error("Method not implemented.")}cleanUpDependencies(){throw new Error("Method not implemented.")}bootFinished(){this._viewer=new RoomleMaterialViewer(this._context),window.RoomleMaterialViewer||(window.RoomleMaterialViewer=this._viewer)}getApi(){return this._viewer}getContextName(){return"material-viewer"}}export{MaterialViewer};
|
|
2
|
+
//# sourceMappingURL=material-viewer-fe10e215.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"material-viewer-fe10e215.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{MaterialViewer}from"./material-viewer-fe10e215.js";import"./script-loader-b968d839.js";import"./query-params-helper-c9492f35.js";import"./main-thread-to-worker-ee3036b3.js";import"./roomle-dependency-injection-9242f5d6.js";import"./camera-behaviour-fc28ffa2.js";(new MaterialViewer).boot();
|
|
2
|
+
//# sourceMappingURL=material-viewer-main-35f26a9d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"material-viewer-main-35f26a9d.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./material-viewer-
|
|
1
|
+
System.register(["./material-viewer-2efa371b.nomodule.js","./script-loader-e352706c.nomodule.js","./query-params-helper-51a53f8c.nomodule.js","./main-thread-to-worker-2529fa31.nomodule.js","./roomle-dependency-injection-893517a6.nomodule.js","./camera-behaviour-c04ea122.nomodule.js"],(function(){var e;return{setters:[function(n){e=n.MaterialViewer},function(){},function(){},function(){},function(){},function(){}],execute:function(){(new e).boot()}}}));
|
|
2
2
|
//# sourceMappingURL=material-viewer-main.nomodule.js.map
|