@roomle/web-sdk 2.107.0 → 2.108.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/{PointLightHelper-BkdQaOKc.js → PointLightHelper-B8VP_55Z.js} +2 -2
- package/lib/{PointLightHelper-BkdQaOKc.js.map → PointLightHelper-B8VP_55Z.js.map} +1 -1
- package/lib/{PointLightHelper-qhWtXw8x.mjs → PointLightHelper-DtoZq5ME.mjs} +2 -2
- package/lib/{PointLightHelper-qhWtXw8x.mjs.map → PointLightHelper-DtoZq5ME.mjs.map} +1 -1
- package/lib/RoomleCore.js +6 -6
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{banana-for-scale-XjIfe69B.js → banana-for-scale-BVlDK4jg.js} +2 -2
- package/lib/{banana-for-scale-XjIfe69B.js.map → banana-for-scale-BVlDK4jg.js.map} +1 -1
- package/lib/{banana-for-scale-CDGM3hdN.mjs → banana-for-scale-CKSlc9Tc.mjs} +2 -2
- package/lib/{banana-for-scale-CDGM3hdN.mjs.map → banana-for-scale-CKSlc9Tc.mjs.map} +1 -1
- package/lib/camera-behaviour-CzgZxW1D.js +50 -0
- package/lib/camera-behaviour-CzgZxW1D.js.map +1 -0
- package/lib/{camera-behaviour-BLMduSEn.mjs → camera-behaviour-DWkBHxkk.mjs} +79 -75
- package/lib/camera-behaviour-DWkBHxkk.mjs.map +1 -0
- package/lib/{component-dimensioning-Do75G-kI.js → component-dimensioning-CUoDDxfk.js} +2 -2
- package/lib/{component-dimensioning-Do75G-kI.js.map → component-dimensioning-CUoDDxfk.js.map} +1 -1
- package/lib/{component-dimensioning-DvCO0pEp.mjs → component-dimensioning-CgVIP7Nu.mjs} +2 -2
- package/lib/{component-dimensioning-DvCO0pEp.mjs.map → component-dimensioning-CgVIP7Nu.mjs.map} +1 -1
- package/lib/{component-raycast-helper-Dl-pzfg_.js → component-raycast-helper-DvNtWlR5.js} +2 -2
- package/lib/{component-raycast-helper-Dl-pzfg_.js.map → component-raycast-helper-DvNtWlR5.js.map} +1 -1
- package/lib/{component-raycast-helper-CuZdUtrH.mjs → component-raycast-helper-zAwc-AuF.mjs} +2 -2
- package/lib/{component-raycast-helper-CuZdUtrH.mjs.map → component-raycast-helper-zAwc-AuF.mjs.map} +1 -1
- package/lib/{configurator-CT_ghGbX.mjs → configurator-DDhzCgxy.mjs} +6 -6
- package/lib/{configurator-CT_ghGbX.mjs.map → configurator-DDhzCgxy.mjs.map} +1 -1
- package/lib/{configurator-B01iJTNa.js → configurator-DJnpG8CG.js} +2 -2
- package/lib/{configurator-B01iJTNa.js.map → configurator-DJnpG8CG.js.map} +1 -1
- package/lib/configurator-scene-manager-Bxdyg2zz.js +2 -0
- package/lib/configurator-scene-manager-Bxdyg2zz.js.map +1 -0
- package/lib/{configurator-scene-manager-DbsYS4rm.mjs → configurator-scene-manager-DnZvFw0N.mjs} +150 -162
- package/lib/configurator-scene-manager-DnZvFw0N.mjs.map +1 -0
- package/lib/configurator.js +1 -1
- package/lib/configurator.nomodule.js +1 -1
- package/lib/{continuous-drawing-helper-DdnnCOqZ.js → continuous-drawing-helper-C6qDGAxa.js} +2 -2
- package/lib/{continuous-drawing-helper-DdnnCOqZ.js.map → continuous-drawing-helper-C6qDGAxa.js.map} +1 -1
- package/lib/{continuous-drawing-helper-DrpQFppG.mjs → continuous-drawing-helper-DbTM7uCv.mjs} +2 -2
- package/lib/{continuous-drawing-helper-DrpQFppG.mjs.map → continuous-drawing-helper-DbTM7uCv.mjs.map} +1 -1
- package/lib/{default-light-setting-D0Ie_AEw.mjs → default-light-setting-BdD0jDeP.mjs} +3 -3
- package/lib/{default-light-setting-D0Ie_AEw.mjs.map → default-light-setting-BdD0jDeP.mjs.map} +1 -1
- package/lib/{default-light-setting-DQxt3v5x.js → default-light-setting-CYiFuxeI.js} +2 -2
- package/lib/{default-light-setting-DQxt3v5x.js.map → default-light-setting-CYiFuxeI.js.map} +1 -1
- package/lib/definitions/common-core/src/light/light-source.d.ts +2 -0
- package/lib/definitions/common-core/src/utils/threejs-utils.d.ts +2 -1
- package/lib/definitions/common-core/src/webgl/roomle-component-factory.d.ts +1 -0
- package/lib/definitions/common-core/src/webgl/scene-manager.d.ts +1 -1
- package/lib/definitions/planner-core/src/lights/ceiling-light.d.ts +1 -1
- package/lib/definitions/planner-core/src/lights/light-group.d.ts +1 -2
- package/lib/definitions/planner-core/src/roomle-planner.d.ts +12 -6
- package/lib/definitions/planner-core/src/services/planner-kernel-access.d.ts +1 -1
- package/lib/definitions/planner-core/src/view-model/plan-view-model.d.ts +1 -4
- package/lib/definitions/planner-core/src/webgl/planner-scene-manager.d.ts +5 -1
- package/lib/{glb-viewer-BEWU9zxC.mjs → glb-viewer-BoZgMSrk.mjs} +6 -6
- package/lib/{glb-viewer-BEWU9zxC.mjs.map → glb-viewer-BoZgMSrk.mjs.map} +1 -1
- package/lib/{glb-viewer-camera-behaviour-Cl2bS83k.js → glb-viewer-camera-behaviour-AEWNZ6mR.js} +2 -2
- package/lib/{glb-viewer-camera-behaviour-Cl2bS83k.js.map → glb-viewer-camera-behaviour-AEWNZ6mR.js.map} +1 -1
- package/lib/{glb-viewer-camera-behaviour-DQ2sVbku.mjs → glb-viewer-camera-behaviour-CRnnMrL2.mjs} +2 -2
- package/lib/{glb-viewer-camera-behaviour-DQ2sVbku.mjs.map → glb-viewer-camera-behaviour-CRnnMrL2.mjs.map} +1 -1
- package/lib/{glb-viewer-6_OVDzVH.js → glb-viewer-vvpjnYPw.js} +2 -2
- package/lib/{glb-viewer-6_OVDzVH.js.map → glb-viewer-vvpjnYPw.js.map} +1 -1
- package/lib/glb-viewer.js +1 -1
- package/lib/glb-viewer.nomodule.js +1 -1
- package/lib/{imos-ix-poc-export-helper-r0pv9sOT.js → imos-ix-poc-export-helper-7AWayvID.js} +2 -2
- package/lib/{imos-ix-poc-export-helper-r0pv9sOT.js.map → imos-ix-poc-export-helper-7AWayvID.js.map} +1 -1
- package/lib/{imos-ix-poc-export-helper-BrpY0OHi.mjs → imos-ix-poc-export-helper-gQb0lbdn.mjs} +2 -2
- package/lib/{imos-ix-poc-export-helper-BrpY0OHi.mjs.map → imos-ix-poc-export-helper-gQb0lbdn.mjs.map} +1 -1
- package/lib/{main-05wLxbDZ.js → main-DVWEbQdM.js} +340 -149
- package/lib/{main-05wLxbDZ.js.map → main-DVWEbQdM.js.map} +1 -1
- package/lib/{main-CMu7hOEO.mjs → main-RpgY_kch.mjs} +2202 -1999
- package/lib/{main-CMu7hOEO.mjs.map → main-RpgY_kch.mjs.map} +1 -1
- package/lib/{material-viewer-B0MevA_r.mjs → material-viewer-DQjAOrWL.mjs} +4 -4
- package/lib/{material-viewer-B0MevA_r.mjs.map → material-viewer-DQjAOrWL.mjs.map} +1 -1
- package/lib/{material-viewer-CLqZXFrn.js → material-viewer-_9Sb1UCw.js} +2 -2
- package/lib/{material-viewer-CLqZXFrn.js.map → material-viewer-_9Sb1UCw.js.map} +1 -1
- package/lib/material-viewer.js +1 -1
- package/lib/material-viewer.nomodule.js +1 -1
- package/lib/planner-BcHlq0n3.js +155 -0
- package/lib/planner-BcHlq0n3.js.map +1 -0
- package/lib/{planner-B3Bt-cWy.mjs → planner-BilNNFJ0.mjs} +143 -125
- package/lib/planner-BilNNFJ0.mjs.map +1 -0
- package/lib/planner.js +1 -1
- package/lib/planner.nomodule.js +1 -1
- package/lib/roomle-sdk.js +7 -7
- package/lib/roomle-sdk.nomodule.js +1 -1
- package/lib/{script-loader-CZjzwkk2.js → script-loader-BZOMZ1AI.js} +2 -2
- package/lib/{script-loader-CZjzwkk2.js.map → script-loader-BZOMZ1AI.js.map} +1 -1
- package/lib/{script-loader-BzwDLtbS.mjs → script-loader-CHolkWhE.mjs} +2 -2
- package/lib/{script-loader-BzwDLtbS.mjs.map → script-loader-CHolkWhE.mjs.map} +1 -1
- package/lib/static/roomle-core-hsc/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/RoomleCore.js +6 -6
- package/lib/static/roomle-core-hsc/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/RoomleServiceCore.js +6 -6
- package/lib/static/roomle-core-hsc/RoomleServiceCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/RoomleToolsCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/configuratorCoreInterface.d.ts +2 -0
- package/lib/static/roomle-core-hsc/embind/configuratorCoreInterface.d.ts +2 -0
- package/lib/static/roomle-core-hsc/embind/plannerCoreCallback.d.ts +2 -2
- package/lib/static/roomle-core-hsc/embind/plannerCoreCallback.js +1 -1
- package/lib/static/roomle-core-hsc/embind/plannerCoreCallback.js.map +1 -1
- package/lib/static/roomle-core-hsc/embind/plannerCoreInterface.d.ts +17 -2
- package/lib/static/roomle-core-hsc/embind/plannerCoreInterface.js.map +1 -1
- package/lib/static/roomle-core-hsc/package.json +1 -1
- package/lib/static/roomle-core-hsc/plannerCoreCallback.d.ts +2 -2
- package/lib/static/roomle-core-hsc/plannerCoreCallback.js +1 -1
- package/lib/static/roomle-core-hsc/plannerCoreCallback.js.map +1 -1
- package/lib/static/roomle-core-hsc/plannerCoreInterface.d.ts +17 -2
- package/lib/static/roomle-core-hsc/plannerCoreInterface.js.map +1 -1
- package/lib/static/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts +2 -0
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreCallback.d.ts +2 -2
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreCallback.js +1 -1
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreCallback.js.map +1 -1
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreInterface.d.ts +17 -2
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreInterface.js.map +1 -1
- package/lib/static/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/wasm_modern/RoomleCore.js +6 -6
- package/lib/static/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/wasm_modern/RoomleServiceCore.js +6 -6
- package/lib/static/roomle-core-hsc/wasm_modern/RoomleServiceCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
- package/lib/{stats-helper-BaTpWjzi.mjs → stats-helper-BFpxduid.mjs} +2 -2
- package/lib/{stats-helper-BaTpWjzi.mjs.map → stats-helper-BFpxduid.mjs.map} +1 -1
- package/lib/{stats-helper-DylhlHS_.js → stats-helper-D4z7zVEi.js} +2 -2
- package/lib/{stats-helper-DylhlHS_.js.map → stats-helper-D4z7zVEi.js.map} +1 -1
- package/lib/{tools-core-BF9kMznR.js → tools-core-BJbLUz5-.js} +2 -2
- package/lib/{tools-core-BF9kMznR.js.map → tools-core-BJbLUz5-.js.map} +1 -1
- package/lib/{tools-core-BbL-KMAf.mjs → tools-core-COGP-hBi.mjs} +3 -3
- package/lib/{tools-core-BbL-KMAf.mjs.map → tools-core-COGP-hBi.mjs.map} +1 -1
- package/package.json +1 -1
- package/lib/camera-behaviour-BLMduSEn.mjs.map +0 -1
- package/lib/camera-behaviour-DgLVg_pP.js +0 -50
- package/lib/camera-behaviour-DgLVg_pP.js.map +0 -1
- package/lib/configurator-scene-manager-CRSHxOfd.js +0 -2
- package/lib/configurator-scene-manager-CRSHxOfd.js.map +0 -1
- package/lib/configurator-scene-manager-DbsYS4rm.mjs.map +0 -1
- package/lib/planner-B3Bt-cWy.mjs.map +0 -1
- package/lib/planner-D7lLZxgW.js +0 -155
- package/lib/planner-D7lLZxgW.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { V as v, _ as bt, $ as oe, H as
|
|
2
|
-
import { L as Cn, c as bn, d as N, B as Pn, C as F, e as Q, b as ee, I as In, f as On } from "./camera-behaviour-
|
|
3
|
-
import { S as wn, I as vn, R as Sn, b as K, O as I, C as
|
|
1
|
+
import { V as v, _ as bt, $ as oe, H as R, an as Pt, ao as Se, ap as It, a0 as Ot, aq as wt, ar as D, as as x, at as He, au as O, av as Ye, aw as be, ax as Pe, P as Ve, M as T, q as S, ay as w, az as Ie, aA as W, aB as Z, aC as B, aD as G, aE as vt, aF as St, aG as Et, v as X, W as ge, aH as U, aI as J, aJ as _e, aK as Ee, aL as Mt, aM as yt, aN as Le, aO as ne, j as p, aP as Dt, aQ as ht, aR as m, aS as At, aT as Lt, aU as Rt, ab as xt, e as Me, g as V, aV as se, aW as jt, aX as Xe, aY as ye, aZ as Ht, ag as De, a_ as Fe, B as C, a$ as le, b0 as te, b1 as Tt, b2 as ce, b3 as kt, b4 as Ue, b5 as Bt, ac as Gt, b6 as Ft, b7 as Ut, b8 as Wt, b9 as Nt, ba as Kt, bb as Oe, bc as zt, bd as Vt, be as we, bf as $t, a9 as Ze, bg as Jt, bh as qt, bi as Yt, bj as We, bk as Ne, bl as Xt, bm as Zt, bn as Qt, bo as en, bp as tn, bq as me, br as Qe, bs as Ke, bt as et, a2 as nn, C as an, bu as tt, f as Ae, i as sn, bv as rn, bw as on, Y as ln, D as $, b as nt, x as cn, bx as hn, a as dn, c as un, d as gn, r as _n, z as mn, R as pn, K as fn } from "./main-RpgY_kch.mjs";
|
|
2
|
+
import { L as Cn, c as bn, d as N, B as Pn, C as F, e as Q, b as ee, I as In, f as On } from "./camera-behaviour-DWkBHxkk.mjs";
|
|
3
|
+
import { S as wn, I as vn, R as Sn, b as K, O as I, C as En, P as Mn, c as at, G as yn, a as Dn } from "./configurator-scene-manager-DnZvFw0N.mjs";
|
|
4
4
|
import { C as b } from "./main-thread-to-worker-ByNW4PfN.mjs";
|
|
5
|
-
import { G as An } from "./glb-viewer-camera-behaviour-
|
|
6
|
-
import { S as
|
|
7
|
-
const
|
|
5
|
+
import { G as An } from "./glb-viewer-camera-behaviour-CRnnMrL2.mjs";
|
|
6
|
+
import { S as Ln } from "./script-loader-CHolkWhE.mjs";
|
|
7
|
+
const Rn = "" + new URL("paper_background.png", import.meta.url).href;
|
|
8
8
|
class st extends Cn {
|
|
9
9
|
constructor(e, t) {
|
|
10
10
|
super(e, t), this._center = new v(0, 0, 0), this._params = {
|
|
@@ -25,7 +25,7 @@ class st extends Cn {
|
|
|
25
25
|
}, this._ambientLight = new bt(
|
|
26
26
|
new oe(this._params.ambientLight.color),
|
|
27
27
|
0.4
|
|
28
|
-
), this._ambientLight.layers.set(
|
|
28
|
+
), this._ambientLight.layers.set(R.LIGHTING), this._mainDirLight = new Pt(
|
|
29
29
|
new oe(this._params.mainDirLight.color),
|
|
30
30
|
0.5
|
|
31
31
|
), this._mainDirLight.castShadow = !0, this._mainDirLight.shadow.camera.near = 0.5, this._mainDirLight.shadow.camera.far = 100, this._mainDirLight.shadow.mapSize = new Se(1024, 1024), this._mainDirLight.visible = !0, this.addToScene();
|
|
@@ -80,7 +80,7 @@ class st extends Cn {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
var ue = /* @__PURE__ */ ((r) => (r[r.SELECT_PLAN_ELEMENT = 0] = "SELECT_PLAN_ELEMENT", r[r.DESELECT_PLAN_ELEMENT = 1] = "DESELECT_PLAN_ELEMENT", r[r.SELECT_PLAN_ELEMENT_MULTI = 2] = "SELECT_PLAN_ELEMENT_MULTI", r[r.SELECTION_MODE_CHANGED = 3] = "SELECTION_MODE_CHANGED", r))(ue || {});
|
|
83
|
-
const
|
|
83
|
+
const Re = (r) => r instanceof x || r instanceof He;
|
|
84
84
|
class q {
|
|
85
85
|
constructor(e) {
|
|
86
86
|
const {
|
|
@@ -129,7 +129,7 @@ class xn extends wt {
|
|
|
129
129
|
));
|
|
130
130
|
}
|
|
131
131
|
_checkMulti(e) {
|
|
132
|
-
|
|
132
|
+
Re(e) || this._selectedPlanElementViewModels.has(
|
|
133
133
|
e.getId()
|
|
134
134
|
) || (this._selectedPlanElementViewModels.set(
|
|
135
135
|
e.getId(),
|
|
@@ -146,7 +146,7 @@ class xn extends wt {
|
|
|
146
146
|
}
|
|
147
147
|
_deselectWallAndFloorElements() {
|
|
148
148
|
this._selectedPlanElementViewModels.forEach((e, t) => {
|
|
149
|
-
|
|
149
|
+
Re(e) && (this._selectedPlanElementViewModels.delete(t), e.deselect(), this.dispatchEvent(
|
|
150
150
|
1,
|
|
151
151
|
new q({
|
|
152
152
|
planElementViewModel: e,
|
|
@@ -191,7 +191,7 @@ var jn = Object.defineProperty, Te = (r, e, t, n) => {
|
|
|
191
191
|
for (var a = void 0, s = r.length - 1, i; s >= 0; s--)
|
|
192
192
|
(i = r[s]) && (a = i(e, t, a) || a);
|
|
193
193
|
return a && jn(e, t, a), a;
|
|
194
|
-
},
|
|
194
|
+
}, E = /* @__PURE__ */ ((r) => (r[r.SELECT_PLAN_ELEMENT = 0] = "SELECT_PLAN_ELEMENT", r[r.DESELECT_PLAN_ELEMENT = 1] = "DESELECT_PLAN_ELEMENT", r[r.STATE_CHANGED = 2] = "STATE_CHANGED", r[r.HOVER_ON = 3] = "HOVER_ON", r[r.HOVER_OFF = 4] = "HOVER_OFF", r[r.DRAW = 5] = "DRAW", r[r.DRAWING_START = 6] = "DRAWING_START", r[r.DRAWING_END = 7] = "DRAWING_END", r[r.BEFORE_DRAG_START = 8] = "BEFORE_DRAG_START", r[r.DRAG_START = 9] = "DRAG_START", r[r.DRAG_MOVE = 10] = "DRAG_MOVE", r[r.DRAG_END = 11] = "DRAG_END", r[r.DRAG_CANCEL = 12] = "DRAG_CANCEL", r[r.INTERACTION = 13] = "INTERACTION", r[r.CLICK_OUTSIDE = 14] = "CLICK_OUTSIDE", r[r.SELECTION_MODE_CHANGED = 15] = "SELECTION_MODE_CHANGED", r[r.ADD_MEASUREMENT_LINE_START = 16] = "ADD_MEASUREMENT_LINE_START", r[r.ADD_MEASUREMENT_LINE_END = 17] = "ADD_MEASUREMENT_LINE_END", r[r.DRAG_MEASUREMENT_LINE = 18] = "DRAG_MEASUREMENT_LINE", r[r.ACTIVATE_PLAN_ELEMENT = 19] = "ACTIVATE_PLAN_ELEMENT", r))(E || {}), Y = /* @__PURE__ */ ((r) => (r[r.IDLE = 0] = "IDLE", r[r.DRAG = 1] = "DRAG", r[r.ROTATE = 2] = "ROTATE", r[r.DRAW = 3] = "DRAW", r[r.MEASURE = 4] = "MEASURE", r))(Y || {});
|
|
195
195
|
class z {
|
|
196
196
|
constructor(e) {
|
|
197
197
|
const { planElementViewModel: t, resetCamera: n, state: a, oldState: s, reason: i } = e;
|
|
@@ -270,13 +270,13 @@ class fe extends wn {
|
|
|
270
270
|
}
|
|
271
271
|
enable() {
|
|
272
272
|
const e = new Ye();
|
|
273
|
-
e.disableAll(), e.enable(
|
|
273
|
+
e.disableAll(), e.enable(R.OBJECT), e.enable(R.GIZMO), e.enable(R.UI), e.enable(R.CONSTRUCTION), e.enable(R.BACKGROUND), this._raycastHelper.setLayers(e), this._raycastHelper.enableEvents();
|
|
274
274
|
}
|
|
275
275
|
enableConstructionEvents(e) {
|
|
276
|
-
e ? this._raycastHelper.getLayers().enable(
|
|
276
|
+
e ? this._raycastHelper.getLayers().enable(R.CONSTRUCTION) : this._raycastHelper.getLayers().disable(R.CONSTRUCTION);
|
|
277
277
|
}
|
|
278
278
|
enableObjectEvents(e) {
|
|
279
|
-
e ? this._raycastHelper.getLayers().enable(
|
|
279
|
+
e ? this._raycastHelper.getLayers().enable(R.UI) : this._raycastHelper.getLayers().disable(R.UI);
|
|
280
280
|
}
|
|
281
281
|
getSelectionMode() {
|
|
282
282
|
return this._plannerSelectionHandler.getSelectionMode();
|
|
@@ -478,7 +478,7 @@ class fe extends wn {
|
|
|
478
478
|
const e = new Ve(1e3, 1e3, 8, 8), t = new T();
|
|
479
479
|
t.visible = !1;
|
|
480
480
|
const n = new S(e, t);
|
|
481
|
-
n.name = "2D raycaster floor mesh", n.rotation.set(-Math.PI / 2, 0, 0), n.layers.enable(
|
|
481
|
+
n.name = "2D raycaster floor mesh", n.rotation.set(-Math.PI / 2, 0, 0), n.layers.enable(R.BACKGROUND), n.userData.ignoreElementHit = !0;
|
|
482
482
|
const a = {
|
|
483
483
|
planElementName: "2D raycaster floor mesh",
|
|
484
484
|
hasListener: !0,
|
|
@@ -536,7 +536,7 @@ class fe extends wn {
|
|
|
536
536
|
e instanceof W && e.showDraggablePointsOnHoverOn(e), !this._isCurrentlyDrawing && (this._plannerSelectionHandler.getSelectionMode() === D.MULTISELECT ? this._hoverOnMultiSelect(e) : this._hoverOnStandard(e));
|
|
537
537
|
}
|
|
538
538
|
_hoverOnMultiSelect(e) {
|
|
539
|
-
|
|
539
|
+
Re(this._hoveredObject) || Re(e) ? (this._hoveredObject = null, B(G.DEFAULT)) : this._hoverOnStandard(e);
|
|
540
540
|
}
|
|
541
541
|
_hoverOnStandard(e) {
|
|
542
542
|
e.hoverOn(), this._hoveredObject = e, this.dispatchEvent(
|
|
@@ -585,7 +585,7 @@ class fe extends wn {
|
|
|
585
585
|
) && !this._dragIn || this._state !== 0) && !this._isDrawingEnabled || (this.dispatchEvent(
|
|
586
586
|
8
|
|
587
587
|
/* BEFORE_DRAG_START */
|
|
588
|
-
), St(
|
|
588
|
+
), St(Et.DRAG).then(() => {
|
|
589
589
|
if (this._inputManager.isMouseUp()) {
|
|
590
590
|
this.setState(
|
|
591
591
|
0
|
|
@@ -713,7 +713,7 @@ class fe extends wn {
|
|
|
713
713
|
addComponentDragInHandler(e) {
|
|
714
714
|
if (!this._dragIn)
|
|
715
715
|
return;
|
|
716
|
-
const t = e.getBoundingBox(), n = e instanceof
|
|
716
|
+
const t = e.getBoundingBox(), n = e instanceof Le || e instanceof ne;
|
|
717
717
|
this._addPlanElementHandlers(e, t, {
|
|
718
718
|
planElementName: e.getName(),
|
|
719
719
|
hasListener: !0,
|
|
@@ -760,7 +760,7 @@ class fe extends wn {
|
|
|
760
760
|
e && !t ? this._raycastHelper.enableOnWallSnapping() : this._raycastHelper.disableOnWallSnapping();
|
|
761
761
|
}
|
|
762
762
|
enableWallDrawing() {
|
|
763
|
-
return this._isDrawingEnabled = !0, this._drawingGroup = new
|
|
763
|
+
return this._isDrawingEnabled = !0, this._drawingGroup = new Ee(), this._drawingGroup.name = "Drawing", this._drawingGroup.add(this._createFloorMeshWithHandler()), this._inputManager.addEventListener(
|
|
764
764
|
O.MOVE,
|
|
765
765
|
this._drawWallOnMouseMove,
|
|
766
766
|
this
|
|
@@ -783,7 +783,7 @@ class fe extends wn {
|
|
|
783
783
|
), this._raycastHelper.clear(), this._drawingGroup;
|
|
784
784
|
}
|
|
785
785
|
stopDrawing(e = !0) {
|
|
786
|
-
this.planInteractionHandler.endInteraction(), e && this.planInteractionHandler.cancelDrawing(), this._raycastHelper.getLayers().enable(
|
|
786
|
+
this.planInteractionHandler.endInteraction(), e && this.planInteractionHandler.cancelDrawing(), this._raycastHelper.getLayers().enable(R.CONSTRUCTION), this._isCurrentlyDrawing = !1, this._setStateAndCursor(
|
|
787
787
|
0
|
|
788
788
|
/* IDLE */
|
|
789
789
|
), this.dispatchEvent(
|
|
@@ -792,7 +792,7 @@ class fe extends wn {
|
|
|
792
792
|
), this._continuousDrawingHelper?.endDrawing(), this._roomlePlannerUiCallback.onDrawingStateChanged(!1);
|
|
793
793
|
}
|
|
794
794
|
startDrawing() {
|
|
795
|
-
this._isCurrentlyDrawing || (this._isCurrentlyDrawing = !0, this._raycastHelper.getLayers().disable(
|
|
795
|
+
this._isCurrentlyDrawing || (this._isCurrentlyDrawing = !0, this._raycastHelper.getLayers().disable(R.CONSTRUCTION), this.dispatchEvent(
|
|
796
796
|
6
|
|
797
797
|
/* DRAWING_START */
|
|
798
798
|
), this._setStateAndCursor(
|
|
@@ -816,7 +816,7 @@ class fe extends wn {
|
|
|
816
816
|
}
|
|
817
817
|
async _startWallDrawing(e, t, n) {
|
|
818
818
|
(e && e.type === Ie.TOUCH || n === Ie.TOUCH) && (await this._initMobileDrawing(), this._continuousDrawingHelper.update()), this.planInteractionHandler.startInteraction();
|
|
819
|
-
const { x: a, y: s } = t || this._getIntersectionPointWithScene(e), i = this._initData?.featureFlags?.drawPreviewMode ===
|
|
819
|
+
const { x: a, y: s } = t || this._getIntersectionPointWithScene(e), i = this._initData?.featureFlags?.drawPreviewMode === Mt.VECTOR;
|
|
820
820
|
this.planInteractionHandler.beginDrawing(
|
|
821
821
|
{ x: a, y: s, z: 0 },
|
|
822
822
|
i
|
|
@@ -824,7 +824,7 @@ class fe extends wn {
|
|
|
824
824
|
}
|
|
825
825
|
async _initMobileDrawing() {
|
|
826
826
|
if (this.planInteractionHandler.setDrawingType(yt.CONTINOUS), this.planInteractionHandler.setSnapFeedbackWhileDrawing(!0), !this._continuousDrawingHelper) {
|
|
827
|
-
const { default: e } = await import("./continuous-drawing-helper-
|
|
827
|
+
const { default: e } = await import("./continuous-drawing-helper-DbTM7uCv.mjs");
|
|
828
828
|
this._continuousDrawingHelper = new e(), this._continuousDrawingHelper.init(
|
|
829
829
|
this._drawingGroup,
|
|
830
830
|
this.planInteractionHandler.getContinuousDrawingManager(),
|
|
@@ -1149,10 +1149,10 @@ class ke extends S {
|
|
|
1149
1149
|
constructor() {
|
|
1150
1150
|
const e = ke.SkyShader, t = new At({
|
|
1151
1151
|
name: e.name,
|
|
1152
|
-
uniforms:
|
|
1152
|
+
uniforms: Rt.clone(e.uniforms),
|
|
1153
1153
|
vertexShader: e.vertexShader,
|
|
1154
1154
|
fragmentShader: e.fragmentShader,
|
|
1155
|
-
side:
|
|
1155
|
+
side: Lt,
|
|
1156
1156
|
depthWrite: !1
|
|
1157
1157
|
});
|
|
1158
1158
|
super(new xt(1, 1, 1), t), this.isSky = !0;
|
|
@@ -1338,7 +1338,7 @@ const kn = async (r, e) => {
|
|
|
1338
1338
|
i.configurationRuntimeId
|
|
1339
1339
|
))
|
|
1340
1340
|
s.push([
|
|
1341
|
-
|
|
1341
|
+
Me(i.configurationHash),
|
|
1342
1342
|
i
|
|
1343
1343
|
]), t.push(V(i));
|
|
1344
1344
|
else if (i.configurationType?.value !== se.EXTERNAL) {
|
|
@@ -1407,11 +1407,11 @@ class Gn extends S {
|
|
|
1407
1407
|
const e = new Ve(1e3, 1e3, 8, 8);
|
|
1408
1408
|
e.rotateX(-Math.PI / 2);
|
|
1409
1409
|
const t = new T();
|
|
1410
|
-
new jt().load(
|
|
1410
|
+
new jt().load(Rn, (a) => {
|
|
1411
1411
|
a.wrapS = Xe, a.wrapT = Xe;
|
|
1412
1412
|
const s = 5;
|
|
1413
1413
|
a.repeat.set(1e3 / s, 1e3 / s), t.map = a, t.alphaTest = 0.3, t.transparent = !0;
|
|
1414
|
-
}), super(e, t), this.name = "2d paper background", this.position.set(0, -0.1, 0), this.layers.set(
|
|
1414
|
+
}), super(e, t), this.name = "2d paper background", this.position.set(0, -0.1, 0), this.layers.set(R.BACKGROUND), this.userData.ignoreElementHit = !0;
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
1417
|
class pe extends bn {
|
|
@@ -1564,7 +1564,7 @@ class Un {
|
|
|
1564
1564
|
_processViewModel(e, t) {
|
|
1565
1565
|
e instanceof x && e.getKernelObject().getAttachedAttics?.().size() > 0 ? e.getBoundingBox().children.forEach((a) => {
|
|
1566
1566
|
a.isChildPlanObject || t.add(a);
|
|
1567
|
-
}) : ((e instanceof
|
|
1567
|
+
}) : ((e instanceof Le || e instanceof ne) && e.getTopViewContainer() && t.add(e.getTopViewContainer()), e.getObject()?.children && e.getObject().children.forEach((a) => {
|
|
1568
1568
|
a.isChildPlanObject || t.add(a);
|
|
1569
1569
|
}));
|
|
1570
1570
|
}
|
|
@@ -1800,12 +1800,12 @@ const $n = "rml_plans", de = {
|
|
|
1800
1800
|
INTERIOR: "interior",
|
|
1801
1801
|
EXTERIOR: "exterior"
|
|
1802
1802
|
}, rt = (r) => ["altKey", "ctrlKey", "shiftKey", "metaKey"].reduce((e, t) => (r[t] && e++, e), 0);
|
|
1803
|
-
class re extends
|
|
1803
|
+
class re extends En {
|
|
1804
1804
|
constructor(e, t, n, a) {
|
|
1805
1805
|
super(e, t, a), this._itemsLoadingStatePromises = [], this._staticItemGuard = new Fe(), this._completelyLoaded = !1, this._configurableItemGuard = new Fe(), this._planCompletelyLoadedGuard = new Fe(), this.currentSelection = null, this._paperBackground = null, this._cameraState = null, this._debugSpheres = {
|
|
1806
|
-
wallPoints: new
|
|
1807
|
-
constructionElementsPoints: new
|
|
1808
|
-
floorPoints: new
|
|
1806
|
+
wallPoints: new Ee(),
|
|
1807
|
+
constructionElementsPoints: new Ee(),
|
|
1808
|
+
floorPoints: new Ee()
|
|
1809
1809
|
}, this._stopRendering = !0, this._configureInRoom = !!this._initData.configureInRoom, this._configuratorContext.baseContext = C.PLANNER, this._roomlePlannerCallback = n, this._plannerMeshGenerator.maxAnisotropy = this._renderer.capabilities.getMaxAnisotropy(), this._plannerMeshGenerator.maxTextures = this._renderer.capabilities.maxTextures, this._plannerSceneEventHandler = new fe(
|
|
1810
1810
|
e,
|
|
1811
1811
|
this._scene,
|
|
@@ -1816,21 +1816,21 @@ class re extends Mn {
|
|
|
1816
1816
|
this._roomleRenderer,
|
|
1817
1817
|
this._getViewModel()
|
|
1818
1818
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1819
|
-
|
|
1819
|
+
E.STATE_CHANGED,
|
|
1820
1820
|
({ state: s, oldState: i }) => {
|
|
1821
1821
|
i === Y.ROTATE && s !== i && this._roomlePlannerUiCallback.onRotationCancel(), s === Y.ROTATE || s === Y.DRAG || s === Y.MEASURE || s === Y.DRAW ? (this.cameraBehaviour.cameraControl.lock(), this._onCameraMove()) : (this.cameraBehaviour.cameraControl.unlock(), this._onCameraIdle());
|
|
1822
1822
|
},
|
|
1823
1823
|
this
|
|
1824
1824
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1825
|
-
|
|
1825
|
+
E.INTERACTION,
|
|
1826
1826
|
() => this._renderWithoutShadowsAndAO(),
|
|
1827
1827
|
this
|
|
1828
1828
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1829
|
-
|
|
1829
|
+
E.ACTIVATE_PLAN_ELEMENT,
|
|
1830
1830
|
(s) => this._activateElement(s),
|
|
1831
1831
|
this
|
|
1832
1832
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1833
|
-
|
|
1833
|
+
E.SELECT_PLAN_ELEMENT,
|
|
1834
1834
|
(s) => {
|
|
1835
1835
|
this._activateElement(s);
|
|
1836
1836
|
const i = s.planElementViewModel;
|
|
@@ -1840,25 +1840,25 @@ class re extends Mn {
|
|
|
1840
1840
|
},
|
|
1841
1841
|
this
|
|
1842
1842
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1843
|
-
|
|
1843
|
+
E.DESELECT_PLAN_ELEMENT,
|
|
1844
1844
|
({ planElementViewModel: s, reason: i }) => {
|
|
1845
1845
|
this._planElementHighlighter.clearHighlighting(), this._onSelectionCancel(s, i), this._roomlePlannerUiCallback.onSelectionCancel(i), this._renderWithoutShadowsAndAO();
|
|
1846
1846
|
},
|
|
1847
1847
|
this
|
|
1848
1848
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1849
|
-
|
|
1849
|
+
E.BEFORE_DRAG_START,
|
|
1850
1850
|
() => {
|
|
1851
1851
|
this.cameraBehaviour.cameraControl.lock();
|
|
1852
1852
|
},
|
|
1853
1853
|
this
|
|
1854
1854
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1855
|
-
|
|
1855
|
+
E.DRAG_START,
|
|
1856
1856
|
({ planElementViewModel: s }) => {
|
|
1857
1857
|
this._getKernelAccess().planInteractionHandler.startInteraction(), this._sendElementMeasurements(), s instanceof x && this._sendWallDimensions(), this._requestRender(), this._dragStartBounds = this.getBounds();
|
|
1858
1858
|
},
|
|
1859
1859
|
this
|
|
1860
1860
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1861
|
-
|
|
1861
|
+
E.DRAG_MOVE,
|
|
1862
1862
|
({ planElementViewModel: s }) => {
|
|
1863
1863
|
this.cameraBehaviour.cameraControl.checkNearFarDistance(
|
|
1864
1864
|
s.getPosition()
|
|
@@ -1866,7 +1866,7 @@ class re extends Mn {
|
|
|
1866
1866
|
},
|
|
1867
1867
|
this
|
|
1868
1868
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1869
|
-
|
|
1869
|
+
E.DRAG_END,
|
|
1870
1870
|
async ({ planElementViewModel: s }) => {
|
|
1871
1871
|
const i = this._getKernelAccess().planInteractionHandler;
|
|
1872
1872
|
i.endInteraction(), this.cameraBehaviour.cameraControl.unlock();
|
|
@@ -1897,41 +1897,41 @@ class re extends Mn {
|
|
|
1897
1897
|
},
|
|
1898
1898
|
this
|
|
1899
1899
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1900
|
-
|
|
1900
|
+
E.DRAG_CANCEL,
|
|
1901
1901
|
() => {
|
|
1902
1902
|
this.cameraBehaviour.cameraControl.unlock();
|
|
1903
1903
|
},
|
|
1904
1904
|
this
|
|
1905
1905
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1906
|
-
|
|
1906
|
+
E.ADD_MEASUREMENT_LINE_START,
|
|
1907
1907
|
() => {
|
|
1908
1908
|
this.cameraBehaviour.cameraControl.lock();
|
|
1909
1909
|
},
|
|
1910
1910
|
this
|
|
1911
1911
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1912
|
-
|
|
1912
|
+
E.DRAG_MEASUREMENT_LINE,
|
|
1913
1913
|
() => {
|
|
1914
1914
|
this._roomlePlannerUiCallback.onUpdateMeasurementLineDimensions([]);
|
|
1915
1915
|
},
|
|
1916
1916
|
this
|
|
1917
1917
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1918
|
-
|
|
1918
|
+
E.ADD_MEASUREMENT_LINE_END,
|
|
1919
1919
|
() => {
|
|
1920
1920
|
this.cameraBehaviour.cameraControl.unlock(), this._roomlePlannerUiCallback.onMeasurementLineStateChange(!1);
|
|
1921
1921
|
},
|
|
1922
1922
|
this
|
|
1923
1923
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1924
|
-
|
|
1924
|
+
E.DRAWING_START,
|
|
1925
1925
|
() => {
|
|
1926
1926
|
this._setKernelZoomFactor(), this._renderWithoutShadowsAndAO(), this._roomleRenderer?.setGroundShadow(!1);
|
|
1927
1927
|
},
|
|
1928
1928
|
this
|
|
1929
1929
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1930
|
-
|
|
1930
|
+
E.DRAW,
|
|
1931
1931
|
() => this._renderWithoutShadowsAndAO(),
|
|
1932
1932
|
this
|
|
1933
1933
|
), this._plannerSceneEventHandler.addEventListener(
|
|
1934
|
-
|
|
1934
|
+
E.DRAWING_END,
|
|
1935
1935
|
() => {
|
|
1936
1936
|
this._renderWithoutShadowsAndAO(), this._roomleRenderer?.setGroundShadow(!0);
|
|
1937
1937
|
},
|
|
@@ -1959,6 +1959,27 @@ class re extends Mn {
|
|
|
1959
1959
|
const e = this._getViewModel().getFloorPlanObjectViewModels();
|
|
1960
1960
|
return new Set(e.map((n) => n.getId())).size === 1;
|
|
1961
1961
|
}
|
|
1962
|
+
get scenePlanElementLightSources() {
|
|
1963
|
+
const e = [];
|
|
1964
|
+
return this._scene.traverse((t) => {
|
|
1965
|
+
if ("getAllLightSources" in t && typeof t.getAllLightSources == "function") {
|
|
1966
|
+
const n = t.getAllLightSources();
|
|
1967
|
+
n.size > 0 && e.push(n);
|
|
1968
|
+
}
|
|
1969
|
+
}), e;
|
|
1970
|
+
}
|
|
1971
|
+
setAllLightsOnOff(e) {
|
|
1972
|
+
for (const t of this.scenePlanElementLightSources)
|
|
1973
|
+
for (const n of Array.from(t.values()))
|
|
1974
|
+
n.setLightOnOff(e);
|
|
1975
|
+
this._renderEverything();
|
|
1976
|
+
}
|
|
1977
|
+
setLightsOnOffByIds(e, t) {
|
|
1978
|
+
for (const n of this.scenePlanElementLightSources)
|
|
1979
|
+
for (const a of Array.from(n.values()))
|
|
1980
|
+
e.includes(a.lightSourceId) && a.setLightOnOff(t);
|
|
1981
|
+
this._renderEverything();
|
|
1982
|
+
}
|
|
1962
1983
|
_activateElement({ planElementViewModel: e }, t = () => {
|
|
1963
1984
|
}) {
|
|
1964
1985
|
const n = this._plannerSceneEventHandler.isDragIn() ? e : null;
|
|
@@ -1977,7 +1998,7 @@ class re extends Mn {
|
|
|
1977
1998
|
}
|
|
1978
1999
|
}
|
|
1979
2000
|
_getViewModel() {
|
|
1980
|
-
return this._viewModel || (this._viewModel = new
|
|
2001
|
+
return this._viewModel || (this._viewModel = new Mn(this._creator_), this._viewModel.setRequestRenderCallback(() => this._renderEverything()), this._viewModel.setRequestRenderSceneUpdateCallback(
|
|
1981
2002
|
() => this._roomleRenderer?.clearCache()
|
|
1982
2003
|
), this._viewModel.setInvalidateRenderCallback(
|
|
1983
2004
|
() => this._roomleRenderer?.forceShadowUpdates(!0)
|
|
@@ -2050,9 +2071,7 @@ class re extends Mn {
|
|
|
2050
2071
|
i.item = d, u = d.rootComponentId ? d.rootComponentId : null;
|
|
2051
2072
|
} else
|
|
2052
2073
|
try {
|
|
2053
|
-
const d = await this._rapiAccess.getConfiguration(
|
|
2054
|
-
c
|
|
2055
|
-
);
|
|
2074
|
+
const d = await this._rapiAccess.getConfiguration(c);
|
|
2056
2075
|
i.configuration = d, u = d.rootComponentId ? d.rootComponentId : null;
|
|
2057
2076
|
} catch {
|
|
2058
2077
|
console.warn(
|
|
@@ -2064,9 +2083,7 @@ class re extends Mn {
|
|
|
2064
2083
|
i.configuration = g, u = g.rootComponentId ? g.rootComponentId : null;
|
|
2065
2084
|
}
|
|
2066
2085
|
if (u) {
|
|
2067
|
-
const d = await this._rapiAccess.getComponent(
|
|
2068
|
-
u
|
|
2069
|
-
);
|
|
2086
|
+
const d = await this._rapiAccess.getComponent(u);
|
|
2070
2087
|
i.component = d;
|
|
2071
2088
|
}
|
|
2072
2089
|
i.configurationRuntimeId = o, n = "configuration";
|
|
@@ -2158,10 +2175,7 @@ class re extends Mn {
|
|
|
2158
2175
|
const t = this._getViewModel().getPlanObjectForId(
|
|
2159
2176
|
e
|
|
2160
2177
|
);
|
|
2161
|
-
this.
|
|
2162
|
-
!1,
|
|
2163
|
-
this._isInteriorLightActive
|
|
2164
|
-
), this._setCameraPosition();
|
|
2178
|
+
this._setCameraPosition();
|
|
2165
2179
|
const n = this.cameraBehaviour.cameraControl.getCurrentCameraParameters();
|
|
2166
2180
|
this._changeCameraBehaviour(
|
|
2167
2181
|
new at(
|
|
@@ -2176,7 +2190,7 @@ class re extends Mn {
|
|
|
2176
2190
|
a = l.rotationRoundTo90deg, s = l.lookAtSide.value === Bt.LEFT ? -1 : 1, this._componentRaycastHelper?.setObject(t.getObject());
|
|
2177
2191
|
}
|
|
2178
2192
|
const i = t?.getConfigurationRuntimeId();
|
|
2179
|
-
this._configuratorContext.planObjectId !== i && (this._configuratorContext.planObjectId = i), this._plannerSceneEventHandler.removeSelection(), this._planElementHighlighter.clearHighlighting(), this._configureInRoom || this._getViewModel().hideAllExcept(e), this.configuratorCameraBehaviour.resetCameraOnStartConfiguring(
|
|
2193
|
+
this._configuratorContext.planObjectId !== i && (this._configuratorContext.planObjectId = i), this._plannerSceneEventHandler.removeSelection(), this._planElementHighlighter.clearHighlighting(), this._configureInRoom || this._getViewModel().hideAllExcept(e), this.scenePlanElementLightSources.length > 0 && this.toggleInteriorLightsSceneSettings(!1), this.configuratorCameraBehaviour.resetCameraOnStartConfiguring(
|
|
2180
2194
|
this.getBounds(),
|
|
2181
2195
|
n,
|
|
2182
2196
|
a,
|
|
@@ -2214,7 +2228,7 @@ class re extends Mn {
|
|
|
2214
2228
|
)?.externalObject && this.notifyPlannerOnComponentSelectionCancel(
|
|
2215
2229
|
!0,
|
|
2216
2230
|
"isolation_mode_cancelled"
|
|
2217
|
-
)), this._configuratorContext.baseContext = C.PLANNER
|
|
2231
|
+
)), this._configuratorContext.baseContext = C.PLANNER;
|
|
2218
2232
|
const e = this.cameraBehaviour.cameraControl.getCurrentCameraParameters(), t = this._getViewModel().cameraType;
|
|
2219
2233
|
this._changeCameraBehaviour(
|
|
2220
2234
|
t === b.CAMERA_3D || t === b.CAMERA_FP ? new he(
|
|
@@ -2224,7 +2238,7 @@ class re extends Mn {
|
|
|
2224
2238
|
this._getCameraControl2D(),
|
|
2225
2239
|
this._cameraBehaviourState
|
|
2226
2240
|
)
|
|
2227
|
-
), this._resetCameraPosition(e), this._getViewModel().showAll(), this.setEventHandlerObject(this._scene), this.enablePlannerEvents();
|
|
2241
|
+
), this.scenePlanElementLightSources.length > 0 && this.toggleInteriorLightsSceneSettings(!0), this._resetCameraPosition(e), this._getViewModel().showAll(), this.setEventHandlerObject(this._scene), this.enablePlannerEvents();
|
|
2228
2242
|
const n = this.cameraBehaviour.cameraControl instanceof F || this.cameraBehaviour.cameraControl instanceof Q;
|
|
2229
2243
|
this._getViewModel().setCameraType(
|
|
2230
2244
|
n ? b.CAMERA_3D : b.CAMERA_2D
|
|
@@ -2286,7 +2300,7 @@ class re extends Mn {
|
|
|
2286
2300
|
), this._getViewModel().handleCeilingLights();
|
|
2287
2301
|
}
|
|
2288
2302
|
planCompletelyLoaded(e) {
|
|
2289
|
-
this._stopRendering = !1, this._renderEverything(), setTimeout(() => this._planCompletelyLoadedGuard.resolve(), 0), this.
|
|
2303
|
+
this._stopRendering = !1, this._renderEverything(), setTimeout(() => this._planCompletelyLoadedGuard.resolve(), 0), this.scenePlanElementLightSources.length > 0 && (this.toggleInteriorLightsSceneSettings(!0), this._activateCeilingLight()), this._getViewModel().getNodePlanObjectViewModels().forEach((t) => t.hide()), this._getViewModel().getMeasurementLineObjectViewModels().forEach(
|
|
2290
2304
|
(t) => t.hideDraggableNodes()
|
|
2291
2305
|
);
|
|
2292
2306
|
}
|
|
@@ -2356,11 +2370,11 @@ class re extends Mn {
|
|
|
2356
2370
|
o.length ? o[0] : { ...i, data: null }
|
|
2357
2371
|
);
|
|
2358
2372
|
const l = e instanceof U || e instanceof J;
|
|
2359
|
-
this._initData.featureFlags.interiorLights && Tn(
|
|
2373
|
+
this._initData.featureFlags.interiorLights && (Tn(
|
|
2360
2374
|
e,
|
|
2361
2375
|
this._getViewModel(),
|
|
2362
2376
|
this._isInteriorLightActive
|
|
2363
|
-
), l && !this._plannerSceneEventHandler.isDragIn() && this.cameraBehaviour instanceof pe && (Wt(
|
|
2377
|
+
), this.scenePlanElementLightSources.length > 0 && this.toggleInteriorLightsSceneSettings(!0)), l && !this._plannerSceneEventHandler.isDragIn() && this.cameraBehaviour instanceof pe && (Wt(
|
|
2364
2378
|
this.cameraBehaviour.cameraControl.getCamera(),
|
|
2365
2379
|
e.getBounds()
|
|
2366
2380
|
) ? this.plannerCameraBehaviour.updateCameraOnPlanElementInsertedInsideCurrentCameraView(
|
|
@@ -2712,7 +2726,7 @@ class re extends Mn {
|
|
|
2712
2726
|
this.updateEnvironment(this.getBounds()), this._requestRender();
|
|
2713
2727
|
}
|
|
2714
2728
|
planElementRemoved(e) {
|
|
2715
|
-
this._configuratorContext.planElementId === e.getId() && (this._roomlePlannerUiCallback.onSelectionCancel("delete_object"), this._configuratorContext.planElementId = 0), this._onPlanChanged(), this._renderEverything();
|
|
2729
|
+
this._configuratorContext.planElementId === e.getId() && (this._roomlePlannerUiCallback.onSelectionCancel("delete_object"), this._configuratorContext.planElementId = 0), this._onPlanChanged(), this._renderEverything(), this.scenePlanElementLightSources.length === 0 && this.toggleInteriorLightsSceneSettings(!1);
|
|
2716
2730
|
}
|
|
2717
2731
|
_onPlanChanged() {
|
|
2718
2732
|
this._roomlePlannerUiCallback.onPlanChanged();
|
|
@@ -3021,7 +3035,7 @@ class re extends Mn {
|
|
|
3021
3035
|
if (t.length === 0 && !e)
|
|
3022
3036
|
return;
|
|
3023
3037
|
const n = e || this._getViewModel().getPlanObjectForId(t[0]);
|
|
3024
|
-
if (!n || n instanceof
|
|
3038
|
+
if (!n || n instanceof Le || n instanceof ne || !(n instanceof J) && !(n instanceof U))
|
|
3025
3039
|
return;
|
|
3026
3040
|
const a = this.cameraBehaviour.cameraControl.getCamera(), { clientWidth: s, clientHeight: i } = this._domHelper.element, o = this.cameraBehaviour.cameraControl.getKernelZoomFactor(), l = n.getObjectMeasurements(
|
|
3027
3041
|
o,
|
|
@@ -3081,7 +3095,7 @@ class re extends Mn {
|
|
|
3081
3095
|
const t = e || this._getViewModel().getPlanObjectForId(
|
|
3082
3096
|
this.currentSelection.staticItemRuntimeId || this.currentSelection.configurationRuntimeId
|
|
3083
3097
|
);
|
|
3084
|
-
if (!t || !(t instanceof
|
|
3098
|
+
if (!t || !(t instanceof Le || t instanceof ne))
|
|
3085
3099
|
return;
|
|
3086
3100
|
this._initData.debug && this._debugSpheres.constructionElementsPoints.children.length > 0 && this._debugSpheres.constructionElementsPoints.clear();
|
|
3087
3101
|
const n = this.cameraBehaviour.cameraControl.getCamera(), { clientWidth: a, clientHeight: s } = this._domHelper.element, i = this.cameraBehaviour.cameraControl.getKernelZoomFactor(), o = t.getConstructionElementMeasurements(i, a, s);
|
|
@@ -3430,9 +3444,7 @@ class re extends Mn {
|
|
|
3430
3444
|
) || this._scene.add(this._getViewModel().getCeilingLightsGroup());
|
|
3431
3445
|
}
|
|
3432
3446
|
toggleInteriorLightsSceneSettings(e) {
|
|
3433
|
-
this._isInteriorLightActive = e;
|
|
3434
|
-
const t = this.getScene();
|
|
3435
|
-
t.userData.environmentDefinition.rotation = e ? In : en, t.userData.environmentDefinition.intensity = e ? On : tn, this._isInteriorLightActive && (this._createCeilingLightGroup(), this._activateCeilingLight()), this._renderEverything();
|
|
3447
|
+
this._initData.featureFlags.interiorLights && (this._isInteriorLightActive = e, this._scene.userData.environmentDefinition.rotation = e ? In : en, this._scene.userData.environmentDefinition.intensity = e ? On : tn, this._isInteriorLightActive && (this._createCeilingLightGroup(), this._activateCeilingLight()), this._getViewModel().toggleCeilingLights(e), this._requestRender());
|
|
3436
3448
|
}
|
|
3437
3449
|
async _insertRapiItems(e) {
|
|
3438
3450
|
const t = e.map((a, s) => ({
|
|
@@ -3445,9 +3457,7 @@ class re extends Mn {
|
|
|
3445
3457
|
}
|
|
3446
3458
|
async insertRapiObjects(e) {
|
|
3447
3459
|
const t = ({ id: i }) => me(i) ? this._rapiAccess.getItem(i) : this._rapiAccess.getConfiguration(i), n = e.map(t), a = await Promise.all(n);
|
|
3448
|
-
return (await this._plannerKernelAccess.insertItems(
|
|
3449
|
-
a
|
|
3450
|
-
)).map((i, o) => ({ runtimeId: i, originalIndex: e[o].index }));
|
|
3460
|
+
return (await this._plannerKernelAccess.insertItems(a)).map((i, o) => ({ runtimeId: i, originalIndex: e[o].index }));
|
|
3451
3461
|
}
|
|
3452
3462
|
}
|
|
3453
3463
|
Ce([
|
|
@@ -3638,7 +3648,7 @@ class A {
|
|
|
3638
3648
|
(t) => {
|
|
3639
3649
|
if (this._hscInstance)
|
|
3640
3650
|
return t(this._hscInstance);
|
|
3641
|
-
import("./configurator-
|
|
3651
|
+
import("./configurator-DDhzCgxy.mjs").then(
|
|
3642
3652
|
({ Configurator: n }) => {
|
|
3643
3653
|
const a = new n(this._creator_);
|
|
3644
3654
|
a.boot({
|
|
@@ -3660,7 +3670,7 @@ class A {
|
|
|
3660
3670
|
(t) => {
|
|
3661
3671
|
if (this._glbInstance)
|
|
3662
3672
|
return t(this._glbInstance);
|
|
3663
|
-
import("./glb-viewer-
|
|
3673
|
+
import("./glb-viewer-BoZgMSrk.mjs").then(
|
|
3664
3674
|
(n) => {
|
|
3665
3675
|
const a = new n.GlbViewer(this._creator_);
|
|
3666
3676
|
a.boot(), a.getApi().setOverrides(this._initData), a.getApi().init(this._domHelper.element).then(() => {
|
|
@@ -4112,7 +4122,6 @@ class A {
|
|
|
4112
4122
|
n,
|
|
4113
4123
|
!1,
|
|
4114
4124
|
2
|
|
4115
|
-
/** XML version */
|
|
4116
4125
|
), c = {
|
|
4117
4126
|
parentId: e || null,
|
|
4118
4127
|
planObjects: [],
|
|
@@ -4171,7 +4180,6 @@ class A {
|
|
|
4171
4180
|
t,
|
|
4172
4181
|
!1,
|
|
4173
4182
|
2
|
|
4174
|
-
/** XML version */
|
|
4175
4183
|
) : a.getPlanXML(!1, 2), o = {
|
|
4176
4184
|
parentId: e || null,
|
|
4177
4185
|
planObjects: [],
|
|
@@ -4374,7 +4382,7 @@ class A {
|
|
|
4374
4382
|
this._sceneManager.disableEvents();
|
|
4375
4383
|
}
|
|
4376
4384
|
async downloadHomagIxExportPoC() {
|
|
4377
|
-
const { downloadHomagIxExportPoC: e } = await import("./imos-ix-poc-export-helper-
|
|
4385
|
+
const { downloadHomagIxExportPoC: e } = await import("./imos-ix-poc-export-helper-gQb0lbdn.mjs"), t = (await this.getPlanModelViewHelper()).getPlanOverview(
|
|
4378
4386
|
this._plan
|
|
4379
4387
|
);
|
|
4380
4388
|
return e(
|
|
@@ -4692,7 +4700,10 @@ class A {
|
|
|
4692
4700
|
*/
|
|
4693
4701
|
setAtticSide(e, t) {
|
|
4694
4702
|
this._executeWithInteraction(
|
|
4695
|
-
() => this._plannerKernelAccess.planInteractionHandler.setAtticSide(
|
|
4703
|
+
() => this._plannerKernelAccess.planInteractionHandler.setAtticSide(
|
|
4704
|
+
e,
|
|
4705
|
+
t
|
|
4706
|
+
)
|
|
4696
4707
|
);
|
|
4697
4708
|
}
|
|
4698
4709
|
/**
|
|
@@ -4758,18 +4769,25 @@ class A {
|
|
|
4758
4769
|
return this._sceneManager.resume();
|
|
4759
4770
|
}
|
|
4760
4771
|
/**
|
|
4761
|
-
*
|
|
4762
|
-
* @hidden
|
|
4772
|
+
* Returns all configurable element's light/lamp sources in the scene.
|
|
4763
4773
|
*/
|
|
4764
|
-
|
|
4765
|
-
|
|
4774
|
+
getScenePlanElementLightSources() {
|
|
4775
|
+
return this._sceneManager.scenePlanElementLightSources;
|
|
4766
4776
|
}
|
|
4767
4777
|
/**
|
|
4768
|
-
*
|
|
4769
|
-
* @
|
|
4778
|
+
* Turns all lights in the scene on or off.
|
|
4779
|
+
* @param state whether the lights should be on or off
|
|
4780
|
+
*/
|
|
4781
|
+
setAllLightsOnOff(e) {
|
|
4782
|
+
this._sceneManager.setAllLightsOnOff(e);
|
|
4783
|
+
}
|
|
4784
|
+
/**
|
|
4785
|
+
* Turns lights by list of light IDs in the scene on or off
|
|
4786
|
+
* @param state whether the lights should be on or off
|
|
4787
|
+
* @param ids array of light IDs, see type interface RoomleLightSource._lightSourceId
|
|
4770
4788
|
*/
|
|
4771
|
-
|
|
4772
|
-
this.
|
|
4789
|
+
setLightsOnOffByIds(e, t) {
|
|
4790
|
+
this._sceneManager.setLightsOnOffByIds(e, t);
|
|
4773
4791
|
}
|
|
4774
4792
|
async getPlanObjectForRuntimeId(e) {
|
|
4775
4793
|
const t = this._planInteractionHandler.getPlan()?.extRef?.jsObject;
|
|
@@ -4865,7 +4883,7 @@ class Yn extends ln {
|
|
|
4865
4883
|
}
|
|
4866
4884
|
}
|
|
4867
4885
|
const Xn = [
|
|
4868
|
-
new $("script-loader",
|
|
4886
|
+
new $("script-loader", Ln),
|
|
4869
4887
|
new $(
|
|
4870
4888
|
"planner-input-manager",
|
|
4871
4889
|
Yn,
|
|
@@ -4909,10 +4927,10 @@ class $e {
|
|
|
4909
4927
|
}, this._globalCallback.onFetchExternalData = this._onFetchExternalData.bind(this);
|
|
4910
4928
|
}
|
|
4911
4929
|
async _onCheckExternalCache(e) {
|
|
4912
|
-
if (e === "/tags/" +
|
|
4930
|
+
if (e === "/tags/" + Me(lt)) {
|
|
4913
4931
|
const t = await this._processedArticles();
|
|
4914
4932
|
return this._tagIds = [...t.keys()].sort((n, a) => n.localeCompare(a)), Promise.resolve({
|
|
4915
|
-
tag: { id:
|
|
4933
|
+
tag: { id: Me(lt), tags: this._tagIds, sort: 1 }
|
|
4916
4934
|
});
|
|
4917
4935
|
}
|
|
4918
4936
|
for (const t of this._tagIds) {
|
|
@@ -4942,7 +4960,7 @@ class $e {
|
|
|
4942
4960
|
async _processedArticles() {
|
|
4943
4961
|
let e = await this._articlesPromise;
|
|
4944
4962
|
return e.articles && (e = e.articles), e.reduce((t, n) => {
|
|
4945
|
-
const a = n.category || "Uncategorized", s =
|
|
4963
|
+
const a = n.category || "Uncategorized", s = Me(a.toLowerCase());
|
|
4946
4964
|
t.has(s) || t.set(s, {
|
|
4947
4965
|
id: s,
|
|
4948
4966
|
label: a,
|
|
@@ -4991,20 +5009,20 @@ ut([
|
|
|
4991
5009
|
], $e.prototype, "_configuratorViewModel");
|
|
4992
5010
|
class Qn {
|
|
4993
5011
|
}
|
|
4994
|
-
const
|
|
5012
|
+
const L = (...r) => console.log("[HI]", "API Callback:", ...r), ie = (...r) => console.log("[HI]", "Message:", ...r), M = (...r) => console.log("[HI]", "API Call:", ...r);
|
|
4995
5013
|
class ea {
|
|
4996
5014
|
constructor(e) {
|
|
4997
5015
|
this._roomlePlanner = e;
|
|
4998
5016
|
}
|
|
4999
5017
|
loadMasterData(e) {
|
|
5000
|
-
|
|
5018
|
+
M("loadExternalObjectLibrary"), this._roomlePlanner.loadExternalObjectLibrary(e);
|
|
5001
5019
|
}
|
|
5002
5020
|
async loadPosGroups(e, t, n, a = []) {
|
|
5003
5021
|
const s = Array.isArray(e) ? e : [e];
|
|
5004
5022
|
let i = "";
|
|
5005
5023
|
for (const o of s)
|
|
5006
5024
|
i += ` '${o.id}'`;
|
|
5007
|
-
|
|
5025
|
+
M(`loadExternalObjectGroup${i}`), await this._roomlePlanner.loadExternalObjectGroup(
|
|
5008
5026
|
s,
|
|
5009
5027
|
t,
|
|
5010
5028
|
n,
|
|
@@ -5012,13 +5030,13 @@ class ea {
|
|
|
5012
5030
|
);
|
|
5013
5031
|
}
|
|
5014
5032
|
async selectGroup(e) {
|
|
5015
|
-
|
|
5033
|
+
M(`selectExternalObjectGroup '${e}'`), await this._roomlePlanner.selectExternalObjectGroup(e);
|
|
5016
5034
|
}
|
|
5017
5035
|
async selectRoot(e) {
|
|
5018
|
-
|
|
5036
|
+
M(`selectExternalObjectRootModule '${e}'`), await this._roomlePlanner.selectExternalObjectRootModule(e);
|
|
5019
5037
|
}
|
|
5020
5038
|
async selectModule(e, t) {
|
|
5021
|
-
|
|
5039
|
+
M(
|
|
5022
5040
|
`selectExternalObjectSubModule '${e}' '${t}'`
|
|
5023
5041
|
), await this._roomlePlanner.selectExternalObjectSubModule(
|
|
5024
5042
|
e,
|
|
@@ -5026,7 +5044,7 @@ class ea {
|
|
|
5026
5044
|
);
|
|
5027
5045
|
}
|
|
5028
5046
|
async openCloseGroup(e, t, n, a) {
|
|
5029
|
-
|
|
5047
|
+
M(
|
|
5030
5048
|
`openCloseExternalObject '${e}' '${t}' ${n ? "open" : "close"}`
|
|
5031
5049
|
), await this._roomlePlanner.openOrCloseGeometryOfExternalObject(
|
|
5032
5050
|
e,
|
|
@@ -5036,21 +5054,21 @@ class ea {
|
|
|
5036
5054
|
);
|
|
5037
5055
|
}
|
|
5038
5056
|
async deleteGroup(e, t = !1) {
|
|
5039
|
-
|
|
5057
|
+
M(`removeExternalObjectGroup '${e}' ${t}`), await this._roomlePlanner.removeExternalObjectGroup(e, t);
|
|
5040
5058
|
}
|
|
5041
5059
|
deleteRootModule(e) {
|
|
5042
|
-
return
|
|
5060
|
+
return M(`removeExternalObjectRootModule '${e}'`), this._roomlePlanner.removeExternalObjectRootModule(e), Promise.resolve();
|
|
5043
5061
|
}
|
|
5044
5062
|
async getPosDataOfAllGroups() {
|
|
5045
5063
|
const e = await this._roomlePlanner.getExternalObjectGroups(), t = e.map((n) => n.id);
|
|
5046
|
-
return
|
|
5064
|
+
return M(`getPosDataOfAllGroups => '${t}'`), e;
|
|
5047
5065
|
}
|
|
5048
5066
|
async getRoomInformation() {
|
|
5049
5067
|
const e = await this._roomlePlanner.getExternalRoomInformation();
|
|
5050
|
-
return
|
|
5068
|
+
return M("getRoomInformation"), e;
|
|
5051
5069
|
}
|
|
5052
5070
|
async generatePlanSnapshot() {
|
|
5053
|
-
|
|
5071
|
+
M("saveExternalObjectSnapshot"), M("saveCurrentPlanSnapshot");
|
|
5054
5072
|
const [e, t] = await Promise.all([
|
|
5055
5073
|
this._roomlePlanner.saveExternalObjectSnapshot(),
|
|
5056
5074
|
this._roomlePlanner.saveCurrentPlanSnapshot()
|
|
@@ -5058,20 +5076,20 @@ class ea {
|
|
|
5058
5076
|
ie("Group ID", e?.id), ie("Plan ID", t.id);
|
|
5059
5077
|
}
|
|
5060
5078
|
async saveExternalObjectSnapshot() {
|
|
5061
|
-
return
|
|
5079
|
+
return M("saveExternalObjectSnapshot"), this._roomlePlanner.saveExternalObjectSnapshot();
|
|
5062
5080
|
}
|
|
5063
5081
|
async saveCurrentPlanSnapshot() {
|
|
5064
|
-
return
|
|
5082
|
+
return M("saveCurrentPlanSnapshot"), this._roomlePlanner.saveCurrentPlanSnapshot();
|
|
5065
5083
|
}
|
|
5066
5084
|
async renderPosDataImage(e) {
|
|
5067
5085
|
const t = Array.isArray(e) ? e : [e];
|
|
5068
5086
|
let n = "";
|
|
5069
5087
|
for (const a of t)
|
|
5070
5088
|
n += ` '${a.id}'`;
|
|
5071
|
-
|
|
5089
|
+
M(`renderImagesOfExternalObjectGroup${n}`), await this._roomlePlanner.renderImagesOfExternalObjectGroup(t);
|
|
5072
5090
|
}
|
|
5073
5091
|
async downloadGlb() {
|
|
5074
|
-
|
|
5092
|
+
M("saveExternalObjectSnapshot");
|
|
5075
5093
|
const e = await this._roomlePlanner.saveExternalObjectSnapshot();
|
|
5076
5094
|
if (!e) {
|
|
5077
5095
|
ie("No plan snapshot available to download GLB.");
|
|
@@ -5587,24 +5605,24 @@ function ra(r, e, t) {
|
|
|
5587
5605
|
}
|
|
5588
5606
|
const oa = (r) => `(${r[0].toFixed(1)}, ${r[1].toFixed(1)}, ${r[2].toFixed(1)})`, la = (r) => `${r?.toFixed(1) ?? 0}°`, ca = (r, e) => {
|
|
5589
5607
|
r.callbacks.onMergeExternalObjectGroup = (t, n, a) => {
|
|
5590
|
-
|
|
5608
|
+
L(
|
|
5591
5609
|
`onMergeExternalObjectGroup ${t} ${n}, ${a}`
|
|
5592
5610
|
), e.mergeGroups(t, n, a);
|
|
5593
5611
|
}, r.callbacks.onSplitExternalObjectGroup = (t, n) => {
|
|
5594
|
-
|
|
5612
|
+
L(
|
|
5595
5613
|
"onSplitExternalObjectGroup",
|
|
5596
5614
|
JSON.stringify(t),
|
|
5597
5615
|
JSON.stringify(n)
|
|
5598
5616
|
), e.splitRootModuleFromGroup(t, n);
|
|
5599
5617
|
}, r.callbacks.onExternalObjectGroupArrangementChanged = (t) => {
|
|
5600
|
-
|
|
5618
|
+
L(
|
|
5601
5619
|
"onExternalObjectGroupArrangementChanged",
|
|
5602
5620
|
JSON.stringify(t)
|
|
5603
5621
|
), e.arrangeRootModulesOfGroup(t);
|
|
5604
5622
|
}, r.callbacks.onDeleteExternalObjectGroup = (t) => {
|
|
5605
|
-
|
|
5623
|
+
L(`onDeleteExternalObjectGroup ${t}`), e.removedGroup(t);
|
|
5606
5624
|
}, r.callbacks.onDeleteExternalObjectRootModule = (t, n, a) => {
|
|
5607
|
-
|
|
5625
|
+
L(
|
|
5608
5626
|
"onDeleteExternalObjectRootModule",
|
|
5609
5627
|
JSON.stringify(t),
|
|
5610
5628
|
n,
|
|
@@ -5615,32 +5633,32 @@ const oa = (r) => `(${r[0].toFixed(1)}, ${r[1].toFixed(1)}, ${r[2].toFixed(1)})`
|
|
|
5615
5633
|
a ?? []
|
|
5616
5634
|
);
|
|
5617
5635
|
}, r.callbacks.onDeleteExternalObjectSubModule = (t, n) => {
|
|
5618
|
-
|
|
5636
|
+
L(
|
|
5619
5637
|
`onDeleteExternalObjectSubModule ${t} ${n}`
|
|
5620
5638
|
);
|
|
5621
5639
|
}, r.callbacks.onDuplicateExternalObjectGroup = (t, n) => {
|
|
5622
|
-
|
|
5640
|
+
L(
|
|
5623
5641
|
`onDuplicateExternalObjectGroup ${t}, ${n}`
|
|
5624
5642
|
), e.duplicateGroup(t, n);
|
|
5625
5643
|
}, r.callbacks.onChangedExternalObjectGroupPlan = (t) => {
|
|
5626
|
-
|
|
5644
|
+
L(
|
|
5627
5645
|
"onChangedExternalObjectGroupPlan",
|
|
5628
5646
|
t.groupId,
|
|
5629
5647
|
oa(t.pos),
|
|
5630
5648
|
la(t.rotationY ?? 0)
|
|
5631
5649
|
), e.changedGroupPlanningSituation(t);
|
|
5632
5650
|
}, r.callbacks.onExternalObjectEnvironmentChanged = (t) => {
|
|
5633
|
-
|
|
5651
|
+
L("onExternalObjectEnvironmentChanged", ...t);
|
|
5634
5652
|
}, r.callbacks.onExternalObjectGroupChanged = (t) => {
|
|
5635
5653
|
const n = JSON.parse(t);
|
|
5636
|
-
|
|
5654
|
+
L("onExternalObjectGroupChanged", n.id), e.changedGroup(n);
|
|
5637
5655
|
}, r.callbacks.onExternalObjectGroupLoaded = (t) => {
|
|
5638
5656
|
const n = JSON.parse(t);
|
|
5639
|
-
|
|
5657
|
+
L("onExternalObjectGroupLoaded", n.id), e.loadedGroup(n);
|
|
5640
5658
|
}, r.callbacks.onExternalObjectAttributeChanged = (t, n, a, s) => {
|
|
5641
5659
|
if (Array.isArray(n)) {
|
|
5642
5660
|
for (const i of n)
|
|
5643
|
-
|
|
5661
|
+
L(
|
|
5644
5662
|
"onExternalObjectAttributeChanged",
|
|
5645
5663
|
i.groupId,
|
|
5646
5664
|
i.rootModuleId,
|
|
@@ -5650,7 +5668,7 @@ const oa = (r) => `(${r[0].toFixed(1)}, ${r[1].toFixed(1)}, ${r[2].toFixed(1)})`
|
|
|
5650
5668
|
);
|
|
5651
5669
|
e.modifyAttribute(t, n, a, s);
|
|
5652
5670
|
} else
|
|
5653
|
-
|
|
5671
|
+
L(
|
|
5654
5672
|
"onExternalObjectAttributeChanged",
|
|
5655
5673
|
t,
|
|
5656
5674
|
n,
|
|
@@ -5669,7 +5687,7 @@ const oa = (r) => `(${r[0].toFixed(1)}, ${r[1].toFixed(1)}, ${r[2].toFixed(1)})`
|
|
|
5669
5687
|
s
|
|
5670
5688
|
);
|
|
5671
5689
|
}, r.callbacks.onPlanSnapshotCreated = (...t) => {
|
|
5672
|
-
|
|
5690
|
+
L("onPlanSnapshotCreated", t);
|
|
5673
5691
|
};
|
|
5674
5692
|
}, ve = (r = /* @__PURE__ */ new Date()) => {
|
|
5675
5693
|
let e = r.toISOString();
|
|
@@ -5865,7 +5883,7 @@ class ga extends Qn {
|
|
|
5865
5883
|
l,
|
|
5866
5884
|
c.id
|
|
5867
5885
|
);
|
|
5868
|
-
|
|
5886
|
+
M(`checks '${h}'`);
|
|
5869
5887
|
}
|
|
5870
5888
|
return Promise.resolve();
|
|
5871
5889
|
},
|
|
@@ -6000,4 +6018,4 @@ class Sa extends mn {
|
|
|
6000
6018
|
export {
|
|
6001
6019
|
Sa as Planner
|
|
6002
6020
|
};
|
|
6003
|
-
//# sourceMappingURL=planner-
|
|
6021
|
+
//# sourceMappingURL=planner-BilNNFJ0.mjs.map
|