@realsee/dnalogel 3.50.17-alpha.0 → 3.51.0
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/CHANGELOG.md +3 -0
- package/dist/ModelMakerPlugin/Controller.d.ts +2 -0
- package/dist/Sculpt/utils/export.d.ts +18 -0
- package/dist/index.cjs.js +207 -207
- package/dist/index.js +34866 -34775
- package/dist/index.umd.js +211 -211
- package/dist/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
- package/dist/shared-utils/index.d.ts +1 -0
- package/dist/shared-utils/tag.d.ts +40 -1
- package/dist/shared-utils/three/temp.d.ts +2 -2
- package/libs/AreaMakerPlugin/Controller.js +100 -46
- package/libs/AreaMakerPlugin/index.js +64 -10
- package/libs/AreaMakerPlugin/utils/Item.js +156 -100
- package/libs/CSS3DRenderPlugin/Controller.js +93 -44
- package/libs/CSS3DRenderPlugin/index.js +62 -13
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +105 -49
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +130 -77
- package/libs/CruisePlugin/BaseController.js +143 -89
- package/libs/CruisePlugin/Move.js +83 -39
- package/libs/CruisePlugin/Work.js +95 -51
- package/libs/CruisePlugin/index.js +66 -22
- package/libs/CurrentPanoImagePlugin/Controller.js +139 -85
- package/libs/CurrentPanoImagePlugin/index.js +63 -9
- package/libs/GuideLinePlugin/Controller.js +57 -13
- package/libs/GuideLinePlugin/GuideLineItem.js +63 -19
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +6 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +58 -14
- package/libs/GuideLinePlugin/index.js +66 -22
- package/libs/ModelMakerPlugin/Controller.d.ts +2 -0
- package/libs/ModelMakerPlugin/Controller.js +190 -129
- package/libs/ModelMakerPlugin/index.js +63 -21
- package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +5 -3
- package/libs/ModelMakerPlugin/item/polygonItem.js +9 -7
- package/libs/ModelMakerPlugin/item/prismItem.js +5 -3
- package/libs/ModelTVVideoPlugin/Plugin.js +96 -47
- package/libs/ModelTVVideoPlugin/index.js +55 -6
- package/libs/Object3DHelperPlugin/Controller.js +42 -25
- package/libs/Object3DHelperPlugin/index.js +28 -12
- package/libs/PanoCompassPlugin/Controller.js +92 -44
- package/libs/PanoCompassPlugin/index.js +63 -15
- package/libs/PanoDoorLabelPlugin/BaseController.js +79 -25
- package/libs/PanoDoorLabelPlugin/Controller.js +132 -78
- package/libs/PanoDoorLabelPlugin/index.js +63 -9
- package/libs/PanoMeasurePlugin/Components/Controller0.js +126 -77
- package/libs/PanoMeasurePlugin/Components/Controller1.js +139 -90
- package/libs/PanoMeasurePlugin/Controller/EditController.js +120 -71
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +120 -70
- package/libs/PanoMeasurePlugin/Controller/index.js +132 -86
- package/libs/PanoMeasurePlugin/Model/area.js +72 -22
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +56 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +64 -15
- package/libs/PanoMeasurePlugin/index.js +62 -16
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +57 -2
- package/libs/PanoRulerProPlugin/Controller.js +88 -33
- package/libs/PanoRulerProPlugin/RulerItems.js +146 -91
- package/libs/PanoRulerProPlugin/index.js +64 -9
- package/libs/PanoSpatialTagPlugin/Plugin.js +177 -128
- package/libs/PanoSpatialTagPlugin/index.js +53 -4
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +116 -60
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +192 -136
- package/libs/PanoTagPlugin/Components/Tag/index.js +194 -139
- package/libs/PanoTagPlugin/Components/TagContainer.js +112 -57
- package/libs/PanoTagPlugin/Components/TagItem.js +204 -149
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +157 -101
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +75 -20
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +86 -31
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +93 -37
- package/libs/PanoTagPlugin/controller/TagRender.js +62 -18
- package/libs/PanoTagPlugin/controller/TagUtil.js +123 -79
- package/libs/PanoTagPlugin/controller/index.js +110 -72
- package/libs/PanoTagPlugin/index.js +72 -28
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +77 -21
- package/libs/PanoVideoPlugin/Controller.js +95 -41
- package/libs/PanoVideoPlugin/VideoMeshController.js +119 -63
- package/libs/PanoVideoPlugin/index.js +66 -12
- package/libs/PipelinePlugin/Controller.js +173 -119
- package/libs/PipelinePlugin/index.js +63 -9
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +70 -14
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +58 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +98 -42
- package/libs/Sculpt/Meshes/Box.js +3 -2
- package/libs/Sculpt/Meshes/Cylinder.js +10 -6
- package/libs/Sculpt/Meshes/Line.js +43 -38
- package/libs/Sculpt/Meshes/LineWithDots.js +14 -10
- package/libs/Sculpt/Meshes/Point.js +24 -20
- package/libs/Sculpt/Meshes/Polygon.js +5 -2
- package/libs/Sculpt/Meshes/Prism.js +19 -16
- package/libs/Sculpt/Objects/Line/Editor.js +6 -5
- package/libs/Sculpt/index.js +15 -14
- package/libs/Sculpt/utils/export.d.ts +18 -0
- package/libs/Sculpt/utils/export.js +21 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +26 -22
- package/libs/base/BasePlugin.js +14 -10
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +146 -94
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +62 -10
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +109 -56
- package/libs/floorplan/ModelFloorplanPlugin/index.js +62 -9
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +116 -63
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +62 -9
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +105 -52
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +62 -9
- package/libs/floorplan/index.js +4 -0
- package/libs/index.js +208 -206
- package/libs/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
- package/libs/shared-utils/five/fiveEveryReadyListener.js +15 -0
- package/libs/shared-utils/five/index.js +6 -2
- package/libs/shared-utils/five/lookObject.js +31 -27
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +19 -17
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +40 -1
- package/libs/shared-utils/tag.js +139 -86
- package/libs/shared-utils/three/index.js +4 -0
- package/libs/shared-utils/three/temp.d.ts +2 -2
- package/libs/shared-utils/three/temp.js +4 -4
- package/package.json +1 -1
- package/README.md +0 -116
|
@@ -2,30 +2,30 @@ var C = Object.defineProperty, F = Object.defineProperties;
|
|
|
2
2
|
var E = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var g = Object.getOwnPropertySymbols;
|
|
4
4
|
var A = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var u = (
|
|
6
|
-
for (var t in
|
|
7
|
-
A.call(
|
|
5
|
+
var u = (p, s, t) => s in p ? C(p, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[s] = t, d = (p, s) => {
|
|
6
|
+
for (var t in s || (s = {}))
|
|
7
|
+
A.call(s, t) && u(p, t, s[t]);
|
|
8
8
|
if (g)
|
|
9
|
-
for (var t of g(
|
|
10
|
-
x.call(
|
|
11
|
-
return
|
|
12
|
-
}, f = (
|
|
13
|
-
var o = (
|
|
14
|
-
var c = (
|
|
15
|
-
var
|
|
9
|
+
for (var t of g(s))
|
|
10
|
+
x.call(s, t) && u(p, t, s[t]);
|
|
11
|
+
return p;
|
|
12
|
+
}, f = (p, s) => F(p, E(s));
|
|
13
|
+
var o = (p, s, t) => (u(p, typeof s != "symbol" ? s + "" : s, t), t);
|
|
14
|
+
var c = (p, s, t) => new Promise((i, e) => {
|
|
15
|
+
var r = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(t.next(h));
|
|
18
|
-
} catch (
|
|
19
|
-
e(
|
|
18
|
+
} catch (m) {
|
|
19
|
+
e(m);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, n = (h) => {
|
|
22
22
|
try {
|
|
23
23
|
a(t.throw(h));
|
|
24
|
-
} catch (
|
|
25
|
-
e(
|
|
24
|
+
} catch (m) {
|
|
25
|
+
e(m);
|
|
26
26
|
}
|
|
27
|
-
}, a = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(
|
|
28
|
-
a((t = t.apply(
|
|
27
|
+
}, a = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(r, n);
|
|
28
|
+
a((t = t.apply(p, s)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as S from "three";
|
|
31
31
|
import { equal as y } from "../../shared-utils/equal.js";
|
|
@@ -48,6 +48,10 @@ import "../../shared-utils/three/core/Sphere.js";
|
|
|
48
48
|
import "animejs";
|
|
49
49
|
import { isNil as k } from "../../shared-utils/isNil.js";
|
|
50
50
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
51
|
+
import "../../Sculpt/Meshes/Polygon.js";
|
|
52
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
53
|
+
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
54
|
+
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
51
55
|
import "../../shared-utils/isTruelyObject.js";
|
|
52
56
|
import "../../vendor/svelte/internal/index.js";
|
|
53
57
|
import "../../vendor/svelte/transition/index.js";
|
|
@@ -90,7 +94,10 @@ import "../../shared-utils/to.js";
|
|
|
90
94
|
import "../../shared-utils/positionToVector3.js";
|
|
91
95
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
92
96
|
import "../../shared-utils/three/temp.js";
|
|
97
|
+
import "../../shared-utils/three/core/Raycaster.js";
|
|
93
98
|
import "../../shared-utils/dom/resizeObserver.js";
|
|
99
|
+
import "../../shared-utils/five/fiveEveryReadyListener.js";
|
|
100
|
+
import "../../shared-utils/throttle.js";
|
|
94
101
|
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
95
102
|
import "../../shared-utils/three/Magnifier.js";
|
|
96
103
|
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
@@ -121,9 +128,55 @@ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
|
121
128
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
122
129
|
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
123
130
|
import "../../vendor/three/build/three.module.js";
|
|
124
|
-
|
|
131
|
+
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
132
|
+
import "../../shared-utils/three/earcut3D.js";
|
|
133
|
+
import "earcut";
|
|
134
|
+
import "../../shared-utils/three/getNormal.js";
|
|
135
|
+
import "../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
136
|
+
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
137
|
+
import "../../shared-utils/three/geometryUtil.js";
|
|
138
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
139
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
140
|
+
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
141
|
+
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
142
|
+
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
143
|
+
import "../../shared-utils/three/boundingBox.js";
|
|
144
|
+
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
145
|
+
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
146
|
+
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
147
|
+
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
148
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
149
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
150
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
151
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
152
|
+
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
153
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
154
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
155
|
+
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
156
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
157
|
+
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
158
|
+
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
159
|
+
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
160
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
161
|
+
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
162
|
+
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
163
|
+
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
164
|
+
import "../../shared-utils/Object3DHelper/index.js";
|
|
165
|
+
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
166
|
+
import "../../shared-utils/math/deg2Rad.js";
|
|
167
|
+
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
168
|
+
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
169
|
+
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
170
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
171
|
+
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
172
|
+
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
173
|
+
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
174
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
175
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
176
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
177
|
+
class Fe extends M {
|
|
125
178
|
constructor(t, i) {
|
|
126
|
-
var h,
|
|
179
|
+
var h, m;
|
|
127
180
|
super(t);
|
|
128
181
|
// =============== public properties =================
|
|
129
182
|
o(this, "name", "topviewFloorplanPlugin");
|
|
@@ -153,8 +206,8 @@ class Ei extends M {
|
|
|
153
206
|
o(this, "updateSize", () => {
|
|
154
207
|
if (!this.data || !this.container || !this.wrapper || this.five.getCurrentState().mode !== "Topview")
|
|
155
208
|
return !1;
|
|
156
|
-
const { min: t, max: i } = this.data.bounding, e = i.x - t.x,
|
|
157
|
-
return this.size.width === h && this.size.height ===
|
|
209
|
+
const { min: t, max: i } = this.data.bounding, e = i.x - t.x, r = i.y - t.y, n = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = D(this.five, this.wrapper, this.floorIndex, n), h = Math.ceil(e * a), m = Math.ceil(r * a);
|
|
210
|
+
return this.size.width === h && this.size.height === m || (this.container.style.width = h + "px", this.container.style.height = m + "px", this.size = { width: h, height: m }), !0;
|
|
158
211
|
});
|
|
159
212
|
/** 销毁插件 */
|
|
160
213
|
o(this, "dispose", () => {
|
|
@@ -168,9 +221,9 @@ class Ei extends M {
|
|
|
168
221
|
this.highlightData = {}, this.render();
|
|
169
222
|
});
|
|
170
223
|
o(this, "_disable", (t) => {
|
|
171
|
-
var e,
|
|
224
|
+
var e, r;
|
|
172
225
|
const { userAction: i } = t;
|
|
173
|
-
(e = this.app) == null || e.$destroy(), this.app = void 0, (
|
|
226
|
+
(e = this.app) == null || e.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener(), this.hooks.emit("disable", { userAction: i });
|
|
174
227
|
});
|
|
175
228
|
/** modelLoaded 之后自动执行 append container 操作 */
|
|
176
229
|
o(this, "onFiveModelLoaded", () => {
|
|
@@ -219,7 +272,7 @@ class Ei extends M {
|
|
|
219
272
|
imageURL: this.staticPrefix + "/release/web/saas/missing-floorplan.e274c596.png",
|
|
220
273
|
imageWidth: 200,
|
|
221
274
|
imageHeight: 120,
|
|
222
|
-
text: (
|
|
275
|
+
text: (m = (h = i.i18n) == null ? void 0 : h.call(i, "暂无平面图")) != null ? m : "暂无平面图",
|
|
223
276
|
textFontSize: 14
|
|
224
277
|
};
|
|
225
278
|
const e = {
|
|
@@ -239,24 +292,24 @@ class Ei extends M {
|
|
|
239
292
|
cameraImageUrl: L,
|
|
240
293
|
attachedTo: _.BOUNDING_CENTER,
|
|
241
294
|
getLabelElement: void 0,
|
|
242
|
-
missingFloorConfig:
|
|
243
|
-
i18n: (
|
|
295
|
+
missingFloorConfig: d(d({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
|
|
296
|
+
i18n: (l) => l,
|
|
244
297
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
245
|
-
getRoomAreaText: (
|
|
246
|
-
getRoomDimensionText: (
|
|
247
|
-
getRuleDistanceText: (
|
|
248
|
-
},
|
|
298
|
+
getRoomAreaText: (l) => (l / 1e6).toFixed(1) + "㎡",
|
|
299
|
+
getRoomDimensionText: (l, w) => (l / 1e3).toFixed(1) + "m × " + (w / 1e3).toFixed(1) + "m",
|
|
300
|
+
getRuleDistanceText: (l) => l.toString()
|
|
301
|
+
}, r = i ? T(i, ["selector", "scale"]) : {}, n = d(d({}, e.missingFloorConfig), r.missingFloorConfig), a = f(d(d({}, e), r), { missingFloorConfig: n });
|
|
249
302
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
|
|
250
303
|
}
|
|
251
304
|
load(t, i, e = !0) {
|
|
252
305
|
return c(this, null, function* () {
|
|
253
|
-
function
|
|
254
|
-
return Object.prototype.hasOwnProperty.apply(
|
|
306
|
+
function r(l) {
|
|
307
|
+
return Object.prototype.hasOwnProperty.apply(l, ["version"]);
|
|
255
308
|
}
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
const a = JSON.parse(JSON.stringify(t)), h =
|
|
259
|
-
this.data = yield v(h), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data,
|
|
309
|
+
const n = t;
|
|
310
|
+
n && k(n.version) && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
|
|
311
|
+
const a = JSON.parse(JSON.stringify(t)), h = r(a) ? a.data : a, m = this.data;
|
|
312
|
+
this.data = yield v(h), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, m), i && this.updateState(i, e), this.render();
|
|
260
313
|
});
|
|
261
314
|
}
|
|
262
315
|
/** 更新户型图位置 */
|
|
@@ -265,8 +318,8 @@ class Ei extends M {
|
|
|
265
318
|
const t = O(this.five, this.floorIndex, this.state.config.attachedTo), i = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new S.Vector3()).setY(t);
|
|
266
319
|
if (!i)
|
|
267
320
|
return;
|
|
268
|
-
const e = i.clone().project(this.five.camera),
|
|
269
|
-
this.container.style.left =
|
|
321
|
+
const e = i.clone().project(this.five.camera), r = (e.x + 1) / 2, n = -(e.y - 1) / 2;
|
|
322
|
+
this.container.style.left = r * 100 + "%", this.container.style.top = n * 100 + "%";
|
|
270
323
|
}
|
|
271
324
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
272
325
|
appendTo(t) {
|
|
@@ -303,14 +356,14 @@ class Ei extends M {
|
|
|
303
356
|
}
|
|
304
357
|
/** 更改插件 State */
|
|
305
358
|
setState(t, i = {}) {
|
|
306
|
-
const e = this.state,
|
|
307
|
-
if (this.updateState(t,
|
|
308
|
-
const
|
|
309
|
-
t.enabled ? this._enable(
|
|
359
|
+
const e = this.state, r = i.userAction !== void 0 ? i.userAction : !0;
|
|
360
|
+
if (this.updateState(t, r), t.enabled !== void 0 && e.enabled !== t.enabled) {
|
|
361
|
+
const n = { userAction: r };
|
|
362
|
+
t.enabled ? this._enable(n) : this._disable(n);
|
|
310
363
|
}
|
|
311
364
|
if (t.visible !== void 0 && e.visible !== t.visible) {
|
|
312
|
-
const
|
|
313
|
-
t.visible ? this._show(
|
|
365
|
+
const n = { userAction: r };
|
|
366
|
+
t.visible ? this._show(n) : this._hide(n);
|
|
314
367
|
}
|
|
315
368
|
}
|
|
316
369
|
changeConfigs(t, i = !0) {
|
|
@@ -328,8 +381,8 @@ class Ei extends M {
|
|
|
328
381
|
this.isHiddenByHideFunc = !1;
|
|
329
382
|
const { userAction: i } = t;
|
|
330
383
|
this.hooks.emit("show", { userAction: i, auto: !1 }), this.five.getCurrentState().mode !== "Topview" && (yield P(this.five, ["Topview", void 0, void 0, i])), this.five.model.show(this.floorIndex), this.updatePosition(), this.updateSize();
|
|
331
|
-
const e = 500,
|
|
332
|
-
b(this.five,
|
|
384
|
+
const e = 500, r = this.state.config.modelOpacity;
|
|
385
|
+
b(this.five, r, e), this.hooks.emit("showAnimationEnded", { userAction: i, auto: !1 }), this.render();
|
|
333
386
|
});
|
|
334
387
|
}
|
|
335
388
|
_hide(t) {
|
|
@@ -338,8 +391,8 @@ class Ei extends M {
|
|
|
338
391
|
return;
|
|
339
392
|
const { userAction: i } = t;
|
|
340
393
|
this.hooks.emit("hide", { userAction: i, auto: !1 });
|
|
341
|
-
const e = 1,
|
|
342
|
-
b(this.five, e,
|
|
394
|
+
const e = 1, r = 0;
|
|
395
|
+
b(this.five, e, r), this.render();
|
|
343
396
|
});
|
|
344
397
|
}
|
|
345
398
|
_enable(t) {
|
|
@@ -348,8 +401,8 @@ class Ei extends M {
|
|
|
348
401
|
}
|
|
349
402
|
updateState(t, i) {
|
|
350
403
|
var a;
|
|
351
|
-
const e = this.state,
|
|
352
|
-
this.state = f(
|
|
404
|
+
const e = this.state, r = (a = t.config) != null && a.missingFloorConfig ? d(d({}, e.config.missingFloorConfig), t.config.missingFloorConfig) : e.config.missingFloorConfig, n = t.config ? f(d(d({}, e.config), t.config), { missingFloorConfig: r }) : e.config;
|
|
405
|
+
this.state = f(d(d({}, this.state), t), { config: n }), !y(this.state, e, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
|
|
353
406
|
}
|
|
354
407
|
addEventListener() {
|
|
355
408
|
if (!this.state.enabled || this.hasAddedEventListener)
|
|
@@ -379,7 +432,7 @@ class Ei extends M {
|
|
|
379
432
|
render(t) {
|
|
380
433
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
381
434
|
return;
|
|
382
|
-
const i = f(
|
|
435
|
+
const i = f(d({}, this.state.config), {
|
|
383
436
|
visible: this.state.visible,
|
|
384
437
|
duration: t != null ? t : 0,
|
|
385
438
|
panoIndex: this.panoIndex,
|
|
@@ -394,5 +447,5 @@ class Ei extends M {
|
|
|
394
447
|
}
|
|
395
448
|
}
|
|
396
449
|
export {
|
|
397
|
-
|
|
450
|
+
Fe as Controller
|
|
398
451
|
};
|
|
@@ -47,7 +47,10 @@ import "../../shared-utils/Utils/BaseUtil.js";
|
|
|
47
47
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
48
48
|
import "../../shared-utils/five/transformPosition.js";
|
|
49
49
|
import "../../shared-utils/three/temp.js";
|
|
50
|
+
import "../../shared-utils/three/core/Raycaster.js";
|
|
50
51
|
import "../../shared-utils/dom/resizeObserver.js";
|
|
52
|
+
import "../../shared-utils/five/fiveEveryReadyListener.js";
|
|
53
|
+
import "../../shared-utils/throttle.js";
|
|
51
54
|
import "hammerjs";
|
|
52
55
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
53
56
|
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
@@ -68,33 +71,83 @@ import "../../shared-utils/three/core/Sphere.js";
|
|
|
68
71
|
import "animejs";
|
|
69
72
|
import "../../shared-utils/isNil.js";
|
|
70
73
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
71
|
-
import "../../
|
|
72
|
-
import "../../shared-utils/
|
|
74
|
+
import "../../Sculpt/Meshes/Polygon.js";
|
|
75
|
+
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
76
|
+
import "../../shared-utils/three/earcut3D.js";
|
|
77
|
+
import "earcut";
|
|
78
|
+
import "../../shared-utils/three/getNormal.js";
|
|
79
|
+
import "../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
80
|
+
import "../../Sculpt/typings/style.js";
|
|
81
|
+
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
82
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
83
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
84
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
85
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
86
|
+
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
87
|
+
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
88
|
+
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
89
|
+
import "../../shared-utils/three/boundingBox.js";
|
|
90
|
+
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
91
|
+
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
92
|
+
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
93
|
+
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
94
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
73
95
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
74
96
|
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
75
97
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
98
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
99
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
100
|
+
import "../../shared-utils/util.js";
|
|
101
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
102
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
103
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
76
104
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
77
105
|
import "../../Sculpt/Meshes/Line.js";
|
|
78
|
-
import "../../Sculpt/typings/style.js";
|
|
79
106
|
import "../../shared-utils/five/FiveLine.js";
|
|
80
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
81
107
|
import "../../Sculpt/utils/removeAllTag.js";
|
|
82
108
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
83
109
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
84
|
-
import "../../
|
|
110
|
+
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
111
|
+
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
85
112
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
113
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
114
|
+
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
115
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
116
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
117
|
+
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
118
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
119
|
+
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
120
|
+
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
121
|
+
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
122
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
123
|
+
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
124
|
+
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
125
|
+
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
126
|
+
import "../../shared-utils/Object3DHelper/index.js";
|
|
127
|
+
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
128
|
+
import "../../shared-utils/math/deg2Rad.js";
|
|
129
|
+
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
130
|
+
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
131
|
+
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
132
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
133
|
+
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
134
|
+
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
135
|
+
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
136
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
137
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
138
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
86
139
|
import "../../shared-utils/isTouchDevice.js";
|
|
140
|
+
import "../../shared-utils/three/geometryUtil.js";
|
|
87
141
|
import "../../shared-utils/five/getPosition.js";
|
|
88
142
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
89
143
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
90
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
91
144
|
import "../../shared-utils/five/changeMode.js";
|
|
92
145
|
import "../../shared-utils/nearlyEqual.js";
|
|
93
146
|
import "../../shared-utils/to.js";
|
|
94
147
|
import "../../shared-utils/getPxmm.js";
|
|
95
148
|
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
96
|
-
const
|
|
149
|
+
const Rr = (o, r) => new t(o, r);
|
|
97
150
|
export {
|
|
98
|
-
|
|
99
|
-
|
|
151
|
+
Rr as TopviewFloorplanPlugin,
|
|
152
|
+
Rr as default
|
|
100
153
|
};
|
package/libs/floorplan/index.js
CHANGED
|
@@ -9,4 +9,8 @@ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
|
9
9
|
import "../shared-utils/three/core/Sphere.js";
|
|
10
10
|
import "animejs";
|
|
11
11
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
12
|
+
import "../Sculpt/Meshes/Polygon.js";
|
|
13
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
14
|
+
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
15
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
12
16
|
import "../shared-utils/nearlyEqual.js";
|