@realsee/dnalogel 3.47.7 → 3.47.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/PanoTagPlugin/controller/Tag/PointTag.d.ts +0 -1
- package/dist/Sculpt/Meshes/Rectangle.d.ts +0 -1
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +9 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +3 -3
- package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -3
- package/dist/Sculpt/Objects/Polyline/index.d.ts +3 -3
- package/dist/Sculpt/Objects/Rectangle/index.d.ts +6 -2
- package/dist/Sculpt/typings/style.d.ts +8 -1
- package/dist/index.cjs.js +32 -32
- package/dist/index.js +1455 -1441
- package/dist/index.umd.js +33 -33
- package/dist/shared-utils/tag.d.ts +5 -0
- package/libs/AreaMakerPlugin/Controller.js +1 -1
- package/libs/AreaMakerPlugin/index.js +1 -1
- package/libs/AreaMakerPlugin/utils/Item.js +1 -1
- package/libs/CSS3DRenderPlugin/Controller.js +1 -1
- package/libs/CSS3DRenderPlugin/index.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +1 -1
- package/libs/CruisePlugin/BaseController.js +1 -1
- package/libs/CruisePlugin/Move.js +1 -1
- package/libs/CruisePlugin/Work.js +1 -1
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/CurrentPanoImagePlugin/Controller.js +1 -1
- package/libs/CurrentPanoImagePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/ModelMakerPlugin/Controller.js +1 -1
- package/libs/ModelMakerPlugin/index.js +1 -1
- package/libs/ModelMakerPlugin/item/baseItem.js +1 -1
- package/libs/ModelMakerPlugin/item/boxItem.js +1 -1
- package/libs/ModelMakerPlugin/item/polygonItem.js +1 -1
- package/libs/ModelMakerPlugin/item/prismItem.js +1 -1
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
- package/libs/ModelTVVideoPlugin/index.js +1 -1
- package/libs/Object3DHelperPlugin/Controller.js +1 -1
- package/libs/Object3DHelperPlugin/index.js +1 -1
- package/libs/PanoCompassPlugin/Controller.js +1 -1
- package/libs/PanoCompassPlugin/index.js +1 -1
- package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
- package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
- package/libs/PanoDoorLabelPlugin/index.js +1 -1
- package/libs/PanoMeasurePlugin/Components/Controller0.js +1 -1
- package/libs/PanoMeasurePlugin/Components/Controller1.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
- package/libs/PanoMeasurePlugin/Model/area.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -1
- package/libs/PanoMeasurePlugin/index.js +1 -1
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +1 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
- package/libs/PanoSpatialTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
- package/libs/PanoTagPlugin/Components/TagContainer.js +1 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +1 -1
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +1 -1
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +1 -1
- package/libs/PanoTagPlugin/controller/Tag/PointTag.d.ts +0 -1
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +1 -4
- package/libs/PanoTagPlugin/controller/TagRender.js +55 -55
- package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +1 -1
- package/libs/PanoVideoPlugin/Controller.js +1 -1
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +1 -1
- package/libs/PipelinePlugin/Controller.js +1 -1
- package/libs/PipelinePlugin/index.js +1 -1
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +1 -1
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +1 -1
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -1
- package/libs/Sculpt/Meshes/Box.js +10 -10
- package/libs/Sculpt/Meshes/Line.js +18 -15
- package/libs/Sculpt/Meshes/Rectangle.d.ts +0 -1
- package/libs/Sculpt/Meshes/Rectangle.js +14 -17
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +9 -0
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +29 -19
- package/libs/Sculpt/Objects/Line/index.d.ts +3 -3
- package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -3
- package/libs/Sculpt/Objects/Polyline/index.d.ts +3 -3
- package/libs/Sculpt/Objects/Rectangle/index.d.ts +6 -2
- package/libs/Sculpt/Objects/Rectangle/index.js +77 -67
- package/libs/Sculpt/typings/style.d.ts +8 -1
- package/libs/Sculpt/utils/Meshes/getLengthHTML.js +2 -2
- package/libs/Sculpt/utils/three/RectangleGeometry.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
- package/libs/index.js +1 -1
- package/libs/shared-utils/five/vector3ToScreen.js +5 -7
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +5 -0
- package/libs/shared-utils/tag.js +31 -26
- package/package.json +1 -1
- /package/dist/shared-utils/three/{raycaster.d.ts → temp.d.ts} +0 -0
- /package/libs/shared-utils/three/{raycaster.d.ts → temp.d.ts} +0 -0
- /package/libs/shared-utils/three/{raycaster.js → temp.js} +0 -0
|
@@ -31,11 +31,11 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
31
31
|
import "../shared-utils/tag.js";
|
|
32
32
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
33
33
|
import "../shared-utils/five/getFiveModel.js";
|
|
34
|
-
import "../shared-utils/three/raycaster.js";
|
|
35
34
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
36
35
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
37
36
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
38
37
|
import "../shared-utils/five/transformPosition.js";
|
|
38
|
+
import "../shared-utils/three/temp.js";
|
|
39
39
|
import "../Sculpt/utils/Modules/Global.js";
|
|
40
40
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
41
41
|
import "../Object3DHelperPlugin/Controller.js";
|
|
@@ -28,11 +28,11 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
28
28
|
import "../shared-utils/tag.js";
|
|
29
29
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
30
30
|
import "../shared-utils/five/getFiveModel.js";
|
|
31
|
-
import "../shared-utils/three/raycaster.js";
|
|
32
31
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
33
32
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
34
33
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
35
34
|
import "../shared-utils/five/transformPosition.js";
|
|
35
|
+
import "../shared-utils/three/temp.js";
|
|
36
36
|
import "../Sculpt/utils/Modules/Global.js";
|
|
37
37
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
38
38
|
import "../Object3DHelperPlugin/Controller.js";
|
|
@@ -25,12 +25,12 @@ import "../../../shared-utils/isNil.js";
|
|
|
25
25
|
import "../../../shared-utils/tag.js";
|
|
26
26
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
27
27
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
28
|
-
import "../../../shared-utils/three/raycaster.js";
|
|
29
28
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
30
29
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
31
30
|
import "../../../shared-utils/Subscribe.js";
|
|
32
31
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
33
32
|
import "../../../shared-utils/five/transformPosition.js";
|
|
33
|
+
import "../../../shared-utils/three/temp.js";
|
|
34
34
|
import "../../../Sculpt/utils/Modules/Global.js";
|
|
35
35
|
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
36
36
|
import "../../../Object3DHelperPlugin/Controller.js";
|
|
@@ -19,12 +19,12 @@ import "../../../shared-utils/three/centerPoint.js";
|
|
|
19
19
|
import "../../../shared-utils/tag.js";
|
|
20
20
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
21
21
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
22
|
-
import "../../../shared-utils/three/raycaster.js";
|
|
23
22
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
24
23
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
25
24
|
import "../../../shared-utils/Subscribe.js";
|
|
26
25
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
27
26
|
import "../../../shared-utils/five/transformPosition.js";
|
|
27
|
+
import "../../../shared-utils/three/temp.js";
|
|
28
28
|
import "../../../Sculpt/utils/Modules/Global.js";
|
|
29
29
|
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
30
30
|
import "../../../Object3DHelperPlugin/Controller.js";
|
|
@@ -79,12 +79,12 @@ import "../../../shared-utils/three/centerPoint.js";
|
|
|
79
79
|
import "../../../shared-utils/tag.js";
|
|
80
80
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
81
81
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
82
|
-
import "../../../shared-utils/three/raycaster.js";
|
|
83
82
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
84
83
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
85
84
|
import "../../../shared-utils/Subscribe.js";
|
|
86
85
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
87
86
|
import "../../../shared-utils/five/transformPosition.js";
|
|
87
|
+
import "../../../shared-utils/three/temp.js";
|
|
88
88
|
import "../../../Sculpt/utils/Modules/Global.js";
|
|
89
89
|
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
90
90
|
import "../../../Object3DHelperPlugin/Controller.js";
|
|
@@ -72,12 +72,12 @@ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
72
72
|
import "../../shared-utils/tag.js";
|
|
73
73
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
74
74
|
import "../../shared-utils/five/getFiveModel.js";
|
|
75
|
-
import "../../shared-utils/three/raycaster.js";
|
|
76
75
|
import "../../shared-utils/Utils/FiveUtil.js";
|
|
77
76
|
import "../../shared-utils/Utils/BaseUtil.js";
|
|
78
77
|
import "../../shared-utils/Subscribe.js";
|
|
79
78
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
80
79
|
import "../../shared-utils/five/transformPosition.js";
|
|
80
|
+
import "../../shared-utils/three/temp.js";
|
|
81
81
|
import "../../Sculpt/utils/Modules/Global.js";
|
|
82
82
|
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
83
83
|
import "../../Object3DHelperPlugin/Controller.js";
|
|
@@ -74,12 +74,12 @@ import "../../shared-utils/three/centerPoint.js";
|
|
|
74
74
|
import "../../shared-utils/tag.js";
|
|
75
75
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
76
76
|
import "../../shared-utils/five/getFiveModel.js";
|
|
77
|
-
import "../../shared-utils/three/raycaster.js";
|
|
78
77
|
import "../../shared-utils/Utils/FiveUtil.js";
|
|
79
78
|
import "../../shared-utils/Utils/BaseUtil.js";
|
|
80
79
|
import "../../shared-utils/Subscribe.js";
|
|
81
80
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
82
81
|
import "../../shared-utils/five/transformPosition.js";
|
|
82
|
+
import "../../shared-utils/three/temp.js";
|
|
83
83
|
import "../../Sculpt/utils/Modules/Global.js";
|
|
84
84
|
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
85
85
|
import "../../Object3DHelperPlugin/Controller.js";
|
|
@@ -64,7 +64,7 @@ import { safeObj as z } from "../../../shared-utils/safeObj.js";
|
|
|
64
64
|
import { toArray as ae } from "../../../shared-utils/util.js";
|
|
65
65
|
import { Cache as fe } from "../../utils/Cache.js";
|
|
66
66
|
import { sleep as de } from "../../../CruisePlugin/utils/sleep.js";
|
|
67
|
-
import { _raycaster as V } from "../../../shared-utils/three/
|
|
67
|
+
import { _raycaster as V } from "../../../shared-utils/three/temp.js";
|
|
68
68
|
import "../../../shared-utils/typescript/entries.js";
|
|
69
69
|
import "../../utils/tag/adaptConfig.js";
|
|
70
70
|
import "../../typings/tag/TagConfig.js";
|
|
@@ -57,11 +57,11 @@ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
57
57
|
import "../../../shared-utils/tag.js";
|
|
58
58
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
59
59
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
60
|
-
import "../../../shared-utils/three/raycaster.js";
|
|
61
60
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
62
61
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
63
62
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
64
63
|
import "../../../shared-utils/five/transformPosition.js";
|
|
64
|
+
import "../../../shared-utils/three/temp.js";
|
|
65
65
|
import "../../../Sculpt/utils/Modules/Global.js";
|
|
66
66
|
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
67
67
|
import "../../../Object3DHelperPlugin/Controller.js";
|
|
@@ -35,11 +35,11 @@ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
35
35
|
import "../../../shared-utils/tag.js";
|
|
36
36
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
37
37
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
38
|
-
import "../../../shared-utils/three/raycaster.js";
|
|
39
38
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
40
39
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
41
40
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
42
41
|
import "../../../shared-utils/five/transformPosition.js";
|
|
42
|
+
import "../../../shared-utils/three/temp.js";
|
|
43
43
|
import "../../../Sculpt/utils/Modules/Global.js";
|
|
44
44
|
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
45
45
|
import "../../../Object3DHelperPlugin/Controller.js";
|
|
@@ -28,11 +28,11 @@ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
28
28
|
import "../../../shared-utils/tag.js";
|
|
29
29
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
30
30
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
31
|
-
import "../../../shared-utils/three/raycaster.js";
|
|
32
31
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
33
32
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
34
33
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
35
34
|
import "../../../shared-utils/five/transformPosition.js";
|
|
35
|
+
import "../../../shared-utils/three/temp.js";
|
|
36
36
|
import "../../../Sculpt/utils/Modules/Global.js";
|
|
37
37
|
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
38
38
|
import "../../../Object3DHelperPlugin/Controller.js";
|
|
@@ -203,9 +203,6 @@ class Si extends g {
|
|
|
203
203
|
computeNormal() {
|
|
204
204
|
return new d.Vector3().fromArray(this.normal);
|
|
205
205
|
}
|
|
206
|
-
destroy() {
|
|
207
|
-
this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
208
|
-
}
|
|
209
206
|
}
|
|
210
207
|
export {
|
|
211
208
|
Si as PointTag
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var x = Object.defineProperty;
|
|
2
2
|
var v = Object.getOwnPropertySymbols;
|
|
3
3
|
var O = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var T = (
|
|
4
|
+
var T = (a, e, t) => e in a ? x(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, j = (a, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
O.call(e, t) && T(
|
|
6
|
+
O.call(e, t) && T(a, t, e[t]);
|
|
7
7
|
if (v)
|
|
8
8
|
for (var t of v(e))
|
|
9
|
-
A.call(e, t) && T(
|
|
10
|
-
return
|
|
9
|
+
A.call(e, t) && T(a, t, e[t]);
|
|
10
|
+
return a;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var r = (
|
|
12
|
+
var d = (a, e, t) => (T(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
var w = (a, e, t) => new Promise((i, o) => {
|
|
14
|
+
var r = (p) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
16
|
+
l(t.next(p));
|
|
17
17
|
} catch (h) {
|
|
18
18
|
o(h);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, m = (p) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
22
|
+
l(t.throw(p));
|
|
23
23
|
} catch (h) {
|
|
24
24
|
o(h);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, l = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(r, m);
|
|
27
|
+
l((t = t.apply(a, e)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Group as y, Quaternion as G, Vector3 as C, Matrix4 as M } from "three";
|
|
30
30
|
import E from "../Components/Tag/index.js";
|
|
@@ -102,12 +102,12 @@ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
102
102
|
import "../../shared-utils/tag.js";
|
|
103
103
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
104
104
|
import "../../shared-utils/five/getFiveModel.js";
|
|
105
|
-
import "../../shared-utils/three/raycaster.js";
|
|
106
105
|
import "../../shared-utils/Utils/FiveUtil.js";
|
|
107
106
|
import "../../shared-utils/Utils/BaseUtil.js";
|
|
108
107
|
import "../../shared-utils/Subscribe.js";
|
|
109
108
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
110
109
|
import "../../shared-utils/five/transformPosition.js";
|
|
110
|
+
import "../../shared-utils/three/temp.js";
|
|
111
111
|
import "../../Sculpt/utils/Modules/Global.js";
|
|
112
112
|
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
113
113
|
import "../../Object3DHelperPlugin/Controller.js";
|
|
@@ -230,17 +230,17 @@ import "../../CSS3DRenderPlugin/Controller.js";
|
|
|
230
230
|
class vr extends U {
|
|
231
231
|
constructor(t) {
|
|
232
232
|
super(t);
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
233
|
+
d(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
234
|
+
d(this, "contentTypeMap", /* @__PURE__ */ new Map());
|
|
235
|
+
d(this, "group", new y());
|
|
236
|
+
d(this, "imagePlaneGroup", new y());
|
|
237
|
+
d(this, "gltfObjectGroup", new y());
|
|
238
238
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
239
|
-
|
|
239
|
+
d(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
240
240
|
/** 临时状态 */
|
|
241
|
-
|
|
241
|
+
d(this, "temporaryState", { visible: !0 });
|
|
242
242
|
/** 点标签 */
|
|
243
|
-
|
|
243
|
+
d(this, "TagContainerSvelte");
|
|
244
244
|
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
|
|
245
245
|
}
|
|
246
246
|
/**
|
|
@@ -261,8 +261,8 @@ class vr extends U {
|
|
|
261
261
|
clearTags() {
|
|
262
262
|
var t;
|
|
263
263
|
this.tags.length && (this.tags.forEach((i) => {
|
|
264
|
-
var o, r;
|
|
265
|
-
(r = (o = i.mediaPlane) == null ? void 0 : o.parent) == null || r.remove(i.mediaPlane);
|
|
264
|
+
var o, r, m, l, p;
|
|
265
|
+
(r = (o = i.mediaPlane) == null ? void 0 : o.parent) == null || r.remove(i.mediaPlane), (p = (l = (m = i.model) == null ? void 0 : m.object) == null ? void 0 : l.parent) == null || p.remove(i.model.object);
|
|
266
266
|
}), this.tags = [], this.tagsLengthWillUpdate = !0, this.hooks.emit("tagsLengthChange"), (t = this.TagContainerSvelte) == null || t.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer()), this.enabledModelTagSet.clear(), this.cache.clear();
|
|
267
267
|
}
|
|
268
268
|
/**
|
|
@@ -270,47 +270,47 @@ class vr extends U {
|
|
|
270
270
|
*/
|
|
271
271
|
updateRender3DDomTag(t) {
|
|
272
272
|
(t ? N(t) : this.filterCSS3DTag).forEach((o) => {
|
|
273
|
-
var r,
|
|
273
|
+
var r, m, l, p, h, b;
|
|
274
274
|
if (o.tag3DContentSvelte) {
|
|
275
|
-
const { svelteApp: f, css3DInstance:
|
|
276
|
-
if ((
|
|
277
|
-
const
|
|
278
|
-
|
|
275
|
+
const { svelteApp: f, css3DInstance: c, initialNormal: u, currentNormal: s } = o.tag3DContentSvelte;
|
|
276
|
+
if ((m = c == null ? void 0 : c.css3DObject) == null || m.setVisible((this.state.visible && ((r = o.state) == null ? void 0 : r.visible)) !== !1), f.$set({ tag: o, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !u.equals(s)) {
|
|
277
|
+
const n = new G().setFromUnitVectors(u, s);
|
|
278
|
+
c.css3DObject.setRotationFromQuaternion(n);
|
|
279
279
|
}
|
|
280
280
|
return;
|
|
281
281
|
} else {
|
|
282
|
-
if (P(o) && !((
|
|
282
|
+
if (P(o) && !((l = o.model) != null && l.object) || ((p = o.state) == null ? void 0 : p.visible) === !1 || !this.state.visible || !this.state.enabled || !this.css3DRenderPlugin)
|
|
283
283
|
return;
|
|
284
284
|
if (o.stickType === "3DPoint" && !o.normal)
|
|
285
285
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
286
286
|
const f = this.getPositions(o);
|
|
287
287
|
if (!f)
|
|
288
288
|
return;
|
|
289
|
-
const
|
|
290
|
-
if (!
|
|
289
|
+
const c = o.computeNormal();
|
|
290
|
+
if (!c)
|
|
291
291
|
return;
|
|
292
|
-
const u = o.getConfig(),
|
|
292
|
+
const u = o.getConfig(), s = j({
|
|
293
293
|
wrapperStyle: { zIndex: `${Math.round((1e4 - ((h = o.getDistance()) != null ? h : 0)) * 100)}` }
|
|
294
294
|
}, u.tag3DConfig);
|
|
295
|
-
if (o.computeRenderType() === "BehindDom" ||
|
|
296
|
-
|
|
295
|
+
if (o.computeRenderType() === "BehindDom" || s.mode === "behind") {
|
|
296
|
+
s.mode = "behind", s.container = document.createElement("div");
|
|
297
297
|
const D = "black";
|
|
298
|
-
|
|
298
|
+
s.container.style.backgroundColor = D, s.container.style.border = `3px solid ${D}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
299
299
|
var S;
|
|
300
|
-
if (
|
|
301
|
-
const
|
|
300
|
+
if (n.css3DObject.opacityMesh && u.clickable !== !1) {
|
|
301
|
+
const R = this.addObjectClickHandler(o, n.css3DObject.opacityMesh, (k) => {
|
|
302
302
|
this.hooks.emit("click", { event: k, target: "TagContent", tag: o });
|
|
303
303
|
});
|
|
304
|
-
(S = this.store.css3DRenderDisposer.get(o.id)) == null || S.push(
|
|
304
|
+
(S = this.store.css3DRenderDisposer.get(o.id)) == null || S.push(R);
|
|
305
305
|
}
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
|
-
const
|
|
309
|
-
if (!
|
|
308
|
+
const n = this.css3DRenderPlugin.create3DDomContainer(f, s);
|
|
309
|
+
if (!n)
|
|
310
310
|
return;
|
|
311
|
-
this.store.css3DRenderDisposer.set(o.id, [
|
|
311
|
+
this.store.css3DRenderDisposer.set(o.id, [n.dispose]);
|
|
312
312
|
const g = new E({
|
|
313
|
-
target:
|
|
313
|
+
target: n.container,
|
|
314
314
|
props: {
|
|
315
315
|
tag: o,
|
|
316
316
|
hooks: this.hooks,
|
|
@@ -322,12 +322,12 @@ class vr extends U {
|
|
|
322
322
|
});
|
|
323
323
|
o.tag3DContentSvelte = {
|
|
324
324
|
svelteApp: g,
|
|
325
|
-
domContainer:
|
|
326
|
-
css3DInstance:
|
|
327
|
-
initialNormal:
|
|
328
|
-
currentNormal:
|
|
325
|
+
domContainer: n,
|
|
326
|
+
css3DInstance: n,
|
|
327
|
+
initialNormal: c,
|
|
328
|
+
currentNormal: c,
|
|
329
329
|
dispose: () => {
|
|
330
|
-
g.$destroy(),
|
|
330
|
+
g.$destroy(), n.dispose();
|
|
331
331
|
}
|
|
332
332
|
}, P(o) && ((b = o.model) != null && b.object) && this.updateTagCss3DObjectMatrix(o, o.model.object);
|
|
333
333
|
}
|
|
@@ -338,22 +338,22 @@ class vr extends U {
|
|
|
338
338
|
* @param model 模型
|
|
339
339
|
*/
|
|
340
340
|
updateTagCss3DObjectMatrix(t, i) {
|
|
341
|
-
var
|
|
342
|
-
const o = (g = (
|
|
341
|
+
var n, g, D;
|
|
342
|
+
const o = (g = (n = t.getConfig().tag3DConfig) == null ? void 0 : n.ratio) != null ? g : 216e-5, r = (D = t.tag3DContentSvelte) == null ? void 0 : D.css3DInstance.css3DObject;
|
|
343
343
|
if (!r)
|
|
344
344
|
return;
|
|
345
|
-
const
|
|
346
|
-
if (!
|
|
345
|
+
const m = P(t) ? t.data.mediaPosition : t.position;
|
|
346
|
+
if (!m || m.length !== 4 || !Array.isArray(m[0]) || !Array.isArray(m[2]))
|
|
347
347
|
return;
|
|
348
348
|
i.updateWorldMatrix(!1, !1);
|
|
349
|
-
const
|
|
349
|
+
const l = i.matrixWorld, p = new C().fromArray(m[0]), h = new C().fromArray(m[2]), b = I(p, h).add(new C(0, 0, 5e-4)), f = new M().setPosition(b), c = new M().makeScale(o, o, o), u = new M().multiply(l).multiply(f).multiply(c);
|
|
350
350
|
u.decompose(r.position, r.quaternion, r.scale);
|
|
351
|
-
const
|
|
352
|
-
|
|
351
|
+
const s = r.opacityMesh;
|
|
352
|
+
s && u.decompose(s.position, s.quaternion, s.scale);
|
|
353
353
|
}
|
|
354
354
|
/** 添加模型标签 */
|
|
355
355
|
addMediaModelTag(t) {
|
|
356
|
-
return
|
|
356
|
+
return w(this, null, function* () {
|
|
357
357
|
const i = t.filter((o) => o.stickType === "Model").map((o) => o.loadModel());
|
|
358
358
|
yield Promise.all(i), t.forEach((o) => o.updateVisible());
|
|
359
359
|
});
|
|
@@ -39,11 +39,11 @@ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
39
39
|
import "../../shared-utils/tag.js";
|
|
40
40
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
41
41
|
import "../../shared-utils/five/getFiveModel.js";
|
|
42
|
-
import "../../shared-utils/three/raycaster.js";
|
|
43
42
|
import "../../shared-utils/Utils/FiveUtil.js";
|
|
44
43
|
import "../../shared-utils/Utils/BaseUtil.js";
|
|
45
44
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
46
45
|
import "../../shared-utils/five/transformPosition.js";
|
|
46
|
+
import "../../shared-utils/three/temp.js";
|
|
47
47
|
import "../../Sculpt/utils/Modules/Global.js";
|
|
48
48
|
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
49
49
|
import "../../Object3DHelperPlugin/Controller.js";
|
|
@@ -118,12 +118,12 @@ import "../../shared-utils/three/centerPoint.js";
|
|
|
118
118
|
import "../../shared-utils/tag.js";
|
|
119
119
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
120
120
|
import "../../shared-utils/five/getFiveModel.js";
|
|
121
|
-
import "../../shared-utils/three/raycaster.js";
|
|
122
121
|
import "../../shared-utils/Utils/FiveUtil.js";
|
|
123
122
|
import "../../shared-utils/Utils/BaseUtil.js";
|
|
124
123
|
import "../../shared-utils/Subscribe.js";
|
|
125
124
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
126
125
|
import "../../shared-utils/five/transformPosition.js";
|
|
126
|
+
import "../../shared-utils/three/temp.js";
|
|
127
127
|
import "../../Sculpt/utils/Modules/Global.js";
|
|
128
128
|
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
129
129
|
import "../../Object3DHelperPlugin/Controller.js";
|
|
@@ -83,12 +83,12 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
83
83
|
import "../shared-utils/tag.js";
|
|
84
84
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
85
85
|
import "../shared-utils/five/getFiveModel.js";
|
|
86
|
-
import "../shared-utils/three/raycaster.js";
|
|
87
86
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
88
87
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
89
88
|
import "../shared-utils/Subscribe.js";
|
|
90
89
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
91
90
|
import "../shared-utils/five/transformPosition.js";
|
|
91
|
+
import "../shared-utils/three/temp.js";
|
|
92
92
|
import "../Sculpt/utils/Modules/Global.js";
|
|
93
93
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
94
94
|
import "../Object3DHelperPlugin/Controller.js";
|
|
@@ -33,12 +33,12 @@ import "../../../shared-utils/isNil.js";
|
|
|
33
33
|
import "../../../shared-utils/tag.js";
|
|
34
34
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
35
35
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
36
|
-
import "../../../shared-utils/three/raycaster.js";
|
|
37
36
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
38
37
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
39
38
|
import "../../../shared-utils/Subscribe.js";
|
|
40
39
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
41
40
|
import "../../../shared-utils/five/transformPosition.js";
|
|
41
|
+
import "../../../shared-utils/three/temp.js";
|
|
42
42
|
import "../../../Sculpt/utils/Modules/Global.js";
|
|
43
43
|
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
44
44
|
import "../../../Object3DHelperPlugin/Controller.js";
|
|
@@ -31,12 +31,12 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
31
31
|
import "../shared-utils/tag.js";
|
|
32
32
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
33
33
|
import "../shared-utils/five/getFiveModel.js";
|
|
34
|
-
import "../shared-utils/three/raycaster.js";
|
|
35
34
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
36
35
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
37
36
|
import "../shared-utils/Subscribe.js";
|
|
38
37
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
39
38
|
import "../shared-utils/five/transformPosition.js";
|
|
39
|
+
import "../shared-utils/three/temp.js";
|
|
40
40
|
import "../Sculpt/utils/Modules/Global.js";
|
|
41
41
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
42
42
|
import "../Object3DHelperPlugin/Controller.js";
|
|
@@ -21,12 +21,12 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
21
21
|
import "../shared-utils/tag.js";
|
|
22
22
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
23
23
|
import "../shared-utils/five/getFiveModel.js";
|
|
24
|
-
import "../shared-utils/three/raycaster.js";
|
|
25
24
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
26
25
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
27
26
|
import "../shared-utils/Subscribe.js";
|
|
28
27
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
29
28
|
import "../shared-utils/five/transformPosition.js";
|
|
29
|
+
import "../shared-utils/three/temp.js";
|
|
30
30
|
import "../Sculpt/utils/Modules/Global.js";
|
|
31
31
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
32
32
|
import "../Object3DHelperPlugin/Controller.js";
|
|
@@ -19,12 +19,12 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
19
19
|
import "../shared-utils/tag.js";
|
|
20
20
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
21
21
|
import "../shared-utils/five/getFiveModel.js";
|
|
22
|
-
import "../shared-utils/three/raycaster.js";
|
|
23
22
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
24
23
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
25
24
|
import "../shared-utils/Subscribe.js";
|
|
26
25
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
27
26
|
import "../shared-utils/five/transformPosition.js";
|
|
27
|
+
import "../shared-utils/three/temp.js";
|
|
28
28
|
import "../Sculpt/utils/Modules/Global.js";
|
|
29
29
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
30
30
|
import "../Object3DHelperPlugin/Controller.js";
|
|
@@ -50,11 +50,11 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
50
50
|
import "../shared-utils/tag.js";
|
|
51
51
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
52
52
|
import "../shared-utils/five/getFiveModel.js";
|
|
53
|
-
import "../shared-utils/three/raycaster.js";
|
|
54
53
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
55
54
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
56
55
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
57
56
|
import "../shared-utils/five/transformPosition.js";
|
|
57
|
+
import "../shared-utils/three/temp.js";
|
|
58
58
|
import "../Sculpt/utils/Modules/Global.js";
|
|
59
59
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
60
60
|
import "../Object3DHelperPlugin/Controller.js";
|
|
@@ -19,11 +19,11 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
19
19
|
import "../shared-utils/tag.js";
|
|
20
20
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
21
21
|
import "../shared-utils/five/getFiveModel.js";
|
|
22
|
-
import "../shared-utils/three/raycaster.js";
|
|
23
22
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
24
23
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
25
24
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
26
25
|
import "../shared-utils/five/transformPosition.js";
|
|
26
|
+
import "../shared-utils/three/temp.js";
|
|
27
27
|
import "../Sculpt/utils/Modules/Global.js";
|
|
28
28
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
29
29
|
import "../Object3DHelperPlugin/Controller.js";
|
|
@@ -20,12 +20,12 @@ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
20
20
|
import "../../../shared-utils/tag.js";
|
|
21
21
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
22
22
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
23
|
-
import "../../../shared-utils/three/raycaster.js";
|
|
24
23
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
25
24
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
26
25
|
import "../../../shared-utils/Subscribe.js";
|
|
27
26
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
28
27
|
import "../../../shared-utils/five/transformPosition.js";
|
|
28
|
+
import "../../../shared-utils/three/temp.js";
|
|
29
29
|
import "../../../Sculpt/utils/Modules/Global.js";
|
|
30
30
|
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
31
31
|
import "../../../Object3DHelperPlugin/Controller.js";
|
|
@@ -20,12 +20,12 @@ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
20
20
|
import "../../../shared-utils/tag.js";
|
|
21
21
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
22
22
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
23
|
-
import "../../../shared-utils/three/raycaster.js";
|
|
24
23
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
25
24
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
26
25
|
import "../../../shared-utils/Subscribe.js";
|
|
27
26
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
28
27
|
import "../../../shared-utils/five/transformPosition.js";
|
|
28
|
+
import "../../../shared-utils/three/temp.js";
|
|
29
29
|
import "../../../Sculpt/utils/Modules/Global.js";
|
|
30
30
|
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
31
31
|
import "../../../Object3DHelperPlugin/Controller.js";
|
|
@@ -45,12 +45,12 @@ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
45
45
|
import "../../../shared-utils/tag.js";
|
|
46
46
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
47
47
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
48
|
-
import "../../../shared-utils/three/raycaster.js";
|
|
49
48
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
50
49
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
51
50
|
import "../../../shared-utils/Subscribe.js";
|
|
52
51
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
53
52
|
import "../../../shared-utils/five/transformPosition.js";
|
|
53
|
+
import "../../../shared-utils/three/temp.js";
|
|
54
54
|
import "../../../Sculpt/utils/Modules/Global.js";
|
|
55
55
|
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
56
56
|
import "../../../Object3DHelperPlugin/Controller.js";
|