@realsee/dnalogel 3.45.0 → 3.46.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/CHANGELOG.md +6 -0
- package/dist/Sculpt/Meshes/Line.d.ts +6 -1
- package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +29600 -29557
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +151 -78
- package/libs/AreaMakerPlugin/index.js +77 -4
- package/libs/AreaMakerPlugin/utils/Item.js +191 -111
- package/libs/CSS3DRenderPlugin/Controller.js +90 -29
- package/libs/CSS3DRenderPlugin/index.js +76 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +133 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +182 -116
- package/libs/CruisePlugin/BaseController.js +122 -49
- package/libs/CruisePlugin/Move.js +74 -21
- package/libs/CruisePlugin/Work.js +99 -46
- package/libs/CruisePlugin/index.js +80 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +177 -104
- package/libs/CurrentPanoImagePlugin/index.js +77 -4
- package/libs/GuideLinePlugin/Controller.js +79 -26
- package/libs/GuideLinePlugin/GuideLineItem.js +83 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +82 -29
- package/libs/GuideLinePlugin/index.js +80 -27
- package/libs/ModelMakerPlugin/Controller.js +140 -82
- package/libs/ModelMakerPlugin/index.js +76 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +118 -57
- package/libs/ModelTVVideoPlugin/index.js +69 -8
- package/libs/Object3DHelperPlugin/Controller.js +67 -43
- package/libs/Object3DHelperPlugin/index.js +36 -13
- package/libs/PanoCompassPlugin/Controller.js +98 -42
- package/libs/PanoCompassPlugin/index.js +72 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +99 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +188 -115
- package/libs/PanoDoorLabelPlugin/index.js +77 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -88
- package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -126
- package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -72
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +168 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +110 -64
- package/libs/PanoMeasurePlugin/Model/area.js +115 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +79 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -45
- package/libs/PanoMeasurePlugin/index.js +77 -31
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +99 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +211 -150
- package/libs/PanoSpatialTagPlugin/index.js +67 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +149 -68
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +296 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +258 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +158 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +145 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +133 -62
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +110 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +106 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +114 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +133 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +137 -84
- package/libs/PanoTagPlugin/controller/index.js +114 -61
- package/libs/PanoTagPlugin/index.js +90 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +122 -41
- package/libs/PanoVideoPlugin/Controller.js +138 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +150 -69
- package/libs/PanoVideoPlugin/index.js +83 -10
- package/libs/PipelinePlugin/Controller.js +200 -128
- package/libs/PipelinePlugin/index.js +77 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +103 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +96 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +137 -56
- package/libs/Sculpt/Meshes/Box.js +6 -5
- package/libs/Sculpt/Meshes/Cylinder.js +7 -6
- package/libs/Sculpt/Meshes/Line.d.ts +6 -1
- package/libs/Sculpt/Meshes/Line.js +80 -57
- package/libs/Sculpt/Meshes/Point.js +6 -5
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Objects/Base/index.js +20 -17
- package/libs/Sculpt/Objects/Line/Editor.js +11 -10
- package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/libs/Sculpt/utils/removeAllTag.js +10 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +76 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +130 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +76 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +159 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +77 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +152 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +76 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +193 -192
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -3
- package/libs/shared-utils/tag.js +38 -24
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var x = Object.defineProperty;
|
|
2
2
|
var P = Object.getOwnPropertySymbols;
|
|
3
3
|
var I = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var S = (
|
|
4
|
+
var S = (p, o, e) => o in p ? x(p, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[o] = e, n = (p, o) => {
|
|
5
5
|
for (var e in o || (o = {}))
|
|
6
|
-
I.call(o, e) && S(
|
|
6
|
+
I.call(o, e) && S(p, e, o[e]);
|
|
7
7
|
if (P)
|
|
8
8
|
for (var e of P(o))
|
|
9
|
-
W.call(o, e) && S(
|
|
10
|
-
return
|
|
9
|
+
W.call(o, e) && S(p, e, o[e]);
|
|
10
|
+
return p;
|
|
11
11
|
};
|
|
12
|
-
var f = (
|
|
13
|
-
var g = (
|
|
12
|
+
var f = (p, o, e) => (S(p, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
|
+
var g = (p, o, e) => new Promise((t, r) => {
|
|
14
14
|
var s = (h) => {
|
|
15
15
|
try {
|
|
16
16
|
b(e.next(h));
|
|
17
|
-
} catch (
|
|
18
|
-
r(
|
|
17
|
+
} catch (l) {
|
|
18
|
+
r(l);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, d = (h) => {
|
|
21
21
|
try {
|
|
22
22
|
b(e.throw(h));
|
|
23
|
-
} catch (
|
|
24
|
-
r(
|
|
23
|
+
} catch (l) {
|
|
24
|
+
r(l);
|
|
25
25
|
}
|
|
26
|
-
}, b = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(s,
|
|
27
|
-
b((e = e.apply(
|
|
26
|
+
}, b = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(s, d);
|
|
27
|
+
b((e = e.apply(p, o)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as L } from "../base/BasePlugin.js";
|
|
30
30
|
import "three";
|
|
@@ -48,14 +48,31 @@ import { Subscribe as R } from "../shared-utils/Subscribe.js";
|
|
|
48
48
|
import "hammerjs";
|
|
49
49
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
50
50
|
import "@realsee/five/line";
|
|
51
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
52
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
53
|
+
import "./Controller.js";
|
|
54
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
55
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
56
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
57
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
58
|
+
import "../shared-utils/three/THREERaycaster.js";
|
|
59
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
60
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
61
|
+
import "../shared-utils/three/Magnifier.js";
|
|
62
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
63
|
+
import "../shared-utils/three/Assets/index.js";
|
|
64
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
65
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
66
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
67
|
+
import "../shared-utils/three/centerPoint.js";
|
|
51
68
|
import "animejs";
|
|
69
|
+
import "../shared-utils/isNil.js";
|
|
70
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
52
71
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
53
72
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
54
73
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
55
74
|
import "../shared-utils/five/transformPosition.js";
|
|
56
|
-
import "../shared-utils/five/getFiveModel.js";
|
|
57
75
|
import "../shared-utils/url/absoluteUrl.js";
|
|
58
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
59
76
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
60
77
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
61
78
|
import "../shared-utils/three/IObject3D.js";
|
|
@@ -64,13 +81,19 @@ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
|
64
81
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
65
82
|
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
66
83
|
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
84
|
+
import "../shared-utils/positionToVector3.js";
|
|
85
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
86
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
87
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
88
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
89
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
90
|
+
import "../shared-utils/util.js";
|
|
91
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
67
92
|
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
68
93
|
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
69
94
|
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
70
95
|
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
71
96
|
import "../shared-utils/threex/domevents/index.js";
|
|
72
|
-
import "../shared-utils/isNil.js";
|
|
73
|
-
import "../shared-utils/util.js";
|
|
74
97
|
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
75
98
|
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
76
99
|
import "../Sculpt/utils/three/rayOnLine.js";
|
|
@@ -78,18 +101,19 @@ import "../shared-utils/math/rad2Deg.js";
|
|
|
78
101
|
import "../shared-utils/math/deg2Rad.js";
|
|
79
102
|
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
80
103
|
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
81
|
-
import "../shared-utils/
|
|
82
|
-
import "../
|
|
83
|
-
import "../
|
|
84
|
-
import "../
|
|
85
|
-
import "../
|
|
86
|
-
import "../
|
|
87
|
-
import "../
|
|
88
|
-
import "../shared-utils/
|
|
89
|
-
import "../
|
|
90
|
-
import "../CSS3DRenderPlugin/utils/three/
|
|
91
|
-
import "../
|
|
92
|
-
import "../
|
|
104
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
105
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
106
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
107
|
+
import "../Sculpt/Meshes/Line.js";
|
|
108
|
+
import "../Sculpt/typings/style.js";
|
|
109
|
+
import "../shared-utils/five/FiveLine.js";
|
|
110
|
+
import "../shared-utils/tag.js";
|
|
111
|
+
import "../shared-utils/five/vector3ToScreen.js";
|
|
112
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
113
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
114
|
+
import "../shared-utils/isTouchDevice.js";
|
|
115
|
+
import "../shared-utils/five/getPosition.js";
|
|
116
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
93
117
|
const w = "Object3DHelperPlugin", D = w, X = () => {
|
|
94
118
|
console.error(`${D} is disposed`);
|
|
95
119
|
}, Y = () => {
|
|
@@ -97,7 +121,7 @@ const w = "Object3DHelperPlugin", D = w, X = () => {
|
|
|
97
121
|
}, Z = () => {
|
|
98
122
|
console.error(`${D} is disabled`);
|
|
99
123
|
};
|
|
100
|
-
class
|
|
124
|
+
class Wr extends L {
|
|
101
125
|
constructor(e) {
|
|
102
126
|
super(e);
|
|
103
127
|
f(this, "name", w);
|
|
@@ -173,26 +197,26 @@ class mr extends L {
|
|
|
173
197
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
174
198
|
return;
|
|
175
199
|
}
|
|
176
|
-
const r = new N(), s = [],
|
|
200
|
+
const r = new N(), s = [], d = (M = this.five.getElement()) == null ? void 0 : M.parentElement, b = this.five.camera, l = n(n({}, {
|
|
177
201
|
moveHelper: !0,
|
|
178
202
|
rotateHelper: !0,
|
|
179
203
|
scaleHelper: !0,
|
|
180
204
|
boundingBoxHelper: !1,
|
|
181
205
|
positionFrom: "objectPosition"
|
|
182
|
-
}), t), { moveHelper: y, rotateHelper: B, scaleHelper: j, boundingBoxHelper: k } =
|
|
206
|
+
}), t), { moveHelper: y, rotateHelper: B, scaleHelper: j, boundingBoxHelper: k } = l, u = new R(), v = new R(), C = (i) => {
|
|
183
207
|
if (i)
|
|
184
208
|
return typeof i == "boolean" ? i : i.enable;
|
|
185
209
|
};
|
|
186
210
|
if (C(y)) {
|
|
187
|
-
const i = n(n({}, this.getConfig(
|
|
211
|
+
const i = n(n({}, this.getConfig(l.moveHelper)), l), m = new _(e, n({}, i)), a = new H(this.five, U, e, m, i, u, v);
|
|
188
212
|
r.addControllers({ moveController: a.helperController }), s.push(() => a.dispose());
|
|
189
213
|
}
|
|
190
214
|
if (C(B)) {
|
|
191
|
-
const i = n(n({}, this.getConfig(
|
|
215
|
+
const i = n(n({}, this.getConfig(l.rotateHelper)), l), m = new $(e, n({ container: d }, i)), a = new H(this.five, V, e, m, i, u, v);
|
|
192
216
|
r.addControllers({ rotateController: a.helperController }), s.push(() => a.dispose());
|
|
193
217
|
}
|
|
194
218
|
if (C(k)) {
|
|
195
|
-
const i = new G(e),
|
|
219
|
+
const i = new G(e), m = new H(
|
|
196
220
|
this.five,
|
|
197
221
|
J,
|
|
198
222
|
e,
|
|
@@ -201,11 +225,11 @@ class mr extends L {
|
|
|
201
225
|
u,
|
|
202
226
|
v
|
|
203
227
|
);
|
|
204
|
-
r.addControllers({ boundingBoxController:
|
|
228
|
+
r.addControllers({ boundingBoxController: m.helperController });
|
|
205
229
|
}
|
|
206
230
|
if (C(j))
|
|
207
|
-
if (e.isCSS3DObjectPlus &&
|
|
208
|
-
const i = new F(e,
|
|
231
|
+
if (e.isCSS3DObjectPlus && d) {
|
|
232
|
+
const i = new F(e, d, b, this.five.scene), m = new H(
|
|
209
233
|
this.five,
|
|
210
234
|
q,
|
|
211
235
|
e,
|
|
@@ -214,7 +238,7 @@ class mr extends L {
|
|
|
214
238
|
u,
|
|
215
239
|
v
|
|
216
240
|
);
|
|
217
|
-
r.addControllers({ scaleController:
|
|
241
|
+
r.addControllers({ scaleController: m.helperController }), s.push(() => m.dispose()), T(this.five).then(() => {
|
|
218
242
|
var a, O;
|
|
219
243
|
if (e.isCSS3DObjectPlus) {
|
|
220
244
|
const c = e;
|
|
@@ -225,7 +249,7 @@ class mr extends L {
|
|
|
225
249
|
}
|
|
226
250
|
});
|
|
227
251
|
} else {
|
|
228
|
-
const i = n(n({}, this.getConfig(
|
|
252
|
+
const i = n(n({}, this.getConfig(l.scaleHelper)), l), m = new K(e, i), a = new H(this.five, Q, e, m, i, u, v);
|
|
229
253
|
r.addControllers({ scaleController: a.helperController }), s.push(() => a.dispose());
|
|
230
254
|
}
|
|
231
255
|
return this.objectHelperMap.set(e, { helper: r, disposers: s }), r.controllers;
|
|
@@ -236,8 +260,8 @@ class mr extends L {
|
|
|
236
260
|
const { helper: t, disposers: r } = this.objectHelperMap.get(e);
|
|
237
261
|
if (t) {
|
|
238
262
|
if (e.isCSS3DObjectPlus) {
|
|
239
|
-
const s = e,
|
|
240
|
-
|
|
263
|
+
const s = e, d = this.css3DObjectParentMap.get(s);
|
|
264
|
+
d && d.add(s), this.css3DRender.render(this.five.camera);
|
|
241
265
|
}
|
|
242
266
|
this.objectHelperMap.delete(e), t.dispose(), r == null || r.forEach((s) => s == null ? void 0 : s());
|
|
243
267
|
}
|
|
@@ -269,6 +293,6 @@ class mr extends L {
|
|
|
269
293
|
}
|
|
270
294
|
}
|
|
271
295
|
export {
|
|
272
|
-
|
|
296
|
+
Wr as Object3DHelperController,
|
|
273
297
|
D as PLUGIN
|
|
274
298
|
};
|
|
@@ -1,20 +1,36 @@
|
|
|
1
1
|
import { Object3DHelperController as o } from "./Controller.js";
|
|
2
|
-
import { PLUGIN as
|
|
2
|
+
import { PLUGIN as Fr } from "./Controller.js";
|
|
3
3
|
import "../base/BasePlugin.js";
|
|
4
4
|
import "../shared-utils/Subscribe.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "hammerjs";
|
|
7
7
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
8
8
|
import "@realsee/five/line";
|
|
9
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
10
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
11
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
12
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
13
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
14
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
15
|
+
import "../shared-utils/three/THREERaycaster.js";
|
|
16
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
17
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
18
|
+
import "../shared-utils/three/Magnifier.js";
|
|
19
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
20
|
+
import "../shared-utils/three/Assets/index.js";
|
|
21
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
22
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
23
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
24
|
+
import "../shared-utils/three/centerPoint.js";
|
|
9
25
|
import "../shared-utils/three/THREESphere.js";
|
|
10
26
|
import "animejs";
|
|
27
|
+
import "../shared-utils/isNil.js";
|
|
28
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
11
29
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
12
30
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
13
31
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
14
32
|
import "../shared-utils/five/transformPosition.js";
|
|
15
|
-
import "../shared-utils/five/getFiveModel.js";
|
|
16
33
|
import "../shared-utils/url/absoluteUrl.js";
|
|
17
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
18
34
|
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
19
35
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
20
36
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
@@ -29,12 +45,6 @@ import "../shared-utils/positionToVector3.js";
|
|
|
29
45
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
30
46
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
31
47
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
32
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
33
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
34
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
35
|
-
import "../shared-utils/three/centerPoint.js";
|
|
36
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
37
|
-
import "../shared-utils/isNil.js";
|
|
38
48
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
39
49
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
40
50
|
import "../shared-utils/util.js";
|
|
@@ -64,10 +74,23 @@ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
|
64
74
|
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
65
75
|
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
66
76
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
67
|
-
|
|
77
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
78
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
79
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
80
|
+
import "../Sculpt/Meshes/Line.js";
|
|
81
|
+
import "../Sculpt/typings/style.js";
|
|
82
|
+
import "../shared-utils/five/FiveLine.js";
|
|
83
|
+
import "../shared-utils/tag.js";
|
|
84
|
+
import "../shared-utils/five/vector3ToScreen.js";
|
|
85
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
86
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
87
|
+
import "../shared-utils/isTouchDevice.js";
|
|
88
|
+
import "../shared-utils/five/getPosition.js";
|
|
89
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
90
|
+
const Ar = (r) => new o(r);
|
|
68
91
|
export {
|
|
69
92
|
o as Object3DHelperController,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
93
|
+
Ar as Object3DHelperPlugin,
|
|
94
|
+
Fr as PLUGIN,
|
|
95
|
+
Ar as default
|
|
73
96
|
};
|
|
@@ -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 i = (p) => {
|
|
15
15
|
try {
|
|
16
16
|
m(e.next(p));
|
|
17
17
|
} catch (c) {
|
|
18
18
|
o(c);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, s = (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(i, s);
|
|
27
27
|
m((e = e.apply(h, n)).next());
|
|
28
28
|
});
|
|
29
29
|
import * as a from "three";
|
|
@@ -38,17 +38,19 @@ import "../shared-utils/Subscribe.js";
|
|
|
38
38
|
import "hammerjs";
|
|
39
39
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
40
40
|
import "@realsee/five/line";
|
|
41
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
42
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
43
|
+
import "../Object3DHelperPlugin/Controller.js";
|
|
41
44
|
import "../shared-utils/three/THREESphere.js";
|
|
42
|
-
import "
|
|
43
|
-
import "../shared-utils/
|
|
44
|
-
import "../shared-utils/
|
|
45
|
-
import "../shared-utils/
|
|
46
|
-
import "../shared-utils/
|
|
47
|
-
import "../shared-utils/
|
|
48
|
-
import "../shared-utils/
|
|
49
|
-
import "../
|
|
50
|
-
import "
|
|
51
|
-
import "../CSS3DRenderPlugin/Controller.js";
|
|
45
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
46
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
47
|
+
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
48
|
+
import "../shared-utils/three/IObject3D.js";
|
|
49
|
+
import "../shared-utils/three/boundingBox.js";
|
|
50
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
51
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
52
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
53
|
+
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
52
54
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
53
55
|
import "../shared-utils/positionToVector3.js";
|
|
54
56
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -59,16 +61,70 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
|
59
61
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
60
62
|
import "../shared-utils/three/centerPoint.js";
|
|
61
63
|
import "../shared-utils/three/getObjectVisible.js";
|
|
64
|
+
import "animejs";
|
|
62
65
|
import "../shared-utils/isNil.js";
|
|
66
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
67
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
68
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
69
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
70
|
+
import "../shared-utils/five/transformPosition.js";
|
|
71
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
72
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
63
73
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
64
74
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
65
75
|
import "../shared-utils/util.js";
|
|
66
76
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
77
|
+
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
78
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
79
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
80
|
+
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
81
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
82
|
+
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
83
|
+
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
84
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
85
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
86
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
87
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
88
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
89
|
+
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
90
|
+
import "../shared-utils/Object3DHelper/index.js";
|
|
91
|
+
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
92
|
+
import "../shared-utils/math/rad2Deg.js";
|
|
93
|
+
import "../shared-utils/math/deg2Rad.js";
|
|
94
|
+
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
95
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
96
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
67
97
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
98
|
+
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
99
|
+
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
100
|
+
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
68
101
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
102
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
103
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
104
|
+
import "../shared-utils/three/THREERaycaster.js";
|
|
105
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
106
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
107
|
+
import "../shared-utils/three/Magnifier.js";
|
|
108
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
109
|
+
import "../shared-utils/three/Assets/index.js";
|
|
110
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
111
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
112
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
113
|
+
import "../Sculpt/Meshes/Line.js";
|
|
114
|
+
import "../Sculpt/typings/style.js";
|
|
115
|
+
import "../shared-utils/five/FiveLine.js";
|
|
116
|
+
import "../shared-utils/tag.js";
|
|
117
|
+
import "../shared-utils/five/vector3ToScreen.js";
|
|
118
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
119
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
120
|
+
import "../shared-utils/isTouchDevice.js";
|
|
121
|
+
import "../shared-utils/five/getPosition.js";
|
|
122
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
123
|
+
import "./Assets/roomInfoIcon.js";
|
|
124
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
69
125
|
import "../shared-utils/animationFrame/index.js";
|
|
70
126
|
const g = { userAction: !0 };
|
|
71
|
-
class
|
|
127
|
+
class It extends A {
|
|
72
128
|
constructor(e, t) {
|
|
73
129
|
super(e, t);
|
|
74
130
|
/**
|
|
@@ -99,8 +155,8 @@ class Me extends A {
|
|
|
99
155
|
* @todo 销毁贴图时,最好还是直接销毁贴图吧,this.compassMesh?.material.map 这种都是很深层的引用了。THREE 的建议我看也是自己去管理和销毁公共贴图。
|
|
100
156
|
*/
|
|
101
157
|
r(this, "dispose", () => {
|
|
102
|
-
var e, t, o,
|
|
103
|
-
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(), (
|
|
158
|
+
var e, t, o, i;
|
|
159
|
+
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(), (i = (o = this.entryDoorMesh) == null ? void 0 : o.material.map) == null || i.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);
|
|
104
160
|
});
|
|
105
161
|
/**
|
|
106
162
|
* 添加事件监听
|
|
@@ -145,12 +201,12 @@ class Me extends A {
|
|
|
145
201
|
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);
|
|
146
202
|
});
|
|
147
203
|
r(this, "onFivePanoWillArrive", (e) => {
|
|
148
|
-
var t, o,
|
|
149
|
-
e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (o = this.compassMesh) == null || o.material.setValues({ opacity: 0 }), (
|
|
204
|
+
var t, o, i, s;
|
|
205
|
+
e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (o = this.compassMesh) == null || o.material.setValues({ opacity: 0 }), (i = this.logoMeshTween) == null || i.dispose(), (s = this.logoMesh) == null || s.material.setValues({ opacity: 0 }));
|
|
150
206
|
});
|
|
151
207
|
r(this, "onFivePanoArrived", (e) => {
|
|
152
|
-
var o,
|
|
153
|
-
const t = (
|
|
208
|
+
var o, i, s, m, p, c, y, I;
|
|
209
|
+
const t = (s = (i = (o = this.five.work) == null ? void 0 : o.observers) == null ? void 0 : i[e]) == null ? void 0 : s.standingPosition;
|
|
154
210
|
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 }) => {
|
|
155
211
|
var l;
|
|
156
212
|
(l = this.compassMesh) == null || l.material.setValues({ opacity: v }), this.five.needsRender = !0;
|
|
@@ -168,16 +224,16 @@ class Me extends A {
|
|
|
168
224
|
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;
|
|
169
225
|
});
|
|
170
226
|
r(this, "onFiveCameraDirectionUpdate", ({ longitude: e, latitude: t }) => {
|
|
171
|
-
var o,
|
|
172
|
-
this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (
|
|
227
|
+
var o, i;
|
|
228
|
+
this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (i = this.roomInfoInstance) == null || i.hide());
|
|
173
229
|
});
|
|
174
230
|
// eslint-disable-next-line max-params
|
|
175
|
-
r(this, "onFiveModeChange", (e, t, o,
|
|
231
|
+
r(this, "onFiveModeChange", (e, t, o, i, s) => {
|
|
176
232
|
e !== t && this.setState(
|
|
177
233
|
{
|
|
178
234
|
visible: e === _.Mode.Panorama
|
|
179
235
|
},
|
|
180
|
-
{ userAction:
|
|
236
|
+
{ userAction: s }
|
|
181
237
|
);
|
|
182
238
|
});
|
|
183
239
|
this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.setState({
|
|
@@ -241,11 +297,11 @@ class Me extends A {
|
|
|
241
297
|
), Promise.resolve();
|
|
242
298
|
}
|
|
243
299
|
setState(e, t = { userAction: !0 }) {
|
|
244
|
-
var
|
|
300
|
+
var i, s;
|
|
245
301
|
const o = JSON.parse(JSON.stringify(this.state));
|
|
246
302
|
this.state = {
|
|
247
|
-
visible: (
|
|
248
|
-
enabled: (
|
|
303
|
+
visible: (i = e.visible) != null ? i : o.visible,
|
|
304
|
+
enabled: (s = e.enabled) != null ? s : o.enabled,
|
|
249
305
|
config: f(f({}, o.config), e.config || {})
|
|
250
306
|
}, this.hooks.emit("stateChange", {
|
|
251
307
|
state: this.state,
|
|
@@ -255,8 +311,8 @@ class Me extends A {
|
|
|
255
311
|
}
|
|
256
312
|
load(e, t, o = !0) {
|
|
257
313
|
return d(this, null, function* () {
|
|
258
|
-
const
|
|
259
|
-
JSON.stringify(this.data) !== JSON.stringify(
|
|
314
|
+
const i = yield this.formatData(e);
|
|
315
|
+
JSON.stringify(this.data) !== JSON.stringify(i) && (this.hooks.emit("dataChange", i, this.data), this.data = f({}, i), this.init(), t && this.setState(t, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
|
|
260
316
|
});
|
|
261
317
|
}
|
|
262
318
|
formatData(e) {
|
|
@@ -268,22 +324,22 @@ class Me extends A {
|
|
|
268
324
|
*/
|
|
269
325
|
init() {
|
|
270
326
|
return d(this, null, function* () {
|
|
271
|
-
var o,
|
|
272
|
-
const e = (
|
|
327
|
+
var o, i, s, m;
|
|
328
|
+
const e = (i = (o = this.data) == null ? void 0 : o.north_rad) != null ? i : null;
|
|
273
329
|
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));
|
|
274
|
-
const t = (m = (
|
|
330
|
+
const t = (m = (s = this.data) == null ? void 0 : s.entrance) != null ? m : null;
|
|
275
331
|
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;
|
|
276
332
|
});
|
|
277
333
|
}
|
|
278
334
|
loadCompassMesh() {
|
|
279
335
|
return d(this, null, function* () {
|
|
280
|
-
const e = this.state.config.compassImageUrl, t = yield M(e), o = new a.CircleGeometry(0.7, 32),
|
|
336
|
+
const e = this.state.config.compassImageUrl, t = yield M(e), o = new a.CircleGeometry(0.7, 32), i = new a.MeshBasicMaterial({
|
|
281
337
|
map: t,
|
|
282
338
|
transparent: !0,
|
|
283
339
|
opacity: 0,
|
|
284
340
|
depthTest: !1
|
|
285
|
-
}),
|
|
286
|
-
return
|
|
341
|
+
}), s = new a.Mesh(o, i);
|
|
342
|
+
return s.name = "pano-compass-mesh", s;
|
|
287
343
|
});
|
|
288
344
|
}
|
|
289
345
|
loadLogoMesh() {
|
|
@@ -292,24 +348,24 @@ class Me extends A {
|
|
|
292
348
|
return;
|
|
293
349
|
const e = this.state.config.logoURL, t = yield M(e);
|
|
294
350
|
t.minFilter = a.NearestFilter, t.magFilter = a.NearestFilter;
|
|
295
|
-
const o = new a.PlaneBufferGeometry(0.4, 0.4),
|
|
351
|
+
const o = new a.PlaneBufferGeometry(0.4, 0.4), i = new a.MeshBasicMaterial({
|
|
296
352
|
map: t,
|
|
297
353
|
opacity: 0,
|
|
298
354
|
transparent: !0,
|
|
299
355
|
depthTest: !1
|
|
300
|
-
}),
|
|
301
|
-
return
|
|
356
|
+
}), s = new a.Mesh(o, i);
|
|
357
|
+
return s.name = "pano-compass-logo-mesh", s;
|
|
302
358
|
});
|
|
303
359
|
}
|
|
304
360
|
loadEntryDoorMesh() {
|
|
305
361
|
return d(this, null, function* () {
|
|
306
|
-
const e = this.state.config.entryDoorImageUrl, t = yield M(e), o = new a.PlaneGeometry(0.2, 0.16),
|
|
362
|
+
const e = this.state.config.entryDoorImageUrl, t = yield M(e), o = new a.PlaneGeometry(0.2, 0.16), i = new a.MeshBasicMaterial({
|
|
307
363
|
map: t,
|
|
308
364
|
transparent: !0,
|
|
309
365
|
opacity: 0.8,
|
|
310
366
|
depthTest: !1
|
|
311
|
-
}),
|
|
312
|
-
return
|
|
367
|
+
}), s = new a.Mesh(o, i);
|
|
368
|
+
return s.name = "pano-compass-entry-door", s;
|
|
313
369
|
});
|
|
314
370
|
}
|
|
315
371
|
loadRoomInfo() {
|
|
@@ -323,5 +379,5 @@ class Me extends A {
|
|
|
323
379
|
}
|
|
324
380
|
}
|
|
325
381
|
export {
|
|
326
|
-
|
|
382
|
+
It as PanoCompassController
|
|
327
383
|
};
|