@roomle/web-sdk 7.0.0-alpha.5 → 7.0.0-alpha.7
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/README.md +6 -0
- package/SECURITY.md +5 -0
- package/THIRD-PARTY-NOTICES.txt +2 -2
- package/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{agent-prompts-BeAIZFWu.mjs → agent-prompts-CcwnXAhR.mjs} +10 -10
- package/lib/{agent-prompts-BeAIZFWu.mjs.map → agent-prompts-CcwnXAhR.mjs.map} +1 -1
- package/lib/{api-0LgvKoxe.mjs → api-BngprCu5.mjs} +2 -2
- package/lib/{api-0LgvKoxe.mjs.map → api-BngprCu5.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/{configuration-operations-B7uJDX_4.mjs → configuration-operations-CbqNZZmc.mjs} +3 -3
- package/lib/{configuration-operations-B7uJDX_4.mjs.map → configuration-operations-CbqNZZmc.mjs.map} +1 -1
- package/lib/configurator-DX-SJ2DK.mjs +3 -0
- package/lib/{configurator-capabilities-o8fQ6Ang.mjs → configurator-capabilities-70kymvOa.mjs} +2 -2
- package/lib/{configurator-capabilities-o8fQ6Ang.mjs.map → configurator-capabilities-70kymvOa.mjs.map} +1 -1
- package/lib/configurator-capabilities-Wcmqit2B.mjs +3 -0
- package/lib/{configurator-CU7jNdgC.mjs → configurator-jkfY1b5y.mjs} +3 -3
- package/lib/{configurator-CU7jNdgC.mjs.map → configurator-jkfY1b5y.mjs.map} +1 -1
- package/lib/glb-viewer-B9-VYIi2.mjs +3 -0
- package/lib/{glb-viewer-BByRaJ8F.mjs → glb-viewer-DoM6-7Kf.mjs} +3 -3
- package/lib/{glb-viewer-BByRaJ8F.mjs.map → glb-viewer-DoM6-7Kf.mjs.map} +1 -1
- package/lib/{homag-intelligence-wHSuuAC4.mjs → homag-intelligence-BvEIC4Sg.mjs} +3 -3
- package/lib/{homag-intelligence-wHSuuAC4.mjs.map → homag-intelligence-BvEIC4Sg.mjs.map} +1 -1
- package/lib/{material-viewer-beYa7Vpa.mjs → material-viewer-B1Qh9EMt.mjs} +3 -3
- package/lib/{material-viewer-beYa7Vpa.mjs.map → material-viewer-B1Qh9EMt.mjs.map} +1 -1
- package/lib/{packages-BrZdc9Gx.mjs → packages-CaHy27Po.mjs} +5 -5
- package/lib/{packages-BrZdc9Gx.mjs.map → packages-CaHy27Po.mjs.map} +1 -1
- package/lib/planner-B4_PoCyq.mjs +3 -0
- package/lib/{planner-CSOl3bpc.mjs → planner-BB1NDAKt.mjs} +3 -3
- package/lib/{planner-CSOl3bpc.mjs.map → planner-BB1NDAKt.mjs.map} +1 -1
- package/lib/roomle-headless.d.ts +4 -9
- package/lib/roomle-headless.js +7 -7
- package/lib/{roomle-sdk-ByoTm5M6.mjs → roomle-sdk-DfS6QwCf.mjs} +20 -17
- package/lib/{roomle-sdk-ByoTm5M6.mjs.map → roomle-sdk-DfS6QwCf.mjs.map} +1 -1
- package/lib/roomle-sdk.d.ts +4 -9
- package/lib/roomle-sdk.js +6 -6
- package/lib/{script-loader-DGVS2Wqe.mjs → script-loader-BBj6hFD3.mjs} +2 -2
- package/lib/{script-loader-DGVS2Wqe.mjs.map → script-loader-BBj6hFD3.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/plannerCoreInterface.d.ts +3 -7
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js.map +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/{tools-core-eVa8OooA.mjs → tools-core-BUWB0g7Y.mjs} +3 -3
- package/lib/{tools-core-eVa8OooA.mjs.map → tools-core-BUWB0g7Y.mjs.map} +1 -1
- package/package.json +2 -2
- package/sbom.cdx.json +5 -5
- package/lib/configurator-c5g9sbhL.mjs +0 -3
- package/lib/configurator-capabilities-Cr6BAnms.mjs +0 -3
- package/lib/glb-viewer-q6BU-GNu.mjs +0 -3
- package/lib/planner-C0ylcrU1.mjs +0 -3
package/lib/roomle-headless.d.ts
CHANGED
|
@@ -3069,6 +3069,9 @@ export declare interface ConstructionObject_2 extends PlanObject_2 {
|
|
|
3069
3069
|
connectorWidth?: number;
|
|
3070
3070
|
connectorHeight?: number;
|
|
3071
3071
|
connectorOverlap?: number;
|
|
3072
|
+
userDefined: boolean;
|
|
3073
|
+
moduleHeight?: number;
|
|
3074
|
+
moduleLength?: number;
|
|
3072
3075
|
distributionType?: string;
|
|
3073
3076
|
assemblyParts: {
|
|
3074
3077
|
objectType: string;
|
|
@@ -4945,13 +4948,6 @@ export declare interface ExternalPlanInstallationElement {
|
|
|
4945
4948
|
|
|
4946
4949
|
export declare type ExternalPlanInstallationElementType = 'ElectricPlug' | 'WaterConnection';
|
|
4947
4950
|
|
|
4948
|
-
export declare interface ExternalPlanObjectMesh {
|
|
4949
|
-
indices: Int32Array | number[];
|
|
4950
|
-
vertices: Float32Array | number[];
|
|
4951
|
-
normals?: Float32Array | number[];
|
|
4952
|
-
uvs?: Float32Array | number[];
|
|
4953
|
-
}
|
|
4954
|
-
|
|
4955
4951
|
export declare type ExternalPlanObstacleKind = 'group' | 'door' | 'window' | 'object';
|
|
4956
4952
|
|
|
4957
4953
|
export declare interface ExternalPlanObstacles {
|
|
@@ -8827,7 +8823,6 @@ export declare interface PlanInteractionHandler_2 {
|
|
|
8827
8823
|
catalogItemLoaded(catalogItem: CatalogItem_2): void;
|
|
8828
8824
|
addMeasure(startPosition: Vector3, endPosition: Vector3): PlanMeasure_2;
|
|
8829
8825
|
addImage(url: string, center: Vector3, size: Vector3, rotation: Vector3): PlanImage_2;
|
|
8830
|
-
setPlanObjectMesh(object: PlanObject_2, mesh: ExternalPlanObjectMesh | ExternalPlanObjectMesh[]): void;
|
|
8831
8826
|
getPlan(): Plan_2;
|
|
8832
8827
|
setPlan(plan: Plan_2): void;
|
|
8833
8828
|
clearPlan(): void;
|
|
@@ -13813,7 +13808,7 @@ export declare abstract class SceneManager implements Context, LifeCycleCallback
|
|
|
13813
13808
|
getCameraOffset(): CanvasOffset;
|
|
13814
13809
|
getOrthographicOffsetCamera(): OrthographicOffsetCamera;
|
|
13815
13810
|
protected getPerspectiveOffsetCamera(): PerspectiveOffsetCamera;
|
|
13816
|
-
protected updateEnvironment(bounds
|
|
13811
|
+
protected updateEnvironment(bounds?: Box3, force?: boolean): void;
|
|
13817
13812
|
protected _updateRendererBounds(bounds: Box3): void;
|
|
13818
13813
|
protected _onCameraIdle(): boolean;
|
|
13819
13814
|
protected _onCameraMove(): boolean;
|
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-CaHy27Po.mjs";
|
|
3
3
|
import { i as a, t as o } from "./kernel-2ku6lFfE.mjs";
|
|
4
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
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-
|
|
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-DfS6QwCf.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-BBj6hFD3.mjs";
|
|
11
|
+
import { t as Ce } from "./configurator-jkfY1b5y.mjs";
|
|
12
|
+
import { t as we } from "./planner-BB1NDAKt.mjs";
|
|
13
|
+
import { n as Te, t as Ee } from "./glb-viewer-DoM6-7Kf.mjs";
|
|
14
|
+
import { t as De } from "./api-BngprCu5.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
|
|
@@ -41404,7 +41404,7 @@ var df = (e, t) => !e.sort && !t.sort ? 0 : e.sort ? t.sort ? e.sort - t.sort :
|
|
|
41404
41404
|
};
|
|
41405
41405
|
}
|
|
41406
41406
|
async getConfiguratorAgentPrompts() {
|
|
41407
|
-
let { getConfiguratorAgentPrompts: e } = await import("./agent-prompts-
|
|
41407
|
+
let { getConfiguratorAgentPrompts: e } = await import("./agent-prompts-CcwnXAhR.mjs"), t, n = !1;
|
|
41408
41408
|
try {
|
|
41409
41409
|
let e = await this.queryConfigurationOperation("productContext");
|
|
41410
41410
|
t = e.product, n = e.unresolved.length === 0;
|
|
@@ -41420,15 +41420,15 @@ var df = (e, t) => !e.sort && !t.sort ? 0 : e.sort ? t.sort ? e.sort - t.sort :
|
|
|
41420
41420
|
}), this._configuratorAgentTools;
|
|
41421
41421
|
}
|
|
41422
41422
|
async getConfiguratorCapabilities(e) {
|
|
41423
|
-
let { collectConfiguratorCapabilities: t } = await import("./configurator-capabilities-
|
|
41423
|
+
let { collectConfiguratorCapabilities: t } = await import("./configurator-capabilities-Wcmqit2B.mjs");
|
|
41424
41424
|
return t(this._configuratorContext, this._plannerKernelAccess, this._rapiAccess, e);
|
|
41425
41425
|
}
|
|
41426
41426
|
async queryConfigurationOperation(e, t) {
|
|
41427
|
-
let { queryConfigurationOperation: n } = await import("./configuration-operations-
|
|
41427
|
+
let { queryConfigurationOperation: n } = await import("./configuration-operations-CbqNZZmc.mjs");
|
|
41428
41428
|
return n(this._configuratorContext, this._plannerKernelAccess, this._rapiAccess, this, e, t);
|
|
41429
41429
|
}
|
|
41430
41430
|
async executeConfigurationOperation(e, t) {
|
|
41431
|
-
let { executeConfigurationOperation: n } = await import("./configuration-operations-
|
|
41431
|
+
let { executeConfigurationOperation: n } = await import("./configuration-operations-CbqNZZmc.mjs");
|
|
41432
41432
|
return n(this._configuratorContext, this._plannerKernelAccess, this._rapiAccess, this, () => this._sceneManager.getConfigurationHistoryState(), e, t);
|
|
41433
41433
|
}
|
|
41434
41434
|
getParametersOfPlanObject() {
|
|
@@ -47649,7 +47649,7 @@ var eg = 3e3, tg = .65, ng = 1.16, rg = class {
|
|
|
47649
47649
|
_updateBounds(e, t, n = !1) {
|
|
47650
47650
|
if (!e) return;
|
|
47651
47651
|
let r = t ?? e;
|
|
47652
|
-
this.updateEnvironment(r, n), this.
|
|
47652
|
+
this.updateEnvironment(r, n), this._lightSetting && this._lightSetting.needsBounds() && this._lightSetting.updateBounds(e), this._requestRender(), this._pluginSystem.updateBounds(e);
|
|
47653
47653
|
}
|
|
47654
47654
|
setCameraOffset(e) {
|
|
47655
47655
|
let t = this.cameraBehaviour.cameraControl.getCamera(), n = t || t;
|
|
@@ -47679,9 +47679,12 @@ var eg = 3e3, tg = .65, ng = 1.16, rg = class {
|
|
|
47679
47679
|
return this._perspectiveOffsetCamera;
|
|
47680
47680
|
}
|
|
47681
47681
|
updateEnvironment(e, t = !1) {
|
|
47682
|
-
if (
|
|
47683
|
-
|
|
47684
|
-
|
|
47682
|
+
if (e) {
|
|
47683
|
+
if (this._environment && this._environment.needsBounds()) {
|
|
47684
|
+
let n = e.getSize(new k());
|
|
47685
|
+
(n.x + n.y + n.z !== 0 || t) && this._environment.updateBounds(e.getSize(new k()), t);
|
|
47686
|
+
}
|
|
47687
|
+
this._updateRendererBounds(e);
|
|
47685
47688
|
}
|
|
47686
47689
|
}
|
|
47687
47690
|
_updateRendererBounds(e) {
|
|
@@ -54440,7 +54443,7 @@ var ey = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
54440
54443
|
async switchToConfigurator() {
|
|
54441
54444
|
let e = await this._singlePromiseFactory.create(Bo.START_HSC, "startHSC", (e) => {
|
|
54442
54445
|
if (this._hscInstance) return e(this._hscInstance);
|
|
54443
|
-
import("./configurator-
|
|
54446
|
+
import("./configurator-DX-SJ2DK.mjs").then(({ Configurator: t }) => {
|
|
54444
54447
|
let n = new t(this._creator_);
|
|
54445
54448
|
n.boot({
|
|
54446
54449
|
kernelInstance: this._planInteractionManager.getConfiguratorKernel(),
|
|
@@ -54458,7 +54461,7 @@ var ey = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
54458
54461
|
async switchToViewer() {
|
|
54459
54462
|
let e = await this._singlePromiseFactory.create(Bo.START_GLB, "startGLB", (e) => {
|
|
54460
54463
|
if (this._glbInstance) return e(this._glbInstance);
|
|
54461
|
-
import("./glb-viewer-
|
|
54464
|
+
import("./glb-viewer-B9-VYIi2.mjs").then((t) => {
|
|
54462
54465
|
let n = new t.GlbViewer(this._creator_);
|
|
54463
54466
|
n.boot(), n.getApi().setOverrides(this._initData);
|
|
54464
54467
|
let r = this._domHelper.element;
|
|
@@ -55571,7 +55574,7 @@ var ey = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
55571
55574
|
globalInitData: JSON.parse(JSON.stringify(this._globalInitData))
|
|
55572
55575
|
}, "*", [t.port2]);
|
|
55573
55576
|
let n = Fv(t.port1), r = null;
|
|
55574
|
-
this._initData.hi?.libraryId && (r = n.onLoadArticleCatalog(this._initData.hi.libraryId), this._earlyHiTagCatalogCallbacks = new $v(this._creator_, r)), await new (await (import("./homag-intelligence-
|
|
55577
|
+
this._initData.hi?.libraryId && (r = n.onLoadArticleCatalog(this._initData.hi.libraryId), this._earlyHiTagCatalogCallbacks = new $v(this._creator_, r)), await new (await (import("./homag-intelligence-BvEIC4Sg.mjs"))).HomagIntelligence(this, e, n, () => this._plannerKernelAccess.arrangementCorrectionEnabled).loadSavedPosData(), this._initData.hi?.libraryId && await this.loadExternalObjectLibrary(this._initData.hi.libraryId, r ?? void 0);
|
|
55575
55578
|
}
|
|
55576
55579
|
async _loadHomagIntelligenceArticles(e, t) {
|
|
55577
55580
|
let n = this._homagIntelligence;
|
|
@@ -66067,7 +66070,7 @@ var nA = [
|
|
|
66067
66070
|
static getConfigurator(e, t) {
|
|
66068
66071
|
t = this._setupDI(X.CONFIGURATOR, e, t);
|
|
66069
66072
|
let n = rA.lookup("global-init-data");
|
|
66070
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-
|
|
66073
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-DX-SJ2DK.mjs").then(({ Configurator: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
66071
66074
|
}
|
|
66072
66075
|
static getPlanner(e, t) {
|
|
66073
66076
|
return this._getPlanner(e, t);
|
|
@@ -66078,15 +66081,15 @@ var nA = [
|
|
|
66078
66081
|
static async getGlbViewer(e, t) {
|
|
66079
66082
|
t = this._setupDI(X.GLB_VIEWER, e, t);
|
|
66080
66083
|
let n = rA.lookup("global-init-data");
|
|
66081
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-
|
|
66084
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-B9-VYIi2.mjs").then(({ GlbViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
66082
66085
|
}
|
|
66083
66086
|
static getMaterialViewer(e, t) {
|
|
66084
66087
|
t = this._setupDI(X.CONFIGURATOR, e, t);
|
|
66085
66088
|
let n = rA.lookup("global-init-data");
|
|
66086
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-
|
|
66089
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-B1Qh9EMt.mjs").then(({ MaterialViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
66087
66090
|
}
|
|
66088
66091
|
static getCoreTools(e, t) {
|
|
66089
|
-
return t = this._setupDI(X.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-
|
|
66092
|
+
return t = this._setupDI(X.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-BUWB0g7Y.mjs").then(({ ToolsCore: n }) => {
|
|
66090
66093
|
let r = new n(t);
|
|
66091
66094
|
r.boot(), e(r);
|
|
66092
66095
|
}, n));
|
|
@@ -66114,7 +66117,7 @@ var nA = [
|
|
|
66114
66117
|
}
|
|
66115
66118
|
static _getPlanner(e, t, n) {
|
|
66116
66119
|
let r = this._setupDI(X.PLANNER, e, t), i = rA.lookup("global-init-data");
|
|
66117
|
-
return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-
|
|
66120
|
+
return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-B4_PoCyq.mjs").then(({ Planner: t }) => {
|
|
66118
66121
|
e(n ? new t(r, n) : new t(r));
|
|
66119
66122
|
}, t)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
66120
66123
|
}
|
|
@@ -66131,4 +66134,4 @@ var nA = [
|
|
|
66131
66134
|
//#endregion
|
|
66132
66135
|
export { wl as $, Tm as A, gf as B, ug as C, Jm as D, rh as E, rp as F, Md as G, nf as H, Y as I, Hu as J, md as K, Jf as L, Op as M, Cp as N, Wm as O, bp as P, Pl as Q, Wf as R, dg as S, rg as T, Kd as U, hf as V, zd as W, Nu as X, Iu as Y, Eu as Z, yg as _, Wa as _t, hO as a, vs as at, gg as b, Ma as bt, Wy as c, ts as ct, Ay as d, H as dt, _l as et, Dy as f, U as ft, Og as g, Ao as gt, xv as h, jo as ht, bO as i, K as it, X as j, wm as k, Uy as l, Bo as lt, Sv as m, Fo as mt, rA as n, fl as nt, FS as o, is as ot, cy as p, Io as pt, rd as q, nA as r, Zc as rt, IS as s, rs as st, iA as t, hl as tt, Hy as u, zo as ut, _g as v, Ra as vt, ig as w, mg as x, vg as y, Na as yt, Uf as z };
|
|
66133
66136
|
|
|
66134
|
-
//# sourceMappingURL=roomle-sdk-
|
|
66137
|
+
//# sourceMappingURL=roomle-sdk-DfS6QwCf.mjs.map
|