@realsee/dnalogel 3.50.14 → 3.50.15-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -0
- package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
- package/dist/Sculpt/index.d.ts +2 -2
- package/dist/index.cjs.js +255 -255
- package/dist/index.js +2733 -2732
- package/dist/index.umd.js +251 -251
- 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 +35 -15
- 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 +32 -13
- package/libs/CruisePlugin/Work.js +65 -46
- package/libs/CruisePlugin/index.js +37 -18
- package/libs/CurrentPanoImagePlugin/Controller.js +68 -38
- package/libs/CurrentPanoImagePlugin/index.js +34 -4
- package/libs/GuideLinePlugin/Controller.js +59 -40
- package/libs/GuideLinePlugin/GuideLineItem.js +33 -14
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +33 -14
- package/libs/GuideLinePlugin/index.js +37 -18
- package/libs/ModelMakerPlugin/Controller.js +50 -32
- package/libs/ModelMakerPlugin/index.js +33 -15
- package/libs/ModelTVVideoPlugin/Plugin.js +47 -27
- package/libs/ModelTVVideoPlugin/index.js +23 -3
- 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 +15 -15
- 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 +53 -33
- package/libs/PanoSpatialTagPlugin/index.js +21 -1
- 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 +47 -28
- package/libs/PanoTagPlugin/controller/TagUtil.js +32 -13
- package/libs/PanoTagPlugin/controller/index.js +45 -26
- package/libs/PanoTagPlugin/index.js +40 -21
- 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 +8 -7
- 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 +2 -2
- 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 +88 -59
- 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/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/index.js +44 -42
- 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,39 +1,40 @@
|
|
|
1
1
|
var H = Object.defineProperty;
|
|
2
2
|
var P = Object.getOwnPropertySymbols;
|
|
3
3
|
var L = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var w = (
|
|
4
|
+
var w = (p, o, e) => o in p ? H(p, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[o] = e, E = (p, o) => {
|
|
5
5
|
for (var e in o || (o = {}))
|
|
6
|
-
L.call(o, e) && w(
|
|
6
|
+
L.call(o, e) && w(p, e, o[e]);
|
|
7
7
|
if (P)
|
|
8
8
|
for (var e of P(o))
|
|
9
|
-
S.call(o, e) && w(
|
|
10
|
-
return
|
|
9
|
+
S.call(o, e) && w(p, e, o[e]);
|
|
10
|
+
return p;
|
|
11
11
|
};
|
|
12
|
-
var n = (
|
|
13
|
-
var F = (
|
|
14
|
-
var
|
|
12
|
+
var n = (p, o, e) => (w(p, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
|
+
var F = (p, o, e) => new Promise((t, r) => {
|
|
14
|
+
var l = (h) => {
|
|
15
15
|
try {
|
|
16
|
-
i(e.next(
|
|
17
|
-
} catch (
|
|
18
|
-
r(
|
|
16
|
+
i(e.next(h));
|
|
17
|
+
} catch (c) {
|
|
18
|
+
r(c);
|
|
19
19
|
}
|
|
20
|
-
}, a = (
|
|
20
|
+
}, a = (h) => {
|
|
21
21
|
try {
|
|
22
|
-
i(e.throw(
|
|
23
|
-
} catch (
|
|
24
|
-
r(
|
|
22
|
+
i(e.throw(h));
|
|
23
|
+
} catch (c) {
|
|
24
|
+
r(c);
|
|
25
25
|
}
|
|
26
|
-
}, i = (
|
|
27
|
-
i((e = e.apply(
|
|
26
|
+
}, i = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(l, a);
|
|
27
|
+
i((e = e.apply(p, o)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as z } from "../base/BasePluginWithData.js";
|
|
30
|
-
import * as
|
|
30
|
+
import * as m from "three";
|
|
31
31
|
import { ModelMakerBoxItem as B } from "./item/boxItem.js";
|
|
32
32
|
import { PrismMesh as A } from "../Sculpt/Meshes/Prism.js";
|
|
33
33
|
import { anyPositionToVector3 as O } from "../shared-utils/positionToVector3.js";
|
|
34
34
|
import { PolygonWithEdgeMesh as Q } from "../Sculpt/Meshes/PolygonWithEdge.js";
|
|
35
35
|
import "../shared-utils/tag.js";
|
|
36
36
|
import "hammerjs";
|
|
37
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
37
38
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
38
39
|
import "@realsee/five/line";
|
|
39
40
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
@@ -80,6 +81,25 @@ import "../shared-utils/three/closeVectors.js";
|
|
|
80
81
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
81
82
|
import "../shared-utils/three/temp.js";
|
|
82
83
|
import "../shared-utils/dom/resizeObserver.js";
|
|
84
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
85
|
+
import "../shared-utils/three/Magnifier.js";
|
|
86
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
87
|
+
import "../shared-utils/three/Assets/index.js";
|
|
88
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
89
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
90
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
91
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
92
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
93
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
94
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
95
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
96
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
97
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
98
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
99
|
+
import "../shared-utils/isTouchDevice.js";
|
|
100
|
+
import "../shared-utils/five/getPosition.js";
|
|
101
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
102
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
83
103
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
84
104
|
import "../vendor/three/build/three.module.js";
|
|
85
105
|
import "./utils/Text.js";
|
|
@@ -89,16 +109,14 @@ import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
|
89
109
|
import "./item/baseItem.js";
|
|
90
110
|
import "../shared-utils/three/addIfNotExists.js";
|
|
91
111
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
92
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
93
112
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
94
|
-
|
|
95
|
-
class at extends z {
|
|
113
|
+
class xt extends z {
|
|
96
114
|
constructor(e, t) {
|
|
97
|
-
var r,
|
|
115
|
+
var r, l;
|
|
98
116
|
super(e);
|
|
99
117
|
n(this, "state");
|
|
100
118
|
n(this, "items", []);
|
|
101
|
-
n(this, "group", new
|
|
119
|
+
n(this, "group", new m.Group());
|
|
102
120
|
n(this, "data");
|
|
103
121
|
n(this, "tagRendererMap", {});
|
|
104
122
|
n(this, "fiveDomEvents");
|
|
@@ -126,7 +144,7 @@ class at extends z {
|
|
|
126
144
|
t && e.__renderer !== t && (e.__renderer = t, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = t(e.tag.container, e));
|
|
127
145
|
});
|
|
128
146
|
});
|
|
129
|
-
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (r = t == null ? void 0 : t.occlusionVisibility) != null ? r : !1, this.occlusionMode = (
|
|
147
|
+
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (r = t == null ? void 0 : t.occlusionVisibility) != null ? r : !1, this.occlusionMode = (l = t == null ? void 0 : t.occlusionMode) != null ? l : "translucence", this.fiveDomEvents = Y(e), this.tagWrapper = (() => {
|
|
130
148
|
var i;
|
|
131
149
|
const a = document.createElement("div");
|
|
132
150
|
return a.style.position = "absolute", a.style.top = "0", a.style.left = "0", a.style.width = "100%", a.style.height = "100%", a.style.pointerEvents = "none", a.style.zIndex = `${(i = t == null ? void 0 : t.tagContainerZIndex) != null ? i : ""}`, a;
|
|
@@ -138,16 +156,16 @@ class at extends z {
|
|
|
138
156
|
if (this.clear(), this.data = e, yield $(this.five), this.data !== e)
|
|
139
157
|
return;
|
|
140
158
|
this.clear();
|
|
141
|
-
const t = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1, r = this.occlusionMode,
|
|
159
|
+
const t = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1, r = this.occlusionMode, l = 1.6;
|
|
142
160
|
(a = e == null ? void 0 : e.list) == null || a.forEach((i) => {
|
|
143
|
-
var
|
|
161
|
+
var h, c, _;
|
|
144
162
|
if (i.type === "triangles") {
|
|
145
163
|
const s = new Q();
|
|
146
164
|
s.setPoints(i.object_data.points), s.setStyle({
|
|
147
165
|
color: i.object_data.color,
|
|
148
|
-
opacity: ((
|
|
166
|
+
opacity: ((h = i.object_data.opacity) != null ? h : 0.4) / 2,
|
|
149
167
|
lineColor: i.object_data.color,
|
|
150
|
-
lineWidth:
|
|
168
|
+
lineWidth: l,
|
|
151
169
|
occlusionVisibility: t,
|
|
152
170
|
occlusionMode: r
|
|
153
171
|
}), this.fiveDomEvents.addEventListener(s, "hover", () => s.highlight()), this.fiveDomEvents.addEventListener(s, "unHover", () => s.unhighlight());
|
|
@@ -168,12 +186,12 @@ class at extends z {
|
|
|
168
186
|
return [u[0], u[1] + ((y = i.object_data.fixedY) != null ? y : 0), u[2]];
|
|
169
187
|
});
|
|
170
188
|
d.push(d[0]);
|
|
171
|
-
const v = i.object_data.height + ((
|
|
189
|
+
const v = i.object_data.height + ((c = i.object_data.fixedHeight) != null ? c : 0) + this.zFightingOffset, M = O(d[0]).add(new m.Vector3().setY(v));
|
|
172
190
|
s.setPoints({ points: d, heightPoint: M }), s.setStyle({
|
|
173
191
|
color: i.object_data.color,
|
|
174
192
|
opacity: ((_ = i.object_data.opacity) != null ? _ : 0.4) / 2,
|
|
175
193
|
lineColor: i.object_data.color,
|
|
176
|
-
lineWidth:
|
|
194
|
+
lineWidth: l,
|
|
177
195
|
occlusionVisibility: t,
|
|
178
196
|
occlusionMode: r
|
|
179
197
|
});
|
|
@@ -187,7 +205,7 @@ class at extends z {
|
|
|
187
205
|
});
|
|
188
206
|
this.items.push(f);
|
|
189
207
|
} else if (i.type === "box") {
|
|
190
|
-
const s = new A(), { start: d, end: v, rotation: M = [0, 0, 0, 0], opacity: f, color: u } = i.object_data, y = new
|
|
208
|
+
const s = new A(), { start: d, end: v, rotation: M = [0, 0, 0, 0], opacity: f, color: u } = i.object_data, y = new m.Vector3().fromArray(d), R = new m.Vector3().fromArray(v), T = new m.Euler().fromArray(M), x = new m.Quaternion().setFromEuler(T), C = x.clone().inverse(), V = new m.Vector3().lerpVectors(y, R, 0.5), W = V.clone().negate(), j = y.clone().add(W).applyQuaternion(C), k = R.clone().add(W).applyQuaternion(C), b = new m.Box3(j.clone().max(k), j.clone().min(k));
|
|
191
209
|
s.setPoints({
|
|
192
210
|
points: [g(b, 2), g(b, 3), g(b, 7), g(b, 6), g(b, 2)],
|
|
193
211
|
heightPoint: g(b, 0)
|
|
@@ -195,7 +213,7 @@ class at extends z {
|
|
|
195
213
|
color: u,
|
|
196
214
|
opacity: (f != null ? f : 0.4) / 2,
|
|
197
215
|
lineColor: u,
|
|
198
|
-
lineWidth:
|
|
216
|
+
lineWidth: l,
|
|
199
217
|
occlusionVisibility: t,
|
|
200
218
|
occlusionMode: r
|
|
201
219
|
});
|
|
@@ -253,5 +271,5 @@ class at extends z {
|
|
|
253
271
|
}
|
|
254
272
|
}
|
|
255
273
|
export {
|
|
256
|
-
|
|
274
|
+
xt as Controller
|
|
257
275
|
};
|
|
@@ -14,15 +14,45 @@ 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 "./item/boxItem.js";
|
|
27
57
|
import "./item/polygonItem.js";
|
|
28
58
|
import "./item/baseItem.js";
|
|
@@ -30,21 +60,9 @@ import "../shared-utils/three/addIfNotExists.js";
|
|
|
30
60
|
import "../shared-utils/three/boundingBox.js";
|
|
31
61
|
import "./utils/getFiveDomEvent.js";
|
|
32
62
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
33
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
34
63
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
35
64
|
import "../shared-utils/three/core/Raycaster.js";
|
|
36
|
-
import "../shared-utils/isTouchDevice.js";
|
|
37
65
|
import "../Sculpt/Meshes/Prism.js";
|
|
38
|
-
import "../shared-utils/three/IObject3D.js";
|
|
39
|
-
import "../Sculpt/Meshes/Line.js";
|
|
40
|
-
import "../Sculpt/typings/style.js";
|
|
41
|
-
import "../shared-utils/five/FiveLine.js";
|
|
42
|
-
import "../shared-utils/three/centerPoint.js";
|
|
43
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
44
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
45
|
-
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
46
|
-
import "../shared-utils/util.js";
|
|
47
|
-
import "../shared-utils/isNil.js";
|
|
48
66
|
import "../Sculpt/Meshes/Polygon.js";
|
|
49
67
|
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
50
68
|
import "../shared-utils/three/earcut3D.js";
|
|
@@ -65,7 +83,7 @@ import "../components/AreaLabel/LabelItem.js";
|
|
|
65
83
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
66
84
|
import "./item/prismItem.js";
|
|
67
85
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
68
|
-
const
|
|
86
|
+
const Go = (...o) => new r(...o);
|
|
69
87
|
export {
|
|
70
|
-
|
|
88
|
+
Go as ModelMakerPlugin
|
|
71
89
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var R = (s, g, e) => new Promise((f, v) => {
|
|
2
|
-
var b = (
|
|
2
|
+
var b = (l) => {
|
|
3
3
|
try {
|
|
4
|
-
h(e.next(
|
|
4
|
+
h(e.next(l));
|
|
5
5
|
} catch (x) {
|
|
6
6
|
v(x);
|
|
7
7
|
}
|
|
8
|
-
}, w = (
|
|
8
|
+
}, w = (l) => {
|
|
9
9
|
try {
|
|
10
|
-
h(e.throw(
|
|
10
|
+
h(e.throw(l));
|
|
11
11
|
} catch (x) {
|
|
12
12
|
v(x);
|
|
13
13
|
}
|
|
14
|
-
}, h = (
|
|
14
|
+
}, h = (l) => l.done ? f(l.value) : Promise.resolve(l.value).then(b, w);
|
|
15
15
|
h((e = e.apply(s, g)).next());
|
|
16
16
|
});
|
|
17
17
|
import * as c from "three";
|
|
@@ -42,22 +42,42 @@ import "../shared-utils/five/transformPosition.js";
|
|
|
42
42
|
import "../shared-utils/three/temp.js";
|
|
43
43
|
import "../shared-utils/dom/resizeObserver.js";
|
|
44
44
|
import "hammerjs";
|
|
45
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
46
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
47
|
+
import "../shared-utils/three/Magnifier.js";
|
|
48
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
49
|
+
import "../shared-utils/three/Assets/index.js";
|
|
50
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
51
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
52
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
53
|
+
import "../Sculpt/Meshes/Line.js";
|
|
54
|
+
import "../Sculpt/typings/style.js";
|
|
55
|
+
import "../shared-utils/five/FiveLine.js";
|
|
45
56
|
import "@realsee/five/line";
|
|
46
57
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
47
58
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
48
59
|
import "../vendor/three/build/three.module.js";
|
|
60
|
+
import "../shared-utils/three/IObject3D.js";
|
|
61
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
62
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
63
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
64
|
+
import "../shared-utils/util.js";
|
|
49
65
|
import "../shared-utils/three/core/Sphere.js";
|
|
50
66
|
import "animejs";
|
|
51
67
|
import "../shared-utils/isNil.js";
|
|
52
68
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
69
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
70
|
+
import "../shared-utils/isTouchDevice.js";
|
|
71
|
+
import "../shared-utils/five/getPosition.js";
|
|
72
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
73
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
53
74
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
54
75
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
55
|
-
import "../shared-utils/util.js";
|
|
56
76
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
57
77
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
58
78
|
import "../shared-utils/url/absoluteUrl.js";
|
|
59
79
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
60
|
-
const
|
|
80
|
+
const We = (s, { videoElement: g }) => {
|
|
61
81
|
const e = {
|
|
62
82
|
videoMeshes: [],
|
|
63
83
|
videoTextureEnabled: !1,
|
|
@@ -92,7 +112,7 @@ const Me = (s, { videoElement: g }) => {
|
|
|
92
112
|
t();
|
|
93
113
|
else
|
|
94
114
|
return s.once("modelLoaded", () => t());
|
|
95
|
-
},
|
|
115
|
+
}, l = () => {
|
|
96
116
|
e.enabled && (e.enabled = !1, e.videoMeshes.forEach((t) => {
|
|
97
117
|
t.geometry.dispose(), t.material.dispose(), s.scene.remove(t), e.videoTexture && e.videoTexture.image.pause();
|
|
98
118
|
}), e.videoMeshes = [], s.needsRender = !0);
|
|
@@ -121,14 +141,14 @@ const Me = (s, { videoElement: g }) => {
|
|
|
121
141
|
for (let r = 1; r < o; r++)
|
|
122
142
|
a.push(1, r / o);
|
|
123
143
|
a.push(1, 1);
|
|
124
|
-
const
|
|
144
|
+
const m = [];
|
|
125
145
|
for (let r = 0; r < o; r++)
|
|
126
|
-
|
|
127
|
-
n.setAttribute("position", new c.BufferAttribute(new Float32Array(d), 3)), n.setAttribute("uv", new c.BufferAttribute(new Float32Array(a), 2)), n.setIndex(new c.BufferAttribute(new Uint32Array(
|
|
128
|
-
const
|
|
146
|
+
m.push(r, r + 1, o * 2 - r, r, o * 2 - r, o * 2 + 1 - r);
|
|
147
|
+
n.setAttribute("position", new c.BufferAttribute(new Float32Array(d), 3)), n.setAttribute("uv", new c.BufferAttribute(new Float32Array(a), 2)), n.setIndex(new c.BufferAttribute(new Uint32Array(m), 1));
|
|
148
|
+
const u = new c.MeshBasicMaterial({
|
|
129
149
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
130
150
|
side: c.DoubleSide
|
|
131
|
-
}), p = new c.Mesh(n,
|
|
151
|
+
}), p = new c.Mesh(n, u);
|
|
132
152
|
p.renderOrder = 1, p.name = `ModelTVVideoPlugin-${i}-${performance.now()}`;
|
|
133
153
|
const I = [t[1], t[2], t[3], t[0]], y = f.create3DDomContainer(I);
|
|
134
154
|
if (y != null && y.container) {
|
|
@@ -150,17 +170,17 @@ const Me = (s, { videoElement: g }) => {
|
|
|
150
170
|
a.onreadystatechange = () => {
|
|
151
171
|
if (a.readyState === 4)
|
|
152
172
|
if (a.status === 200) {
|
|
153
|
-
const
|
|
154
|
-
n = n || document.createElement("video"), n.crossOrigin = "anonymous", n.muted = !0, n.loop = !0, n.playsInline = !0, n.src =
|
|
155
|
-
const
|
|
156
|
-
|
|
173
|
+
const m = window.URL || window.webkitURL;
|
|
174
|
+
n = n || document.createElement("video"), n.crossOrigin = "anonymous", n.muted = !0, n.loop = !0, n.playsInline = !0, n.src = m.createObjectURL(a.response);
|
|
175
|
+
const u = new c.VideoTexture(n);
|
|
176
|
+
u.minFilter = c.LinearFilter, u.magFilter = c.LinearFilter, u.format = c.RGBFormat, o(Object.assign(u, { videoSource: t }));
|
|
157
177
|
} else
|
|
158
178
|
d(new Error("Video download Error: " + a.status));
|
|
159
|
-
}, a.onerror = (
|
|
179
|
+
}, a.onerror = (m) => d(m), a.open("GET", t), a.responseType = "blob", a.send();
|
|
160
180
|
});
|
|
161
181
|
}, L = (t, i) => R(void 0, null, function* () {
|
|
162
182
|
const { video_src: n, video_poster_src: o, points: d } = t;
|
|
163
|
-
e.videoSource = n, e.rectPoints = S(d).map((a) => a.map(({ x:
|
|
183
|
+
e.videoSource = n, e.rectPoints = S(d).map((a) => a.map(({ x: m, y: u, z: p }) => new c.Vector3(m, u, p))), e.imageTexture = F(o), i && (e.videoElement = i), e.videoTexture = yield P(e.videoSource, e.videoElement), e.enabled = !!t.enable, e.enabled && h();
|
|
164
184
|
}), E = (t) => {
|
|
165
185
|
if (!e.enabled)
|
|
166
186
|
return;
|
|
@@ -174,20 +194,20 @@ const Me = (s, { videoElement: g }) => {
|
|
|
174
194
|
return;
|
|
175
195
|
const t = s.camera.position;
|
|
176
196
|
if (v.forEach((i, n) => {
|
|
177
|
-
const o = i.css3DObject.position.clone(), d = o.clone().sub(t).normalize(), a = new c.Raycaster(t, d),
|
|
178
|
-
|
|
197
|
+
const o = i.css3DObject.position.clone(), d = o.clone().sub(t).normalize(), a = new c.Raycaster(t, d), m = s.model.intersectRaycaster(a)[0], u = o.distanceTo(t), p = 0.01;
|
|
198
|
+
m && m.distance + p < u ? i.hide() : i.show();
|
|
179
199
|
}), !w()) {
|
|
180
200
|
const i = e.rectPoints.find((n) => {
|
|
181
201
|
const o = n[0].clone().add(n[1]).add(n[2]).add(n[3]).divideScalar(4);
|
|
182
202
|
return n.map((d) => d.clone().add(o).divideScalar(2)).filter((d) => {
|
|
183
|
-
const a = d.distanceTo(t),
|
|
184
|
-
return !(
|
|
203
|
+
const a = d.distanceTo(t), m = new c.Raycaster(t, d.clone().sub(t).normalize()), u = s.model.intersectRaycaster(m)[0], p = 0.01;
|
|
204
|
+
return !(u && u.distance + p < a);
|
|
185
205
|
}).length >= 2;
|
|
186
206
|
});
|
|
187
207
|
(!i || i.length === 0) && b(!0);
|
|
188
208
|
}
|
|
189
209
|
}, V = () => {
|
|
190
|
-
|
|
210
|
+
l(), e.videoTexture = void 0, s.off("modeChange", M), s.off("wantsTapGesture", E), s.off("panoArrived", A), s.off("renderFrame", () => {
|
|
191
211
|
e.videoMeshes.forEach((t) => {
|
|
192
212
|
t && (t.needsRender = !0);
|
|
193
213
|
});
|
|
@@ -197,9 +217,9 @@ const Me = (s, { videoElement: g }) => {
|
|
|
197
217
|
e.videoMeshes.forEach((t) => {
|
|
198
218
|
t && (t.needsRender = !0);
|
|
199
219
|
});
|
|
200
|
-
}), { enable: h, disable:
|
|
220
|
+
}), { enable: h, disable: l, load: L, dispose: V, state: e, css3DRenderPlugin: f };
|
|
201
221
|
};
|
|
202
222
|
export {
|
|
203
|
-
|
|
204
|
-
|
|
223
|
+
We as ModelTVVideoPlugin,
|
|
224
|
+
We as default
|
|
205
225
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModelTVVideoPlugin as r } from "./Plugin.js";
|
|
2
|
-
import { DIRECTION as
|
|
2
|
+
import { DIRECTION as Io } from "./typings.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import "./utils/parseData.js";
|
|
5
5
|
import "../CSS3DRenderPlugin/index.js";
|
|
@@ -26,24 +26,44 @@ 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 "../shared-utils/three/PointSelector/utils/html.js";
|
|
35
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
36
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
37
|
+
import "../Sculpt/Meshes/Line.js";
|
|
38
|
+
import "../Sculpt/typings/style.js";
|
|
39
|
+
import "../shared-utils/five/FiveLine.js";
|
|
29
40
|
import "@realsee/five/line";
|
|
30
41
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
31
42
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
32
43
|
import "../vendor/three/build/three.module.js";
|
|
44
|
+
import "../shared-utils/three/IObject3D.js";
|
|
45
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
46
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
47
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
48
|
+
import "../shared-utils/util.js";
|
|
33
49
|
import "../shared-utils/three/core/Sphere.js";
|
|
34
50
|
import "animejs";
|
|
35
51
|
import "../shared-utils/isNil.js";
|
|
36
52
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
53
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
54
|
+
import "../shared-utils/isTouchDevice.js";
|
|
55
|
+
import "../shared-utils/five/getPosition.js";
|
|
56
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
57
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
37
58
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
38
59
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
39
|
-
import "../shared-utils/util.js";
|
|
40
60
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
41
61
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
42
62
|
import "../shared-utils/url/absoluteUrl.js";
|
|
43
63
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
44
64
|
import "../PanoTagPlugin/Assets/Icon.js";
|
|
45
65
|
export {
|
|
46
|
-
|
|
66
|
+
Io as DIRECTION,
|
|
47
67
|
r as ModelTVVideoPlugin,
|
|
48
68
|
r as default
|
|
49
69
|
};
|
|
@@ -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
|
};
|