@realsee/dnalogel 3.47.13 → 3.47.15
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 +8 -0
- package/dist/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
- package/dist/Sculpt/Meshes/Line.d.ts +1 -0
- package/dist/Sculpt/Meshes/Polygon.d.ts +2 -1
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +18650 -18640
- package/dist/index.umd.js +47 -47
- package/libs/AreaMakerPlugin/Controller.js +78 -150
- package/libs/AreaMakerPlugin/index.js +3 -75
- package/libs/AreaMakerPlugin/utils/Item.js +111 -185
- package/libs/CSS3DRenderPlugin/Controller.js +29 -86
- package/libs/CSS3DRenderPlugin/index.js +12 -69
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +58 -127
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +113 -174
- package/libs/CruisePlugin/BaseController.js +50 -122
- package/libs/CruisePlugin/Move.js +21 -74
- package/libs/CruisePlugin/Work.js +46 -99
- package/libs/CruisePlugin/index.js +26 -79
- package/libs/CurrentPanoImagePlugin/Controller.js +104 -176
- package/libs/CurrentPanoImagePlugin/index.js +4 -76
- package/libs/GuideLinePlugin/Controller.js +26 -79
- package/libs/GuideLinePlugin/GuideLineItem.js +24 -77
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +2 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +22 -75
- package/libs/GuideLinePlugin/index.js +26 -79
- package/libs/ModelMakerPlugin/Controller.js +83 -139
- package/libs/ModelMakerPlugin/index.js +16 -72
- package/libs/ModelTVVideoPlugin/Plugin.js +48 -105
- package/libs/ModelTVVideoPlugin/index.js +7 -64
- package/libs/Object3DHelperPlugin/Controller.js +32 -56
- package/libs/Object3DHelperPlugin/index.js +12 -35
- package/libs/PanoCompassPlugin/Controller.js +37 -93
- package/libs/PanoCompassPlugin/index.js +11 -67
- package/libs/PanoDoorLabelPlugin/BaseController.js +25 -97
- package/libs/PanoDoorLabelPlugin/Controller.js +115 -187
- package/libs/PanoDoorLabelPlugin/index.js +4 -76
- package/libs/PanoMeasurePlugin/Components/Controller0.js +83 -128
- package/libs/PanoMeasurePlugin/Components/Controller1.js +96 -141
- package/libs/PanoMeasurePlugin/Controller/EditController.js +66 -111
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +51 -121
- package/libs/PanoMeasurePlugin/Controller/index.js +59 -101
- package/libs/PanoMeasurePlugin/Model/area.js +21 -91
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +0 -73
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +27 -72
- package/libs/PanoMeasurePlugin/index.js +25 -67
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +17 -89
- package/libs/PanoSpatialTagPlugin/Plugin.js +106 -163
- package/libs/PanoSpatialTagPlugin/index.js +5 -62
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +67 -141
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +208 -281
- package/libs/PanoTagPlugin/Components/Tag/index.js +180 -251
- package/libs/PanoTagPlugin/Components/TagContainer.js +80 -151
- package/libs/PanoTagPlugin/Components/TagItem.js +67 -138
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +61 -132
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +28 -99
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +30 -101
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +36 -107
- package/libs/PanoTagPlugin/controller/TagRender.js +68 -121
- package/libs/PanoTagPlugin/controller/TagUtil.js +79 -132
- package/libs/PanoTagPlugin/controller/index.js +55 -108
- package/libs/PanoTagPlugin/index.js +31 -84
- package/libs/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/requestIdleCallback.js +5 -13
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +30 -104
- package/libs/PanoVideoPlugin/Controller.js +64 -136
- package/libs/PanoVideoPlugin/VideoMeshController.js +74 -148
- package/libs/PanoVideoPlugin/index.js +8 -80
- package/libs/PipelinePlugin/Controller.js +128 -199
- package/libs/PipelinePlugin/index.js +5 -76
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +17 -91
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +14 -88
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +56 -130
- package/libs/Sculpt/Meshes/Box.js +5 -6
- package/libs/Sculpt/Meshes/Cylinder.js +2 -3
- package/libs/Sculpt/Meshes/Line.d.ts +1 -0
- package/libs/Sculpt/Meshes/Line.js +50 -41
- package/libs/Sculpt/Meshes/Point.js +9 -10
- package/libs/Sculpt/Meshes/Polygon.d.ts +2 -1
- package/libs/Sculpt/Meshes/Polygon.js +47 -37
- package/libs/Sculpt/Meshes/Polyline.js +18 -16
- package/libs/Sculpt/Meshes/Rectangle.js +3 -4
- package/libs/Sculpt/Objects/Line/Editor.js +2 -3
- package/libs/Sculpt/Objects/Rectangle/index.js +1 -1
- package/libs/Sculpt/utils/removeAllTag.js +4 -4
- package/libs/Sculpt/utils/three/ColoredMesh.js +3 -4
- package/libs/base/BasePlugin.js +3 -4
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +59 -128
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -75
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +59 -129
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -75
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +62 -134
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -76
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +81 -151
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -75
- package/libs/floorplan/index.js +0 -1
- package/libs/index.js +62 -62
- package/libs/shared-utils/five/index.js +2 -3
- package/libs/shared-utils/five/lookObject.js +17 -18
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/index.js +0 -1
- package/package.json +1 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
var g = Object.defineProperty, w = Object.defineProperties;
|
|
2
2
|
var v = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var b = Object.getOwnPropertySymbols;
|
|
4
4
|
var A = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var u = (r, e, t) => e in r ? g(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, p = (r, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
A.call(e, t) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
S.call(e, t) &&
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
7
|
+
A.call(e, t) && u(r, t, e[t]);
|
|
8
|
+
if (b)
|
|
9
|
+
for (var t of b(e))
|
|
10
|
+
S.call(e, t) && u(r, t, e[t]);
|
|
11
|
+
return r;
|
|
12
|
+
}, f = (r, e) => w(r, v(e));
|
|
13
|
+
var o = (r, e, t) => (u(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
var c = (r, e, t) => new Promise((i, s) => {
|
|
15
|
+
var a = (n) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
d(t.next(n));
|
|
18
|
+
} catch (l) {
|
|
19
|
+
s(l);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, h = (n) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
d(t.throw(n));
|
|
24
|
+
} catch (l) {
|
|
25
|
+
s(l);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, d = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(a, h);
|
|
28
|
+
d((t = t.apply(r, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import _ from "./Components/Main.js";
|
|
31
31
|
import { equal as y } from "../../shared-utils/equal.js";
|
|
32
32
|
import { CAMERA_IMAGE as D } from "../Assets/camera.js";
|
|
33
33
|
import { Controller as O } from "../../base/BasePluginWithData.js";
|
|
34
|
-
import { formatData as
|
|
34
|
+
import { formatData as m, formatExtraObjects as x } from "../utils/formatData.js";
|
|
35
35
|
import "../../vendor/svelte/internal/index.js";
|
|
36
36
|
import "./Components/Camera.js";
|
|
37
37
|
import "../../shared-utils/throttle.js";
|
|
@@ -61,133 +61,61 @@ import "../../shared-utils/Utils/BaseUtil.js";
|
|
|
61
61
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
62
62
|
import "../../shared-utils/five/transformPosition.js";
|
|
63
63
|
import "../../shared-utils/three/temp.js";
|
|
64
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
65
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
66
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
67
64
|
import "../../shared-utils/three/THREESphere.js";
|
|
68
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
69
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
70
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
71
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
72
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
73
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
74
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
75
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
76
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
77
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
78
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
79
|
-
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
80
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
81
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
82
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
83
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
84
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
85
|
-
import "../../shared-utils/three/getObjectVisible.js";
|
|
86
65
|
import "animejs";
|
|
87
|
-
import "../../shared-utils/isNil.js";
|
|
88
|
-
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
89
66
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
90
|
-
import "../../
|
|
91
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
92
|
-
import "../../shared-utils/util.js";
|
|
93
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
94
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
95
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
96
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
97
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
98
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
99
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
100
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
101
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
102
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
103
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
104
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
105
|
-
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
106
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
107
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
108
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
109
|
-
import "../../shared-utils/math/rad2Deg.js";
|
|
110
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
111
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
112
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
113
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
114
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
115
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
116
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
117
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
118
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
119
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
120
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
121
|
-
import "../../shared-utils/three/THREERaycaster.js";
|
|
122
|
-
import "../../shared-utils/three/PointSelector/index.js";
|
|
123
|
-
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
124
|
-
import "../../shared-utils/three/Magnifier.js";
|
|
125
|
-
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
126
|
-
import "../../shared-utils/three/Assets/index.js";
|
|
127
|
-
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
128
|
-
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
129
|
-
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
130
|
-
import "../../Sculpt/Meshes/Line.js";
|
|
131
|
-
import "../../Sculpt/typings/style.js";
|
|
132
|
-
import "../../shared-utils/five/FiveLine.js";
|
|
133
|
-
import "../../Sculpt/utils/removeAllTag.js";
|
|
134
|
-
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
135
|
-
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
136
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
137
|
-
import "../../shared-utils/isTouchDevice.js";
|
|
138
|
-
import "../../shared-utils/five/getPosition.js";
|
|
139
|
-
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
67
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
140
68
|
import "../Assets/floorplanExtraObject.js";
|
|
141
|
-
class
|
|
69
|
+
class ut extends O {
|
|
142
70
|
constructor(t, i) {
|
|
143
71
|
super(t);
|
|
144
72
|
// =============== public properties =================
|
|
145
|
-
|
|
146
|
-
|
|
73
|
+
o(this, "name", "panoFloorplanRadarPlugin");
|
|
74
|
+
o(this, "state");
|
|
147
75
|
// =============== protected properties =================
|
|
148
|
-
|
|
76
|
+
o(this, "data");
|
|
149
77
|
// =============== private properties =================
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
78
|
+
o(this, "app");
|
|
79
|
+
o(this, "wrapperSelector", "");
|
|
80
|
+
o(this, "wrapper", null);
|
|
81
|
+
o(this, "disposed", !1);
|
|
82
|
+
o(this, "extraObjects", []);
|
|
83
|
+
o(this, "highlightData", {});
|
|
84
|
+
o(this, "dispose", () => {
|
|
157
85
|
var t;
|
|
158
86
|
this.disposed = !0, (t = this.app) == null || t.$destroy(), this.wrapper = null, this.wrapperSelector = "", this.hooks.emit("dispose");
|
|
159
87
|
});
|
|
160
|
-
|
|
88
|
+
o(this, "highlight", (t) => {
|
|
161
89
|
this.state.config.highlightEnable && (this.highlightData = t, this.render());
|
|
162
90
|
});
|
|
163
|
-
|
|
91
|
+
o(this, "unhighlight", () => {
|
|
164
92
|
this.highlightData = {}, this.render();
|
|
165
93
|
});
|
|
166
|
-
|
|
167
|
-
var
|
|
94
|
+
o(this, "_disable", (t) => {
|
|
95
|
+
var s;
|
|
168
96
|
const { userAction: i } = t;
|
|
169
|
-
(
|
|
97
|
+
(s = this.app) == null || s.$destroy(), this.app = void 0, this.hooks.emit("disable", { userAction: i });
|
|
170
98
|
});
|
|
171
99
|
this.five = t;
|
|
172
|
-
const
|
|
100
|
+
const s = {
|
|
173
101
|
hoverEnable: !0,
|
|
174
102
|
highlightEnable: !0,
|
|
175
103
|
cameraImageUrl: D,
|
|
176
104
|
missingFloorImageUrl: this.staticPrefix + "/release/web/saas/missing-floor.d687a5ed.png"
|
|
177
|
-
},
|
|
178
|
-
this.state = { enabled: !0, visible: !0, config:
|
|
105
|
+
}, a = p(p({}, s), i == null ? void 0 : i.configs);
|
|
106
|
+
this.state = { enabled: !0, visible: !0, config: a }, i != null && i.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (i == null ? void 0 : i.wrapper) == "string" ? this.wrapperSelector = i.wrapper : (i == null ? void 0 : i.wrapper) instanceof Element && (this.wrapper = i.wrapper), t.once("dispose", this.dispose);
|
|
179
107
|
}
|
|
180
|
-
load(t, i,
|
|
181
|
-
return
|
|
182
|
-
function
|
|
183
|
-
return Object.prototype.hasOwnProperty.apply(
|
|
108
|
+
load(t, i, s = !0) {
|
|
109
|
+
return c(this, null, function* () {
|
|
110
|
+
function a(l) {
|
|
111
|
+
return Object.prototype.hasOwnProperty.apply(l, ["version"]);
|
|
184
112
|
}
|
|
185
|
-
const
|
|
186
|
-
this.data = yield
|
|
113
|
+
const h = JSON.parse(JSON.stringify(t)), d = a(h) ? h.data : h, n = this.data;
|
|
114
|
+
this.data = yield m(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, n), i && this.updateState(i, s), this.render();
|
|
187
115
|
});
|
|
188
116
|
}
|
|
189
117
|
show() {
|
|
190
|
-
return
|
|
118
|
+
return c(this, arguments, function* (t = {}) {
|
|
191
119
|
if (this.state.visible)
|
|
192
120
|
return;
|
|
193
121
|
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
@@ -195,7 +123,7 @@ class Pi extends O {
|
|
|
195
123
|
});
|
|
196
124
|
}
|
|
197
125
|
hide() {
|
|
198
|
-
return
|
|
126
|
+
return c(this, arguments, function* (t = {}) {
|
|
199
127
|
if (!this.state.visible)
|
|
200
128
|
return;
|
|
201
129
|
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
@@ -216,14 +144,14 @@ class Pi extends O {
|
|
|
216
144
|
}
|
|
217
145
|
/** 更改插件 State */
|
|
218
146
|
setState(t, i = {}) {
|
|
219
|
-
const
|
|
220
|
-
if (this.updateState(t,
|
|
221
|
-
const
|
|
222
|
-
t.enabled ? this._enable(
|
|
147
|
+
const s = this.state, a = i.userAction !== void 0 ? i.userAction : !0;
|
|
148
|
+
if (this.updateState(t, a), t.enabled !== void 0 && s.enabled !== t.enabled) {
|
|
149
|
+
const h = { userAction: a };
|
|
150
|
+
t.enabled ? this._enable(h) : this._disable(h);
|
|
223
151
|
}
|
|
224
|
-
if (t.visible !== void 0 &&
|
|
225
|
-
const
|
|
226
|
-
t.visible ? this._show(
|
|
152
|
+
if (t.visible !== void 0 && s.visible !== t.visible) {
|
|
153
|
+
const h = { userAction: a };
|
|
154
|
+
t.visible ? this._show(h) : this._hide(h);
|
|
227
155
|
}
|
|
228
156
|
}
|
|
229
157
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
@@ -237,8 +165,8 @@ class Pi extends O {
|
|
|
237
165
|
this.data && (this.extraObjects = x(t, this.five, this.data), this.render());
|
|
238
166
|
}
|
|
239
167
|
formatData(t) {
|
|
240
|
-
return
|
|
241
|
-
return yield
|
|
168
|
+
return c(this, null, function* () {
|
|
169
|
+
return yield m(t.data);
|
|
242
170
|
});
|
|
243
171
|
}
|
|
244
172
|
_enable(t) {
|
|
@@ -258,8 +186,8 @@ class Pi extends O {
|
|
|
258
186
|
this.hooks.emit("hide", { userAction: i }), this.render();
|
|
259
187
|
}
|
|
260
188
|
updateState(t, i) {
|
|
261
|
-
const
|
|
262
|
-
this.state =
|
|
189
|
+
const s = this.state, a = t.config ? p(p({}, s.config), t.config) : s.config;
|
|
190
|
+
this.state = f(p(p({}, this.state), t), { config: a }), !y(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
263
191
|
}
|
|
264
192
|
render() {
|
|
265
193
|
if (this.disposed || !this.state.enabled)
|
|
@@ -270,7 +198,7 @@ class Pi extends O {
|
|
|
270
198
|
}
|
|
271
199
|
if (!this.data || !this.wrapper)
|
|
272
200
|
return;
|
|
273
|
-
const t =
|
|
201
|
+
const t = f(p({}, this.state.config), {
|
|
274
202
|
five: this.five,
|
|
275
203
|
floorplanData: this.data,
|
|
276
204
|
visible: this.state.visible,
|
|
@@ -281,5 +209,5 @@ class Pi extends O {
|
|
|
281
209
|
}
|
|
282
210
|
}
|
|
283
211
|
export {
|
|
284
|
-
|
|
212
|
+
ut as Controller
|
|
285
213
|
};
|
|
@@ -32,86 +32,14 @@ import "../../shared-utils/Utils/BaseUtil.js";
|
|
|
32
32
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
33
33
|
import "../../shared-utils/five/transformPosition.js";
|
|
34
34
|
import "../../shared-utils/three/temp.js";
|
|
35
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
36
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
37
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
38
35
|
import "../../shared-utils/three/THREESphere.js";
|
|
39
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
40
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
41
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
42
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
43
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
44
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
45
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
46
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
47
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
48
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
49
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
50
|
-
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
51
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
52
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
53
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
54
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
55
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
56
|
-
import "../../shared-utils/three/getObjectVisible.js";
|
|
57
36
|
import "animejs";
|
|
58
|
-
import "../../shared-utils/isNil.js";
|
|
59
|
-
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
60
37
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
61
|
-
import "../../
|
|
62
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
63
|
-
import "../../shared-utils/util.js";
|
|
64
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
65
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
66
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
67
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
68
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
69
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
70
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
71
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
72
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
73
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
74
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
75
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
76
|
-
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
77
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
78
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
79
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
80
|
-
import "../../shared-utils/math/rad2Deg.js";
|
|
81
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
82
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
83
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
84
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
85
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
86
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
87
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
88
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
89
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
90
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
91
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
92
|
-
import "../../shared-utils/three/THREERaycaster.js";
|
|
93
|
-
import "../../shared-utils/three/PointSelector/index.js";
|
|
94
|
-
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
95
|
-
import "../../shared-utils/three/Magnifier.js";
|
|
96
|
-
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
97
|
-
import "../../shared-utils/three/Assets/index.js";
|
|
98
|
-
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
99
|
-
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
100
|
-
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
101
|
-
import "../../Sculpt/Meshes/Line.js";
|
|
102
|
-
import "../../Sculpt/typings/style.js";
|
|
103
|
-
import "../../shared-utils/five/FiveLine.js";
|
|
104
|
-
import "../../Sculpt/utils/removeAllTag.js";
|
|
105
|
-
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
106
|
-
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
107
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
108
|
-
import "../../shared-utils/isTouchDevice.js";
|
|
109
|
-
import "../../shared-utils/five/getPosition.js";
|
|
110
|
-
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
38
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
111
39
|
import "../utils/formatData.js";
|
|
112
40
|
import "../Assets/floorplanExtraObject.js";
|
|
113
|
-
const
|
|
41
|
+
const Q = (o, r) => new t(o, r);
|
|
114
42
|
export {
|
|
115
|
-
|
|
116
|
-
|
|
43
|
+
Q as PanoFloorplanRadarPlugin,
|
|
44
|
+
Q as default
|
|
117
45
|
};
|