@realsee/dnalogel 3.49.0 → 3.49.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/CHANGELOG.md +6 -1
- package/dist/Sculpt/Meshes/Line.d.ts +2 -1
- package/dist/index.cjs.js +3008 -87
- package/dist/index.js +39458 -20049
- package/dist/index.umd.js +3001 -80
- package/dist/shared-utils/three/index.d.ts +1 -1
- package/libs/AreaMakerPlugin/Controller.js +7 -4
- package/libs/AreaMakerPlugin/index.js +7 -4
- package/libs/AreaMakerPlugin/utils/Item.js +7 -4
- package/libs/CSS3DRenderPlugin/Controller.js +12 -9
- package/libs/CSS3DRenderPlugin/index.js +9 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +21 -18
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +6 -3
- package/libs/CruisePlugin/BaseController.js +12 -9
- package/libs/CruisePlugin/Move.js +7 -4
- package/libs/CruisePlugin/Work.js +7 -4
- package/libs/CruisePlugin/index.js +11 -8
- package/libs/CurrentPanoImagePlugin/Controller.js +6 -3
- package/libs/CurrentPanoImagePlugin/index.js +7 -4
- package/libs/GuideLinePlugin/Controller.js +9 -6
- package/libs/GuideLinePlugin/GuideLineItem.js +7 -4
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +7 -4
- package/libs/GuideLinePlugin/index.js +11 -8
- package/libs/ModelMakerPlugin/Controller.js +7 -4
- package/libs/ModelMakerPlugin/index.js +7 -4
- package/libs/ModelMakerPlugin/item/baseItem.js +2 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +2 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +2 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +2 -2
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +1 -1
- package/libs/ModelTVVideoPlugin/Plugin.js +7 -4
- package/libs/ModelTVVideoPlugin/index.js +6 -3
- package/libs/Object3DHelperPlugin/Controller.js +6 -3
- package/libs/Object3DHelperPlugin/index.js +9 -6
- package/libs/PanoCompassPlugin/Controller.js +6 -3
- package/libs/PanoCompassPlugin/index.js +7 -4
- package/libs/PanoDoorLabelPlugin/BaseController.js +16 -13
- package/libs/PanoDoorLabelPlugin/Controller.js +58 -55
- package/libs/PanoDoorLabelPlugin/index.js +7 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +6 -3
- package/libs/PanoMeasurePlugin/Components/Controller1.js +6 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +6 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +6 -3
- package/libs/PanoMeasurePlugin/Controller/index.js +6 -3
- package/libs/PanoMeasurePlugin/Model/area.js +6 -3
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +4 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +6 -3
- package/libs/PanoMeasurePlugin/index.js +17 -14
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +16 -13
- package/libs/PanoSpatialTagPlugin/Plugin.js +7 -4
- package/libs/PanoSpatialTagPlugin/index.js +4 -1
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +24 -21
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +6 -3
- package/libs/PanoTagPlugin/Components/Tag/index.js +6 -3
- package/libs/PanoTagPlugin/Components/TagContainer.js +6 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +6 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +11 -5
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +14 -11
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +12 -9
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +10 -7
- package/libs/PanoTagPlugin/controller/TagRender.js +7 -4
- package/libs/PanoTagPlugin/controller/TagUtil.js +7 -4
- package/libs/PanoTagPlugin/controller/index.js +10 -7
- package/libs/PanoTagPlugin/index.js +16 -13
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +25 -22
- package/libs/PanoVideoPlugin/Controller.js +9 -6
- package/libs/PanoVideoPlugin/VideoMeshController.js +6 -3
- package/libs/PanoVideoPlugin/index.js +9 -6
- package/libs/PipelinePlugin/Controller.js +13 -10
- package/libs/PipelinePlugin/index.js +7 -4
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +6 -3
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +16 -13
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +20 -17
- package/libs/Sculpt/Meshes/Box.js +7 -6
- package/libs/Sculpt/Meshes/Cylinder.js +4 -3
- package/libs/Sculpt/Meshes/Line.d.ts +2 -1
- package/libs/Sculpt/Meshes/Line.js +11 -10
- package/libs/Sculpt/Meshes/LineWithDots.js +1 -1
- package/libs/Sculpt/Meshes/Point.js +11 -10
- package/libs/Sculpt/Meshes/PolygonWithEdge.js +1 -1
- package/libs/Sculpt/Meshes/Polyline.js +31 -31
- package/libs/Sculpt/Meshes/Prism.js +2 -2
- package/libs/Sculpt/Meshes/Rectangle.js +5 -4
- package/libs/Sculpt/Objects/Line/Editor.js +4 -3
- package/libs/Sculpt/index.js +4 -3
- package/libs/Sculpt/utils/three/ColoredMesh.js +5 -4
- package/libs/base/BasePlugin.js +5 -4
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +6 -3
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +6 -3
- package/libs/floorplan/ModelFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +6 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +7 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +6 -3
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/index.js +2 -1
- package/libs/index.js +131 -128
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.js +1 -1
- package/libs/shared-utils/five/FiveLine.js +6 -18
- package/libs/shared-utils/five/index.js +4 -3
- package/libs/shared-utils/five/lookObject.js +18 -17
- package/libs/shared-utils/index.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.js +24 -22
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +1 -1
- package/libs/shared-utils/three/boundingBox.js +1 -1
- package/libs/shared-utils/three/index.d.ts +1 -1
- package/libs/shared-utils/three/index.js +2 -1
- package/libs/vendor/three/build/three.module.js +19336 -0
- package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +28 -0
- package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +69 -0
- package/package.json +1 -1
- /package/dist/shared-utils/three/{objects → core}/LineSegments.d.ts +0 -0
- /package/dist/shared-utils/three/{THREERaycaster.d.ts → core/Raycaster.d.ts} +0 -0
- /package/dist/shared-utils/three/{THREESphere.d.ts → core/Sphere.d.ts} +0 -0
- /package/libs/shared-utils/three/{objects → core}/LineSegments.d.ts +0 -0
- /package/libs/shared-utils/three/{objects → core}/LineSegments.js +0 -0
- /package/libs/shared-utils/three/{THREERaycaster.d.ts → core/Raycaster.d.ts} +0 -0
- /package/libs/shared-utils/three/{THREERaycaster.js → core/Raycaster.js} +0 -0
- /package/libs/shared-utils/three/{THREESphere.d.ts → core/Sphere.d.ts} +0 -0
- /package/libs/shared-utils/three/{THREESphere.js → core/Sphere.js} +0 -0
|
@@ -24,6 +24,9 @@ import "../../../shared-utils/five/mode.js";
|
|
|
24
24
|
import "hammerjs";
|
|
25
25
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
26
26
|
import "@realsee/five/line";
|
|
27
|
+
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
28
|
+
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
29
|
+
import "../../../vendor/three/build/three.module.js";
|
|
27
30
|
import "../../../shared-utils/tag.js";
|
|
28
31
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
29
32
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
@@ -32,7 +35,7 @@ import "../../../shared-utils/Utils/BaseUtil.js";
|
|
|
32
35
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
33
36
|
import "../../../shared-utils/five/transformPosition.js";
|
|
34
37
|
import "../../../shared-utils/three/temp.js";
|
|
35
|
-
import "../../../shared-utils/three/
|
|
38
|
+
import "../../../shared-utils/three/core/Sphere.js";
|
|
36
39
|
import "animejs";
|
|
37
40
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
38
41
|
import "../../utils/tag/format.js";
|
|
@@ -51,13 +54,13 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
51
54
|
import "../../../shared-utils/safeObj.js";
|
|
52
55
|
import "../../utils/Cache.js";
|
|
53
56
|
const P = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
|
|
54
|
-
class
|
|
57
|
+
class De extends f {
|
|
55
58
|
constructor(t, e) {
|
|
56
59
|
super(t, e), this.state.unfolded = !0;
|
|
57
60
|
}
|
|
58
61
|
applyVisible() {
|
|
59
|
-
var e, r, a,
|
|
60
|
-
this.computeRenderType() === "Mesh" ? ((r = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : r.type) === "Video" ? this.renderVideoPlane() : ((
|
|
62
|
+
var e, r, a, n, o, i;
|
|
63
|
+
this.computeRenderType() === "Mesh" ? ((r = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : r.type) === "Video" ? this.renderVideoPlane() : ((n = (a = this.data.mediaData) == null ? void 0 : a[0]) == null ? void 0 : n.type) === "Image" && this.renderImagePlane() : (this.tag3DContentSvelte || this.plugin.updateRender3DDomTag(), (o = this.tag3DContentSvelte) == null || o.svelteApp.$set({ tag: this, state: this.plugin.state }), (i = this.tag3DContentSvelte) == null || i.css3DInstance.setVisible(this.currentVisible));
|
|
61
64
|
}
|
|
62
65
|
renderVideoPlane() {
|
|
63
66
|
var i;
|
|
@@ -67,8 +70,8 @@ class ge extends f {
|
|
|
67
70
|
const { url: e } = t;
|
|
68
71
|
if (!e)
|
|
69
72
|
return;
|
|
70
|
-
const r = this.currentVisible, a = (() => !!(this.mediaPlane && !r))(),
|
|
71
|
-
if ((a ||
|
|
73
|
+
const r = this.currentVisible, a = (() => !!(this.mediaPlane && !r))(), n = (() => !!(!this.mediaPlane && r))(), o = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
|
|
74
|
+
if ((a || o) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), n || o) {
|
|
72
75
|
const p = this.position.map(d), s = new u(e, p, {
|
|
73
76
|
videoCoverSrc: t.videoCoverUrl,
|
|
74
77
|
playButton: this.data.playIcon,
|
|
@@ -93,8 +96,8 @@ class ge extends f {
|
|
|
93
96
|
const { url: e } = t;
|
|
94
97
|
if (!e)
|
|
95
98
|
return;
|
|
96
|
-
const r = this.position.map(d), a = this.currentVisible,
|
|
97
|
-
(
|
|
99
|
+
const r = this.position.map(d), a = this.currentVisible, n = (() => !!(this.mediaPlane && !a))(), o = (() => !!(!this.mediaPlane && a))(), i = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
|
|
100
|
+
(n || i) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (o || i) && (this.mediaPlane = new c(e, r, { objectFit: this.data.objectFit }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
|
|
98
101
|
this.mediaPlane,
|
|
99
102
|
"click",
|
|
100
103
|
(p) => {
|
|
@@ -108,5 +111,5 @@ class ge extends f {
|
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
export {
|
|
111
|
-
|
|
114
|
+
De as PlaneTag
|
|
112
115
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
var f = (n, s, t) => s in n ?
|
|
1
|
+
var h = Object.defineProperty;
|
|
2
|
+
var f = (n, s, t) => s in n ? h(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t;
|
|
3
3
|
var a = (n, s, t) => (f(n, typeof s != "symbol" ? s + "" : s, t), t);
|
|
4
4
|
import { BaseTag as g } from "./BaseTag.js";
|
|
5
5
|
import * as c from "three";
|
|
@@ -15,6 +15,9 @@ import "../../../shared-utils/five/mode.js";
|
|
|
15
15
|
import "hammerjs";
|
|
16
16
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
17
17
|
import "@realsee/five/line";
|
|
18
|
+
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
19
|
+
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
20
|
+
import "../../../vendor/three/build/three.module.js";
|
|
18
21
|
import "../../../shared-utils/tag.js";
|
|
19
22
|
import "../../../shared-utils/positionToVector3.js";
|
|
20
23
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
@@ -24,7 +27,7 @@ import "../../../shared-utils/Utils/BaseUtil.js";
|
|
|
24
27
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
25
28
|
import "../../../shared-utils/five/transformPosition.js";
|
|
26
29
|
import "../../../shared-utils/three/temp.js";
|
|
27
|
-
import "../../../shared-utils/three/
|
|
30
|
+
import "../../../shared-utils/three/core/Sphere.js";
|
|
28
31
|
import "animejs";
|
|
29
32
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
30
33
|
import "../../utils/tag/format.js";
|
|
@@ -44,7 +47,7 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
44
47
|
import "../../../shared-utils/safeObj.js";
|
|
45
48
|
import "../../utils/Cache.js";
|
|
46
49
|
const v = new c.Vector2();
|
|
47
|
-
class
|
|
50
|
+
class ct extends g {
|
|
48
51
|
constructor(t, e) {
|
|
49
52
|
super(t, e);
|
|
50
53
|
a(this, "__Object__");
|
|
@@ -110,8 +113,8 @@ class lt extends g {
|
|
|
110
113
|
const d = (() => {
|
|
111
114
|
if (!this.currentConfig.simulate3D)
|
|
112
115
|
return 1;
|
|
113
|
-
const p = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI),
|
|
114
|
-
return Math.max(Math.min(1 - p *
|
|
116
|
+
const p = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), m = this.getDistance(void 0, 1);
|
|
117
|
+
return Math.max(Math.min(1 - p * m / 40, 1), 0.5);
|
|
115
118
|
})(), u = this.five.renderer.getSize(v);
|
|
116
119
|
this.screenPosition = {
|
|
117
120
|
leftPx: (r.x + 1) / 2 * u.x,
|
|
@@ -134,5 +137,5 @@ class lt extends g {
|
|
|
134
137
|
}
|
|
135
138
|
}
|
|
136
139
|
export {
|
|
137
|
-
|
|
140
|
+
ct as PointTag
|
|
138
141
|
};
|
|
@@ -92,6 +92,9 @@ import "../Components/Tag/MarketingTag.js";
|
|
|
92
92
|
import "hammerjs";
|
|
93
93
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
94
94
|
import "@realsee/five/line";
|
|
95
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
96
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
97
|
+
import "../../vendor/three/build/three.module.js";
|
|
95
98
|
import "../../shared-utils/tag.js";
|
|
96
99
|
import "../../shared-utils/positionToVector3.js";
|
|
97
100
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
@@ -102,7 +105,7 @@ import "../../shared-utils/Subscribe.js";
|
|
|
102
105
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
103
106
|
import "../../shared-utils/five/transformPosition.js";
|
|
104
107
|
import "../../shared-utils/three/temp.js";
|
|
105
|
-
import "../../shared-utils/three/
|
|
108
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
106
109
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
107
110
|
import "../utils/noTypecheck.js";
|
|
108
111
|
import "../Components/Tag/AudioTag/index.js";
|
|
@@ -172,9 +175,9 @@ import "../../shared-utils/url/absoluteUrl.js";
|
|
|
172
175
|
import "../../shared-utils/five/fiveModelLoad.js";
|
|
173
176
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
174
177
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
175
|
-
import "../../shared-utils/three/
|
|
178
|
+
import "../../shared-utils/three/core/Raycaster.js";
|
|
176
179
|
import "../../base/BasePlugin.js";
|
|
177
|
-
class
|
|
180
|
+
class ke extends U {
|
|
178
181
|
constructor(t) {
|
|
179
182
|
super(t);
|
|
180
183
|
d(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
@@ -325,5 +328,5 @@ class je extends U {
|
|
|
325
328
|
}
|
|
326
329
|
}
|
|
327
330
|
export {
|
|
328
|
-
|
|
331
|
+
ke as TagRender
|
|
329
332
|
};
|
|
@@ -28,6 +28,9 @@ import "../../shared-utils/three/centerPoint.js";
|
|
|
28
28
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
29
29
|
import "hammerjs";
|
|
30
30
|
import "@realsee/five/line";
|
|
31
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
32
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
33
|
+
import "../../vendor/three/build/three.module.js";
|
|
31
34
|
import "../../shared-utils/tag.js";
|
|
32
35
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
33
36
|
import "../../shared-utils/five/getFiveModel.js";
|
|
@@ -36,7 +39,7 @@ import "../../shared-utils/Utils/BaseUtil.js";
|
|
|
36
39
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
37
40
|
import "../../shared-utils/five/transformPosition.js";
|
|
38
41
|
import "../../shared-utils/three/temp.js";
|
|
39
|
-
import "../../shared-utils/three/
|
|
42
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
40
43
|
import "animejs";
|
|
41
44
|
import "../../shared-utils/isNil.js";
|
|
42
45
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -56,8 +59,8 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
56
59
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
57
60
|
import "../../shared-utils/three/getNormal.js";
|
|
58
61
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
59
|
-
import "../../shared-utils/three/
|
|
60
|
-
class
|
|
62
|
+
import "../../shared-utils/three/core/Raycaster.js";
|
|
63
|
+
class Ie extends E {
|
|
61
64
|
constructor(e) {
|
|
62
65
|
super(e);
|
|
63
66
|
r(this, "tags", []);
|
|
@@ -187,5 +190,5 @@ class Me extends E {
|
|
|
187
190
|
}
|
|
188
191
|
}
|
|
189
192
|
export {
|
|
190
|
-
|
|
193
|
+
Ie as TagUtil
|
|
191
194
|
};
|
|
@@ -41,8 +41,9 @@ import { isModelLike as R } from "../../shared-utils/five/mode.js";
|
|
|
41
41
|
import "hammerjs";
|
|
42
42
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
43
43
|
import "@realsee/five/line";
|
|
44
|
+
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
44
45
|
import "../../shared-utils/tag.js";
|
|
45
|
-
import "../../shared-utils/three/
|
|
46
|
+
import "../../shared-utils/three/core/Sphere.js";
|
|
46
47
|
import "animejs";
|
|
47
48
|
import { nextFrame as G } from "../../shared-utils/animationFrame/index.js";
|
|
48
49
|
import { waitFiveModelLoaded as N } from "../../shared-utils/five/fiveModelLoad.js";
|
|
@@ -111,6 +112,8 @@ import "../../vendor/svelte-carousel/src/utils/interval.js";
|
|
|
111
112
|
import "../Components/Common/MediaItem.js";
|
|
112
113
|
import "../Components/Tag/MarketingTag.js";
|
|
113
114
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
115
|
+
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
116
|
+
import "../../vendor/three/build/three.module.js";
|
|
114
117
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
115
118
|
import "../../shared-utils/five/getFiveModel.js";
|
|
116
119
|
import "../../shared-utils/Utils/FiveUtil.js";
|
|
@@ -183,14 +186,14 @@ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
183
186
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
184
187
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
185
188
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
186
|
-
import "../../shared-utils/three/
|
|
189
|
+
import "../../shared-utils/three/core/Raycaster.js";
|
|
187
190
|
import "../../base/BasePlugin.js";
|
|
188
191
|
import "../utils/addDebugPoints.js";
|
|
189
192
|
import "../utils/requestIdleCallback.js";
|
|
190
193
|
import "../Components/TagItem.js";
|
|
191
194
|
import "../Components/Common/TagPoint.js";
|
|
192
|
-
const S = "Dnalogel-PanoTagPlugin",
|
|
193
|
-
class
|
|
195
|
+
const S = "Dnalogel-PanoTagPlugin", Ji = (d) => `${S}--${d}`;
|
|
196
|
+
class Zi extends O {
|
|
194
197
|
constructor(e, t) {
|
|
195
198
|
super(e);
|
|
196
199
|
/** state */
|
|
@@ -600,7 +603,7 @@ class qi extends O {
|
|
|
600
603
|
}
|
|
601
604
|
}
|
|
602
605
|
export {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
+
Zi as PanoTagPluginController,
|
|
607
|
+
Zi as default,
|
|
608
|
+
Ji as pluginFlag
|
|
606
609
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./controller/index.js";
|
|
2
|
-
import { pluginFlag as
|
|
3
|
-
import { defaultGlobalConfig as
|
|
4
|
-
import { ContentType as
|
|
2
|
+
import { pluginFlag as fr } from "./controller/index.js";
|
|
3
|
+
import { defaultGlobalConfig as ur } from "./typings/tag/TagConfig.js";
|
|
4
|
+
import { ContentType as Tr, DimensionType as xr, PointType as sr } from "./Archive/deprecated.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
7
7
|
import "../shared-utils/positionToVector3.js";
|
|
@@ -73,6 +73,9 @@ import "./Components/Tag/MarketingTag.js";
|
|
|
73
73
|
import "hammerjs";
|
|
74
74
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
75
75
|
import "@realsee/five/line";
|
|
76
|
+
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
77
|
+
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
78
|
+
import "../vendor/three/build/three.module.js";
|
|
76
79
|
import "../shared-utils/tag.js";
|
|
77
80
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
78
81
|
import "../shared-utils/five/getFiveModel.js";
|
|
@@ -82,7 +85,7 @@ import "../shared-utils/Subscribe.js";
|
|
|
82
85
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
83
86
|
import "../shared-utils/five/transformPosition.js";
|
|
84
87
|
import "../shared-utils/three/temp.js";
|
|
85
|
-
import "../shared-utils/three/
|
|
88
|
+
import "../shared-utils/three/core/Sphere.js";
|
|
86
89
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
87
90
|
import "./utils/noTypecheck.js";
|
|
88
91
|
import "./Components/Tag/AudioTag/index.js";
|
|
@@ -151,7 +154,7 @@ import "../shared-utils/url/absoluteUrl.js";
|
|
|
151
154
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
152
155
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
153
156
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
154
|
-
import "../shared-utils/three/
|
|
157
|
+
import "../shared-utils/three/core/Raycaster.js";
|
|
155
158
|
import "../base/BasePlugin.js";
|
|
156
159
|
import "../shared-utils/animationFrame/index.js";
|
|
157
160
|
import "./utils/DebugUtil.js";
|
|
@@ -163,14 +166,14 @@ import "./Components/TagContainer.js";
|
|
|
163
166
|
import "./Components/TagItem.js";
|
|
164
167
|
import "./Components/Common/TagPoint.js";
|
|
165
168
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
166
|
-
const
|
|
169
|
+
const er = (o, t) => new r(o, t);
|
|
167
170
|
export {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
+
Tr as ContentType,
|
|
172
|
+
xr as DimensionType,
|
|
173
|
+
er as PanoTagPlugin,
|
|
171
174
|
r as PanoTagPluginController,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
175
|
+
sr as PointType,
|
|
176
|
+
er as default,
|
|
177
|
+
ur as defaultGlobalConfig,
|
|
178
|
+
fr as pluginFlag
|
|
176
179
|
};
|
|
@@ -20,10 +20,13 @@ import "three";
|
|
|
20
20
|
import "hammerjs";
|
|
21
21
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
22
22
|
import "@realsee/five/line";
|
|
23
|
+
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
23
24
|
import "../../../shared-utils/tag.js";
|
|
24
|
-
import "../../../shared-utils/three/
|
|
25
|
+
import "../../../shared-utils/three/core/Sphere.js";
|
|
25
26
|
import "animejs";
|
|
26
27
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
28
|
+
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
29
|
+
import "../../../vendor/three/build/three.module.js";
|
|
27
30
|
import "../../../shared-utils/positionToVector3.js";
|
|
28
31
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
29
32
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
@@ -33,7 +36,7 @@ import "../../../shared-utils/Subscribe.js";
|
|
|
33
36
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
34
37
|
import "../../../shared-utils/five/transformPosition.js";
|
|
35
38
|
import "../../../shared-utils/three/temp.js";
|
|
36
|
-
function
|
|
39
|
+
function jo(o, i, e) {
|
|
37
40
|
var v, b, j, C, A;
|
|
38
41
|
const D = (v = e == null ? void 0 : e.useCache) != null ? v : !0;
|
|
39
42
|
if (!o)
|
|
@@ -45,39 +48,39 @@ function ko(o, i, e) {
|
|
|
45
48
|
return o.config;
|
|
46
49
|
}
|
|
47
50
|
const k = {}, d = {}, y = {};
|
|
48
|
-
i.contentTypeConfig && Object.entries(i.contentTypeConfig).forEach(([n,
|
|
51
|
+
i.contentTypeConfig && Object.entries(i.contentTypeConfig).forEach(([n, r]) => {
|
|
49
52
|
var O, W;
|
|
50
|
-
const t = n, a = t.split("-"), g = n.startsWith("["),
|
|
51
|
-
if (!
|
|
52
|
-
if (s.length === 0 && (
|
|
53
|
-
const [
|
|
54
|
-
(o.contentType ===
|
|
53
|
+
const t = n, a = t.split("-"), g = n.startsWith("["), p = g ? a[0].slice(1, -1) : void 0, s = g ? a.slice(1) : a, f = p ? ["PanoramaLike", "ModelLike"].includes(p) ? (O = d[p]) != null ? O : d[p] = {} : (W = y[p]) != null ? W : y[p] = {} : k;
|
|
54
|
+
if (!f[t]) {
|
|
55
|
+
if (s.length === 0 && (f[t] = r), s.length === 1) {
|
|
56
|
+
const [c] = s;
|
|
57
|
+
(o.contentType === c || c === "Any") && (f[t] = r);
|
|
55
58
|
}
|
|
56
59
|
if (s.length === 2) {
|
|
57
|
-
const [
|
|
58
|
-
|
|
60
|
+
const [c = "Any", u = "Any"] = s;
|
|
61
|
+
c === "Mixin" && o.contentType === u && (f[t] = r), (o.stickType === c || c === "Any") && (o.contentType === u || u === "Any") && (f[t] = r);
|
|
59
62
|
}
|
|
60
63
|
if (s.length === 3) {
|
|
61
|
-
const [
|
|
62
|
-
if (
|
|
64
|
+
const [c = "Any", u, w] = s;
|
|
65
|
+
if (u === "Audio" && o.contentType === "Audio") {
|
|
63
66
|
const L = o;
|
|
64
|
-
(L.stickType ===
|
|
67
|
+
(L.stickType === c || c === "Any") && L.data.appearance === w && (f[t] = r);
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
71
|
});
|
|
69
|
-
const h = (A = o.initialConfig) != null ? A : {}, M = l({}, N, i.globalConfig, ...Object.values(k)), G = l({}, M, h),
|
|
70
|
-
I(d).forEach(([n,
|
|
72
|
+
const h = (A = o.initialConfig) != null ? A : {}, M = l({}, N, i.globalConfig, ...Object.values(k)), G = l({}, M, h), m = {}, q = Object.values(Q.Mode);
|
|
73
|
+
I(d).forEach(([n, r]) => {
|
|
71
74
|
q.forEach((t) => {
|
|
72
|
-
(n === "PanoramaLike" && R(t) || n === "ModelLike" && S(t)) && (
|
|
75
|
+
(n === "PanoramaLike" && R(t) || n === "ModelLike" && S(t)) && (m[t] = l({}, M, ...Object.values(r), h, { _isMerged: !0 }));
|
|
73
76
|
});
|
|
74
|
-
}), I(y).forEach(([n,
|
|
75
|
-
const t =
|
|
76
|
-
|
|
77
|
+
}), I(y).forEach(([n, r]) => {
|
|
78
|
+
const t = m[n];
|
|
79
|
+
m[n] = l({}, M, t, ...Object.values(r), h, { _isMerged: !0 });
|
|
77
80
|
});
|
|
78
|
-
const T = _(F({}, G), { configWithFiveMode:
|
|
79
|
-
return P(T), Object.values(
|
|
81
|
+
const T = _(F({}, G), { configWithFiveMode: m });
|
|
82
|
+
return P(T), Object.values(m).forEach((n) => P(n)), T._isMerged = !0, T;
|
|
80
83
|
}
|
|
81
84
|
export {
|
|
82
|
-
|
|
85
|
+
jo as calculateTagConfig
|
|
83
86
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var f = Object.defineProperty,
|
|
2
|
-
var
|
|
1
|
+
var f = Object.defineProperty, m = Object.defineProperties;
|
|
2
|
+
var b = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var p = Object.getOwnPropertySymbols;
|
|
4
4
|
var M = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
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) => {
|
|
@@ -9,7 +9,7 @@ var l = (o, t, e) => t in o ? f(o, t, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
for (var e of p(t))
|
|
10
10
|
W.call(t, e) && l(o, e, t[e]);
|
|
11
11
|
return o;
|
|
12
|
-
}, d = (o, t) =>
|
|
12
|
+
}, d = (o, t) => m(o, b(t));
|
|
13
13
|
var s = (o, t, e) => (l(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
14
|
import { VideoMeshController as c } from "./VideoMeshController.js";
|
|
15
15
|
import { Controller as _ } from "../base/BasePlugin.js";
|
|
@@ -18,6 +18,9 @@ import "three";
|
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
20
20
|
import "@realsee/five/line";
|
|
21
|
+
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
22
|
+
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
23
|
+
import "../vendor/three/build/three.module.js";
|
|
21
24
|
import "../shared-utils/tag.js";
|
|
22
25
|
import "../shared-utils/positionToVector3.js";
|
|
23
26
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
@@ -28,13 +31,13 @@ import "../shared-utils/Subscribe.js";
|
|
|
28
31
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
29
32
|
import "../shared-utils/five/transformPosition.js";
|
|
30
33
|
import "../shared-utils/three/temp.js";
|
|
31
|
-
import "../shared-utils/three/
|
|
34
|
+
import "../shared-utils/three/core/Sphere.js";
|
|
32
35
|
import "animejs";
|
|
33
36
|
import "../shared-utils/animationFrame/index.js";
|
|
34
37
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
35
38
|
import "./utils/index.js";
|
|
36
39
|
import "../shared-utils/url/absoluteUrl.js";
|
|
37
|
-
class
|
|
40
|
+
class Q extends _ {
|
|
38
41
|
constructor(e) {
|
|
39
42
|
super(e);
|
|
40
43
|
s(this, "controllerMap", /* @__PURE__ */ new Map());
|
|
@@ -177,5 +180,5 @@ class K extends _ {
|
|
|
177
180
|
}
|
|
178
181
|
}
|
|
179
182
|
export {
|
|
180
|
-
|
|
183
|
+
Q as PanoVideoPluginController
|
|
181
184
|
};
|
|
@@ -6,11 +6,14 @@ import { VideoTexture as F, LinearFilter as m, ShaderMaterial as y, Vector4 as x
|
|
|
6
6
|
import "hammerjs";
|
|
7
7
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
8
8
|
import "@realsee/five/line";
|
|
9
|
+
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
9
10
|
import "../shared-utils/tag.js";
|
|
10
|
-
import "../shared-utils/three/
|
|
11
|
+
import "../shared-utils/three/core/Sphere.js";
|
|
11
12
|
import A from "animejs";
|
|
12
13
|
import { requestAnimationFrameInterval as D } from "../shared-utils/animationFrame/index.js";
|
|
13
14
|
import E from "./utils/index.js";
|
|
15
|
+
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
16
|
+
import "../vendor/three/build/three.module.js";
|
|
14
17
|
import "../shared-utils/positionToVector3.js";
|
|
15
18
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
16
19
|
import "../shared-utils/five/getFiveModel.js";
|
|
@@ -21,7 +24,7 @@ import "../shared-utils/Utils/WorkUtil.js";
|
|
|
21
24
|
import "../shared-utils/five/transformPosition.js";
|
|
22
25
|
import "../shared-utils/three/temp.js";
|
|
23
26
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
24
|
-
class
|
|
27
|
+
class ee {
|
|
25
28
|
/** 初始化视频、模型以及相关事件监听。 */
|
|
26
29
|
constructor(e, i) {
|
|
27
30
|
t(this, "video");
|
|
@@ -297,5 +300,5 @@ class K {
|
|
|
297
300
|
}
|
|
298
301
|
}
|
|
299
302
|
export {
|
|
300
|
-
|
|
303
|
+
ee as VideoMeshController
|
|
301
304
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { PanoVideoPluginController as r } from "./Controller.js";
|
|
2
|
-
import { typings as
|
|
2
|
+
import { typings as D } from "./typings/index.js";
|
|
3
3
|
import "./VideoMeshController.js";
|
|
4
4
|
import "./utils/shader.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "hammerjs";
|
|
7
7
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
8
8
|
import "@realsee/five/line";
|
|
9
|
+
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
10
|
+
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
11
|
+
import "../vendor/three/build/three.module.js";
|
|
9
12
|
import "../shared-utils/tag.js";
|
|
10
13
|
import "../shared-utils/positionToVector3.js";
|
|
11
14
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
@@ -16,16 +19,16 @@ import "../shared-utils/Subscribe.js";
|
|
|
16
19
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
17
20
|
import "../shared-utils/five/transformPosition.js";
|
|
18
21
|
import "../shared-utils/three/temp.js";
|
|
19
|
-
import "../shared-utils/three/
|
|
22
|
+
import "../shared-utils/three/core/Sphere.js";
|
|
20
23
|
import "animejs";
|
|
21
24
|
import "../shared-utils/animationFrame/index.js";
|
|
22
25
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
23
26
|
import "./utils/index.js";
|
|
24
27
|
import "../base/BasePlugin.js";
|
|
25
28
|
import "../shared-utils/url/absoluteUrl.js";
|
|
26
|
-
const
|
|
29
|
+
const z = (o) => new r(o);
|
|
27
30
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
z as PanoVideoPlugin,
|
|
32
|
+
D as PanoVideoPluginType,
|
|
33
|
+
z as default
|
|
31
34
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var j = Object.defineProperty;
|
|
2
2
|
var v = Object.getOwnPropertySymbols;
|
|
3
3
|
var P = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var A = (p, n, e) => n in p ? j(p, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[n] = e,
|
|
4
|
+
var A = (p, n, e) => n in p ? j(p, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[n] = e, m = (p, n) => {
|
|
5
5
|
for (var e in n || (n = {}))
|
|
6
6
|
P.call(n, e) && A(p, e, n[e]);
|
|
7
7
|
if (v)
|
|
@@ -38,6 +38,9 @@ import "../shared-utils/Subscribe.js";
|
|
|
38
38
|
import "hammerjs";
|
|
39
39
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
40
40
|
import "@realsee/five/line";
|
|
41
|
+
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
42
|
+
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
43
|
+
import "../vendor/three/build/three.module.js";
|
|
41
44
|
import "../shared-utils/tag.js";
|
|
42
45
|
import "../shared-utils/positionToVector3.js";
|
|
43
46
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
@@ -47,7 +50,7 @@ import "../shared-utils/Utils/BaseUtil.js";
|
|
|
47
50
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
48
51
|
import "../shared-utils/five/transformPosition.js";
|
|
49
52
|
import "../shared-utils/three/temp.js";
|
|
50
|
-
import "../shared-utils/three/
|
|
53
|
+
import "../shared-utils/three/core/Sphere.js";
|
|
51
54
|
import "animejs";
|
|
52
55
|
import "../shared-utils/url/absoluteUrl.js";
|
|
53
56
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -59,7 +62,7 @@ import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
|
59
62
|
import "../shared-utils/three/Extras/Core/Interpolations.js";
|
|
60
63
|
import "../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
61
64
|
const g = { flowSpeed: 0.6, rotateSpeed: 0 };
|
|
62
|
-
class
|
|
65
|
+
class me extends S {
|
|
63
66
|
constructor(e) {
|
|
64
67
|
super(e);
|
|
65
68
|
// ==================== public properties ====================
|
|
@@ -120,7 +123,7 @@ class pe extends S {
|
|
|
120
123
|
const r = this.data;
|
|
121
124
|
this.data = yield this.formatData(e, s), this.removeAllPipes(), this.hooks.emit("dataChange", this.data, r), this.pipeObjects = yield Promise.all(
|
|
122
125
|
this.data.pipes.filter((h) => !!(h != null && h.texture)).map((b) => d(this, [b], function* ({ id: h, texture: a, path: c, radius: o }) {
|
|
123
|
-
const
|
|
126
|
+
const l = yield this.loadPipeTexture(a), f = { id: h, path: c, textureURL: a, texture: l, geometryConfig: { radius: o } };
|
|
124
127
|
return new D(f);
|
|
125
128
|
}))
|
|
126
129
|
), this.data.pipelines.forEach((h) => {
|
|
@@ -186,7 +189,7 @@ class pe extends S {
|
|
|
186
189
|
return d(this, arguments, function* (e = {}) {
|
|
187
190
|
if (this.state.visible)
|
|
188
191
|
return;
|
|
189
|
-
const t =
|
|
192
|
+
const t = m({
|
|
190
193
|
userAction: !0,
|
|
191
194
|
anime: { duration: 500 }
|
|
192
195
|
}, e);
|
|
@@ -203,7 +206,7 @@ class pe extends S {
|
|
|
203
206
|
return d(this, arguments, function* (e = {}) {
|
|
204
207
|
if (this.state.visible === !1)
|
|
205
208
|
return;
|
|
206
|
-
const t =
|
|
209
|
+
const t = m({
|
|
207
210
|
userAction: !0,
|
|
208
211
|
anime: { duration: 500 }
|
|
209
212
|
}, e);
|
|
@@ -222,12 +225,12 @@ class pe extends S {
|
|
|
222
225
|
* */
|
|
223
226
|
switchPipelines(e) {
|
|
224
227
|
return d(this, null, function* () {
|
|
225
|
-
var c, o, b,
|
|
228
|
+
var c, o, b, l, f, w;
|
|
226
229
|
if (!this.data)
|
|
227
230
|
return;
|
|
228
231
|
const t = (c = e == null ? void 0 : e.target) != null ? c : null, i = (o = e == null ? void 0 : e.userAction) != null ? o : !0;
|
|
229
232
|
this.updateState({ target: t }, i);
|
|
230
|
-
const s = { duration: 500 }, r = (
|
|
233
|
+
const s = { duration: 500 }, r = (l = (b = e == null ? void 0 : e.hideAnime) != null ? b : e == null ? void 0 : e.anime) != null ? l : s, h = (w = (f = e == null ? void 0 : e.showAnime) != null ? f : e == null ? void 0 : e.anime) != null ? w : s, a = {
|
|
231
234
|
target: t,
|
|
232
235
|
showAnime: h,
|
|
233
236
|
hideAnime: r
|
|
@@ -309,7 +312,7 @@ class pe extends S {
|
|
|
309
312
|
}
|
|
310
313
|
updateState(e, t) {
|
|
311
314
|
const i = this.state;
|
|
312
|
-
this.state =
|
|
315
|
+
this.state = m(m({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: t });
|
|
313
316
|
}
|
|
314
317
|
/** 加载管道贴图,如果再加载中,复用之前的加载 Promise */
|
|
315
318
|
loadPipeTexture(e) {
|
|
@@ -339,5 +342,5 @@ class pe extends S {
|
|
|
339
342
|
}
|
|
340
343
|
}
|
|
341
344
|
export {
|
|
342
|
-
|
|
345
|
+
me as Controller
|
|
343
346
|
};
|
|
@@ -6,6 +6,9 @@ import "../shared-utils/Subscribe.js";
|
|
|
6
6
|
import "hammerjs";
|
|
7
7
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
8
8
|
import "@realsee/five/line";
|
|
9
|
+
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
10
|
+
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
11
|
+
import "../vendor/three/build/three.module.js";
|
|
9
12
|
import "../shared-utils/tag.js";
|
|
10
13
|
import "../shared-utils/positionToVector3.js";
|
|
11
14
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
@@ -15,7 +18,7 @@ import "../shared-utils/Utils/BaseUtil.js";
|
|
|
15
18
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
16
19
|
import "../shared-utils/five/transformPosition.js";
|
|
17
20
|
import "../shared-utils/three/temp.js";
|
|
18
|
-
import "../shared-utils/three/
|
|
21
|
+
import "../shared-utils/three/core/Sphere.js";
|
|
19
22
|
import "animejs";
|
|
20
23
|
import "../shared-utils/url/absoluteUrl.js";
|
|
21
24
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -31,8 +34,8 @@ import "../shared-utils/animationFrame/BetterTween.js";
|
|
|
31
34
|
import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
32
35
|
import "../shared-utils/three/Extras/Core/Interpolations.js";
|
|
33
36
|
import "../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
34
|
-
const
|
|
37
|
+
const L = (r) => new o(r);
|
|
35
38
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
L as PipelinePlugin,
|
|
40
|
+
L as default
|
|
38
41
|
};
|