@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
|
@@ -11,19 +11,19 @@ var u = (h, n, e) => n in h ? P(h, n, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
};
|
|
12
12
|
var r = (h, n, e) => (u(h, typeof n != "symbol" ? n + "" : n, e), e);
|
|
13
13
|
var d = (h, n, e) => new Promise((t, o) => {
|
|
14
|
-
var
|
|
14
|
+
var s = (p) => {
|
|
15
15
|
try {
|
|
16
16
|
m(e.next(p));
|
|
17
17
|
} catch (c) {
|
|
18
18
|
o(c);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, i = (p) => {
|
|
21
21
|
try {
|
|
22
22
|
m(e.throw(p));
|
|
23
23
|
} catch (c) {
|
|
24
24
|
o(c);
|
|
25
25
|
}
|
|
26
|
-
}, m = (p) => p.done ? t(p.value) : Promise.resolve(p.value).then(
|
|
26
|
+
}, m = (p) => p.done ? t(p.value) : Promise.resolve(p.value).then(s, i);
|
|
27
27
|
m((e = e.apply(h, n)).next());
|
|
28
28
|
});
|
|
29
29
|
import * as a from "three";
|
|
@@ -47,19 +47,12 @@ 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 "../Sculpt/utils/Modules/Global.js";
|
|
51
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
52
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
53
50
|
import "../shared-utils/three/THREESphere.js";
|
|
54
|
-
import "
|
|
55
|
-
import "../shared-utils/
|
|
56
|
-
import "../
|
|
57
|
-
import "
|
|
58
|
-
import "../
|
|
59
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
60
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
61
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
62
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
51
|
+
import "animejs";
|
|
52
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
53
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
54
|
+
import "./Assets/roomInfoIcon.js";
|
|
55
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
63
56
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
64
57
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
65
58
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
@@ -69,65 +62,16 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
|
69
62
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
70
63
|
import "../shared-utils/three/centerPoint.js";
|
|
71
64
|
import "../shared-utils/three/getObjectVisible.js";
|
|
72
|
-
import "animejs";
|
|
73
65
|
import "../shared-utils/isNil.js";
|
|
74
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
75
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
76
66
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
77
67
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
78
68
|
import "../shared-utils/util.js";
|
|
79
69
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
80
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
81
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
82
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
83
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
84
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
85
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
86
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
87
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
88
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
89
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
90
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
91
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
92
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
93
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
94
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
95
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
96
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
97
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
98
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
99
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
100
70
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
101
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
102
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
103
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
104
71
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
105
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
106
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
107
|
-
import "../shared-utils/three/THREERaycaster.js";
|
|
108
|
-
import "../shared-utils/three/PointSelector/index.js";
|
|
109
|
-
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
110
|
-
import "../shared-utils/three/Magnifier.js";
|
|
111
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
112
|
-
import "../shared-utils/three/Assets/index.js";
|
|
113
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
114
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
115
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
116
|
-
import "../Sculpt/Meshes/Line.js";
|
|
117
|
-
import "../Sculpt/typings/style.js";
|
|
118
|
-
import "../shared-utils/five/FiveLine.js";
|
|
119
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
120
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
121
|
-
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
122
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
123
|
-
import "../shared-utils/isTouchDevice.js";
|
|
124
|
-
import "../shared-utils/five/getPosition.js";
|
|
125
|
-
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
126
|
-
import "./Assets/roomInfoIcon.js";
|
|
127
|
-
import "../CSS3DRenderPlugin/Controller.js";
|
|
128
72
|
import "../shared-utils/animationFrame/index.js";
|
|
129
73
|
const g = { userAction: !0 };
|
|
130
|
-
class
|
|
74
|
+
class be extends A {
|
|
131
75
|
constructor(e, t) {
|
|
132
76
|
super(e, t);
|
|
133
77
|
/**
|
|
@@ -158,8 +102,8 @@ class wt extends A {
|
|
|
158
102
|
* @todo 销毁贴图时,最好还是直接销毁贴图吧,this.compassMesh?.material.map 这种都是很深层的引用了。THREE 的建议我看也是自己去管理和销毁公共贴图。
|
|
159
103
|
*/
|
|
160
104
|
r(this, "dispose", () => {
|
|
161
|
-
var e, t, o,
|
|
162
|
-
this.five.scene.remove(this.group), this.group.remove(...this.group.children), (t = (e = this.compassMesh) == null ? void 0 : e.material.map) == null || t.dispose(), (
|
|
105
|
+
var e, t, o, s;
|
|
106
|
+
this.five.scene.remove(this.group), this.group.remove(...this.group.children), (t = (e = this.compassMesh) == null ? void 0 : e.material.map) == null || t.dispose(), (s = (o = this.entryDoorMesh) == null ? void 0 : o.material.map) == null || s.dispose(), this.five.off("dispose", this.dispose), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.off("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
|
|
163
107
|
});
|
|
164
108
|
/**
|
|
165
109
|
* 添加事件监听
|
|
@@ -204,12 +148,12 @@ class wt extends A {
|
|
|
204
148
|
this.entryDoorMesh && (this.group.remove(this.entryDoorMesh), (e = this.entryDoorMesh.material.map) == null || e.dispose(), this.entryDoorMesh = null), this.roomInfoInstance && (this.roomInfoInstance.dispose(), this.roomInfoInstance = null), this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.dispose(), this.roomInfoWrapperInstance = null);
|
|
205
149
|
});
|
|
206
150
|
r(this, "onFivePanoWillArrive", (e) => {
|
|
207
|
-
var t, o,
|
|
208
|
-
e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (o = this.compassMesh) == null || o.material.setValues({ opacity: 0 }), (
|
|
151
|
+
var t, o, s, i;
|
|
152
|
+
e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (o = this.compassMesh) == null || o.material.setValues({ opacity: 0 }), (s = this.logoMeshTween) == null || s.dispose(), (i = this.logoMesh) == null || i.material.setValues({ opacity: 0 }));
|
|
209
153
|
});
|
|
210
154
|
r(this, "onFivePanoArrived", (e) => {
|
|
211
|
-
var o,
|
|
212
|
-
const t = (
|
|
155
|
+
var o, s, i, m, p, c, y, I;
|
|
156
|
+
const t = (i = (s = (o = this.five.work) == null ? void 0 : o.observers) == null ? void 0 : s[e]) == null ? void 0 : i.standingPosition;
|
|
213
157
|
if (this.compassMesh && t && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((m = this.compassMeshTween) == null || m.dispose(), this.compassMeshTween = D(1e3).onUpdate(({ progress: v }) => {
|
|
214
158
|
var l;
|
|
215
159
|
(l = this.compassMesh) == null || l.material.setValues({ opacity: v }), this.five.needsRender = !0;
|
|
@@ -227,16 +171,16 @@ class wt extends A {
|
|
|
227
171
|
this.roomInfoInstance && this.roomInfoWrapperInstance && t && (this.roomInfoWrapperInstance.css3DObject.position.copy(t.clone().setY(t.y + 0.01)), this.roomInfoInstance.setRoom(this.data.room_observers[e].room)), this.five.needsRender = !0;
|
|
228
172
|
});
|
|
229
173
|
r(this, "onFiveCameraDirectionUpdate", ({ longitude: e, latitude: t }) => {
|
|
230
|
-
var o,
|
|
231
|
-
this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (
|
|
174
|
+
var o, s;
|
|
175
|
+
this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (s = this.roomInfoInstance) == null || s.hide());
|
|
232
176
|
});
|
|
233
177
|
// eslint-disable-next-line max-params
|
|
234
|
-
r(this, "onFiveModeChange", (e, t, o,
|
|
178
|
+
r(this, "onFiveModeChange", (e, t, o, s, i) => {
|
|
235
179
|
e !== t && this.setState(
|
|
236
180
|
{
|
|
237
181
|
visible: e === _.Mode.Panorama
|
|
238
182
|
},
|
|
239
|
-
{ userAction:
|
|
183
|
+
{ userAction: i }
|
|
240
184
|
);
|
|
241
185
|
});
|
|
242
186
|
this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.setState({
|
|
@@ -300,11 +244,11 @@ class wt extends A {
|
|
|
300
244
|
), Promise.resolve();
|
|
301
245
|
}
|
|
302
246
|
setState(e, t = { userAction: !0 }) {
|
|
303
|
-
var
|
|
247
|
+
var s, i;
|
|
304
248
|
const o = JSON.parse(JSON.stringify(this.state));
|
|
305
249
|
this.state = {
|
|
306
|
-
visible: (
|
|
307
|
-
enabled: (
|
|
250
|
+
visible: (s = e.visible) != null ? s : o.visible,
|
|
251
|
+
enabled: (i = e.enabled) != null ? i : o.enabled,
|
|
308
252
|
config: f(f({}, o.config), e.config || {})
|
|
309
253
|
}, this.hooks.emit("stateChange", {
|
|
310
254
|
state: this.state,
|
|
@@ -314,8 +258,8 @@ class wt extends A {
|
|
|
314
258
|
}
|
|
315
259
|
load(e, t, o = !0) {
|
|
316
260
|
return d(this, null, function* () {
|
|
317
|
-
const
|
|
318
|
-
JSON.stringify(this.data) !== JSON.stringify(
|
|
261
|
+
const s = yield this.formatData(e);
|
|
262
|
+
JSON.stringify(this.data) !== JSON.stringify(s) && (this.hooks.emit("dataChange", s, this.data), this.data = f({}, s), this.init(), t && this.setState(t, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
|
|
319
263
|
});
|
|
320
264
|
}
|
|
321
265
|
formatData(e) {
|
|
@@ -327,22 +271,22 @@ class wt extends A {
|
|
|
327
271
|
*/
|
|
328
272
|
init() {
|
|
329
273
|
return d(this, null, function* () {
|
|
330
|
-
var o,
|
|
331
|
-
const e = (
|
|
274
|
+
var o, s, i, m;
|
|
275
|
+
const e = (s = (o = this.data) == null ? void 0 : o.north_rad) != null ? s : null;
|
|
332
276
|
this._clearCompassIfNeed(), e !== null && (this.compassMesh = yield this.loadCompassMesh(), this.compassMesh && (this.compassMesh.rotateX(-Math.PI / 2), this.compassMesh.rotateZ(e - Math.PI / 2), this.group.add(this.compassMesh))), this._clearLogoIfNeed(), this.logoMesh = yield this.loadLogoMesh(), this.logoMesh && (this.logoMesh.rotateX(-Math.PI / 2), this.group.add(this.logoMesh));
|
|
333
|
-
const t = (m = (
|
|
277
|
+
const t = (m = (i = this.data) == null ? void 0 : i.entrance) != null ? m : null;
|
|
334
278
|
this._clearEntryDoorIfNeed(), t !== null && (this.entryDoorMesh = yield this.loadEntryDoorMesh(), this.roomInfoWrapperInstance = this.loadRoomInfo(), this.roomInfoInstance = U(), this.entryDoorMesh.rotateX(-Math.PI / 2), this.roomInfoWrapperInstance && this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container), this.group.add(this.entryDoorMesh)), this.onFivePanoArrived(this.five.panoIndex || 0), this.five.needsRender = !0;
|
|
335
279
|
});
|
|
336
280
|
}
|
|
337
281
|
loadCompassMesh() {
|
|
338
282
|
return d(this, null, function* () {
|
|
339
|
-
const e = this.state.config.compassImageUrl, t = yield M(e), o = new a.CircleGeometry(0.7, 32),
|
|
283
|
+
const e = this.state.config.compassImageUrl, t = yield M(e), o = new a.CircleGeometry(0.7, 32), s = new a.MeshBasicMaterial({
|
|
340
284
|
map: t,
|
|
341
285
|
transparent: !0,
|
|
342
286
|
opacity: 0,
|
|
343
287
|
depthTest: !1
|
|
344
|
-
}),
|
|
345
|
-
return
|
|
288
|
+
}), i = new a.Mesh(o, s);
|
|
289
|
+
return i.name = "pano-compass-mesh", i;
|
|
346
290
|
});
|
|
347
291
|
}
|
|
348
292
|
loadLogoMesh() {
|
|
@@ -351,24 +295,24 @@ class wt extends A {
|
|
|
351
295
|
return;
|
|
352
296
|
const e = this.state.config.logoURL, t = yield M(e);
|
|
353
297
|
t.minFilter = a.NearestFilter, t.magFilter = a.NearestFilter;
|
|
354
|
-
const o = new a.PlaneBufferGeometry(0.4, 0.4),
|
|
298
|
+
const o = new a.PlaneBufferGeometry(0.4, 0.4), s = new a.MeshBasicMaterial({
|
|
355
299
|
map: t,
|
|
356
300
|
opacity: 0,
|
|
357
301
|
transparent: !0,
|
|
358
302
|
depthTest: !1
|
|
359
|
-
}),
|
|
360
|
-
return
|
|
303
|
+
}), i = new a.Mesh(o, s);
|
|
304
|
+
return i.name = "pano-compass-logo-mesh", i;
|
|
361
305
|
});
|
|
362
306
|
}
|
|
363
307
|
loadEntryDoorMesh() {
|
|
364
308
|
return d(this, null, function* () {
|
|
365
|
-
const e = this.state.config.entryDoorImageUrl, t = yield M(e), o = new a.PlaneGeometry(0.2, 0.16),
|
|
309
|
+
const e = this.state.config.entryDoorImageUrl, t = yield M(e), o = new a.PlaneGeometry(0.2, 0.16), s = new a.MeshBasicMaterial({
|
|
366
310
|
map: t,
|
|
367
311
|
transparent: !0,
|
|
368
312
|
opacity: 0.8,
|
|
369
313
|
depthTest: !1
|
|
370
|
-
}),
|
|
371
|
-
return
|
|
314
|
+
}), i = new a.Mesh(o, s);
|
|
315
|
+
return i.name = "pano-compass-entry-door", i;
|
|
372
316
|
});
|
|
373
317
|
}
|
|
374
318
|
loadRoomInfo() {
|
|
@@ -382,5 +326,5 @@ class wt extends A {
|
|
|
382
326
|
}
|
|
383
327
|
}
|
|
384
328
|
export {
|
|
385
|
-
|
|
329
|
+
be as PanoCompassController
|
|
386
330
|
};
|
|
@@ -16,19 +16,15 @@ import "../shared-utils/Utils/BaseUtil.js";
|
|
|
16
16
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
17
17
|
import "../shared-utils/five/transformPosition.js";
|
|
18
18
|
import "../shared-utils/three/temp.js";
|
|
19
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
20
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
21
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
22
19
|
import "../shared-utils/three/THREESphere.js";
|
|
23
|
-
import "
|
|
24
|
-
import "../shared-utils/
|
|
25
|
-
import "../
|
|
26
|
-
import "
|
|
27
|
-
import "
|
|
28
|
-
import "../shared-utils/
|
|
29
|
-
import "../
|
|
30
|
-
import "../
|
|
31
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
20
|
+
import "animejs";
|
|
21
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
22
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
23
|
+
import "./getRoomInfoInstance.js";
|
|
24
|
+
import "./Assets/roomInfoIcon.js";
|
|
25
|
+
import "../shared-utils/three/loadTexture.js";
|
|
26
|
+
import "../CSS3DRenderPlugin/index.js";
|
|
27
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
32
28
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
33
29
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
34
30
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
@@ -38,69 +34,17 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
|
38
34
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
39
35
|
import "../shared-utils/three/centerPoint.js";
|
|
40
36
|
import "../shared-utils/three/getObjectVisible.js";
|
|
41
|
-
import "animejs";
|
|
42
37
|
import "../shared-utils/isNil.js";
|
|
43
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
44
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
45
38
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
46
39
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
47
40
|
import "../shared-utils/util.js";
|
|
48
41
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
49
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
50
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
51
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
52
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
53
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
54
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
55
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
56
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
57
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
58
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
59
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
60
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
61
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
62
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
63
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
64
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
65
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
66
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
67
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
68
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
69
42
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
70
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
71
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
72
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
73
43
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
74
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
75
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
76
|
-
import "../shared-utils/three/THREERaycaster.js";
|
|
77
|
-
import "../shared-utils/three/PointSelector/index.js";
|
|
78
|
-
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
79
|
-
import "../shared-utils/three/Magnifier.js";
|
|
80
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
81
|
-
import "../shared-utils/three/Assets/index.js";
|
|
82
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
83
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
84
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
85
|
-
import "../Sculpt/Meshes/Line.js";
|
|
86
|
-
import "../Sculpt/typings/style.js";
|
|
87
|
-
import "../shared-utils/five/FiveLine.js";
|
|
88
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
89
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
90
|
-
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
91
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
92
|
-
import "../shared-utils/isTouchDevice.js";
|
|
93
|
-
import "../shared-utils/five/getPosition.js";
|
|
94
|
-
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
95
|
-
import "./getRoomInfoInstance.js";
|
|
96
|
-
import "./Assets/roomInfoIcon.js";
|
|
97
|
-
import "../shared-utils/three/loadTexture.js";
|
|
98
|
-
import "../CSS3DRenderPlugin/index.js";
|
|
99
|
-
import "../CSS3DRenderPlugin/Controller.js";
|
|
100
44
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
101
45
|
import "../shared-utils/animationFrame/index.js";
|
|
102
|
-
const
|
|
46
|
+
const W = (o, r) => new t(o, r);
|
|
103
47
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
48
|
+
W as PanoCompassPlugin,
|
|
49
|
+
W as default
|
|
106
50
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var p = Object.defineProperty, m = Object.defineProperties;
|
|
2
2
|
var d = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var h = Object.getOwnPropertySymbols;
|
|
4
4
|
var u = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var t in
|
|
7
|
-
u.call(
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
b.call(
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
5
|
+
var o = (i, e, t) => e in i ? p(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, s = (i, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
u.call(e, t) && o(i, t, e[t]);
|
|
8
|
+
if (h)
|
|
9
|
+
for (var t of h(e))
|
|
10
|
+
b.call(e, t) && o(i, t, e[t]);
|
|
11
|
+
return i;
|
|
12
|
+
}, r = (i, e) => m(i, d(e));
|
|
13
|
+
var a = (i, e, t) => (o(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
14
|
import { Five as v } from "@realsee/five";
|
|
15
15
|
import { Controller as c } from "../base/BasePlugin.js";
|
|
16
16
|
import "../shared-utils/Subscribe.js";
|
|
@@ -27,88 +27,16 @@ import "../shared-utils/Utils/BaseUtil.js";
|
|
|
27
27
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
28
28
|
import "../shared-utils/five/transformPosition.js";
|
|
29
29
|
import "../shared-utils/three/temp.js";
|
|
30
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
31
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
32
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
33
30
|
import "../shared-utils/three/THREESphere.js";
|
|
34
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
35
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
36
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
37
|
-
import "../shared-utils/three/IObject3D.js";
|
|
38
|
-
import "../shared-utils/three/boundingBox.js";
|
|
39
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
40
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
41
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
42
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
43
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
44
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
45
|
-
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
46
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
47
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
48
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
49
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
50
|
-
import "../shared-utils/three/centerPoint.js";
|
|
51
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
52
31
|
import "animejs";
|
|
53
|
-
import "../shared-utils/isNil.js";
|
|
54
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
55
32
|
import "../shared-utils/url/absoluteUrl.js";
|
|
56
|
-
import "../
|
|
57
|
-
|
|
58
|
-
import "../shared-utils/util.js";
|
|
59
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
60
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
61
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
62
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
63
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
64
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
65
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
66
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
67
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
68
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
69
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
70
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
71
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
72
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
73
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
74
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
75
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
76
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
77
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
78
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
79
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
80
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
81
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
82
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
83
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
84
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
85
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
86
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
87
|
-
import "../shared-utils/three/THREERaycaster.js";
|
|
88
|
-
import "../shared-utils/three/PointSelector/index.js";
|
|
89
|
-
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
90
|
-
import "../shared-utils/three/Magnifier.js";
|
|
91
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
92
|
-
import "../shared-utils/three/Assets/index.js";
|
|
93
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
94
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
95
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
96
|
-
import "../Sculpt/Meshes/Line.js";
|
|
97
|
-
import "../Sculpt/typings/style.js";
|
|
98
|
-
import "../shared-utils/five/FiveLine.js";
|
|
99
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
100
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
101
|
-
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
102
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
103
|
-
import "../shared-utils/isTouchDevice.js";
|
|
104
|
-
import "../shared-utils/five/getPosition.js";
|
|
105
|
-
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
106
|
-
class ri extends c {
|
|
33
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
34
|
+
class H extends c {
|
|
107
35
|
constructor(t) {
|
|
108
36
|
super(t);
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
37
|
+
a(this, "state");
|
|
38
|
+
a(this, "container");
|
|
39
|
+
a(this, "enabled");
|
|
112
40
|
this.five = t, this.five.once("dispose", this.dispose), this.enabled = !0, this.state = this.initState();
|
|
113
41
|
}
|
|
114
42
|
/**
|
|
@@ -116,14 +44,14 @@ class ri extends c {
|
|
|
116
44
|
* @param options
|
|
117
45
|
*/
|
|
118
46
|
enable(t) {
|
|
119
|
-
this.enabled = !0, this.updateState(
|
|
47
|
+
this.enabled = !0, this.updateState(r(s({}, t), { userAction: !0 }));
|
|
120
48
|
}
|
|
121
49
|
/**
|
|
122
50
|
* 禁用组件
|
|
123
51
|
* @param options
|
|
124
52
|
*/
|
|
125
53
|
disable(t) {
|
|
126
|
-
this.enabled = !1, this.updateState(
|
|
54
|
+
this.enabled = !1, this.updateState(r(s({}, t), { userAction: !0 }));
|
|
127
55
|
}
|
|
128
56
|
/**
|
|
129
57
|
* 显示 UI
|
|
@@ -132,7 +60,7 @@ class ri extends c {
|
|
|
132
60
|
*/
|
|
133
61
|
show(t) {
|
|
134
62
|
if (this.state.enabled)
|
|
135
|
-
return this.setState(
|
|
63
|
+
return this.setState(r(s({}, this.state), { visible: !0 }), t), Promise.resolve();
|
|
136
64
|
}
|
|
137
65
|
/**
|
|
138
66
|
* 隐藏 UI
|
|
@@ -141,7 +69,7 @@ class ri extends c {
|
|
|
141
69
|
*/
|
|
142
70
|
hide(t) {
|
|
143
71
|
if (this.state.enabled)
|
|
144
|
-
return this.setState(
|
|
72
|
+
return this.setState(r(s({}, this.state), { visible: !1 }), t), Promise.resolve();
|
|
145
73
|
}
|
|
146
74
|
/**
|
|
147
75
|
* 销毁对象
|
|
@@ -155,11 +83,11 @@ class ri extends c {
|
|
|
155
83
|
* @param options @BaseOptions 可选配置
|
|
156
84
|
* @returns
|
|
157
85
|
*/
|
|
158
|
-
setState(t,
|
|
86
|
+
setState(t, n) {
|
|
159
87
|
if (!this.enabled)
|
|
160
88
|
return;
|
|
161
|
-
const
|
|
162
|
-
this.state =
|
|
89
|
+
const l = s({}, this.state);
|
|
90
|
+
this.state = s(s(s({}, this.state), t), n), this.stateChangedCallback(l, n);
|
|
163
91
|
}
|
|
164
92
|
get visible() {
|
|
165
93
|
return this.five.state.mode === v.Mode.Panorama;
|
|
@@ -168,9 +96,9 @@ class ri extends c {
|
|
|
168
96
|
this.enabled && (this.container = t, this.render());
|
|
169
97
|
}
|
|
170
98
|
updateState(t) {
|
|
171
|
-
this.setState(
|
|
99
|
+
this.setState(r(s({}, this.state), { enabled: this.enabled, visible: this.visible }), t);
|
|
172
100
|
}
|
|
173
101
|
}
|
|
174
102
|
export {
|
|
175
|
-
|
|
103
|
+
H as BasePanoPluginController
|
|
176
104
|
};
|