@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
|
@@ -10,28 +10,28 @@ var C = (o, e, t) => e in o ? $(o, e, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
L.call(e, t) && C(o, t, e[t]);
|
|
11
11
|
return o;
|
|
12
12
|
}, v = (o, e) => _(o, k(e));
|
|
13
|
-
var
|
|
14
|
-
var l = (o, e, t) => new Promise((
|
|
13
|
+
var n = (o, e, t) => (C(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
var l = (o, e, t) => new Promise((r, s) => {
|
|
15
15
|
var d = (c) => {
|
|
16
16
|
try {
|
|
17
17
|
f(t.next(c));
|
|
18
18
|
} catch (S) {
|
|
19
|
-
|
|
19
|
+
s(S);
|
|
20
20
|
}
|
|
21
21
|
}, u = (c) => {
|
|
22
22
|
try {
|
|
23
23
|
f(t.throw(c));
|
|
24
24
|
} catch (S) {
|
|
25
|
-
|
|
25
|
+
s(S);
|
|
26
26
|
}
|
|
27
|
-
}, f = (c) => c.done ?
|
|
27
|
+
}, f = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(d, u);
|
|
28
28
|
f((t = t.apply(o, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import { anyPositionToVector3 as q } from "../../../shared-utils/positionToVector3.js";
|
|
31
31
|
import B from "./CSS3DRenderer.js";
|
|
32
32
|
import { Subscribe as A } from "../../../shared-utils/Subscribe.js";
|
|
33
33
|
import { CSS3DObjectPlus as W } from "./CSS3DObject.js";
|
|
34
|
-
import { MinRatio as
|
|
34
|
+
import { MinRatio as et } from "./CSS3DObject.js";
|
|
35
35
|
import { CSS3DFrontScene as H, CSS3DBehindScene as T } from "./CSS3DScene.js";
|
|
36
36
|
import { CSS3DFrontGroup as U, CSS3DBehindGroup as z } from "./CSS3DGroup.js";
|
|
37
37
|
import { CSS3DObject as j } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -52,19 +52,39 @@ import "../../../shared-utils/five/transformPosition.js";
|
|
|
52
52
|
import "../../../shared-utils/three/temp.js";
|
|
53
53
|
import "../../../shared-utils/dom/resizeObserver.js";
|
|
54
54
|
import "hammerjs";
|
|
55
|
+
import "../../../shared-utils/three/PointSelector/index.js";
|
|
56
|
+
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
57
|
+
import "../../../shared-utils/three/Magnifier.js";
|
|
58
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
59
|
+
import "../../../shared-utils/three/Assets/index.js";
|
|
60
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
61
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
62
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
63
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
64
|
+
import "../../../Sculpt/typings/style.js";
|
|
65
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
55
66
|
import "@realsee/five/line";
|
|
56
67
|
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
57
68
|
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
58
69
|
import "../../../vendor/three/build/three.module.js";
|
|
70
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
71
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
72
|
+
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
73
|
+
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
74
|
+
import "../../../shared-utils/util.js";
|
|
59
75
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
60
76
|
import "animejs";
|
|
61
77
|
import "../../../shared-utils/isNil.js";
|
|
62
78
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
79
|
+
import "./CSS3DSprite.js";
|
|
80
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
81
|
+
import "../../../shared-utils/five/getPosition.js";
|
|
82
|
+
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
83
|
+
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
63
84
|
import "../getAllCSS3DObject.js";
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}, n = {
|
|
85
|
+
const J = 3, G = "CSS3DRenderer", m = `${G}@${J}`, p = () => {
|
|
86
|
+
console.error(`${m} is disposed`);
|
|
87
|
+
}, i = {
|
|
68
88
|
css3DObjects: [],
|
|
69
89
|
frontModeStore: {
|
|
70
90
|
css3DRenderer: new B()
|
|
@@ -74,25 +94,25 @@ const J = 3, G = "CSS3DRenderer", b = `${G}@${J}`, p = () => {
|
|
|
74
94
|
}
|
|
75
95
|
};
|
|
76
96
|
function w(o) {
|
|
77
|
-
return
|
|
97
|
+
return i.css3DObjects.find((e) => e.id === o);
|
|
78
98
|
}
|
|
79
99
|
function K(o) {
|
|
80
|
-
|
|
100
|
+
i.frontModeStore.css3DRenderer.setWrapper(o);
|
|
81
101
|
}
|
|
82
102
|
function Q(o) {
|
|
83
|
-
|
|
103
|
+
i.behindModeStore.css3DRenderer.setWrapper(o);
|
|
84
104
|
}
|
|
85
105
|
class y {
|
|
86
106
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
87
107
|
constructor(e) {
|
|
88
|
-
|
|
89
|
-
|
|
108
|
+
n(this, "hooks", new A());
|
|
109
|
+
n(this, "state", {
|
|
90
110
|
enabled: !0,
|
|
91
111
|
visible: !0,
|
|
92
112
|
disposed: !1
|
|
93
113
|
});
|
|
94
|
-
|
|
95
|
-
|
|
114
|
+
n(this, "_scene");
|
|
115
|
+
n(this, "store", {
|
|
96
116
|
frontModeGroup: new U()
|
|
97
117
|
});
|
|
98
118
|
/**
|
|
@@ -129,10 +149,10 @@ class y {
|
|
|
129
149
|
* } | void
|
|
130
150
|
* ```
|
|
131
151
|
*/
|
|
132
|
-
|
|
152
|
+
n(this, "create3DElement", (e, t, r) => {
|
|
133
153
|
if (this.state.disposed)
|
|
134
154
|
return p();
|
|
135
|
-
const
|
|
155
|
+
const s = (() => {
|
|
136
156
|
const h = {
|
|
137
157
|
ratio: 216e-5,
|
|
138
158
|
devicePixelRatio: 1,
|
|
@@ -142,22 +162,22 @@ class y {
|
|
|
142
162
|
pointerEvents: "none",
|
|
143
163
|
wrapperStyle: {}
|
|
144
164
|
};
|
|
145
|
-
return Object.assign(h,
|
|
165
|
+
return Object.assign(h, r);
|
|
146
166
|
})(), d = t.map(q);
|
|
147
167
|
if ((d == null ? void 0 : d.length) < 4)
|
|
148
|
-
return console.error(`${
|
|
149
|
-
const { ratio: u, devicePixelRatio: f, mode: c, autoRender: S, container: O, pointerEvents: F, wrapperStyle: I } =
|
|
150
|
-
let
|
|
168
|
+
return console.error(`${m}: requires 4 point but params may have fewer`);
|
|
169
|
+
const { ratio: u, devicePixelRatio: f, mode: c, autoRender: S, container: O, pointerEvents: F, wrapperStyle: I } = s;
|
|
170
|
+
let b = !1;
|
|
151
171
|
const a = this.createObject(d, { ratio: u, dpr: f, container: O, mode: c, pointerEvents: F, wrapperStyle: I });
|
|
152
|
-
|
|
172
|
+
i.css3DObjects.push(a), s.scene && this.setScene(s.scene);
|
|
153
173
|
const N = () => {
|
|
154
|
-
if (
|
|
174
|
+
if (b)
|
|
155
175
|
return;
|
|
156
176
|
const h = a.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
|
|
157
177
|
h && h.add(a);
|
|
158
178
|
}, E = () => {
|
|
159
|
-
|
|
160
|
-
}, D = (h) => this.setVisibleById(a.id, h), M = (h) => this.setEnabledById(a.id, h), x = () => (
|
|
179
|
+
b || (N(), this.render(e), this.hooks.emit("render"));
|
|
180
|
+
}, D = (h) => this.setVisibleById(a.id, h), M = (h) => this.setEnabledById(a.id, h), x = () => (b = !0, a.removeFromParent(), !0), V = c === "front" ? i.frontModeStore.css3DRenderer : i.behindModeStore.css3DRenderer;
|
|
161
181
|
return S && E(), {
|
|
162
182
|
id: a.uuid,
|
|
163
183
|
container: O,
|
|
@@ -173,20 +193,20 @@ class y {
|
|
|
173
193
|
appendToElement: (h) => V.setWrapper(h)
|
|
174
194
|
};
|
|
175
195
|
});
|
|
176
|
-
|
|
177
|
-
var
|
|
178
|
-
(
|
|
196
|
+
n(this, "setVisibleById", (e, t) => {
|
|
197
|
+
var r;
|
|
198
|
+
(r = w(e)) == null || r.setVisible(t);
|
|
179
199
|
});
|
|
180
|
-
|
|
181
|
-
const
|
|
182
|
-
if (!
|
|
200
|
+
n(this, "setEnabledById", (e, t) => {
|
|
201
|
+
const r = w(e);
|
|
202
|
+
if (!r)
|
|
183
203
|
return;
|
|
184
|
-
const
|
|
185
|
-
|
|
204
|
+
const s = r.mode === "front" ? this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }) : this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 });
|
|
205
|
+
s && (t ? s.add(r) : s.remove(r));
|
|
186
206
|
});
|
|
187
|
-
|
|
188
|
-
const
|
|
189
|
-
return
|
|
207
|
+
n(this, "createObject", (e, t) => {
|
|
208
|
+
const r = new W(v(g({ cornerPoints: e }, t), { style: t.wrapperStyle }));
|
|
209
|
+
return r.element.classList.add(`${G}__container`), r.element.id = `${G}__container--${r.uuid}`, r;
|
|
190
210
|
});
|
|
191
211
|
e && this.setScene(e);
|
|
192
212
|
}
|
|
@@ -194,16 +214,16 @@ class y {
|
|
|
194
214
|
return this._scene || console.error("scene doesn't exist!, please call setScene(scene) first"), this._scene;
|
|
195
215
|
}
|
|
196
216
|
static get frontModeCSS3DRenderer() {
|
|
197
|
-
return
|
|
217
|
+
return i.frontModeStore.css3DRenderer;
|
|
198
218
|
}
|
|
199
219
|
static get behindModeCSS3DRenderer() {
|
|
200
|
-
return
|
|
220
|
+
return i.behindModeStore.css3DRenderer;
|
|
201
221
|
}
|
|
202
222
|
get frontModeCSS3DRenderer() {
|
|
203
|
-
return
|
|
223
|
+
return i.frontModeStore.css3DRenderer;
|
|
204
224
|
}
|
|
205
225
|
get behindModeCSS3DRenderer() {
|
|
206
|
-
return
|
|
226
|
+
return i.behindModeStore.css3DRenderer;
|
|
207
227
|
}
|
|
208
228
|
setScene(e) {
|
|
209
229
|
this._scene = e;
|
|
@@ -214,8 +234,8 @@ class y {
|
|
|
214
234
|
setState(e, t = { userAction: !0 }) {
|
|
215
235
|
if (this.state.disposed)
|
|
216
236
|
return p();
|
|
217
|
-
const
|
|
218
|
-
this.state = Object.assign(this.state, e),
|
|
237
|
+
const r = g({}, this.state);
|
|
238
|
+
this.state = Object.assign(this.state, e), r.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), r.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), r.disposed !== this.state.disposed && this.handleDispose(), this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: t.userAction });
|
|
219
239
|
}
|
|
220
240
|
dispose() {
|
|
221
241
|
this.setState({ disposed: !0 }), this.hooks.emit("dispose");
|
|
@@ -245,58 +265,58 @@ class y {
|
|
|
245
265
|
this.setState({ enabled: !1 }, { userAction: e }), this.hooks.emit("disable", { userAction: e });
|
|
246
266
|
}
|
|
247
267
|
getFrontCSS3DScene({ createSceneIfNotExists: e = !1 } = {}) {
|
|
248
|
-
var
|
|
249
|
-
const t = (
|
|
268
|
+
var r;
|
|
269
|
+
const t = (r = i.frontModeStore) == null ? void 0 : r.css3DScene;
|
|
250
270
|
if (t)
|
|
251
271
|
return t;
|
|
252
272
|
if (e) {
|
|
253
|
-
const
|
|
254
|
-
|
|
273
|
+
const s = new H();
|
|
274
|
+
i.frontModeStore.css3DScene = s;
|
|
255
275
|
}
|
|
256
|
-
return
|
|
276
|
+
return i.frontModeStore.css3DScene;
|
|
257
277
|
}
|
|
258
278
|
getBehindCSS3DScene({ createSceneIfNotExists: e = !1 } = {}) {
|
|
259
|
-
var
|
|
260
|
-
const t = (
|
|
279
|
+
var r, s;
|
|
280
|
+
const t = (r = i.behindModeStore) == null ? void 0 : r.css3DScene;
|
|
261
281
|
if (t)
|
|
262
282
|
return t;
|
|
263
283
|
if (e) {
|
|
264
|
-
const d = (
|
|
284
|
+
const d = (s = i.behindModeStore.scene) != null ? s : this.scene;
|
|
265
285
|
if (!d) {
|
|
266
|
-
console.error(`${
|
|
286
|
+
console.error(`${m}: scene is required when mode is behind`);
|
|
267
287
|
return;
|
|
268
288
|
}
|
|
269
289
|
const u = new T(d);
|
|
270
|
-
|
|
290
|
+
i.behindModeStore.css3DScene = u, i.behindModeStore.scene = d;
|
|
271
291
|
}
|
|
272
|
-
return
|
|
292
|
+
return i.behindModeStore.css3DScene;
|
|
273
293
|
}
|
|
274
294
|
getFrontCSS3DObjectGroup({ addGroupIfNotExists: e = !0 } = {}) {
|
|
275
295
|
const t = this.getFrontCSS3DScene({ createSceneIfNotExists: e });
|
|
276
296
|
return e && t && (t.getObjectById(this.store.frontModeGroup.id) || t.add(this.store.frontModeGroup)), this.store.frontModeGroup;
|
|
277
297
|
}
|
|
278
298
|
getBehindCSS3DObjectGroup({ addGroupIfNotExists: e = !0 } = {}) {
|
|
279
|
-
var
|
|
299
|
+
var r;
|
|
280
300
|
const t = this.getBehindCSS3DScene({ createSceneIfNotExists: e });
|
|
281
301
|
if (e && t && this.scene) {
|
|
282
|
-
const
|
|
283
|
-
this.store.behindModeGroup =
|
|
302
|
+
const s = (r = this.store.behindModeGroup) != null ? r : new z(this.scene);
|
|
303
|
+
this.store.behindModeGroup = s, t.getObjectById(s.id) || t.add(s);
|
|
284
304
|
}
|
|
285
305
|
return this.store.behindModeGroup;
|
|
286
306
|
}
|
|
287
307
|
render(e) {
|
|
288
|
-
var t,
|
|
308
|
+
var t, r;
|
|
289
309
|
if (this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }).CSS3DObjectLength > 0) {
|
|
290
|
-
const
|
|
291
|
-
if (!
|
|
292
|
-
return console.error(`${
|
|
293
|
-
|
|
310
|
+
const s = this.getFrontCSS3DScene({ createSceneIfNotExists: !0 });
|
|
311
|
+
if (!s)
|
|
312
|
+
return console.error(`${m}: css3DScene is required when mode is front`);
|
|
313
|
+
i.frontModeStore.css3DRenderer.renderEveryFrame(s, e);
|
|
294
314
|
}
|
|
295
|
-
if (((
|
|
296
|
-
const
|
|
297
|
-
if (!
|
|
298
|
-
return console.error(`${
|
|
299
|
-
|
|
315
|
+
if (((r = (t = this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 })) == null ? void 0 : t.CSS3DObjectLength) != null ? r : 0) > 0) {
|
|
316
|
+
const s = this.getBehindCSS3DScene({ createSceneIfNotExists: !0 });
|
|
317
|
+
if (!s)
|
|
318
|
+
return console.error(`${m}: css3DScene is required when mode is behind`);
|
|
319
|
+
i.behindModeStore.css3DRenderer.renderEveryFrame(s, e);
|
|
300
320
|
}
|
|
301
321
|
}
|
|
302
322
|
handleShow() {
|
|
@@ -316,21 +336,21 @@ class y {
|
|
|
316
336
|
(e = this.getFrontCSS3DScene()) == null || e.add(this.store.frontModeGroup), this.store.behindModeGroup && ((t = this.getBehindCSS3DScene()) == null || t.add(this.store.behindModeGroup));
|
|
317
337
|
}
|
|
318
338
|
handleDisable() {
|
|
319
|
-
var e, t,
|
|
320
|
-
this.store.frontModeGroup.children.forEach((
|
|
321
|
-
|
|
322
|
-
}), (e = this.store.behindModeGroup) == null || e.children.forEach((
|
|
323
|
-
|
|
324
|
-
}), (t = this.getFrontCSS3DScene()) == null || t.remove(this.store.frontModeGroup), this.store.behindModeGroup && ((
|
|
339
|
+
var e, t, r;
|
|
340
|
+
this.store.frontModeGroup.children.forEach((s) => {
|
|
341
|
+
s instanceof j && s.element instanceof Element && s.element.parentNode !== null && s.element.remove();
|
|
342
|
+
}), (e = this.store.behindModeGroup) == null || e.children.forEach((s) => {
|
|
343
|
+
s instanceof j && s.element instanceof Element && s.element.parentNode !== null && s.element.remove();
|
|
344
|
+
}), (t = this.getFrontCSS3DScene()) == null || t.remove(this.store.frontModeGroup), this.store.behindModeGroup && ((r = this.getBehindCSS3DScene()) == null || r.remove(this.store.behindModeGroup));
|
|
325
345
|
}
|
|
326
346
|
handleDispose() {
|
|
327
347
|
this.handleDisable();
|
|
328
348
|
}
|
|
329
349
|
}
|
|
330
|
-
|
|
350
|
+
n(y, "setFrontModeContainer", K), n(y, "setBehindModeContainer", Q);
|
|
331
351
|
export {
|
|
332
352
|
y as CSS3DRender,
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
353
|
+
et as MinRatio,
|
|
354
|
+
m as PLUGIN,
|
|
355
|
+
i as globalStore
|
|
336
356
|
};
|
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var u = Object.getOwnPropertySymbols;
|
|
3
3
|
var v = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var n = (a, s, e) => s in a ? c(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, f = (a, s) => {
|
|
5
5
|
for (var e in s || (s = {}))
|
|
6
|
-
v.call(s, e) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
S.call(s, e) &&
|
|
6
|
+
v.call(s, e) && n(a, e, s[e]);
|
|
7
|
+
if (u)
|
|
8
|
+
for (var e of u(s))
|
|
9
|
+
S.call(s, e) && n(a, e, s[e]);
|
|
10
10
|
return a;
|
|
11
11
|
};
|
|
12
|
-
var d = (a, s, e) => (
|
|
13
|
-
var
|
|
14
|
-
var r = (
|
|
12
|
+
var d = (a, s, e) => (n(a, typeof s != "symbol" ? s + "" : s, e), e);
|
|
13
|
+
var m = (a, s, e) => new Promise((t, i) => {
|
|
14
|
+
var r = (o) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
i(
|
|
16
|
+
l(e.next(o));
|
|
17
|
+
} catch (p) {
|
|
18
|
+
i(p);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, b = (o) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
i(
|
|
22
|
+
l(e.throw(o));
|
|
23
|
+
} catch (p) {
|
|
24
|
+
i(p);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, l = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(r, b);
|
|
27
|
+
l((e = e.apply(a, s)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as y } from "../base/BasePlugin.js";
|
|
30
30
|
import "../shared-utils/tag.js";
|
|
31
31
|
import "three";
|
|
32
32
|
import "hammerjs";
|
|
33
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
33
34
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
34
35
|
import "@realsee/five/line";
|
|
35
36
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
@@ -49,11 +50,40 @@ import "../shared-utils/positionToVector3.js";
|
|
|
49
50
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
50
51
|
import "../shared-utils/three/temp.js";
|
|
51
52
|
import "../shared-utils/dom/resizeObserver.js";
|
|
53
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
54
|
+
import "../shared-utils/three/Magnifier.js";
|
|
55
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
56
|
+
import "../shared-utils/three/Assets/index.js";
|
|
57
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
58
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
59
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
60
|
+
import "../shared-utils/three/centerPoint.js";
|
|
61
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
62
|
+
import "../shared-utils/isNil.js";
|
|
63
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
64
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
65
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
66
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
67
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
68
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
69
|
+
import "../Sculpt/Meshes/Line.js";
|
|
70
|
+
import "../Sculpt/typings/style.js";
|
|
71
|
+
import "../shared-utils/five/FiveLine.js";
|
|
72
|
+
import "../shared-utils/three/IObject3D.js";
|
|
73
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
74
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
75
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
76
|
+
import "../shared-utils/util.js";
|
|
77
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
78
|
+
import "../shared-utils/isTouchDevice.js";
|
|
79
|
+
import "../shared-utils/five/getPosition.js";
|
|
80
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
81
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
52
82
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
53
83
|
import "../vendor/three/build/three.module.js";
|
|
54
84
|
import "../shared-utils/isTruelyObject.js";
|
|
55
|
-
const
|
|
56
|
-
class
|
|
85
|
+
const g = "CruisePlugin", h = `${g}`, Ie = (a) => `${h}--${a}`;
|
|
86
|
+
class we extends y {
|
|
57
87
|
constructor(e, t) {
|
|
58
88
|
super(e, t);
|
|
59
89
|
d(this, "state", {
|
|
@@ -73,15 +103,15 @@ class X extends y {
|
|
|
73
103
|
});
|
|
74
104
|
d(this, "GuideLine");
|
|
75
105
|
d(this, "disposedErrorLog", () => {
|
|
76
|
-
console.error(`${
|
|
106
|
+
console.error(`${h} is disposed`);
|
|
77
107
|
});
|
|
78
108
|
d(this, "disableWarnLog", () => {
|
|
79
|
-
console.warn(`${
|
|
109
|
+
console.warn(`${h} is disabled`);
|
|
80
110
|
});
|
|
81
111
|
d(this, "disableErrorLog", () => {
|
|
82
|
-
console.error(`${
|
|
112
|
+
console.error(`${h} is disabled`);
|
|
83
113
|
});
|
|
84
|
-
this.config = t, Object.assign(window, { [`__${
|
|
114
|
+
this.config = t, Object.assign(window, { [`__${g}_DEBUG__`]: this });
|
|
85
115
|
}
|
|
86
116
|
/**
|
|
87
117
|
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
@@ -99,7 +129,7 @@ class X extends y {
|
|
|
99
129
|
* @description Show guide line
|
|
100
130
|
*/
|
|
101
131
|
show(e) {
|
|
102
|
-
return
|
|
132
|
+
return m(this, null, function* () {
|
|
103
133
|
this.setState({ visible: !0 }, e);
|
|
104
134
|
});
|
|
105
135
|
}
|
|
@@ -107,7 +137,7 @@ class X extends y {
|
|
|
107
137
|
* @description Hide guide line
|
|
108
138
|
*/
|
|
109
139
|
hide(e) {
|
|
110
|
-
return
|
|
140
|
+
return m(this, null, function* () {
|
|
111
141
|
this.setState({ visible: !1 }, e);
|
|
112
142
|
});
|
|
113
143
|
}
|
|
@@ -138,7 +168,7 @@ class X extends y {
|
|
|
138
168
|
return this.disposedErrorLog();
|
|
139
169
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
140
170
|
return this.disableErrorLog();
|
|
141
|
-
const i =
|
|
171
|
+
const i = f({}, this.state);
|
|
142
172
|
this.state = C({}, this.state, e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed), L(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (r = t == null ? void 0 : t.userAction) != null ? r : !0 });
|
|
143
173
|
}
|
|
144
174
|
/**
|
|
@@ -228,6 +258,6 @@ class X extends y {
|
|
|
228
258
|
}
|
|
229
259
|
}
|
|
230
260
|
export {
|
|
231
|
-
|
|
232
|
-
|
|
261
|
+
we as default,
|
|
262
|
+
Ie as pluginFlag
|
|
233
263
|
};
|
|
@@ -32,6 +32,7 @@ import { objectAssignDeepExports as g } from "../vendor/object-assign-deep/objec
|
|
|
32
32
|
import * as L from "three";
|
|
33
33
|
import "../shared-utils/tag.js";
|
|
34
34
|
import "hammerjs";
|
|
35
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
35
36
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
36
37
|
import "@realsee/five/line";
|
|
37
38
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
@@ -55,12 +56,42 @@ import "../shared-utils/isTruelyObject.js";
|
|
|
55
56
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
56
57
|
import "../shared-utils/three/temp.js";
|
|
57
58
|
import "../shared-utils/dom/resizeObserver.js";
|
|
59
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
60
|
+
import "../shared-utils/three/Magnifier.js";
|
|
61
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
62
|
+
import "../shared-utils/three/Assets/index.js";
|
|
63
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
64
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
65
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
66
|
+
import "../shared-utils/three/centerPoint.js";
|
|
67
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
68
|
+
import "../shared-utils/isNil.js";
|
|
69
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
70
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
71
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
72
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
73
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
74
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
75
|
+
import "../Sculpt/Meshes/Line.js";
|
|
76
|
+
import "../Sculpt/typings/style.js";
|
|
77
|
+
import "../shared-utils/five/FiveLine.js";
|
|
78
|
+
import "../shared-utils/three/IObject3D.js";
|
|
79
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
80
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
81
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
82
|
+
import "../shared-utils/util.js";
|
|
83
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
84
|
+
import "../shared-utils/isTouchDevice.js";
|
|
85
|
+
import "../shared-utils/five/getPosition.js";
|
|
86
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
87
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
58
88
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
59
89
|
import "../vendor/three/build/three.module.js";
|
|
60
90
|
import "../shared-utils/vectorToCoordinate.js";
|
|
61
91
|
import "../shared-utils/formatRad.js";
|
|
62
92
|
import "../GuideLinePlugin/Controller.js";
|
|
63
93
|
import "../base/BasePluginWithData.js";
|
|
94
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
64
95
|
import "../GuideLinePlugin/GuideLineItem/index.js";
|
|
65
96
|
import "../GuideLinePlugin/GuideLineModeItem/index.js";
|
|
66
97
|
import "../shared-utils/log.js";
|
|
@@ -75,8 +106,6 @@ import "../vendor/gl-vec2/dot.js";
|
|
|
75
106
|
import "../shared-utils/math/intersecting.js";
|
|
76
107
|
import "../shared-utils/five/mode.js";
|
|
77
108
|
import "../shared-utils/three/blink.js";
|
|
78
|
-
import "../shared-utils/util.js";
|
|
79
|
-
import "../shared-utils/isNil.js";
|
|
80
109
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
81
110
|
import "../shared-utils/animationFrame/index.js";
|
|
82
111
|
import "../shared-utils/three/loadTexture.js";
|
|
@@ -161,7 +190,6 @@ import "../shared-utils/three/GLTFLoader.js";
|
|
|
161
190
|
import "@realsee/five/gltf-loader";
|
|
162
191
|
import "../PanoTagPlugin/utils/planeNormal.js";
|
|
163
192
|
import "../PanoTagPlugin/utils/model/mediaPlane.js";
|
|
164
|
-
import "../shared-utils/three/centerPoint.js";
|
|
165
193
|
import "../shared-utils/three/Quadrangle.js";
|
|
166
194
|
import "../shared-utils/math/pointsIsRectangle.js";
|
|
167
195
|
import "../shared-utils/three/loadVideoTexture.js";
|
|
@@ -189,22 +217,13 @@ import "../vendor/svelte/store/index.js";
|
|
|
189
217
|
import "../CSS3DRenderPlugin/index.js";
|
|
190
218
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
191
219
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
192
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
193
|
-
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
194
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
195
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
196
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
197
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
198
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
199
220
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
200
221
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
201
222
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
202
223
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
203
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
204
224
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
205
225
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
206
226
|
import "../shared-utils/three/core/Raycaster.js";
|
|
207
|
-
import "../shared-utils/isTouchDevice.js";
|
|
208
227
|
import "../PanoTagPlugin/utils/DebugUtil.js";
|
|
209
228
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
210
229
|
import "../PanoTagPlugin/controller/Tag/PointTag.js";
|
|
@@ -224,7 +243,7 @@ import "./utils/coordinatesToVector.js";
|
|
|
224
243
|
import "./utils/safeCall.js";
|
|
225
244
|
import "./utils/sleep.js";
|
|
226
245
|
import "../shared-utils/five/fiveLoaded.js";
|
|
227
|
-
class
|
|
246
|
+
class Bo extends z {
|
|
228
247
|
constructor(t, r) {
|
|
229
248
|
var h;
|
|
230
249
|
super(t, r);
|
|
@@ -332,5 +351,5 @@ class yo extends z {
|
|
|
332
351
|
}
|
|
333
352
|
}
|
|
334
353
|
export {
|
|
335
|
-
|
|
354
|
+
Bo as default
|
|
336
355
|
};
|