@roomle/web-sdk 7.0.0-alpha.1 → 7.0.0-alpha.3
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/THIRD-PARTY-NOTICES.txt +2 -2
- package/lib/{BufferGeometry-CzBRCIk3.mjs → BufferGeometry-YaAhwXNX.mjs} +2 -2
- package/lib/{BufferGeometry-CzBRCIk3.mjs.map → BufferGeometry-YaAhwXNX.mjs.map} +1 -1
- package/lib/ConfiguratorKernel.js +2 -2
- package/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/{Object3D-Bkmul_of.mjs → Object3D-Dx0HN7Wz.mjs} +1 -1
- package/lib/{Object3D-Bkmul_of.mjs.map → Object3D-Dx0HN7Wz.mjs.map} +1 -1
- package/lib/{PointLightHelper-DOW-3Hvn.mjs → PointLightHelper-B8k3nJVr.mjs} +4 -4
- package/lib/{PointLightHelper-DOW-3Hvn.mjs.map → PointLightHelper-B8k3nJVr.mjs.map} +1 -1
- package/lib/RoomleCore.js +2 -2
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{SpotLightHelper-sE9yZPeq.mjs → SpotLightHelper-jqI3QyNE.mjs} +3 -3
- package/lib/{SpotLightHelper-sE9yZPeq.mjs.map → SpotLightHelper-jqI3QyNE.mjs.map} +1 -1
- package/lib/{USDZExporter-zhEk6F4K.mjs → USDZExporter-BS1qa3HO.mjs} +2 -2
- package/lib/{USDZExporter-zhEk6F4K.mjs.map → USDZExporter-BS1qa3HO.mjs.map} +1 -1
- package/lib/{Vector4-CmUR_DSp.mjs → Vector4-BmWb-htx.mjs} +2 -2
- package/lib/{Vector4-CmUR_DSp.mjs.map → Vector4-BmWb-htx.mjs.map} +1 -1
- package/lib/{api-1YHSF8TD.mjs → api-B_Mu7Mg1.mjs} +2 -2
- package/lib/{api-1YHSF8TD.mjs.map → api-B_Mu7Mg1.mjs.map} +1 -1
- package/lib/asset-loader.worker-Bdvb-pt7.mjs.map +1 -1
- package/lib/budgeteer.sw-ByZxiRBr.mjs.map +1 -1
- package/lib/{common-utils-DZiN8bjs.mjs → common-utils-zPOllvAT.mjs} +3 -2
- package/lib/common-utils-zPOllvAT.mjs.map +1 -0
- package/lib/{component-raycast-helper-BSFG09WY.mjs → component-raycast-helper-CMFpSJXC.mjs} +3 -3
- package/lib/{component-raycast-helper-BSFG09WY.mjs.map → component-raycast-helper-CMFpSJXC.mjs.map} +1 -1
- package/lib/{configuration-operations-DI677LMN.mjs → configuration-operations-C5rnDS8e.mjs} +44 -38
- package/lib/configuration-operations-C5rnDS8e.mjs.map +1 -0
- package/lib/configurator-BeDJ8jD1.mjs +46 -0
- package/lib/{configurator-CgFJ2voV.mjs.map → configurator-BeDJ8jD1.mjs.map} +1 -1
- package/lib/{configurator-capabilities-CLqul800.mjs → configurator-capabilities-C3TQUu_S.mjs} +12 -12
- package/lib/{configurator-capabilities-CLqul800.mjs.map → configurator-capabilities-C3TQUu_S.mjs.map} +1 -1
- package/lib/configurator-capabilities-C42HYCCb.mjs +3 -0
- package/lib/{configurator-mcp-tools-D00ndjOy.mjs → configurator-mcp-tools-D7vZ7ozM.mjs} +3 -3
- package/lib/configurator-mcp-tools-D7vZ7ozM.mjs.map +1 -0
- package/lib/configurator-yctV6IDY.mjs +3 -0
- package/lib/{fflate.module-CpWr9KGw.mjs → fflate.module-BfCRKtjc.mjs} +1 -1
- package/lib/{fflate.module-CpWr9KGw.mjs.map → fflate.module-BfCRKtjc.mjs.map} +1 -1
- package/lib/{glb-viewer-B2WH46su.mjs → glb-viewer-BkU2Z-HJ.mjs} +24 -24
- package/lib/{glb-viewer-B2WH46su.mjs.map → glb-viewer-BkU2Z-HJ.mjs.map} +1 -1
- package/lib/glb-viewer-jt9mrYrF.mjs +3 -0
- package/lib/{hi-mcp-server-tVF1bn28.mjs → hi-mcp-server-rSu1HL4m.mjs} +2 -2
- package/lib/{hi-mcp-server-tVF1bn28.mjs.map → hi-mcp-server-rSu1HL4m.mjs.map} +1 -1
- package/lib/{highlight-coordinator-CiBzWsMf.mjs → highlight-coordinator-DbqhP7Hy.mjs} +3 -3
- package/lib/{highlight-coordinator-CiBzWsMf.mjs.map → highlight-coordinator-DbqhP7Hy.mjs.map} +1 -1
- package/lib/{homag-intelligence-CdYda0Mb.mjs → homag-intelligence-DboRA-Yd.mjs} +6 -3
- package/lib/homag-intelligence-DboRA-Yd.mjs.map +1 -0
- package/lib/kernel-2ku6lFfE.mjs.map +1 -1
- package/lib/{material-viewer-BrARE0p0.mjs → material-viewer-BkaTt8Sn.mjs} +25 -21
- package/lib/material-viewer-BkaTt8Sn.mjs.map +1 -0
- package/lib/{packages-DhBz4dX3.mjs → packages-DZzpY6V8.mjs} +6 -6
- package/lib/{packages-DhBz4dX3.mjs.map → packages-DZzpY6V8.mjs.map} +1 -1
- package/lib/planner-C7kZ9SKV.mjs +3 -0
- package/lib/{planner-SRvOM5ZQ.mjs → planner-CuZaTB-P.mjs} +16 -16
- package/lib/{planner-SRvOM5ZQ.mjs.map → planner-CuZaTB-P.mjs.map} +1 -1
- package/lib/roomle-headless.d.ts +144 -20
- package/lib/roomle-headless.js +35 -32
- package/lib/roomle-headless.js.map +1 -1
- package/lib/{roomle-sdk-Sdrd7K0F.mjs → roomle-sdk-CSH3WHXV.mjs} +25044 -25046
- package/lib/roomle-sdk-CSH3WHXV.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +144 -20
- package/lib/roomle-sdk.js +9 -9
- package/lib/{roomle-webgpu-renderer-CWoN5YzU.mjs → roomle-webgpu-renderer-D43bHxhT.mjs} +4 -4
- package/lib/{roomle-webgpu-renderer-CWoN5YzU.mjs.map → roomle-webgpu-renderer-D43bHxhT.mjs.map} +1 -1
- package/lib/{runtime-Bz0u5ckH.mjs → runtime-D5zrHj-e.mjs} +181 -78
- package/lib/runtime-D5zrHj-e.mjs.map +1 -0
- package/lib/{scene-renderer-CsbP23gu.mjs → scene-renderer-BmtXHWEw.mjs} +3 -3
- package/lib/{scene-renderer-CsbP23gu.mjs.map → scene-renderer-BmtXHWEw.mjs.map} +1 -1
- package/lib/{script-loader-D9Tr-8LN.mjs → script-loader-O8x5UOnP.mjs} +2 -2
- package/lib/{script-loader-D9Tr-8LN.mjs.map → script-loader-O8x5UOnP.mjs.map} +1 -1
- package/lib/{shading-settings-mnQRn2LO.mjs → shading-settings-CpXZmOnx.mjs} +2 -2
- package/lib/{shading-settings-mnQRn2LO.mjs.map → shading-settings-CpXZmOnx.mjs.map} +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts +8 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.js +2 -2
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.js +2 -2
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
- package/lib/{stats-helper-Q25NjvCQ.mjs → stats-helper-jzrLyoHV.mjs} +2 -2
- package/lib/{stats-helper-Q25NjvCQ.mjs.map → stats-helper-jzrLyoHV.mjs.map} +1 -1
- package/lib/{threejs-utils-C3CWKZXa.mjs → threejs-utils-D1gtvxiA.mjs} +7 -15
- package/lib/{threejs-utils-C3CWKZXa.mjs.map → threejs-utils-D1gtvxiA.mjs.map} +1 -1
- package/lib/{tools-core-BBYYzygJ.mjs → tools-core-DJvn2gR6.mjs} +6 -6
- package/lib/{tools-core-BBYYzygJ.mjs.map → tools-core-DJvn2gR6.mjs.map} +1 -1
- package/lib/{util-BdWrqTeC.mjs → util-LmkV26fg.mjs} +1 -1
- package/lib/{util-BdWrqTeC.mjs.map → util-LmkV26fg.mjs.map} +1 -1
- package/package.json +2 -2
- package/sbom.cdx.json +5 -5
- package/lib/common-utils-DZiN8bjs.mjs.map +0 -1
- package/lib/configuration-operations-DI677LMN.mjs.map +0 -1
- package/lib/configurator-AwPowYQR.mjs +0 -3
- package/lib/configurator-CgFJ2voV.mjs +0 -46
- package/lib/configurator-capabilities-Dg8oD49T.mjs +0 -3
- package/lib/configurator-mcp-tools-D00ndjOy.mjs.map +0 -1
- package/lib/glb-viewer-sxVA5IgD.mjs +0 -3
- package/lib/homag-intelligence-CdYda0Mb.mjs.map +0 -1
- package/lib/material-viewer-BrARE0p0.mjs.map +0 -1
- package/lib/planner-D6uV0kCw.mjs +0 -3
- package/lib/roomle-sdk-Sdrd7K0F.mjs.map +0 -1
- package/lib/runtime-Bz0u5ckH.mjs.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
import "./common-utils-
|
|
3
|
-
import "./roomle-sdk-
|
|
4
|
-
import "./configurator-
|
|
5
|
-
import "./planner-
|
|
6
|
-
import "./glb-viewer-
|
|
2
|
+
import "./common-utils-zPOllvAT.mjs";
|
|
3
|
+
import "./roomle-sdk-CSH3WHXV.mjs";
|
|
4
|
+
import "./configurator-BeDJ8jD1.mjs";
|
|
5
|
+
import "./planner-CuZaTB-P.mjs";
|
|
6
|
+
import "./glb-viewer-BkU2Z-HJ.mjs";
|
|
7
7
|
//#region ../common/src/utils/id-inferrer.ts
|
|
8
8
|
var e = (e) => e.split(":").length - 1 == 1, t = (e) => e.split(":").length - 1 <= 0, n = (e) => e ? e.startsWith("component@") : !1, r = (e) => e.startsWith("{") && e.endsWith("}"), i = (e) => e.startsWith("ps_");
|
|
9
9
|
//#endregion
|
|
10
10
|
export { i as a, e as i, r as n, t as r, n as t };
|
|
11
11
|
|
|
12
|
-
//# sourceMappingURL=packages-
|
|
12
|
+
//# sourceMappingURL=packages-DZzpY6V8.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packages-
|
|
1
|
+
{"version":3,"file":"packages-DZzpY6V8.mjs","names":[],"sources":["../../../common/src/utils/id-inferrer.ts"],"sourcesContent":["import type { RapiId, RapiPlanSnapshotId } from '@roomle/web-sdk';\n\nexport const isIdAnItem = (id: string) => id.split(':').length - 1 === 1;\n\nexport const isIdAPlan = (id: string) => id.split(':').length - 1 <= 0;\n\nexport const isIdAComponent = (id: string) =>\n id ? id.startsWith('component@') : false;\n\nexport const isIdAConfigurationString = (id: string) =>\n id.startsWith('{') && id.endsWith('}');\n\nexport const isPlanSnapshotId = (\n id: string | RapiId,\n): id is RapiPlanSnapshotId => id.startsWith('ps_');\n\nexport type RapiElementKind = 'planSnapshot' | 'item' | 'configuration';\n\nexport const getRapiElementKind = (id: string): RapiElementKind => {\n if (isPlanSnapshotId(id)) {\n return 'planSnapshot';\n }\n return isIdAnItem(id) ? 'item' : 'configuration';\n};\n"],"mappings":";;;;;;;AAEA,IAAa,KAAc,MAAe,EAAG,MAAM,IAAI,CAAC,SAAS,KAAM,GAE1D,KAAa,MAAe,EAAG,MAAM,IAAI,CAAC,SAAS,KAAK,GAExD,KAAkB,MAC7B,IAAK,EAAG,WAAW,aAAa,GAAG,IAExB,KAA4B,MACvC,EAAG,WAAW,IAAI,IAAI,EAAG,SAAS,IAAI,EAE3B,KACX,MAC6B,EAAG,WAAW,MAAM"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { t as h } from "./script-loader-
|
|
2
|
+
import { H as e, M as t, N as n, P as r, Q as i, d as a, dt as o, ft as s, j as c, mt as l, n as u, nt as d, ot as f, p, vt as m } from "./roomle-sdk-CSH3WHXV.mjs";
|
|
3
|
+
import { t as h } from "./script-loader-O8x5UOnP.mjs";
|
|
4
4
|
//#region packages/planner-core/src/input/planner-input-manager.ts
|
|
5
|
-
var g = class extends
|
|
5
|
+
var g = class extends i {
|
|
6
6
|
_canDrag(e) {
|
|
7
7
|
return !0;
|
|
8
8
|
}
|
|
9
9
|
}, _ = [
|
|
10
|
-
new
|
|
11
|
-
new
|
|
12
|
-
new
|
|
13
|
-
new
|
|
14
|
-
new
|
|
15
|
-
new
|
|
16
|
-
new
|
|
17
|
-
new
|
|
18
|
-
], v = class extends
|
|
10
|
+
new s("script-loader", h),
|
|
11
|
+
new s("planner-input-manager", g, o.CONTEXT),
|
|
12
|
+
new s("logger", f),
|
|
13
|
+
new s("planner-mesh-generator", a),
|
|
14
|
+
new s("configurator-view-model", n, o.CONTEXT),
|
|
15
|
+
new s("rapi-access", l),
|
|
16
|
+
new s("global-init-data", d),
|
|
17
|
+
new s("planner-selection-handler", r)
|
|
18
|
+
], v = class extends t {
|
|
19
19
|
constructor(e, t) {
|
|
20
20
|
super(e), this._activePlugins = t || [];
|
|
21
21
|
}
|
|
22
22
|
setupGlobals() {}
|
|
23
23
|
setupDependencies() {
|
|
24
|
-
|
|
24
|
+
u.setup(_), this.lookup("logger", this._context), this.lookup("planner-kernel-access", this._context).init(e.PLANNER);
|
|
25
25
|
}
|
|
26
26
|
cleanUpGlobals() {
|
|
27
27
|
throw Error("Method not implemented.");
|
|
@@ -30,7 +30,7 @@ var g = class extends m {
|
|
|
30
30
|
throw Error("Method not implemented.");
|
|
31
31
|
}
|
|
32
32
|
async bootFinished() {
|
|
33
|
-
if (this._planner = new
|
|
33
|
+
if (this._planner = new p(this._context, this._activePlugins), this._planner.getMain = () => this, window.RoomlePlanner || (this._activePlugins.length, window.RoomlePlanner = this._planner), this.lookup("init-data", this._context)?.hi && m()) try {
|
|
34
34
|
await this._planner.setupHomagIntelligence();
|
|
35
35
|
} catch (e) {
|
|
36
36
|
console.error("The HI library could not be loaded, the planner starts without it", e);
|
|
@@ -40,10 +40,10 @@ var g = class extends m {
|
|
|
40
40
|
return this._planner;
|
|
41
41
|
}
|
|
42
42
|
getContextName() {
|
|
43
|
-
return
|
|
43
|
+
return c.PLANNER;
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
//#endregion
|
|
47
47
|
export { v as t };
|
|
48
48
|
|
|
49
|
-
//# sourceMappingURL=planner-
|
|
49
|
+
//# sourceMappingURL=planner-CuZaTB-P.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planner-
|
|
1
|
+
{"version":3,"file":"planner-CuZaTB-P.mjs","names":[],"sources":["../../packages/planner-core/src/input/planner-input-manager.ts","../../packages/planner-core/src/utils/injectables.ts","../../packages/planner-core/src/planner.ts"],"sourcesContent":["import type { INPUT_EVENT_TYPE } from '../../../common-core/src/input/input-manager';\nimport InputManager from '../../../common-core/src/input/input-manager';\n\nexport default class PlannerInputManager extends InputManager {\n protected _canDrag(_type: INPUT_EVENT_TYPE): boolean {\n return true;\n }\n}\n","import ScriptLoader from '../../../common-core/src/script-loader';\nimport {\n DependencyInjectionAssignment,\n DI_TYPE,\n} from '../../../common-core/src/di/container';\nimport Logger from '../../../common-core/src/logger';\nimport { default as PlannerMeshGenerator } from '../webgl/planner-mesh-generator';\nimport { RapiAccess } from '../../../common-core/src/rapi-access';\nimport PlannerInputManager from '../input/planner-input-manager';\nimport PlannerSelectionHandler from './planner-selection-handler';\nimport GlobalInitData from '../../../common-core/src/utils/global-init-data';\nimport ConfiguratorViewModel from '../../../common-core/src/view-model/configurator-view-model';\n\nexport const INJECTABLES: DependencyInjectionAssignment[] = [\n new DependencyInjectionAssignment('script-loader', ScriptLoader),\n new DependencyInjectionAssignment(\n 'planner-input-manager',\n PlannerInputManager,\n DI_TYPE.CONTEXT,\n ),\n new DependencyInjectionAssignment('logger', Logger),\n new DependencyInjectionAssignment(\n 'planner-mesh-generator',\n PlannerMeshGenerator,\n ),\n new DependencyInjectionAssignment(\n 'configurator-view-model',\n ConfiguratorViewModel,\n DI_TYPE.CONTEXT,\n ),\n new DependencyInjectionAssignment('rapi-access', RapiAccess),\n new DependencyInjectionAssignment('global-init-data', GlobalInitData),\n new DependencyInjectionAssignment(\n 'planner-selection-handler',\n PlannerSelectionHandler,\n ),\n];\n","import './utils/global-definitions';\nimport { Main, BASE_CONTEXT } from '../../common-core/src/main';\nimport { RoomlePlanner } from './roomle-planner';\nimport RoomleDependencyInjection from '../../common-core/src/di/roomle-dependency-injection';\nimport { INJECTABLES } from './utils/injectables';\nimport type PlannerKernelAccess from './services/planner-kernel-access';\nimport type Logger from '../../common-core/src/logger';\nimport { KERNEL_TYPE } from '../../common-core/src/services/common-kernel-access';\nimport type { PluginName } from '../../configurator-core/src/utils/plugin-types';\nimport type InitData from '../../common-core/src/utils/init-data';\nimport { isInIframe } from '../../common-core/src/utils/rapi-utils';\n\nexport class Planner<\n P extends readonly PluginName[] = readonly [],\n> extends Main {\n private _planner: RoomlePlanner<P>;\n private _activePlugins: P;\n\n constructor(creator?: string, activePlugins?: P) {\n super(creator);\n this._activePlugins = (activePlugins || []) as P;\n }\n protected setupGlobals(): void {\n //globals are initialized in bootFinished()\n }\n\n protected setupDependencies(): void {\n RoomleDependencyInjection.setup(INJECTABLES);\n this.lookup<Logger>('logger', this._context);\n // instantiate kernel acccess\n // instantiate pka\n // set pka on kernel access\n const plannerKernelAccess = this.lookup<PlannerKernelAccess>(\n 'planner-kernel-access',\n this._context,\n );\n plannerKernelAccess.init(KERNEL_TYPE.PLANNER);\n }\n\n protected cleanUpGlobals(): void {\n throw new Error('Method not implemented.');\n }\n\n protected cleanUpDependencies(): void {\n throw new Error('Method not implemented.');\n }\n\n protected async bootFinished(): Promise<void> {\n this._planner = new RoomlePlanner<P>(this._context, this._activePlugins);\n\n this._planner.getMain = () => {\n return this;\n };\n\n if (!window.RoomlePlanner) {\n if (this._activePlugins.length === 0) {\n // cast to unknown because we know that the planner is a RoomlePlanner\n window.RoomlePlanner = this._planner as unknown as RoomlePlanner;\n } else {\n window.RoomlePlanner = this._planner as RoomlePlanner<\n readonly PluginName[]\n >;\n }\n }\n\n const initData = this.lookup<InitData>('init-data', this._context);\n\n if (initData?.hi && isInIframe()) {\n try {\n await this._planner.setupHomagIntelligence();\n } catch (error) {\n console.error(\n 'The HI library could not be loaded, the planner starts without it',\n error,\n );\n }\n }\n }\n\n public getApi(): RoomlePlanner<P> {\n return this._planner;\n }\n\n protected getContextName(): string {\n return BASE_CONTEXT.PLANNER;\n }\n}\n"],"mappings":";;;;AAGA,IAAqB,IAArB,cAAiD,EAAa;CAC5D,SAAmB,GAAkC;AACnD,SAAO;;GCQE,IAA+C;CAC1D,IAAI,EAA8B,iBAAiB,EAAa;CAChE,IAAI,EACF,yBACA,GACA,EAAQ,QACT;CACD,IAAI,EAA8B,UAAU,EAAO;CACnD,IAAI,EACF,0BACA,EACD;CACD,IAAI,EACF,2BACA,GACA,EAAQ,QACT;CACD,IAAI,EAA8B,eAAe,EAAW;CAC5D,IAAI,EAA8B,oBAAoB,EAAe;CACrE,IAAI,EACF,6BACA,EACD;CACF,ECxBY,IAAb,cAEU,EAAK;CAIb,YAAY,GAAkB,GAAmB;AAE/C,EADA,MAAM,EAAQ,EACd,KAAK,iBAAkB,KAAiB,EAAE;;CAE5C,eAA+B;CAI/B,oBAAoC;AAMN,EAL5B,EAA0B,MAAM,EAAY,EAC5C,KAAK,OAAe,UAAU,KAAK,SAAS,EAIhB,KAAK,OAC/B,yBACA,KAAK,SACN,CACmB,KAAK,EAAY,QAAQ;;CAG/C,iBAAiC;AAC/B,QAAU,MAAM,0BAA0B;;CAG5C,sBAAsC;AACpC,QAAU,MAAM,0BAA0B;;CAG5C,MAAgB,eAA8B;AAoB5C,MAnBA,KAAK,WAAW,IAAI,EAAiB,KAAK,UAAU,KAAK,eAAe,EAExE,KAAK,SAAS,gBACL,MAGJ,OAAO,kBACN,KAAK,eAAe,QAEtB,OAAO,gBAAgB,KAAK,WAQf,KAAK,OAAiB,aAAa,KAAK,SAAS,EAEpD,MAAM,GAAY,CAC9B,KAAI;AACF,SAAM,KAAK,SAAS,wBAAwB;WACrC,GAAO;AACd,WAAQ,MACN,qEACA,EACD;;;CAKP,SAAkC;AAChC,SAAO,KAAK;;CAGd,iBAAmC;AACjC,SAAO,EAAa"}
|
package/lib/roomle-headless.d.ts
CHANGED
|
@@ -1211,6 +1211,75 @@ export declare const CONFIGURATION_TYPE: {
|
|
|
1211
1211
|
readonly EXTERNAL: 2;
|
|
1212
1212
|
};
|
|
1213
1213
|
|
|
1214
|
+
/** Carries no credential: no API key, base URL, token or header. */
|
|
1215
|
+
export declare interface ConfigurationAssistantLog {
|
|
1216
|
+
provider: PlanningAssistantConfig['provider'];
|
|
1217
|
+
model: string;
|
|
1218
|
+
tools: AgentToolDefinition[];
|
|
1219
|
+
systemPrompts: Array<{
|
|
1220
|
+
rootComponentId: string | null;
|
|
1221
|
+
text: string;
|
|
1222
|
+
/** The text the model receives instead of an empty prompt with images. */
|
|
1223
|
+
imagePrompt: string;
|
|
1224
|
+
}>;
|
|
1225
|
+
turns: ConfigurationAssistantTurnLog[];
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
/** A file's `data` is a data URL or base64. */
|
|
1229
|
+
export declare type ConfigurationAssistantLogContent = {
|
|
1230
|
+
type: 'text';
|
|
1231
|
+
text: string;
|
|
1232
|
+
} | {
|
|
1233
|
+
type: 'file';
|
|
1234
|
+
mediaType: string;
|
|
1235
|
+
data: string;
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1238
|
+
export declare type ConfigurationAssistantLogEvent = {
|
|
1239
|
+
type: 'text';
|
|
1240
|
+
text: string;
|
|
1241
|
+
} | ConfigurationAssistantToolEvent;
|
|
1242
|
+
|
|
1243
|
+
export declare interface ConfigurationAssistantLogMessage {
|
|
1244
|
+
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
1245
|
+
content: ConfigurationAssistantLogContent[];
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
export declare interface ConfigurationAssistantToolEvent {
|
|
1249
|
+
type: 'tool';
|
|
1250
|
+
name: string;
|
|
1251
|
+
args: unknown;
|
|
1252
|
+
result?: McpToolResult;
|
|
1253
|
+
error?: string;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
export declare interface ConfigurationAssistantTurnLog {
|
|
1257
|
+
turn: number;
|
|
1258
|
+
startedAt: string;
|
|
1259
|
+
endedAt: string | null;
|
|
1260
|
+
/** The index of the turn's system prompt in `systemPrompts`; null when the turn ended before the prompts were read. */
|
|
1261
|
+
systemPrompt: number | null;
|
|
1262
|
+
/** Every message the turn adds to the model input besides the user's prompt, e.g. the configuration. */
|
|
1263
|
+
context: ConfigurationAssistantLogMessage[];
|
|
1264
|
+
prompt: PlanningAssistantPrompt;
|
|
1265
|
+
events: ConfigurationAssistantLogEvent[];
|
|
1266
|
+
outcome: 'running' | 'done' | 'error' | 'aborted';
|
|
1267
|
+
error: string | null;
|
|
1268
|
+
usage: ConfigurationAssistantTurnUsage | null;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
export declare interface ConfigurationAssistantTurnUsage {
|
|
1272
|
+
status: 'complete' | 'partial' | 'unavailable';
|
|
1273
|
+
inputTokens: number | null;
|
|
1274
|
+
outputTokens: number | null;
|
|
1275
|
+
totalTokens: number | null;
|
|
1276
|
+
promptBytes: number | null;
|
|
1277
|
+
configurationBytes: number | null;
|
|
1278
|
+
requestBytes: number[];
|
|
1279
|
+
cachedInputTokens: number | null;
|
|
1280
|
+
chained: boolean;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1214
1283
|
export declare interface ConfigurationExporter {
|
|
1215
1284
|
new (): ConfigurationExporter;
|
|
1216
1285
|
init(): void;
|
|
@@ -1962,7 +2031,6 @@ export declare class ConfiguratorKernelAccess extends CommonKernelAccess {
|
|
|
1962
2031
|
private _updateComponentDependencies;
|
|
1963
2032
|
private _updatePlanObjectParameters;
|
|
1964
2033
|
private _updateCommonPlanObjectParameters;
|
|
1965
|
-
private _enableRootComponentParametersAsGlobal;
|
|
1966
2034
|
private _updatePlanObjectChildren;
|
|
1967
2035
|
updatePlanObjectDependencies(planObjectId: number): void;
|
|
1968
2036
|
/** Sends the parameters and possible children of the selected components of the plan object to the UI. */
|
|
@@ -1977,6 +2045,7 @@ export declare class ConfiguratorKernelAccess extends CommonKernelAccess {
|
|
|
1977
2045
|
runtimeId: number;
|
|
1978
2046
|
}>): KernelReplaceComponentResult | null;
|
|
1979
2047
|
swapComponents(targetObjectId: number, firstRuntimeId: number, secondRuntimeId: number): void;
|
|
2048
|
+
moveComponent(targetObjectId: number, runtimeId: number, dockPair: KernelMoveComponentDockPair): void;
|
|
1980
2049
|
setComponentParameter(runtimeId: number, parameterKey: string, value: string): void;
|
|
1981
2050
|
setPlanObjectParameter(objectId: number, parameterKey: string, value: string): void;
|
|
1982
2051
|
deleteComponent(runtimeId: number, redockChildrenToParent: boolean): void;
|
|
@@ -2134,6 +2203,7 @@ export declare interface ConfiguratorKernelClass {
|
|
|
2134
2203
|
runtimeId: number;
|
|
2135
2204
|
}>): KernelReplaceComponentResult | null;
|
|
2136
2205
|
swapComponents(targetObjectId: number, firstRuntimeId: number, secondRuntimeId: number): void;
|
|
2206
|
+
moveComponent(targetObjectId: number, runtimeId: number, dockPair: KernelMoveComponentDockPair): void;
|
|
2137
2207
|
getComponentParameters(componentId: number): KernelParameter[];
|
|
2138
2208
|
getPlanComponentAnimations(planComponentId: number): KernelAnimation[];
|
|
2139
2209
|
setComponentParameter(componentId: number, parameterKey: string, value: string): void;
|
|
@@ -2659,14 +2729,6 @@ export declare class ConfiguratorUiCallbacks extends UiCallback implements Confi
|
|
|
2659
2729
|
ids: RapiId[];
|
|
2660
2730
|
message: string;
|
|
2661
2731
|
}) => void;
|
|
2662
|
-
/**
|
|
2663
|
-
* When a sync has been started
|
|
2664
|
-
*/
|
|
2665
|
-
onSyncStarted: () => void;
|
|
2666
|
-
/**
|
|
2667
|
-
* When a previously requested sync has been completed
|
|
2668
|
-
*/
|
|
2669
|
-
onSyncDone: () => void;
|
|
2670
2732
|
/**
|
|
2671
2733
|
* When UI should show floor material selection
|
|
2672
2734
|
*/
|
|
@@ -3694,7 +3756,6 @@ export declare class DataSyncer implements Context, CommunicationInterfaceCallba
|
|
|
3694
3756
|
private _isStarting;
|
|
3695
3757
|
private _alwaysUseCache;
|
|
3696
3758
|
constructor(creator: string);
|
|
3697
|
-
start(catalogId: RapiId): Promise<void>;
|
|
3698
3759
|
syncCatalog(catalogId: RapiId): Promise<void>;
|
|
3699
3760
|
syncFloorTag(tagId: RapiId): Promise<any>;
|
|
3700
3761
|
syncTypeChangeTag(tagId: RapiId): Promise<any>;
|
|
@@ -3714,6 +3775,7 @@ export declare class DataSyncer implements Context, CommunicationInterfaceCallba
|
|
|
3714
3775
|
private _assetUrlToBase64;
|
|
3715
3776
|
private _softReject;
|
|
3716
3777
|
requestAsset(url: string, urlAsFallback?: boolean): AssetUrl | null;
|
|
3778
|
+
requestCachedAsset(url: string): AssetUrl | null;
|
|
3717
3779
|
setAlwaysUseCache(alwaysUseCache: boolean): void;
|
|
3718
3780
|
preFillAssetCache(key: string, url: string): void;
|
|
3719
3781
|
}
|
|
@@ -4490,6 +4552,13 @@ export declare interface ExternalObjectAPI {
|
|
|
4490
4552
|
* @param posGroupId The ID of the pos group.
|
|
4491
4553
|
*/
|
|
4492
4554
|
getExternalObjectValidSubArticles(posGroupId?: string): PosArticle[];
|
|
4555
|
+
/**
|
|
4556
|
+
* "getExternalObjectArticleInfo" returns the ID, name and description of the article of a root module.
|
|
4557
|
+
* Returns `undefined` if the group or the root module is not known.
|
|
4558
|
+
* @param groupId The ID of the group of the root module.
|
|
4559
|
+
* @param rootModuleId The ID of the root module.
|
|
4560
|
+
*/
|
|
4561
|
+
getExternalObjectArticleInfo(groupId: string, rootModuleId: string): Pick<PosArticleInfo, 'articleId' | 'articleName' | 'desc'> | undefined;
|
|
4493
4562
|
/**
|
|
4494
4563
|
* "selectExternalObjectSubArticle" selects a sub article in the planner.
|
|
4495
4564
|
* @param subArticleId The ID of the sub article to be selected.
|
|
@@ -5303,6 +5372,7 @@ export declare interface GlueLogic {
|
|
|
5303
5372
|
hiObjectSelection: HiObjectSelectionApi;
|
|
5304
5373
|
isLibraryLoaded(libraryId: string): boolean;
|
|
5305
5374
|
getLibraryData(libraryId: string): LibraryData | null;
|
|
5375
|
+
getGroup(groupId: string): GroupItem | undefined;
|
|
5306
5376
|
addLibrary(libraryData: LibraryData): Promise<void>;
|
|
5307
5377
|
setPosDataForLoading(posData: PosSaveData | null): Promise<void>;
|
|
5308
5378
|
loadPosData(articleCatalogJson: any, libraryId: string): void;
|
|
@@ -5341,6 +5411,32 @@ export declare interface GlueLogic {
|
|
|
5341
5411
|
getMaterialUrl(materialId: string, groupOrModuleId?: string): string | null;
|
|
5342
5412
|
}
|
|
5343
5413
|
|
|
5414
|
+
export declare interface GroupItem {
|
|
5415
|
+
posDataJson: PosGroup;
|
|
5416
|
+
opened: boolean;
|
|
5417
|
+
/** Prevents concurrent calculations on this group. When true, modifications are blocked until the current calculation completes. */
|
|
5418
|
+
calculationInProgress: boolean;
|
|
5419
|
+
/** The running calculateAndUpdateGroupMap run; re-entrant calls await it instead of calculating again. */
|
|
5420
|
+
calculationPromise: Promise<PosGroup> | null;
|
|
5421
|
+
/**
|
|
5422
|
+
* The last stored calculation. The next one is compared against it to log
|
|
5423
|
+
* only the root modules the modification broke, since callers write their
|
|
5424
|
+
* modification into posDataJson before the calculation runs.
|
|
5425
|
+
*/
|
|
5426
|
+
lastCalculatedPosDataJson?: PosGroup;
|
|
5427
|
+
pendingArrangement?: {
|
|
5428
|
+
originalGroup?: PosGroup;
|
|
5429
|
+
allowRepositioning: boolean;
|
|
5430
|
+
carrierOverrides?: Map<string, UnitAboveCarrier>;
|
|
5431
|
+
};
|
|
5432
|
+
/**
|
|
5433
|
+
* The load that follows has to ask the kernel to apply the group position:
|
|
5434
|
+
* the last calculation moved the group to keep its distance to the walls, or
|
|
5435
|
+
* kept it where it was while a root gained or lost its docking vectors.
|
|
5436
|
+
*/
|
|
5437
|
+
appliesGroupPosition?: boolean;
|
|
5438
|
+
}
|
|
5439
|
+
|
|
5344
5440
|
/**
|
|
5345
5441
|
* Hand-typed overrides of core handler methods, re-typed against our model types
|
|
5346
5442
|
* (PlanObject, KernelObject, …) which differ from core's. Everything not listed here
|
|
@@ -6975,6 +7071,7 @@ export declare interface Kernel {
|
|
|
6975
7071
|
dockNewComponent(targetObjectId: number, dockingEntity: NewComponentDockingSource, dockPair: NewComponentDockPair): number;
|
|
6976
7072
|
replaceComponent(targetObjectId: number, runtimeId: number, dockingEntity: NewComponentDockingSource): ReplaceComponentResult;
|
|
6977
7073
|
swapComponents(targetObjectId: number, firstRuntimeId: number, secondRuntimeId: number): void;
|
|
7074
|
+
moveComponent(targetObjectId: number, runtimeId: number, dockPair: MoveComponentDockPair): void;
|
|
6978
7075
|
setExternalMeshInvalid(assetType: AssetType_2, idOrUrl: string, quality: number): void;
|
|
6979
7076
|
setAssetInvalid(assetType: AssetType_2, idOrUrl: string, quality: number): void;
|
|
6980
7077
|
loadExternalAttributeDefinition(serializedDefinition: string): void;
|
|
@@ -7256,6 +7353,10 @@ export declare interface KernelMessageMetaInfo {
|
|
|
7256
7353
|
|
|
7257
7354
|
export declare type KernelMessageType = ValuesFromObject<typeof KERNEL_MESSAGE_TYPE>;
|
|
7258
7355
|
|
|
7356
|
+
export declare interface KernelMoveComponentDockPair extends KernelDockPairTarget {
|
|
7357
|
+
childDockId: number;
|
|
7358
|
+
}
|
|
7359
|
+
|
|
7259
7360
|
export declare interface KernelObject {
|
|
7260
7361
|
extRef: EMSReference_2 | null;
|
|
7261
7362
|
clone(): KernelObject;
|
|
@@ -7950,6 +8051,7 @@ export declare class MeshGenerator implements Context {
|
|
|
7950
8051
|
private _loadBenchmarkTextures;
|
|
7951
8052
|
protected _loadTextures(rapiMaterial: RapiMaterial, material: MeshPhysicalMaterial, width?: number, height?: number): Promise<void>;
|
|
7952
8053
|
private _addTexturesToMaterial;
|
|
8054
|
+
private _addTextureAsset;
|
|
7953
8055
|
protected _loadMaterial(materialId: string, width?: number, height?: number): Promise<Material>;
|
|
7954
8056
|
protected _assignMaterial(mesh: Mesh, materialId: string, materialAttributes?: Record<string, string | null>): Promise<void>;
|
|
7955
8057
|
get maxAnisotropy(): number;
|
|
@@ -7991,6 +8093,14 @@ export declare interface ModelExportOptions {
|
|
|
7991
8093
|
filename?: string;
|
|
7992
8094
|
}
|
|
7993
8095
|
|
|
8096
|
+
export declare interface MoveComponentDockPair {
|
|
8097
|
+
parentId: number;
|
|
8098
|
+
parentDockId: number;
|
|
8099
|
+
childDockId: number;
|
|
8100
|
+
position?: Vector3;
|
|
8101
|
+
insertInBetween?: boolean;
|
|
8102
|
+
}
|
|
8103
|
+
|
|
7994
8104
|
export declare interface NeighboringObjectMeasurementInfo {
|
|
7995
8105
|
bounds: Box3;
|
|
7996
8106
|
id: number;
|
|
@@ -10258,7 +10368,7 @@ export declare interface PosGroup {
|
|
|
10258
10368
|
*/
|
|
10259
10369
|
pos?: number[];
|
|
10260
10370
|
/**
|
|
10261
|
-
* The rotation on the vertical axis in degree
|
|
10371
|
+
* The rotation on the vertical axis in degree, in [0°, 360°); 360° is written as 0°
|
|
10262
10372
|
*/
|
|
10263
10373
|
rotationY?: number;
|
|
10264
10374
|
/**
|
|
@@ -10331,7 +10441,7 @@ export declare interface PosModuleRootData extends PosModuleData, PosPositionInf
|
|
|
10331
10441
|
*/
|
|
10332
10442
|
articlePos?: number[];
|
|
10333
10443
|
/**
|
|
10334
|
-
* Rotation on the vertical axis in degree
|
|
10444
|
+
* Rotation on the vertical axis in degree, in [0°, 360°); 360° is written as 0°
|
|
10335
10445
|
*/
|
|
10336
10446
|
rotationY?: number;
|
|
10337
10447
|
logMessages: PosErrorMsg[];
|
|
@@ -10560,6 +10670,8 @@ export declare const enum RAPI_PATHS {
|
|
|
10560
10670
|
PLAN_SNAPSHOTS = "planSnapshots"
|
|
10561
10671
|
}
|
|
10562
10672
|
|
|
10673
|
+
export declare type RAPI_TEXTURE_ASSET_TYPE = 'image1k' | 'src';
|
|
10674
|
+
|
|
10563
10675
|
export declare const enum RAPI_TEXTURE_TYPE {
|
|
10564
10676
|
RGB = "RGB",// diffuse color texture
|
|
10565
10677
|
RGBA = "RGBA",// Diffuse color texture and opacity map
|
|
@@ -10596,7 +10708,6 @@ export declare class RapiAccess implements Context {
|
|
|
10596
10708
|
getPreloadForConfiguration(id: RapiId): Promise<void>;
|
|
10597
10709
|
private _getPreload;
|
|
10598
10710
|
changeUseOfHDGeometry(): void;
|
|
10599
|
-
getHSCPackage(id: RapiId): Promise<RapiPackage | void>;
|
|
10600
10711
|
getComponent(id: RapiId): Promise<RapiComponent>;
|
|
10601
10712
|
getConfiguration(id: RapiId): Promise<RapiConfiguration>;
|
|
10602
10713
|
getConfigurations(ids: RapiId[]): Promise<RapiConfiguration[]>;
|
|
@@ -10849,6 +10960,12 @@ export declare const enum RapiFavoriteType {
|
|
|
10849
10960
|
|
|
10850
10961
|
export declare type RapiId = string;
|
|
10851
10962
|
|
|
10963
|
+
export declare interface RapiImageAsset extends RapiJson {
|
|
10964
|
+
format: string;
|
|
10965
|
+
url: AssetUrl;
|
|
10966
|
+
generated: string;
|
|
10967
|
+
}
|
|
10968
|
+
|
|
10852
10969
|
/**
|
|
10853
10970
|
* Error thrown when _getById is called with an invalid or empty id.
|
|
10854
10971
|
* This is a programmer error and should not happen in production.
|
|
@@ -10983,12 +11100,6 @@ export declare class RapiOfflineError extends Error {
|
|
|
10983
11100
|
constructor(rapiPath: RAPI_PATHS, id: RapiId);
|
|
10984
11101
|
}
|
|
10985
11102
|
|
|
10986
|
-
export declare interface RapiPackage extends RapiJson {
|
|
10987
|
-
components: RapiComponent[];
|
|
10988
|
-
materials: RapiMaterial[];
|
|
10989
|
-
textures: RapiTexture[];
|
|
10990
|
-
}
|
|
10991
|
-
|
|
10992
11103
|
export declare interface RapiPlan extends RapiJson {
|
|
10993
11104
|
name: string;
|
|
10994
11105
|
description: string;
|
|
@@ -11165,9 +11276,12 @@ export declare interface RapiTexture extends RapiJson {
|
|
|
11165
11276
|
mmWidth: number;
|
|
11166
11277
|
tileable: boolean;
|
|
11167
11278
|
material: RapiId;
|
|
11168
|
-
|
|
11279
|
+
assets?: RapiTextureAssetMap;
|
|
11280
|
+
[key: string]: string | number | boolean | AssetUrl | RapiId | LinksCollection | RapiTextureAssetMap | null | undefined;
|
|
11169
11281
|
}
|
|
11170
11282
|
|
|
11283
|
+
export declare type RapiTextureAssetMap = Partial<Record<RAPI_TEXTURE_ASSET_TYPE, RapiImageAsset>>;
|
|
11284
|
+
|
|
11171
11285
|
export declare interface RapiUser extends RapiJson {
|
|
11172
11286
|
username: string;
|
|
11173
11287
|
salutationCode: number;
|
|
@@ -11705,6 +11819,8 @@ export declare class RoomleConfigurator<P extends readonly PluginName[] = readon
|
|
|
11705
11819
|
stopConfigurationAssistant(owner: string): Promise<void>;
|
|
11706
11820
|
/** Dispatches one prompt to the SDK session or the custom host agent. */
|
|
11707
11821
|
planningAssistantPrompt(prompt: PlanningAssistantPrompt): Promise<void>;
|
|
11822
|
+
/** The log of the configuration assistant's last started session; undefined without an SDK session. */
|
|
11823
|
+
getConfigurationAssistantReport(): ConfigurationAssistantLog | undefined;
|
|
11708
11824
|
/** Lists the native configurator's tools, loaded on the first agent request. */
|
|
11709
11825
|
getConfiguratorAgentTools(): Promise<AgentToolDefinition[]>;
|
|
11710
11826
|
/** Executes an agent tool and returns its MCP-shaped result. */
|
|
@@ -12911,6 +13027,7 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
12911
13027
|
[key: string]: string;
|
|
12912
13028
|
}>;
|
|
12913
13029
|
getExternalObjectValidSubArticles(posGroupId?: string): PosArticle[];
|
|
13030
|
+
getExternalObjectArticleInfo(groupId: string, rootModuleId: string): Pick<PosArticleInfo, 'articleId' | 'articleName' | 'desc'> | undefined;
|
|
12914
13031
|
selectExternalObjectSubArticle(subArticleId: string): void;
|
|
12915
13032
|
deleteExternalObjectSubArticle(posGroupId: string, subArticleId: string): Promise<void>;
|
|
12916
13033
|
_mergeExternalObjects(groupIds: string[]): Promise<void>;
|
|
@@ -14421,6 +14538,13 @@ export declare const enum Unit_2 {
|
|
|
14421
14538
|
CM = 2
|
|
14422
14539
|
}
|
|
14423
14540
|
|
|
14541
|
+
/** The root a unit above moves with, and the root its place was relative to. */
|
|
14542
|
+
export declare interface UnitAboveCarrier {
|
|
14543
|
+
carrierId: string;
|
|
14544
|
+
/** The root the unit stood above before the change: the carrier, or a root that left. */
|
|
14545
|
+
referenceId: string;
|
|
14546
|
+
}
|
|
14547
|
+
|
|
14424
14548
|
export declare class UnitFormatter implements Context {
|
|
14425
14549
|
_creator_: string;
|
|
14426
14550
|
_actualUnitString: string;
|
package/lib/roomle-headless.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
|
-
import { a as e, i as t, n, r, t as i } from "./packages-
|
|
2
|
+
import { a as e, i as t, n, r, t as i } from "./packages-DZzpY6V8.mjs";
|
|
3
3
|
import { i as a, t as o } from "./kernel-2ku6lFfE.mjs";
|
|
4
|
-
import { Ot as s, Tt as c, wt as l } from "./threejs-utils-
|
|
4
|
+
import { Ot as s, Tt as c, wt as l } from "./threejs-utils-D1gtvxiA.mjs";
|
|
5
5
|
import { m as u, nt as d, wi as f } from "./three.core-BpdpLVZy.mjs";
|
|
6
6
|
import { i as p } from "./decorate-CooD7C6J.mjs";
|
|
7
|
-
import { D as
|
|
8
|
-
import {
|
|
7
|
+
import { D as ee, H as m, g as te } from "./common-utils-zPOllvAT.mjs";
|
|
8
|
+
import { A as ne, C as re, G as ie, H as ae, J as oe, K as se, O as ce, V as le, X as ue, Y as h, Z as de, _ as fe, _t as pe, b as me, bt as he, c as ge, dt as g, f as _e, ft as _, gt as ve, ht as ye, i as v, j as y, k as b, l as x, m as S, mt as C, o as w, p as T, pt as E, q as D, r as O, s as k, t as A, u as j, ut as M, v as N, y as P, z as be } from "./roomle-sdk-CSH3WHXV.mjs";
|
|
9
9
|
import { n as xe } from "./roomle-renderer-hDktY-wA.mjs";
|
|
10
|
-
import { n as Se } from "./script-loader-
|
|
11
|
-
import { t as Ce } from "./configurator-
|
|
12
|
-
import { t as we } from "./planner-
|
|
13
|
-
import { n as Te, t as Ee } from "./glb-viewer-
|
|
14
|
-
import { t as De } from "./api-
|
|
10
|
+
import { n as Se } from "./script-loader-O8x5UOnP.mjs";
|
|
11
|
+
import { t as Ce } from "./configurator-BeDJ8jD1.mjs";
|
|
12
|
+
import { t as we } from "./planner-CuZaTB-P.mjs";
|
|
13
|
+
import { n as Te, t as Ee } from "./glb-viewer-BkU2Z-HJ.mjs";
|
|
14
|
+
import { t as De } from "./api-B_Mu7Mg1.mjs";
|
|
15
15
|
import { t as Oe } from "./roomle-headless-setup-Cbu025cl.mjs";
|
|
16
16
|
import { createRequire as ke } from "module";
|
|
17
17
|
//#region packages/headless-core/src/headless-tween-stub.ts
|
|
@@ -179,11 +179,14 @@ var Ae = {
|
|
|
179
179
|
requestAsset(e, t = !1) {
|
|
180
180
|
return e;
|
|
181
181
|
}
|
|
182
|
+
requestCachedAsset(e) {
|
|
183
|
+
return null;
|
|
184
|
+
}
|
|
182
185
|
setAlwaysUseCache(e) {}
|
|
183
186
|
preFillAssetCache(e, t) {}
|
|
184
|
-
}, Fe = class extends
|
|
187
|
+
}, Fe = class extends _e {
|
|
185
188
|
_getScriptLoaderKernelId(e) {
|
|
186
|
-
return e ===
|
|
189
|
+
return e === ae.PLANNER ? "kernel-planner" : "kernel";
|
|
187
190
|
}
|
|
188
191
|
useEnvironmentGeometry(e) {
|
|
189
192
|
if (!this._kernelInstance) throw Error("trying to set useEnvironmentGeometry but there is no kernel instance yet!");
|
|
@@ -202,7 +205,7 @@ var Ae = {
|
|
|
202
205
|
} : n;
|
|
203
206
|
} });
|
|
204
207
|
}
|
|
205
|
-
}, Le = class extends
|
|
208
|
+
}, Le = class extends v {
|
|
206
209
|
async addReflectiveFloor(e) {}
|
|
207
210
|
}, R = null;
|
|
208
211
|
function Re(e) {
|
|
@@ -357,7 +360,7 @@ var Ve = (e) => {
|
|
|
357
360
|
let { WebGPUPathTracer: t } = await import("./webgpu-CFHzLgQ9.mjs"), n = new t(e);
|
|
358
361
|
return n.useMegakernel(!0), n.dynamicLowRes = !1, n.renderDelay = 0, n.fadeDuration = 0, n.minSamples = 1, this._pathTracer = n, this._renderer = e, n;
|
|
359
362
|
}
|
|
360
|
-
}, We = class e extends
|
|
363
|
+
}, We = class e extends re {
|
|
361
364
|
constructor(...e) {
|
|
362
365
|
super(...e), this._headlessPathTracerRenderer = null;
|
|
363
366
|
}
|
|
@@ -371,7 +374,7 @@ var Ve = (e) => {
|
|
|
371
374
|
}
|
|
372
375
|
async _createRoomleRenderer(e) {
|
|
373
376
|
if (!e.isWebGPURenderer) return super._createRoomleRenderer(e);
|
|
374
|
-
let { RoomleWebGPURenderer: t } = await import("./roomle-webgpu-renderer-
|
|
377
|
+
let { RoomleWebGPURenderer: t } = await import("./roomle-webgpu-renderer-D43bHxhT.mjs");
|
|
375
378
|
return new t(this._creator_, e, !0, void 0, !1);
|
|
376
379
|
}
|
|
377
380
|
static hasExplicitCameraPlacement(e) {
|
|
@@ -435,7 +438,7 @@ var Ve = (e) => {
|
|
|
435
438
|
let { width: r, height: i } = e.domElement;
|
|
436
439
|
return t.readbackScaled(Math.max(1, Math.round(r * n)), Math.max(1, Math.round(i * n)));
|
|
437
440
|
}
|
|
438
|
-
}, G = class extends
|
|
441
|
+
}, G = class extends ge {
|
|
439
442
|
constructor(...e) {
|
|
440
443
|
super(...e), this._callbacks = /* @__PURE__ */ new Set(), this._dispatcherInstalled = !1;
|
|
441
444
|
}
|
|
@@ -445,11 +448,11 @@ var Ve = (e) => {
|
|
|
445
448
|
}), !0);
|
|
446
449
|
}
|
|
447
450
|
static async loadEquirectTexture(e) {
|
|
448
|
-
let t = await (e.toLowerCase().endsWith(".exr") ? new
|
|
451
|
+
let t = await (e.toLowerCase().endsWith(".exr") ? new j() : new x()).loadAsync(e);
|
|
449
452
|
return t.mapping = 303, t;
|
|
450
453
|
}
|
|
451
454
|
}, Ge = (e, t) => {
|
|
452
|
-
let n = new
|
|
455
|
+
let n = new M();
|
|
453
456
|
globalThis.__RML__DI__ = n;
|
|
454
457
|
class r extends Ne {
|
|
455
458
|
constructor(n) {
|
|
@@ -457,18 +460,18 @@ var Ve = (e) => {
|
|
|
457
460
|
}
|
|
458
461
|
}
|
|
459
462
|
let i = [
|
|
460
|
-
new
|
|
461
|
-
new
|
|
462
|
-
new
|
|
463
|
-
new
|
|
464
|
-
new
|
|
465
|
-
new
|
|
466
|
-
new
|
|
467
|
-
new
|
|
463
|
+
new _("script-loader", Me, g.CONTEXT, !0),
|
|
464
|
+
new _("dom-helper", r, g.CONTEXT, !0),
|
|
465
|
+
new _("data-syncer", Pe, g.GLOBAL, !0),
|
|
466
|
+
new _("planner-kernel-access", Fe, g.GLOBAL, !0),
|
|
467
|
+
new _("kernel-callback-guard", Ie, g.GLOBAL, !0),
|
|
468
|
+
new _("web-gpu-ground-shadow-reflection", Le, g.CONTEXT, !0),
|
|
469
|
+
new _("image-renderer", We, g.CONTEXT, !0),
|
|
470
|
+
new _("hdr-environment-loader", G, g.GLOBAL, !0)
|
|
468
471
|
];
|
|
469
|
-
return n.addDependencyInjectionAssignments(
|
|
472
|
+
return n.addDependencyInjectionAssignments(O), n.addDependencyInjectionAssignments(i), n;
|
|
470
473
|
}, K = 12e4, Ke = async (e, t) => {
|
|
471
|
-
let n = await
|
|
474
|
+
let n = await A.callbacks, r = n?.onReadyForRender, i = n ? new Promise((e) => {
|
|
472
475
|
n.onReadyForRender = () => {
|
|
473
476
|
try {
|
|
474
477
|
r?.();
|
|
@@ -477,7 +480,7 @@ var Ve = (e) => {
|
|
|
477
480
|
}
|
|
478
481
|
};
|
|
479
482
|
}) : Promise.resolve(), a = e.getSceneManager().whenRenderLoopFunctionApplied();
|
|
480
|
-
await t(e), await Promise.all([
|
|
483
|
+
await t(e), await Promise.all([m(i, "HeadlessRoomleSdk: onReadyForRender never fired, the scene never finished loading its assets", K), m(a, "HeadlessRoomleSdk: the plan was never added to the scene, the render loop never ran the scheduled scene-graph mutation", K)]);
|
|
481
484
|
}, q = (e) => {
|
|
482
485
|
let t = e.ssaa ?? (e.pathTracer ? 1 : 2), n = e.width ?? e.size ?? 1024, r = e.height ?? e.size ?? 1024;
|
|
483
486
|
return {
|
|
@@ -524,7 +527,7 @@ var Ve = (e) => {
|
|
|
524
527
|
}, Je = 1024, Ye = 768, Xe = "inline-plan-xml#", Ze = "inline-configuration#", Q = (e, t) => e && !t, Qe = class e {
|
|
525
528
|
static async create(t) {
|
|
526
529
|
let n = new e(t);
|
|
527
|
-
return await
|
|
530
|
+
return await A.setGlobalInitData({
|
|
528
531
|
configuratorId: t.configuratorId,
|
|
529
532
|
locale: t.locale,
|
|
530
533
|
tenant: t.tenant,
|
|
@@ -554,7 +557,7 @@ var Ve = (e) => {
|
|
|
554
557
|
async _bootPlanner() {
|
|
555
558
|
let { width: e, height: t, ...n } = this._initData;
|
|
556
559
|
if (n.moc === !1) throw Error("HeadlessRoomleSdk: planner requires moc:true");
|
|
557
|
-
let r = await
|
|
560
|
+
let r = await A.getPlanner({
|
|
558
561
|
...n,
|
|
559
562
|
moc: !0,
|
|
560
563
|
webGpu: !0,
|
|
@@ -598,7 +601,7 @@ var Ve = (e) => {
|
|
|
598
601
|
}
|
|
599
602
|
async _load(e, t, n, r) {
|
|
600
603
|
let i = await this._getPlanner();
|
|
601
|
-
if (i.getConfiguratorContext().baseContext =
|
|
604
|
+
if (i.getConfiguratorContext().baseContext = y.PLANNER, this._loadedScene?.identity === e) return;
|
|
602
605
|
this._loadedScene = null;
|
|
603
606
|
let a = Q(r, n);
|
|
604
607
|
this._useEnvironmentGeometry(a), await Ke(i, t), this._loadedScene = {
|
|
@@ -731,6 +734,6 @@ var Ve = (e) => {
|
|
|
731
734
|
$()?.setModelExportOngoing(e);
|
|
732
735
|
}, et = () => $()?.isModelExportOngoing() ?? !1;
|
|
733
736
|
//#endregion
|
|
734
|
-
export { o as CONFIGURATION_TYPE, l as CORE_EDGE_TYPE, c as CORE_FLOOR_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, Ce as Configurator,
|
|
737
|
+
export { o as CONFIGURATION_TYPE, l as CORE_EDGE_TYPE, c as CORE_FLOOR_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, Ce as Configurator, oe as FloorPlanElementViewModel, Ee as GlbViewer, S as HI_CONTEXT_ACTION, w as HI_GROUP_OPERATION, k as HI_TOOL_COMMAND, Qe as HeadlessRoomleSdk, E as HttpResponseError, D as MeasurementLinePlanElementViewModel, ce as PLAN_ELEMENT_CHANGE_TYPES, de as PlanElementViewModel, ue as PlanObjectViewModel, we as Planner, C as RapiAccess, ye as RapiInvalidIdError, ve as RapiOfflineError, De as RoomDesignerApi, be as RoomleConfigurator, Te as RoomleGLBViewer, he as RoomleLightSource, T as RoomlePlanner, A as RoomleSdk, h as StaticPlanObjectViewModel, ie as WallPlanElementViewModel, fe as createExtObj, le as createExtObjId, te as download, pe as getCatalogIdFromConfigurationHash, Oe as getHeadlessWebGpuMaxTextureDimension, se as isDeletedInvisibleWall, N as isExtObjId, P as isExternalObject, b as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, et as isModelExportOngoing, e as isPlanSnapshotId, ne as isSafari, ee as md5Hash, me as removeExtObjIdPrefix, $e as setModelExportOngoing, Re as setPathTracerExternalDenoiser, He as setPathTracerPreviewHook, Ve as setPathTracerProgressHook };
|
|
735
738
|
|
|
736
739
|
//# sourceMappingURL=roomle-headless.js.map
|