@realsee/dnalogel 3.47.13 → 3.47.15
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 +8 -0
- package/dist/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
- package/dist/Sculpt/Meshes/Line.d.ts +1 -0
- package/dist/Sculpt/Meshes/Polygon.d.ts +2 -1
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +18650 -18640
- package/dist/index.umd.js +47 -47
- package/libs/AreaMakerPlugin/Controller.js +78 -150
- package/libs/AreaMakerPlugin/index.js +3 -75
- package/libs/AreaMakerPlugin/utils/Item.js +111 -185
- package/libs/CSS3DRenderPlugin/Controller.js +29 -86
- package/libs/CSS3DRenderPlugin/index.js +12 -69
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +58 -127
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +113 -174
- package/libs/CruisePlugin/BaseController.js +50 -122
- package/libs/CruisePlugin/Move.js +21 -74
- package/libs/CruisePlugin/Work.js +46 -99
- package/libs/CruisePlugin/index.js +26 -79
- package/libs/CurrentPanoImagePlugin/Controller.js +104 -176
- package/libs/CurrentPanoImagePlugin/index.js +4 -76
- package/libs/GuideLinePlugin/Controller.js +26 -79
- package/libs/GuideLinePlugin/GuideLineItem.js +24 -77
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +2 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +22 -75
- package/libs/GuideLinePlugin/index.js +26 -79
- package/libs/ModelMakerPlugin/Controller.js +83 -139
- package/libs/ModelMakerPlugin/index.js +16 -72
- package/libs/ModelTVVideoPlugin/Plugin.js +48 -105
- package/libs/ModelTVVideoPlugin/index.js +7 -64
- package/libs/Object3DHelperPlugin/Controller.js +32 -56
- package/libs/Object3DHelperPlugin/index.js +12 -35
- package/libs/PanoCompassPlugin/Controller.js +37 -93
- package/libs/PanoCompassPlugin/index.js +11 -67
- package/libs/PanoDoorLabelPlugin/BaseController.js +25 -97
- package/libs/PanoDoorLabelPlugin/Controller.js +115 -187
- package/libs/PanoDoorLabelPlugin/index.js +4 -76
- package/libs/PanoMeasurePlugin/Components/Controller0.js +83 -128
- package/libs/PanoMeasurePlugin/Components/Controller1.js +96 -141
- package/libs/PanoMeasurePlugin/Controller/EditController.js +66 -111
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +51 -121
- package/libs/PanoMeasurePlugin/Controller/index.js +59 -101
- package/libs/PanoMeasurePlugin/Model/area.js +21 -91
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +0 -73
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +27 -72
- package/libs/PanoMeasurePlugin/index.js +25 -67
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +17 -89
- package/libs/PanoSpatialTagPlugin/Plugin.js +106 -163
- package/libs/PanoSpatialTagPlugin/index.js +5 -62
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +67 -141
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +208 -281
- package/libs/PanoTagPlugin/Components/Tag/index.js +180 -251
- package/libs/PanoTagPlugin/Components/TagContainer.js +80 -151
- package/libs/PanoTagPlugin/Components/TagItem.js +67 -138
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +61 -132
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +28 -99
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +30 -101
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +36 -107
- package/libs/PanoTagPlugin/controller/TagRender.js +68 -121
- package/libs/PanoTagPlugin/controller/TagUtil.js +79 -132
- package/libs/PanoTagPlugin/controller/index.js +55 -108
- package/libs/PanoTagPlugin/index.js +31 -84
- package/libs/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/requestIdleCallback.js +5 -13
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +30 -104
- package/libs/PanoVideoPlugin/Controller.js +64 -136
- package/libs/PanoVideoPlugin/VideoMeshController.js +74 -148
- package/libs/PanoVideoPlugin/index.js +8 -80
- package/libs/PipelinePlugin/Controller.js +128 -199
- package/libs/PipelinePlugin/index.js +5 -76
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +17 -91
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +14 -88
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +56 -130
- package/libs/Sculpt/Meshes/Box.js +5 -6
- package/libs/Sculpt/Meshes/Cylinder.js +2 -3
- package/libs/Sculpt/Meshes/Line.d.ts +1 -0
- package/libs/Sculpt/Meshes/Line.js +50 -41
- package/libs/Sculpt/Meshes/Point.js +9 -10
- package/libs/Sculpt/Meshes/Polygon.d.ts +2 -1
- package/libs/Sculpt/Meshes/Polygon.js +47 -37
- package/libs/Sculpt/Meshes/Polyline.js +18 -16
- package/libs/Sculpt/Meshes/Rectangle.js +3 -4
- package/libs/Sculpt/Objects/Line/Editor.js +2 -3
- package/libs/Sculpt/Objects/Rectangle/index.js +1 -1
- package/libs/Sculpt/utils/removeAllTag.js +4 -4
- package/libs/Sculpt/utils/three/ColoredMesh.js +3 -4
- package/libs/base/BasePlugin.js +3 -4
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +59 -128
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -75
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +59 -129
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -75
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +62 -134
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -76
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +81 -151
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -75
- package/libs/floorplan/index.js +0 -1
- package/libs/index.js +62 -62
- package/libs/shared-utils/five/index.js +2 -3
- package/libs/shared-utils/five/lookObject.js +17 -18
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/index.js +0 -1
- package/package.json +1 -1
|
@@ -2,12 +2,12 @@ var z = Object.defineProperty, B = Object.defineProperties;
|
|
|
2
2
|
var H = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var E = Object.getOwnPropertySymbols;
|
|
4
4
|
var J = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var x = (o, i,
|
|
6
|
-
for (var
|
|
7
|
-
J.call(i,
|
|
5
|
+
var x = (o, i, e) => i in o ? z(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e, F = (o, i) => {
|
|
6
|
+
for (var e in i || (i = {}))
|
|
7
|
+
J.call(i, e) && x(o, e, i[e]);
|
|
8
8
|
if (E)
|
|
9
|
-
for (var
|
|
10
|
-
K.call(i,
|
|
9
|
+
for (var e of E(i))
|
|
10
|
+
K.call(i, e) && x(o, e, i[e]);
|
|
11
11
|
return o;
|
|
12
12
|
}, _ = (o, i) => B(o, H(i));
|
|
13
13
|
import { objectAssignDeepExports as l } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -21,7 +21,6 @@ import "hammerjs";
|
|
|
21
21
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
22
22
|
import "@realsee/five/line";
|
|
23
23
|
import "../../../shared-utils/tag.js";
|
|
24
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
25
24
|
import "../../../shared-utils/three/THREESphere.js";
|
|
26
25
|
import "animejs";
|
|
27
26
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -34,82 +33,9 @@ import "../../../shared-utils/Subscribe.js";
|
|
|
34
33
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
35
34
|
import "../../../shared-utils/five/transformPosition.js";
|
|
36
35
|
import "../../../shared-utils/three/temp.js";
|
|
37
|
-
|
|
38
|
-
import "../../../Object3DHelperPlugin/Controller.js";
|
|
39
|
-
import "../../../base/BasePlugin.js";
|
|
40
|
-
import "../../../shared-utils/url/absoluteUrl.js";
|
|
41
|
-
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
42
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
43
|
-
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
44
|
-
import "../../../shared-utils/three/IObject3D.js";
|
|
45
|
-
import "../../../shared-utils/three/boundingBox.js";
|
|
46
|
-
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
47
|
-
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
48
|
-
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
49
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
50
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
51
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
52
|
-
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
53
|
-
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
54
|
-
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
55
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
56
|
-
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
57
|
-
import "../../../shared-utils/three/centerPoint.js";
|
|
58
|
-
import "../../../shared-utils/three/getObjectVisible.js";
|
|
59
|
-
import "../../../shared-utils/isNil.js";
|
|
60
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
61
|
-
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
62
|
-
import "../../../shared-utils/util.js";
|
|
63
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
64
|
-
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
65
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
66
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
67
|
-
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
68
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
69
|
-
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
70
|
-
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
71
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
72
|
-
import "../../../shared-utils/threex/domevents/index.js";
|
|
73
|
-
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
74
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
75
|
-
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
76
|
-
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
77
|
-
import "../../../shared-utils/Object3DHelper/index.js";
|
|
78
|
-
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
79
|
-
import "../../../shared-utils/math/rad2Deg.js";
|
|
80
|
-
import "../../../shared-utils/math/deg2Rad.js";
|
|
81
|
-
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
82
|
-
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
83
|
-
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
84
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
85
|
-
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
86
|
-
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
87
|
-
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
88
|
-
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
89
|
-
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
90
|
-
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
91
|
-
import "../../../shared-utils/three/THREERaycaster.js";
|
|
92
|
-
import "../../../shared-utils/three/PointSelector/index.js";
|
|
93
|
-
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
94
|
-
import "../../../shared-utils/three/Magnifier.js";
|
|
95
|
-
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
96
|
-
import "../../../shared-utils/three/Assets/index.js";
|
|
97
|
-
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
98
|
-
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
99
|
-
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
100
|
-
import "../../../Sculpt/Meshes/Line.js";
|
|
101
|
-
import "../../../Sculpt/typings/style.js";
|
|
102
|
-
import "../../../shared-utils/five/FiveLine.js";
|
|
103
|
-
import "../../../Sculpt/utils/removeAllTag.js";
|
|
104
|
-
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
105
|
-
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
106
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
107
|
-
import "../../../shared-utils/isTouchDevice.js";
|
|
108
|
-
import "../../../shared-utils/five/getPosition.js";
|
|
109
|
-
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
110
|
-
function zi(o, i, t) {
|
|
36
|
+
function ko(o, i, e) {
|
|
111
37
|
var v, b, j, C, A;
|
|
112
|
-
const D = (v =
|
|
38
|
+
const D = (v = e == null ? void 0 : e.useCache) != null ? v : !0;
|
|
113
39
|
if (!o)
|
|
114
40
|
return (b = i.globalConfig) != null ? b : {};
|
|
115
41
|
if (D) {
|
|
@@ -119,39 +45,39 @@ function zi(o, i, t) {
|
|
|
119
45
|
return o.config;
|
|
120
46
|
}
|
|
121
47
|
const k = {}, d = {}, y = {};
|
|
122
|
-
i.contentTypeConfig && Object.entries(i.contentTypeConfig).forEach(([
|
|
48
|
+
i.contentTypeConfig && Object.entries(i.contentTypeConfig).forEach(([n, c]) => {
|
|
123
49
|
var O, W;
|
|
124
|
-
const
|
|
125
|
-
if (!
|
|
126
|
-
if (
|
|
127
|
-
const [
|
|
128
|
-
(o.contentType ===
|
|
50
|
+
const t = n, a = t.split("-"), g = n.startsWith("["), f = g ? a[0].slice(1, -1) : void 0, s = g ? a.slice(1) : a, p = f ? ["PanoramaLike", "ModelLike"].includes(f) ? (O = d[f]) != null ? O : d[f] = {} : (W = y[f]) != null ? W : y[f] = {} : k;
|
|
51
|
+
if (!p[t]) {
|
|
52
|
+
if (s.length === 0 && (p[t] = c), s.length === 1) {
|
|
53
|
+
const [r] = s;
|
|
54
|
+
(o.contentType === r || r === "Any") && (p[t] = c);
|
|
129
55
|
}
|
|
130
|
-
if (
|
|
131
|
-
const [
|
|
132
|
-
|
|
56
|
+
if (s.length === 2) {
|
|
57
|
+
const [r = "Any", m = "Any"] = s;
|
|
58
|
+
r === "Mixin" && o.contentType === m && (p[t] = c), (o.stickType === r || r === "Any") && (o.contentType === m || m === "Any") && (p[t] = c);
|
|
133
59
|
}
|
|
134
|
-
if (
|
|
135
|
-
const [
|
|
136
|
-
if (
|
|
60
|
+
if (s.length === 3) {
|
|
61
|
+
const [r = "Any", m, w] = s;
|
|
62
|
+
if (m === "Audio" && o.contentType === "Audio") {
|
|
137
63
|
const L = o;
|
|
138
|
-
(L.stickType ===
|
|
64
|
+
(L.stickType === r || r === "Any") && L.data.appearance === w && (p[t] = c);
|
|
139
65
|
}
|
|
140
66
|
}
|
|
141
67
|
}
|
|
142
68
|
});
|
|
143
|
-
const h = (A = o.initialConfig) != null ? A : {}, M = l({}, N, i.globalConfig, ...Object.values(k)), G = l({}, M, h),
|
|
144
|
-
I(d).forEach(([
|
|
145
|
-
q.forEach((
|
|
146
|
-
(
|
|
69
|
+
const h = (A = o.initialConfig) != null ? A : {}, M = l({}, N, i.globalConfig, ...Object.values(k)), G = l({}, M, h), u = {}, q = Object.values(Q.Mode);
|
|
70
|
+
I(d).forEach(([n, c]) => {
|
|
71
|
+
q.forEach((t) => {
|
|
72
|
+
(n === "PanoramaLike" && R(t) || n === "ModelLike" && S(t)) && (u[t] = l({}, M, ...Object.values(c), h, { _isMerged: !0 }));
|
|
147
73
|
});
|
|
148
|
-
}), I(y).forEach(([
|
|
149
|
-
const
|
|
150
|
-
|
|
74
|
+
}), I(y).forEach(([n, c]) => {
|
|
75
|
+
const t = u[n];
|
|
76
|
+
u[n] = l({}, M, t, ...Object.values(c), h, { _isMerged: !0 });
|
|
151
77
|
});
|
|
152
|
-
const T = _(F({}, G), { configWithFiveMode:
|
|
153
|
-
return P(T), Object.values(
|
|
78
|
+
const T = _(F({}, G), { configWithFiveMode: u });
|
|
79
|
+
return P(T), Object.values(u).forEach((n) => P(n)), T._isMerged = !0, T;
|
|
154
80
|
}
|
|
155
81
|
export {
|
|
156
|
-
|
|
82
|
+
ko as calculateTagConfig
|
|
157
83
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var f = Object.defineProperty, b = Object.defineProperties;
|
|
2
|
+
var m = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var p = Object.getOwnPropertySymbols;
|
|
4
4
|
var M = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
M.call(
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
W.call(
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var s = (
|
|
14
|
-
import { VideoMeshController as
|
|
5
|
+
var l = (o, t, e) => t in o ? f(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, a = (o, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
M.call(t, e) && l(o, e, t[e]);
|
|
8
|
+
if (p)
|
|
9
|
+
for (var e of p(t))
|
|
10
|
+
W.call(t, e) && l(o, e, t[e]);
|
|
11
|
+
return o;
|
|
12
|
+
}, d = (o, t) => b(o, m(t));
|
|
13
|
+
var s = (o, t, e) => (l(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
+
import { VideoMeshController as c } from "./VideoMeshController.js";
|
|
15
15
|
import { Controller as _ } from "../base/BasePlugin.js";
|
|
16
16
|
import "./utils/shader.js";
|
|
17
17
|
import "three";
|
|
@@ -28,87 +28,15 @@ import "../shared-utils/Subscribe.js";
|
|
|
28
28
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
29
29
|
import "../shared-utils/five/transformPosition.js";
|
|
30
30
|
import "../shared-utils/three/temp.js";
|
|
31
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
32
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
33
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
34
31
|
import "../shared-utils/three/THREESphere.js";
|
|
35
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
36
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
37
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
38
|
-
import "../shared-utils/three/IObject3D.js";
|
|
39
|
-
import "../shared-utils/three/boundingBox.js";
|
|
40
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
41
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
42
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
43
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
44
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
45
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
46
|
-
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
47
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
48
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
49
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
50
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
51
|
-
import "../shared-utils/three/centerPoint.js";
|
|
52
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
53
32
|
import "animejs";
|
|
54
|
-
import "../shared-utils/isNil.js";
|
|
55
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
56
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
57
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
58
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
59
|
-
import "../shared-utils/util.js";
|
|
60
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
61
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
62
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
63
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
64
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
65
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
66
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
67
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
68
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
69
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
70
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
71
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
72
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
73
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
74
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
75
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
76
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
77
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
78
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
79
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
80
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
81
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
82
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
83
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
84
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
85
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
86
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
87
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
88
|
-
import "../shared-utils/three/THREERaycaster.js";
|
|
89
|
-
import "../shared-utils/three/PointSelector/index.js";
|
|
90
|
-
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
91
|
-
import "../shared-utils/three/Magnifier.js";
|
|
92
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
93
|
-
import "../shared-utils/three/Assets/index.js";
|
|
94
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
95
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
96
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
97
|
-
import "../Sculpt/Meshes/Line.js";
|
|
98
|
-
import "../Sculpt/typings/style.js";
|
|
99
|
-
import "../shared-utils/five/FiveLine.js";
|
|
100
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
101
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
102
|
-
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
103
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
104
|
-
import "../shared-utils/isTouchDevice.js";
|
|
105
|
-
import "../shared-utils/five/getPosition.js";
|
|
106
|
-
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
107
33
|
import "../shared-utils/animationFrame/index.js";
|
|
34
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
108
35
|
import "./utils/index.js";
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
36
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
37
|
+
class K extends _ {
|
|
38
|
+
constructor(e) {
|
|
39
|
+
super(e);
|
|
112
40
|
s(this, "controllerMap", /* @__PURE__ */ new Map());
|
|
113
41
|
s(this, "data");
|
|
114
42
|
s(this, "enabled", !0);
|
|
@@ -125,58 +53,58 @@ class mt extends _ {
|
|
|
125
53
|
return this._disposed;
|
|
126
54
|
}
|
|
127
55
|
/** 加载点位视频数据,加载数据并不代表会加载点位视频。 */
|
|
128
|
-
load(
|
|
129
|
-
var
|
|
56
|
+
load(e, r) {
|
|
57
|
+
var i;
|
|
130
58
|
if (this.disposed)
|
|
131
59
|
return this.logWarning("插件已被销毁");
|
|
132
|
-
typeof ((
|
|
133
|
-
const
|
|
134
|
-
n.video_list.forEach((
|
|
60
|
+
typeof ((i = r == null ? void 0 : r.initialState) == null ? void 0 : i.enabled) != "undefined" && r.initialState.enabled !== this.enabled && (r.initialState.enabled ? this.enable() : this.disable()), e.list.forEach((n) => {
|
|
61
|
+
const u = n.pano_index, g = n.render_id;
|
|
62
|
+
n.video_list.forEach((h) => {
|
|
135
63
|
this.controllerMap.set(
|
|
136
|
-
|
|
137
|
-
new
|
|
138
|
-
panoIndex:
|
|
139
|
-
renderID:
|
|
64
|
+
h.render_id,
|
|
65
|
+
new c(this.five, d(a({}, h), {
|
|
66
|
+
panoIndex: u,
|
|
67
|
+
renderID: g,
|
|
140
68
|
hooks: this.hooks,
|
|
141
69
|
initialState: { enabled: this.enabled }
|
|
142
70
|
}))
|
|
143
71
|
);
|
|
144
72
|
});
|
|
145
|
-
}), this.data =
|
|
73
|
+
}), this.data = e, this.hooks.emit("dataLoaded", e);
|
|
146
74
|
}
|
|
147
75
|
/** 开启插件功能。 */
|
|
148
|
-
enable(
|
|
149
|
-
var
|
|
76
|
+
enable(e) {
|
|
77
|
+
var i;
|
|
150
78
|
if (this.disposed)
|
|
151
79
|
return this.logWarning("插件已被销毁");
|
|
152
80
|
if (this.enabled)
|
|
153
81
|
return;
|
|
154
82
|
this.enabled = !0, Array.from(this.controllerMap.values()).forEach((n) => n.enable());
|
|
155
|
-
const
|
|
156
|
-
this.hooks.emit("enable", { userAction:
|
|
83
|
+
const r = (i = e == null ? void 0 : e.userAction) != null ? i : !0;
|
|
84
|
+
this.hooks.emit("enable", { userAction: r });
|
|
157
85
|
}
|
|
158
86
|
/** 禁用插件功能。 */
|
|
159
|
-
disable(
|
|
160
|
-
var
|
|
87
|
+
disable(e) {
|
|
88
|
+
var i;
|
|
161
89
|
if (this.disposed)
|
|
162
90
|
return this.logWarning("插件已被销毁");
|
|
163
91
|
if (!this.enabled)
|
|
164
92
|
return;
|
|
165
93
|
this.enabled = !1, Array.from(this.controllerMap.values()).forEach((n) => n.disable());
|
|
166
|
-
const
|
|
167
|
-
this.hooks.emit("disable", { userAction:
|
|
94
|
+
const r = (i = e == null ? void 0 : e.userAction) != null ? i : !0;
|
|
95
|
+
this.hooks.emit("disable", { userAction: r });
|
|
168
96
|
}
|
|
169
97
|
/** 看向某个视频。
|
|
170
98
|
* - 会自动切换到全景模式。
|
|
171
99
|
* - 如果遇到不能自动播放的问题,需要放到用户交互事件中调用。
|
|
172
100
|
*/
|
|
173
|
-
lookAtVideoItemByRenderID(
|
|
101
|
+
lookAtVideoItemByRenderID(e) {
|
|
174
102
|
if (this.disposed)
|
|
175
103
|
return this.logWarning("插件已被销毁");
|
|
176
|
-
const
|
|
177
|
-
if (!
|
|
178
|
-
return this.logWarning(`ID 为 ${
|
|
179
|
-
|
|
104
|
+
const r = this.controllerMap.get(e);
|
|
105
|
+
if (!r)
|
|
106
|
+
return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
|
|
107
|
+
r.lookAtVideo();
|
|
180
108
|
}
|
|
181
109
|
/**
|
|
182
110
|
* 取消静音。
|
|
@@ -194,26 +122,26 @@ class mt extends _ {
|
|
|
194
122
|
* }}
|
|
195
123
|
* ```
|
|
196
124
|
*/
|
|
197
|
-
unmuteByRenderID(
|
|
125
|
+
unmuteByRenderID(e) {
|
|
198
126
|
if (this.disposed)
|
|
199
127
|
return this.logWarning("插件已被销毁");
|
|
200
|
-
const
|
|
201
|
-
if (!
|
|
202
|
-
return this.logWarning(`ID 为 ${
|
|
203
|
-
|
|
128
|
+
const r = this.controllerMap.get(e);
|
|
129
|
+
if (!r)
|
|
130
|
+
return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
|
|
131
|
+
r.unmute();
|
|
204
132
|
}
|
|
205
133
|
/** 为一个点位添加视频(可以是多条)。 */
|
|
206
|
-
add(
|
|
134
|
+
add(e, r) {
|
|
207
135
|
if (this.disposed)
|
|
208
136
|
return this.logWarning("插件已被销毁");
|
|
209
|
-
|
|
210
|
-
if (this.controllerMap.get(
|
|
211
|
-
return this.logWarning(`ID 为 ${
|
|
212
|
-
const n =
|
|
137
|
+
r.forEach((i) => {
|
|
138
|
+
if (this.controllerMap.get(i.render_id))
|
|
139
|
+
return this.logWarning(`ID 为 ${i.render_id} 的点位视频已存在`);
|
|
140
|
+
const n = i.render_id;
|
|
213
141
|
this.controllerMap.set(
|
|
214
|
-
|
|
215
|
-
new
|
|
216
|
-
panoIndex:
|
|
142
|
+
i.render_id,
|
|
143
|
+
new c(this.five, d(a({}, i), {
|
|
144
|
+
panoIndex: e,
|
|
217
145
|
renderID: n,
|
|
218
146
|
hooks: this.hooks,
|
|
219
147
|
initialState: { enabled: this.enabled }
|
|
@@ -222,32 +150,32 @@ class mt extends _ {
|
|
|
222
150
|
});
|
|
223
151
|
}
|
|
224
152
|
/** 根据 VideoItem render_id 删除某个视频。 */
|
|
225
|
-
removeByRenderID(
|
|
153
|
+
removeByRenderID(e) {
|
|
226
154
|
if (this.disposed)
|
|
227
155
|
return this.logWarning("插件已被销毁");
|
|
228
|
-
const
|
|
229
|
-
if (!
|
|
230
|
-
return this.logWarning(`ID 为 ${
|
|
231
|
-
|
|
156
|
+
const r = this.controllerMap.get(e);
|
|
157
|
+
if (!r)
|
|
158
|
+
return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
|
|
159
|
+
r.dispose(), this.controllerMap.delete(e);
|
|
232
160
|
}
|
|
233
161
|
/** 清空现有数据 */
|
|
234
162
|
clear() {
|
|
235
163
|
if (this.disposed)
|
|
236
164
|
return this.logWarning("插件已被销毁");
|
|
237
|
-
Array.from(this.controllerMap.values()).forEach((
|
|
165
|
+
Array.from(this.controllerMap.values()).forEach((e) => e.dispose()), this.controllerMap.clear();
|
|
238
166
|
}
|
|
239
167
|
/** 销毁插件 */
|
|
240
168
|
dispose() {
|
|
241
169
|
if (this.disposed)
|
|
242
170
|
return this.logWarning("插件已被销毁");
|
|
243
|
-
this._disposed = !0, Array.from(this.controllerMap.values()).forEach((
|
|
171
|
+
this._disposed = !0, Array.from(this.controllerMap.values()).forEach((e) => e.dispose()), this.controllerMap.clear();
|
|
244
172
|
}
|
|
245
173
|
/** 控制台打印警告 */
|
|
246
174
|
// TODO: 全局函数 curry 化
|
|
247
|
-
logWarning(
|
|
248
|
-
console.warn("⛔ ==> [PanoVideoPluginController]:",
|
|
175
|
+
logWarning(e) {
|
|
176
|
+
console.warn("⛔ ==> [PanoVideoPluginController]:", e);
|
|
249
177
|
}
|
|
250
178
|
}
|
|
251
179
|
export {
|
|
252
|
-
|
|
180
|
+
K as PanoVideoPluginController
|
|
253
181
|
};
|