@roomle/web-sdk 7.0.0-alpha.1 → 7.0.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/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.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.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-DOHbOr7K.mjs} +2 -2
- package/lib/{api-1YHSF8TD.mjs.map → api-DOHbOr7K.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-DJD9A1xP.mjs} +38 -38
- package/lib/{configuration-operations-DI677LMN.mjs.map → configuration-operations-DJD9A1xP.mjs.map} +1 -1
- package/lib/configurator-D5Ehj649.mjs +3 -0
- package/lib/configurator-DCynrn7X.mjs +46 -0
- package/lib/{configurator-CgFJ2voV.mjs.map → configurator-DCynrn7X.mjs.map} +1 -1
- package/lib/{configurator-capabilities-CLqul800.mjs → configurator-capabilities-BfSMwdWh.mjs} +12 -12
- package/lib/{configurator-capabilities-CLqul800.mjs.map → configurator-capabilities-BfSMwdWh.mjs.map} +1 -1
- package/lib/configurator-capabilities-DAJuxSTw.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-BhiCqjpE.mjs} +24 -24
- package/lib/{glb-viewer-B2WH46su.mjs.map → glb-viewer-BhiCqjpE.mjs.map} +1 -1
- package/lib/glb-viewer-BrggGLte.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-DuFtYgdG.mjs} +3 -3
- package/lib/{homag-intelligence-CdYda0Mb.mjs.map → homag-intelligence-DuFtYgdG.mjs.map} +1 -1
- package/lib/{material-viewer-BrARE0p0.mjs → material-viewer-uEDqIbCx.mjs} +25 -21
- package/lib/material-viewer-uEDqIbCx.mjs.map +1 -0
- package/lib/{packages-DhBz4dX3.mjs → packages-DOCmEOxI.mjs} +6 -6
- package/lib/{packages-DhBz4dX3.mjs.map → packages-DOCmEOxI.mjs.map} +1 -1
- package/lib/planner-B9GbQLSB.mjs +3 -0
- package/lib/{planner-SRvOM5ZQ.mjs → planner-D8UVNfkJ.mjs} +16 -16
- package/lib/{planner-SRvOM5ZQ.mjs.map → planner-D8UVNfkJ.mjs.map} +1 -1
- package/lib/roomle-headless.d.ts +14 -18
- package/lib/roomle-headless.js +35 -32
- package/lib/roomle-headless.js.map +1 -1
- package/lib/{roomle-sdk-Sdrd7K0F.mjs → roomle-sdk-C0YpFZdj.mjs} +24740 -24770
- package/lib/roomle-sdk-C0YpFZdj.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +14 -18
- package/lib/roomle-sdk.js +9 -9
- package/lib/{roomle-webgpu-renderer-CWoN5YzU.mjs → roomle-webgpu-renderer-DZ9LaZfc.mjs} +3 -3
- package/lib/{roomle-webgpu-renderer-CWoN5YzU.mjs.map → roomle-webgpu-renderer-DZ9LaZfc.mjs.map} +1 -1
- 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-jRBMP-ca.mjs} +2 -2
- package/lib/{script-loader-D9Tr-8LN.mjs.map → script-loader-jRBMP-ca.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/wasm_modern/ConfiguratorKernel.wasm +0 -0
- 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-k93qrqfB.mjs} +6 -6
- package/lib/{tools-core-BBYYzygJ.mjs.map → tools-core-k93qrqfB.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/configurator-AwPowYQR.mjs +0 -3
- package/lib/configurator-CgFJ2voV.mjs +0 -46
- package/lib/configurator-capabilities-Dg8oD49T.mjs +0 -3
- package/lib/glb-viewer-sxVA5IgD.mjs +0 -3
- 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
|
@@ -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-C0YpFZdj.mjs";
|
|
4
|
+
import "./configurator-DCynrn7X.mjs";
|
|
5
|
+
import "./planner-D8UVNfkJ.mjs";
|
|
6
|
+
import "./glb-viewer-BhiCqjpE.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-DOCmEOxI.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packages-
|
|
1
|
+
{"version":3,"file":"packages-DOCmEOxI.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-C0YpFZdj.mjs";
|
|
3
|
+
import { t as h } from "./script-loader-jRBMP-ca.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-D8UVNfkJ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planner-
|
|
1
|
+
{"version":3,"file":"planner-D8UVNfkJ.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
|
@@ -1962,7 +1962,6 @@ export declare class ConfiguratorKernelAccess extends CommonKernelAccess {
|
|
|
1962
1962
|
private _updateComponentDependencies;
|
|
1963
1963
|
private _updatePlanObjectParameters;
|
|
1964
1964
|
private _updateCommonPlanObjectParameters;
|
|
1965
|
-
private _enableRootComponentParametersAsGlobal;
|
|
1966
1965
|
private _updatePlanObjectChildren;
|
|
1967
1966
|
updatePlanObjectDependencies(planObjectId: number): void;
|
|
1968
1967
|
/** Sends the parameters and possible children of the selected components of the plan object to the UI. */
|
|
@@ -2659,14 +2658,6 @@ export declare class ConfiguratorUiCallbacks extends UiCallback implements Confi
|
|
|
2659
2658
|
ids: RapiId[];
|
|
2660
2659
|
message: string;
|
|
2661
2660
|
}) => 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
2661
|
/**
|
|
2671
2662
|
* When UI should show floor material selection
|
|
2672
2663
|
*/
|
|
@@ -3694,7 +3685,6 @@ export declare class DataSyncer implements Context, CommunicationInterfaceCallba
|
|
|
3694
3685
|
private _isStarting;
|
|
3695
3686
|
private _alwaysUseCache;
|
|
3696
3687
|
constructor(creator: string);
|
|
3697
|
-
start(catalogId: RapiId): Promise<void>;
|
|
3698
3688
|
syncCatalog(catalogId: RapiId): Promise<void>;
|
|
3699
3689
|
syncFloorTag(tagId: RapiId): Promise<any>;
|
|
3700
3690
|
syncTypeChangeTag(tagId: RapiId): Promise<any>;
|
|
@@ -3714,6 +3704,7 @@ export declare class DataSyncer implements Context, CommunicationInterfaceCallba
|
|
|
3714
3704
|
private _assetUrlToBase64;
|
|
3715
3705
|
private _softReject;
|
|
3716
3706
|
requestAsset(url: string, urlAsFallback?: boolean): AssetUrl | null;
|
|
3707
|
+
requestCachedAsset(url: string): AssetUrl | null;
|
|
3717
3708
|
setAlwaysUseCache(alwaysUseCache: boolean): void;
|
|
3718
3709
|
preFillAssetCache(key: string, url: string): void;
|
|
3719
3710
|
}
|
|
@@ -7950,6 +7941,7 @@ export declare class MeshGenerator implements Context {
|
|
|
7950
7941
|
private _loadBenchmarkTextures;
|
|
7951
7942
|
protected _loadTextures(rapiMaterial: RapiMaterial, material: MeshPhysicalMaterial, width?: number, height?: number): Promise<void>;
|
|
7952
7943
|
private _addTexturesToMaterial;
|
|
7944
|
+
private _addTextureAsset;
|
|
7953
7945
|
protected _loadMaterial(materialId: string, width?: number, height?: number): Promise<Material>;
|
|
7954
7946
|
protected _assignMaterial(mesh: Mesh, materialId: string, materialAttributes?: Record<string, string | null>): Promise<void>;
|
|
7955
7947
|
get maxAnisotropy(): number;
|
|
@@ -10560,6 +10552,8 @@ export declare const enum RAPI_PATHS {
|
|
|
10560
10552
|
PLAN_SNAPSHOTS = "planSnapshots"
|
|
10561
10553
|
}
|
|
10562
10554
|
|
|
10555
|
+
export declare type RAPI_TEXTURE_ASSET_TYPE = 'image1k' | 'src';
|
|
10556
|
+
|
|
10563
10557
|
export declare const enum RAPI_TEXTURE_TYPE {
|
|
10564
10558
|
RGB = "RGB",// diffuse color texture
|
|
10565
10559
|
RGBA = "RGBA",// Diffuse color texture and opacity map
|
|
@@ -10596,7 +10590,6 @@ export declare class RapiAccess implements Context {
|
|
|
10596
10590
|
getPreloadForConfiguration(id: RapiId): Promise<void>;
|
|
10597
10591
|
private _getPreload;
|
|
10598
10592
|
changeUseOfHDGeometry(): void;
|
|
10599
|
-
getHSCPackage(id: RapiId): Promise<RapiPackage | void>;
|
|
10600
10593
|
getComponent(id: RapiId): Promise<RapiComponent>;
|
|
10601
10594
|
getConfiguration(id: RapiId): Promise<RapiConfiguration>;
|
|
10602
10595
|
getConfigurations(ids: RapiId[]): Promise<RapiConfiguration[]>;
|
|
@@ -10849,6 +10842,12 @@ export declare const enum RapiFavoriteType {
|
|
|
10849
10842
|
|
|
10850
10843
|
export declare type RapiId = string;
|
|
10851
10844
|
|
|
10845
|
+
export declare interface RapiImageAsset extends RapiJson {
|
|
10846
|
+
format: string;
|
|
10847
|
+
url: AssetUrl;
|
|
10848
|
+
generated: string;
|
|
10849
|
+
}
|
|
10850
|
+
|
|
10852
10851
|
/**
|
|
10853
10852
|
* Error thrown when _getById is called with an invalid or empty id.
|
|
10854
10853
|
* This is a programmer error and should not happen in production.
|
|
@@ -10983,12 +10982,6 @@ export declare class RapiOfflineError extends Error {
|
|
|
10983
10982
|
constructor(rapiPath: RAPI_PATHS, id: RapiId);
|
|
10984
10983
|
}
|
|
10985
10984
|
|
|
10986
|
-
export declare interface RapiPackage extends RapiJson {
|
|
10987
|
-
components: RapiComponent[];
|
|
10988
|
-
materials: RapiMaterial[];
|
|
10989
|
-
textures: RapiTexture[];
|
|
10990
|
-
}
|
|
10991
|
-
|
|
10992
10985
|
export declare interface RapiPlan extends RapiJson {
|
|
10993
10986
|
name: string;
|
|
10994
10987
|
description: string;
|
|
@@ -11165,9 +11158,12 @@ export declare interface RapiTexture extends RapiJson {
|
|
|
11165
11158
|
mmWidth: number;
|
|
11166
11159
|
tileable: boolean;
|
|
11167
11160
|
material: RapiId;
|
|
11168
|
-
|
|
11161
|
+
assets?: RapiTextureAssetMap;
|
|
11162
|
+
[key: string]: string | number | boolean | AssetUrl | RapiId | LinksCollection | RapiTextureAssetMap | null | undefined;
|
|
11169
11163
|
}
|
|
11170
11164
|
|
|
11165
|
+
export declare type RapiTextureAssetMap = Partial<Record<RAPI_TEXTURE_ASSET_TYPE, RapiImageAsset>>;
|
|
11166
|
+
|
|
11171
11167
|
export declare interface RapiUser extends RapiJson {
|
|
11172
11168
|
username: string;
|
|
11173
11169
|
salutationCode: number;
|
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-DOCmEOxI.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-C0YpFZdj.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-jRBMP-ca.mjs";
|
|
11
|
+
import { t as Ce } from "./configurator-DCynrn7X.mjs";
|
|
12
|
+
import { t as we } from "./planner-D8UVNfkJ.mjs";
|
|
13
|
+
import { n as Te, t as Ee } from "./glb-viewer-BhiCqjpE.mjs";
|
|
14
|
+
import { t as De } from "./api-DOHbOr7K.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-DZ9LaZfc.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
|