@realsee/dnalogel 3.50.14 → 3.50.15-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -0
- package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
- package/dist/Sculpt/index.d.ts +4 -4
- package/dist/index.cjs.js +262 -262
- package/dist/index.js +4235 -4231
- package/dist/index.umd.js +263 -263
- package/dist/shared-utils/five/index.d.ts +2 -0
- package/dist/shared-utils/tag.d.ts +1 -1
- package/dist/shared-utils/three/index.d.ts +1 -0
- package/libs/AreaMakerPlugin/Controller.js +104 -74
- package/libs/AreaMakerPlugin/index.js +33 -3
- package/libs/AreaMakerPlugin/utils/Item.js +66 -36
- package/libs/CSS3DRenderPlugin/Controller.js +39 -19
- package/libs/CSS3DRenderPlugin/index.js +34 -14
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +60 -35
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +98 -78
- package/libs/CruisePlugin/BaseController.js +59 -29
- package/libs/CruisePlugin/Move.js +33 -14
- package/libs/CruisePlugin/Work.js +66 -47
- package/libs/CruisePlugin/index.js +38 -19
- package/libs/CurrentPanoImagePlugin/Controller.js +68 -38
- package/libs/CurrentPanoImagePlugin/index.js +34 -4
- package/libs/GuideLinePlugin/Controller.js +69 -50
- package/libs/GuideLinePlugin/GuideLineItem.js +34 -15
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +34 -15
- package/libs/GuideLinePlugin/index.js +38 -19
- package/libs/ModelMakerPlugin/Controller.js +60 -42
- package/libs/ModelMakerPlugin/index.js +34 -16
- package/libs/ModelTVVideoPlugin/Plugin.js +48 -28
- package/libs/ModelTVVideoPlugin/index.js +24 -4
- package/libs/Object3DHelperPlugin/Controller.js +49 -30
- package/libs/Object3DHelperPlugin/index.js +36 -17
- package/libs/PanoCompassPlugin/Controller.js +33 -13
- package/libs/PanoCompassPlugin/index.js +34 -14
- package/libs/PanoDoorLabelPlugin/BaseController.js +55 -25
- package/libs/PanoDoorLabelPlugin/Controller.js +99 -69
- package/libs/PanoDoorLabelPlugin/index.js +34 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +8 -8
- package/libs/PanoMeasurePlugin/Components/Controller1.js +8 -8
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +75 -49
- package/libs/PanoMeasurePlugin/Controller/index.js +16 -16
- package/libs/PanoMeasurePlugin/Model/area.js +41 -15
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +29 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +8 -8
- package/libs/PanoMeasurePlugin/index.js +3 -3
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +43 -15
- package/libs/PanoRulerProPlugin/Controller.js +60 -30
- package/libs/PanoRulerProPlugin/RulerItems.js +85 -55
- package/libs/PanoRulerProPlugin/index.js +33 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +54 -34
- package/libs/PanoSpatialTagPlugin/index.js +22 -2
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -49
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +235 -206
- package/libs/PanoTagPlugin/Components/Tag/index.js +152 -125
- package/libs/PanoTagPlugin/Components/TagContainer.js +97 -70
- package/libs/PanoTagPlugin/Components/TagItem.js +31 -4
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +29 -2
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +55 -28
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +53 -26
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +54 -27
- package/libs/PanoTagPlugin/controller/TagRender.js +48 -29
- package/libs/PanoTagPlugin/controller/TagUtil.js +33 -14
- package/libs/PanoTagPlugin/controller/index.js +49 -30
- package/libs/PanoTagPlugin/index.js +41 -22
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +59 -29
- package/libs/PanoVideoPlugin/Controller.js +91 -61
- package/libs/PanoVideoPlugin/VideoMeshController.js +56 -26
- package/libs/PanoVideoPlugin/index.js +36 -6
- package/libs/PipelinePlugin/Controller.js +80 -51
- package/libs/PipelinePlugin/index.js +34 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +44 -14
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +43 -13
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +61 -31
- package/libs/Sculpt/Meshes/Box.js +3 -2
- package/libs/Sculpt/Meshes/Cylinder.js +3 -2
- package/libs/Sculpt/Meshes/Line.js +9 -8
- package/libs/Sculpt/Meshes/LineWithDots.js +8 -7
- package/libs/Sculpt/Meshes/Point.js +3 -2
- package/libs/Sculpt/Meshes/Polygon.js +3 -2
- package/libs/Sculpt/Meshes/Prism.js +9 -8
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Objects/Base/index.d.ts +1 -1
- package/libs/Sculpt/Objects/Line/Editor.js +7 -6
- package/libs/Sculpt/index.d.ts +4 -4
- package/libs/Sculpt/index.js +3 -2
- package/libs/Sculpt/utils/three/ColoredMesh.js +6 -5
- package/libs/base/BasePlugin.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +89 -60
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +34 -5
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +79 -50
- package/libs/floorplan/ModelFloorplanPlugin/index.js +34 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +68 -38
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +34 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +104 -75
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +34 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +28 -28
- package/libs/shared-utils/five/fiveModelLoad.js +1 -0
- package/libs/shared-utils/five/index.d.ts +2 -0
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/index.js +42 -35
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +1 -1
- package/libs/shared-utils/tag.js +41 -41
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
- package/libs/shared-utils/three/index.d.ts +1 -0
- 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
26
|
}, b = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(s, d);
|
|
27
|
-
b((e = e.apply(
|
|
27
|
+
b((e = e.apply(p, o)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as L } from "../base/BasePlugin.js";
|
|
30
30
|
import "three";
|
|
@@ -56,17 +56,46 @@ import "../shared-utils/five/transformPosition.js";
|
|
|
56
56
|
import "../shared-utils/three/temp.js";
|
|
57
57
|
import "../shared-utils/dom/resizeObserver.js";
|
|
58
58
|
import "hammerjs";
|
|
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";
|
|
59
65
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
66
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
67
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
68
|
+
import "../shared-utils/three/centerPoint.js";
|
|
69
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
60
70
|
import "@realsee/five/line";
|
|
61
71
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
62
72
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
63
73
|
import "../vendor/three/build/three.module.js";
|
|
64
74
|
import "animejs";
|
|
65
|
-
import "../shared-utils/
|
|
75
|
+
import "../shared-utils/isNil.js";
|
|
66
76
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
77
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
78
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
79
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
80
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
81
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
82
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
83
|
+
import "../Sculpt/Meshes/Line.js";
|
|
84
|
+
import "../Sculpt/typings/style.js";
|
|
85
|
+
import "../shared-utils/five/FiveLine.js";
|
|
86
|
+
import "../shared-utils/three/IObject3D.js";
|
|
87
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
88
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
89
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
90
|
+
import "../shared-utils/util.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 "../shared-utils/three/PointSelector/utils/contents.js";
|
|
96
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
67
97
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
68
98
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
69
|
-
import "../shared-utils/three/IObject3D.js";
|
|
70
99
|
import "../shared-utils/three/boundingBox.js";
|
|
71
100
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
72
101
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -77,8 +106,6 @@ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
|
77
106
|
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
78
107
|
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
79
108
|
import "../shared-utils/threex/domevents/index.js";
|
|
80
|
-
import "../shared-utils/isNil.js";
|
|
81
|
-
import "../shared-utils/util.js";
|
|
82
109
|
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
83
110
|
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
84
111
|
import "../Sculpt/utils/three/rayOnLine.js";
|
|
@@ -86,14 +113,6 @@ import "../shared-utils/math/rad2Deg.js";
|
|
|
86
113
|
import "../shared-utils/math/deg2Rad.js";
|
|
87
114
|
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
88
115
|
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
89
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
90
|
-
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
91
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
92
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
93
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
94
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
95
|
-
import "../shared-utils/three/centerPoint.js";
|
|
96
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
97
116
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
98
117
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
99
118
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
@@ -104,7 +123,7 @@ const w = "Object3DHelperPlugin", D = w, X = () => {
|
|
|
104
123
|
}, Z = () => {
|
|
105
124
|
console.error(`${D} is disabled`);
|
|
106
125
|
};
|
|
107
|
-
class
|
|
126
|
+
class _r extends L {
|
|
108
127
|
constructor(e) {
|
|
109
128
|
super(e);
|
|
110
129
|
f(this, "name", w);
|
|
@@ -180,22 +199,22 @@ class Hr extends L {
|
|
|
180
199
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
181
200
|
return;
|
|
182
201
|
}
|
|
183
|
-
const r = new N(), s = [], d = (M = this.five.getElement()) == null ? void 0 : M.parentElement, b = this.five.camera,
|
|
202
|
+
const r = new N(), s = [], d = (M = this.five.getElement()) == null ? void 0 : M.parentElement, b = this.five.camera, l = n(n({}, {
|
|
184
203
|
moveHelper: !0,
|
|
185
204
|
rotateHelper: !0,
|
|
186
205
|
scaleHelper: !0,
|
|
187
206
|
boundingBoxHelper: !1,
|
|
188
207
|
positionFrom: "objectPosition"
|
|
189
|
-
}), t), { moveHelper: y, rotateHelper: B, scaleHelper: j, boundingBoxHelper: k } =
|
|
208
|
+
}), t), { moveHelper: y, rotateHelper: B, scaleHelper: j, boundingBoxHelper: k } = l, u = new R(), v = new R(), C = (i) => {
|
|
190
209
|
if (i)
|
|
191
210
|
return typeof i == "boolean" ? i : i.enable;
|
|
192
211
|
};
|
|
193
212
|
if (C(y)) {
|
|
194
|
-
const i = n(n({}, this.getConfig(
|
|
213
|
+
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);
|
|
195
214
|
r.addControllers({ moveController: a.helperController }), s.push(() => a.dispose());
|
|
196
215
|
}
|
|
197
216
|
if (C(B)) {
|
|
198
|
-
const i = n(n({}, this.getConfig(
|
|
217
|
+
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);
|
|
199
218
|
r.addControllers({ rotateController: a.helperController }), s.push(() => a.dispose());
|
|
200
219
|
}
|
|
201
220
|
if (C(k)) {
|
|
@@ -232,7 +251,7 @@ class Hr extends L {
|
|
|
232
251
|
}
|
|
233
252
|
});
|
|
234
253
|
} else {
|
|
235
|
-
const i = n(n({}, this.getConfig(
|
|
254
|
+
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);
|
|
236
255
|
r.addControllers({ scaleController: a.helperController }), s.push(() => a.dispose());
|
|
237
256
|
}
|
|
238
257
|
return this.objectHelperMap.set(e, { helper: r, disposers: s }), r.controllers;
|
|
@@ -276,6 +295,6 @@ class Hr extends L {
|
|
|
276
295
|
}
|
|
277
296
|
}
|
|
278
297
|
export {
|
|
279
|
-
|
|
298
|
+
_r as Object3DHelperController,
|
|
280
299
|
D as PLUGIN
|
|
281
300
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Object3DHelperController as o } from "./Controller.js";
|
|
2
|
-
import { PLUGIN as
|
|
2
|
+
import { PLUGIN as Mr } from "./Controller.js";
|
|
3
3
|
import "../base/BasePlugin.js";
|
|
4
4
|
import "../shared-utils/Subscribe.js";
|
|
5
5
|
import "../shared-utils/tag.js";
|
|
@@ -14,37 +14,56 @@ import "../shared-utils/five/transformPosition.js";
|
|
|
14
14
|
import "../shared-utils/three/temp.js";
|
|
15
15
|
import "../shared-utils/dom/resizeObserver.js";
|
|
16
16
|
import "hammerjs";
|
|
17
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
18
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
19
|
+
import "../shared-utils/three/Magnifier.js";
|
|
20
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
21
|
+
import "../shared-utils/three/Assets/index.js";
|
|
22
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
17
23
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
24
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
25
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
26
|
+
import "../shared-utils/three/centerPoint.js";
|
|
27
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
18
28
|
import "@realsee/five/line";
|
|
19
29
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
20
30
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
21
31
|
import "../vendor/three/build/three.module.js";
|
|
22
32
|
import "../shared-utils/three/core/Sphere.js";
|
|
23
33
|
import "animejs";
|
|
24
|
-
import "../shared-utils/
|
|
34
|
+
import "../shared-utils/isNil.js";
|
|
25
35
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
36
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
37
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
38
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
39
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
40
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
41
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
42
|
+
import "../Sculpt/Meshes/Line.js";
|
|
43
|
+
import "../Sculpt/typings/style.js";
|
|
44
|
+
import "../shared-utils/five/FiveLine.js";
|
|
45
|
+
import "../shared-utils/three/IObject3D.js";
|
|
46
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
47
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
48
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
49
|
+
import "../shared-utils/util.js";
|
|
50
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
51
|
+
import "../shared-utils/isTouchDevice.js";
|
|
52
|
+
import "../shared-utils/five/getPosition.js";
|
|
53
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
54
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
55
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
26
56
|
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
27
57
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
28
58
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
29
|
-
import "../shared-utils/three/IObject3D.js";
|
|
30
59
|
import "../shared-utils/three/boundingBox.js";
|
|
31
60
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
32
61
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
33
62
|
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
34
63
|
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
35
64
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
36
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
37
|
-
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
38
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
39
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
40
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
41
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
42
|
-
import "../shared-utils/three/centerPoint.js";
|
|
43
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
44
|
-
import "../shared-utils/isNil.js";
|
|
45
65
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
46
66
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
47
|
-
import "../shared-utils/util.js";
|
|
48
67
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
49
68
|
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
50
69
|
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
@@ -71,10 +90,10 @@ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
|
71
90
|
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
72
91
|
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
73
92
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
74
|
-
const
|
|
93
|
+
const Fr = (r) => new o(r);
|
|
75
94
|
export {
|
|
76
95
|
o as Object3DHelperController,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
96
|
+
Fr as Object3DHelperPlugin,
|
|
97
|
+
Mr as PLUGIN,
|
|
98
|
+
Fr as default
|
|
80
99
|
};
|
|
@@ -46,36 +46,56 @@ import "../shared-utils/five/transformPosition.js";
|
|
|
46
46
|
import "../shared-utils/three/temp.js";
|
|
47
47
|
import "../shared-utils/dom/resizeObserver.js";
|
|
48
48
|
import "hammerjs";
|
|
49
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
50
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
51
|
+
import "../shared-utils/three/Magnifier.js";
|
|
52
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
53
|
+
import "../shared-utils/three/Assets/index.js";
|
|
54
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
49
55
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
56
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
57
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
58
|
+
import "../shared-utils/three/centerPoint.js";
|
|
59
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
50
60
|
import "@realsee/five/line";
|
|
51
61
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
52
62
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
53
63
|
import "../vendor/three/build/three.module.js";
|
|
54
64
|
import "../shared-utils/three/core/Sphere.js";
|
|
55
65
|
import "animejs";
|
|
56
|
-
import "../shared-utils/
|
|
66
|
+
import "../shared-utils/isNil.js";
|
|
57
67
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
58
|
-
import "
|
|
59
|
-
import "../
|
|
60
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
68
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
69
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
61
70
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
62
71
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
63
72
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
64
|
-
import "../
|
|
65
|
-
import "../
|
|
66
|
-
import "../
|
|
67
|
-
import "../shared-utils/
|
|
68
|
-
import "../shared-utils/three/
|
|
69
|
-
import "../
|
|
73
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
74
|
+
import "../Sculpt/Meshes/Line.js";
|
|
75
|
+
import "../Sculpt/typings/style.js";
|
|
76
|
+
import "../shared-utils/five/FiveLine.js";
|
|
77
|
+
import "../shared-utils/three/IObject3D.js";
|
|
78
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
79
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
80
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
81
|
+
import "../shared-utils/util.js";
|
|
82
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
83
|
+
import "../shared-utils/isTouchDevice.js";
|
|
84
|
+
import "../shared-utils/five/getPosition.js";
|
|
85
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
86
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
87
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
88
|
+
import "./Assets/roomInfoIcon.js";
|
|
89
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
90
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
70
91
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
71
92
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
72
|
-
import "../shared-utils/util.js";
|
|
73
93
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
74
94
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
75
95
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
76
96
|
import "../shared-utils/animationFrame/index.js";
|
|
77
97
|
const g = { userAction: !0 };
|
|
78
|
-
class
|
|
98
|
+
class Je extends A {
|
|
79
99
|
constructor(e, t) {
|
|
80
100
|
super(e, t);
|
|
81
101
|
/**
|
|
@@ -330,5 +350,5 @@ class Ce extends A {
|
|
|
330
350
|
}
|
|
331
351
|
}
|
|
332
352
|
export {
|
|
333
|
-
|
|
353
|
+
Je as PanoCompassController
|
|
334
354
|
};
|
|
@@ -15,40 +15,60 @@ import "../shared-utils/five/transformPosition.js";
|
|
|
15
15
|
import "../shared-utils/three/temp.js";
|
|
16
16
|
import "../shared-utils/dom/resizeObserver.js";
|
|
17
17
|
import "hammerjs";
|
|
18
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
19
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
20
|
+
import "../shared-utils/three/Magnifier.js";
|
|
21
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
22
|
+
import "../shared-utils/three/Assets/index.js";
|
|
23
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
18
24
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
25
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
26
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
27
|
+
import "../shared-utils/three/centerPoint.js";
|
|
28
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
19
29
|
import "@realsee/five/line";
|
|
20
30
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
21
31
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
22
32
|
import "../vendor/three/build/three.module.js";
|
|
23
33
|
import "../shared-utils/three/core/Sphere.js";
|
|
24
34
|
import "animejs";
|
|
25
|
-
import "../shared-utils/
|
|
35
|
+
import "../shared-utils/isNil.js";
|
|
26
36
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
37
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
38
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
39
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
40
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
41
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
42
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
43
|
+
import "../Sculpt/Meshes/Line.js";
|
|
44
|
+
import "../Sculpt/typings/style.js";
|
|
45
|
+
import "../shared-utils/five/FiveLine.js";
|
|
46
|
+
import "../shared-utils/three/IObject3D.js";
|
|
47
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
48
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
49
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
50
|
+
import "../shared-utils/util.js";
|
|
51
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
52
|
+
import "../shared-utils/isTouchDevice.js";
|
|
53
|
+
import "../shared-utils/five/getPosition.js";
|
|
54
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
55
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
56
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
27
57
|
import "./getRoomInfoInstance.js";
|
|
28
58
|
import "./Assets/roomInfoIcon.js";
|
|
29
59
|
import "../shared-utils/three/loadTexture.js";
|
|
30
60
|
import "../CSS3DRenderPlugin/index.js";
|
|
31
61
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
32
62
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
33
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
34
|
-
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
35
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
36
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
37
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
38
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
39
|
-
import "../shared-utils/three/centerPoint.js";
|
|
40
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
41
|
-
import "../shared-utils/isNil.js";
|
|
42
63
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
43
64
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
44
|
-
import "../shared-utils/util.js";
|
|
45
65
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
46
66
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
47
67
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
48
68
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
49
69
|
import "../shared-utils/animationFrame/index.js";
|
|
50
|
-
const
|
|
70
|
+
const xo = (o, r) => new t(o, r);
|
|
51
71
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
72
|
+
xo as PanoCompassPlugin,
|
|
73
|
+
xo as default
|
|
54
74
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var h = Object.defineProperty, l = Object.defineProperties;
|
|
2
2
|
var d = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var a = 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 p = (e, i, t) => i in e ? h(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, r = (e, i) => {
|
|
6
|
+
for (var t in i || (i = {}))
|
|
7
|
+
u.call(i, t) && p(e, t, i[t]);
|
|
8
|
+
if (a)
|
|
9
|
+
for (var t of a(i))
|
|
10
|
+
b.call(i, t) && p(e, t, i[t]);
|
|
11
|
+
return e;
|
|
12
|
+
}, o = (e, i) => l(e, d(i));
|
|
13
|
+
var s = (e, i, t) => (p(e, typeof i != "symbol" ? i + "" : i, 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";
|
|
@@ -26,21 +26,51 @@ import "../shared-utils/five/transformPosition.js";
|
|
|
26
26
|
import "../shared-utils/three/temp.js";
|
|
27
27
|
import "../shared-utils/dom/resizeObserver.js";
|
|
28
28
|
import "hammerjs";
|
|
29
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
30
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
31
|
+
import "../shared-utils/three/Magnifier.js";
|
|
32
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
33
|
+
import "../shared-utils/three/Assets/index.js";
|
|
34
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
29
35
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
36
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
37
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
38
|
+
import "../shared-utils/three/centerPoint.js";
|
|
39
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
30
40
|
import "@realsee/five/line";
|
|
31
41
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
32
42
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
33
43
|
import "../vendor/three/build/three.module.js";
|
|
34
44
|
import "../shared-utils/three/core/Sphere.js";
|
|
35
45
|
import "animejs";
|
|
36
|
-
import "../shared-utils/
|
|
46
|
+
import "../shared-utils/isNil.js";
|
|
37
47
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
38
|
-
|
|
48
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
49
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
50
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
51
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
52
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
53
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
54
|
+
import "../Sculpt/Meshes/Line.js";
|
|
55
|
+
import "../Sculpt/typings/style.js";
|
|
56
|
+
import "../shared-utils/five/FiveLine.js";
|
|
57
|
+
import "../shared-utils/three/IObject3D.js";
|
|
58
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
59
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
60
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
61
|
+
import "../shared-utils/util.js";
|
|
62
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
63
|
+
import "../shared-utils/isTouchDevice.js";
|
|
64
|
+
import "../shared-utils/five/getPosition.js";
|
|
65
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
66
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
67
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
68
|
+
class St extends c {
|
|
39
69
|
constructor(t) {
|
|
40
70
|
super(t);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
71
|
+
s(this, "state");
|
|
72
|
+
s(this, "container");
|
|
73
|
+
s(this, "enabled");
|
|
44
74
|
this.five = t, this.five.once("dispose", this.dispose), this.enabled = !0, this.state = this.initState();
|
|
45
75
|
}
|
|
46
76
|
/**
|
|
@@ -48,14 +78,14 @@ class L extends c {
|
|
|
48
78
|
* @param options
|
|
49
79
|
*/
|
|
50
80
|
enable(t) {
|
|
51
|
-
this.enabled = !0, this.updateState(r(
|
|
81
|
+
this.enabled = !0, this.updateState(o(r({}, t), { userAction: !0 }));
|
|
52
82
|
}
|
|
53
83
|
/**
|
|
54
84
|
* 禁用组件
|
|
55
85
|
* @param options
|
|
56
86
|
*/
|
|
57
87
|
disable(t) {
|
|
58
|
-
this.enabled = !1, this.updateState(r(
|
|
88
|
+
this.enabled = !1, this.updateState(o(r({}, t), { userAction: !0 }));
|
|
59
89
|
}
|
|
60
90
|
/**
|
|
61
91
|
* 显示 UI
|
|
@@ -64,7 +94,7 @@ class L extends c {
|
|
|
64
94
|
*/
|
|
65
95
|
show(t) {
|
|
66
96
|
if (this.state.enabled)
|
|
67
|
-
return this.setState(r(
|
|
97
|
+
return this.setState(o(r({}, this.state), { visible: !0 }), t), Promise.resolve();
|
|
68
98
|
}
|
|
69
99
|
/**
|
|
70
100
|
* 隐藏 UI
|
|
@@ -73,7 +103,7 @@ class L extends c {
|
|
|
73
103
|
*/
|
|
74
104
|
hide(t) {
|
|
75
105
|
if (this.state.enabled)
|
|
76
|
-
return this.setState(r(
|
|
106
|
+
return this.setState(o(r({}, this.state), { visible: !1 }), t), Promise.resolve();
|
|
77
107
|
}
|
|
78
108
|
/**
|
|
79
109
|
* 销毁对象
|
|
@@ -87,11 +117,11 @@ class L extends c {
|
|
|
87
117
|
* @param options @BaseOptions 可选配置
|
|
88
118
|
* @returns
|
|
89
119
|
*/
|
|
90
|
-
setState(t,
|
|
120
|
+
setState(t, m) {
|
|
91
121
|
if (!this.enabled)
|
|
92
122
|
return;
|
|
93
|
-
const
|
|
94
|
-
this.state =
|
|
123
|
+
const n = r({}, this.state);
|
|
124
|
+
this.state = r(r(r({}, this.state), t), m), this.stateChangedCallback(n, m);
|
|
95
125
|
}
|
|
96
126
|
get visible() {
|
|
97
127
|
return this.five.state.mode === v.Mode.Panorama;
|
|
@@ -100,9 +130,9 @@ class L extends c {
|
|
|
100
130
|
this.enabled && (this.container = t, this.render());
|
|
101
131
|
}
|
|
102
132
|
updateState(t) {
|
|
103
|
-
this.setState(r(
|
|
133
|
+
this.setState(o(r({}, this.state), { enabled: this.enabled, visible: this.visible }), t);
|
|
104
134
|
}
|
|
105
135
|
}
|
|
106
136
|
export {
|
|
107
|
-
|
|
137
|
+
St as BasePanoPluginController
|
|
108
138
|
};
|